/* QZY Models - showroom black, museum board, logo red. Archivo (variable width) for display and text, JetBrains Mono for
   scale readouts and labels. Grammar: hairlines and dimension lines, no cards, no frosted plates. */
:root {
  --ink: #0d0c0b;
  --ink-2: #171513;
  --ink-3: #25221f;
  --paper: #f2eee7;
  --paper-2: rgba(242, 238, 231, 0.72);
  --paper-3: rgba(242, 238, 231, 0.5);
  --line-d: rgba(242, 238, 231, 0.16);
  --board: #efebe4;
  --board-2: #e4ded3;
  --board-ink-2: #4a453f;
  --line-b: rgba(13, 12, 11, 0.16);
  --red: #991a21;
  --red-hi: #e5484e;
  --led: #f3d6a0;
  --f-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--f-sans); font-size: 17px; line-height: 1.6; font-weight: 380; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 300; }
p { margin: 0; }
em { font-style: normal; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { fill: currentColor; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; font-family: var(--f-mono); font-size: 13px; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- labels, dimension lines */
.hud-k, .eyebrow, .chapter-k, .caption-k {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400;
}
.dim { position: relative; display: inline-block; width: 44px; height: 1px; background: currentColor; vertical-align: middle; opacity: 0.7; }
.dim::before, .dim::after { content: ''; position: absolute; top: -4px; width: 1px; height: 9px; background: currentColor; }
.dim::before { left: 0; } .dim::after { right: 0; }
.caption-n { font-variant-numeric: tabular-nums; }
.chapter-k, .caption-k { display: flex; align-items: center; gap: 12px; color: var(--paper-2); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--f-sans); font-size: 13px; font-weight: 560; font-stretch: 112%; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; line-height: 1; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b0222a; }
.btn-line { border-color: rgba(242, 238, 231, 0.42); color: var(--paper); }
.btn-line:hover { border-color: var(--paper); background: rgba(242, 238, 231, 0.06); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--red); }
.btn-lg { padding: 18px 26px; }

/* ---------------------------------------------------------------- scene, cursor */
.scene { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: block; background: #0b0d12; }
.cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor.is-on { opacity: 1; }
.cursor-x, .cursor-y { position: absolute; background: rgba(242, 238, 231, 0.85); }
.cursor-x { left: -11px; top: 0; width: 22px; height: 1px; }
.cursor-y { left: 0; top: -11px; width: 1px; height: 22px; }
.cursor-read { position: absolute; left: 12px; top: 10px; white-space: nowrap; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--paper-2); }
.cursor.is-hover .cursor-x, .cursor.is-hover .cursor-y { background: var(--red-hi); }
.cursor.is-hover .cursor-x { width: 34px; left: -17px; } .cursor.is-hover .cursor-y { height: 34px; top: -17px; }
.cursor.on-board .cursor-x, .cursor.on-board .cursor-y { background: rgba(13, 12, 11, 0.8); }
.cursor.on-board .cursor-read { color: var(--board-ink-2); }
@media (pointer: coarse) { .cursor { display: none; } }
@media (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor summary { cursor: none; } }

/* ---------------------------------------------------------------- loader */
.loader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--ink); transition: opacity 0.9s var(--ease), visibility 0.9s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { width: min(320px, 76vw); }
.loader-logo { width: 100%; height: auto; margin-bottom: 34px; }
.loader-rule { position: relative; height: 14px; border-bottom: 1px solid var(--line-d); display: flex; justify-content: space-between; align-items: flex-end; }
.loader-rule i { width: 1px; height: 6px; background: var(--paper-3); }
.loader-rule i:nth-of-type(5n + 1) { height: 12px; }
.loader-rule span { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--red-hi); transition: width 0.5s var(--ease); }
.loader-hint { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-2); }
.loader-scale { color: var(--led); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 32px;
  padding: 20px var(--gutter); transition: transform 0.5s var(--ease);
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0.55), rgba(10, 10, 12, 0));
}
.nav.is-hidden { transform: translateY(-110%); }
.nav-logo img { width: 128px; height: auto; }
.nav-time { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-3); }
.nav-time span:last-child { color: var(--paper-2); font-variant-numeric: tabular-nums; }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 0 rgba(229, 72, 78, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(229, 72, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 78, 0); } }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 12.5px; font-weight: 520; font-stretch: 112%; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--paper-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--paper); }
.nav-cta { padding: 12px 18px; font-size: 12px; }
.nav-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(242, 238, 231, 0.08); }
.nav-progress span { display: block; height: 100%; background: var(--red-hi); transform-origin: left; transform: scaleX(0); }

