/* Layout: a fixed WebGL fitting room sits behind an editorial flow; type carries the structure,
   one garment travels through every section, and the page colour follows the garment. */
:root {
  --ink: #0e0c0a;
  --bone: #ece6db;
  --stone: #8f877b;
  --brass: #c9a26b;
  --paper: #e6dfd2;
  --bg: #0e0c0a;           /* tweened per section */
  --fg: #ece6db;           /* tweened per section */
  --muted: color-mix(in srgb, var(--fg) 56%, transparent);
  --hair: color-mix(in srgb, var(--fg) 16%, transparent);
  --f-display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --f-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gut: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fs-h2: clamp(2.6rem, 6.2vw, 6.8rem);
  color-scheme: dark;
}

/* lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: italic; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }

.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.label { color: var(--muted); }
h2 {
  font: 400 var(--fs-h2)/.92 var(--f-display);
  letter-spacing: -.025em;
  text-wrap: balance;
}
h2 em { font-weight: 400; }
.split-lines > div { padding: .16em 0 .14em; margin: -.16em 0 -.14em; }

/* ───────── fixed layers ───────── */
.stage-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at var(--glow-x, 50%) 46%, color-mix(in srgb, var(--fg) 7%, transparent), transparent 70%),
    var(--bg);
}
.gl { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; display: block; }
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ───────── loader ───────── */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--ink); color: var(--bone);
  display: grid; place-items: center; padding: var(--gut);
  animation: loader-failsafe 0s linear 14s forwards;
}
@keyframes loader-failsafe { to { visibility: hidden; } }
.loader__inner { width: min(760px, 100%); display: grid; gap: 22px; }
.loader__eyebrow { color: color-mix(in srgb, var(--bone) 55%, transparent); }
.loader__word { display: flex; justify-content: space-between; font: 400 clamp(4.5rem, 17vw, 12rem)/.8 var(--f-display); letter-spacing: -.02em; overflow: hidden; padding: .26em 0 .04em; margin-top: -.26em; }
.loader__word span { display: inline-block; transform: translateY(105%); }
.loader__row { display: flex; justify-content: space-between; color: color-mix(in srgb, var(--bone) 70%, transparent); }
.loader__num { font-variant-numeric: tabular-nums; color: var(--bone); }
.loader__bar { height: 1px; background: color-mix(in srgb, var(--bone) 15%, transparent); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0); }

