/* =========================================================
   RUHAAB — the glass fitting room, with a Middle-Eastern luxury touch:
   warm sand, champagne gold, arched alcoves and a classical serif for the name
   Design system and plan: DESIGN.md
   ========================================================= */

:root {
  /* ground and ink */
  --bg: #ede9e3;
  --bg-2: #e5dfd6;
  --paper: #f8f6f2;
  --ink: #16120e;
  --ink-2: #48413a;
  --ink-3: #6e655b;
  --line: rgba(22, 18, 14, 0.1);
  --dark: #14100d;
  --on-dark: #f5efe6;
  --on-dark-2: rgba(245, 239, 230, 0.62);
  /* champagne gold: hairlines and ornaments (--gold), small text in gold (--gold-ink, 4.9:1 on --bg) */
  --gold: #b0894f;
  --gold-soft: rgba(176, 137, 79, 0.4);
  --gold-ink: #7a5c30;

  /* the studio light: the colour of the garment he is wearing (r g b), set from JS */
  --glow: 143 166 217;

  /* type */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* layout */
  --gutter: clamp(16px, 3vw, 48px);
  --maxw: 1440px;
  --nav-h: 56px;
  --nav-top: 14px;
  --r-panel: 24px;
  --r-card: 20px;
  --r-sm: 12px;

  /* glass */
  --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  --glass-filter: blur(22px) saturate(170%);
  --glass-shadow: 0 1px 1px rgba(22, 18, 14, 0.04), 0 18px 48px -18px rgba(70, 50, 28, 0.3);
  /* the rim catches the light white at the top and warms to gold at the far edge */
  --glass-rim: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.3) 30%, rgba(214, 186, 140, 0.12) 60%, rgba(206, 170, 112, 0.6));

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading, body.dialog-open { overflow: hidden; }

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
p, h1, h2, h3, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ink); color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 120;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 500;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; outline-color: var(--paper); outline-offset: -4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
/* section eyebrows: bronze-gold with a small diamond */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-ink); }
.eyebrow::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); flex: none; }
.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-stretch: 90%;
  font-size: clamp(30px, 3.4vw, 54px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.line-mask { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line-mask > span { display: block; }

/* =========================================================
   GLASS — translucent fill, backdrop blur, a specular rim
   that catches the light, and a highlight that follows the
   pointer (set from JS on [data-shine])
   ========================================================= */
.glass {
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-filter);
          backdrop-filter: var(--glass-filter);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(255, 255, 255, 0.16);
  isolation: isolate;
}
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -60%), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 65%);
  opacity: var(--shine, 0);
  transition: opacity 0.4s var(--ease-out);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(251, 249, 245, 0.9); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .btn--glass, .menu { background: rgba(251, 249, 245, 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .glass { background: #fff; box-shadow: 0 0 0 1px var(--ink); }
}

/* chips: small glass pills for labels and facts */
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 0 14px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.chip svg { width: 16px; height: 16px; flex: none; }
.chip__dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: rgb(var(--glow)); box-shadow: 0 0 0 3px rgb(var(--glow) / 0.28);
}

.swatch {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: var(--sw, #a9a9a7); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 0 0 2px rgba(255, 255, 255, 0.7);
}

/* ---------- buttons: one pair, both pills ---------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-family: var(--f-display); font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-out), background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: var(--ink); color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(222, 192, 140, 0.32), 0 10px 24px -12px rgba(22, 18, 14, 0.55);
}
.btn--primary:hover { background: #2c241d; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(222, 192, 140, 0.32), 0 14px 28px -12px rgba(22, 18, 14, 0.6); }
.btn--glass {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.46);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
          backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 8px 20px -12px rgba(70, 50, 28, 0.3);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.74); transform: translateY(-1px); }
.btn:active, .btn--primary:active, .btn--glass:active { transform: scale(0.97); transition-duration: 0.1s; }
.btn--block { width: 100%; }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: rgba(22, 18, 14, 0.06);
  transition: background-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(22, 18, 14, 0.12); }
.icon-btn:active { transform: scale(0.94); }

/* ---------- size picker: radios styled as pills ---------- */
.sizes { position: relative; border: 0; margin: 0; padding: 0; min-width: 0; }
.sizes legend { padding: 0; margin-bottom: 8px; }
.sizes__row { display: flex; gap: 6px; }
.size { position: relative; flex: 1; min-width: 44px; height: 44px; }
.size input {
  -webkit-appearance: none; appearance: none;
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(22, 18, 14, 0.09);
  transition: background-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.12s var(--ease-out);
}
.size input:hover { background: rgba(255, 255, 255, 0.85); }
.size input:active { transform: scale(0.95); }
.size input:checked { background: var(--ink); box-shadow: none; }
.size input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.size label {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--ink);
  transition: color 0.2s var(--ease-out);
}
.size input:checked + label { color: var(--paper); }

/* =========================================================
   NAV — one floating glass pill
   ========================================================= */
.nav {
  position: fixed; z-index: 60; left: 0; right: 0;
  top: calc(var(--nav-top) + env(safe-area-inset-top));
  width: min(calc(100% - 2 * var(--gutter)), 920px); margin: 0 auto;
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out), visibility 0.4s;
}
.nav.is-hidden { opacity: 0; visibility: hidden; transform: translateY(-14px); pointer-events: none; }
.nav__bar {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: var(--nav-h); padding: 0 6px 0 22px; border-radius: 999px;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.wordmark {
  justify-self: start;
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--f-serif); font-weight: 600; font-size: 20px; line-height: 1; letter-spacing: 0.2em; white-space: nowrap;
}
.wordmark span {
  margin-left: 0.6em;
  font-family: var(--f-display); font-weight: 500; font-stretch: 112%; font-size: 11px; letter-spacing: 0.28em; color: var(--ink-2);
}
.nav.is-dark .wordmark span { color: var(--on-dark-2); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: background-color 0.2s var(--ease-out);
}
.nav__link:hover { background: rgba(22, 18, 14, 0.06); }
.nav__actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.bag-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: rgba(22, 18, 14, 0.06);
  transition: background-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.bag-btn:hover { background: rgba(22, 18, 14, 0.11); }
