/* Brickwright storefront pages (owner: storefront): home, shop and category listings, gifts,
   product pages, services landing and the frame and case guide.
   Builds on the tokens and shared classes in base.css and never redefines them. Mobile first;
   breakpoints 600px, 900px and 1024px. No gradients, no card shadows, radius 4px. */

/* --------------------------------------------------------------- home: hero */
.hero { padding: var(--s-7) 0 var(--s-8); }
.hero__grid { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero__copy > * + * { margin-top: var(--s-4); }
.hero__title { max-width: 16ch; }
.hero__lead { max-width: 52ch; }
.hero__actions { margin-top: var(--s-5); max-width: 520px; }
.hero__meta { color: var(--muted); font-size: 13px; max-width: none; }
.hero__art { position: relative; padding-bottom: var(--s-2); }
.hero__panel img { width: 100%; height: auto; }
.hero__card { position: relative; margin: calc(-1 * var(--s-5)) var(--s-4) 0; max-width: 320px; }
@media (min-width: 600px) {
  .hero__card { margin-left: var(--s-5); }
}
@media (min-width: 1024px) {
  .hero { padding: var(--s-8) 0 var(--s-9); }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); }
  .hero__art { padding-bottom: 0; }
  /* The card hangs from the panel and overlaps its bottom-left corner by 24px (DESIGN 6). */
  .hero__card { margin: calc(-1 * var(--s-5)) 0 0 calc(-1 * var(--s-5)); width: 300px; }
}

/* ------------------------------------------------------ home: other sections */
.home-strip { background: var(--bg); }
.home-strip .bench-strip { list-style: none; padding: 0; margin: 0; }
.home-occasions__rows { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.home-occasions__row > * + * { margin-top: var(--s-2); }
@media (min-width: 900px) {
  .home-occasions__rows { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); }
}

.cat-tiles { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); list-style: none; padding: 0; }
@media (min-width: 600px) { .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-tiles li { max-width: none; }
.cat-tile {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); height: 100%; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--r); color: var(--ink); text-decoration: none; overflow: hidden;
  transition: border-color var(--ease);
}
.cat-tile:hover { border-color: var(--rule-strong); color: var(--ink); }
.cat-tile__media { display: block; background: var(--surface-2); }
.cat-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); }
.cat-tile__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-3); }
.cat-tile__name { font-family: var(--font-serif); font-size: 19px; line-height: 1.25; font-weight: 600; }
.cat-tile__count { font-size: 12px; color: var(--muted); }
.cat-tile__blurb { font-size: var(--t-small); line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 1024px) {
  .cat-tile { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .cat-tile__media { aspect-ratio: 4 / 3; }
}

.two-ways { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .two-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.two-ways__panel { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6) var(--s-5); }
.two-ways__panel > * + * { margin-top: 0; }
.two-ways__steps { grid-template-columns: minmax(0, 1fr) !important; gap: var(--s-3); flex: 1; }
.two-ways__steps .step { flex-direction: row; align-items: baseline; gap: var(--s-3); }
.two-ways__steps .step__text { font-size: 15px; }

.teaser { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .teaser { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-7); align-items: start; } }
.teaser__copy > * + * { margin-top: var(--s-4); }
.teaser__list { display: grid; gap: var(--s-1) var(--s-5); grid-template-columns: minmax(0, 1fr); font-size: 15px; }
@media (min-width: 600px) { .teaser__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.teaser__list li { display: flex; justify-content: space-between; gap: var(--s-3); padding: 6px 0; border-bottom: 1px dashed var(--rule); max-width: none; }
.teaser__list .mono { font-size: 13px; color: var(--muted); white-space: nowrap; }
.teaser__finder { padding: var(--s-5); }

.step__art { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); border-radius: var(--r); margin-bottom: var(--s-2); }

.michael-note { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s-6) var(--s-5); }
.michael-note__text { font-family: var(--font-serif); font-size: 20px; line-height: 1.5; color: var(--ink); }
.michael-note__text > * + * { margin-top: var(--s-4); }
.michael-note__sign { margin-top: var(--s-5); font-family: var(--font-serif); font-size: 20px; font-weight: 600; display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: baseline; }
.michael-note__sign a { font-family: var(--font-sans); font-weight: 400; }
@media (min-width: 900px) { .michael-note { padding: var(--s-7); } }

