/* LAMBREV. One building at night: black stone, ivory type, bordeaux for depth, star red in
   small amounts only. Tokens first, then shared pieces, then each section in page order. */

:root {
  /* The screen's height, fixed by js/screen.js (Chrome on the iPhone moves vh while scrolling); these are fallbacks. */
  --svh: 1svh; --lvh: 1lvh;
  --black: #000;
  --stone: #121110;
  --stone-2: #1c1a19;
  --ivory: #e9e4da;
  --dim: rgba(233, 228, 218, 0.66);
  --faint: rgba(233, 228, 218, 0.16);
  --bordeaux: #5a0f14;
  --red: #c8102e;
  --logo-red: #b4131f;   /* the red of the script logo, measured off assets/brand/script-red.webp (Mark, 2026-11-17) */
  --steel: #a3a6aa;

  --display: 'Marcellus', 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --num: 'Alfa Slab One', 'Rockwell', serif;

  --gutter: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-heavy: cubic-bezier(0.65, 0.05, 0, 1);
  --top-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); color-scheme: dark; -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* No scrollbar at the window's edge (Mark, 2026-11-17); the page scrolls as before. */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font: 400 1.0625rem/1.62 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Film grain over everything, so flat blacks never look like a screen. */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }
/* The #rail marker is only a place to land; Safari ringed it as a little white box at the left edge (Mark, 2026-11-19). */
.walk-arrive:focus, .walk-arrive:focus-visible { outline: none; }
section[id], main[id] { scroll-margin-top: calc(var(--top-h) + 12px); }
#rail, #looks, #one-piece { scroll-margin-top: 0; }   /* both make room for the header themselves */
::selection { background: var(--red); color: #fff; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: 0.005em; text-wrap: balance; }
.num { font-family: var(--num); font-weight: 400; letter-spacing: 0.03em; }
.star { width: 1em; height: 1em; fill: var(--red); flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 80; padding: 10px 16px; background: var(--ivory); color: #000; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  background: var(--ivory); color: #000;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em;
  border: 1px solid var(--ivory); border-radius: 2px;
  transition: transform 0.2s var(--ease);
}
.btn:hover { background: #fff; border-color: #fff; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-line { background: transparent; color: var(--ivory); border-color: var(--faint); }
.btn-line:hover { background: var(--ivory); color: #000; border-color: var(--ivory); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--top-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  font-size: 0.92rem; letter-spacing: 0.03em;
}
.top::before {
  content: ''; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(#000 20%, transparent); opacity: 0; transition: opacity 0.4s var(--ease);
}
.top.is-solid::before { opacity: 0.92; }
.top nav { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.top a, .top-bag { padding-block: 10px; color: var(--dim);  }
.top a:hover, .top-bag:hover { color: var(--ivory); }
.top .top-mark { font-family: var(--display); font-size: 1.12rem; letter-spacing: 0.42em; margin-right: -0.42em; color: var(--ivory); }
/* The bag is an icon (Mark, 2026-11-15) with its count in a small badge at the corner. */
.top-bag { justify-self: end; position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; }
.top-bag-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; transition: transform 0.3s var(--ease); }
.top-bag:active .top-bag-icon { transform: scale(0.9); }
.top-bag-count[hidden] { display: none; }
.top-bag-count {
  position: absolute; top: 4px; right: 2px; display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding-inline: 4px;
  border-radius: 9px; background: var(--ivory); color: #000; font-family: var(--body); font-weight: 600; font-size: 0.66rem; line-height: 1; letter-spacing: 0;
}
@media (max-width: 560px) { .top nav a:nth-child(2) { display: none; } }
/* The red script logo instead of the white word, on every page and screen (phones: Mark, 2026-11-15; everywhere:
   Mark, 2026-11-16). On the home page the big logo from the hall shrinks into this spot as you walk in (js/home.js)
   and stays there, so the header's own copy stays invisible there. */
.top .top-mark { margin-right: 0; line-height: 0; }
.top-mark-word { display: none; }
.top-mark-script { display: block; width: 140px; height: auto; }
.logo-docks .top-mark-script { visibility: hidden; }
.logo-docks .entrance-title { position: fixed; top: 37%; z-index: 41; pointer-events: none; }
.logo-docks .entrance-title h1 { transform-origin: 50% 50%; will-change: transform; }
@media (max-width: 640px) {
  .top-mark-script { width: 116px; }
  .logo-docks .entrance-title { top: 29%; }
}

.flyer { position: fixed; z-index: 85; pointer-events: none; object-fit: contain; }

/* ---------- "Image needed" boxes ---------- */
.slot {
  position: relative; display: flex; align-items: flex-end;
  border: 1px dashed var(--red);
  background:
    repeating-linear-gradient(135deg, rgba(200, 16, 46, 0.2) 0 2px, transparent 2px 16px),
    linear-gradient(160deg, #4a0c11, #2a0709);
}
.slot-tall { aspect-ratio: 4 / 5; }
.slot-wide { aspect-ratio: 3 / 2; }
.slot-banner { aspect-ratio: 21 / 9; }
.slot figcaption { display: grid; gap: 6px; padding: clamp(16px, 2vw, 26px); max-width: 46ch; font-size: 0.92rem; line-height: 1.45; }
.slot-flag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.03em; }
.slot-flag .star { fill: var(--ivory); }
.slot-what { color: rgba(233, 228, 218, 0.86); }
.slot-file { color: rgba(233, 228, 218, 0.6); font-size: 0.8rem; overflow-wrap: anywhere; }

/* ---------- 1 and 2. The walk: the hall, with the real rail at its far end (Mark, 2026-11-16) ---------- */
/* Without the walk (no script, or reduced motion) the hall is a still first screen and the rail follows it. */
.walk { position: relative; background: #000; }
.walk-pin { position: relative; display: grid; }
.hall-layer { grid-area: 1 / 1; height: calc(100 * var(--svh)); overflow: hidden; }
.hall-layer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hall-doors { z-index: 1; }
.hall-front, .walk-arrive { display: none; }
.walk-pin > .entrance-title { grid-area: 1 / 1; position: relative; top: auto; align-self: start; margin-top: calc(37 * var(--svh)); z-index: 4; }
.walk-pin > .entrance-enter { grid-area: 1 / 1; align-self: end; justify-self: center; position: relative; left: auto; bottom: auto; transform: none; margin-bottom: clamp(26px, calc(6 * var(--svh)), 56px); z-index: 4; }
/* With it, the page holds still while you scroll through the walk: every layer is scaled from one point by
   js/home.js, the rail inside the far wall's opening, until the rail fills the screen; then the page moves on. */
.walk-on .walk { height: calc(calc(100 * var(--svh)) + var(--walk-len)); --walk-len: calc(180 * var(--svh)); }
.walk-on .walk-pin { position: sticky; top: 0; display: block; height: calc(100 * var(--svh)); overflow: hidden; contain: paint; }
.walk-on .hall-layer { position: absolute; inset: 0; height: auto; overflow: visible; transform-origin: 0 0; will-change: transform, opacity; pointer-events: none; }
.walk-on .hall-layer img { position: absolute; left: 0; top: 0; width: auto; height: auto; max-width: none; object-fit: fill; }
.walk-on .hall-back { z-index: 0; }
.walk-on .rail { position: absolute; inset: 0; z-index: 1; transform-origin: 0 0; will-change: transform; background: transparent; }
.walk-on .hall-front { display: block; z-index: 2; }
.walk-on .hall-doors { display: block; z-index: 3; }
.walk-on .walk-pin > .entrance-title { position: absolute; left: 0; right: 0; top: 37%; margin: 0; z-index: 4; }
.walk-on .walk-pin > .entrance-enter { position: absolute; left: 50%; bottom: clamp(26px, calc(6 * var(--svh)), 56px); margin: 0; transform: translateX(-50%); z-index: 4; }
.walk-on .walk-arrive { display: block; position: absolute; left: 0; top: calc(var(--walk-len) * 0.8); width: 1px; height: 1px; }
/* The rail's own wall, words and buttons only come in as you arrive; until then only its pieces hang in the hall. */
.walk-on .rail-wall, .walk-on .rail-head, .walk-on .rail-info, .walk-on .rail-ways-row, .walk-on .rail-nav { opacity: var(--arrive, 1); }
/* While it is still smaller than the screen its wall's sides fade out, so they never show as a hard edge. */
.walk-on .rail.is-walking .rail-wall {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--edge), #000 calc(100% - var(--edge)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--edge), #000 calc(100% - var(--edge)), transparent);
}
.walk-on .rail.is-walking { pointer-events: none; }
.walk-on .rail.is-walking .rail-ways-row, .walk-on .rail.is-walking .rail-nav { visibility: hidden; }
/* The logo is centred on the spot just above the spotlight, at the far end of the hall (Mark, 2026-11-15). */
.entrance-title {
  --logo-w: min(70vw, 600px, calc(78 * var(--svh)));
  position: absolute; left: 0; right: 0; top: 37%; display: flex; justify-content: center;
  padding-inline: var(--gutter); will-change: transform, opacity;
}
.entrance-title h1 { width: var(--logo-w); margin-top: calc(var(--logo-w) / -6); filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.9)); }
.entrance-enter {
  display: grid; justify-items: center; gap: 12px; padding: 8px 14px; color: var(--dim); font-size: 0.9rem; letter-spacing: 0.06em;
}
.entrance-enter:hover { color: var(--ivory); }
.entrance-enter i { width: 1px; height: 44px; background: linear-gradient(var(--red), transparent); transform-origin: top; animation: drip 2.4s var(--ease-heavy) infinite; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 2. The rail ---------- */
.rail { position: relative; display: flex; flex-direction: column; min-height: calc(100 * var(--svh)); padding-top: calc(var(--top-h) + clamp(18px, calc(4 * var(--svh)), 44px)); background: #000; overflow: hidden; }
.rail-wall { position: absolute; inset: 0; background: url('../assets/site/wall.webp') 50% 100% / cover no-repeat; }
.rail-wall::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#000, transparent 22%, transparent 84%, #000); }
.rail-head { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; padding-inline: var(--gutter); }
.rail-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.rail-head p { color: var(--dim); max-width: 38ch; font-size: 0.98rem; }
.rail-stage { position: relative; flex: 1; min-height: clamp(400px, calc(52 * var(--svh)), 760px); margin-top: clamp(4px, calc(1.5 * var(--svh)), 16px); touch-action: pan-y; }
.rail-bar {
  position: absolute; left: 7%; right: 7%; top: 26px; height: 5px; border-radius: 3px;
  background: linear-gradient(#e2e4e7, #7b7e82 55%, #34363a);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.7);
}
.rail-bar::before, .rail-bar::after { content: ''; position: absolute; top: -4px; width: 9px; height: 13px; border-radius: 2px; background: linear-gradient(#c9ccd0, #4a4c50); }
.rail-bar::before { left: -4px; } .rail-bar::after { right: -4px; }
.rail-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Phones: a rail you swipe, running off both edges; no arrows and no colour dots (Mark, 2026-11-15). */
/* Phones: blackened steel, wall to wall inside the opening (Mark, 2026-11-21: like the one-piece's). */
.rail.is-compact .rail-bar { background: linear-gradient(#5a5a5e, #1a1a1c 30%, #050505 75%, #000); box-shadow: 0 8px 14px rgba(0, 0, 0, 0.8); }
.rail.is-compact .rail-bar::before, .rail.is-compact .rail-bar::after { background: linear-gradient(#4a4a4e, #0a0a0b); }
.rail.is-compact .rail-nav { display: none; }
/* Phones: the colour dots under each piece too (Mark, 2026-11-17), a little smaller. */
.rail.is-compact .rail-way { width: 30px; height: 30px; }
.rail.is-compact .rail-way i { width: 14px; height: 14px; }
/* Three rails on a phone (Mark, 2026-11-17), on the wall made for phones; its red line sits low, under the bottom
   rail (js/home.js PHONE_LINE). The lower two rails come in as you arrive at the end of the hall. */
.rail-bar.is-row { display: none; }
.rail.is-compact .rail-bar.is-row { display: block; transition: opacity 0.6s var(--ease); }
.rail.is-compact.is-far .rail-bar.is-row { opacity: 0; }
/* Phones: Mark's wall of lit bays, one tile per rail (size and place set by js/home.js), fading in and out at the ends. */
.rail.is-compact .rail-wall { background-image: url('../assets/site/rail-bays-phone.webp'); background-repeat: repeat-y; background-position: 50% 0; }
.rail.is-compact { padding-top: calc(var(--top-h) + 6px); }
/* Bigger pieces on phones (Mark, 2026-11-17): "The rail" and its help line go, the rails take the room. */
.rail.is-compact .rail-head { display: none; }
.rail.is-compact .rail-info { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 0; text-align: center; }   /* the name, Sold out under it (Mark) */
.rail.is-compact .rail-name { font-size: 1.15rem; }
.rail.is-compact .rail-state { font-size: 0.85rem; }
.rail.is-compact .rail-stage { margin-top: 0; }
.rail.is-compact .rail-wall::after { background: linear-gradient(#000, transparent 5%, transparent 95%, #000); }
/* While walking in, only the top rail hangs at the end of the hall: only its bays show. */
.rail.is-compact.is-far .rail-wall { -webkit-mask-image: linear-gradient(#000 calc(var(--tile-h) * 0.9), transparent var(--tile-h)); }
/* Phones (Mark, 2026-11-21): rails of two, each piece named under it. The walk's pinned screen is as tall as the rails
   (--pin-h, set by js/home.js), so the walk ends on the top rail and the page carries on down the rest. */
.rail-label { display: none; }
.rail-swipe { display: none; }
/* The swipe hint (phones): a faint finger sweeping side to side under each piece, gone once a piece is turned by hand. */
.rail.is-compact .rail-swipe { display: block; position: absolute; width: 42px; height: 32px; margin-left: -21px; color: var(--ivory); opacity: 0.42; pointer-events: none; transition: opacity 0.6s var(--ease); }
.rail-swipe svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rail-swipe .arc { opacity: 0.6; }
@media (prefers-reduced-motion: no-preference) {
  .rail.is-compact .rail-swipe svg { animation: swipe-hint 2.4s var(--ease) infinite; }
}
@keyframes swipe-hint { 0%, 100% { transform: translateX(-7px); } 50% { transform: translateX(7px); } }
.rail.is-compact.is-far .rail-swipe { visibility: hidden; }
.rail.was-swiped .rail-swipe { opacity: 0; }
.rail.is-compact .rail-label { display: block; position: absolute; transform: translateX(-50%); margin: 0; text-align: center; white-space: nowrap; font-family: var(--display); font-size: 0.98rem; line-height: 1.15; pointer-events: none; }
.rail.is-compact .rail-label .num { display: block; font-family: var(--body); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.08em; color: var(--red); margin-bottom: 2px; }
@media (max-width: 640px) {
  .walk-on .walk { height: calc(var(--pin-h, calc(100 * var(--lvh))) + var(--walk-len)); }
  .walk-on .walk-pin { height: var(--pin-h, calc(100 * var(--lvh))); }
  /* Enter stays at the bottom of the screen, not of the (taller) pinned rail. */
  .walk-on .walk-pin > .entrance-enter { bottom: auto; top: calc(calc(100 * var(--svh)) - clamp(26px, calc(6 * var(--svh)), 56px) - 72px); }
}
.rail-piece { position: absolute; top: 0; display: block; cursor: grab; border-radius: 4px; touch-action: pan-y; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.rail-piece.is-held { cursor: grabbing; }
/* Arrows at either end of the rail: five hang in view, the rest are a press away. */
.rail-nav[hidden], .lineup[hidden] { display: none; }
/* Sections and links Mark has hidden for now (copies in hidden sections/). */
main > section[hidden], nav a[hidden] { display: none; }
.rail-arrow { position: absolute; z-index: 4; top: 40%; }
.rail-arrow.is-prev { left: max(10px, calc(var(--gutter) - 30px)); }
.rail-arrow.is-next { right: max(10px, calc(var(--gutter) - 30px)); }
.rail-nav.is-under .rail-arrow.is-prev { left: calc(50% - 56px); }
.rail-nav.is-under .rail-arrow.is-next { right: calc(50% - 56px); }
.rail-arrow:disabled { opacity: 0; pointer-events: none; }
.rail-nav.is-under .rail-arrow:disabled { opacity: 0.3; }
.rail-arrow:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.rail-piece:focus-visible { outline-offset: -6px; }
/* Drawn exactly where its 3D version will hang (sprite 0.9 of its height wide, hook 3% down), so the swap is unseen. */
.rail-piece img { position: absolute; left: -25%; top: var(--hang, 0px); width: 150%; max-width: none; height: 100%; pointer-events: none; }
.has-gl .rail-piece img { opacity: 0; }   /* the 3D pieces have loaded and hang in their places */
/* All the plain photographs come in together (js/home.js). */
.rail-pieces { opacity: 0; }
.rail-pieces.is-in { opacity: 1; }

.rail-empty { position: absolute; top: 0; width: 0; pointer-events: none; }
.rail-empty-swing { position: absolute; left: 0; top: 16px; transform-origin: 0 6px; animation: idle 7s ease-in-out infinite alternate; }
.rail-empty:nth-of-type(2n) .rail-empty-swing { animation-duration: 8.6s; animation-direction: alternate-reverse; }
@keyframes idle { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.rail-empty svg { position: absolute; left: -62px; top: 0; width: 124px; max-width: none; height: 62px; overflow: visible; }
.rail-empty svg path { fill: none; stroke: #6d7074; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rail-tag {
  position: absolute; left: -58px; top: 78px; width: 116px; padding: 26px 10px 14px; text-align: center;
  font-size: 0.74rem; line-height: 1.35; color: rgba(233, 228, 218, 0.88);
  border: 1px dashed var(--red);
  background: repeating-linear-gradient(135deg, rgba(200, 16, 46, 0.2) 0 2px, transparent 2px 12px), linear-gradient(160deg, #4a0c11, #2a0709);
  pointer-events: auto;
}
.rail-tag::before { content: ''; position: absolute; left: 50%; top: -18px; width: 1px; height: 28px; background: #6d7074; }
.rail-tag::after { content: ''; position: absolute; left: 50%; top: 9px; width: 7px; height: 7px; margin-left: -4px; border-radius: 50%; background: #000; box-shadow: 0 0 0 1px #6d7074; }
.rail-tag b { display: block; margin-bottom: 4px; font-weight: 600; color: var(--ivory); }

/* Name on top, "Sold out" under it. (The hover-only "Open the piece" button is gone, Mark 2026-11-16: clicking the piece opens it.) */
.rail-info { position: relative; display: grid; justify-items: center; gap: 4px; padding: 0 var(--gutter); margin-top: clamp(4px, calc(1.5 * var(--svh)), 16px); text-align: center; }
.rail-name { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.1; }
.rail-name .num { font-size: 0.62em; color: var(--red); margin-right: 0.5em; vertical-align: 0.14em; }
.rail-state { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 0.95rem; }
/* The colour dots under each piece on the rail. */
.rail-ways-row { position: absolute; inset: 0; pointer-events: none; }
.rail-ways { position: absolute; display: flex; gap: 2px; transform: translateX(-50%); pointer-events: auto; }
.rail-ways.is-stacked { flex-direction: column; gap: 0; }
.rail-way { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; touch-action: manipulation; transition: transform 0.2s var(--ease); }
/* The chosen colour is shown quietly (Mark, 2026-11-15: the bright ring popped out too much): the others are dimmed and
   smaller, the chosen one full strength with only a faint ring. */
.rail-way i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(233, 228, 218, 0.3); opacity: 0.5; transform: scale(0.82); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.rail-way:hover i { opacity: 0.85; transform: none; }
.rail-way[aria-pressed='true'] i { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px rgba(233, 228, 218, 0.3), 0 0 0 2px #000, 0 0 0 3px rgba(233, 228, 218, 0.22); }
.rail-way:active { transform: scale(0.9); }
.rail-way:focus-visible { outline: 1px solid var(--ivory); outline-offset: 0; }

/* ---------- 2b. Hourglass One-Piece, the women's limited edition (Mark, 2026-11-19) ---------- */
/* A window lit bordeaux from behind: the two women in the middle, each colourway turning on its hanger beside her.
   --h is how tall the women stand and the hangers hang; everything in the row is sized from it. */
.op {
  --h: clamp(420px, min(calc(calc(100 * var(--svh)) - 380px), 46vw), 700px);
  --fw: calc(var(--h) * 0.4);            /* a woman: her picture is 440 x 1100, as tall as the row */
  --hw: calc(var(--h) * 0.42);           /* a hanger's column; it hangs 0.9 of the row, the piece about 0.31 of --h wide */
  --gap: clamp(14px, 3.4vw, 64px);
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--top-h) + clamp(16px, calc(4 * var(--svh)), 48px)) var(--gutter) clamp(80px, calc(12 * var(--svh)), 140px);
  background:
    linear-gradient(#000, transparent 22%, transparent 80%, #000),
    radial-gradient(30% 40% at 50% 58%, rgba(132, 22, 30, 0.42), transparent 100%),
    radial-gradient(64% 58% at 50% 60%, #2a0b0e 0, #110607 55%, #000 100%);
}
/* The floor they stand on: a faint line of light across, fading at both ends. */
.op-stage::after {
  content: ''; position: absolute; left: 50%; bottom: 0; z-index: 0; width: min(100%, 1180px); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(233, 228, 218, 0.22) 50%, transparent);
}
.op-head { position: relative; z-index: 2; display: grid; justify-items: center; gap: 8px; text-align: center; }
.op-plate { display: inline-flex; align-items: center; gap: 10px; color: var(--dim); font-size: 0.9rem; letter-spacing: 0.06em; }
.op-plate .star { width: 13px; height: 13px; }
.op-title { font-size: clamp(2.3rem, 5.2vw, 4.8rem); text-transform: uppercase; letter-spacing: 0.08em; line-height: 0.98; }
.op-line { max-width: 52ch; color: var(--dim); }
.op-stage { position: relative; margin-top: clamp(20px, calc(3.5 * var(--svh)), 44px); padding-bottom: 64px; }
.op-row {
  position: relative; z-index: 1; display: grid; justify-content: center; align-items: end;
  grid-template-columns: var(--hw) var(--fw) var(--fw) var(--hw); grid-template-areas: 'hb fb fn hn';
  column-gap: var(--gap); height: var(--h);
}
.op-hanger[data-way='bordeaux'] { grid-area: hb; } .op-hanger[data-way='nero'] { grid-area: hn; }
.op-hanger { position: relative; height: 90%; }
.op-fig[data-way='bordeaux'] { grid-area: fb; } .op-fig[data-way='nero'] { grid-area: fn; }

/* A hanger: its own short bar, and its photograph until the turning piece is drawn over it. */
.op-hang { position: relative; display: block; height: 100%; cursor: grab; touch-action: pan-y; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.op-hang.is-held { cursor: grabbing; }
.op-hang:hover .op-bar, .op-hang:focus-visible .op-bar { filter: brightness(1.25); }
.op-hang:active .op-bar { filter: brightness(1.4); }
.op-hang:focus-visible { outline: 1px solid var(--ivory); outline-offset: 6px; }
.op-bar.rail-bar { left: 4%; right: 4%; top: 3%; }
/* Black rails (Mark, 2026-11-19): blackened steel, a thin highlight along the top so it still reads on the dark wall. */
.op-bar.rail-bar { background: linear-gradient(#5a5a5e, #1a1a1c 30%, #050505 75%, #000); box-shadow: 0 8px 14px rgba(0, 0, 0, 0.8); }
.op-bar.rail-bar::before, .op-bar.rail-bar::after { background: linear-gradient(#4a4a4e, #0a0a0b); }
/* A piece as Mark's own five photographs (js/photo-hanger.js), one on show at a time; turning sweeps to the next through
   a still, blurred copy. Centred with `translate`, so the swing on the hook (`transform`) adds to it; mirrored with
   `scale`, so the sweep (`transform`) adds to that. It turns about the hook, 3% down its photographs. Used on the home
   page and the piece's own page. */
.ph-swing { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 1404 / 1560; translate: -50% 0; transform-origin: 50% 3%; pointer-events: none; }
.ph-photo, .ph-blur { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; }
.ph-photo.is-on { opacity: 1; }
.ph-blur { filter: blur(12px); }
.is-mirror { scale: -1 1; }

/* A woman: her front, and her back fading in over it when she turns. */
.op-fig { position: relative; height: 100%; }
.op-model { position: absolute; inset: 0; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.op-model:focus-visible { outline: 1px solid var(--ivory); outline-offset: 6px; }
.op-model img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; pointer-events: none; transition: opacity 0.7s var(--ease); }
.op-back { opacity: 0; }
.op-fig.is-turned .op-back { opacity: 1; }
.op-fig.is-turned .op-front { opacity: 0; }
/* A soft shadow where she stands. */
.op-fig::before { content: ''; position: absolute; left: 8%; right: 8%; bottom: -8px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent); }
.op-cap { position: absolute; left: 50%; top: calc(100% + 18px); display: flex; align-items: center; gap: 14px; transform: translateX(-50%); white-space: nowrap; }
.op-name { display: inline-flex; align-items: center; gap: 9px; font-size: 0.95rem; }
.op-name i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(233, 228, 218, 0.3); }
.op-turn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px; border: 1px solid var(--faint); border-radius: 16px; font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.4); transition: transform 0.2s var(--ease);
}
.op-turn svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease); }
.op-turn .axis { opacity: 0.45; }
.op-turn:hover { background: var(--ivory); color: #000; border-color: var(--ivory); }
.op-turn:active svg { transform: rotate(-40deg); }
.op-turn:active { transform: scale(0.92); }
.op-foot { position: relative; z-index: 2; display: grid; justify-items: center; gap: 10px; margin-top: clamp(24px, calc(4 * var(--svh)), 44px); text-align: center; }
.op-state { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.04em; }

/* The room (Mark, 2026-11-19; assets/site/hourglass-room.webp from assets/_source/hourglass-room.png, 1536 x 1024):
   on a screen the row is laid out on the picture itself, by fractions measured on it. The hangers hang in the two
   alcoves (centres 21.2% and 78.8% across, the bar under each spotlight, 30% down); the women stand on the platform
   (its top 77.2% down), either side of its middle. The women are 0.47 of the picture's height, so it is sized from
   --h; Mark (2026-11-19) wanted the room bigger and the women smaller against the alcoves, so on narrower screens its
   black sides run off the edges. The bars hang 34% down, below the spotlights, the hoods level with the women's (Mark). Its black top
   runs behind the title and its black floor behind "Sold out", so it fades into the page. */
.op-room-bg { display: none; }
@media (min-width: 641px) {
  .op {
    /* Sized so the whole window, "Limited edition" to "Sold out", fits the screen (measured: it is about 265px + 1.6 x --h). */
    --h: clamp(270px, min(calc(calc(62.5 * var(--svh)) - 172px), 40vw), 680px);
    --hr: calc(var(--h) / 0.42); --wr: calc(var(--hr) * 1.5);
    background: #000;
  }
  .op-stage { margin-top: 0; padding-bottom: 0; }
  .op-stage::after { display: none; }
  .op { padding-top: calc(var(--top-h) + clamp(8px, calc(1.6 * var(--svh)), 24px)); }
  .op-head { gap: 4px; }
  /* The arches start below the words (Mark: the H of the title touched an arch). */
  .op-room { position: relative; z-index: 1; width: var(--wr); height: var(--hr); margin: calc(var(--hr) * -0.19) 0 calc(var(--hr) * -0.15) calc(50% - var(--wr) / 2); }
  /* "Sold out" on the floor just in front of the platform (Mark), not below the picture. */
  .op-foot { margin-top: 0; }
  .op-room-bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .op-row { position: absolute; inset: 0; display: block; height: auto; }
  /* The women stand 15% taller than --h (Mark: bigger, to see the piece better); their feet stay on the platform. */
  .op-fig { --fh: calc(var(--h) * 1.15); position: absolute; width: calc(var(--fh) * 0.4); height: var(--fh); top: calc(var(--hr) * 0.772 - var(--fh)); left: calc(var(--wr) * var(--x) - var(--fh) * 0.2); }
  .op-fig[data-way='bordeaux'] { --x: 0.418; } .op-fig[data-way='nero'] { --x: 0.582; }
  .op-hanger {
    --ph: calc(var(--hr) * 0.415);
    position: absolute; width: calc(var(--ph) * 0.9); height: var(--ph);
    top: calc(var(--hr) * 0.34 - var(--ph) * 0.03);   /* hoods level with the women's (Mark) */ left: calc(var(--wr) * var(--x) - var(--ph) * 0.45);
  }
  .op-hanger[data-way='bordeaux'] { --x: 0.2116; } .op-hanger[data-way='nero'] { --x: 0.7884; }
  .op-bar.rail-bar { left: 25%; right: 25%; }
  /* Bordeaux and Nero sit on the front face of the stone platform, centred on it (79.4% down the picture). */
  .op-fig .op-cap { top: calc(100% + var(--hr) * 0.022); transform: translate(-50%, -50%); }
  /* Turn sits below the alcove's red line, on the same line as Bordeaux and Nero (80% down the picture). */
  .op-hanger .op-cap { top: calc(100% + var(--hr) * 0.064); transform: translate(-50%, -50%); }
  .op-fig::before { bottom: -4px; }
}

/* No entrance: the words, women and hangers are already there when you scroll in (Mark, 2026-11-19: the women's heads
   appearing as the section was reached looked like loading). */

/* Phones (Mark, 2026-11-21): laid out on the tall room picture (assets/site/hourglass-room-phone.webp, 1024 x 1536):
   the women stand side by side on the platform (its top 46.7% down), each hanger in one of the two arches below it
   (centres 27.8% and 72.1% across, the bar just under the spotlight, 56.6% down). The picture is 130% of the screen's
   width, so its black sides run off the edges and the arches just fit. Fractions measured on the picture. */
@media (max-width: 640px) {
  .op { --rw: 130vw; --rh: calc(var(--rw) * 1.5); padding-top: calc(var(--top-h) + 40px); overflow-x: clip; background: #000; }
  .op-stage { margin-top: 0; padding-bottom: 0; }
  .op-stage::after { display: none; }
  .op-room { position: relative; z-index: 1; width: var(--rw); height: var(--rh); margin: calc(var(--rh) * -0.05) 0 calc(var(--rh) * -0.07) calc(50% - var(--rw) / 2); }
  .op-room-bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .op-row { position: absolute; inset: 0; display: block; height: auto; }
  .op-fig { --fh: calc(var(--rh) * 0.37); position: absolute; width: calc(var(--fh) * 0.4); height: var(--fh); top: calc(var(--rh) * 0.469 - var(--fh)); left: calc(var(--rw) * var(--x) - var(--fh) * 0.2); }
  .op-fig[data-way='bordeaux'] { --x: 0.37; } .op-fig[data-way='nero'] { --x: 0.63; }
  .op-hanger { --ph: calc(var(--rh) * 0.27); position: absolute; width: calc(var(--ph) * 0.9); height: var(--ph); top: calc(var(--rh) * 0.566 - var(--ph) * 0.03); left: calc(var(--rw) * var(--x) - var(--ph) * 0.45); }
  .op-hanger[data-way='bordeaux'] { --x: 0.278; } .op-hanger[data-way='nero'] { --x: 0.721; }
  .op-bar.rail-bar { left: 22%; right: 22%; }
  /* Bordeaux and Nero on the platform's front face; Turn on the floor in front of each arch. */
  .op-fig .op-cap { top: calc(100% + var(--rh) * 0.019); transform: translate(-50%, -50%); }
  .op-hanger .op-cap { top: calc(var(--rh) * 0.87 - var(--rh) * 0.566 + var(--ph) * 0.03); transform: translate(-50%, -50%); }
  .op-fig::before { bottom: -3px; }
  .op-cap { gap: 8px; }
  .op-name { font-size: 0.88rem; }
  .op-foot { margin-top: 0; padding-bottom: 0; }
}

/* ---------- 3. Three lines ---------- */
.creed { padding: clamp(110px, calc(24 * var(--svh)), 260px) var(--gutter); position: relative; isolation: isolate; }
/* Mark's ChatGPT stone wall (2026-11-19): lit on the right, black under the words; top and bottom fade so it has no edge. */
.creed-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.creed-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
/* Phones go straight from the rail to the looks (Mark, 2026-11-17). */
@media (max-width: 640px) { .creed { display: none; } }
.creed-lines { font-family: var(--display); font-size: clamp(2.3rem, 6.6vw, 6.2rem); line-height: 1.06; max-width: 1500px; margin-inline: auto; }
.creed-line { display: block; }
.creed-line:nth-child(2) { padding-left: 1.1em; }
.creed-line:nth-child(3) { padding-left: 2.2em; }
.creed-word { opacity: 0.16; transition: opacity 0.6s var(--ease); }
.creed-word.is-lit { opacity: 1; }

/* The zip opening (SPEC.md, reference 5). Only with the script running (`zip-on`); without it, or with reduced motion,
   the three lines go straight on to the looks. The looks are laid out from the top of the zip section, under it, and
   js/home.js holds them still (translateY) while the jacket is pinned, so they are seen through the open zip from the
   start and are where they would be anyway once it has parted. Their extra bottom margin gives back the space. */
.zip { display: none; }
.zip-on { --zip-len: calc(110 * var(--svh)); }
.zip-on .zip {
  display: block; position: relative; z-index: 5; pointer-events: none;
  height: calc(calc(100 * var(--svh)) + var(--zip-len)); margin-bottom: calc(-calc(100 * var(--svh)) - var(--zip-len));
}
.zip-on .lineup { margin-bottom: calc(clamp(90px, calc(16 * var(--svh)), 180px) + var(--zip-len)); will-change: transform; }
.zip-pin { position: sticky; top: 0; height: calc(100 * var(--svh)); overflow: hidden; }
.zip-layer { position: absolute; inset: 0; will-change: transform, opacity; }
.zip-layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 700px) { .creed-line:nth-child(n) { padding-left: 0; } }
/* On a phone the empty hangers stay, but their notes would cover the pieces. */
@media (max-width: 700px) { .rail-tag { display: none; } }

/* ---------- 3b. The looks: a line of figures, one in front ---------- */
.lineup { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(310px, 27vw, 420px); margin-bottom: clamp(90px, calc(16 * var(--svh)), 180px); background: #000; }
.lineup-stage {
  --bar-h: 88px; --fig-h: 520px; --under-h: 92px;
  position: relative; isolation: isolate; height: calc(clamp(600px, calc(92 * var(--svh)), 900px) + var(--under-h) * 0.6); overflow: hidden;
  /* One lamp on the wall behind whoever stands in front, so black cloth still has an outline. */
  background:
    linear-gradient(#000, transparent 20%),
    radial-gradient(34% 44% at 50% 50%, #625a53 0, rgba(98, 90, 83, 0) 100%),
    radial-gradient(70% 62% at 50% 54%, #393430 0, #1a1716 56%, #000 100%);
}
.lineup-floor {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; height: calc(var(--bar-h) + var(--under-h) + var(--fig-h) * 0.1);
  background:
    linear-gradient(90deg, #000, transparent 24%, transparent 76%, #000),
    linear-gradient(#3d3733, #1b1817 34%, #000 92%);
}
.lineup-floor::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent 8%, rgba(233, 228, 218, 0.2) 50%, transparent 92%); }
.lineup-head { position: absolute; left: 0; right: 0; top: 0; z-index: 30; display: grid; gap: 8px; justify-items: start; padding: calc(var(--top-h) + 10px) var(--gutter) 0; pointer-events: none; }
.lineup-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.lineup-head p { color: var(--dim); max-width: 34ch; font-size: 0.98rem; }

.lineup-row { position: absolute; left: 0; right: 0; top: clamp(96px, calc(15 * var(--svh)), 150px); bottom: calc(var(--bar-h) + var(--under-h)); z-index: 1; cursor: grab; touch-action: pan-y; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.lineup-row.is-held { cursor: grabbing; }
/* Under each model: his colourways, and under the one in front an arrow saying he turns round (Mark, 2026-11-17). */
/* The dots, Turn under them, both centred under him (Mark, 2026-11-17). */
.lineup-under { position: absolute; left: 50%; top: calc(100% + 14px); display: grid; justify-items: center; row-gap: 6px; width: max-content; transform: translateX(-50%); white-space: nowrap; }
.lineup-under-dots { display: flex; gap: 0; }
.lineup-under .rail-way { width: 32px; height: 32px; }
.lineup-under .rail-way i { width: 15px; height: 15px; }
.lineup-turn {
  grid-row: 2;
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 9px; border: 1px solid var(--faint); border-radius: 17px; font-size: 0.85rem;
  color: var(--ivory); background: rgba(0, 0, 0, 0.4); transition: opacity 0.4s var(--ease), transform 0.2s var(--ease);
}
.lineup-turn svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease); }
.lineup-turn:hover, .lineup-turn[aria-pressed='true'] { background: var(--ivory); color: #000; border-color: var(--ivory); }
.lineup-turn:active { transform: scale(0.92); }
.lineup-turn:focus-visible { outline: 1px solid var(--ivory); outline-offset: 2px; }
.lineup-turn .axis { opacity: 0.45; }
.lineup-fig.is-turned .lineup-turn svg { transform: scaleX(-1); }
.lineup-fig:not(.is-front) .lineup-turn { opacity: 0; visibility: hidden; }
/* A press of Turn reads as a turn: he narrows as front and back cross (Mark, 2026-11-21). */
.lineup-fig.is-spin .lineup-sharp { animation: look-spin 0.9s var(--ease); }
@keyframes look-spin { 50% { transform: scaleX(0.5); } }
/* Phones only: the look's name and a way to its piece, under the model in front. */
.lineup-under-name, .lineup-under-open { display: none; }
/* Desktop (Mark, 2026-11-22): a dark runway, one spotlight, its red line exactly where the old floor line was (just
   above the ankles). --bg-h and --bg-y are set by layout() in js/looks.js from the models' size. */
@media (min-width: 641px) {
  .lineup .lineup-stage {
    background: linear-gradient(#000, transparent 10%, transparent 88%, #000),
      linear-gradient(90deg, #000, transparent 7%, transparent 93%, #000),
      url('../assets/site/looks-catwalk-desktop.webp') 50% var(--bg-y, -40px) / auto var(--bg-h, 100%) no-repeat, #000;
  }
  .lineup .lineup-floor { display: none; }
}
/* Phones: the models stand too close for everyone's dots; only the one in front keeps his. */
@media (max-width: 640px) {
  .lineup-fig:not(.is-front) .lineup-under { opacity: 0; visibility: hidden; }
  /* Bigger models (Mark, 2026-11-21): the stage takes the screen, the row starts just under the heading. */
  /* What he wears, right under him (Mark, 2026-11-21: the card below the stage was out of sight): the look's name and
     pieces, then his colours, Turn and View piece on one line. */
  .lineup-under { grid-template-columns: auto auto auto; align-items: center; column-gap: 10px; row-gap: 8px; }
  .lineup-under-name { grid-column: 1 / -1; display: grid; justify-items: center; gap: 1px; }
  .lineup-under-name span:first-child { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; color: var(--ivory); }
  .lineup-under-name span:last-child { color: var(--dim); font-size: 0.82rem; }
  .lineup-under-dots { grid-row: 2; grid-column: 1; }
  .lineup-under .rail-way { width: 30px; }
  .lineup-turn { grid-column: 2; }
  .lineup-under-open { grid-row: 2; grid-column: 3; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid rgba(180, 19, 31, 0.55); border-radius: 17px; background: #000; color: var(--logo-red); font-size: 0.85rem; transition: transform 0.2s var(--ease); }
  .lineup-under-open:active { transform: scale(0.94); background: var(--logo-red); color: var(--ivory); }
  .lineup-under-open:focus-visible { outline: 1px solid var(--logo-red); outline-offset: 2px; }
  .lineup .lineup-stage { height: max(660px, calc(100 * var(--svh))); --under-h: 112px;
    /* Mark's catwalk (assets/site/looks-catwalk-phone.webp, 2026-11-21): the arch and its spotlight behind the model in
       front, the runway with its red lines under the feet (floor starts 66% down the picture). Top fades into the page. */
    background: linear-gradient(#000, transparent 14%), url('../assets/site/looks-catwalk-phone.webp') 50% calc(var(--top-h) + 64px - 0.219 * max(660px, calc(100 * var(--svh)))) / cover no-repeat, #000; }
  .lineup .lineup-floor { display: none; }
  /* The heading right under the header, centred in the dark above the arch, one short line under it (Mark: too low,
     then over the lamp). The picture is the stage's height, so the lamp (21.9% down it) is pinned in px just under
     the words and just over the head of the model in front, whatever the screen's height. */
  .lineup .lineup-head { padding-top: calc(var(--top-h) - 10px); gap: 2px; justify-items: center; text-align: center; }
  .lineup .lineup-head h2 { font-size: 1.75rem; }
  .lineup .lineup-head p { font-size: 0.84rem; max-width: none; }
  .lineup .lineup-row { top: calc(var(--top-h) + 60px); }
}
.lineup-fig {
  position: absolute; left: 50%; bottom: 0; width: calc(var(--fig-h) * 0.4); height: var(--fig-h); margin-left: calc(var(--fig-h) * -0.2);
  transform-origin: 50% 100%; will-change: transform, opacity; pointer-events: none;
  transition: transform 1s var(--ease-heavy), opacity 1s var(--ease);
}
.lineup-fig.is-near, .lineup-fig.is-front { pointer-events: auto; cursor: pointer; }
.lineup-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; pointer-events: none; transition: opacity 0.8s var(--ease); }
.lineup-soft { filter: blur(2.5px); }
/* The sharp model holds his front and back views; resting the pointer on him fades to his back (Mark, 2026-11-17). */
.lineup-sharp { position: absolute; inset: 0; transition: opacity 0.8s var(--ease); }
.lineup-fig .lineup-back { opacity: 0; transition: opacity 0.45s var(--ease); }
.lineup-fig .lineup-face { transition: opacity 0.45s var(--ease); }
.lineup-fig.is-turned .lineup-back { opacity: 1; }
.lineup-fig.is-turned .lineup-face { opacity: 0; }
/* Where the feet meet the floor. */
.lineup-fig::before { content: ''; position: absolute; left: -8%; right: -8%; bottom: -2.4%; z-index: -1; height: 7%; background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.55) 45%, transparent 100%); }
.lineup-row.is-held .lineup-fig, .lineup-row.is-held .lineup-fig img, .lineup-row.is-held .lineup-sharp,
.lineup-row.is-still .lineup-fig, .lineup-row.is-still .lineup-fig img, .lineup-row.is-still .lineup-sharp { transition: none; }

.lineup-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--bar-h); display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); padding-inline: var(--gutter); }
.lineup-arrow { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--faint); border-radius: 50%; color: var(--ivory); background: rgba(0, 0, 0, 0.4); transition: transform 0.2s var(--ease); }
.lineup-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.lineup-arrow:hover { background: var(--ivory); color: #000; border-color: var(--ivory); }
.lineup-arrow:active { transform: scale(0.94); }
.lineup-progress { flex: 1; min-width: 0; display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.lineup-ticks { flex: 1; display: flex; gap: 6px; max-width: 520px; }
.lineup-ticks i { position: relative; flex: 1; height: 2px; background: var(--faint); overflow: hidden; }
.lineup-ticks b { position: absolute; inset: 0; background: var(--ivory); transform: scaleX(0); transform-origin: 0 50%; }
.lineup-ticks .is-on b { transform: none; }
.lineup.is-playing .lineup-ticks .is-on b { animation: lineup-fill 6s linear both; }
.lineup.is-playing.is-holding .lineup-ticks b, .lineup.is-playing.is-away .lineup-ticks b { animation-play-state: paused; }
@keyframes lineup-fill { from { transform: scaleX(0); } to { transform: none; } }
.lineup-count { flex: none; color: var(--dim); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.lineup-play { flex: none; min-height: 44px; padding: 0 6px; color: var(--dim); font-size: 0.9rem; border-bottom: 1px solid transparent; }
.lineup-play:hover { color: var(--ivory); }

.lineup-panel { display: grid; align-items: center; padding: clamp(28px, calc(4 * var(--svh)), 48px) var(--gutter) clamp(28px, calc(4 * var(--svh)), 48px) clamp(24px, 2.8vw, 44px); border-left: 1px solid var(--faint); }
.lineup-card { grid-area: 1 / 1; display: grid; gap: 11px; align-content: start; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0s 0.35s; }
.lineup-card.is-on { opacity: 1; visibility: visible; transition: opacity 0.7s var(--ease) 0.3s, visibility 0s; }
.lineup-label { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--faint); color: var(--dim); font-size: 0.9rem; }
.lineup-card h3 { font-size: clamp(1.7rem, 2.5vw, 2.3rem); line-height: 1.1; margin-top: 4px; }
.lineup-shown { color: var(--ivory); font-size: 0.95rem; }
.lineup-line { color: var(--dim); font-size: 0.98rem; max-width: 40ch; }
/* The piece itself on a hanger, which can be turned (Mark, 2026-11-17). */
.lineup-hang { position: relative; height: clamp(250px, calc(35 * var(--svh)), 380px); margin-block: -2px 0; cursor: grab; touch-action: pan-y; -webkit-user-select: none; }
.lineup-hang:active { cursor: grabbing; }
.lineup-hang .rail-bar { top: 14px; left: 18%; right: 18%; }
.lineup-hang-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lineup-hang > img { position: absolute; left: 50%; top: 10px; height: calc(100% - 14px); width: auto; max-width: none; transform: translateX(-50%); pointer-events: none; }
.lineup.has-gl .lineup-hang > img { display: none; }
/* A piece shown as its own photographs (the Hourglass One-Piece): hangs from the bar like the others. */
.lineup-ph { position: absolute; left: 0; right: 0; top: 6px; bottom: 0; }
.lineup-hang.is-photos { height: calc(clamp(250px, calc(35 * var(--svh)), 380px) - 42px); }   /* room for Turn, so the card stays its usual height */
.lineup-ph-cap { display: flex; justify-content: center; margin-top: 0; }
.lineup-pieces { margin-top: 6px; }
.lineup-pieces li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid var(--faint); }
.lineup-pieces li:last-child { border-bottom: 1px solid var(--faint); }
.lineup-pieces .star { width: 0.6em; height: 0.6em; }
.lineup-pieces span:last-child { color: var(--dim); font-size: 0.9rem; }
.lineup-acts { display: grid; gap: 10px; margin-top: 10px; }
/* "Open the piece": plain black (not matte) with lettering in the logo's red (Mark, 2026-11-17); fills that red on hover. */
.lineup-acts .btn:not(.btn-line) {
  background: #000; color: var(--logo-red); border-color: rgba(180, 19, 31, 0.55);
}
.lineup-acts .btn:not(.btn-line):hover { background: var(--logo-red); color: var(--ivory); border-color: var(--logo-red); }
.lineup-acts .btn:not(.btn-line):focus-visible { outline: 1px solid var(--logo-red); outline-offset: 3px; }
/* The piece's colourways in place of its name (Mark, 2026-11-17); a swatch changes the piece on the hanger. */
.lineup-ways { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 5px 0; border-block: 1px solid var(--faint); }
.lineup-ways > span { color: var(--dim); font-size: 0.9rem; }
.lineup-ways-dots { display: flex; flex-wrap: wrap; gap: 2px; margin-left: -9px; }
.lineup-ways .rail-way { width: 40px; height: 40px; }
.lineup-ways .rail-way i { width: 20px; height: 20px; opacity: 0.75; box-shadow: inset 0 0 0 1px rgba(233, 228, 218, 0.4); }
.lineup-ways .rail-way:hover i { opacity: 1; }
.lineup-ways .rail-way[aria-pressed='true'] i { opacity: 1; box-shadow: inset 0 0 0 1px rgba(233, 228, 218, 0.4), 0 0 0 2px #000, 0 0 0 3px rgba(233, 228, 218, 0.3); }

@media (max-width: 900px) {
  .lineup { grid-template-columns: 1fr; }
  .lineup-stage { --bar-h: 76px; height: clamp(540px, calc(80 * var(--svh)), 720px); }
  .lineup-head { padding-top: 28px; }
  .lineup-row { top: clamp(118px, calc(19 * var(--svh)), 150px); }
  .lineup-panel { border-left: 0; padding: 30px var(--gutter) 0; }
  .lineup-line { max-width: 52ch; }
  .lineup-acts { justify-items: start; }
}
@media (max-width: 520px) {
  .lineup-acts { justify-items: stretch; }
  /* No room for the marks beside the buttons: they run the full width above them instead. */
  .lineup-ticks { position: absolute; left: var(--gutter); right: var(--gutter); top: 4px; gap: 4px; max-width: none; }
  .lineup-progress { justify-content: center; }
}

/* ---------- 4. The collection, as a list ---------- */
.ledger { padding: 0 var(--gutter) clamp(90px, calc(16 * var(--svh)), 180px); max-width: 1500px; margin-inline: auto; }
.ledger-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; padding-bottom: clamp(22px, calc(4 * var(--svh)), 44px); }
.ledger-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.ledger-head p { color: var(--dim); }
.ledger-row { border-top: 1px solid var(--faint); }
.ledger-row:last-child { border-bottom: 1px solid var(--faint); }
.ledger-cell { display: grid; grid-template-columns: minmax(0, 1fr) 9rem 7.5rem; align-items: baseline; gap: 16px; padding: clamp(14px, calc(2.2 * var(--svh)), 22px) 0; }
.ledger-name { font-family: var(--display); font-size: clamp(1.25rem, 2.7vw, 2.1rem); line-height: 1.15; display: inline-flex; align-items: baseline; gap: 0.5em; transition: transform 0.45s var(--ease); }
.ledger-name .star { width: 0.5em; height: 0.5em; opacity: 0; transform: scale(0.4) rotate(-90deg); transition: opacity 0.3s var(--ease), transform 0.45s var(--ease); }
.ledger-kind { color: var(--dim); font-size: 0.95rem; }
.ledger-state { color: var(--dim); font-size: 0.95rem; text-align: right; }
.ledger-row:not(.is-open) .ledger-name { color: rgba(233, 228, 218, 0.5); }
a.ledger-cell:hover .ledger-name, a.ledger-cell:focus-visible .ledger-name { transform: translateX(14px); }
a.ledger-cell:hover .star, a.ledger-cell:focus-visible .star { opacity: 1; transform: none; }
a.ledger-cell:hover .ledger-state { color: var(--ivory); }
.ledger-peek { position: fixed; left: 0; top: 0; z-index: 30; width: 230px; aspect-ratio: 9 / 10; pointer-events: none; opacity: 0; transition: opacity 0.3s var(--ease); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8)); }
.ledger-peek.is-on { opacity: 1; }
.ledger-peek img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) {
  .ledger-cell { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger-kind { display: none; }
}

/* ---------- 5. Seen in the hall ---------- */
.looks { padding: 0 var(--gutter) clamp(90px, calc(16 * var(--svh)), 180px); max-width: 1700px; margin-inline: auto; }
.looks h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-bottom: clamp(22px, calc(4 * var(--svh)), 44px); }
.looks-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.looks-grid > * { min-width: 0; }
.look-corridor { grid-column: 1 / 9; position: relative; overflow: hidden; }
.look-corridor img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.look-corridor figcaption { position: absolute; left: clamp(18px, 3vw, 44px); bottom: clamp(18px, 3vw, 40px); max-width: 24ch; }
.look-corridor .num { display: block; font-size: clamp(3.4rem, 9vw, 8rem); line-height: 0.9; color: var(--red); }
.look-corridor a { display: inline-block; margin-top: 10px; padding-block: 6px; border-bottom: 1px solid var(--faint);  }
.look-corridor a:hover { border-color: var(--ivory); }
.looks-grid .slot-tall { grid-column: 9 / 13; }
.looks-grid .slot-wide { grid-column: 1 / 6; }
.looks-grid .slot-banner { grid-column: 6 / 13; aspect-ratio: auto; align-self: stretch; }
@media (max-width: 860px) { .looks-grid > :nth-child(n) { grid-column: 1 / -1; } .looks-grid .slot-banner { aspect-ratio: 21 / 9; } }

/* ---------- 6. The star ---------- */
.mark { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 90px); padding-right: var(--gutter); padding-bottom: clamp(90px, calc(16 * var(--svh)), 180px); }
.mark img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mark h2 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); margin-bottom: 0.4em; }
.mark p { color: var(--dim); max-width: 34ch; font-size: 1.1rem; }
@media (max-width: 760px) { .mark { grid-template-columns: 1fr; padding-inline: 0; } .mark > div { padding-inline: var(--gutter); } }

/* ---------- 7. Sold out, leave an email ---------- */
.return { position: relative; isolation: isolate; display: grid; align-content: center; min-height: min(calc(88 * var(--svh)), 820px); padding: clamp(80px, calc(14 * var(--svh)), 150px) var(--gutter); overflow: hidden; }
.return > picture > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
/* Screens: the picture fades to black at the section's own top and bottom edges, whatever its crop, so no line shows
   where the looks end (Mark, 2026-11-19), and the box is drawn a little closer (scaled about the box). */
@media (min-width: 641px) {
  .return > picture { position: absolute; inset: 0; z-index: -1; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 80%, transparent); }
  .return > picture > img { transform: scale(1.16); transform-origin: 22% 68%; }
}
.return::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.82) 62%), linear-gradient(#000, transparent 18%, transparent 80%, #000); }
.return-body { justify-self: end; width: min(100%, 520px); }
.return h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: 0.35em; }
.return p { color: var(--dim); }
.field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 22px; }
.field label { grid-column: 1 / -1; font-size: 0.9rem; color: var(--dim); }
.field input {
  min-width: 0; min-height: 50px; padding: 0 16px; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--faint); border-radius: 2px;
  
}
.field input::placeholder { color: rgba(233, 228, 218, 0.4); }
.field input:hover, .field input:focus { border-color: var(--ivory); }
.form-status { min-height: 1.6em; margin-top: 12px; font-size: 0.92rem; color: var(--ivory); }
.form-status.is-error { color: #ff8f9d; }
@media (max-width: 460px) { .field { grid-template-columns: 1fr; } }
/* Phones: the tall photo (Mark, 2026-11-17), the box at the top, the words in the dark below it. */
@media (max-width: 640px) {
  /* The seamless tall box (Mark, 2026-11-21): its empty black top (14%) is cropped off, so the box sits near the top,
     and the words start where its stone has faded. */
  .return { align-content: end; min-height: 0; padding-top: calc(100vw * 1.5 * 0.5); padding-bottom: clamp(48px, calc(8 * var(--svh)), 80px); }
  .return > picture > img { bottom: auto; height: auto; aspect-ratio: 2 / 3; object-position: 50% 0; top: calc(100vw * 1.5 * -0.14); }
  .return > picture > img { -webkit-mask-image: linear-gradient(transparent 14%, #000 26%); }
  .return::before { background: linear-gradient(transparent 38%, rgba(0, 0, 0, 0.88) 64%), linear-gradient(#000, transparent 12%); }
  .return-body { justify-self: stretch; }
}

/* ---------- Footer ---------- */
.foot { padding: clamp(50px, calc(9 * var(--svh)), 100px) var(--gutter) 34px; border-top: 1px solid var(--faint); overflow: hidden; }
/* Phones: a compact footer, the name and Twinmark, no tall empty band (Mark, 2026-11-21). */
/* On the home page the sold-out box fades straight into the footer: no line between them (Mark, 2026-11-19). */
.home .foot { border-top: 0; }
.foot-mark { display: flex; justify-content: space-between; font-family: var(--display); font-size: clamp(3rem, 14.6vw, 15rem); line-height: 0.86; color: var(--ivory); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: clamp(26px, calc(5 * var(--svh)), 52px); color: var(--dim); font-size: 0.92rem; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.foot-row a, .foot-row button { padding-block: 8px;  }
.foot-row a:hover, .foot-row button:hover { color: var(--ivory); }
/* Phones: a compact footer, the name and Twinmark, no tall empty band (Mark, 2026-11-21). After the rules above so it wins. */
@media (max-width: 640px) { .foot { padding: 8px var(--gutter) 18px; } .foot-row { margin-top: 10px; } .return { padding-bottom: 20px; } .foot-row p { margin: 0; } }
/* "Twinmark" opens the studio's site; on hover it lights up and a line draws in under it. */
.foot-maker { position: relative; display: inline-block; color: var(--ivory); transition: color 0.3s var(--ease); }
.foot-maker::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.foot-maker:hover::after, .foot-maker:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.foot-maker:hover { color: #fff; }
.foot-maker:active { opacity: 0.7; }

/* ---------- Bag drawer (Mark, 2026-11-21: one clean column, your pieces first, then three that go with them) ---------- */
.bag {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
  width: min(100vw, 460px); max-width: none; height: 100dvh; max-height: none;
  background: #0b0a0a; color: var(--ivory); overscroll-behavior: contain; border-left: 1px solid var(--faint);
}
.bag[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: bag-in 0.55s var(--ease-heavy); }
.bag::backdrop { background: rgba(0, 0, 0, 0.66); animation: fade 0.4s ease; }
@keyframes bag-in { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.bag-head { display: flex; justify-content: space-between; align-items: center; height: var(--top-h); padding-inline: 24px 14px; border-bottom: 1px solid var(--faint); }
.bag-head h2 { display: flex; align-items: baseline; gap: 12px; font-size: 1.6rem; }
.bag-count { font-family: var(--body); font-size: 0.86rem; color: var(--dim); }
.bag-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--dim); transition: color 0.25s var(--ease), background-color 0.25s var(--ease); }
.bag-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.bag-close:hover { color: var(--ivory); background: rgba(233, 228, 218, 0.06); }
.bag-close:focus-visible { outline: 1px solid var(--ivory); outline-offset: -2px; }
.bag-body { overflow-y: auto; overscroll-behavior: contain; }
.bag-items { padding: 0 24px; }
.bag-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--faint); }
.bag-thumb { display: block; border-radius: 2px; background: radial-gradient(circle at 50% 30%, #2a2726, #0d0c0c 72%); }
.bag-thumb img { aspect-ratio: 9 / 10; object-fit: contain; padding: 6px 2px 2px; }
.bag-item-body { display: grid; gap: 3px; min-width: 0; padding-top: 2px; }
.bag-name, .upsell-name { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; }
.bag-name .num, .upsell-name .num { font-family: var(--body); font-size: 0.7rem; color: var(--red); margin-right: 0.6em; vertical-align: 0.2em; }
.bag-name:hover, .upsell-name:hover { color: #fff; }
.bag-meta { color: var(--dim); font-size: 0.9rem; }
.bag-state { display: flex; gap: 7px; align-items: baseline; margin-top: 4px; font-size: 0.82rem; color: var(--dim); }
.bag-state .star { width: 0.7em; height: 0.7em; }
.bag-remove { padding: 4px 0; font-size: 0.82rem; color: var(--dim); border-bottom: 1px solid transparent; }
.bag-remove:hover { color: var(--ivory); border-color: var(--ivory); }
.bag-empty { padding: 36px 0 30px; color: var(--dim); max-width: 34ch; border-bottom: 1px solid var(--faint); }
.bag-empty-title { font-family: var(--display); font-size: 1.4rem; color: var(--ivory); margin-bottom: 8px; }
.upsell { padding: 26px 24px 28px; }
.upsell h3 { font-size: 1.15rem; }
.upsell-note { color: var(--dim); font-size: 0.84rem; margin: 4px 0 6px; }
.upsell-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; }
.upsell-item + .upsell-item { border-top: 1px solid var(--faint); }
.upsell-thumb { display: block; border-radius: 2px; background: radial-gradient(circle at 50% 28%, #2a2726, #0b0a0a 72%); overflow: hidden; }
.upsell-thumb img { aspect-ratio: 9 / 10; object-fit: contain; padding: 6px 2px 2px; transition: transform 0.6s var(--ease); transform-origin: 50% 4%; }
.upsell-thumb:hover img { transform: rotate(-3deg); }
.upsell-body { display: grid; gap: 2px; min-width: 0; }
.upsell-meta { color: var(--dim); font-size: 0.82rem; }
.upsell-sizes { display: flex; gap: 6px; margin-top: 8px; }
.upsell-sizes button { min-width: 40px; height: 34px; padding: 0 8px; border: 1px solid var(--faint); border-radius: 17px; font-size: 0.82rem; color: var(--ivory); transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.upsell-sizes button:hover:not([disabled]) { background: var(--ivory); color: #000; border-color: var(--ivory); }
.upsell-sizes button:active:not([disabled]) { transform: scale(0.94); }
.upsell-sizes button:focus-visible { outline: 1px solid var(--ivory); outline-offset: 2px; }
.upsell-sizes button[disabled] { background: var(--ivory); color: #000; border-color: var(--ivory); opacity: 0.55; cursor: default; }
.bag-foot { display: grid; gap: 12px; padding: 16px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--faint); font-size: 0.82rem; color: var(--dim); background: #0b0a0a; }
.bag-foot .btn { width: 100%; }
@media (max-width: 720px) {
  .bag { border-left: 0; }
  .bag-head, .bag-items, .upsell, .bag-foot { padding-inline: var(--gutter); }
  .bag-head { padding-right: calc(var(--gutter) - 10px); }
}

/* ---------- Product page ---------- */
.piece-top { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  /* The hanger's bar, the back arrow and "Back to the ..." share one line (Mark, 2026-11-19). */
  --bar-y: calc(var(--top-h) + 40px); }
.piece-stage {
  position: sticky; top: 0; height: calc(100 * var(--svh)); min-height: 560px; overflow: hidden;
  background: radial-gradient(58% 54% at 50% 40%, #2b2827 0, #151413 46%, #000 86%);
  cursor: pointer; touch-action: pan-y; -webkit-user-select: none;
}
.piece-stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 13%; height: 1px; background: linear-gradient(90deg, transparent, var(--red) 18%, var(--red) 82%, transparent); box-shadow: 0 0 22px 2px rgba(200, 16, 46, 0.55); opacity: 0.75; pointer-events: none; }
.piece-stage .rail-bar { top: var(--bar-y); left: 18%; right: 18%; }
/* Back arrow on the picture, top left (Mark, 2026-11-19): the same way back as the words above the number. */
.piece-back { position: absolute; z-index: 3; top: calc(var(--bar-y) - 20.5px); left: var(--gutter); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--faint); background: rgba(10, 9, 9, 0.55); color: var(--ivory); cursor: pointer; -webkit-backdrop-filter: blur(6px); transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--ease); }
.piece-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.piece-back:hover { border-color: var(--ivory); background-color: rgba(26, 24, 23, 0.8); }
.piece-back:hover svg { transform: translateX(-3px); }
.piece-back:active { transform: scale(0.94); }
.piece-canvas, .ways-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.piece-fallback { position: absolute; left: 50%; top: calc(var(--bar-y) - 4px); height: 76%; width: auto; max-width: none; transform: translateX(-50%); pointer-events: none; }
.has-gl .piece-fallback { display: none; }
/* A piece shown as its own photographs (js/photo-hanger.js): no 3D canvas, no fallback picture. */
.piece-stage.has-photos .piece-fallback, .piece-stage.has-photos .piece-canvas { display: none; }
.piece-photo { position: absolute; left: 0; right: 0; pointer-events: none; }
.ways-photo { position: absolute; width: 0; pointer-events: none; }
.ways-photo .ph-swing { opacity: 0.6; transition: opacity 0.5s var(--ease); }
.ways-photo.is-chosen .ph-swing { opacity: 1; }
.piece-turn { position: absolute; left: 50%; bottom: clamp(18px, calc(4.4 * var(--svh)), 40px); z-index: 2; transform: translateX(-50%); display: flex; padding: 4px; border: 1px solid var(--faint); border-radius: 30px; background: rgba(0, 0, 0, 0.6); }
.piece-turn button { min-width: 74px; min-height: 40px; padding: 0 16px; border-radius: 20px; font-size: 0.9rem; color: var(--dim);  }
.piece-turn button:hover { color: var(--ivory); }
.piece-turn button[aria-pressed='true'] { background: var(--ivory); color: #000; }
/* The Hourglass One-Piece: one Turn button, a step round per press (Mark, 2026-11-19). */
.piece-turn.is-one button { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px 0 16px; color: var(--ivory); transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.piece-turn.is-one svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease); }
.piece-turn.is-one .axis { opacity: 0.45; }
.piece-turn.is-one button:hover { background: var(--ivory); color: #000; }
.piece-turn.is-one button:active svg { transform: rotate(-40deg); }
.piece-hint { position: absolute; left: var(--gutter); bottom: clamp(26px, calc(5 * var(--svh)), 48px); color: var(--dim); font-size: 0.86rem; pointer-events: none; transition: opacity 0.6s var(--ease); }
.piece-stage.was-turned .piece-hint { opacity: 0; }

.piece-info { padding: calc(var(--bar-y) - 11px) var(--gutter) clamp(60px, calc(10 * var(--svh)), 110px); display: grid; align-content: start; gap: 22px; max-width: 640px; }
.piece-crumb a { color: var(--dim); padding-block: 8px; border-bottom: 1px solid var(--faint);  }
.piece-crumb a:hover { color: var(--ivory); border-color: var(--ivory); }
.piece-info h1 { font-size: clamp(2.5rem, 4.6vw, 4.3rem); }
.piece-info h1 .num { display: block; font-size: 0.42em; color: var(--red); margin-bottom: 0.5em; }
.piece-limited { margin-left: 0.9em; font-family: var(--body); font-size: max(0.82rem, 0.36em); font-weight: 500; letter-spacing: 0.08em; vertical-align: 0.3em; color: var(--red); }
.piece-state { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; }
.piece-lines { display: grid; gap: 12px; color: var(--dim); max-width: 46ch; }
.piece-info legend { padding: 0; margin-bottom: 12px; font-size: 0.95rem; color: var(--dim); }
.piece-info legend b { font-weight: 500; color: var(--ivory); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 8px; border: 1px solid var(--faint); border-radius: 22px; font-size: 0.9rem; touch-action: manipulation; transition: transform 0.2s var(--ease); }
.swatch i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(233, 228, 218, 0.35); }
.swatch:hover { border-color: rgba(233, 228, 218, 0.5); }
.swatch:active { transform: scale(0.97); }
/* The colourway on show: a ring round its dot as well as the border, so it never reads as a hover. */
.swatch[aria-pressed='true'] { border-color: var(--ivory); background: var(--stone-2); }
.swatch[aria-pressed='true'] i { box-shadow: inset 0 0 0 1px rgba(233, 228, 218, 0.35), 0 0 0 2px var(--stone-2), 0 0 0 3px var(--ivory); }
.swatch[aria-disabled='true'] { color: var(--dim); border-style: dashed; }
.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 380px; }
.sizes button { position: relative; min-height: 54px; border: 1px solid var(--faint); border-radius: 2px; font-size: 1rem; overflow: hidden;  }
/* Sold out: a thin line through the box, the way a tailor crosses off a size. */
.sizes button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--faint) calc(50% - 0.5px), var(--faint) calc(50% + 0.5px), transparent calc(50% + 0.5px)); pointer-events: none; }
.sizes button:hover { border-color: var(--ivory); }
.sizes button[aria-pressed='true'] { background: var(--ivory); color: #000; border-color: var(--ivory); }
.sizes button.is-listed { border-color: var(--red); }
.notify { display: grid; gap: 4px; max-width: 460px; }
.notify[hidden] { display: none; }
.notify .field { margin-top: 0; }
.piece-notes { display: grid; gap: 0; max-width: 460px; }
.piece-notes li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--faint); color: var(--dim); font-size: 0.98rem; }
.piece-notes .star { width: 0.6em; height: 0.6em; }

.piece-gallery { padding: clamp(60px, calc(10 * var(--svh)), 120px) var(--gutter); max-width: calc(1160px + 2 * var(--gutter)); margin-inline: auto; }
.piece-gallery h2, .ways h2, .next h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin-bottom: clamp(18px, calc(3.4 * var(--svh)), 36px); }
.worn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); margin-bottom: clamp(40px, calc(8 * var(--svh)), 90px); }
.worn img { width: 100%; aspect-ratio: 8 / 15; object-fit: cover; }
.worn-note { grid-column: 1 / -1; color: var(--dim); font-size: 0.88rem; }
/* Concept photos from the boards come in many shapes: shown whole, never cropped. */
.worn.has-photos { display: flex; flex-wrap: wrap; max-width: calc(calc(82 * var(--svh)) * var(--row) + (var(--n) - 1) * clamp(10px, 1.4vw, 20px)); margin-inline: auto; }
.worn.has-photos figure { flex-basis: 0; min-width: 0; }
.worn.has-photos img { aspect-ratio: auto; height: auto; object-fit: initial; }
.worn.has-photos .worn-note { flex-basis: 100%; }
.close-ups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.close-ups img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.close-ups figcaption { margin-top: 8px; color: var(--dim); font-size: 0.9rem; }

.ways { position: relative; padding: clamp(60px, calc(10 * var(--svh)), 120px) 0 0; background: linear-gradient(#000, #0c0b0b 30%, #000); overflow: hidden; }
.ways-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; padding-inline: var(--gutter); }
.ways-head p { color: var(--dim); max-width: 44ch; }
.ways-stage { position: relative; height: clamp(460px, calc(78 * var(--svh)), 820px); background: radial-gradient(46% 56% at 50% 44%, #262322 0, #111010 52%, transparent 84%); }
.ways-stage .rail-bar { top: 30px; left: 22%; right: 22%; }
.ways-pick { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0 var(--gutter) 14px; margin-top: -84px; }
.ways-pick.is-under { display: block; min-height: calc(44px + 14px + 10px); }
/* Phones: every colourway on one row, even four (Mark, 2026-11-21: Blu dropped below the others). */
@media (max-width: 640px) {
  .ways-pick:not(.is-under) { flex-wrap: nowrap; gap: 6px; padding-inline: 12px; }
  .ways-pick:not(.is-under) .swatch { flex: none; gap: 6px; padding: 0 10px 0 6px; font-size: 0.82rem; white-space: nowrap; }
  .ways-pick:not(.is-under) .swatch i { width: 18px; height: 18px; }
}
.ways-pick.is-under .swatch { position: absolute; top: 10px; transform: translateX(-50%); white-space: nowrap; }
.ways-note { min-height: 1.6em; padding: 0 var(--gutter) clamp(44px, calc(8 * var(--svh)), 84px); text-align: center; color: var(--dim); font-size: 0.92rem; }
.ways-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); padding: 0 var(--gutter) clamp(60px, calc(10 * var(--svh)), 120px); max-width: 1100px; margin-inline: auto; }
.ways-slots .slot { aspect-ratio: auto; min-height: 190px; }
.ways-slots:empty { display: none; }   /* its padding was dead space above "Also on the rail" (Mark, 2026-11-19) */

.next { padding: clamp(24px, calc(4 * var(--svh)), 44px) var(--gutter) clamp(70px, calc(12 * var(--svh)), 140px); }
.next-card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 60px); border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); overflow: hidden; }
.next-card img { aspect-ratio: 9 / 10; object-fit: contain; object-position: 50% 0; padding-top: 14px; transform-origin: 50% 4%; transition: transform 0.9s var(--ease); background: radial-gradient(circle at 50% 30%, #262322, #000 70%); }
.next-card:hover img, .next-card:focus-visible img { transform: rotate(-4deg); }
.next-name { font-family: var(--display); font-size: clamp(1.9rem, 4.6vw, 3.8rem); line-height: 1.05; }
.next-name .num { display: block; font-size: 0.4em; color: var(--red); margin-bottom: 0.4em; }
.next-card p { color: var(--dim); margin-top: 10px; }

@media (max-width: 900px) {
  .piece-top { grid-template-columns: 1fr; }
  .piece-stage { position: relative; height: calc(82 * var(--svh)); min-height: 520px; }
  .piece-info { padding-top: 36px; max-width: none; }
  /* The back arrow has the top left corner; the hint sits centred just above the red line. */
  .piece-hint { left: 0; right: 0; bottom: calc(13% + 14px); text-align: center; }
  /* Less empty space round the close-ups (Mark, 2026-11-21): notes to "Close up", last close-ups to "Colourways". */
  .piece-info { padding-bottom: 20px; }
  .piece-gallery { padding-block: 30px 12px; }
  .ways { padding-top: 36px; }
  /* Turn under the red line, not on it (Mark, 2026-11-21). */
  .piece-turn { bottom: max(12px, calc(13% - 74px)); }
  .piece-top { --bar-y: calc(var(--top-h) + 22px); }
  .piece-back { width: 40px; height: 40px; top: calc(var(--bar-y) - 17.5px); }
  .worn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worn.has-photos { max-width: none; }
  .worn.has-photos figure { flex: 0 0 calc(50% - clamp(10px, 1.4vw, 20px) / 2); }
  .close-ups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways-slots { grid-template-columns: 1fr; }
  .next-card { grid-template-columns: 120px minmax(0, 1fr); }
}

/* ---------- Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .entrance-enter i { display: none; }
  .rail-empty-swing, .bag[open], .bag::backdrop { animation: none; }
  .lineup-fig, .lineup-fig img, .lineup-sharp, .lineup-card, .lineup-card.is-on, .lineup-arrow { transition: none; }
  .lineup-ticks b { animation: none !important; }
  .swatch:active { transform: none; }
  .creed-word { opacity: 1;  }
  * { scroll-behavior: auto !important; }
}