/* ---------------------------------------------------------------- HUD: the live scale readout */
.hud {
  position: fixed; left: var(--gutter); bottom: 26px; z-index: 30; display: flex; align-items: center; gap: 26px;
  font-family: var(--f-mono); font-size: 12px; color: var(--paper-2); pointer-events: none; transition: opacity 0.5s;
}
.hud.is-off { opacity: 0; }
.hud b { font-weight: 500; color: var(--paper); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.hud-scale, .hud-eye { display: flex; align-items: baseline; gap: 10px; }
.hud-scale b { color: var(--led); font-size: 14px; }
.hud-sep { color: var(--paper-3); }
.hud-ticks { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hud-ticks li { width: 18px; height: 2px; background: rgba(242, 238, 231, 0.22); transition: background 0.4s, width 0.4s var(--ease); }
.hud-ticks li.is-on { background: var(--red-hi); width: 30px; }

/* ---------------------------------------------------------------- story */
.story { position: relative; z-index: 2; }
.beat { position: relative; height: 160vh; }
.beat-hero { height: 160vh; }
.hero-copy, .caption {
  position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(96px, 15vh, 150px); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
}
.hero-copy::before, .caption::before {   /* lower-third scrim: a plain gradient (cheap to paint), fades with the copy */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 8, 10, 0.78), rgba(8, 8, 10, 0.42) 45%, rgba(8, 8, 10, 0));
  left: 50%; width: 100vw; transform: translateX(-50%); opacity: var(--scrim, 0);
}
.hero-copy { --scrim: 1; }
.eyebrow { color: var(--led); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 9px; height: 9px; background: var(--red-hi); }
.hero-title {
  font-size: clamp(42px, 7.4vw, 124px); line-height: 0.94; font-weight: 250; font-stretch: 125%; letter-spacing: -0.02em; text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero-title em { font-weight: 640; font-stretch: 100%; color: var(--red-hi); letter-spacing: -0.03em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line > span { display: inline-block; }
.hero-title .wd { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; transform: translateY(115%); transform-origin: 0 100%; will-change: transform; }
.hero-sub { max-width: 560px; margin-top: 28px; font-size: clamp(16px, 1.25vw, 19px); color: var(--paper-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
[data-intro] { opacity: 0; transform: translateY(18px); }
.scroll-cue {
  position: absolute; right: var(--gutter); top: calc(100vh - 66px); z-index: 3; display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-2);
}
.scroll-cue-line { width: 60px; height: 1px; background: var(--paper-3); position: relative; overflow: hidden; }
.scroll-cue-line::after { content: ''; position: absolute; inset: 0; background: var(--red-hi); transform: translateX(-100%); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 60%, 100% { transform: translateX(100%); } }

.caption { pointer-events: none; }
.caption > * { max-width: 620px; }
.caption-wide > * { max-width: 780px; }
.caption-right { align-items: flex-end; text-align: right; }
.caption-right .caption-k { flex-direction: row-reverse; }
.caption-right .caption-fact { justify-content: flex-end; }
.caption-k { margin-bottom: 20px; color: var(--led); }
.caption-title {
  font-size: clamp(32px, 4.4vw, 68px); line-height: 1.0; font-weight: 260; font-stretch: 122%; letter-spacing: -0.02em; text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.caption-title em { display: block; font-weight: 640; font-stretch: 100%; color: var(--paper); letter-spacing: -0.025em; }
.caption-body { margin-top: 22px; font-size: clamp(16px, 1.2vw, 18.5px); color: var(--paper-2); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.caption-fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-d); font-size: 15px; color: var(--paper); }
.caption-fact .hud-k { color: var(--red-hi); }
.stats { display: flex; gap: clamp(22px, 4vw, 64px); margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line-d); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-2); margin-top: 6px; }
.stats dd { margin: 0; font-size: clamp(38px, 4.6vw, 70px); line-height: 1; font-weight: 300; font-stretch: 118%; font-variant-numeric: tabular-nums; color: var(--paper); }

/* ---------------------------------------------------------------- chapters (panels) */
.panel { position: relative; z-index: 3; padding: clamp(88px, 13vw, 180px) 0; }
.board { background: var(--board); color: var(--ink); color-scheme: light; }
.show { background: var(--ink); color: var(--paper); }
.board .chapter-k { color: var(--board-ink-2); }
.board .caption-n { color: var(--red); }
.show .caption-n { color: var(--red-hi); }
#work::before {    /* the story dissolves into the first board: a short fade above it */
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 24vh; pointer-events: none;
  background: linear-gradient(to bottom, rgba(239, 235, 228, 0), var(--board));
}
.chapter-head { max-width: 980px; margin-bottom: clamp(48px, 7vw, 96px); }
.chapter-head-split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.chapter-title {
  margin-top: 22px; font-size: clamp(34px, 5vw, 78px); line-height: 1.0; font-weight: 260; font-stretch: 122%; letter-spacing: -0.022em; text-transform: uppercase;
}
.chapter-title em { font-weight: 640; font-stretch: 100%; letter-spacing: -0.028em; }
.board .chapter-title em { color: var(--red); }
.show .chapter-title em { color: var(--red-hi); }
.chapter-lede { margin-top: 26px; max-width: 600px; font-size: clamp(16px, 1.25vw, 19px); }
.board .chapter-lede { color: var(--board-ink-2); }
.show .chapter-lede { color: var(--paper-2); }
.chapter-head-split .chapter-lede { margin-top: 0; }

