.home-protein-discovery{display:grid;grid-template-columns:minmax(0,3fr) minmax(13.5rem,1fr);align-items:start;gap:clamp(1.25rem,3vw,3rem)}
.home-protein-discovery .home-style-preview{grid-template-columns:repeat(3,minmax(0,1fr))}
.home-category-panel{align-self:stretch;padding:1.25rem 0 1.25rem clamp(1.25rem,2vw,2rem);border-inline-start:1px solid var(--line);min-width:0}
.home-category-panel h3{margin:0 0 .65rem;font:400 clamp(1.35rem,2.6vw,1.8rem)/1.2 var(--serif)}
.home-category-panel ul,.protein-category-directory{list-style:none;margin:0;padding:0}
.home-category-panel li a{display:flex;align-items:center;min-height:2.75rem;border-bottom:1px solid var(--line);text-decoration:none;font-size:.95rem;line-height:1.3}
.home-category-panel>a{display:inline-flex;align-items:center;min-height:2.75rem;margin-top:.5rem}
.home-protein-search{display:flex;gap:.45rem;margin:0 0 .72rem}
.home-protein-search input{min-width:0;width:100%;padding:.5rem;border:1px solid var(--line);background:var(--ivory);font:inherit;font-size:1rem}
.home-protein-search button{min-height:2.75rem;padding:.35rem .55rem;border:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;font-size:.875rem;cursor:pointer}
.home-category-panel li a:hover,.protein-categories a:hover,.home-category-panel li a:focus-visible{text-decoration:underline;text-underline-offset:.2em}
.protein-categories{display:flex;flex-wrap:wrap;gap:.45rem;margin:.85rem 0 .45rem}
.protein-categories a{display:inline-flex;align-items:center;min-height:2.75rem;padding:.32rem .7rem;border:1px solid var(--line);color:var(--ink);font-size:.875rem;line-height:1.2;text-decoration:none}
.protein-category-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1.25rem 2rem}
.protein-category-directory a{display:inline-block;padding:.5rem 0;text-underline-offset:.2em}
.category-index-link{display:inline-flex;margin-top:1.15rem}
.category-preview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.category-preview-grid .art-card>div,.home-protein-discovery .art-card>div{min-width:0}
.category-collection{padding-bottom:clamp(1.5rem,4vw,3rem)}
.category-collection .search-protein-index{margin-top:1.25rem}
@media(max-width:900px){
  .home-protein-discovery{grid-template-columns:1fr;gap:.9rem}
  .home-category-panel{border-inline-start:0;border-top:1px solid var(--line);padding:1.15rem 0 0}
  .home-category-panel ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1rem}
  #main .product-style-discovery .product-current-style,#main .product-style-discovery [data-open-style-choices],#main .curated-styles .curated-style-count,#main #curated-styling .curated-current-choice{display:none}
  #main .product-style-discovery{min-height:0;padding-block:0;margin-block:0}
  #main .curated-layout .product-view{overflow-anchor:none}
  #main .curated-layout.compact-artwork .product-view .product-art-stage{width:min(83%,35svh)}
}
@media(max-width:460px){
  .home-protein-discovery .home-style-preview,.category-preview-grid{gap:.5rem}
  .category-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-protein-discovery .home-style-preview{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (width > 900px) {
  .home-category-panel {
    --panel-sticky-inset: 1rem;
    position: sticky;
    inset-block-start: var(--panel-sticky-inset);
    align-self: start;
    box-sizing: border-box;
    max-height: calc(100vh - 2 * var(--panel-sticky-inset));
    max-height: calc(100dvh - 2 * var(--panel-sticky-inset));
    overflow-y: auto;
  }
}

.collection-wall {
  margin-inline: auto;
  max-width: 100rem;
  padding: 0 6% clamp(1.75rem, 3vw, 3rem);
}

.premium-intro:has(+ .collection-wall) {
  padding-block: clamp(1.6rem, 3.6vw, 3.25rem) clamp(1.25rem, 2.5vw, 2.3rem);
}

.collection-wall-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  margin-bottom: .9rem;
}

.collection-wall-toolbar h2 {
  margin: 0;
  font: 400 clamp(1.55rem, 3vw, 2.45rem)/1.12 var(--serif);
}

.collection-wall-room {
  padding-block: clamp(1rem, 2.8vw, 2.65rem) clamp(6rem, 12.5vw, 12.5rem);
  border: 1px solid #d9e0dc;
  background: #edf1ef url('/assets/photography/collection-gallery-sofa-20261120.jpg') center bottom / cover no-repeat;
}

.collection-wall-viewport {
  --wall-edge: clamp(1rem, 5vw, 5rem);
  --piece-width: clamp(8.6rem, 17vw, 13.25rem);
  box-sizing: border-box;
  block-size: calc(var(--piece-width) + 9.75rem);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--wall-edge);
  scrollbar-width: thin;
  scrollbar-color: #81918a transparent;
  padding: .45rem var(--wall-edge) .65rem;
}

