/* ============================================================
   BULK. collection builder (demo)
   Industrial brutalist: the coming-soon palette (ink #0e1011, white,
   grey #5f6664), no second hue, no radius. Zones are cut by 1px rules
   (grid gap over a line-coloured parent). Anton for structure, Barlow
   Condensed to read, IBM Plex Mono for data. Frosted glass only where
   a panel floats over the live 3D scene (top bar, dock, studio panels);
   it is a web approximation, not Apple's Liquid Glass.
   ============================================================ */

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

:root {
  --ground: #0e1011;
  --ground-2: #15181a;
  --ground-3: #1c2022;
  --paper: #f3f3f1;
  --ink: #0e1011;
  --ink-60: #5f6664;
  --fg: #f3f3f1;
  --fg-70: rgba(243, 243, 241, .74);
  --fg-50: rgba(243, 243, 241, .56);
  --fg-30: rgba(243, 243, 241, .32);
  --line: rgba(243, 243, 241, .14);
  --line-2: rgba(243, 243, 241, .3);

  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --frame: clamp(16px, 3.2vw, 48px);
  --wrap: 1440px;
  --sec: clamp(96px, 16vh, 176px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  /* z scale */
  --z-scene: 0; --z-dim: 1; --z-grain: 2; --z-page: 3; --z-dock: 25; --z-top: 20; --z-toast: 30; --z-gate: 50; --z-drag: 60;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; color-scheme: dark; }
section[id] { scroll-margin-top: 64px; }
a, button, select, input, textarea, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--fg);
  font-family: var(--cond);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-gated { overflow: hidden; height: 100svh; }

img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--ink); }

.skip {
  position: fixed; z-index: var(--z-gate); left: var(--frame); top: 10px; padding: .7rem 1rem;
  background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- ground layers ---------- */

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: var(--z-scene); display: block; }
.dim {
  position: fixed; inset: 0; z-index: var(--z-dim); pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(14,16,17,0), rgba(14,16,17,.55) 70%, rgba(14,16,17,.92)),
    rgba(14,16,17, var(--dim, 0));
}
.grain {
  position: fixed; inset: -50%; z-index: var(--z-grain); pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-4%); }
  60% { transform: translate(-4%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}

main, .foot { position: relative; z-index: var(--z-page); }
.no-gl #gl { display: none; }
/* no WebGL: a sharp still of the same chrome cubes and fluted pane, drifting with the page */
body.no-gl::before {
  content: ""; position: fixed; inset: -8% -2%; z-index: var(--z-scene); pointer-events: none;
  background: url("../img/mood/cubes.webp") center / cover no-repeat;
  transform: translate3d(0, calc((0.5 - var(--page, 0)) * 7%), 0) scale(1.04);
}

/* ---------- HUD: production marks over the scene ---------- */

.hud { position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; transition: opacity .8s var(--ease); }
.is-gated .hud { opacity: 0; }
.hud__mark { position: absolute; width: 18px; height: 18px; }
.hud__mark::before, .hud__mark::after { content: ""; position: absolute; background: var(--fg-30); }
.hud__mark::before { left: 0; right: 0; top: 50%; height: 1px; }
.hud__mark::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.hud__mark--tl { left: 10px; top: 74px; } .hud__mark--tr { right: 10px; top: 74px; }
.hud__mark--bl { left: 10px; bottom: 10px; } .hud__mark--br { right: 10px; bottom: 10px; }
.hud__ruler {
  position: absolute; right: 18px; top: 28vh; bottom: 28vh; width: 8px;
  background: repeating-linear-gradient(180deg, var(--fg-30) 0 1px, transparent 1px 12px), repeating-linear-gradient(180deg, var(--fg-50) 0 1px, transparent 1px 60px);
  background-size: 5px 100%, 8px 100%; background-repeat: no-repeat; background-position: right top, right top;
}
.hud__ruler i { position: absolute; right: 0; width: 14px; height: 2px; background: var(--fg); top: calc(var(--page, 0) * 100%); transform: translateY(-50%); }
.hud__read, .hud__made {
  position: absolute; bottom: 14px; margin: 0; display: flex; gap: 1rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-50);
}
.hud__read { left: 40px; }
.hud__read b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.hud__made { right: 40px; }

/* ---------- frosted glass (only over the 3D scene) ---------- */

.glass {
  position: relative;
  background: rgba(21, 24, 26, .62);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 24px 70px rgba(4,5,6,.5);
  isolation: isolate;
}
.glass::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(380px circle at var(--gx, 30%) var(--gy, 0%), rgba(255,255,255,.1), transparent 50%);
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--ground-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- type ---------- */