/* line reveals */
[data-lines] .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
[data-lines] .ln > span { display: block; transform: translateY(104%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 90ms); }
[data-lines].is-in .ln > span { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- selected work: spec sheets */
.sheets { display: flex; flex-direction: column; gap: clamp(64px, 9vw, 140px); }
.sheet { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.sheet-flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.sheet-flip .sheet-img { order: 2; }
.sheet-img { margin: 0; overflow: hidden; background: var(--ink); aspect-ratio: 3 / 2; clip-path: inset(14% 8% 14% 8%); transition: clip-path 1.6s var(--ease); }
.sheet.is-in .sheet-img { clip-path: inset(0 0 0 0); }
.sheet-img img { transition: transform 1.8s var(--ease), filter 0.6s; }
.sheet:hover .sheet-img img { transform: scale(1.035); }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.8s var(--ease); }
.sheet.is-in .sheet-img img { transform: scale(1); }
.sheet-no { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--red); }
.sheet-spec h3 { margin: 14px 0 22px; font-size: clamp(26px, 2.8vw, 42px); line-height: 1.02; font-weight: 300; font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.015em; }
.sheet-spec dl { margin: 0; border-top: 1px solid var(--line-b); }
.sheet-spec dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-b); }
.sheet-spec dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--board-ink-2); }
.sheet-spec dd { margin: 0; font-weight: 520; }
.work-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; margin-top: clamp(64px, 8vw, 120px); padding: 34px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-b); }
.work-more p { max-width: 620px; font-size: clamp(17px, 1.4vw, 21px); }
.work-more b { font-weight: 640; color: var(--red); }
.clients { margin-top: clamp(64px, 8vw, 110px); }
.marquee { display: flex; overflow: hidden; width: 100vw; margin: 26px 0 0 calc(50% - 50vw); padding: 26px 0; border-top: 1px solid var(--line-b); border-bottom: 1px solid var(--line-b); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { flex: none; display: flex; align-items: center; margin: 0; padding: 0; list-style: none; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: flex; align-items: center; white-space: nowrap; font-size: clamp(30px, 4vw, 58px); line-height: 1; font-weight: 250; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.015em; }
.marquee-track li::after { content: ''; width: 10px; height: 10px; margin: 0 clamp(26px, 3vw, 48px); background: var(--red); }
@keyframes marquee { to { transform: translateX(-100%); } }
.clients-more { margin-top: 18px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--board-ink-2); }