/* -------------------------------------------------------------- fit finder */
.fit-form > * + * { margin-top: var(--s-3); }
.fit-form__row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: flex-end; }
.fit-form__field { flex: 1 1 220px; }
.fit-form__input { font-family: var(--font-mono); letter-spacing: 0.02em; }
.fit-form__btn { flex: none; }
.fit-form--compact .fit-form__pick .field__label { font-weight: 400; color: var(--muted); }
.fit-results:empty { display: none; }
.fit-results { margin-top: var(--s-5); }
.fit-results[aria-busy="true"] { opacity: 0.6; }
.fit-card .btn-row { margin-top: var(--s-4); }
.fit-choices { padding: var(--s-4); border: 1px dashed var(--ink); border-radius: var(--r); }
.fit-choices__list { margin-top: var(--s-2); }
.fit-choices__list li + li { margin-top: var(--s-1); }
.fit-choices__list a { display: inline-flex; gap: var(--s-2); min-height: 36px; align-items: center; }
.dims-form__row { display: grid; gap: var(--s-3); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.dims-form__row .field + .field { margin-top: 0; }
.dims-form__btn { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .dims-form__row { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .dims-form__btn { grid-column: auto; }
}
.dims-form .field__help { margin-top: var(--s-2); }
.fit-dims-result > * + * { margin-top: var(--s-3); }
.fit-dims-result__lead { font-size: 15px; }

/* ---------------------------------------------------------- frame and case guide */
.guide-finder { padding: var(--s-5); }
@media (min-width: 900px) { .guide-finder { padding: var(--s-6); } }
.guide-page .section--tight > * + * { margin-top: var(--s-4); }
.guide-sizes { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .guide-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guide-size > * + * { margin-top: var(--s-2); }
.guide-size__title { font-size: var(--t-h3); }
.guide-size__title a { color: var(--ink); text-decoration-color: var(--rule); }
.guide-size__title .small { font-family: var(--font-sans); font-weight: 400; margin-left: var(--s-2); }
.measured-table th a { font-family: var(--font-mono); }

/* --------------------------------------------------------------- lists */
.parcel-list { list-style: none; padding: 0; }
.parcel-list li { position: relative; padding-left: 22px; font-size: 15px; }
.parcel-list li + li { margin-top: var(--s-2); }
.parcel-list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border: 1px solid var(--ink); }
.parcel-list--numbered { counter-reset: parcel; }
.parcel-list--numbered li { counter-increment: parcel; padding-left: 32px; }
.parcel-list--numbered li::before { content: counter(parcel, decimal-leading-zero); border: 0; width: auto; height: auto; top: 0; font-family: var(--font-mono); font-size: 13px; color: var(--accent-ink); }

/* ---------------------------------------------------------- collection pages */
.collection-intro { margin-bottom: var(--s-5); color: var(--ink-2); }
.collection { align-items: start; }
.collection[aria-busy="true"] .collection-results { opacity: 0.55; transition: opacity var(--ease); }

.filters { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s-4); }
.filters__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.filters__title { font-family: var(--font-sans); font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.filters__group { border: 0; padding: var(--s-3) 0 0; margin: var(--s-3) 0 0; min-width: 0; border-top: 1px dashed var(--rule); }
.filters__form > .filters__group:first-child, .filters__form > input[type="hidden"]:first-child + .filters__group { margin-top: 0; padding-top: 0; border-top: 0; }
.filters__legend { padding: 0; margin-bottom: var(--s-2); font-size: 14px; font-weight: 600; color: var(--ink); }
.filters__list, .filters__links { list-style: none; padding: 0; }
.filters__check { min-height: 40px; padding: 4px 0; gap: var(--s-2); align-items: center; }
.filters__check input { margin-top: 0; }
.filters__check .check__text { font-size: 15px; }
.filters__links a { display: flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; font-size: 15px; border-left: 2px solid transparent; padding-left: var(--s-2); margin-left: calc(-1 * var(--s-2) - 2px); }
.filters__links a:hover { color: var(--accent-ink); text-decoration: underline; }
.filters__links a.is-active { border-left-color: var(--accent); font-weight: 600; }
.filters__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px dashed var(--rule); }
.filters__close, .filters-toggle { display: none; }

/* With JavaScript under 900px the rail becomes a bottom sheet opened by the Filter button. */
@media (max-width: 899px) {
  .js .filters-toggle { display: inline-flex; }
  .js .filters__close { display: inline-flex; }
  .js .filters {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 82vh; overflow-y: auto;
    border-radius: var(--r) var(--r) 0 0; border-color: var(--ink); box-shadow: var(--shadow-overlay); padding: var(--s-4) var(--gutter) var(--s-6);
  }
  .js .filters.is-open { display: block; }
  .js .filters__head { position: sticky; top: calc(-1 * var(--s-4)); background: var(--surface); padding: var(--s-2) 0; z-index: 1; }
  html.has-filter-sheet body { overflow: hidden; }
}

.collection-results > * + * { margin-top: var(--s-5); }
.collection-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule); }
.collection-count { font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); }
.collection-toolbar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.collection-sort { display: flex; align-items: center; gap: var(--s-2); }
.collection-sort__label { font-size: 14px; font-weight: 600; }
.collection-sort__select { width: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 15px; }
.active-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; }
.active-filters li { max-width: none; }
.active-filters__chip { gap: var(--s-2); min-height: 36px; font-size: 14px; }
.active-filters__x { font-size: 16px; line-height: 1; color: var(--muted); }
.active-filters__chip:hover .active-filters__x { color: var(--accent-ink); }
.collection-fit > * + * { margin-top: var(--s-2); }
.collection-results .empty-state { margin-left: 0; }