/* ───────── cursor: one inverting disc ───────── */
.cursor { position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; display: none; mix-blend-mode: difference; }
@media (pointer: fine) { .cursor { display: block; } html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; } }
.cursor__dot {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .35s;
}
.cursor__label { font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-hover .cursor__dot { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-label { mix-blend-mode: normal; }
.cursor.is-label .cursor__dot { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--brass); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-down .cursor__dot { scale: .8; }
.cursor.is-out .cursor__dot { scale: 0; }

/* ───────── nav ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--gut) 22px;
  mix-blend-mode: difference; color: #ece6db;
}
.nav__logo { font: 500 22px/1 var(--f-display); letter-spacing: .14em; }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav__cart { justify-self: end; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; padding: 10px 0; }
.nav__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 11px; padding: 0 6px; font-variant-numeric: tabular-nums; }
.roll { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; overflow: hidden; display: inline-block; padding: 4px 0; }
.roll span { display: inline-block; position: relative; transition: transform .6s var(--ease); }
.roll span::after { content: attr(data-text); position: absolute; left: 0; top: 140%; }
.roll:hover span, .roll:focus-visible span { transform: translateY(-140%); }

/* stacking helpers: canvas is z 1 */
.hero > *, .manifesto > *, .footer > * { position: relative; z-index: 2; }

/* ───────── hero ───────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; padding: 0 var(--gut); display: grid; grid-template-rows: auto 1fr auto; }
.hero__meta { padding-top: calc(env(safe-area-inset-top, 0px) + 92px); display: flex; justify-content: space-between; color: var(--muted); gap: 12px; }
.hero .hero__title {
  position: absolute; z-index: 0; left: 0; right: 0; top: 50%; transform: translateY(-54%);
  display: flex; justify-content: center; gap: .01em;
  font: 400 clamp(6rem, 26vw, 34rem)/.78 var(--f-display); letter-spacing: -.035em;
  overflow: hidden; padding: .3em 0 .08em; pointer-events: none; color: var(--fg);
}
.hero__title span { display: inline-block; will-change: transform; }
.hero__title span:nth-child(5) { font-style: italic; }
.hero__foot { grid-row: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px); }
.hero__lede { max-width: 26ch; font-size: 15px; color: var(--muted); }
.hero__tag { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 14px 22px; border: 1px solid var(--hair); border-radius: 999px; backdrop-filter: blur(6px); background: color-mix(in srgb, var(--bg) 35%, transparent); transition: border-color .4s; }
.hero__tag:hover { border-color: var(--fg); }
.hero__tag .mono { color: var(--muted); font-size: 10px; }
.hero__tag-name { font: italic 400 20px/1 var(--f-display); }
.hero__scroll { justify-self: end; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.hero__scroll i { width: 1px; height: 46px; background: var(--hair); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--fg); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ───────── manifesto ───────── */
.manifesto { position: relative; min-height: 120vh; padding: 22vh var(--gut) 16vh; display: grid; align-content: center; gap: 48px; }
.manifesto__text { font: 400 clamp(1.9rem, 3.7vw, 4.1rem)/1.12 var(--f-display); letter-spacing: -.015em; max-width: 21ch; text-wrap: pretty; }
.manifesto__text .word { display: inline-block; }
.manifesto__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 32px; border-top: 1px solid var(--hair); padding-top: 22px; max-width: 680px; }
.manifesto__facts dt { color: var(--muted); margin-bottom: 8px; }
.manifesto__facts dd { font-size: 15px; }

/* ───────── collection ───────── */
.collection { position: relative; height: 100vh; height: 100svh; overflow: hidden; padding: 0 var(--gut); }
.collection__head { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 92px); left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; z-index: 2; }
.collection__count { font-variant-numeric: tabular-nums; }
.collection__cur { color: var(--fg); }
.collection__ghost { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ghost {
  position: absolute; right: -2vw; top: 50%; transform: translateY(-50%);
  font: italic 400 clamp(6rem, 21vw, 26rem)/.8 var(--f-display); letter-spacing: -.04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 22%, transparent);
  overflow: hidden; padding: .06em .08em .12em;
}
.ghost .char { display: inline-block; }
.collection__drag { position: absolute; z-index: 1; left: 42%; right: 12%; top: 14%; bottom: 12%; touch-action: pan-y; cursor: grab; }
.collection__drag:active { cursor: grabbing; }
.collection__panels { position: absolute; left: var(--gut); top: 0; bottom: 0; width: min(440px, 36vw); z-index: 2; }
.product { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 120px 0 60px; visibility: hidden; }
.product.is-active { visibility: visible; }
.product__no { font: italic 400 clamp(3rem, 6vw, 5.5rem)/.8 var(--f-display); color: var(--brass); overflow: hidden; }
.product__no span { display: inline-block; }
.product__name { font: 400 clamp(2.4rem, 4.4vw, 4.6rem)/.92 var(--f-display); letter-spacing: -.02em; }
.product__name .line-mask { overflow: hidden; display: block; padding: .14em 0 .16em; margin: -.14em 0 -.16em; }
.product__name .ln { display: inline-block; }
.product__name .line-mask:nth-child(2) { font-style: italic; }
.product__desc { color: var(--muted); max-width: 42ch; font-size: 15px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; border-top: 1px solid var(--hair); padding-top: 16px; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { font-variant-numeric: tabular-nums; }
.opts { display: grid; gap: 12px; }
.opt-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.opt-row > .mono { color: var(--muted); width: 56px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 20%, transparent); position: relative; transition: transform .4s var(--ease); }
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--fg); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease); }
.swatch.is-active::after { opacity: 1; transform: scale(1); }
.swatch:hover { transform: scale(1.12); }
.swatch-name { font: italic 400 17px/1 var(--f-display); }
.size { min-width: 34px; height: 30px; padding: 0 8px; border: 1px solid var(--hair); border-radius: 15px; font: 500 11px/1 var(--f-mono); transition: background-color .3s, color .3s, border-color .3s; }
.size:hover { border-color: var(--fg); }
.size.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.buy { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.price { font: 500 26px/1 var(--f-body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 26px;
  background: var(--fg); color: var(--bg); font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; overflow: hidden;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--brass); transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn > span { position: relative; }
.collection__rail { position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; z-index: 2; }
.collection__rail li { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--muted); }
.collection__rail li i { width: 22px; height: 1px; background: currentColor; transition: width .5s var(--ease), background-color .4s; }
.collection__rail li.is-active { color: var(--fg); }
.collection__rail li.is-active i { width: 48px; }
.collection__hint { position: absolute; right: var(--gut); bottom: calc(env(safe-area-inset-bottom, 0px) + 32px); color: var(--muted); z-index: 2; }

/* ───────── marquee ───────── */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 30px 0; border-block: 1px solid var(--hair); }
.marquee__track { display: flex; align-items: center; gap: 48px; width: max-content; font: italic 400 clamp(2rem, 4.6vw, 4.4rem)/1 var(--f-display); white-space: nowrap; will-change: transform; }
.marquee__track i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--brass); flex: none; }