.collection-wall-grid {
  display: flex;
  align-items: flex-start;
  gap: clamp(.8rem, 2.5vw, 2.25rem);
  list-style: none;
  width: max-content;
  margin: 0;
  padding: 0;
}

.collection-wall-grid > li {
  box-sizing: border-box;
  flex: 0 0 var(--piece-width);
  min-width: 0;
  padding-top: var(--hang-offset, .45rem);
  scroll-snap-align: start;
}

.collection-wall-grid > li:nth-child(5n + 2) { --hang-offset: 1.55rem; --frame-width: 88%; }
.collection-wall-grid > li:nth-child(5n + 3) { --hang-offset: 0rem; --frame-width: 97%; }
.collection-wall-grid > li:nth-child(5n + 4) { --hang-offset: 2rem; --frame-width: 84%; }
.collection-wall-grid > li:nth-child(5n + 5) { --hang-offset: .8rem; --frame-width: 93%; }

.collection-wall-piece {
  display: block;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.collection-wall-art { width: var(--frame-width, 100%); margin: 0 auto .65rem; }
.collection-wall-art .lumaprints-frame { width: 100%; max-width: none; }
.collection-wall-name,
.collection-wall-detail,
.collection-wall-style { display: block; overflow-wrap: anywhere; }
.collection-wall-name { font: 400 clamp(1.08rem, 1.35vw, 1.35rem)/1.17 var(--serif); }
.collection-wall-detail { margin-top: .18rem; color: #414f44; font-size: .78rem; line-height: 1.3; }
.collection-wall-style { margin-top: .18rem; color: #414f44; font-size: .8rem; line-height: 1.3; }
.collection-wall-piece:hover .collection-wall-name,
.collection-wall-piece:focus-visible .collection-wall-name { text-decoration: underline; text-underline-offset: .16em; }
.collection-wall-piece:focus-visible,
.collection-wall-controls button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.collection-wall-viewport:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }

.collection-wall-controls { display: flex; align-items: center; gap: .5rem; }
.collection-wall-controls button {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.collection-wall-controls button:hover:not(:disabled) { border-color: var(--ink); }
.collection-wall-controls button:disabled { opacity: .42; cursor: default; }
.collection-wall-link { margin-top: 1rem; }

@media (max-width: 600px) {
  .collection-wall { padding-inline: 5%; }
  .collection-wall-viewport { --wall-edge: .9rem; }
  .collection-wall-room { background-size: auto 100%; }
}

.home-category-panel li a,
.home-protein-search input {
  font-size: 1.1rem;
}

.home-category-panel > a,
.home-protein-search button {
  font-size: 1rem;
}

#main .product-intro .art-format-picker strong {
  font: 400 clamp(1.25rem, 2.25vw, 1.55rem)/1.15 var(--serif);
}

#main .product-intro .art-format-picker span {
  font-size: .9375rem;
}

#main .curated-layout .curated-disclosure-label {
  font-size: 1.0625rem;
}

#main .curated-layout .curated-current-choice {
  font-size: .9375rem;
}

/* Match the priority of the legacy collection label inside the product picker. */
#main .curated-layout #curated-styles .style-option-name {
  font-size: .875rem !important;
}

#main .curated-layout #curated-matting .mat-option,
#main .curated-layout .frame-card-dimension,
#main .curated-layout .frame-card-price,
#main .curated-layout .scale-options .size-option-price,
#main .curated-layout .scale-options .size-artwork-dimension,
#main .curated-layout .product-controls > .choice-group > legend {
  font-size: .875rem;
}

#main .curated-layout .frame-option-name,
#main .curated-layout .scale-options button {
  font-size: 1rem;
}

#main .curated-layout .scale-options .size-matted-dimension {
  font-size: .9375rem;
}

#main .curated-layout .scale-options .size-matted-dimension small {
  font-size: .8125rem;
}