.display {
  margin: 0;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.8rem, 6.4vw, 6.2rem); line-height: .9; letter-spacing: -.01em;
  text-wrap: balance;
}
.lede { margin: 0; font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--fg-70); max-width: 46ch; text-wrap: pretty; }
.link {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-70);
  text-decoration: underline; text-underline-offset: .45em; text-decoration-color: var(--line-2); transition: color .2s, text-decoration-color .2s;
}
.link:hover { color: var(--fg); text-decoration-color: var(--fg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.5rem;
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid currentColor; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s, transform .25s var(--ease);
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .35; cursor: wait; }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: transparent; color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: transparent; color: var(--ink); }
.btn--line { color: var(--fg); border-color: var(--line-2); }
.btn--line:hover { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.btn--sm { padding: .65rem 1rem; font-size: .66rem; }
.btn--wide { width: 100%; }

/* ---------- gate ---------- */

.gate {
  position: fixed; inset: 0; z-index: var(--z-gate);
  display: grid; place-items: center; padding: var(--frame);
  background: radial-gradient(120% 90% at 50% 45%, rgba(14,16,17,.35), rgba(14,16,17,.9));
  transition: opacity .9s var(--ease), visibility 0s .9s;
}
.gate.is-out { opacity: 0; visibility: hidden; }
.gate.is-out .gate__panel { transform: translateY(-14px); }
.gate__panel {
  width: min(34rem, 100%);
  padding: clamp(2rem, 6vh, 3.2rem) clamp(1.4rem, 4vw, 2.8rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem;
  background: var(--ground); border: 1px solid var(--line-2);
  transition: transform .9s var(--ease);
  animation: settle .6s var(--ease) both;
}
@keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gate__logo { width: min(220px, 55vw); height: auto; }
.gate__title { margin: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-50); }
.gate__lede { margin: 0; font-size: 1.3rem; line-height: 1.35; color: var(--fg-70); }
.gate__lede b { color: var(--fg); font-weight: 600; }
.gate__bar { width: 100%; height: 1px; background: var(--line); overflow: hidden; }
.gate__bar span { display: block; height: 100%; width: 0; background: var(--fg); transition: width .4s var(--ease); }
.gate__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.gate__hint { margin: 0; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-50); }

/* ---------- top bar ---------- */

.top {
  position: fixed; z-index: var(--z-top); top: 0; left: 0; right: 0; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--frame);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, transform .5s var(--ease);
}
.top.is-solid {
  background: rgba(14,16,17,.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.is-gated .top { transform: translateY(-100%); }
.top__logo img { width: 88px; height: auto; }
.top__nav { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); }
.top__nav a {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--fg-50); padding: .4rem 0; position: relative; transition: color .25s;
}
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top__nav a:hover, .top__nav a.is-on { color: var(--fg); }
.top__nav a:hover::after, .top__nav a.is-on::after { transform: scaleX(1); }
.top__right { display: flex; align-items: center; gap: .6rem; }

.sound {
  display: inline-flex; align-items: center; gap: .55rem; height: 36px; padding: 0 .8rem;
  border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-70);
  transition: color .2s, border-color .2s;
}
.sound:hover { color: var(--fg); border-color: var(--fg); }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; transition: height .3s; }
.sound[aria-pressed="true"] { color: var(--fg); }
.sound[aria-pressed="true"] .sound__bars i { animation: eq 1s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang select {
  height: 36px; padding: 0 1.8rem 0 .7rem; border: 1px solid var(--line-2); background: transparent; color: var(--fg-70);
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 9px) 50%; background-size: 4px 4px; background-repeat: no-repeat;
  transition: color .2s, border-color .2s;
}
.lang select:hover { color: var(--fg); border-color: var(--fg); }
.lang select option { background: var(--ground-2); color: var(--fg); }
.bag {
  display: inline-flex; align-items: center; gap: .55rem; height: 36px; padding: 0 .85rem;
  background: var(--fg); color: var(--ink); text-decoration: none;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s;
}
.bag:hover { background: #fff; }
.bag b { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; background: var(--ink); color: var(--fg); font-weight: 500; padding: 0 .3em; font-variant-numeric: tabular-nums; }
.bag.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.1); } }

/* ---------- hero ---------- */

.hero { height: 520vh; position: relative; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__ch {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 64px var(--frame) var(--frame); pointer-events: none;
}
.hero__intro { gap: 1.6rem; pointer-events: auto; }
.hero__ch:not(.is-on) { pointer-events: none; }
.hero__logo { margin: 0; }
.hero__logo img { width: min(62vw, 580px); height: auto; filter: drop-shadow(0 20px 60px rgba(0,0,0,.6)); }
.hero__lede { margin: 0; max-width: 34ch; font-weight: inherit; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.4; color: var(--fg-70); text-wrap: balance; }
.hero__cta { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.hero__intro > * { transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s; }
.hero__intro:not(.is-on) > * { opacity: 0; transform: translateY(-30px); filter: blur(8px); }
.hero__intro > :nth-child(2) { transition-delay: .06s; } .hero__intro > :nth-child(3) { transition-delay: .12s; }
.is-gated .hero__intro > * { opacity: 0; transform: translateY(20px); filter: blur(8px); }

.mega {
  margin: 0;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(4.2rem, 17vw, 17rem); line-height: .82; letter-spacing: -.01em;
  color: #fff; mix-blend-mode: difference;
  display: flex; overflow: hidden; padding: .04em .02em;
}
.mega .ch { display: inline-block; transform: translateY(105%) rotate(6deg); filter: blur(10px); opacity: 0; transition: transform .9s var(--ease), filter .9s var(--ease), opacity .6s; transition-delay: calc(var(--i) * 38ms); }
.hero__ch.is-on .mega .ch { transform: none; filter: none; opacity: 1; }
.hero__ch.is-out .mega .ch { transform: translateY(-105%) rotate(-4deg); filter: blur(10px); opacity: 0; transition-delay: calc(var(--i) * 20ms); }
.hero__num, .hero__sub { transition: opacity .7s var(--ease), transform .7s var(--ease); opacity: 0; transform: translateY(14px); }
.hero__ch.is-on .hero__num, .hero__ch.is-on .hero__sub { opacity: 1; transform: none; transition-delay: .25s; }
.hero__num { margin: 0 0 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-70); }
.hero__sub { margin: 1.4rem 0 0; max-width: 32ch; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--fg-70); text-wrap: balance; }
/* how far through the three chapters: a hairline along the bottom edge */
.hero__track { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.hero__track i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* ---------- sections ---------- */

section { position: relative; }
.library, .pieces, .faq, .brief { padding: var(--sec) var(--frame); max-width: calc(var(--wrap) + 2 * var(--frame)); margin-inline: auto; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* manifesto: pinned, the words light up as you scroll */
.manifesto { height: 240vh; padding: 0; }
.manifesto__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3.6vh, 36px);
  padding: 96px var(--frame) 48px;
  max-width: calc(var(--wrap) + 2 * var(--frame)); margin-inline: auto;
}
.manifesto__title {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.8rem, 8.4vw, 8.2rem); line-height: .88; letter-spacing: -.01em;
}
.manifesto__title em { font-style: normal; display: block; color: var(--fg-50); }
.manifesto__lede { margin: 0; max-width: 40ch; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.35; color: var(--fg); text-wrap: pretty; }
[data-scrub] .w { opacity: var(--o, .14); transition: opacity .25s linear; }
.manifesto__title em .w { opacity: max(var(--o, .14), .14); }