.gift-chips { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.gift-corporate { margin-bottom: var(--s-5); }
.gift-panel { margin-bottom: var(--s-6); }
.gift-panel__list { list-style: none; padding: 0; display: grid; gap: var(--s-2) var(--s-5); grid-template-columns: minmax(0, 1fr); font-size: 15px; }
@media (min-width: 900px) { .gift-panel__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gift-panel__list li { padding-left: 18px; position: relative; max-width: none; }
.gift-panel__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--accent); }

/* ------------------------------------------------------------- product page */
/* Phones: art, then the buy column, then the details. From 1024px: art and details on the left
   (7 of 12), the buy column sticky on the right (5 of 12) across both rows. */
.pdp { margin-top: var(--s-4); }
@media (min-width: 1024px) {
  .pdp { grid-template-areas: "media buy" "details buy"; grid-template-rows: auto 1fr; }
  .pdp__media { grid-area: media; }
  .pdp__buy-col { grid-area: buy; }
  .pdp__details { grid-area: details; }
}
.pdp__details > * + * { margin-top: var(--s-6); }
.pdp__art { aspect-ratio: 1 / 1; display: flex; }
.pdp__art img { width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
.pdp__thumbs { display: flex; gap: var(--s-2); list-style: none; padding: 0; margin-top: var(--s-3) !important; }
.pdp__thumb { padding: 2px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); width: 80px; }
.pdp__thumb[aria-pressed="true"] { border-color: var(--ink); }
.pdp__section > * + * { margin-top: var(--s-3); }
.pdp__spec .bench-card__row dt { min-width: 0; }

.pdp__buy-col > * + * { margin-top: var(--s-4); }
.pdp__buy-col > .eyebrow + .pdp__title { margin-top: var(--s-2); }
.pdp__title { font-size: var(--t-h1); line-height: 1.1; }
.pdp__set { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-3) !important; }
.pdp__pricing > * + * { margin-top: var(--s-2); }
.pdp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-1); }
.pdp__lead { display: flex; align-items: center; gap: var(--s-2); font-size: 15px; font-weight: 600; }
.pdp__lead::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--muted); }
.pdp__lead--shelf { color: var(--green); }
.pdp__lead--shelf::before { background: var(--green); }
.pdp__lead--to-order { color: var(--accent-ink); }
.pdp__lead--to-order::before { background: var(--accent); }
.pdp__lead--service { color: var(--ink-2); }
.pdp__form > * + * { margin-top: var(--s-5); }
.pdp__form > input[type="hidden"] + * { margin-top: 0; }
.pdp__form .options + .options { margin-top: var(--s-5); }
.options__after { margin-top: var(--s-2); }
.pdp__note .textarea { min-height: 88px; }
.pdp__buy { display: flex; gap: var(--s-3); align-items: stretch; }
.pdp__buy .qty { flex: none; }
.pdp__buy .qty__btn { min-width: 44px; min-height: 44px; }
.pdp__buy .qty__input { min-height: 44px; }
.pdp__add { flex: 1 1 auto; }
.pdp__status { margin-top: var(--s-2) !important; color: var(--green); min-height: 0; }
.pdp__status:empty { display: none; }
.pdp__nojs > * + * { margin-top: var(--s-3); }
.pdp__size-finder > * + * { margin-top: var(--s-2); }
.pdp__size-finder label { display: block; }
.pdp__trust { padding-top: var(--s-2); }
.pdp__steps { grid-template-columns: minmax(0, 1fr) !important; }
@media (min-width: 600px) and (max-width: 1023px) { .pdp__steps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.pdp-page > .section { padding-left: 0; padding-right: 0; }
.pdp__care > * + * { margin-top: var(--s-3); }

/* Size table: the selected size row is marked, not only coloured. */
.size-table tr.is-selected th, .size-table tr.is-selected td { background: var(--bg); }
.size-table__chosen { display: none; font-weight: 400; color: var(--muted); font-size: 12px; }
.size-table tr.is-selected .size-table__chosen { display: inline; }
.size-table td .mono { white-space: nowrap; }

/* True-size drawing (inline SVG, redrawn by storefront.js). */
.true-size { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s-4); }
.true-size__svg { width: 100%; height: auto; }
.true-size figcaption { margin-top: var(--s-2); }
.ts-shelf { stroke: var(--rule); stroke-width: 1; }
.ts-box { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.ts-a4 { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; }
.ts-ruler, .ts-tick { stroke: var(--ink); stroke-width: 1; }
.ts-label { font-family: var(--font-mono); font-size: 13px; fill: var(--ink); }
.ts-label--muted { fill: var(--muted); }
.ts-label--small { font-size: 11px; fill: var(--muted); }
@media (max-width: 599px) {
  .ts-label { font-size: 22px; }
  .ts-label--small { font-size: 18px; }
}

/* Sticky buy bar on phones once the main button has scrolled away. */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--ink); box-shadow: var(--shadow-overlay); padding: var(--s-2) 0; }
.buy-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.buy-bar__info { display: flex; flex-direction: column; min-width: 0; }
.buy-bar__title { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) { .buy-bar { display: none !important; } }
html:not(.js) .buy-bar { display: none !important; }