/* ───────── lookbook ───────── */
.lookbook { position: relative; z-index: 2; height: 100vh; height: 100svh; overflow: hidden; }
.lookbook__track { display: flex; align-items: center; gap: clamp(28px, 5vw, 90px); height: 100%; padding: 0 var(--gut); width: max-content; will-change: transform; }
.lookbook__intro { width: min(34vw, 520px); display: grid; gap: 28px; flex: none; }
.lookbook__text { color: var(--muted); max-width: 34ch; }
.look { flex: none; height: 64vh; aspect-ratio: 4 / 5.2; max-width: 80vw; display: grid; grid-template-rows: 1fr auto; gap: 14px; transform-origin: center; }
.look--low { transform: translateY(7vh); }
.look__media { position: relative; overflow: hidden; border-radius: 2px; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.look__media img { position: absolute; inset: -6% -14%; width: 128%; height: 112%; max-width: none; object-fit: cover; }
.look figcaption { display: flex; gap: 14px; align-items: baseline; font: italic 400 22px/1 var(--f-display); }
.look figcaption .mono { color: var(--muted); font-style: normal; }
.lookbook__end { flex: none; width: min(36vw, 480px); display: grid; gap: 20px; padding-right: 6vw; }
.link-xl { font: 400 clamp(3rem, 6vw, 6.5rem)/.9 var(--f-display); letter-spacing: -.02em; }
.link-xl em { color: var(--brass); }
.lookbook__progress { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); display: flex; align-items: center; gap: 18px; font-variant-numeric: tabular-nums; }
.lookbook__progress i { flex: 1; height: 1px; background: var(--hair); position: relative; overflow: hidden; }
.lookbook__progress b { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* ───────── reveal ───────── */
.reveal { position: relative; z-index: 2; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.reveal__media { position: absolute; inset: 0; clip-path: inset(24% 32% 24% 32%); will-change: clip-path; }
.reveal__media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; transform: scale(1.35); will-change: transform; }
.reveal__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 8, 6, .55), rgba(10, 8, 6, .1) 60%); }
.reveal__title { position: absolute; left: var(--gut); bottom: 14vh; color: #f1ece3; font-size: clamp(3.2rem, 10vw, 11rem); line-height: .86; display: grid; }
.reveal__line { display: block; overflow: hidden; padding: .12em 0 .2em; margin: -.12em 0 -.2em; }
.reveal__line > span { display: inline-block; }
.reveal__cap { position: absolute; right: var(--gut); bottom: calc(env(safe-area-inset-bottom, 0px) + 32px); color: #f1ece3; opacity: .8; }

/* ───────── anatomy ───────── */
.anatomy { position: relative; z-index: 3; height: 100vh; height: 100svh; overflow: hidden; }
.anatomy__head { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 92px); left: var(--gut); display: grid; gap: 18px; max-width: 40vw; }
.anatomy__head h2 { font-size: clamp(2.2rem, 4.6vw, 5rem); }
.anatomy__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.anatomy__lines path { fill: none; stroke: var(--fg); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7; transition: stroke-dashoffset 1s var(--ease); }
.anatomy__lines path.is-on { stroke-dashoffset: 0; }
.anatomy__dots i {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  display: grid; place-items: center; font: 500 10px/1 var(--f-mono); background: var(--fg); color: var(--bg);
  opacity: 0; transform: scale(.3); transition: opacity .5s, transform .6s var(--ease); will-change: transform;
}
.anatomy__dots i::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--fg); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.anatomy__dots i.is-on { opacity: 1; }
.loupe {
  position: absolute; left: 0; top: 0; width: 140px; height: 140px; border-radius: 50%; pointer-events: none;
  background-color: var(--bg); background-repeat: no-repeat;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 70%, transparent), 0 24px 50px rgba(0, 0, 0, .4);
  opacity: 0; scale: .35; transition: opacity .5s, scale .8s var(--ease);
}
.loupe.is-on { opacity: 1; scale: 1; }
.callout {
  position: absolute; top: var(--top); width: min(270px, 21vw); display: grid; gap: 10px;
  opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.callout[data-side="left"] { left: var(--gut); }
.callout[data-side="right"] { right: var(--gut); }
.callout.is-on { opacity: 1; transform: none; }
.callout__no { color: var(--brass); }
.callout h3 { font: 400 clamp(1.4rem, 2vw, 2rem)/1.05 var(--f-display); letter-spacing: -.01em; }
.callout p { color: var(--muted); font-size: 14px; }
.anatomy__foot { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); display: flex; justify-content: center; gap: 32px; color: var(--muted); }