/* spec strip: compartments cut by 1px rules */
.specs {
  margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.manifesto.is-tiles .specs { opacity: 1; transform: none; }
.specs > div { background: var(--ground); padding: 1.1rem 1.3rem 1.2rem; display: grid; align-content: space-between; gap: .6rem; }
.specs dt { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.specs dt b { font-weight: 400; }
.specs dd { margin: 0; max-width: 22ch; font-size: 1rem; line-height: 1.3; color: var(--fg-70); }
.specs .specs__cta { display: grid; place-items: center; padding: 1.2rem; }

/* process: pinned horizontal pan */
.process { height: 460vh; }
.process__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 88px 0 48px var(--frame); }
.process__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding-right: var(--frame); margin-bottom: clamp(18px, 3.4vh, 36px); }
.process .display { font-size: clamp(2.4rem, 5.4vw, 5rem); }
.process__count { margin: 0; display: grid; justify-items: end; gap: .3rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-50); font-variant-numeric: tabular-nums; }
.process__label { display: flex; align-items: baseline; gap: .5rem; }
.process__of { margin-left: .15rem; }
.process__name { font-family: var(--cond); font-size: 1.1rem; letter-spacing: 0; text-transform: none; color: var(--fg); }
.process__count b { color: var(--fg); font-weight: 400; font-size: 2.4rem; font-family: var(--display); letter-spacing: 0; margin-right: .1em; }
.process__track { display: flex; gap: 1px; will-change: transform; backface-visibility: hidden; }
.proc {
  flex: none; width: clamp(220px, 23vw, 320px); aspect-ratio: 9 / 14; margin: 0;
  position: relative; overflow: hidden; outline: 1px solid var(--line-2);
  transition: outline-color .3s;
}
.proc.is-center { outline-color: var(--fg); z-index: 1; }
/* still images on a moving track: no per-frame transform or animated filter on them */
.proc img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.proc.is-center img { filter: grayscale(.1) contrast(1.05); }
.proc figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem 1rem;
  display: grid; gap: .25rem;
  background: linear-gradient(180deg, transparent, rgba(14,16,17,.92) 55%);
}
.proc figcaption b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; text-transform: uppercase; line-height: 1; }
.proc figcaption span { font-size: 1.08rem; line-height: 1.3; color: var(--fg); }
.proc--end { display: grid; place-items: center; text-align: center; padding: 1.4rem; background: var(--paper); color: var(--ink); }
.proc--end p { margin: 0 0 1.2rem; font-family: var(--display); font-size: 2.4rem; line-height: .9; text-transform: uppercase; }
.process__bar { height: 1px; background: var(--line); margin: clamp(18px, 3vh, 32px) var(--frame) 0 0; }
.process__bar i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* library: sticky index + swatch grid */
.library { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.library__side { position: sticky; top: 96px; display: grid; gap: 1.4rem; }
.library .display { font-size: clamp(2.6rem, 4.4vw, 4.4rem); }
.index { display: grid; border-top: 1px solid var(--line); }
.index button {
  display: flex; justify-content: space-between; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; line-height: 1; color: var(--fg-30); text-align: left;
  transition: color .25s, padding .35s var(--ease);
}
.index button::after { content: ""; width: 10px; height: 10px; border: 1px solid currentColor; transition: background .25s; }
.index button:hover { color: var(--fg-70); padding-left: .4rem; }
.index button[aria-selected="true"] { color: var(--fg); }
.index button[aria-selected="true"]::after { background: var(--fg); }

.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.lib {
  position: relative; display: flex; flex-direction: column; background: var(--ground); text-align: left;
  animation: tileIn .6s var(--ease) both; animation-delay: calc(var(--i) * 28ms);
}
@keyframes tileIn { from { opacity: 0; transform: translateY(16px); } }
/* the source photos carry a burned-in label around half height: show the cloth above it */
.lib img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 0; transition: filter .5s; filter: saturate(.8); }
.lib:hover img { filter: saturate(1.05); }
.lib__cap { width: 100%;
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .7rem .8rem .8rem;
  font-size: 1.02rem; line-height: 1.2;
}
.lib__cap em { flex: none; font-style: normal; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-30); transition: color .2s; }
.lib:hover .lib__cap em, .lib:focus-visible .lib__cap em { color: var(--fg); }
.lib.is-applied { background: var(--ground-3); }
.lib.is-applied .lib__cap em { color: var(--fg); }

