/* Lauxora — porcelain ivory, espresso ink, champagne gold.
   Italiana (display, echoes the logo's hairline contrast) + Jost (body, echoes the tagline). */
:root {
  --bg: #F8F5F0;
  --paper: #FFFDF9;
  --interior: #EEE7DD;
  --interior-deep: #E3D9CB;
  --ink: #231C17;
  --muted: #857A6E;
  --line: #DCD2C4;
  --gold: #B4925A;
  --gold-hi: #E3CC9C;
  --gold-lo: #8C6D3C;
  --oxblood: #7A2A2E;
  --band: #231C17;
  --band-ink: #EFE6D8;
  --band-muted: #A99B88;
  --shadow: rgba(70, 50, 30, .16);

  --f-display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --f-body: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-weight: 300; font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }   /* the hidden attribute always wins over layout styles */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold-hi); color: var(--ink); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { margin: 0; font-size: .7rem; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: .02em; line-height: 1.08; margin: 0; text-wrap: balance; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 1px solid var(--ink);
  font-size: .74rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--gold-lo); border-color: var(--gold-lo); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.link-line { position: relative; display: inline-block; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; padding-bottom: 4px; }
.link-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .45s var(--ease); }
.link-line:hover::after { transform: scaleX(.35); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: transform .45s var(--ease), background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(248, 245, 240, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-row { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.header-left, .header-right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.header-right { justify-content: flex-end; }
.logo img { height: clamp(18px, 2.2vw, 24px); width: auto; }
.nav-inline { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav-inline a, .menu-btn { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 400; }
.nav-inline a { position: relative; padding: 6px 0; }
.nav-inline a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-inline a:hover::after, .nav-inline a[aria-current]::after { transform: scaleX(1); }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; }
.menu-lines { width: 22px; height: 7px; border-block: 1px solid currentColor; }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; margin: -10px; }
.icon-link:hover { color: var(--gold-lo); }

/* ---------- menu dialog ---------- */
.menu { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
.menu::backdrop { background: rgba(35, 28, 23, .2); }
.menu[open] { animation: menu-in .5s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; gap: 36px; padding: 28px var(--gutter) 40px; }
.menu-close { align-self: flex-end; width: 44px; height: 44px; display: grid; place-items: center; }
.menu-logo { width: min(260px, 70vw); }
.menu nav ul, .menu-pieces ul { list-style: none; margin: 0; padding: 0; }
.menu nav a { font-family: var(--f-display); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.3; }
.menu-pieces ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; }
.menu-pieces a { font-size: .95rem; border-bottom: 1px solid var(--line); }
.menu-contact { margin-top: auto; display: grid; gap: 12px; font-size: .9rem; }
.menu-contact a { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- wardrobe (home hero) ---------- */
.wardrobe {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: var(--header-h);
  min-height: max(640px, min(100svh, 980px));
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 70% at 50% 0%, #F7F1E8 0%, transparent 60%),
    linear-gradient(180deg, var(--interior) 0%, var(--interior-deep) 100%);
}
.wardrobe::after { /* floor shadow + soft vignette that gives the cabinet depth */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(60, 40, 20, .10), transparent 9%, transparent 91%, rgba(60, 40, 20, .10)),
    linear-gradient(0deg, rgba(60, 40, 20, .10), transparent 22%);
}
.wardrobe-head { text-align: center; padding: clamp(18px, 4vh, 40px) var(--gutter) 0; }
.wardrobe-head .display { font-size: clamp(2.1rem, 5.4vw, 4.2rem); margin-top: 10px; }
/* Rotating boutique rack. --w = piece width, --rf = rail radius as a multiple of --w (read by home.js). */
.spin {
  --w: clamp(140px, min(19vw, 24vh), 240px); --rf: 1.55;
  /* room for the front piece, which looks ~25% larger because it sits forward on the ring */
  position: relative; flex: 1; min-height: calc(var(--w) * 1.95 + 56px);
  perspective: 1500px; perspective-origin: 50% 18%;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none;
}
.spin.is-dragging { cursor: grabbing; }
.spin:focus-visible .spin-rail { box-shadow: 0 0 0 2px var(--gold-hi); }
.spin-ring { position: absolute; left: 50%; top: calc(44px + var(--w) * .12); width: 0; height: 0; transform-style: preserve-3d; }
.spin-rail { /* the circular brass rail, seen from slightly above */
  position: absolute; left: calc(var(--w) * var(--rf) * -1.04); top: -6px;
  width: calc(var(--w) * var(--rf) * 2.08); height: calc(var(--w) * var(--rf) * 2.08); border-radius: 50%;
  border: 6px solid var(--gold); box-shadow: inset 0 0 0 1px var(--gold-lo), 0 6px 14px rgba(70, 50, 30, .25);
  transform: rotateX(90deg); transform-origin: 50% 0;
}
.spin-pole { position: absolute; left: -3px; top: -6px; width: 6px; height: calc(var(--w) * 1.2); background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi), var(--gold)); }
.spin-piece { position: absolute; top: 0; left: calc(var(--w) / -2); width: var(--w); aspect-ratio: 3 / 4; transform-style: preserve-3d; transform-origin: 50% 0; -webkit-tap-highlight-color: transparent; }
.spin-front, .spin-rear { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--paper); }
.spin-front { box-shadow: 0 26px 36px -20px rgba(70, 50, 30, .45); }
.spin-front img, .spin-rear img { width: 100%; height: 100%; object-fit: cover; }
.spin-front img { transition: filter .5s; }
.spin-piece.is-back .spin-front img { filter: brightness(.82) saturate(.8); }
.spin-rear { transform: rotateY(180deg); }
.spin-rear img { filter: blur(10px) brightness(.8) saturate(.7); transform: scale(1.15); }
.spin-floor { position: absolute; left: 50%; bottom: 4%; width: min(70vw, 620px); height: 60px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 50, 30, .16), transparent); }
.spin-label { position: relative; z-index: 3; text-align: center; padding: 0 var(--gutter) clamp(18px, 3vh, 30px); }
.spin-name { margin: 0; font-family: var(--f-display); font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.05; }
.spin-meta { margin: 4px 0 0; font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.spin-price { margin: 6px 0 0; font-size: .86rem; letter-spacing: .14em; }
.spin-row { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 14px; }
.spin-hint { margin: 10px 0 0; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.rail-btn { width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s; }
.rail-btn:hover { background: var(--ink); color: var(--paper); }
.rail-btn svg { width: 17px; height: 17px; }

/* Wardrobe doors that swing open on first load. */
.doors { position: absolute; inset: 0; z-index: 20; display: flex; perspective: 1800px; cursor: pointer; }
.doors.is-open { pointer-events: none; }
.door {
  flex: 1; position: relative;
  background:
    linear-gradient(var(--sheen, 90deg), rgba(255, 255, 255, .5), transparent 30%),   /* light on the outer edge */
    repeating-linear-gradient(180deg, transparent 0 9px, rgba(120, 95, 65, .035) 9px 10px),
    #F1EBE2;
  box-shadow: inset 0 0 0 1px rgba(140, 109, 60, .25), inset 0 0 0 18px #F4EFE7, inset 0 0 0 19px rgba(140, 109, 60, .22);
  will-change: transform, opacity;   /* swing is driven frame-by-frame from home.js */
  backface-visibility: hidden;
}
.door-l { transform-origin: left center; }
.door-r { transform-origin: right center; --sheen: 270deg; }   /* mirror the sheen so both doors match */
.door::after { /* brass pull */
  content: ""; position: absolute; top: 50%; width: 6px; height: 120px; margin-top: -60px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi), var(--gold));
  box-shadow: 0 2px 6px rgba(70, 50, 30, .3);
}
.door-l::after { right: 28px; } .door-r::after { left: 28px; }
.doors-logo { position: absolute; left: 50%; top: 30%; width: min(420px, 70vw); transform: translate(-50%, -50%); z-index: 2; animation: logo-in 1s var(--ease) backwards; }
@keyframes logo-in { from { opacity: 0; transform: translate(-50%, -42%); } }
.doors.is-gone { display: none; }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 12vw, 150px); }
.statement { text-align: center; }
.statement .display { font-size: clamp(2rem, 5vw, 3.8rem); max-width: 18ch; margin: 18px auto 0; }
.statement p:last-child { max-width: 52ch; margin: 22px auto 0; color: var(--muted); }
.diamond-rule { display: flex; align-items: center; justify-content: center; gap: 0; margin: 26px auto 0; width: min(360px, 70%); }
.diamond-rule::before, .diamond-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.diamond-rule span { width: 7px; height: 7px; background: var(--ink); transform: rotate(45deg); margin-inline: 10px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head .display { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 8px; }

/* 3 + 2 layout: six tracks, each card spans two, the last row is centred. */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 28px); }
.grid .card { grid-column: span 2; }
.grid .card:nth-child(4) { grid-column: 2 / span 2; }
.card { display: block; }
.card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--interior); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.4s var(--ease); }
.card-media .alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media .alt, .card:focus-visible .card-media .alt { opacity: 1; }
.card:hover .card-media img { transform: scale(1.025); }
.card-body { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; }
.card-name { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.15; }
.card-title { font-size: .8rem; color: var(--muted); }
.card-price { font-size: .85rem; letter-spacing: .1em; white-space: nowrap; }
.swatches { display: flex; gap: 6px; margin-top: 8px; }
.swatch { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

.story-teaser { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.story-teaser figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.story-teaser figure img { width: 100%; height: 100%; object-fit: cover; }
.story-teaser .display { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: 12px 0 20px; }
.story-teaser p { color: var(--muted); max-width: 46ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 32px clamp(16px, 2.6vw, 36px) 8px 0; }
.step + .step { padding-left: clamp(16px, 2.6vw, 36px); border-left: 1px solid var(--line); }
.step-num { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--gold); }
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; margin: 14px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
.order-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* Only hidden once site.js has confirmed it can reveal them (html.js-reveal), so content never stays invisible. */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--band); color: var(--band-ink); padding-top: clamp(56px, 8vw, 96px); }
.site-footer .eyebrow { color: var(--band-muted); margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { width: 170px; }
.footer-brand p { color: var(--band-muted); margin: 14px 0 0; font-size: .9rem; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-hi); }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; word-break: break-all; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: clamp(48px, 7vw, 80px); padding-block: 22px; border-top: 1px solid rgba(239, 230, 216, .14); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); }