/* ───────── craft ───────── */
.craft { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); padding: 20vh var(--gut) 16vh; }
.craft__media { position: relative; min-height: 120vh; }
.craft__fig { position: absolute; overflow: hidden; border-radius: 2px; }
.craft__fig img { width: 100%; height: 118%; object-fit: cover; }
.craft__fig--a { left: 0; top: 0; width: 72%; aspect-ratio: 1; }
.craft__fig--b { right: 0; top: 52%; width: 58%; aspect-ratio: 1; }
.craft__body { display: grid; gap: 48px; align-content: start; padding-top: 6vh; }
.steps { display: grid; border-top: 1px solid var(--hair); }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.steps .mono { color: var(--brass); padding-top: 6px; }
.steps h3 { font: 400 28px/1.1 var(--f-display); margin-bottom: 6px; }
.steps p { color: var(--muted); max-width: 46ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stats dt { color: var(--muted); order: 2; }
.stats div { display: flex; flex-direction: column-reverse; gap: 8px; }
.stats dd { font: 200 clamp(3rem, 5vw, 5.5rem)/.9 var(--f-body); font-variant-numeric: tabular-nums; letter-spacing: -.05em; }

/* ───────── shop ───────── */
.shop { position: relative; z-index: 2; padding: 14vh var(--gut) 18vh; }
.shop__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.shop__head > div:first-child { display: grid; gap: 22px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--hair); font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; transition: background-color .35s, color .35s, border-color .35s; }
.filter sup { font-size: 9px; margin-left: 2px; color: var(--muted); }
.filter:hover { border-color: var(--fg); }
.filter.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filter.is-active sup { color: inherit; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 22px; }
.card { display: grid; gap: 14px; }
.card.is-out { display: none; }
.card__media--empty { display: grid; place-items: center; font: italic 400 22px/1 var(--f-display); color: var(--muted); }
.card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px;
  background: radial-gradient(70% 60% at 50% 42%, color-mix(in srgb, var(--paper) 70%, #fff), color-mix(in srgb, var(--card) 22%, var(--paper)));
}
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .6s var(--ease), transform 1.1s var(--ease); }
.card__media img + img { opacity: 0; transform: scale(1.04); }
.card:hover .card__media img:first-child { opacity: 0; transform: scale(1.04); }
.card:hover .card__media img + img { opacity: 1; transform: scale(1); }
.card__tag { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 12px; background: var(--ink); color: var(--bone); }
.card__add {
  position: absolute; left: 12px; right: 12px; bottom: 12px; height: 46px; border-radius: 23px; background: var(--ink); color: var(--bone);
  font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  transform: translateY(140%); transition: transform .6s var(--ease), background-color .3s;
}
.card:hover .card__add, .card__add:focus-visible { transform: none; }
.card__add:hover { background: #2a241d; }
.card__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
.card__name { font: 400 21px/1.1 var(--f-display); }
.card__price { font: 500 16px/1.3 var(--f-body); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.card__color { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.card__color i { width: 10px; height: 10px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 25%, transparent); }

/* ───────── footer ───────── */
.footer { position: relative; z-index: 2; background: var(--ink); color: var(--bone); padding: 16vh var(--gut) 28px; overflow: hidden; --fg: #ece6db; --bg: #0e0c0a; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-bottom: 72px; border-bottom: 1px solid var(--hair); }
.footer__title { font-size: clamp(2.6rem, 5.6vw, 6rem); }
.news { display: grid; gap: 14px; }
.news__row { display: flex; border-bottom: 1px solid var(--bone); }
.news input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--bone); font: 400 22px/1 var(--f-display); padding: 14px 0; outline: none; }
.news input::placeholder { color: color-mix(in srgb, var(--bone) 40%, transparent); font-style: italic; }
.news button { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 0 4px 0 18px; }
.news__note { color: var(--muted); }
.news__note.is-ok { color: var(--brass); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 56px 0; font-size: 15px; }
.footer__cols .label { margin-bottom: 14px; }
.footer__cols a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.footer__cols a:hover { background-size: 100% 1px; }
.footer__word { display: flex; justify-content: space-between; font: 400 clamp(5rem, 25vw, 30rem)/.78 var(--f-display); letter-spacing: -.035em; overflow: hidden; padding: .26em 0 .06em; margin-top: -.2em; }
.footer__word span { display: inline-block; }
.footer__word span:nth-child(5) { font-style: italic; color: var(--brass); }
.footer__base { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--hair); font-size: 10px; }