.bag-btn:active { transform: scale(0.96); }
.bag-btn svg { width: 20px; height: 20px; flex: none; }
.bag-btn__count {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums;
}
.bag-btn.is-bump .bag-btn__count { animation: bump 0.5s var(--ease-out); }
@keyframes bump { 35% { transform: scale(1.3); } }

.menu-btn {
  display: none; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: rgba(22, 18, 14, 0.06);
}
.menu-btn__icon { display: grid; gap: 5px; width: 16px; }
.menu-btn__icon i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease-out); }
.menu-open .menu-btn__icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn__icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* over the dark footer: dark glass */
.nav.is-dark .nav__bar {
  color: var(--on-dark);
  background: linear-gradient(180deg, rgba(44, 37, 30, 0.72), rgba(26, 21, 17, 0.58));
  box-shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.nav.is-dark .nav__bar::before { opacity: 0.25; }
.nav.is-dark .nav__link:hover, .nav.is-dark .bag-btn, .nav.is-dark .menu-btn { background: rgba(255, 255, 255, 0.1); }
.nav.is-dark .bag-btn__count { background: var(--on-dark); color: var(--ink); }

/* phone menu: a full-screen sheet of glass */
.menu {
  position: fixed; inset: 0; z-index: 55;
  padding: calc(var(--nav-top) + var(--nav-h) + 36px + env(safe-area-inset-top)) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(237, 233, 227, 0.76);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
          backdrop-filter: blur(28px) saturate(160%);
}
.menu[hidden] { display: none; }
.menu__nav { display: grid; }
.menu__nav a {
  display: block; padding: 8px 0;
  font-weight: 500; font-stretch: 90%; font-size: clamp(40px, 11vw, 64px); line-height: 1.02; letter-spacing: -0.045em;
}

/* =========================================================
   FITTING ROOM (pinned)
   ========================================================= */
.fit { position: relative; }
.fit__pin {
  --stage-h: min(76svh, 1040px);
  --stage-bottom: clamp(56px, 9svh, 110px);
  position: relative; width: 100%;
  height: 100vh; height: 100lvh;
  overflow: hidden;
  background: var(--bg);
}

/* the studio: pearl ground, a soft key light from above and a coloured light that follows the garment */
.fit__bg {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, #f8f5f0 0%, var(--bg) 52%, #e0d9ce 100%);
}
.fit__light {
  position: absolute; left: 50%; top: 50%;
  width: min(118vw, 1600px); aspect-ratio: 1.3;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(var(--glow) / 0.62), rgb(var(--glow) / 0.26) 48%, rgb(var(--glow) / 0) 100%);
}
.fit__sheen {
  position: absolute; inset: 0;
  background:
    radial-gradient(38% 30% at 50% 6%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(224, 217, 206, 0.7) 100%);
}