/* pieces: catalogue, first piece large */
.pieces__head { display: flex; justify-content: space-between; align-items: end; gap: 1.4rem; flex-wrap: wrap; }
.pieces__lede { margin: 1.2rem 0 clamp(28px, 4vh, 44px); }
.filter { display: flex; border: 1px solid var(--line-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter button { flex: none; white-space: nowrap; padding: .7rem 1.1rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-70); transition: background .25s, color .25s; }
.filter button + button { border-left: 1px solid var(--line-2); }
.filter button:hover { color: var(--fg); background: var(--ground-3); }
.filter button[aria-pressed="true"] { background: var(--fg); color: var(--ink); }

.piece-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.piece-grid[data-filter="all"] .piece:first-child { grid-column: span 2; grid-row: span 2; }
.piece-grid[data-filter="all"] .piece:first-child .piece__img { aspect-ratio: auto; flex: 1; min-height: 0; }
.piece-grid[data-filter="all"] .piece:first-child .piece__name { font-size: clamp(2rem, 3vw, 3rem); }
.piece {
  position: relative; background: var(--ground); overflow: hidden;
  display: flex; flex-direction: column;
  animation: tileIn .7s var(--ease) both; animation-delay: calc(var(--i) * 45ms);
}
.piece-grid.is-ready .piece { animation: none; }
.piece.is-hidden { display: none; }
.piece__img { aspect-ratio: 4 / 5; overflow: hidden; position: relative; background: var(--ground-2); }
.piece__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.piece:hover .piece__img img { transform: scale(1.04); }
.piece__flat {
  position: absolute; right: 10px; top: 10px; width: 72px; height: 72px; padding: 6px;
  background: rgba(243,243,241,.9); border: 1px solid var(--paper);
  opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s var(--ease);
}
.piece:hover .piece__flat, .piece.is-in .piece__flat { opacity: 1; transform: none; }
.piece__flat svg { width: 100%; height: 100%; }
.piece__body { padding: 1rem 1.1rem 1.1rem; display: grid; gap: .4rem; }
.piece__name { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.piece__line { margin: 0; color: var(--fg-70); font-size: 1.02rem; line-height: 1.35; }
.piece__tags { margin: .1rem 0 .7rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-50); line-height: 1.6; }
.piece__tags span + span::before { content: " / "; color: var(--fg-30); }
.piece__add { justify-self: start; }
.piece.is-in .piece__add { background: var(--fg); color: var(--ink); border-color: var(--fg); }

/* studio band */
.atelier { padding: 0 var(--frame) var(--sec); max-width: calc(var(--wrap) + 2 * var(--frame)); margin-inline: auto; }
.band { position: relative; display: grid; text-decoration: none; color: inherit; overflow: hidden; border: 1px solid var(--line-2); background: #050506; min-height: min(82vh, 820px); }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transition: transform 1.6s var(--ease); }
.band:hover .band__img { transform: scale(1.03); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,16,17,.94) 0%, rgba(14,16,17,.7) 32%, rgba(14,16,17,0) 60%); pointer-events: none; }
.band__copy { position: relative; z-index: 1; align-self: end; display: grid; gap: 1.3rem; justify-items: start; padding: clamp(24px, 4vw, 56px); max-width: 40rem; }
.band .btn--paper { pointer-events: none; }
.band:hover .btn--paper { background: transparent; color: var(--paper); }
.band__coll { position: absolute; z-index: 1; right: 0; bottom: 0; display: grid; gap: .5rem; justify-items: end; padding: 1rem 1.2rem; background: rgba(14,16,17,.82); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.band__label { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-50); }
.band__label b { color: var(--fg); font-weight: 500; margin-left: .4em; }
.band__thumbs { display: flex; gap: 4px; min-height: 44px; align-items: center; }
.band__thumbs span { width: 44px; height: 44px; border: 1px solid var(--line-2); background: rgba(243,243,241,.08); padding: 4px; }
.band__thumbs svg { width: 100%; height: 100%; }
.band__thumbs em { font-style: normal; color: var(--fg-50); font-size: 1rem; }

/* atelier */
.atelier__grid { -webkit-user-select: none; user-select: none; }
.atelier__grid input { -webkit-user-select: text; user-select: text; }
.atelier__grid { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) minmax(280px, 360px); gap: clamp(10px, 1.2vw, 16px); align-items: stretch; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; }
.panel-head b { font-weight: 500; }