.footer, .cart { --muted: color-mix(in srgb, var(--fg) 56%, transparent); --hair: color-mix(in srgb, var(--fg) 16%, transparent); }

/* ───────── cart ───────── */
.cart-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(8, 7, 6, .5); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; backdrop-filter: blur(3px); }
.cart-backdrop.is-open { opacity: 1; visibility: visible; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(440px, 100%);
  background: var(--paper); color: #17130f; --fg: #17130f; --bg: #e6dfd2;
  display: grid; grid-template-rows: auto auto 1fr auto; transform: translateX(100%); transition: transform .8s var(--ease);
  padding-top: env(safe-area-inset-top, 0px);
}
.cart.is-open { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: baseline; padding: 28px 28px 18px; }
.cart__head h2 { font-size: 40px; }
.cart__head sup { font: 500 12px/1 var(--f-mono); vertical-align: top; }
.cart__close { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.cart__ship { padding: 0 28px 22px; display: grid; gap: 10px; color: var(--muted); }
.cart__ship i { height: 2px; background: var(--hair); position: relative; overflow: hidden; display: block; }
.cart__ship b { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease); }
.cart__items { overflow-y: auto; padding: 0 28px; border-top: 1px solid var(--hair); }
.cart__item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); align-items: center; }
.cart__thumb { width: 76px; aspect-ratio: 4 / 5; background: color-mix(in srgb, var(--card) 20%, #f1ece4); border-radius: 2px; overflow: hidden; }
.cart__thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart__meta h3 { font: 400 19px/1.15 var(--f-display); }
.cart__meta p { color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; border: 1px solid var(--hair); border-radius: 14px; padding: 4px 10px; font: 500 11px/1 var(--f-mono); }
.qty button { width: 16px; }
.cart__right { display: grid; justify-items: end; gap: 10px; }
.cart__right strong { font: 500 16px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.cart__remove { font: 500 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cart__empty { padding: 28px; color: var(--muted); font: italic 400 22px/1.3 var(--f-display); grid-row: 3; align-self: start; }
.cart__foot { padding: 22px 28px calc(env(safe-area-inset-bottom, 0px) + 24px); display: grid; gap: 14px; border-top: 1px solid var(--hair); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; }
.cart__total strong { font: 500 26px/1 var(--f-body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cart__checkout { height: 56px; border-radius: 28px; background: var(--ink); color: var(--bone); font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.cart__note { color: var(--muted); text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); z-index: 280; transform: translate(-50%, 220%); visibility: hidden;
  background: var(--bone); color: var(--ink); padding: 14px 22px; border-radius: 24px; transition: transform .7s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }
.toast { transition: transform .7s var(--ease), visibility 0s linear .7s; }
.toast.is-on { transition: transform .7s var(--ease), visibility 0s; }

/* ───────── responsive ───────── */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .hero__meta span:nth-child(2) { display: none; }
  .hero__foot { grid-template-columns: 1fr auto; }
  .hero__lede { grid-column: 1 / -1; }
  .hero__tag { justify-self: start; }
  .manifesto { padding-top: 14vh; }
  .manifesto__text { max-width: none; font-size: clamp(1.7rem, 7vw, 2.6rem); }
  .manifesto__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

  .collection__panels { left: var(--gut); right: var(--gut); width: auto; top: auto; bottom: 0; height: 52%; }
  .product { justify-content: flex-end; gap: 12px; padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 24px); }
  .product__desc, .specs, .opt-row--size { display: none; }
  .product__no { font-size: 2.4rem; }
  .product__name { font-size: clamp(2rem, 9vw, 3rem); }
  .buy { gap: 14px; }
  .price { font-size: 21px; }
  .btn { height: 46px; padding: 0 20px; }
  .collection__rail, .collection__hint { display: none; }
  .collection__drag { left: 0; right: 0; top: 11%; bottom: 50%; }
  .ghost { right: auto; left: 50%; top: 30%; transform: translate(-50%, -50%); font-size: 34vw; }

  .lookbook__intro { width: 78vw; }
  .look { height: 56vh; }
  .lookbook__end { width: 70vw; }

  .anatomy__head { max-width: none; right: var(--gut); }
  .anatomy__lines, .loupes { display: none; }
  .callout { left: var(--gut) !important; right: var(--gut) !important; top: auto !important; bottom: calc(env(safe-area-inset-bottom, 0px) + 64px); width: auto; padding: 18px; border-radius: 4px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(8px); }
  .anatomy__foot { display: none; }

  .craft { grid-template-columns: minmax(0, 1fr); padding-top: 14vh; }
  .craft__media { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .craft__fig { position: relative; inset: auto !important; width: auto !important; }
  .craft__fig--b { margin-top: 18vw; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .stats dd { font-size: 2.4rem; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .card__add { transform: none; height: 38px; font-size: 10px; }
  .card__name { font-size: 17px; }
  .card__price { font-size: 14px; }
  .footer__top, .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .hero__meta span:nth-child(3) { display: none; }
  .manifesto__facts { grid-template-columns: minmax(0, 1fr); }
  .stats dt { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll i::after, .anatomy__dots i::after { animation: none; }
  .roll span, .btn::before, .card__media img, .card__add, .cart, .toast { transition-duration: .01s; }
}

.fly-dot { position: fixed; left: 0; top: 0; z-index: 260; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--brass); pointer-events: none; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brass) 25%, transparent); }