#main .curated-layout .curated-phone-style {
  display: none;
}

@media (max-width: 900px) {
  #main .curated-layout .curated-preview-toolbar {
    position: static;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    max-width: none;
    height: auto;
    padding: .375rem 0 0;
  }

  #main .curated-layout .curated-preview-toolbar :is(.curated-phone-style, .image-zoom) {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    width: auto;
    height: auto;
    min-height: 2.75rem;
    padding: .375rem .625rem;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    color: var(--ink);
    font: inherit;
    font-size: .875rem;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
  }

  #main .curated-layout .curated-preview-toolbar svg {
    flex-shrink: 0;
  }

  #main .curated-layout.compact-artwork .product-view :is(
    .curated-preview-toolbar, .curated-image-title, .product-style-discovery
  ) {
    display: none;
  }
}

dialog.artwork-viewport[open] {
  --viewer-edge: clamp(.45rem, 1.3vw, 1.25rem);
  --viewer-top: max(var(--viewer-edge), env(safe-area-inset-top, 0px));
  --viewer-bottom: max(var(--viewer-edge), env(safe-area-inset-bottom, 0px));
  --viewer-close: 2.75rem;
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--viewer-close) minmax(0, 1fr);
  gap: .25rem;
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding-block: var(--viewer-top) var(--viewer-bottom);
  padding-inline: max(var(--viewer-edge), env(safe-area-inset-left, 0px))
    max(var(--viewer-edge), env(safe-area-inset-right, 0px));
  overflow: hidden;
  border: 0;
  background: #11130f;
}

dialog.artwork-viewport::backdrop {
  background: #11130f;
}

.artwork-viewport-piece {
  grid-row: 2;
  place-self: center;
  width: min(100%, calc(100dvh - var(--viewer-top) - var(--viewer-bottom) - var(--viewer-close) - .25rem));
  aspect-ratio: 1;
}

#main .artwork-viewport-piece > :is(.lumaprints-frame, .fine-art-print) {
  width: 100%;
  max-width: none;
  margin: 0;
}

dialog.artwork-viewport > button {
  grid-row: 1;
  justify-self: end;
  display: grid;
  place-items: center;
  width: var(--viewer-close);
  height: var(--viewer-close);
  border: 1px solid #ffffff66;
  border-radius: 50%;
  background: #11130f;
  color: #fff;
  cursor: pointer;
}

dialog.artwork-viewport > button svg {
  width: 1.25rem;
  height: 1.25rem;
}

dialog.artwork-viewport > button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}


/* Storefront typography */
:root {
  --storefront-type-caption: .875rem;
  --storefront-type-label: .9375rem;
  --storefront-type-text: 1rem;
  --storefront-type-name: clamp(1.25rem, 1.6vw, 1.5rem);
  --storefront-type-section: clamp(1.875rem, 3.2vw, 2.75rem);
}

.poetic-hero .hero-actions > .button {
  font-size: var(--storefront-type-text);
  font-weight: 500;
  line-height: 1.3;
}

.poetic-hero .scene-caption strong {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.2;
}

.poetic-hero .scene-caption > span:first-child > span,
.poetic-hero .scene-caption > span:last-child {
  font: 400 var(--storefront-type-caption)/1.45 var(--sans);
}

.home-category-panel h3 {
  font-size: clamp(1.375rem, 1.85vw, 1.625rem);
}

.home-category-panel li a,
.home-protein-search input,
.home-protein-search button {
  font-size: var(--storefront-type-text);
}

.home-category-panel > a,
.field-link-grid > a,
.gallery-biology-links > a {
  font-size: var(--storefront-type-label);
}

.premium-section-head h2,
.field-band h2,
.quiet-close h2,
.real-space-heading h2,
.interior-inspiration-title h2 {
  font-size: var(--storefront-type-section);
}

.premium-section-head > p,
.field-band p,
.gallery-intro p,
#main > .details-section p {
  font-size: var(--storefront-type-text);
}

.art-card .card-copy h3,
.collection-card-copy h2,
.protein-row h3 {
  font-size: var(--storefront-type-name);
  line-height: 1.2;
}

.card-copy .card-style,
.collection-card-copy .card-style {
  font: 400 var(--storefront-type-label)/1.45 var(--sans);
}

.card-copy .card-protein-detail,
.collection-card-copy .card-protein-detail,
.collection-card-copy .collection-card-action,
.site-footer .footer-top :is(a, p) {
  font-size: var(--storefront-type-caption);
}