/* the masthead: the name set huge behind his head, letters lit like frosted glass */
.masthead {
  position: absolute; left: 0; right: 0; z-index: 0;
  top: calc(var(--nav-top) + var(--nav-h) + 1.4svh);
  display: flex; justify-content: center; gap: 0.02em;
  font-family: var(--f-serif); font-weight: 600;
  font-size: clamp(86px, 19vw, 320px); line-height: 0.8; letter-spacing: 0;
  pointer-events: none; user-select: none;
}
.masthead span { display: block; color: rgba(255, 255, 255, 0.86); text-shadow: 0 1px 0 rgba(176, 137, 79, 0.18); }

/* the UI layer is sized to the *small* viewport so nothing hides under mobile browser bars */
.fit__ui {
  --side: calc(50% - var(--stage-h) / 3 - var(--gutter) - 28px);
  --hud-bottom: clamp(104px, 15svh, 180px);
  position: absolute; left: 0; right: 0; top: 0; height: 100vh; height: 100svh; z-index: 2;
}

.fit__stage {
  position: absolute; left: 50%; bottom: var(--stage-bottom);
  height: var(--stage-h); width: calc(var(--stage-h) * 2 / 3);
  transform: translateX(-50%);
}

.figure {
  position: absolute; inset: 0; z-index: 1;   /* in front of the floating products */
  transform-origin: 53.4% 52%;
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 99%);
          mask-image: linear-gradient(to bottom, #000 86%, transparent 99%);
}
.figure__canvas, .figure__poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.is-live .figure__poster { display: none; }

/* garment layers: garment-only cut-outs (built in _tools/layers.mjs — no face, neck, hands or
   trousers in them), so only clothing ever blurs or moves while it lifts off / settles on */
.wears { position: absolute; inset: 0; pointer-events: none; }
.wear {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; visibility: hidden;
  transform-origin: 50% 55%;
  will-change: transform, opacity, filter;
}
.figure__split { position: absolute; inset: 0; perspective: 1400px; visibility: hidden; }
.half {
  position: absolute; inset: 0;
  background: url("../assets/layers/zip.webp?v=8") 0 0 / 100% 100% no-repeat;
  backface-visibility: hidden;
}
/* clip polygons (the unzip shape) are set from JS */
.half--l { transform-origin: 8% 55%; }   /* hinged at the jacket's outer side seams */
.half--r { transform-origin: 92% 55%; }

/* floating products travel behind the model (and behind the glass look card) */
.ghosts { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.9s var(--ease-out); }
.is-live .ghosts { opacity: 1; }
.ghost {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; visibility: hidden;
  will-change: transform, opacity, filter;
}