/* --------------------------------------------------------------- services */
.services-page .section--tight > * + * { margin-top: var(--s-4); }
.services-page .product-grid { margin-bottom: var(--s-4); }

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  .collection[aria-busy="true"] .collection-results { transition: none; }
}
@media print {
  .filters, .collection-toolbar, .buy-bar, .pdp__form, .pdp__size-finder, .fit-form, .dims-form { display: none !important; }
}
.pdp__image-note { margin: var(--s-2) 0 0; font-size: var(--t-small); color: var(--muted); }

/* Home occasions: keep the rows inside the screen on phones and let the few chips wrap. */
.home-occasions__rows { grid-template-columns: minmax(0, 1fr); }
.home-occasions__row { min-width: 0; }
.home-occasions__row .chips { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
@media (min-width: 900px) {
  .home-occasions__rows { grid-template-columns: minmax(0, 1fr) auto; }
}

/* DF Studios home gallery: four photos, two up on phones. */
.home-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (min-width: 900px) { .home-gallery { grid-template-columns: 2fr 2fr 1fr 1fr; } }
.home-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); display: block; }
@media (min-width: 900px) { .home-gallery li:nth-child(n+3) img { aspect-ratio: 3 / 4.6; } .home-gallery li:nth-child(-n+2) img { aspect-ratio: auto; height: 100%; } }
.hero__panel img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; }

.hero__video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: var(--surface-2); }
/* Category tiles: the 4:3 collages always show whole, at every width. */
.cat-tile__media { aspect-ratio: 4 / 3; overflow: hidden; }
.cat-tile__media img { display: block; }