.coll { display: flex; flex-direction: column; max-height: min(86vh, 860px); }
.coll__list { list-style: none; margin: 0; padding: .5rem; overflow-y: auto; flex: 1; display: grid; gap: .4rem; align-content: start; }
.coll__empty { padding: 1rem; color: var(--fg-50); font-size: .98rem; }
.coll__empty a { color: var(--fg); }
.citem {
  display: grid; grid-template-columns: 52px 1fr auto; gap: .6rem; align-items: center;
  padding: .45rem; border: 1px solid transparent; cursor: pointer; text-align: left; width: 100%;
  transition: background .2s, border-color .2s;

}
.citem:hover { background: rgba(255,255,255,.06); }
.citem.is-sel { border-color: var(--fg); background: rgba(255,255,255,.08); }
.citem__thumb { width: 52px; height: 52px; background: rgba(255,255,255,.08); border: 1px solid var(--line); display: grid; place-items: center; padding: 4px; }
.citem__thumb svg { width: 100%; height: 100%; }
.citem__name { display: block; font-family: var(--display); font-size: 1.05rem; text-transform: uppercase; line-height: 1.05; }
.citem__meta { display: block; font-family: var(--mono); font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-50); }
.citem__worn { font-family: var(--mono); font-size: .5rem; letter-spacing: .14em; text-transform: uppercase; padding: .2rem .35rem; background: var(--fg); color: var(--ink); }
.citem__x { width: 26px; height: 26px; display: grid; place-items: center; color: var(--fg-50); }
.citem__x:hover { color: var(--fg); }
.coll__add { padding: .9rem 1rem 1rem; border-top: 1px solid var(--line-2); display: grid; gap: .5rem; }
.coll__add label { font-family: var(--mono); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-50); }
.coll__addrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; }
.coll__addrow select { width: 100%; }
.coll__addrow .btn { padding-inline: .8rem; }