/* copy — left */
.fit__copy {
  position: absolute; z-index: 3;
  left: var(--gutter); bottom: var(--hud-bottom);
  width: min(var(--side), 470px);
  display: grid; justify-items: start; gap: 18px;
}
.fit__title {
  font-weight: 500; font-stretch: 90%;
  font-size: clamp(34px, 4.3vw, 72px); line-height: 0.95; letter-spacing: -0.045em;
}
.fit__title .line-mask > span { white-space: nowrap; }
.fit__sub { max-width: 34ch; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.fit__cta { margin-top: 4px; }

/* the Harrington's copy takes over from the headline as the jacket opens (driven from JS) */
.fit__copy--end { display: none; opacity: 0; }
.fit__title--end { font-size: clamp(30px, 3.6vw, 60px); line-height: 0.98; text-wrap: balance; }
.fit__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* the look he is wearing — a glass card on the right */
.look-card {
  position: absolute; z-index: 3;
  right: var(--gutter); bottom: var(--hud-bottom);
  width: clamp(248px, var(--side), 300px);
  padding: 18px; border-radius: var(--r-panel);
  display: grid; gap: 14px;
}
.look-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.look-card__of { color: var(--ink-3); }
.look-card__bar { display: none; }
.look-card__clip { overflow: hidden; padding: 2px 0; margin: -2px 0; }
.look-card__inner { display: grid; gap: 6px; }
.look-card__name {
  font-weight: 500; font-stretch: 92%;
  font-size: 24px; line-height: 1.05; letter-spacing: -0.03em;
}
.look-card__meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; font-size: 14px; color: var(--ink-2); }
.look-card__dot { color: var(--ink-3); }
.look-card__price { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.look-card__add-short { display: none; }

/* try-on dock — bottom centre */
.dock {
  position: absolute; z-index: 3; left: 0; right: 0; margin: 0 auto; width: max-content;
  bottom: calc(clamp(16px, 2.8svh, 30px) + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 18px; border-radius: 999px;
}
.dock__count { font-variant-numeric: tabular-nums; }
.dock__count b { color: var(--ink); font-weight: 500; }
.dock__items { position: relative; display: flex; gap: 4px; }
.dock__btn {
  position: relative; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
}
.dock__btn img {
  width: 38px; height: 38px; object-fit: contain; opacity: 0.7;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.dock__btn[aria-current="true"] img { opacity: 1; }
.dock__btn:hover img { transform: scale(1.1); opacity: 1; }
.dock__btn:active img { transform: scale(0.94); transition-duration: 0.1s; }
.dock__btn::after {
  content: attr(data-name);
  position: absolute; left: 50%; bottom: calc(100% + 14px);
  translate: -50% 4px;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  background: rgba(22, 18, 14, 0.88); color: var(--paper);
  font-size: 12px; font-weight: 500; line-height: 1;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s var(--ease-out), translate 0.18s var(--ease-out);
}
.dock__btn:hover::after, .dock__btn:focus-visible::after { opacity: 1; translate: -50% 0; }
/* the lens: a drop of clearer glass that glides under the look being worn */
.dock__lens {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.6) 70%);
  box-shadow: inset 0 0 0 1px rgba(201, 164, 106, 0.55), inset 0 -6px 12px rgb(var(--glow) / 0.3), 0 8px 18px -8px rgba(70, 50, 28, 0.4);
  will-change: transform;
}

/* scroll hint — bottom right */
.fit__hint {
  position: absolute; z-index: 3; right: var(--gutter);
  bottom: calc(clamp(16px, 2.8svh, 30px) + 18px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.fit__hint-line { position: relative; width: 1px; height: 28px; background: var(--line); overflow: hidden; }
.fit__hint-line::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: var(--ink);
  animation: hint 2.4s var(--ease-in-out) infinite;
}
@keyframes hint { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(260%); } }

/* zipper pull (runs down the teeth while unzipping) */
.zip-pull {
  position: absolute; left: 52%; top: 40%;
  width: 2.8%; height: auto; aspect-ratio: 20 / 62;
  transform: translate(-50%, -13%);
  opacity: 0; pointer-events: none;
  filter: drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.45));
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; z-index: 3; padding: clamp(96px, 10vw, 160px) 0; background: var(--bg); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head__text { display: grid; gap: 16px; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- shop ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 24px); row-gap: clamp(28px, 3vw, 44px); }
.card { display: grid; gap: 14px; align-content: start; }
.card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  /* an arched niche: a semicircle on top, soft corners below */
  border-radius: 50% 50% var(--r-card) var(--r-card) / 40% 40% var(--r-card) var(--r-card);
  background:
    radial-gradient(64% 52% at 50% 44%, color-mix(in srgb, var(--tone) 34%, #ffffff) 0%, color-mix(in srgb, var(--tone) 12%, var(--paper)) 62%, color-mix(in srgb, var(--tone) 14%, var(--bg-2)) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), inset 0 0 0 7px rgba(255, 255, 255, 0.14);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
@media (hover: hover) {
  .card:hover .card__media { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), inset 0 0 0 7px rgba(255, 255, 255, 0.14), 0 26px 48px -30px rgba(70, 50, 28, 0.45); }
}
/* product shot by default, the same piece worn by the model on hover */
.card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: transform 0.9s var(--ease-out), opacity 0.5s var(--ease-out);
}
.card__img--product { object-fit: contain; }
.card__img--worn { object-fit: cover; object-position: 50% 5%; opacity: 0; transform: scale(1.06); }
@media (hover: hover) {
  .card:hover .card__img--product { opacity: 0; transform: scale(0.97); }
  .card:hover .card__img--worn { opacity: 1; transform: scale(1.03); }
}
.card__tag { position: absolute; left: 50%; top: 16px; translate: -50% 0; min-height: 30px; padding: 0 12px; }