/* ---------------------------------------------------- home: cinematic hero */
/* The video fills the band edge to edge; the copy lines up with the header container. */
.hero--cinema { padding: 0; position: relative; }
.hero--cinema .hero__media { aspect-ratio: 4 / 3; background: #0B1628; overflow: hidden; }
.hero--cinema .hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; display: block; aspect-ratio: auto; border-radius: 0; }
.hero--cinema .hero__shade { display: none; }
.hero--cinema .hero__inner { padding-top: var(--s-6); padding-bottom: var(--s-7); }
.hero--cinema .hero__copy { max-width: 560px; }
.hero--cinema .hero__card { margin: var(--s-6) 0 0 auto; max-width: 320px; }
.hero--cinema .hero__card.bench-card--string::after { display: none; }
@media (min-width: 1024px) {
  .hero--cinema { min-height: clamp(560px, 78vh, 820px); display: flex; align-items: stretch; overflow: hidden; background: #0B1628; }
  .hero--cinema .hero__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero--cinema .hero__shade {
    display: block; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(11, 22, 40, 0.96) 0%, rgba(11, 22, 40, 0.88) 28%, rgba(11, 22, 40, 0.35) 52%, rgba(11, 22, 40, 0) 70%),
      linear-gradient(0deg, rgba(11, 22, 40, 0.55) 0%, rgba(11, 22, 40, 0) 30%);
  }
  .hero--cinema .hero__inner { position: relative; z-index: 2; display: flex; align-items: center; width: 100%; padding-top: var(--s-8); padding-bottom: var(--s-8); }
  .hero--cinema .hero__copy { max-width: 470px; color: #EEF2F8; }
  /* Over the video the copy stays light in both themes. */
  .hero--cinema .hero__copy .eyebrow, .hero--cinema .hero__meta { color: #9FB4D3; }
  .hero--cinema .hero__title, .hero--cinema .hero__lead { color: #EEF2F8; }
  .hero--cinema .btn--secondary { color: #EEF2F8; border-color: rgba(238, 242, 248, 0.7); background: rgba(11, 22, 40, 0.35); }
  .hero--cinema .btn--secondary:hover { background: rgba(238, 242, 248, 0.12); }
  .hero--cinema .hero__card {
    position: absolute; right: var(--gutter); bottom: var(--s-6); margin: 0; width: 270px;
    background: rgba(11, 22, 40, 0.82); border-color: rgba(122, 154, 191, 0.45); color: #EEF2F8;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .hero--cinema .hero__card .bench-card__list dt, .hero--cinema .hero__card .eyebrow { color: #9FB4D3; }
  .hero--cinema .hero__card .bench-card__list dd, .hero--cinema .hero__card .bench-card__title { color: #EEF2F8; }
}
@media (min-width: 1500px) { .hero--cinema .hero__video { object-position: 58% 50%; } }
@media (min-width: 1024px) {
  /* Keep the clip's own 4:3 shape: as tall as the band, docked right, fading into the navy on its left. */
  .hero--cinema .hero__media {
    inset: 0 0 0 auto; height: 100%; width: auto; aspect-ratio: 4 / 3; max-width: 74%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%); mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
  }
  .hero--cinema .hero__video { object-position: 50% 50%; }
  .hero--cinema .hero__shade { background: linear-gradient(0deg, rgba(11, 22, 40, 0.5) 0%, rgba(11, 22, 40, 0) 26%); }
  .hero--cinema { min-height: clamp(560px, 72vh, 760px); }
}
@media (min-width: 1500px) { .hero--cinema .hero__video { object-position: 50% 50%; } }
@media (min-width: 1024px) and (max-width: 1299px) {
  /* Narrower laptops: the clip reaches under the copy, so a navy fade keeps the text readable. */
  .hero--cinema .hero__shade { background: linear-gradient(90deg, rgba(11, 22, 40, 0.92) 0%, rgba(11, 22, 40, 0.75) 36%, rgba(11, 22, 40, 0) 58%), linear-gradient(0deg, rgba(11, 22, 40, 0.5) 0%, rgba(11, 22, 40, 0) 26%); }
}
.pdp__wa { margin-top: var(--s-3); }
.pdp__wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pdp__wa-btn svg { width: 22px; height: 22px; color: #25D366; }
/* The spec card now sits under the copy, never over the animation. */
.hero--cinema .hero__copy .hero__card { position: static; margin: var(--s-6) 0 0; width: auto; max-width: 420px; }
@media (min-width: 1024px) {
  .hero--cinema .hero__copy .hero__card { padding: var(--s-4) var(--s-5); }
  .hero--cinema .hero__copy .hero__card .bench-card__title { font-size: 18px; }
}
.pdp__thumbs { flex-wrap: wrap; }

/* Build your set (/build-your-set, public/js/build-set.js). */
.bys { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .bys { grid-template-columns: minmax(0, 1fr) 340px; } }
.bys__tools { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.bys__find .input { max-width: 520px; }
.bys-group + .bys-group { margin-top: var(--s-6); }
.bys-group__title { font-size: var(--t-h3); margin: 0 0 var(--s-3); }
.bys-rows { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.bys-row { max-width: none; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-2) var(--s-3); align-items: center; border: 1px solid var(--rule); background: var(--surface); border-radius: var(--r); padding: var(--s-2); transition: border-color .15s; }
.bys-row.is-picked { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.bys-row[hidden] { display: none; }
@media (min-width: 640px) { .bys-row { grid-template-columns: 96px minmax(0, 1fr) auto; } }
.bys-row__img { display: block; width: 88px; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; }
@media (min-width: 640px) { .bys-row__img { width: 96px; } }
.bys-row__img .pimg { width: 100%; height: 100%; }
.bys-row__main { min-width: 0; display: grid; gap: 4px; }
.bys-row__title { font-size: 17px; line-height: 1.25; margin: 0; }
.bys-row__title a { color: var(--ink); text-decoration: none; }
.bys-row__title a:hover { color: var(--accent-ink); text-decoration: underline; }
.bys-row__sets { margin: 0; font-size: 13px; color: var(--ink-2); }
.bys-row__opts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: 4px; }
.bys-opt { display: grid; gap: 2px; font-size: 13px; }
.bys-opt__label { color: var(--ink-2); }
.bys-opt .select { min-height: 36px; padding-top: 4px; padding-bottom: 4px; font-size: 14px; max-width: 260px; }
.bys-row__buy { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); grid-column: 1 / -1; }
@media (min-width: 640px) { .bys-row__buy { grid-column: auto; flex-direction: column; align-items: flex-end; } }
.bys-row__price { margin: 0; font-weight: 600; font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bys__summary { position: sticky; top: var(--s-4); }
.bys__card { border: 1px solid var(--rule); background: var(--surface); border-radius: var(--r); padding: var(--s-4); display: grid; gap: var(--s-3); }
.bys__sum-title { font-size: var(--t-h3); margin: 0; }
.bys__picked { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); font-size: 14px; max-height: 40vh; overflow: auto; }
.bys__picked li { display: flex; justify-content: space-between; gap: var(--s-2); max-width: none; }
.bys__picked-amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bys__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--rule); padding-top: var(--s-3); margin: 0; }
.bys__total strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.bys__card p { margin: 0; }
.bys__card .btn { width: 100%; justify-content: center; }
.bys__none { margin-top: var(--s-4); }

/* ------------------------------------------------ home: 3D turntable hero (sandbox) */
/* js/hero-frame.js turns the frame on a full-bleed canvas. While it runs (.hero3d--live) the section is
   tall and its stage is pinned; the headline drifts off as the turn starts, the notes race in one by
   one on the left, and the frame's card arrives at 360. .hero3d--static (no WebGL, reduced motion)
   shows the photo poster beside the copy instead. Lenis drives the smooth scroll. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.hero3d { position: relative; padding: 0; color: #EEF2F8; background: #0B1628; }
.hero3d__pin { position: relative; overflow: hidden; min-height: clamp(560px, 80vh, 820px); background: radial-gradient(ellipse 60% 70% at 64% 58%, #1c2a44 0%, #0B1628 70%); }
.hero3d__stage { position: absolute; inset: 0; }
.hero3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.hero3d--ready .hero3d__canvas { opacity: 1; }
.hero3d__poster { position: absolute; right: 8%; top: 8%; height: 84%; width: auto; max-width: none; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.hero3d--live .hero3d__poster { display: none; }
.hero3d__loading { display: none; position: absolute; left: 62%; top: 50%; transform: translate(-50%, -50%); margin: 0; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: #9FB4D3; transition: opacity 0.6s ease; }
.hero3d--live .hero3d__loading { display: block; }
.hero3d--ready .hero3d__loading { opacity: 0; }
.hero3d__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11, 22, 40, 0.7) 0%, rgba(11, 22, 40, 0.3) 34%, rgba(11, 22, 40, 0) 55%); }
.hero3d__inner { position: relative; z-index: 2; height: 100%; min-height: inherit; display: flex; align-items: center; }
.hero3d__copy { max-width: 540px; will-change: opacity, transform; }
.hero3d__copy > * + * { margin-top: var(--s-4); }
.hero3d__copy .eyebrow, .hero3d__meta { color: #9FB4D3; }
.hero3d__title { color: #EEF2F8; font-size: clamp(50px, 8vw, 128px); line-height: 0.9; max-width: 8ch; }
.hero3d__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; }
.hero3d__title .w > span { display: inline-block; }
.hero3d__lead { color: #EEF2F8; opacity: 0.88; max-width: 36ch; }
.hero3d__actions { margin-top: var(--s-5); max-width: 520px; }
.hero3d .btn--secondary { color: #EEF2F8; border-color: rgba(238, 242, 248, 0.7); background: rgba(11, 22, 40, 0.35); }
.hero3d .btn--secondary:hover { background: rgba(238, 242, 248, 0.12); }
.hero3d__meta { font-size: 13px; max-width: none; }
.hero3d__notes, .hero3d__hud, .hero3d__cue, .hero3d__card { display: none; }

/* Live: a tall section with a pinned, full-height stage. */
.hero3d--live { height: 360vh; }
.hero3d--live .hero3d__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
@media (min-width: 900px) { .hero3d--live .hero3d__pin { top: var(--hero-top, 0px); height: calc(100vh - var(--hero-top, 0px)); } }

/* Notes race in from the right with a little skew and blur, and leave to the left. */
.hero3d--live .hero3d__notes { display: block; position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(420px, 38vw); height: 220px; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.hero3d__note { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translate3d(90px, 0, 0) skewX(-10deg); filter: blur(6px); transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.55s ease; }
.hero3d__note.is-past { transform: translate3d(-70px, 0, 0) skewX(8deg); }
.hero3d__note.is-on { opacity: 1; transform: none; filter: none; }
.hero3d__note-num { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); color: #F26A21; font-size: 15px; letter-spacing: 0.16em; }
.hero3d__note-num::after { content: ""; height: 2px; width: 64px; background: linear-gradient(90deg, #F26A21, rgba(242, 106, 33, 0)); transform-origin: left; transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s; }
.hero3d__note.is-on .hero3d__note-num::after { transform: scaleX(1); }
.hero3d__note-title { color: #EEF2F8; font-size: clamp(30px, 3.4vw, 52px); line-height: 0.95; margin: 10px 0 12px; }
.hero3d__note p { color: #C4D0E2; font-size: 17px; margin: 0; max-width: 34ch; }

/* The frame's card arrives at the end of the turn. */
.hero3d--live .hero3d__card { display: block; position: absolute; left: var(--gutter); top: 50%; width: min(400px, 36vw); margin: 0; transform: translate3d(90px, -50%, 0) skewX(-8deg); opacity: 0; filter: blur(6px); pointer-events: none; transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.55s ease; background: rgba(11, 22, 40, 0.8); border-color: rgba(122, 154, 191, 0.45); color: #EEF2F8; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero3d--live .hero3d__card.is-on { opacity: 1; transform: translate3d(0, -50%, 0); filter: none; pointer-events: auto; }
.hero3d__card .bench-card__list dt, .hero3d__card .eyebrow, .hero3d__card-note { color: #9FB4D3; }
.hero3d__card .bench-card__list dd, .hero3d__card .bench-card__title { color: #EEF2F8; }
.hero3d__card.bench-card--string::after, .hero3d__card.bench-card::before { display: none; }

/* Degrees turned, like a rev counter, along the bottom. */
.hero3d--live .hero3d__hud { display: flex; align-items: center; gap: 14px; position: absolute; z-index: 2; right: var(--gutter); bottom: var(--s-5); color: #9FB4D3; font-size: 13px; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.hero3d__hud [data-deg] { color: #EEF2F8; font-size: 20px; min-width: 4ch; }
.hero3d__track { width: 160px; height: 2px; background: rgba(159, 180, 211, 0.25); overflow: hidden; }
.hero3d__bar { display: block; height: 100%; background: #F26A21; transform-origin: left; transform: scaleX(0); }
.hero3d--live .hero3d__cue { display: block; position: absolute; z-index: 2; left: 50%; bottom: var(--s-5); margin: 0; transform: translateX(-50%); color: #9FB4D3; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; }
.hero3d__cue::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(#9FB4D3, transparent); animation: hero3dCue 2s ease-in-out infinite; transform-origin: top; }
@keyframes hero3dCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* The headline races in word by word, the rest follows. */
@keyframes hero3dWord { from { transform: translate3d(0, 110%, 0); } to { transform: none; } }
@keyframes hero3dRise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
.hero3d--live .hero3d__title .w > span { animation: hero3dWord 1.3s cubic-bezier(0.16, 1, 0.3, 1) both 0.2s; }
.hero3d--live .hero3d__title .w:nth-child(2) > span { animation-delay: 0.28s; }
.hero3d--live .hero3d__title .w:nth-child(3) > span { animation-delay: 0.36s; }
.hero3d--live .hero3d__copy .eyebrow, .hero3d--live .hero3d__lead, .hero3d--live .hero3d__actions, .hero3d--live .hero3d__meta { animation: hero3dRise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both 0.55s; }

/* Phones and tablets: copy on top, the frame centred below, notes along the bottom. */
@media (max-width: 1023px) {
  .hero3d__shade { background: linear-gradient(180deg, rgba(11, 22, 40, 0.85) 0%, rgba(11, 22, 40, 0.4) 30%, rgba(11, 22, 40, 0) 50%, rgba(11, 22, 40, 0) 62%, rgba(11, 22, 40, 0.85) 100%); }
  .hero3d__inner { align-items: flex-start; padding-top: var(--s-6); }
  .hero3d__title { font-size: clamp(44px, 13vw, 80px); }
  .hero3d__lead { font-size: 16px; }
  .hero3d__meta { display: none; }
  .hero3d--live .hero3d__notes { top: auto; bottom: var(--s-8); transform: none; left: var(--gutter); right: var(--gutter); width: auto; height: 150px; }
  .hero3d__note-title { font-size: 28px; }
  .hero3d__note p { font-size: 15px; }
  .hero3d--live .hero3d__card { top: auto; bottom: var(--s-7); left: var(--gutter); right: var(--gutter); width: auto; transform: translate3d(60px, 0, 0); }
  .hero3d--live .hero3d__card.is-on { transform: none; }
  .hero3d__card .bench-card__row:not(:last-child), .hero3d__card .eyebrow { display: none; }
  .hero3d__card .bench-card__title { font-size: 18px; }
  .hero3d--live .hero3d__hud { bottom: var(--s-4); }
  .hero3d__track { width: 90px; }
  .hero3d--live .hero3d__cue { display: none; }
  .hero3d__poster { right: 50%; transform: translateX(50%); top: auto; bottom: 4%; height: 52%; }
}
@media (prefers-reduced-motion: reduce) { .hero3d { height: auto !important; } }

/* 3D photo variant: the photo fills the stage; the canvas takes over once the depth is baked. */
.hero3d--photo .hero3d__pin { background: #0B1628; }
.hero3d__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 62% 50%; transition: opacity 1.2s ease; }
.hero3d--photo.hero3d--ready .hero3d__photo { opacity: 0; }
.hero3d--photo .hero3d__shade { background: linear-gradient(90deg, rgba(11, 22, 40, 0.92) 0%, rgba(11, 22, 40, 0.7) 28%, rgba(11, 22, 40, 0) 52%), linear-gradient(0deg, rgba(11, 22, 40, 0.6) 0%, rgba(11, 22, 40, 0) 24%); }
.hero3d__hud [data-count] { color: #EEF2F8; font-size: 20px; min-width: 2ch; }
@media (max-width: 1023px) {
  .hero3d--photo .hero3d__shade { background: linear-gradient(180deg, rgba(11, 22, 40, 0.92) 0%, rgba(11, 22, 40, 0.72) 36%, rgba(11, 22, 40, 0.1) 56%, rgba(11, 22, 40, 0.2) 70%, rgba(11, 22, 40, 0.9) 100%); }
  .hero3d__photo { object-position: 70% 50%; }
}

/* ------------------------------------------------ home: page motion (sandbox) */
/* js/home-motion.js adds .motion to <html> and runs these; without it everything sits still. */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; }
.sw > span { display: inline-block; will-change: transform; }

/* The marquee band under the hero. */
.marquee { overflow: hidden; background: #0B1628; border-block: 1px solid rgba(122, 154, 191, 0.25); padding: var(--s-4) 0; }
.marquee__track { display: flex; align-items: center; gap: var(--s-5); width: max-content; white-space: nowrap; will-change: transform; }
.marquee__word { font-family: var(--font-serif); font-weight: 600; text-transform: uppercase; font-size: clamp(34px, 5.4vw, 76px); line-height: 1; color: #EEF2F8; letter-spacing: 0.01em; }
.marquee__word--outline { color: transparent; -webkit-text-stroke: 1px rgba(238, 242, 248, 0.7); }
.marquee__dot { color: #F26A21; font-size: clamp(14px, 1.6vw, 22px); }

/* The statement, lit word by word as it scrolls through. */
.statement-wrap { padding-block: var(--s-8); }
.statement { font-family: var(--font-serif); font-weight: 600; font-size: clamp(30px, 4.4vw, 64px); line-height: 1.08; max-width: 22ch; color: var(--ink); text-wrap: balance; }
.statement .sw { overflow: visible; }

/* Wide screens: the gallery runs sideways while its section is pinned. */
.lookbook { overflow: hidden; }
.home-gallery--track { display: flex !important; flex-wrap: nowrap; gap: var(--gap); width: max-content; grid-template-columns: none !important; will-change: transform; }
.home-gallery--track > li { flex: none; height: min(64vh, 620px); overflow: hidden; border-radius: var(--r); }
.home-gallery--track img { height: 100% !important; width: 100% !important; aspect-ratio: auto !important; max-width: none; object-fit: cover; }
.motion .cat-tile__media, .motion .product-card__media { overflow: hidden; }