/* ---------------------------------------------------------------- film */
.film { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; border: 1px solid var(--line-d); }
.film-stage { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.film-stage video, .film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-poster { transition: opacity 0.6s; }
.film.is-playing .film-poster { opacity: 0; }
.film-toggle { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(242, 238, 231, 0.4); background: rgba(13, 12, 11, 0.55); color: var(--paper); }
.film-toggle svg { width: 16px; height: 16px; }
.film-cap { position: absolute; left: 18px; bottom: 18px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(13, 12, 11, 0.6); padding: 8px 12px; }
.film-tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line-d); }
.film-tabs li { flex: 1; border-bottom: 1px solid var(--line-d); }
.film-tabs li:last-child { border-bottom: 0; }
.film-tabs button {
  position: relative; width: 100%; height: 100%; min-height: 60px; display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  background: none; border: 0; text-align: left; font-size: 14.5px; font-weight: 520; font-stretch: 108%; color: var(--paper-2); transition: color 0.25s, background 0.25s;
}
.film-tabs button:hover { color: var(--paper); background: rgba(242, 238, 231, 0.04); }
.film-tabs button.is-on { color: var(--paper); background: rgba(242, 238, 231, 0.06); }
.film-n { font-family: var(--f-mono); font-size: 11px; color: var(--red-hi); }
.film-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.film-bar i { display: block; height: 100%; width: 100%; background: var(--red-hi); transform-origin: left; transform: scaleX(0); }

/* ---------------------------------------------------------------- what we build */
.types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.type { padding: 28px 0 40px; border-top: 1px solid var(--ink); }
.type-scale { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--red); }
.type h3 { margin: 18px 0 12px; font-size: clamp(22px, 2vw, 30px); line-height: 1.06; font-weight: 320; font-stretch: 116%; text-transform: uppercase; letter-spacing: -0.01em; }
.type p { color: var(--board-ink-2); font-size: 16px; }
.types-note { margin-top: 18px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--board-ink-2); }

/* ---------------------------------------------------------------- process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(24px, 3vw, 48px); counter-reset: s; }
.step { position: relative; padding-top: 30px; }
.step::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-d); }
.step::after { content: ''; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; background: var(--red-hi); }
.step-n { font-family: var(--f-mono); font-size: 12px; color: var(--paper-3); }
.step h3 { margin: 12px 0 12px; font-size: clamp(21px, 1.8vw, 27px); line-height: 1.08; font-weight: 320; font-stretch: 116%; text-transform: uppercase; }
.step p { color: var(--paper-2); font-size: 16px; }

/* ---------------------------------------------------------------- questions */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px clamp(32px, 6vw, 110px); align-items: start; }
.faq-wrap .chapter-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-b); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: clamp(17px, 1.4vw, 21px); font-weight: 520; font-stretch: 106%; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; margin-top: 6px; background: linear-gradient(var(--red), var(--red)) center / 14px 1.5px no-repeat, linear-gradient(var(--red), var(--red)) center / 1.5px 14px no-repeat; transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; max-width: 640px; color: var(--board-ink-2); }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px clamp(32px, 6vw, 110px); align-items: start; }
.direct { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line-d); }
.direct li { border-bottom: 1px solid var(--line-d); }
.direct-a { display: flex; align-items: center; gap: 18px; padding: 18px 0; text-decoration: none; font-size: 17px; }
.direct-a svg { flex: none; width: 22px; height: 22px; color: var(--red-hi); }
.direct-a > span { display: flex; flex-direction: column; gap: 2px; }
.direct-a .hud-k { color: var(--paper-3); font-size: 10.5px; }
a.direct-a:hover { color: var(--led); }