.stage {
  position: relative; min-height: min(86vh, 860px); overflow: hidden;
  background: #050506; border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.12);
  --sx: 50%; --sy: 30%;
}
#stageGl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#stageGl:active { cursor: grabbing; }
/* the spotlight halo that follows the cursor (the 3D light does the shading) */
.stage__spot {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(240px circle at var(--sx) var(--sy), rgba(255,255,255,.16), rgba(255,255,255,.04) 45%, transparent 70%);
  transition: opacity .4s;
}
.stage__links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.stage__links path { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1; stroke-dasharray: 4 5; animation: flow 1.2s linear infinite; }
.stage__links path.is-hot { stroke: #fff; stroke-width: 1.5; stroke-dasharray: none; }
.stage__links circle.dot { fill: #fff; }
.stage__links circle.halo { fill: none; stroke: rgba(255,255,255,.6); animation: halo 1.8s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes flow { to { stroke-dashoffset: -18; } }
@keyframes halo { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

.callouts { position: absolute; right: 14px; top: 0; bottom: 0; width: min(232px, 38%); pointer-events: none; }
.callout {
  position: absolute; right: 0; width: 100%; pointer-events: auto; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 46px 1fr; gap: .6rem; align-items: center; padding: .55rem .6rem;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 18px 40px rgba(0,0,0,.5);
  transition: border-color .2s, background .2s, transform .35s var(--ease), top .5s var(--ease);
}
.callout:hover, .callout.is-sel { border-color: #fff; }
.callout.is-hot { border-color: #fff; background: rgba(255,255,255,.22); transform: translateX(-6px) scale(1.03); }
.callout__thumb { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); padding: 3px; }
.callout__thumb svg { width: 100%; height: 100%; }
.callout__slot { display: block; font-family: var(--mono); font-size: .5rem; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-50); }
.callout__name { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.05; text-transform: uppercase; }
.callout__meta { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .3rem; }
.callout__meta span { font-family: var(--mono); font-size: .48rem; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .3rem; border: 1px solid rgba(255,255,255,.22); color: var(--fg-70); }
.callout__meta i { width: 10px; height: 10px; border: 1px solid rgba(255,255,255,.4); background: var(--c); align-self: center; }

.stage__tools { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: .6rem; pointer-events: none; }
.stage__tools > * { pointer-events: auto; }
.stage__brand {
  position: absolute; top: 12px; left: 0; right: 0; margin: 0; text-align: center; pointer-events: none;
  font-family: "Pinyon Script", cursive; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; color: rgba(255,255,255,.1);
}
.stage__hint { position: absolute; left: 14px; top: 14px; margin: 0; max-width: 16rem; pointer-events: none; font-family: var(--mono); font-size: .54rem; letter-spacing: .16em; line-height: 1.7; text-transform: uppercase; color: var(--fg-30); }
.stage__hint b { color: var(--fg); font-weight: 500; }
.stage__credit { position: absolute; left: 14px; top: 58px; margin: 0; max-width: 16rem; font-family: var(--mono); font-size: .5rem; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; color: var(--fg-30); }
.stage__credit a { color: inherit; }
.stage__credit a:hover { color: var(--fg); }

/* no WebGL: the outfit as flat drawings, centred in the visible part of the stage */
.stage__flat { position: absolute; inset: 70px 0 120px; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 1rem; pointer-events: none; }
.stage__fig { display: grid; grid-template-rows: 1fr 3fr 3.4fr; justify-items: center; align-items: center; height: 100%; min-height: 0; width: min(340px, 70%); }
.stage__piece { height: 100%; width: 100%; min-height: 0; display: grid; place-items: center; }
.stage__piece svg { max-width: 100%; max-height: 100%; width: auto; height: 100%; filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
.stage__piece--head svg { height: 80%; }
.stage__no3d { margin: 0; max-width: 46ch; padding: .8rem 1rem; border: 1px solid var(--line-2); background: rgba(14,16,17,.85); font-size: .98rem; line-height: 1.4; color: var(--fg-70); text-align: center; text-wrap: balance; pointer-events: auto; }
.stage.is-flat #stageGl, .stage.is-flat .stage__links { display: none; }
.stage.is-flat .callouts { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.stage.is-flat .callout { position: relative; top: auto !important; }

/* drag & drop */
.ghost {
  position: fixed; z-index: 60; left: 0; top: 0; width: 64px; height: 64px; pointer-events: none;
  border: 1px solid #fff; background: var(--c, #333) center / cover; border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,255,255,.12), 0 20px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.6);
  transform: translate(-50%, -50%) scale(1); transition: transform .15s var(--ease);
}
.ghost.is-hot { transform: translate(-50%, -50%) scale(1.25); }
.ghost span {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: .3rem .5rem; background: #fff; color: var(--ink); font-family: var(--mono); font-size: .55rem; letter-spacing: .14em; text-transform: uppercase;
}
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }
body.is-dragging .stage { border-color: #fff; }
[data-k]:not([data-k^="a."]) { cursor: grab; }

.seg { display: inline-flex; border: 1px solid var(--line-2); background: rgba(11,12,13,.3); }
.seg button { padding: .55rem .9rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-70); transition: background .2s, color .2s; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--fg); color: var(--ink); }
.seg--full { display: flex; width: 100%; border-width: 0 0 1px; }
.seg--full button { flex: 1; padding: .95rem .5rem; }

.ctrl { display: flex; flex-direction: column; max-height: min(86vh, 860px); }
.ctrl__pane { display: none; overflow-y: auto; padding: 1rem; gap: 1.25rem; flex: 1; align-content: start; }
.ctrl__pane.is-on { display: grid; }
.field { display: grid; gap: .55rem; }
.field__label { display: flex; justify-content: space-between; gap: .5rem; font-family: var(--mono); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-50); }
.field__label b { color: var(--fg); font-weight: 500; letter-spacing: .1em; }
.sw { display: flex; flex-wrap: wrap; gap: 6px; }
.sw button {
  width: 30px; height: 30px; border: 1px solid var(--line-2); background: var(--c); position: relative;
  transition: transform .2s var(--ease);
}
.sw button:hover { transform: translateY(-2px); }
.sw button[aria-pressed="true"] { outline: 1px solid var(--fg); outline-offset: 3px; }
.sw button.is-tone { background: linear-gradient(135deg, #2a2c2e 50%, #6b6e70 50%); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.chip { display: grid; gap: .3rem; text-align: left; font-family: var(--mono); font-size: .52rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-70); }
.chip img, .chip .chip__none { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line-2); transition: transform .25s var(--ease); background: rgba(255,255,255,.05); }
.chip .chip__none { display: grid; place-items: center; font-size: 1.2rem; color: var(--fg-30); }
.chip:hover img { transform: translateY(-2px); }
.chip[aria-pressed="true"] { color: var(--fg); }
.chip[aria-pressed="true"] img, .chip[aria-pressed="true"] .chip__none { outline: 1px solid var(--fg); outline-offset: 2px; }
.opts { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-2); }
.opts button { flex: 1 1 auto; padding: .55rem .6rem; font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-70); border-right: 1px solid var(--line-2); }
.opts button:last-child { border-right: 0; }
.opts button[aria-pressed="true"] { background: var(--fg); color: var(--ink); }
.ctrl input[type="text"] { width: 100%; font-size: 1.05rem; }
.ctrl__empty { color: var(--fg-50); }
.ctrl__title { margin: 0; font-family: var(--display); font-size: 1.8rem; text-transform: uppercase; line-height: 1; }
.ctrl__sub { margin: .2rem 0 0; font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-50); }
.ctrl__note { margin: 0; font-size: .95rem; color: var(--fg-50); }

/* faq: plain disclosures cut by 1px rules */
.faq .display { font-size: clamp(2.6rem, 4.4vw, 4.4rem); margin-bottom: clamp(28px, 4vh, 44px); }
.faq__list { border-top: 1px solid var(--line-2); max-width: 70rem; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 500; list-style-position: outside; }
.faq summary:hover { color: var(--fg); }
.faq details p { margin: 0 0 1.3rem; max-width: 60ch; color: var(--fg-70); }

/* brief: a work order */
.brief .display { font-size: clamp(2.8rem, 6vw, 5.6rem); }
.brief > .lede { margin: 1.2rem 0 clamp(28px, 4vh, 44px); }
.brief__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: clamp(16px, 2vw, 32px); align-items: start; }
.order { border: 1px solid var(--line-2); }
.order__head { display: grid; grid-template-columns: 84px minmax(0, 1fr) 8.5rem; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-50); }
.brow { display: grid; grid-template-columns: 84px minmax(0, 1fr) 8.5rem; gap: 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--line); }
.brow:last-child { border-bottom: 0; }
.brow__thumb { width: 84px; height: 84px; border: 1px solid var(--line-2); background: rgba(243,243,241,.07); padding: 6px; }
.brow__thumb svg { width: 100%; height: 100%; }
.brow__name { margin: 0; font-family: var(--display); font-size: 1.45rem; text-transform: uppercase; line-height: 1; }
.brow__spec { margin: .4rem 0 0; font-family: var(--mono); font-size: .64rem; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-50); line-height: 1.7; }
.brow select { width: 100%; }
.order__empty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 1rem; }
.order__empty p { margin: 0; font-size: 1.15rem; color: var(--fg-70); }