/* quick add: a glass tray with sizes (one click adds the piece) */
.card__tray {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 6px 6px 14px; border-radius: 18px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out);
}
.card:hover .card__tray, .card:focus-within .card__tray { opacity: 1; transform: none; }
.card:focus-within .card__tray { transition: none; }
.card__sizes { display: flex; gap: 4px; }
.size-btn {
  width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  background: rgba(255, 255, 255, 0.55);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.12s var(--ease-out);
}
.size-btn:hover { background: var(--ink); color: var(--paper); }
.size-btn:active { transform: scale(0.92); }
.card__quick {
  position: absolute; right: 10px; bottom: 10px;
  width: 44px; height: 44px; border-radius: 50%;
  display: none; place-items: center;
}
.card__quick svg { width: 20px; height: 20px; }
@media (hover: none) {
  .card__tray { display: none; }
  .card__quick { display: grid; }
}
.card__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; }
.card__name { font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.card__price { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.card__color { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }

/* ---------- how it layers ---------- */
.layers { background: var(--bg-2); overflow: clip; }
.layers__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.layers__text { display: grid; gap: 22px; align-content: start; }
.layers__statement {
  max-width: 21ch;
  font-weight: 500; font-stretch: 92%;
  font-size: clamp(30px, 3.4vw, 54px); line-height: 1.06; letter-spacing: -0.035em;
}
/* the statement lights up word by word, from a readable grey (4.3:1) to ink */
.layers__statement .w { color: var(--ink-3); }
.no-gsap .layers__statement .w { color: inherit; }
.layers__body { max-width: 46ch; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.stat { position: relative; display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: 18px; }
.stat strong {
  font-family: var(--f-serif); font-weight: 600;
  font-size: clamp(34px, 3.1vw, 46px); line-height: 0.85; letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums;
}
.stat small { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-left: 4px; }
.stat span { font-size: 14px; line-height: 1.35; color: var(--ink-2); }

/* the layer stack: three frosted panes, outer in front, the base at the back */
.stack { position: relative; width: 100%; max-width: 580px; justify-self: center; aspect-ratio: 1 / 1.08; }
.stack__light {
  position: absolute; inset: 0;
  background:
    radial-gradient(30% 26% at 68% 34%, rgb(143 166 217 / 0.6), rgb(143 166 217 / 0) 100%),
    radial-gradient(32% 28% at 50% 54%, rgb(176 137 79 / 0.32), rgb(176 137 79 / 0) 100%),
    radial-gradient(32% 26% at 32% 70%, rgb(201 143 149 / 0.5), rgb(201 143 149 / 0) 100%);
}
.pane {
  position: absolute; z-index: calc(3 - var(--i));
  left: calc(var(--i) * 20%); bottom: calc(var(--i) * 15%);
  width: 60%; aspect-ratio: 4 / 5;
  border-radius: 28px;
  transition: transform 0.7s var(--ease-out);
}
.pane img {
  position: absolute; left: 4%; top: 10%; width: 92%; height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(30, 24, 40, 0.18));
}
.pane__tag { position: absolute; left: 18px; top: 16px; color: var(--gold-ink); }
@media (hover: hover) {
  .stack:hover .pane { transform: translate(calc(var(--i) * 4%), calc(var(--i) * -4%)); }
}

/* ---------- the list ---------- */
.list { overflow: clip; padding-block: clamp(96px, 11vw, 168px); }
.list__light {
  position: absolute; inset: 0;
  background:
    radial-gradient(30% 46% at 20% 42%, rgb(143 166 217 / 0.55), rgb(143 166 217 / 0) 100%),
    radial-gradient(30% 46% at 80% 62%, rgb(201 143 149 / 0.5), rgb(201 143 149 / 0) 100%),
    radial-gradient(26% 40% at 56% 18%, rgb(226 199 154 / 0.6), rgb(226 199 154 / 0) 100%),
    radial-gradient(24% 36% at 40% 92%, rgb(167 174 126 / 0.45), rgb(167 174 126 / 0) 100%);
}
.list__card {
  position: relative; max-width: 760px; margin: 0 auto;
  padding: clamp(28px, 4.4vw, 60px); border-radius: 32px;
  display: grid; justify-items: center; gap: 16px; text-align: center;
}
.list__text { max-width: 40ch; color: var(--ink-2); }
.news-form { width: 100%; max-width: 520px; display: grid; gap: 8px; margin-top: 10px; text-align: left; }
.news-form__label { padding-left: 22px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.news-form__row {
  display: flex; gap: 6px; padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), inset 0 1px 3px rgba(22, 18, 14, 0.06);
  transition: box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.news-form__row:focus-within { background: rgba(255, 255, 255, 0.85); }
.news-form input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink);
}
.news-form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.news-form input::placeholder { color: var(--ink-3); }
.news-form input[aria-invalid="true"] { color: #8f2236; }
.news-form__row:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 1.5px #a3374a; }
.news-form__note { padding-left: 22px; font-size: 13px; color: var(--ink-2); }
.news-form__note.is-error { color: #8f2236; }
.news-form__note.is-ok { color: var(--ink); font-weight: 500; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative; z-index: 3; overflow: hidden;
  background: var(--dark); color: var(--on-dark);
  padding: clamp(64px, 8vw, 112px) 0 24px;
  border-top: 1px solid var(--gold-soft);
}
/* a lattice of eight-point stars in gold, fading in from the bottom */
.footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23c9a46a' stroke-width='1'%3E%3Cpath d='M28 10 46 28 28 46 10 28Z'/%3E%3Cpath d='M15.3 15.3h25.4v25.4H15.3Z'/%3E%3Cpath d='M0 28h10M46 28h10M28 0v10M28 46v10'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px 56px;
  opacity: 0.09;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 75%);
          mask-image: linear-gradient(to top, #000 0%, transparent 75%);
}
.footer > .wrap { position: relative; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; }
.footer__lede { max-width: 15ch; font-weight: 500; font-stretch: 92%; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -0.035em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer__label { margin-bottom: 10px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #c9a46a; }
.footer ul { display: grid; }
.footer a {
  display: inline-block; padding: 6px 0; font-size: 15px; color: rgba(243, 241, 246, 0.86);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 5px) / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease-out), color 0.2s;
}
.footer a:hover { background-size: 100% 1px; color: #fff; }
.footer a:focus-visible { outline-color: var(--on-dark); }
.footer__mark {
  margin-top: clamp(56px, 8vw, 120px);
  font-family: var(--f-serif); font-weight: 600;
  font-size: 24cqi; line-height: 0.78; letter-spacing: 0.02em; white-space: nowrap; text-align: center;
  color: var(--on-dark);
}
.footer > .wrap { container-type: inline-size; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(243, 241, 246, 0.14);
  font-size: 13px; color: var(--on-dark-2);
}

/* =========================================================
   DIALOGS — size sheet and bag drawer
   ========================================================= */
.sheet, .drawer { position: fixed; inset: 0; z-index: 90; }
.sheet[hidden], .drawer[hidden] { display: none; }
.sheet__scrim, .drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(22, 18, 14, 0.26);
  opacity: 0; transition: opacity 0.35s var(--ease-out);
}
.is-open > .sheet__scrim, .is-open > .drawer__scrim { opacity: 1; }

.sheet__panel {
  position: absolute; left: 0; right: 0; margin: 0 auto;
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 440px);
  padding: 20px; border-radius: 28px;
  display: grid; gap: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66));
  transform: translateY(calc(100% + 24px));
  transition: transform 0.42s var(--ease-out);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__close { position: absolute; right: 12px; top: 12px; }