#main .curated-layout .product-intro h1 {
  font-size: clamp(1.75rem, 2.65vw, 2.5rem);
  line-height: 1.12;
}

#main .curated-layout .product-style-intro .product-subtitle,
#main .product-intro .art-format-picker strong {
  font-size: clamp(1.25rem, 1.55vw, 1.375rem);
  line-height: 1.2;
}

#main .curated-layout .curated-disclosure-label {
  font-size: var(--storefront-type-text);
}

#main .curated-layout .product-intro .collection-back-link,
#main .curated-layout .product-controls > .choice-group > legend {
  font-size: var(--storefront-type-label);
}

#main .curated-layout .production-note,
#main .curated-layout .product-intro .breadcrumbs {
  font-size: var(--storefront-type-caption);
}

@media (min-width: 1200px) {
  .site-header .nav-left,
  .site-header .nav-right {
    font-size: var(--storefront-type-caption);
  }
}

@media (max-width: 760px) {
  .poetic-hero .hero-actions > .button {
    font-size: var(--storefront-type-label);
  }

  #main .curated-layout .product-intro h1 {
    font-size: clamp(1.625rem, 5.1vw, 1.875rem);
  }
}

/* A short, visible story belongs with the protein name. */
#main .product-identity .protein-story-lead {
  max-width: 48ch;
  margin: .5rem 0 .2rem;
  color: var(--ink);
  font: 400 1rem/1.45 var(--sans);
  text-wrap: pretty;
}
#main .protein-story-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem .85rem;
  font: 400 .875rem/1.45 var(--sans);
  color: var(--ink);
}
#main .protein-story-facts a, #main .protein-story-toggle {
  display: inline-block;
  padding: .22rem 0;
  text-decoration: underline;
  text-decoration-color: #879b8c;
  text-underline-offset: .19em;
}
#main .protein-story-toggle {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
#main .protein-story-facts :is(a,button):hover { text-decoration-color: currentColor; }
#main .protein-story-facts :is(a,button):focus-visible,
#main .species-directory a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
#main .curated-layout #protein-story-continued {
  margin: .6rem 0;
  padding: .6rem 0 .2rem .9rem;
  border-inline-start: 2px solid var(--line);
}
#main #protein-story-continued[hidden] { display: none; }
#main #protein-story-continued p { max-width: 56ch; margin: .25rem 0 .55rem; font-size: 1rem; line-height: 1.5; }
#main #protein-story-continued .protein-story-identifier { font-size: .875rem; }
.species-directory {
  max-width: 100rem;
  margin-inline: auto;
  padding: 0 6% 4rem;
}
.species-directory section + section { margin-top: 2.75rem; }
.species-directory h2 { font: 400 clamp(1.6rem,3vw,2.15rem)/1.2 var(--serif); margin: 0 0 .7rem; }
.species-directory ul {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr));
  gap: 0 1.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.species-directory li { border-top: 1px solid var(--line); }
.species-directory a { display: grid; gap: .16rem; padding: .68rem 0 .8rem; color: var(--ink); }
.species-directory a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.species-directory strong { font: 400 1.25rem/1.25 var(--serif); }
.species-directory span { font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; }
.species-directory small { color: var(--muted); font: 400 .8125rem/1.4 var(--sans); }
#main :is(.index-tools,.gallery-toolbar) :is(label,.field,select,input) { min-width: 0; max-width: 100%; }
@media (min-width: 901px) {
  #main .index-tools, #main .gallery-toolbar {
    grid-template-columns: minmax(12rem,1.5fr) minmax(9rem,1fr) minmax(9rem,1fr) minmax(7.5rem,.7fr);
  }
}
@media (max-width: 900px) {
  #main .product-identity .protein-story-lead { margin-top: .33rem; }
  #main .protein-story-facts { gap: 0 .75rem; }
  #main .protein-story-facts :is(a,button) { min-height: 1.7rem; }
  #main .index-tools, #main .gallery-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
  #main .index-tools .search-field, #main .gallery-toolbar .gallery-search { grid-column: 1 / -1; }
  #main .gallery-toolbar > label:nth-child(2) { grid-column: 1 / -1; }
  #main .index-tools > .field:nth-child(2) { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  #main .story-species-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  #main .product-identity .protein-story-lead { font-size: 1rem; line-height: 1.35; }
  #main .protein-story-facts { gap: 0 .65rem; }
}