select, input, textarea {
  background: var(--ground-2); border: 1px solid var(--line-2); padding: .7rem .8rem; border-radius: 0; min-width: 0; color: var(--fg);
  transition: border-color .2s;
}
select:hover, input:hover, textarea:hover { border-color: var(--fg-50); }
select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--fg); outline-offset: 0; border-color: var(--fg); }
select { flex: 1; }
select option { background: #151718; color: var(--fg); }

.brief__form { padding: clamp(1.2rem, 2.4vw, 1.8rem); display: grid; gap: 1.1rem; position: sticky; top: 88px; border: 1px solid var(--line-2); background: var(--ground-2); }
.brief__formtitle { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.8rem; text-transform: uppercase; line-height: 1; }
.brief__form label { display: grid; gap: .4rem; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-70); }
.brief__form input, .brief__form select, .brief__form textarea { font-family: var(--cond); font-size: 1.1rem; letter-spacing: 0; text-transform: none; background: var(--ground); }
.timeline { list-style: none; margin: .3rem 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.timeline li { padding: .7rem .7rem .8rem; display: grid; gap: .15rem; background: var(--ground-2); }
.timeline b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; text-transform: uppercase; }
.timeline span { font-size: .95rem; line-height: 1.2; color: var(--fg-50); }

/* footer */
.foot { padding: clamp(60px, 10vh, 120px) var(--frame) 28px; border-top: 1px solid var(--line); background: var(--ground); }
.foot__mark { margin: 0; font-family: var(--display); font-size: clamp(5rem, 26vw, 24rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--line-2); letter-spacing: -.01em; }
.foot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-50); }
.foot__row p { margin: 0; }
.foot__row nav { display: flex; gap: 1.4rem; }
.foot__row a { text-decoration: none; color: var(--fg-70); }
.foot__row a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: .4em; }