.sheet__product { display: flex; align-items: center; gap: 14px; padding-right: 48px; }
.sheet__thumb { width: 72px; height: 90px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, 0.7); }
.sheet__thumb img { width: 100%; height: 100%; object-fit: contain; }
.sheet__name { margin-top: 4px; font-weight: 500; font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; }
.sheet__meta { font-size: 14px; color: var(--ink-2); }

.drawer__panel {
  position: absolute; top: 10px; right: 10px; bottom: 10px;
  width: min(440px, calc(100% - 20px));
  padding: 20px; border-radius: 28px;
  display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(251, 249, 245, 0.74));
  transform: translateX(calc(100% + 24px));
  transition: transform 0.45s var(--ease-out);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; gap: 12px; }
.drawer__title { font-weight: 500; font-stretch: 92%; font-size: 26px; line-height: 1; letter-spacing: -0.035em; }
.drawer__head .icon-btn { margin-left: auto; }
.ship { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9); }
.ship__text { font-size: 14px; }
.ship__bar { height: 4px; border-radius: 4px; background: rgba(22, 18, 14, 0.08); overflow: hidden; }
.ship__bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 0.5s var(--ease-out); }
.bag-list { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 10px; margin: 0 -4px; padding: 2px 4px; }
.bag-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.55); }
.bag-item__thumb { width: 72px; height: 90px; border-radius: 12px; background: color-mix(in srgb, var(--tone, #ccc) 22%, #fff); }
.bag-item__thumb img { width: 100%; height: 100%; object-fit: contain; }
.bag-item__name { font-weight: 500; font-size: 15px; line-height: 1.3; }
.bag-item__meta { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.bag-item__price { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; padding: 2px; border-radius: 999px; background: rgba(22, 18, 14, 0.06); }
.qty button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background-color 0.2s, transform 0.12s; }
.qty button:hover { background: rgba(255, 255, 255, 0.9); }
.qty button:active { transform: scale(0.92); }
.qty button svg { width: 16px; height: 16px; }
.qty output { min-width: 22px; text-align: center; font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.bag-item__remove {
  display: block; margin: 8px 0 0 auto; min-height: 44px; padding: 0 2px;
  font-size: 13px; color: var(--ink-2);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 12px) / 100% 1px no-repeat;
}
.bag-item__remove:hover { color: var(--ink); }
.bag-empty { flex: 1; display: grid; align-content: center; justify-items: center; gap: 18px; text-align: center; color: var(--ink-2); }
.bag-empty[hidden], .drawer__foot[hidden] { display: none; }
.drawer__foot { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.drawer__total strong { font-weight: 500; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.drawer__note { font-size: 13px; color: var(--ink-2); text-align: center; }

/* toast — a glass pill under the nav */
.toast {
  position: fixed; z-index: 95; left: 0; right: 0; margin: 0 auto;
  top: calc(var(--nav-top) + var(--nav-h) + 12px + env(safe-area-inset-top));
  width: max-content; max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 12px;
  padding: 4px 4px 4px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98);
  transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.3s;
}
.toast.is-on { opacity: 1; visibility: visible; transform: none; }
.toast__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast__action {
  flex: none; height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500;
  transition: transform 0.15s var(--ease-out), background-color 0.2s;
}
.toast__action:hover { background: #2c241d; }
.toast__action:active { transform: scale(0.96); }
.toast__action[hidden] { display: none; }

/* =========================================================
   ENTRANCE — plays on first paint (no loading screen): the light
   comes up, the masthead rises letter by letter, he comes into
   focus, the headline lifts, then the glass arrives as a material
   (blur and scale settle together). Off once played, and under
   reduced motion.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  html:not(.entered) .fit__light { animation: in-light 1.8s var(--ease-out) 0.05s backwards; }
  html:not(.entered) .masthead span { animation: in-rise 1.3s var(--ease-out) 0.1s backwards; }
  html:not(.entered) .masthead span:nth-child(2) { animation-delay: 0.16s; }
  html:not(.entered) .masthead span:nth-child(3) { animation-delay: 0.22s; }
  html:not(.entered) .masthead span:nth-child(4) { animation-delay: 0.28s; }
  html:not(.entered) .masthead span:nth-child(5) { animation-delay: 0.34s; }
  html:not(.entered) .masthead span:nth-child(6) { animation-delay: 0.4s; }
  html:not(.entered) .fit__stage { animation: in-focus 1.4s var(--ease-out) 0.15s backwards; }
  html:not(.entered) .fit__title .line-mask > span { animation: in-line 1.2s var(--ease-out) 0.3s backwards; }
  html:not(.entered) .fit__title .line-mask:nth-child(2) > span { animation-delay: 0.38s; }
  html:not(.entered) .fit__copy .chip { animation: in-up 1s var(--ease-out) 0.26s backwards; }
  html:not(.entered) .fit__sub { animation: in-up 1s var(--ease-out) 0.44s backwards; }
  html:not(.entered) .fit__cta { animation: in-up 1s var(--ease-out) 0.5s backwards; }
  html:not(.entered) .look-card { animation: in-glass 1.1s var(--ease-out) 0.5s backwards; }
  html:not(.entered) .dock { animation: in-glass 1.1s var(--ease-out) 0.58s backwards; }
  html:not(.entered) .nav__bar { animation: in-drop 1s var(--ease-out) 0.45s backwards; }
  html:not(.entered) .fit__hint { animation: in-fade 1s ease 0.9s backwards; }
}
@keyframes in-light { from { opacity: 0; transform: translate(-50%, -50%) scale(0.86); } }
@keyframes in-rise { from { opacity: 0; transform: translateY(34%); } }
@keyframes in-focus { from { opacity: 0; filter: blur(14px); } }
@keyframes in-line { from { transform: translateY(110%); } }
@keyframes in-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes in-glass { from { opacity: 0; transform: translateY(18px) scale(0.96); filter: blur(8px); } }
@keyframes in-drop { from { opacity: 0; transform: translateY(-14px); } }
@keyframes in-fade { from { opacity: 0; } }

/* =========================================================
   FALLBACK (scripts blocked)
   ========================================================= */
.no-gsap .ghost { display: none; }
.no-gsap .fit__hint { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) and (min-width: 861px) {
  .fit__sub { font-size: 14px; }
  .look-card { padding: 16px; gap: 12px; }
  .look-card__name { font-size: 21px; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layers__grid { grid-template-columns: 1fr; }
  .stack { max-width: 460px; }
}

@media (max-width: 860px) {
  :root { --nav-h: 52px; --nav-top: 10px; }
  .nav { width: calc(100% - 20px); }
  .nav__bar { grid-template-columns: 1fr auto; padding-left: 18px; }
  .nav__links { display: none; }
  .bag-btn__label { display: none; }
  .bag-btn { padding: 0 8px 0 12px; }
  .menu-btn { display: inline-flex; }

  /* fitting room: model on top, copy above a glass look sheet at the bottom */
  .fit__pin { --stage-h: min(54svh, 640px); --stage-bottom: calc(236px + env(safe-area-inset-bottom)); }
  .masthead { font-size: 21vw; top: calc(var(--nav-top) + var(--nav-h) + 5.5svh); }
  .fit__copy {
    left: var(--gutter); right: var(--gutter); width: auto;
    bottom: calc(120px + env(safe-area-inset-bottom)); gap: 10px;
  }
  .fit__title { font-size: clamp(30px, 8.4vw, 46px); }
  .fit__title .line-mask { display: inline-block; vertical-align: top; }
  .fit__sub { font-size: 14px; max-width: 40ch; }
  .fit__cta, .dock, .fit__hint { display: none; }

  .look-card {
    left: 10px; right: 10px; width: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 12px 12px 12px 16px; border-radius: 22px;
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head head" "info add";
    gap: 8px 12px; align-items: center;
  }
  .look-card__head { grid-area: head; justify-content: flex-start; }
  .look-card__bar { display: block; flex: 1; height: 2px; border-radius: 2px; background: rgba(22, 18, 14, 0.1); overflow: hidden; }
  .look-card__bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0.2); }
  .look-card__clip { grid-area: info; }
  .look-card__inner { gap: 2px; }
  .look-card__name { font-size: 17px; letter-spacing: -0.02em; }
  .look-card__meta { font-size: 13px; flex-wrap: nowrap; white-space: nowrap; }
  .look-card__meta > span:first-of-type { overflow: hidden; text-overflow: ellipsis; }
  .look-card__sizes { display: none; }
  .look-card__add { grid-area: add; --h: 44px; padding: 0 20px; }
  .look-card__add-long { display: none; }
  .look-card__add-short { display: inline; }

  .fit__copy--end .fit__sub, .fit__copy--end .fit__ctas { display: none; }
  .fit__title--end { font-size: clamp(28px, 7.6vw, 44px); }

  .section-head { flex-direction: column; align-items: flex-start; }
  .footer a { padding: 11px 0; }
  .footer ul { gap: 0; }
}

/* tablets in portrait: give the model more of the tall screen */
@media (max-width: 860px) and (min-width: 600px) and (min-height: 900px) {
  .fit__pin { --stage-h: min(62svh, 860px); }
}

@media (max-width: 380px) {
  .menu-btn { width: 44px; padding: 0; justify-content: center; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wordmark { font-size: 18px; letter-spacing: 0.14em; }
  .nav__bar { padding-left: 16px; gap: 8px; }
}

@media (max-width: 520px) {
  .fit__copy .chip { display: none; }
  .wordmark span { display: none; }
  .grid { gap: 10px; row-gap: 26px; }
  .card__info { grid-template-columns: 1fr; }
  .card__price { grid-row: auto; }
  .card__name { font-size: 15px; }
  .card__color { font-size: 13px; }
  .card__tag { top: 12px; min-height: 26px; padding: 0 10px; font-size: 11px; letter-spacing: 0.04em; }
  .card__quick { right: 8px; bottom: 8px; }
  .stats { gap: 8px; }
  .stat { padding: 14px 12px; gap: 8px; border-radius: 16px; }
  .stat strong { font-size: 30px; }
  .stat small { display: block; margin: 6px 0 0; }
  .stat span { font-size: 13px; }
  .news-form__row { flex-direction: column; border-radius: 26px; }
  .news-form input { flex: none; }
  .news-form__row .btn { width: 100%; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bottom { flex-direction: column; }
}

/* phones held sideways: side-by-side composition like desktop */
@media (max-width: 960px) and (max-height: 560px) and (orientation: landscape) {
  .fit__pin { --stage-h: 78svh; --stage-bottom: 6svh; }
  .fit__ui { --hud-bottom: 8svh; }
  .masthead { font-size: 13vw; }
  .fit__copy { left: var(--gutter); right: auto; bottom: 10svh; width: 30vw; }
  .fit__copy .chip, .fit__sub { display: none; }
  .fit__title { font-size: clamp(22px, 3.6vw, 34px); }
  .fit__title .line-mask { display: block; }
  .look-card {
    left: auto; right: var(--gutter); bottom: 8svh; width: 30vw;
    grid-template-columns: 1fr; grid-template-areas: "head" "info" "add";
  }
  .look-card__add { justify-self: stretch; }
  .fit__title--end { font-size: clamp(22px, 3.4vw, 32px); }
}

@media (prefers-reduced-motion: reduce) {
  .fit__hint-line::after { animation: none; }
  .card__img, .card__media, .btn, .card__tray, .pane, .sheet__panel, .drawer__panel, .toast, .dock__btn img { transition-duration: 0.01ms !important; }
  .glass::after { display: none; }
}