.form { position: relative; background: var(--ink-2); border: 1px solid var(--line-d); padding: clamp(24px, 3.4vw, 48px); }
.form-body { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 26px; }
.form.is-sent .form-body { display: none; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field .label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-2); }
.opt { color: var(--paper-3); letter-spacing: 0.08em; text-transform: none; }
.field input, .field textarea, .dd-btn {
  width: 100%; min-height: 50px; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid rgba(242, 238, 231, 0.32); border-radius: 0;
  font-size: 17px; transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.field textarea::placeholder { color: var(--paper-3); }
.field input:focus, .field textarea:focus, .dd-btn:focus-visible { outline: none; border-bottom-color: var(--red-hi); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--red-hi); }
.field-error { font-size: 13.5px; color: #ff8a8e; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; }
.count { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--paper-3); }
.count.is-near { color: var(--led); }
.phone { display: flex; gap: 14px; }
.phone .dd { flex: none; width: 112px; }
.phone > input { flex: 1 1 auto; min-width: 0; width: auto; }
.dd { position: relative; }
.dd-btn { display: flex; align-items: center; gap: 8px; text-align: left; }
.dd-iso { font-family: var(--f-mono); font-size: 12px; color: var(--paper-3); }
.dd-val.is-placeholder { color: var(--paper-3); }
.dd-caret { margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: 0.7; }
.dd-pop { position: absolute; z-index: 20; left: 0; top: calc(100% + 6px); width: max(100%, 300px); background: var(--ink-3); border: 1px solid var(--line-d); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.dd-search { width: 100%; padding: 12px 14px; background: transparent; border: 0; border-bottom: 1px solid var(--line-d); font-size: 15px; }
.dd-search:focus { outline: none; }
.dd-list { list-style: none; margin: 0; padding: 6px 0; max-height: 260px; overflow-y: auto; }
.dd-list:focus { outline: none; }
.dd-opt { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; font-size: 15px; cursor: pointer; }
.dd-opt.is-active, .dd-opt:hover { background: rgba(242, 238, 231, 0.08); }
.dd-opt[aria-selected='true'] .dd-name { color: var(--led); }
.dd-dial { margin-left: auto; font-family: var(--f-mono); font-size: 12px; color: var(--paper-3); }
.dd-empty { padding: 10px 14px; color: var(--paper-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { grid-column: 1 / -1; }
.turnstile:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-note { font-size: 14.5px; color: var(--paper-2); }
.form-legal { font-size: 13px; color: var(--paper-3); }
.form-legal a { color: var(--paper-2); }
.form-success h3 { margin: 18px 0 14px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; font-weight: 320; font-stretch: 112%; text-transform: uppercase; }
.form-success p { color: var(--paper-2); margin-bottom: 26px; }
.form-success .btn svg { width: 19px; height: 19px; }

/* ---------------------------------------------------------------- footer */
.footer { position: relative; z-index: 3; background: var(--ink); border-top: 1px solid var(--line-d); padding: 56px 0 120px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 32px 56px; align-items: start; }
.footer-brand img { width: 160px; height: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 380px; color: var(--paper-2); font-size: 15px; }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-social a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; color: var(--paper-2); }
.footer-social a:hover { color: var(--paper); }
.footer-social svg { width: 20px; height: 20px; }
.footer-legal { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--paper-3); }
.footer-legal a { text-decoration: none; color: var(--paper-2); }
.footer-legal a:hover { color: var(--paper); }

/* ---------------------------------------------------------------- action bar */
.bar {
  position: fixed; right: var(--gutter); bottom: 20px; z-index: 35; display: flex; gap: 8px; transform: translateY(140%); transition: transform 0.6s var(--ease);
}
.bar.is-on { transform: none; }
.bar-btn { display: none; width: 52px; height: 52px; place-items: center; background: var(--ink-3); border: 1px solid var(--line-d); color: var(--paper); }
.bar-btn svg { width: 22px; height: 22px; }
.bar-cta { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px; background: var(--red); color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 600; font-stretch: 112%; letter-spacing: 0.1em; text-transform: uppercase; }
.bar-cta svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- inner pages: projects archive + legal */
.inner { background: var(--board); color: var(--ink); color-scheme: light; }
.inner .skip { background: var(--ink); color: var(--paper); }
.inner .chapter-k { color: var(--board-ink-2); }
.inner .caption-n { color: var(--red); }
.inner .chapter-title em { color: var(--red); }
.inner .chapter-lede { color: var(--board-ink-2); }
.pnav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 18px var(--gutter); background: rgba(239, 235, 228, 0.94); border-bottom: 1px solid var(--line-b); }
.pnav-logo img { width: 116px; height: auto; }
.pnav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.pnav-links a:not(.btn) { font-size: 12.5px; font-weight: 520; font-stretch: 112%; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--board-ink-2); }
.pnav-links a:not(.btn):hover { color: var(--ink); }
.pnav .btn { padding: 12px 18px; font-size: 12px; }
.archive-head { padding: clamp(64px, 9vw, 130px) 0 clamp(32px, 4vw, 56px); }
.archive-head .chapter-title em { color: var(--red); }
.archive-head .chapter-lede { color: var(--board-ink-2); }
.archive-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--board-ink-2); }
.archive-meta b { color: var(--ink); font-weight: 500; }
.chips { position: sticky; top: 73px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--gutter); margin: 0 calc(-1 * var(--gutter)); background: rgba(239, 235, 228, 0.94); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line-b); background: transparent; font-size: 13px; font-weight: 520; font-stretch: 108%; color: var(--ink); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-n { font-family: var(--f-mono); font-size: 11px; opacity: 0.7; }
.works { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(18px, 2.4vw, 36px); }
.work[hidden] { display: none; }
.work-btn { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; width: 100%; padding: 0; background: none; border: 0; text-align: left; color: inherit; }
.work-img { grid-column: 1 / -1; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); margin-bottom: 12px; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.4s; }
.work-btn:hover .work-img img { transform: scale(1.045); }
.work-no { grid-row: span 2; font-family: var(--f-mono); font-size: 11.5px; color: var(--red); padding-top: 5px; }
.work-title { font-size: 19px; line-height: 1.2; font-weight: 520; font-stretch: 108%; }
.work-meta { font-size: 14px; color: var(--board-ink-2); }
.work-count { grid-column: 2; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--board-ink-2); }
.archive-foot { margin: clamp(80px, 10vw, 140px) 0 0; padding: 40px 0 72px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.archive-foot p { max-width: 560px; font-size: 19px; }
.archive-note { font-family: var(--f-mono); font-size: 11.5px; color: var(--board-ink-2); margin-top: 32px; }

/* project dialog */
.pd { width: min(1240px, 100vw); max-width: 100vw; max-height: 100vh; height: 100%; margin: 0 auto; padding: 0; border: 0; background: var(--ink); color: var(--paper); }
.pd::backdrop { background: rgba(8, 8, 9, 0.88); }
.pd[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.pd-top { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line-d); }
.pd-top h2 { font-size: clamp(18px, 2vw, 26px); font-weight: 400; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.005em; }
.pd-place { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-2); }
.pd-close { margin-left: auto; width: 44px; height: 44px; flex: none; border: 1px solid var(--line-d); background: none; position: relative; }
.pd-close::before, .pd-close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--paper); transform: translate(-50%, -50%) rotate(45deg); }
.pd-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pd-main { position: relative; display: grid; place-items: center; min-height: 0; background: #000; }
.pd-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pd-nav { position: absolute; top: 50%; width: 48px; height: 48px; transform: translateY(-50%); border: 1px solid var(--line-d); background: rgba(13, 12, 11, 0.6); color: var(--paper); display: grid; place-items: center; }
.pd-nav svg { width: 18px; height: 18px; }
.pd-prev { left: 14px; } .pd-prev svg { transform: rotate(180deg); }
.pd-next { right: 14px; }
.pd-nav[hidden] { display: none; }
.pd-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; padding: 18px 22px 22px; border-top: 1px solid var(--line-d); }
.pd-facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; }
.pd-facts div { display: flex; flex-direction: column; gap: 2px; }
.pd-facts dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-3); }
.pd-facts dd { margin: 0; font-size: 15px; }
.pd-notes { grid-column: 1 / -1; margin: 0; padding-left: 18px; color: var(--paper-2); font-size: 14.5px; }
.pd-count { font-family: var(--f-mono); font-size: 12px; color: var(--paper-2); align-self: end; }