/* ---------- product page ---------- */
.pdp { padding-top: var(--header-h); }
.crumbs { padding-block: 18px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin-inline: 10px; }
/* Product page fits one screen: a single-image stage (capped to viewport height) + side thumbnails + details. */
.pdp { --stage-h: min(calc(100vh - var(--header-h) - 84px), 820px); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, max-content) minmax(300px, 460px); justify-content: center; gap: clamp(28px, 5vw, 72px); align-items: start; }
.gallery-wrap { display: grid; grid-template-columns: 64px minmax(0, max-content); gap: 12px; align-items: start; }
.thumbs { display: grid; gap: 8px; max-height: var(--stage-h); overflow-y: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { width: 64px; aspect-ratio: 3 / 4; overflow: hidden; opacity: .5; outline: 1px solid transparent; outline-offset: -1px; transition: opacity .3s, outline-color .3s; }
.thumbs button:hover { opacity: .85; }
.thumbs button[aria-selected="true"] { opacity: 1; outline-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.stage-main { position: relative; width: calc(var(--stage-h) * .75); max-width: 100%; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--interior); }
.gallery::-webkit-scrollbar { display: none; }
.gallery button { flex: none; width: 100%; aspect-ratio: 3 / 4; scroll-snap-align: start; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img { transition: transform .35s var(--ease); will-change: transform; }
.gallery button.is-zoomed img { transform: scale(2.2); }
.g-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(248, 245, 240, .82); opacity: 0; transition: opacity .3s; }
.g-prev { left: 12px; } .g-next { right: 12px; }
.stage-main:hover .g-arrow, .g-arrow:focus-visible { opacity: 1; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 3px 10px; background: rgba(248, 245, 240, .85); font-size: .7rem; letter-spacing: .16em; }

.info { position: sticky; top: calc(var(--header-h) + 24px); padding-bottom: 40px; }
.info h1 { font-size: clamp(2.6rem, 4.6vw, 3.8rem); margin-top: 10px; }
.info-title { margin: 6px 0 0; font-size: 1rem; color: var(--muted); letter-spacing: .02em; }
.info-price { margin: 22px 0 0; font-size: 1.15rem; letter-spacing: .1em; }
.info-line { margin: 18px 0 0; font-size: 1rem; }
.opt { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.opt-label { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; }
.opt-label b { font-weight: 400; color: var(--muted); letter-spacing: .08em; text-transform: none; margin-left: 8px; font-size: .9rem; }
.colour-row { display: flex; align-items: center; gap: 12px; }
.colour-row .swatch { width: 22px; height: 22px; }
.fabric-line { margin: 16px 0 0; }
.sizes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;   /* one equal column per size */ gap: 8px; border: 0; margin: 0; padding: 0; }
.size-chip { position: relative; }
.size-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size-chip span { display: grid; place-items: center; height: 48px; border: 1px solid var(--line); font-size: .9rem; letter-spacing: .12em; transition: border-color .25s, background .25s, color .25s; }
.size-chip input:hover + span { border-color: var(--ink); }
.size-chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size-chip input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }
.size-note { min-height: 1.4em; margin: 10px 0 0; font-size: .82rem; color: var(--oxblood); }
.size-fit { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.actions { display: grid; gap: 10px; margin-top: 18px; }
.actions svg { width: 18px; height: 18px; }
.assure { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .86rem; color: var(--muted); }
.assure li { display: flex; gap: 10px; align-items: baseline; }
.assure li::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg) translateY(-2px); flex: none; }