/* dock + toast */
.dock {
  position: fixed; z-index: var(--z-dock); left: 50%; bottom: 16px;
  display: flex; align-items: center; gap: 1rem; padding: 8px 8px 8px 12px;
  background: rgba(14,16,17,.78); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  transform: translate(-50%, 160%); transition: transform .6s var(--ease);
  max-width: calc(100vw - 32px);
}
.dock.is-on { transform: translate(-50%, 0); }
.dock__thumbs { display: flex; }
.dock__thumbs span { width: 38px; height: 38px; border: 1px solid var(--line-2); background: var(--ground-2); margin-left: -12px; padding: 3px; animation: tileIn .4s var(--ease) both; }
.dock__thumbs span:first-child { margin-left: 0; }
.dock__thumbs svg { width: 100%; height: 100%; }
.dock__text { margin: 0; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-70); white-space: nowrap; }
.dock__text b { color: var(--fg); font-weight: 500; }
.toast {
  position: fixed; z-index: 30; top: 76px; left: 50%; transform: translate(-50%, -20px); opacity: 0;
  padding: .7rem 1rem; background: var(--fg); color: var(--ink);
  font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  transition: opacity .3s, transform .4s var(--ease); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .atelier__grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
  .coll { grid-column: 1 / -1; max-height: none; }
  .coll__list { grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); overflow-x: auto; }
}
@media (max-width: 860px) {
  .atelier__grid { display: flex; flex-direction: column; }
  .stage { order: -1; position: sticky; top: 60px; z-index: 6; height: 54svh; min-height: 0; }
  #stageGl { touch-action: none; }
  .ctrl .seg--full { position: sticky; top: calc(60px + 54svh); z-index: 5; background: #101112; }
  .stage__brand { font-size: 2.2rem; }
  .callout { padding: .4rem .5rem; grid-template-columns: 1fr; }
  .callout__meta span { display: none; }
  .callout__name { font-size: .9rem; }
  .callouts { width: 44%; right: 8px; }
  .callout__thumb { display: none; }
  .stage__hint { display: none; }
  .ctrl { max-height: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .piece-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs .specs__cta { grid-column: 1 / -1; justify-items: start; place-items: start; }
}
@media (max-width: 860px) {
  .top__nav { display: none; }
  .hud__read, .hud__made, .hud__ruler { display: none; }
  .lang select { width: 3.6rem; padding-right: 1.2rem; }
  .library { grid-template-columns: 1fr; }
  .library__side { position: static; }
  .index { grid-template-columns: repeat(2, 1fr); }
  .index button { font-size: 1.3rem; padding-right: .6rem; }
  .index button:nth-child(odd) { border-right: 1px solid var(--line); }
  .piece-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece__name { font-size: 1.3rem; }
  .piece__line { display: none; }
  .specs { grid-template-columns: 1fr 1fr; }
  .specs > div:nth-child(3) { grid-column: 1 / -1; }
  .band { min-height: 0; grid-template-rows: 56vw auto; }
  .band__img { position: relative; inset: auto; height: 100%; grid-row: 1; }
  .band::after { display: none; }
  .band__copy { grid-row: 2; max-width: none; padding: 24px 20px; background: var(--ground); border-top: 1px solid var(--line); }
  .band__coll { position: static; grid-row: 3; justify-items: start; border-left: 0; background: var(--ground); }
  .brief__grid { grid-template-columns: 1fr; }
  .brief__form { position: static; }
  .order__head { display: none; }
  .dock__text { display: none; }
  .proc { width: 64vw; }
  .manifesto__sticky { padding: 76px var(--frame) 24px; }
}
@media (max-width: 480px) {
  .sound__label { display: none; }
  .top__logo img { width: 74px; }
  .brow { grid-template-columns: 64px 1fr; }
  .brow__thumb { width: 64px; height: 64px; }
  .brow select { grid-column: 2; }
  .piece-grid { grid-template-columns: 1fr 1fr; }
  .piece-grid[data-filter="all"] .piece:first-child { grid-row: auto; }
  .piece-grid[data-filter="all"] .piece:first-child .piece__img { aspect-ratio: 4 / 5; }
  .piece__body { padding: .8rem; }
  .piece__tags { display: none; }
  .hero__cta { flex-direction: column; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .grain { display: none; }
}

/* ============================================================
   Studio page
   ============================================================ */

body.studio { overflow: hidden; height: 100svh; background: #050506; }
.studio__bar { background: rgba(5,5,6,.6); }
.studio__back { display: inline-flex; align-items: center; gap: .5rem; color: var(--fg-70); text-decoration: none; }
.studio__back svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.studio__back:hover svg { transform: translateX(-3px); }
.studio__back img { width: 84px; height: auto; }
.studio__title { margin: 0; position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .68rem; letter-spacing: .4em; text-transform: uppercase; color: var(--fg-70); }
.studio__main { position: fixed; inset: 61px 0 0 0; }
.studio .stage { position: absolute; inset: 0; min-height: 0; border: 0; box-shadow: none; }
.studio #stageGl { touch-action: none; }
.studio .coll { position: absolute; left: 16px; top: 16px; bottom: 16px; width: 236px; max-height: none; z-index: 4; }
.studio .ctrl { position: absolute; right: 16px; top: 16px; bottom: 16px; width: 360px; max-height: none; z-index: 4; }
.studio .ctrl__pane { overflow-y: auto; }
.studio .callouts { right: 392px; width: 220px; }
.studio .stage__hint { left: 268px; }
.studio .stage__credit { left: 268px; }
.studio .stage__brand { top: 18px; }
.studio .stage__tools { left: 268px; right: 392px; bottom: 16px; }
.studio .stage__flat { left: 268px; right: 392px; }
.studio__focus { position: absolute; left: 268px; right: 392px; bottom: 64px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; z-index: 3; }
.studio__zoom { align-items: center; }
.studio__zoom span { min-width: 4.2em; text-align: center; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; color: var(--fg-70); }
.studio__zoom button { font-size: 1rem; padding: .35rem .8rem; }
.ctrl__handle { display: none; }

@media (max-width: 1100px) and (min-width: 861px) {
  .studio .coll { width: 200px; }
  .studio .ctrl { width: 320px; }
  .studio .callouts { right: 348px; width: 190px; }
  .studio .stage__tools, .studio__focus { left: 228px; right: 348px; }
  .studio .stage__flat { left: 228px; right: 348px; }
  .studio .stage__hint { left: 228px; }
  .studio .stage__credit { left: 228px; }
}

/* phones: model on top, collection strip, controls in a bottom sheet */
@media (max-width: 860px) {
  .studio__title { display: none; }
  .studio__main { inset: 58px 0 0 0; }
  .studio .stage { position: absolute; inset: 0 0 auto 0; height: 58svh; }
  .studio .stage__hint { display: none; }
  .studio .stage__credit { left: 10px; top: 10px; max-width: 55%; }
  .studio .callouts { right: 8px; width: 40%; }
  .studio .stage__tools { left: 10px; right: 10px; bottom: 10px; }
  .studio .stage__flat { left: 10px; right: 44%; top: 40px; bottom: 100px; }
  .stage__no3d { font-size: .82rem; padding: .5rem .6rem; }
  .studio__focus { left: 10px; right: 10px; bottom: 56px; }
  .studio__focus .seg button { padding: .5rem .6rem; }
  .studio .coll { left: 0; right: 0; top: calc(58svh + 0px); bottom: auto; width: auto; border-width: 1px 0; }
  .studio .coll .panel-head, .studio .coll__add { display: none; }
  .studio .coll__list { grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; padding: 6px 8px; }
  .studio .citem { grid-template-columns: 1fr; padding: 3px; }
  .studio .citem > span:not(.citem__thumb) { display: none; }
  .studio .coll__empty { grid-column: span 6; width: calc(100vw - 32px); padding: .6rem .4rem; font-size: .95rem; }
  .studio .ctrl {
    left: 0; right: 0; bottom: 0; top: auto; width: auto; height: calc(100svh - 58px - 58svh - 76px); min-height: 180px;
    border-width: 1px 0 0; transition: height .45s var(--ease); z-index: 7; background: rgba(12,13,14,.92);
  }
  .studio .ctrl.is-open { height: 72svh; }
  .studio .ctrl .seg--full { position: static; }
  .ctrl__handle { display: grid; place-items: center; height: 22px; width: 100%; }
  .ctrl__handle i { width: 44px; height: 4px; background: var(--fg-30); border-radius: 2px; }
}