.plain-main { padding: clamp(56px, 8vw, 110px) 0 120px; }
.legal { max-width: 760px; }
.legal-updated { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--board-ink-2); }
.legal h1 { margin: 18px 0 22px; font-size: clamp(36px, 5vw, 64px); line-height: 1; font-weight: 260; font-stretch: 122%; text-transform: uppercase; letter-spacing: -0.02em; }
.legal-intro { font-size: 19px; color: var(--board-ink-2); margin-bottom: 40px; }
.legal section { padding: 26px 0; border-top: 1px solid var(--line-b); }
.legal h2 { font-size: 20px; font-weight: 560; font-stretch: 108%; margin-bottom: 12px; }
.legal p + p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--red); }
.plain-foot { border-top: 1px solid var(--line-b); padding: 28px 0 40px; font-size: 14px; color: var(--board-ink-2); }
.plain-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.plain-foot a { color: var(--board-ink-2); }
.nf { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.nf .btn { margin-top: 32px; align-self: flex-start; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .clients-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .film { grid-template-columns: 1fr; }
  .film-tabs { flex-direction: row; overflow-x: auto; border-left: 0; border-top: 1px solid var(--line-d); scrollbar-width: none; }
  .film-tabs li { flex: none; border-bottom: 0; border-right: 1px solid var(--line-d); }
  .film-tabs button { white-space: nowrap; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { padding: 14px var(--gutter); }
  .nav-logo img { width: 104px; }
  .nav-cta { display: none; }
  .nav-time { margin-left: auto; }
  .hud { left: var(--gutter); right: var(--gutter); top: 64px; bottom: auto; gap: 14px; font-size: 11px; justify-content: space-between; }
  .hud-eye .hud-k:last-child, .hud-ticks { display: none; }
  .hud-eye .hud-k:first-child { display: none; }
  .beat, .beat-hero { height: 150vh; }
  .hero-copy, .caption { padding-bottom: 104px; }
  .hero-copy::before, .caption::before { height: 82%; background: linear-gradient(to top, rgba(8, 8, 10, 0.86), rgba(8, 8, 10, 0.5) 50%, rgba(8, 8, 10, 0)); }
  .hero-title { font-size: clamp(38px, 11vw, 64px); font-stretch: 112%; }
  .caption-title { font-size: clamp(28px, 8.4vw, 44px); font-stretch: 110%; }
  .caption-right { align-items: flex-start; text-align: left; }
  .caption-right .caption-k { flex-direction: row; }
  .caption-right .caption-fact { justify-content: flex-start; }
  .stats { gap: 20px; }
  .stats dd { font-size: clamp(30px, 9vw, 44px); }
  .scroll-cue { display: none; }
  .chapter-head-split, .faq-wrap, .contact-grid { grid-template-columns: 1fr; }
  .chapter-title { font-size: clamp(30px, 8.6vw, 48px); font-stretch: 110%; }
  .sheet, .sheet-flip { grid-template-columns: 1fr; }
  .sheet-flip .sheet-img { order: 0; }
  .clients-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .types, .steps { grid-template-columns: 1fr; gap: 0 0; }
  .steps { gap: 40px; }
  .form-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 110px; }
  .bar { left: var(--gutter); right: var(--gutter); bottom: 14px; }
  .bar-btn { display: grid; }
  .bar-cta { flex: 1; justify-content: center; }
  .pnav-links a:not(.btn) { display: none; }
  .chips { top: 65px; }
  .works { grid-template-columns: 1fr; gap: 40px; }
  .pd-foot { grid-template-columns: 1fr; }
  .pd-nav { width: 42px; height: 42px; }
}
@media (max-width: 420px) {
  .hero-actions .btn { padding: 14px 16px; }
}
@media (max-height: 640px) and (max-width: 820px) {
  .hud { display: none; }
  .caption-body { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  [data-reveal], [data-intro] { opacity: 1; transform: none; }
  [data-lines] .ln > span, .hero-title .ch { transform: none; }
}