.acc { margin-top: 30px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; cursor: pointer; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 11px; height: 11px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform .35s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 0 22px; font-size: .95rem; color: #4A4038; }
.acc-body ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.acc-body p { margin: 0 0 10px; }

.more { border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 110px); }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); }

.order-bar { display: none; }

/* size table (shared by dialog + care page) */
.size-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.size-table th:first-child, .size-table td:first-child { text-align: left; padding-left: 0; }
.size-table thead th { font-weight: 400; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.size-table tbody th { font-weight: 400; }

/* dialogs */
.sheet { border: 0; padding: 0; background: var(--paper); color: var(--ink); width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); }
.sheet::backdrop { background: rgba(35, 28, 23, .45); }
.sheet[open] { animation: menu-in .4s var(--ease); }
.sheet-inner { padding: 30px clamp(20px, 4vw, 40px) 36px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.sheet-head h2 { font-size: 2rem; }
.sheet .x { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -12px; }
.sheet small { display: block; margin-top: 14px; color: var(--muted); font-size: .82rem; }

.lightbox { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: var(--bg); }
.lightbox::backdrop { background: var(--bg); }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track figure { flex: none; width: 100%; height: 100%; margin: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 56px 16px 64px; }
/* Cap to the viewport explicitly: a %-based max-height can't resolve against an auto-sized flex/grid item. */
.lb-track img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); object-fit: contain; }
.lb-ui { position: fixed; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; background: rgba(248, 245, 240, .8); border-radius: 50%; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
.lb-count { position: fixed; bottom: 18px; left: 50%; translate: -50% 0; font-size: .74rem; letter-spacing: .2em; color: var(--muted); }

/* ---------- content pages ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(40px, 8vw, 96px)); padding-bottom: clamp(32px, 5vw, 56px); text-align: center; }
.page-hero .display { font-size: clamp(2.6rem, 6.4vw, 5rem); margin-top: 14px; }
.page-hero p:last-child { max-width: 54ch; margin: 18px auto 0; color: var(--muted); }
.prose { max-width: 680px; margin-inline: auto; }
.prose h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 14px; line-height: 1.15; }
.prose p, .prose li { color: #4A4038; }
.prose ul { padding-left: 18px; }
.info-block { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.contact-list { list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.contact-list a { display: inline-flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.story-figs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-block: clamp(40px, 6vw, 72px); }
.story-figs img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.story-figs img:nth-child(2) { margin-top: 48px; }
.pullquote { font-family: var(--f-display); font-size: clamp(1.8rem, 3.8vw, 2.8rem); line-height: 1.2; text-align: center; margin: clamp(40px, 6vw, 72px) auto; max-width: 22ch; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav-inline { display: none; }
  .menu-btn { display: inline-flex; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid .card, .grid .card:nth-child(4) { grid-column: auto; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --header-h: 60px; }
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp .wrap.pdp-wrap { padding-inline: 0; }
  .crumbs { padding-inline: var(--gutter); }
  .gallery-wrap { display: block; }
  .thumbs, .g-arrow { display: none; }
  .stage-main { width: 100%; }
  .info { position: static; padding: 24px var(--gutter) 24px; }
  .more { padding-inline: var(--gutter); }
  .story-teaser { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .order-bar {
    display: flex; gap: 8px; position: fixed; inset: auto 0 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(248, 245, 240, .96); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .order-bar.is-on { transform: none; }
  .order-bar .btn { flex: 1; min-height: 48px; padding: 0 14px; font-size: .68rem; }
  .pdp-has-bar .site-footer { padding-bottom: 76px; }
  .story-figs { grid-template-columns: 1fr 1fr; }
  .story-figs img:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .spin { --w: min(58vw, 36vh); --rf: 1.12; perspective: 1100px; min-height: calc(var(--w) * 1.82 + 44px); }
  .wardrobe-head { padding-top: 10px; }
  .spin-hint { display: none; }
  .wardrobe-head .display { font-size: 2rem; }
  .grid { gap: 26px 10px; }
  .card-body { flex-direction: column; gap: 2px; }
  .card-name { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .doors { display: none; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ---------- compact home (less scrolling) ---------- */
.section.compact { padding-block: clamp(48px, 6vw, 80px); }
.section.compact .section-head .display { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 22ch; }
.grid.grid-5 { grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.grid.grid-5 .card, .grid.grid-5 .card:nth-child(4) { grid-column: auto; }
.grid-5 .card-body { flex-direction: column; gap: 2px; }
.grid-5 .card-name { font-size: 1.35rem; }
.band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.band .display { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 8px 0 14px; }
.band-story p:not(.eyebrow) { color: var(--muted); max-width: 44ch; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: baseline; font-size: .95rem; color: #4A4038; }
.mini-steps b { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; color: var(--gold); }
.band .order-cta { margin-top: 24px; }
@media (max-width: 1024px) { .grid.grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  /* phones: swipeable row instead of a long grid */
  .grid.grid-5 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .grid.grid-5::-webkit-scrollbar { display: none; }
  .grid.grid-5 .card { flex: none; width: 58vw; scroll-snap-align: start; }
}

/* pre-launch invitation under the rack */
.launch-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
.launch-note a { color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.launch-note a:hover { color: var(--gold-lo); }

/* ---------- waitlist page ---------- */
.wl { padding-top: calc(var(--header-h) + clamp(16px, 3vw, 40px)); padding-bottom: clamp(56px, 8vw, 100px); }
.wl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: clamp(28px, 6vw, 90px); align-items: start; justify-content: center; }
.wl-figure { margin: 0; position: sticky; top: calc(var(--header-h) + 20px); aspect-ratio: 3 / 4; max-height: calc(100vh - var(--header-h) - 60px); overflow: hidden; background: var(--interior); justify-self: end; width: min(100%, calc((100vh - var(--header-h) - 60px) * .75)); }
.wl-figure img { width: 100%; height: 100%; object-fit: cover; }
.wl-panel .display { font-size: clamp(2.6rem, 5vw, 4rem); margin: 10px 0 12px; }
.wl-lede { color: #4A4038; margin: 0 0 26px; }
.wl-lede strong, .wl-thanks strong { font-weight: 500; }
.wl-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.field small { letter-spacing: .02em; text-transform: none; color: var(--muted); font-size: .78rem; }
.field input, .field select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 0; padding: 13px 14px; min-height: 48px; width: 100%;
  transition: border-color .25s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field input:user-invalid { border-color: var(--oxblood); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .86rem; color: #4A4038; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.wl-submit { width: 100%; margin-top: 4px; }
.wl-submit:disabled { opacity: .6; cursor: progress; }
.wl-error { min-height: 1.2em; margin: 0; color: var(--oxblood); font-size: .86rem; }
.wl-small { margin: 0; font-size: .8rem; color: var(--muted); }
.wl-small a { border-bottom: 1px solid var(--line); }
.wl-thanks { padding-top: 6px; outline: none; }
.wl-thanks .display { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 12px; }
.wl-thanks p { color: #4A4038; }
.wl-thanks-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 820px) {
  .wl-grid { grid-template-columns: 1fr; }
  .wl-figure { position: static; width: min(64vw, 300px); justify-self: center; max-height: none; }
  .wl-panel { text-align: left; }
}

/* +91 prefix field */
.phone { display: flex; align-items: stretch; border: 1px solid var(--line); background: var(--paper); transition: border-color .25s; }
.phone:focus-within { border-color: var(--ink); }
.phone .cc { display: grid; place-items: center; padding: 0 12px; border-right: 1px solid var(--line); font-size: 1rem; color: var(--muted); }
.field .phone input { border: 0; min-width: 0; }
.field .phone input:focus { border: 0; }
.field-hint { color: var(--muted); font-size: .78rem; }
