/* C2LYN Studios: shared styles for every page */
:root {
  --paper: #f2f0eb;
  --card: #faf9f6;
  --ink: #111;
  --ink-2: #4a4944;
  --mute: #6e6b63; /* 4.7:1 on paper, so small labels stay readable */
  --night: #0b0b0b;
  --night-2: #151515;
  --line: rgba(17, 17, 17, .12);
  --line-d: rgba(255, 255, 255, .12);
  --red: #dc1e3c; /* brand accent; the accent colour set in the admin replaces it */
  --rail: 64px;
  --pad: clamp(20px, 4.5vw, 72px);
  --wrap: 1240px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, Consolas, monospace; /* data only: sizes, the server address, the chat log, the brief */
}

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

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }
main, .site-foot { margin-left: var(--rail); }
main { overflow-x: clip; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ico { display: block; width: 24px; height: 24px; fill: currentColor; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 120; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 8px; }

/* ---------- type ---------- */
.eyebrow { display: block; margin: 0; font: 600 13px/1.4 var(--body); color: var(--mute); }
.display { margin: 0; font: 800 clamp(48px, 9.5cqw, 190px)/.9 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.h2 { margin: 0; font: 700 clamp(34px, 4.4vw, 68px)/1.02 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.h3 { margin: 0; font: 600 18px/1.3 var(--display); letter-spacing: -.015em; }
.lede { margin: 0; font: 400 clamp(18px, 1.45vw, 21px)/1.55 var(--body); color: var(--ink-2); }
.dark .lede, .dark p, .copy .lede, .site-foot p { color: rgba(255, 255, 255, .7); }
.dark .eyebrow, .copy .eyebrow, .site-foot .eyebrow, .dark-comp .eyebrow, .ui.light .eyebrow { color: rgba(255, 255, 255, .62); }


/* ---------- side rail ---------- */
.rail { --item: min(44px, calc((100vh - 150px) / 12)); position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--rail); display: flex; flex-direction: column; background: var(--paper); border-right: 1px solid var(--line); view-transition-name: rail; }
.rail-logo { display: grid; place-items: center; height: 64px; border-bottom: 1px solid var(--line); }
.rail-logo img { width: 30px; height: auto; }
.rail-nav { position: relative; z-index: 0; padding: 10px 0; }
.rail-nav ul { list-style: none; margin: 0; padding: 0; }
.rail-nav a { position: relative; display: grid; place-items: center; height: var(--item); color: var(--ink); transition: color .15s ease; }
.rail-nav a[aria-current] { color: #fff; }
.rail-nav a[aria-current]::before { content: ""; position: absolute; z-index: -1; inset: 0; width: min(40px, var(--item)); margin: auto; background: var(--red); }
@media (hover: hover) and (pointer: fine) { .rail-nav a:not([aria-current]):hover { color: var(--red); } }
.rail-nav a .ico { width: min(24px, calc(var(--item) * .6)); height: auto; }
.rail-nav a::after { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; padding: 8px 12px; background: var(--ink); color: var(--paper); font: 600 12.5px/1.25 var(--body); white-space: nowrap; opacity: 0; transform: translate(-6px, -50%); transition: opacity .15s ease, transform .2s var(--ease-out); pointer-events: none; }
.rail-nav a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
@media (hover: hover) and (pointer: fine) { .rail-nav a:hover::after { opacity: 1; transform: translate(0, -50%); } }
.rail-foot { margin-top: auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0 16px; border-top: 1px solid var(--line); }
.rail-sec { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font: 600 12px/1.25 var(--body); color: var(--mute); }
.rail-bar { position: relative; flex: none; width: 2px; height: 56px; background: var(--line); overflow: hidden; }
.rail-bar i { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(0); }

/* ---------- buttons: solid blocks that press in ---------- */
.btn { --bg: var(--ink); --fg: var(--paper); --edge: var(--red); --ring: inset 0 0 0 0 transparent; --box: var(--edge); --boxfg: #fff;
  display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 8px 8px 20px; background: var(--bg); color: var(--fg); box-shadow: var(--ring), 4px 4px 0 var(--edge);
  font: 600 12.5px/1.2 var(--display); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .2s ease, color .2s ease; }
.btn:not(:has(i)) { padding-right: 20px; }
.btn i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; background: var(--box); color: var(--boxfg); }
.btn i .ico { width: 12px; height: 12px; transition: transform .25s var(--ease-out); }
.btn:active { transform: translate(4px, 4px); box-shadow: var(--ring), 0 0 0 var(--edge); transition-duration: .08s; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translate(-2px, -2px); box-shadow: var(--ring), 6px 6px 0 var(--edge); }
  .btn:hover i[data-icon="arrow"] .ico { transform: translateX(3px); }
  .btn:hover i[data-icon="ext"] .ico { transform: translate(2px, -2px); }
  .btn:hover i[data-icon="down"] .ico { transform: translateY(3px); }
  .btn:hover i[data-icon="up"] .ico { transform: translateY(-3px); }
  .btn:active { transform: translate(4px, 4px); box-shadow: var(--ring), 0 0 0 var(--edge); }
}
.btn-ghost { --bg: transparent; --fg: var(--ink); --edge: var(--ink); --ring: inset 0 0 0 1.5px var(--ink); --box: var(--ink); --boxfg: var(--paper); }
.btn-sm { min-height: 42px; gap: 10px; padding: 6px 6px 6px 14px; font-size: 11.5px; box-shadow: var(--ring), 3px 3px 0 var(--edge); }
.btn-sm i { width: 30px; height: 30px; }
.dark .btn, .cta .btn, .copy .btn, .proj-facts .btn, .site-foot .btn, .dark-comp .btn { --bg: var(--paper); --fg: var(--ink); }
.dark .btn-ghost, .cta .btn-ghost, .copy .btn-ghost, .proj-facts .btn-ghost, .site-foot .btn-ghost, .dark-comp .btn-ghost { --bg: transparent; --fg: var(--paper); --edge: var(--paper); --ring: inset 0 0 0 1.5px var(--paper); --box: var(--paper); --boxfg: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 16px 20px; }

/* ---------- layout ---------- */
.sec { position: relative; overflow: clip; padding: clamp(96px, 15vh, 180px) var(--pad); }
.sec > :not(.ghost) { position: relative; z-index: 1; }
.paper { background: var(--paper); color: var(--ink); }
.dark { background: var(--night); color: var(--paper); }
.wrap { max-width: var(--wrap); margin-inline: auto; }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 6vw; align-items: end; margin-bottom: clamp(48px, 8vh, 88px); }
.head .lede { max-width: 42ch; }
.split-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 7vw; align-items: start; }
.sticky { position: sticky; top: 14vh; }
.stack > * + * { margin-top: 24px; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

/* giant letter peeking in from the edge of a section: the scattered-letter motif, repeated */
.ghost { position: absolute; top: var(--gy, 6%); z-index: 0; font: 900 clamp(300px, 46vw, 820px)/.8 var(--display); letter-spacing: -.05em; opacity: .05; pointer-events: none; user-select: none; }
.ghost.l { left: 0; translate: -42% 0; }
.ghost.r { right: 0; translate: 42% 0; }
@media (max-width: 760px) { .ghost { font-size: 200px; } } /* phones: smaller, so it stays a hint behind the text */

/* chips + badges */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); font: 600 12.5px/1.25 var(--body); color: inherit; text-decoration: none; }
.dark .chip, .copy .chip { background: var(--night-2); border-color: var(--line-d); }
button.chip { cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
button.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.dark button.chip[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { button.chip[aria-pressed="false"]:hover { border-color: var(--red); } }
.badge { display: grid; place-items: center; flex: none; width: 48px; height: 48px; background: var(--red); color: #fff; }
.badge.lg { width: 88px; height: 88px; }
.badge.lg .ico { width: 48px; height: 48px; }

/* cards */
.tiles { display: grid; border-top: 1px solid var(--line); }
.dark .tiles { border-color: var(--line-d); }
.tile { position: relative; display: grid; grid-template-columns: 44px minmax(0, 15rem) minmax(0, 1fr) auto; align-items: baseline; gap: 6px 28px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background-color .25s ease; }
.dark .tile { border-color: var(--line-d); }
.tile .badge { align-self: center; width: 44px; height: 44px; }
.tile .h3 { font-size: clamp(17px, 1.5vw, 21px); }
.tile p { max-width: 58ch; margin: 0; color: var(--ink-2); font-size: 16px; }
.dark .tile p { color: rgba(255, 255, 255, .66); }
.tile .more { display: flex; align-items: center; gap: 8px; font: 600 12.5px/1.25 var(--body); color: var(--red); }
.tile .more .ico { width: 12px; height: 12px; transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a.tile:hover { background: color-mix(in srgb, var(--red) 6%, transparent); }
  a.tile:hover .more .ico { transform: translateX(3px); }
}

/* numbered steps */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dark .steps { border-color: var(--line-d); }
.steps li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 8px 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.dark .steps li { border-color: var(--line-d); }
.steps .n { grid-row: span 2; font: 700 24px/1.15 var(--display); color: var(--red); letter-spacing: -.03em; }
.steps h3 { margin: 0; font: 600 19px/1.3 var(--display); letter-spacing: -.015em; }
.steps p { margin: 0; max-width: 58ch; color: var(--ink-2); }
.dark .steps p { color: rgba(255, 255, 255, .66); }
.steps b { color: inherit; font-weight: 600; }

/* call to action panel */
.cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: clamp(72px, 12vh, 140px); padding: clamp(32px, 5vw, 64px); background: var(--ink); color: var(--paper); }
.dark .cta { background: var(--night-2); border: 1px solid var(--line-d); }
.cta .h2 { font-size: clamp(30px, 3.8vw, 56px); }

/* ---------- pinned hero with a per-page effect ---------- */
.hero { position: relative; height: var(--h, 240vh); background: var(--night); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.layer { position: absolute; inset: 0; }
.comp { z-index: 2; display: grid; place-items: center; background: var(--paper); color: var(--ink); text-align: center; container-type: size; }
.dark-comp .comp { background: var(--night); color: #fff; }
.comp-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 20px; padding: 0 var(--pad); }
.comp-inner .sub { margin: 0; font: 600 13px/1.5 var(--body); color: var(--mute); }
.dark-comp .comp-inner .sub { color: rgba(255, 255, 255, .6); }
.reveal { z-index: 1; background: var(--night); color: #fff; overflow: hidden; }
.reveal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .74), rgba(0, 0, 0, .3) 52%, transparent 82%), linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 50%); }
.copy { position: absolute; z-index: 1; left: var(--pad); bottom: clamp(36px, 10vh, 110px); width: min(760px, calc(100% - var(--pad) * 2)); text-align: left; opacity: 0; }
.copy > * + * { margin-top: 22px; }
.copy-cap { font: 600 13px/1.3 var(--body); color: rgba(255, 255, 255, .7); }
.copy-h { margin: 0; font: 800 clamp(38px, 5.4vw, 92px)/.95 var(--display); letter-spacing: -.04em; text-transform: uppercase; text-wrap: balance; }
.copy .lede { max-width: 44ch; }
.ui { z-index: 6; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 4.5vh, 40px) var(--pad); pointer-events: none; }
.ui .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ui.light { color: #fff; }
.hint { display: flex; align-items: center; gap: 10px; font: 600 12.5px/1.25 var(--body); }
.hint .ico { width: 12px; height: 12px; }

/* scattered letters, cut off by the edges */
.scatter { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.sl { position: absolute; left: var(--x); top: var(--y); font: 900 calc(var(--s) * min(1cqh, 1.7cqw))/.8 var(--display); letter-spacing: -.04em; white-space: nowrap; user-select: none; }
.sl.o { -webkit-text-fill-color: var(--paper); -webkit-text-stroke: 2px currentColor; paint-order: stroke fill; }
.sl.p { opacity: .07; }
.sl.r { color: var(--red); }
.dark-comp .sl.o { -webkit-text-fill-color: var(--night); -webkit-text-stroke-color: rgba(255, 255, 255, .45); }
.fx-dive .sl.o { -webkit-text-fill-color: #000; -webkit-text-stroke: 3px #fff; }

/* home: the wordmark. Its C is a window onto the builds and the door you fly through.
   Unbounded's capitals are .77em tall, so a .77 line box is exactly cap height: the C spans 2LYN's cap top to STUDIOS' baseline. */
.front { position: relative; z-index: 2; display: grid; justify-items: center; padding: 0 var(--pad); text-align: center; }
.studio { display: grid; grid-template-columns: auto auto; column-gap: .06em; margin: 0; font-size: clamp(56px, min(19cqw, 38cqh), 380px); }
.c-wrap { grid-row: span 2; align-self: center; display: block; height: 1.035em; aspect-ratio: 124 / 100; margin: -.02em 0; cursor: pointer; }
.c { display: block; width: 100%; height: 100%; fill: var(--red); overflow: visible; transition: fill .3s ease; }
@media (hover: hover) and (pointer: fine) { .c-wrap:hover .c { fill: color-mix(in srgb, var(--red) 82%, #000); } }
.studio-a { font: 900 1em/.77 var(--display); letter-spacing: -.055em; text-align: left; }
.studio-b { margin-top: .1em; font: 700 .16em/.77 var(--display); text-align: justify; text-align-last: justify; }
.we-build { margin: clamp(22px, 4.5cqh, 48px) 0 0; font: 600 clamp(17px, 2.2cqw, 34px)/1.3 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.front .ctas { justify-content: center; margin-top: clamp(24px, 4.5cqh, 44px); }
.fx-zoom .reveal { z-index: 3; }
/* the paper sits on the stage, not on .comp: .comp slides to centre the C before the fly-through,
   and its own background would slide with it and bare the black stage behind */
.fx-zoom .stage { background: var(--paper); }
.fx-zoom .comp { background: transparent; }
/* the "Built for" strip stops short of the fixed help bubble (58px + 22px from the edge) */
.fx-zoom .ui .proof { margin-right: max(0px, calc(96px - var(--pad))); }
/* the builds inside the C take turns, drifting slowly */
.fx-zoom .reveal-img { opacity: 0; transition: opacity 1.4s var(--ease-in-out); animation: drift 18s ease-in-out infinite alternate; }
.fx-zoom .reveal-img.on { opacity: 1; }
@keyframes drift { from { translate: -2% -1.5%; } to { translate: 2% 1.5%; } }
.proof { display: flex; align-items: center; gap: 16px; padding: 7px 12px 7px 10px; background: var(--card); border: 1px solid var(--line); font: 600 12.5px/1.25 var(--body); }
.proof > span:first-child { color: var(--ink-2); }
.proof .who { gap: 8px; }
.proof .who img { width: 22px; height: 22px; }
@media (max-width: 1180px) { .proof .who b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } } /* logos only; names stay for screen readers */
@media (max-aspect-ratio: 4/5) { .ui .row:last-child { flex-direction: column-reverse; align-items: flex-start; gap: 14px; } }
.proof .who b { font-weight: 500; }
@media (max-width: 760px) { .ui .row:last-child > .proof { display: flex; } } /* phones keep the proof, stacked above the hint */
@container (orientation: portrait) {
  .studio { grid-template-columns: auto; justify-items: center; font-size: min(26cqw, 15cqh); }
  .c-wrap { grid-row: auto; height: 1.55em; margin: 0 0 .16em; }
  .studio-b { justify-self: stretch; font-size: .2em; }
  .we-build { font-size: clamp(17px, 4.4cqw, 30px); }
}
.huge { margin: 0; font: 800 clamp(52px, 9.5vw, 180px)/.88 var(--display); letter-spacing: -.05em; text-transform: uppercase; }

/* split open (commission, guide) */
.fx-split .half { clip-path: inset(0 0 calc(50% - 1px) 0); } /* 1px overlap: no hairline seam where the halves meet */
.fx-split .half.b { clip-path: inset(50% 0 0 0); }
.fx-split.v .half { clip-path: inset(0 calc(50% - 1px) 0 0); }
.fx-split.v .half.b { clip-path: inset(0 0 0 50%); }
.fx-split .half::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; height: 3px; background: var(--red); top: calc(50% - 3px); opacity: var(--cut, 0); }
.fx-split .half.b::after { top: 50%; }
.fx-split.v .half::after { top: 0; bottom: 0; height: auto; width: 3px; right: auto; left: calc(50% - 3px); }
.fx-split.v .half.b::after { left: 50%; }

/* expanding window inside the headline (portfolio, perks) */
.fx-expand .reveal { z-index: 3; clip-path: inset(50%); }
.xw { display: inline-block; width: 1.5em; height: .74em; margin: 0 .1em; vertical-align: baseline; }
.fx-expand.circle .xw { width: .74em; }
.xl, .xr { display: inline-block; }

/* letter dive (team, apply): white letters are windows onto the scene */
.fx-dive .comp { background: #000; color: #fff; mix-blend-mode: multiply; pointer-events: none; }
.cap { display: inline-block; width: 0; height: 1cap; vertical-align: baseline; }

/* tilted world (builds) */
.plane-wrap { position: absolute; inset: 0; perspective: 1600px; pointer-events: none; }
.plane { position: absolute; left: 50%; top: 50%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: min(118vmin, 1400px); transform-origin: 50% 50%; transform: translate(-50%, calc(-50% + 10vh)) rotateX(56deg) rotateZ(-32deg) scale(.92); }
.plane img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 0 40px 60px -24px rgba(0, 0, 0, .7); }
.fx-tilt .comp-inner { align-self: start; margin-top: clamp(80px, 16vh, 170px); }
.fx-tilt .reveal { z-index: 3; opacity: 0; }

/* staircase rise (ranks) */
.fx-climb .reveal { z-index: 3; clip-path: inset(100% 0 0 0); }
.climb > span { display: inline-block; }

/* breaking blocks (server) */
.fx-pixel .comp { background: transparent; }
.cells { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(var(--cols, 14), 1fr); grid-auto-rows: 1fr; }
.cells i { background: #181818; box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .05), inset -3px -3px 0 rgba(0, 0, 0, .5); transition: transform .4s var(--ease-out), opacity .3s ease; }
.cells i:nth-child(3n) { background: #1c1c1c; }
.cells i:nth-child(7n+2) { background: #141414; }
.cells i.gone { transform: scale(.3) rotate(18deg); opacity: 0; }

/* card fan (store) */
.fan { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fan-card { --cw: min(17cqw, 300px); position: absolute; left: 50%; top: 66%; width: var(--cw); margin: calc(var(--cw) * -11 / 32) 0 0 calc(var(--cw) / -2); aspect-ratio: 16 / 11; object-fit: cover; border: 6px solid var(--card); box-shadow: 0 28px 50px -24px rgba(0, 0, 0, .55); transform-origin: 50% 170%; }
.fx-fan .comp-inner { align-self: start; margin-top: clamp(80px, 15vh, 160px); }
.fx-fan .copy { left: 50%; bottom: clamp(24px, 6vh, 64px); width: min(620px, calc(100% - var(--pad) * 2)); translate: -50% 0; text-align: center; color: var(--ink); z-index: 3; }
.fx-fan .copy .lede { color: var(--ink-2); margin-inline: auto; }
.fx-fan .copy .btn { --bg: var(--ink); --fg: var(--paper); }
.fx-fan .copy .ctas { justify-content: center; }

/* halves joining (link) */
.jl, .jr { display: inline-block; transition: color .3s ease; }
.fx-join.joined .jl, .fx-join.joined .jr { color: var(--red); }
.fx-join .reveal { z-index: 3; opacity: 0; }

/* ---------- build cards (home + portfolio) ---------- */
.gallery { columns: 3 280px; column-gap: clamp(20px, 2.6vw, 40px); }
.gallery .card { break-inside: avoid; margin-bottom: clamp(48px, 5vw, 76px); }
.card { position: relative; display: block; text-decoration: none; color: inherit; cursor: pointer; }
.card-media { position: relative; display: block; overflow: hidden; aspect-ratio: var(--ar); background: #1a1a1a; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- scroll reveal ---------- */
.card-cap { display: grid; gap: 4px; padding-top: 14px; }
.card-cap b { font: 700 clamp(16px, 1.3vw, 19px)/1.2 var(--display); letter-spacing: -.02em; transition: color .2s ease; }
.card-cap small { font-size: 14px; color: var(--mute); }
.dark .card-cap small { color: rgba(255, 255, 255, .6); }
@media (hover: hover) and (pointer: fine) { .card:hover .card-cap b { color: var(--red); } }
.card.rv .card-media { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.card.rv.in .card-media { clip-path: inset(0); }

/* ---------- home: clients ---------- */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.client { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 16px; padding: 18px 20px; background: var(--night-2); border: 1px solid var(--line-d); text-decoration: none; color: inherit; transition: border-color .2s ease; }
.client img { grid-row: span 2; width: 54px; height: 54px; object-fit: cover; background: #222; }
.client b { align-self: end; font: 600 15px/1.2 var(--display); letter-spacing: -.012em; }
.client small { align-self: start; font: 600 12px/1.4 var(--body); color: rgba(255, 255, 255, .5); }
.client-go { position: absolute; right: 14px; top: 14px; color: rgba(255, 255, 255, .4); transition: color .2s ease; }
.client-go .ico { width: 12px; height: 12px; }
@media (hover: hover) and (pointer: fine) {
  a.client:hover { border-color: rgba(255, 255, 255, .3); }
  a.client:hover .client-go { color: var(--red); }
}

.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 6vw; align-items: end; margin-top: clamp(64px, 10vh, 110px); }
.about .lede { color: var(--paper); font-size: clamp(20px, 2vw, 28px); line-height: 1.4; }
.about .lede a { color: var(--red); text-decoration: none; }
.fine { margin: 0; font: 600 13px/1.6 var(--body); color: var(--mute); }
.dark .fine { color: rgba(255, 255, 255, .45); }


/* ---------- inner-page components ---------- */
.cat { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px 5vw; padding: clamp(40px, 7vh, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 40px; }
.cat:last-of-type { border-bottom: 1px solid var(--line); }
.cat h3 { margin: 22px 0 12px; font: 700 clamp(24px, 2.4vw, 34px)/1.05 var(--display); letter-spacing: -.03em; }
.cat p { margin: 0 0 18px; color: var(--ink-2); }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tier { padding: 20px 20px 22px; background: var(--card); border: 1px solid var(--line); }
.tier b { display: block; font: 600 16px/1.2 var(--display); letter-spacing: -.01em; }
.tier .size { display: block; margin: 8px 0 14px; font: 500 11px/1.3 var(--mono); letter-spacing: .08em; color: var(--red); }
.tier ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.tier li + li { margin-top: 6px; }
.tier li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; background: var(--ink); }
.addons { margin-top: 14px; border: 1px solid var(--line); background: var(--card); }
.addons summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; font: 600 12.5px/1.25 var(--body); }
.addons summary::-webkit-details-marker { display: none; }
.addons summary::after { content: "+"; font: 600 18px/1 var(--body); color: var(--red); transition: transform .25s var(--ease-out); }
.addons[open] summary::after { transform: rotate(45deg); }
.addons p { margin: 0; padding: 0 18px 18px; font-size: 15px; color: var(--ink-2); }

/* team page, top down: the top rank as 3D skins on dark stages, a row per lead rank, then the build team all one size */
.owners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px clamp(14px, 2vw, 24px); }
.skin-stage { position: relative; isolation: isolate; container-type: size; height: clamp(460px, 74vh, 700px); overflow: hidden; background: radial-gradient(58% 44% at 50% 56%, #272727, var(--night) 74%); color: #fff; }
.skin-stage canvas { position: absolute; inset: 0; z-index: 1; cursor: grab; opacity: 0; transition: opacity 1.2s ease .2s; }
.skin-stage canvas:active { cursor: grabbing; }
.skin-stage.live canvas { opacity: 1; }
.skin-stage::after { content: ""; position: absolute; left: 50%; bottom: 11%; width: 36%; height: 5%; translate: -50% 0; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); } /* where they stand */
.skin-stage .badge { position: absolute; top: 20px; left: 20px; z-index: 2; }
.owner-letter { position: absolute; left: -.05em; bottom: -.14em; z-index: -1; font: 900 88cqh/.8 var(--display); letter-spacing: -.05em; -webkit-text-fill-color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .16); user-select: none; }
.owner:nth-child(even) .owner-letter { left: auto; right: -.05em; }
.stage-hint { position: absolute; right: 20px; bottom: 18px; z-index: 2; font: 600 12.5px/1.25 var(--body); color: rgba(255, 255, 255, .55); opacity: 0; transition: opacity .8s ease 1s; }
.owner:nth-child(even) .stage-hint { right: auto; left: 20px; }
.skin-stage.live .stage-hint { opacity: 1; }
.stage-pfp { display: none; }
.flat .stage-pfp { display: block; position: absolute; inset: 0; z-index: 1; width: min(56%, 320px); aspect-ratio: 1; margin: auto; object-fit: cover; }
.owner-cap { display: flex; align-items: center; gap: 16px; padding-top: 20px; }
.owner-pfp { flex: none; width: clamp(52px, 5vw, 68px); aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--card); }
.owner-pfp img { width: 100%; height: 100%; object-fit: cover; }
.owner-cap h3 { margin: 0; font: 800 clamp(28px, 3.4vw, 52px)/1 var(--display); letter-spacing: -.04em; overflow-wrap: anywhere; }
:is(.owner-cap, .lead) p, .mate small { display: block; margin: 7px 0 0; font: 600 13px/1.4 var(--body); color: var(--mute); }
:is(.owner-cap, .lead, .mate) a { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--ink); text-decoration: none; transition: color .2s ease; }
:is(.owner-cap, .lead, .mate) a .ico { width: 10px; height: 10px; }

/* a row per lead rank, each row's pictures a size smaller than the row above (--k counts the rows) */
.rank { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(200px, 460px - var(--k) * 120px)), 1fr)); gap: 40px clamp(14px, 2vw, 24px); }
.rank + .rank { margin-top: clamp(56px, 9vh, 96px); }
.lead { min-width: 0; }
.lead-shot, .mate-shot { aspect-ratio: 1; overflow: hidden; background: var(--night-2); }
:is(.lead-shot, .mate-shot) img { width: 100%; height: 100%; object-fit: cover; }
.lead h3 { margin: 18px 0 0; font: 700 clamp(19px, 1.8vw, 26px)/1.1 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.rank:first-of-type h3 { font-size: clamp(26px, 3vw, 44px); }
.lead p { color: rgba(255, 255, 255, .6); }
.lead a { color: #fff; }

.crew { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 36px clamp(14px, 1.6vw, 22px); margin: 0; padding: 0; }
.mate { min-width: 0; }
.mate-shot { background: #e4e1da; }
.mate b { display: block; margin-top: 14px; font: 700 clamp(15px, 1.25vw, 18px)/1.2 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
/* no photo yet: the first letter of their name */
.mono { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; background: var(--night-2); color: var(--red); font: 900 1em/1 var(--display); user-select: none; }
:is(.lead-shot, .mate-shot) .mono { font-size: clamp(48px, 6vw, 96px); }
.owner-pfp .mono { font-size: 26px; }
/* devs and mods: a dark section, one group each */
.staff-group + .staff-group { margin-top: clamp(72px, 12vh, 140px); }
.staff-group[hidden] { display: none; }
.dark .mate-shot { background: var(--night-2); }
.dark .mate small { color: rgba(255, 255, 255, .6); }
.dark .mate a { color: #fff; }
@media (hover: hover) and (pointer: fine) { :is(.owner-cap, .lead, .mate) a:hover { color: var(--red); } }
@media (max-width: 560px) {
  .skin-stage { height: clamp(400px, 118vw, 520px); }
  .crew, .rank + .rank { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .rank + .rank h3 { font-size: 16px; }
}

.ladder { display: grid; gap: 10px; }
.rung { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-left: calc(var(--i) * 6%); padding: 16px 24px 16px 16px; background: var(--night-2); border: 1px solid var(--line-d); }
.rung .badge { width: 52px; height: 52px; }
.rung b { display: block; font: 600 clamp(17px, 1.7vw, 22px)/1.2 var(--display); letter-spacing: -.02em; }
.rung p { margin: 4px 0 0; font-size: 15px; }
.rung .n { font: 700 20px/1 var(--display); color: rgba(255, 255, 255, .22); }
.rung.top { border-color: var(--red); }

.ipbox { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); background: var(--night-2); border: 1px solid var(--line-d); }
.ipbox code { display: block; margin-top: 14px; font: 800 clamp(34px, 5.6vw, 92px)/1 var(--display); letter-spacing: -.045em; }
.ipbox .chips { margin-top: 18px; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.product { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); transition: border-color .2s ease; }
.product .media { aspect-ratio: 16 / 10; overflow: hidden; }
.product .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.product .body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 22px 24px; }
.product h3 { margin: 0; font: 600 18px/1.25 var(--display); letter-spacing: -.02em; }
.product p { margin: 0; font-size: 15px; color: var(--ink-2); }
.product .chip { padding: 6px 8px; font-size: 10px; }
.product .buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.product .price { font: 700 24px/1 var(--display); letter-spacing: -.03em; }
@media (hover: hover) and (pointer: fine) { .product:hover { border-color: var(--ink); } .product:hover .media img { transform: scale(1.05); } }

.empty { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; max-width: 720px; margin: 0 auto; text-align: center; }

.chat { padding: 24px 26px; background: var(--night-2); border: 1px solid var(--line-d); font: 500 14px/1.8 var(--mono); }
.chat .g { color: #58d68d; }
.chat .y { color: #f5c542; }
.code { display: flex; gap: 8px; margin-top: 18px; }
.code span { display: grid; place-items: center; width: clamp(36px, 5vw, 56px); aspect-ratio: 4 / 5; border: 1px solid var(--line-d); background: #0f0f0f; font: 700 clamp(18px, 2.4vw, 28px)/1 var(--display); }

.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.track-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px 28px; background: var(--card); border: 1px solid var(--line); transition: transform .35s var(--ease-out), border-color .2s ease; }
.track-card h3 { margin: 8px 0 0; font: 700 24px/1.1 var(--display); letter-spacing: -.03em; }
.track-card p { margin: 0; color: var(--ink-2); }
.track-card ul { margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); }
.track-card li { position: relative; padding: 10px 0 10px 20px; border-top: 1px solid var(--line); }
.track-card li::before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; background: var(--red); }
.track-card li b { color: var(--ink); font-weight: 600; }
.track-card .btn { margin-top: auto; align-self: flex-start; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font: 600 clamp(16px, 1.35vw, 19px)/1.35 var(--display); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; background: var(--ink); color: var(--paper); font: 500 20px/1 var(--body); transition: transform .25s var(--ease-out), background-color .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--red); }
.faq details p { margin: 0 0 26px; max-width: 62ch; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-foot { padding: clamp(64px, 10vh, 110px) var(--pad) 0; background: var(--night); color: var(--paper); border-top: 1px solid var(--line-d); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px 4vw; padding-bottom: clamp(48px, 8vh, 80px); }
.foot-brand { display: grid; justify-items: start; align-content: start; gap: 20px; }
.foot-brand img { width: 44px; }
.foot-brand p { margin: 0; max-width: 34ch; font-size: 15px; }
.ipchip { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border: 1px solid var(--line-d); font: 500 13px/1 var(--mono); }
.ipchip button { padding: 7px 10px; background: var(--paper); color: var(--ink); font: 600 10px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.foot-grid nav ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.foot-grid nav a { text-decoration: none; font-size: 16px; color: rgba(255, 255, 255, .78); transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .foot-grid nav a:hover { color: #fff; } }
.foot-grid nav a[aria-current] { color: var(--red); }
.legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--line-d); font: 600 12.5px/1.5 var(--body); color: rgba(255, 255, 255, .45); }
.legal span { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal a, .legal button { text-decoration: none; letter-spacing: inherit; text-transform: inherit; }
@media (hover: hover) and (pointer: fine) { .legal a:hover, .legal button:hover { color: var(--red); } }

/* ---------- portfolio: three sections ---------- */
.pgroup + .pgroup { margin-top: clamp(96px, 14vh, 160px); }
.pgroup-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 24px; margin-bottom: clamp(40px, 6vh, 64px); padding-top: 24px; border-top: 1px solid var(--line-d); scroll-margin-top: 40px; }
.pgroup-head .h2 { font-size: clamp(36px, 5.4vw, 84px); }
.pgroup-head p { grid-column: 1; margin: 0; max-width: 52ch; }
.pgroup-count { grid-column: 2; grid-row: 1; font: 600 12.5px/1.25 var(--body); color: rgba(255, 255, 255, .45); white-space: nowrap; }
.pgroup { scroll-margin-top: 40px; }
/* builder filter: a card or a whole section the chosen builder has nothing in */
.card.by-off, .pgroup.by-empty { display: none; }
.byfilter { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1.25 var(--body); color: rgba(255, 255, 255, .62); }
.byfilter select { appearance: none; -webkit-appearance: none; min-height: 42px; padding: 0 38px 0 14px; border: 1px solid var(--line-d); border-radius: 0; color: var(--paper);
  font: 600 14px/1.2 var(--body); cursor: pointer; max-width: 70vw;
  background: var(--night-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f2f0eb' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
.byfilter select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- a build's own page ---------- */
.proj-hero { background: #000; color: #fff; }
.show { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; isolation: isolate; background: #000; }
.show-slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity 1.4s var(--ease-in-out); }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--x) var(--y); }
@media (min-aspect-ratio: 5/4) { .slide.tall img { object-fit: contain; } }
.show-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .2) 42%, transparent 62%), linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 24%); }
.show-top, .show-title, .show-ctrl { position: absolute; left: var(--pad); right: var(--pad); }
.show-top { top: clamp(20px, 4vh, 36px); display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 600 12.5px/1.25 var(--body); }
.show-back, .show-count, .show-btns button { background: var(--night); }
.show-count { font-family: var(--mono); font-weight: 400; }
.show-back { display: inline-flex; align-items: center; gap: 10px; padding: 11px 14px 11px 11px; text-decoration: none; transition: background-color .25s ease; }
.show-back .ico { width: 12px; height: 12px; transition: transform .3s var(--ease-out); }
.show-count { padding: 11px 14px; white-space: nowrap; }
.show-count b { font-weight: 500; color: var(--red); }
.show-title { bottom: calc(clamp(24px, 5vh, 48px) + 100px); max-width: 1000px; }
.show-title .eyebrow { color: rgba(255, 255, 255, .72); }
.show-title .copy-h { margin: 18px 0 0; font-size: clamp(40px, 7.4vw, 128px); }
.show-ctrl { bottom: clamp(24px, 5vh, 48px); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.show-thumbs { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.show-thumbs:empty { display: none; }
.thumb { position: relative; flex: none; width: 96px; height: 60px; overflow: hidden; opacity: .5; transition: opacity .35s ease; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: var(--x) var(--y); }
.thumb i { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }
.thumb.on { opacity: 1; outline: 2px solid #fff; outline-offset: -2px; }
.show-btns { display: flex; flex: none; gap: 6px; }
.show-btns button { display: grid; place-items: center; width: 46px; height: 46px; color: #fff; transition: background-color .25s ease; }
.show-btns .ico { width: 12px; height: 12px; }
#show-play span { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.show.paused #show-play span { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-block: 7px solid transparent; }
.fs { width: 14px; height: 14px; background: linear-gradient(currentColor 0 0) 0 0 / 5px 2px no-repeat, linear-gradient(currentColor 0 0) 0 0 / 2px 5px no-repeat, linear-gradient(currentColor 0 0) 100% 0 / 5px 2px no-repeat, linear-gradient(currentColor 0 0) 100% 0 / 2px 5px no-repeat,
  linear-gradient(currentColor 0 0) 0 100% / 5px 2px no-repeat, linear-gradient(currentColor 0 0) 0 100% / 2px 5px no-repeat, linear-gradient(currentColor 0 0) 100% 100% / 5px 2px no-repeat, linear-gradient(currentColor 0 0) 100% 100% / 2px 5px no-repeat; }
.show:fullscreen .show-top .show-back { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .show-back:hover, .show-btns button:hover { background: var(--red); }
  .show-back:hover .ico { transform: translateX(-3px); }
  .thumb:hover { opacity: 1; }
}

.proj-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 6vw; align-items: start; }
.proj-text > * + * { margin-top: 22px; }
.proj-text p { max-width: 60ch; margin-bottom: 0; font-size: clamp(17px, 1.25vw, 19px); color: var(--ink-2); }
.proj-text .proj-lead { margin-top: 26px; font: 500 clamp(22px, 2.3vw, 34px)/1.3 var(--body); letter-spacing: -.012em; color: var(--ink); }
.proj-text .chips { padding-top: 10px; }
.proj-facts { position: sticky; top: 12vh; padding: 24px 24px 24px; background: var(--ink); color: var(--paper); }
.proj-facts dl { display: grid; gap: 1px; margin: 0 0 24px; background: rgba(255, 255, 255, .12); }
.proj-facts dl > div { display: grid; grid-template-columns: 36% minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px 2px; background: var(--ink); }
.proj-facts dt { font: 600 12px/1.4 var(--body); color: rgba(255, 255, 255, .5); }
.proj-facts dd { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; font-size: 15px; }
.proj-facts dd a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 4px; transition: color .2s ease; }
.proj-facts .ctas { flex-direction: column; align-items: stretch; gap: 12px; }
.proj-facts .btn { justify-content: space-between; white-space: normal; }
.who { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.who img { width: 28px; height: 28px; object-fit: cover; }
.who .mono { width: 28px; height: 28px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .proj-facts dd a:hover { color: var(--red); } }

.proj-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(72px, 11vh, 120px); }
.proj-nav a { display: flex; align-items: center; gap: 18px; padding: 14px; background: var(--night-2); border: 1px solid var(--line-d); text-decoration: none; transition: border-color .25s ease; }
.proj-nav a:last-child { justify-content: flex-end; text-align: right; }
.proj-nav img { flex: none; width: 128px; aspect-ratio: 16 / 10; object-fit: cover; }
.proj-nav span { min-width: 0; }
.proj-nav small { display: flex; align-items: center; gap: 8px; font: 600 12px/1.25 var(--body); color: rgba(255, 255, 255, .5); }
.proj-nav a:last-child small { justify-content: flex-end; }
.proj-nav small .ico { width: 10px; height: 10px; }
.proj-nav b { display: block; margin-top: 9px; font: 700 clamp(18px, 2vw, 28px)/1.1 var(--display); letter-spacing: -.03em; overflow-wrap: break-word; }
@media (hover: hover) and (pointer: fine) { .proj-nav a:hover { border-color: var(--red); } }
@media (max-width: 900px) {
  .proj-body { grid-template-columns: minmax(0, 1fr); }
  .proj-facts { position: static; }
  .pgroup-head { grid-template-columns: minmax(0, 1fr); }
  .pgroup-count { grid-column: 1; grid-row: auto; }
}
@media (max-width: 760px) {
  .show-title { bottom: calc(clamp(24px, 5vh, 48px) + 132px); }
  .show-ctrl { flex-direction: column; align-items: stretch; }
  .show-btns { justify-content: flex-end; }
  .thumb { flex: 1 1 0; width: auto; min-width: 40px; max-width: 80px; height: 46px; }
  .show-what { display: none; }
  .proj-nav { grid-template-columns: minmax(0, 1fr); }
  .proj-nav img { width: 84px; }
}

/* ---------- view transitions: filters, opening a build, page-to-page wipe ---------- */
::view-transition-group(*) { animation-duration: .8s; animation-timing-function: var(--ease-in-out); }
::view-transition-old(shot), ::view-transition-new(shot) { height: 100%; object-fit: cover; }
@view-transition { navigation: auto; types: page; }
html:active-view-transition-type(page)::view-transition-old(root) { animation: vt-old .9s var(--ease-in-out) both; }
html:active-view-transition-type(page)::view-transition-new(root) { animation: vt-new .9s var(--ease-in-out) both; }
/* opening a build: its picture flies into place while the two pages crossfade behind it */
html:active-view-transition-type(open)::view-transition-group(shot) { animation-duration: 1.1s; }
html:active-view-transition-type(open)::view-transition-old(root) { animation: vt-fade .7s var(--ease-in-out) both; }
html:active-view-transition-type(open)::view-transition-new(root) { animation: vt-fade .8s var(--ease-in-out) .3s reverse both; }
@keyframes vt-fade { to { opacity: 0; } }
@keyframes vt-old { to { transform: translateY(-10vh); opacity: .35; } }
@keyframes vt-new { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }

/* ---------- load-in: the first screen waits for the fonts (it's measured from the letters), then fades in ---------- */
.js:not(.ready) :is(.comp-inner, .front, .scatter, .show-title, .show-top, .show-ctrl) { opacity: 0; }
.ready :is(.comp-inner, .front, .scatter, .show-title, .show-top, .show-ctrl) { animation: fade .9s ease backwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(32px); } }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .head, .about, .split-layout, .cat { grid-template-columns: minmax(0, 1fr); }
  .tile { grid-template-columns: 44px minmax(0, 1fr); }
  .tile p, .tile .more { grid-column: 2; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .sticky { position: static; }
  .rung { margin-left: calc(var(--i) * 3%); }
}
@media (max-width: 760px) {
  :root { --rail: 52px; }
  body { font-size: 16px; }
  .rail { --item: min(44px, calc((100svh - 130px) / 12)); }
  .rail-logo { height: 52px; }
  .rail-logo img { width: 26px; }
  .rail-sec { display: none; }
  .rung { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px 14px 12px; }
  .rung .n { display: none; }
  .rung .badge { width: 44px; height: 44px; }
  .steps li { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .cta { padding: 28px 22px; }
  .ui .row > :last-child { display: none; }
  .h2, .cta .h2 { font-size: max(26px, 7.6vw); overflow-wrap: break-word; hyphens: auto; }
  .copy-h { font-size: max(30px, 9vw); }
  .fan-card { --cw: 30cqw; }
  .btn { max-width: 100%; white-space: normal; font-size: 11.5px; }
}

/* portrait heroes (phones, tablets, tall windows) use each letter's portrait placement, smaller so no two overlap */
@container (orientation: portrait) {
  .sl { left: var(--xm, var(--x)); top: var(--ym, var(--y)); }
  .sl { font-size: calc(var(--sm, var(--s)) * min(1cqh, 1.7cqw)); }
  .scatter .sl:nth-child(n + 6), .home .sl:nth-child(4) { display: none; } /* no room for a sixth letter, or for the home N beside the buttons */
  :is(.fx-tilt, .fx-fan) .sl:nth-child(-n + 2) { display: none; } /* their titles sit at the top, where these two would land */
}

/* ---------- order: the guided brief ---------- */
.order-top { padding-bottom: clamp(52px, 8vh, 88px); }
.order-top .h2 { font-size: clamp(40px, 6.5vw, 96px); }
.order-top .lede { max-width: 48ch; margin-top: 22px; }
.order-flag { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 28px; padding: 14px 18px; background: var(--red); color: #fff; font-size: 15px; animation: up .6s var(--ease-out) backwards; }
.order-flag.soft { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.order-flag button { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.steps-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0 0 clamp(30px, 5vh, 54px); padding: 0; }
.steps-bar li { position: relative; display: grid; gap: 10px; font: 600 12.5px/1.25 var(--body); color: var(--mute); transition: color .3s ease; }
.steps-bar li::before { content: ""; height: 3px; background: var(--line); }
.steps-bar li::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.steps-bar li.now::after, .steps-bar li.done::after { transform: none; }
.steps-bar li.now::after { transition-delay: .08s; }
.steps-bar li.now, .steps-bar li.done { color: var(--ink); }
.steps-bar li.reach { cursor: pointer; }
.steps-bar b { font-weight: 500; color: var(--red); }
@media (hover: hover) and (pointer: fine) { .steps-bar li.reach:hover span { color: var(--red); } }

.order-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 5vw; align-items: start; }
.step-panel { display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
.step-panel.on { display: block; }
/* a step comes in from the side you're heading */
.step-panel.on { animation: step-in .8s var(--ease-out) backwards; }
@keyframes step-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 32px)); } }
.step-panel legend { padding: 0; }
.step-h { margin: 14px 0 10px; font: 700 clamp(26px, 3vw, 40px)/1.08 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.step-sub { margin: 0 0 26px; max-width: 54ch; color: var(--ink-2); }
.field-label { display: block; margin: 30px 0 12px; font: 600 12.5px/1.3 var(--body); color: var(--mute); }
.field-label em { margin-left: 6px; font-style: normal; letter-spacing: .06em; text-transform: none; opacity: .7; }
.hint-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.hint-note.rush { color: var(--red); }

.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 10px; }
.opts.tight { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.opt { position: relative; display: grid; justify-items: start; gap: 8px; padding: 20px 18px; background: var(--card); border: 1px solid var(--line); text-align: left; cursor: pointer; transition: box-shadow .2s var(--ease-out), border-color .2s ease; }
.opt.sm { padding: 15px 16px; }
.opt b { font: 600 15px/1.25 var(--display); letter-spacing: -.015em; }
.opt span { font-size: 14px; color: var(--ink-2); }
.opt .ico { width: 22px; height: 22px; color: var(--red); }
.opt[aria-pressed="true"] { border-color: var(--red); box-shadow: 4px 4px 0 var(--red); }
.opt[aria-pressed="true"]::after { content: ""; position: absolute; right: 12px; top: 12px; width: 9px; height: 9px; background: var(--red); }
@media (hover: hover) and (pointer: fine) { .opt[aria-pressed="false"]:hover { border-color: var(--red); } }

.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { display: inline-flex; align-items: center; padding: 11px 15px; background: var(--card); border: 1px solid var(--line); font: 600 12.5px/1.25 var(--body); cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.pick::before { content: ""; width: 0; height: 7px; background: var(--red); transition: width .25s var(--ease-out), margin .25s var(--ease-out); }
.pick[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pick[aria-pressed="true"]::before { width: 7px; margin-right: 9px; }
@media (hover: hover) and (pointer: fine) { .pick:hover { border-color: var(--red); } }

/* sliders: a square thumb on a track that fills red, with a dot for every stop */
.slider { margin-top: 30px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.slider-head .field-label { margin: 0; }
.slider output { font: 700 clamp(16px, 1.6vw, 20px)/1.2 var(--display); letter-spacing: -.02em; }
input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--red) var(--v, 0%), var(--line) var(--v, 0%)); }
input[type=range]::-moz-range-track { height: 6px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; background: var(--red); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; background: var(--ink); border: 3px solid var(--paper); box-shadow: 3px 3px 0 var(--red); transition: transform .2s var(--ease-out); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 3px solid var(--paper); border-radius: 0; background: var(--ink); box-shadow: 3px 3px 0 var(--red); transition: transform .2s var(--ease-out); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18) rotate(45deg); }
input[type=range]:active::-moz-range-thumb { transform: scale(1.18) rotate(45deg); }
input[type=range]:focus-visible { outline-offset: 4px; }
input[type=range]:disabled { opacity: .3; cursor: not-allowed; }
.ticks { position: relative; display: flex; justify-content: space-between; height: 42px; margin: 2px 13px 0; }
.ticks button { display: grid; place-items: center; width: 18px; height: 18px; margin: 0 -9px; }
.ticks button::before { content: ""; width: 6px; height: 6px; background: var(--line); transition: background-color .2s ease, transform .3s var(--ease-out); }
.ticks button.on::before { background: var(--red); }
@media (hover: hover) and (pointer: fine) { .ticks button:hover::before { transform: scale(1.6); } }
.ticks small { position: absolute; top: 22px; font: 500 10px/1.2 var(--mono); letter-spacing: .06em; color: var(--mute); }
.ticks small:first-of-type { left: -13px; }
.ticks small:last-of-type { right: -13px; }
input:disabled + .ticks { opacity: .3; pointer-events: none; }

.size-box { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 4px 28px; align-items: center; margin-top: 22px; padding: 4px 22px 18px; background: var(--card); border: 1px solid var(--line); animation: up .7s var(--ease-out); }
.size-box .slider { margin-top: 18px; }
.size-box .check { grid-column: 1; margin-top: 0; }
.footprint { grid-row: span 2; display: grid; justify-items: center; gap: 10px; padding-top: 16px; text-align: center; font: 500 10px/1.45 var(--mono); letter-spacing: .04em; color: var(--mute); transition: opacity .3s ease; }
.fp-grid { display: grid; place-items: center; width: 120px; aspect-ratio: 1; border: 1px solid var(--line); background: repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px); }
.fp-grid i { width: calc(var(--k, .3) * 100%); aspect-ratio: 1; background: var(--red); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .18), inset 3px 3px 0 rgba(255, 255, 255, .18); transition: width .8s var(--ease-out); }
.size-box:has(#size-unsure:checked) .footprint { opacity: .35; }

.check { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; font-size: 15px; cursor: pointer; }
.check input { appearance: none; display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--ink); background: var(--card); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.check input::after { content: ""; width: 10px; height: 10px; background: #fff; transform: scale(0) rotate(-45deg); transition: transform .25s var(--ease-out); }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { transform: none; }
.check a { color: var(--red); }
.check.agree { margin-top: 26px; }

.field { display: block; margin-top: 18px; }
.field .field-label { margin: 0 0 8px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 0 16px; }
.date-field { max-width: 280px; }
input[type=text], input[type=email], input[type=date], input[type=url], input[type=number], select, textarea { width: 100%; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 0; font: 400 16px/1.5 var(--body); color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 3px 3px 0 var(--red); }

.step-note { min-height: 1.4em; margin: 18px 0 0; font: 600 13.5px/1.5 var(--body); color: var(--red); }
.shake { animation: shake .35s ease; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.step-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.step-nav .btn:disabled { opacity: .3; pointer-events: none; }
.step-count { margin-left: auto; font: 600 12.5px/1.25 var(--body); color: var(--mute); }

.summary { position: sticky; top: 12vh; padding: 24px 24px 22px; background: var(--ink); color: var(--paper); }
.sum-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.summary .eyebrow { margin: 0; color: rgba(255, 255, 255, .6); }
.sum-meter { flex: none; width: 88px; height: 4px; background: rgba(255, 255, 255, .14); }
.sum-meter i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--m, 0)); transition: transform .8s var(--ease-out); }
.summary dl { display: grid; gap: 1px; margin: 0; background: rgba(255, 255, 255, .12); }
.sum-row { display: grid; grid-template-columns: 34% minmax(0, 1fr); gap: 12px; padding: 11px 2px; background: var(--ink); }
.sum-row dt { font: 600 12px/1.4 var(--body); color: rgba(255, 255, 255, .5); }
.sum-row dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.sum-row.sum-none dd { grid-column: 1 / -1; color: rgba(255, 255, 255, .5); }
.flash { animation: flash .7s ease; }
@keyframes flash { from { background: color-mix(in srgb, var(--red) 45%, var(--ink)); } }
.summary-fine { margin: 18px 0 0; font: 600 12.5px/1.6 var(--body); color: rgba(255, 255, 255, .45); }

.sent { position: relative; display: grid; justify-items: center; gap: 18px; max-width: 680px; margin: 0 auto; padding: clamp(36px, 8vh, 86px) 0; text-align: center; }
.sent { animation: up .9s var(--ease-out) backwards; }
.sent .lede { margin: 0; }
.brief-copy { justify-self: stretch; max-height: 260px; overflow: auto; margin: 4px 0; padding: 18px 20px; background: var(--ink); color: rgba(255, 255, 255, .85); border: 1px solid var(--line-d); font: 400 13px/1.7 var(--mono); text-align: left; white-space: pre-wrap; }
.sent-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.tick { width: 68px; height: 68px; }
.tick path { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 46; stroke-dashoffset: 46; animation: draw .8s var(--ease-out) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.link-back { margin-top: 6px; font: 600 12.5px/1.25 var(--body); color: var(--mute); transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .link-back:hover { color: var(--red); } }
@media (max-width: 900px) { .order-grid { grid-template-columns: minmax(0, 1fr); } .summary { position: static; } }
@media (max-width: 560px) {
  .steps-bar span { display: none; }
  .steps-bar li.now span { display: inline; white-space: nowrap; }
  .size-box { grid-template-columns: minmax(0, 1fr); padding-inline: 16px; }
  .footprint { grid-row: auto; grid-template-columns: 72px minmax(0, 1fr); align-items: center; text-align: left; }
  .fp-grid { width: 72px; }
  .step-count { display: none; }
}

html.flying .hint { opacity: 0; transition: opacity .25s ease; }


/* ---------- home: the five shapes as pictures; the one you point at opens up ---------- */
.shapes { display: flex; gap: 10px; height: clamp(460px, 68vh, 660px); }
.shape { position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; overflow: hidden; padding: 20px; background: var(--night); color: #fff; text-decoration: none; transition: flex-grow .9s var(--ease-out); }
.shape.open { flex-grow: 3.6; }
.shape img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.5) brightness(.55); transform: scale(1.14); transition: filter .9s ease, transform 1.6s var(--ease-out); }
.shape.open img { filter: none; transform: none; }
.shape::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .2) 50%, transparent 75%); }
.shape-v, .shape-t { position: absolute; left: 20px; bottom: 22px; transition: opacity .25s ease, transform .5s var(--ease-out); }
.shape-v { writing-mode: vertical-rl; rotate: 180deg; font: 800 clamp(20px, 1.9vw, 30px)/1 var(--display); letter-spacing: -.035em; text-transform: uppercase; white-space: nowrap; }
.shape.open .shape-v { opacity: 0; transform: translateY(12px); }
.shape-t { width: min(380px, 26vw); opacity: 0; transform: translateY(14px); pointer-events: none; }
.shape.open .shape-t { opacity: 1; transform: none; transition-duration: .6s; transition-delay: .3s; }
.shape :is(h2, h3) { margin: 0; font: 800 clamp(26px, 2.8vw, 44px)/.95 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.shape p { max-width: 34ch; margin: 14px 0 0; font-size: 15.5px; color: rgba(255, 255, 255, .8); }
.shape .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font: 600 12.5px/1.25 var(--body); }
.shape .more .ico { width: 12px; height: 12px; color: var(--red); transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .shape:hover .more .ico { transform: translateX(4px); } }
@media (max-width: 900px) {
  .shapes { flex-direction: column; height: auto; }
  .shape { flex: none; height: clamp(240px, 42vw, 320px); }
  .shape img { filter: none; transform: none; }
  .shape-v { display: none; }
  .shape-t, .shape.open .shape-t { width: auto; right: 20px; opacity: 1; transform: none; }
}
/* order: the same five pictures above the brief, as a reference; on smaller screens they swipe sideways instead of stacking */
.shapes-note { max-width: 52ch; margin: clamp(44px, 7vh, 72px) 0 18px; color: rgba(255, 255, 255, .66); }
@media (max-width: 900px) {
  .order-shapes { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
  .order-shapes::-webkit-scrollbar { display: none; }
  .order-shapes .shape { flex: 0 0 min(80%, 340px); height: clamp(300px, 90vw, 380px); scroll-snap-align: start; }
}

/* ---------- home: the reel of recent works ---------- */
.works { padding: 0; }
.reel { position: relative; }
.reel-stage { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 4.5vh, 48px); height: 100vh; height: 100svh; overflow: hidden; padding: clamp(24px, 5vh, 56px) 0; }
.reel-head, .reel-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 0 var(--pad); }
.reel-h { margin: 0; font: 700 clamp(30px, 4.2vw, 68px)/.95 var(--display); letter-spacing: -.04em; }
.reel-h small { display: block; margin-top: 14px; letter-spacing: 0; font: 600 12.5px/1.4 var(--body); color: rgba(255, 255, 255, .6); }
.reel-track { display: flex; align-items: flex-start; gap: clamp(22px, 3vw, 52px); width: max-content; padding: 0 var(--pad); will-change: transform; }
.reel-card { flex: none; }
.reel-card .card-media { height: min(54vh, 600px); aspect-ratio: var(--r); background: #151515; }
.reel .card-media img { width: 112%; max-width: none; margin-left: -6%; }
.reel .card.rv .card-media { clip-path: inset(0 0 0 100%); } /* they wipe in from the side they arrive from */
.reel .card.rv.in .card-media { clip-path: inset(0); }
.reel-cap { display: grid; gap: 7px; padding-top: 18px; }
.reel-cap small { font: 600 12.5px/1.25 var(--body); color: rgba(255, 255, 255, .55); }
.reel-cap b { font: 700 clamp(20px, 2.1vw, 32px)/1.05 var(--display); letter-spacing: -.035em; transition: color .25s ease; }
.reel-cap > span { font-size: 14px; color: rgba(255, 255, 255, .62); }
.reel-end { flex: none; display: flex; flex-direction: column; justify-content: space-between; width: min(34vw, 420px); height: min(54vh, 600px); padding: clamp(24px, 3vw, 40px); background: var(--red); color: #fff; text-decoration: none; font: 800 clamp(28px, 3.2vw, 54px)/.95 var(--display); letter-spacing: -.04em; text-transform: uppercase; transition: background-color .3s ease; }
.reel-end .ico { width: clamp(28px, 3vw, 44px); height: auto; align-self: flex-end; transition: transform .4s var(--ease-out); }
.reel-count { font: 700 15px/1 var(--display); letter-spacing: -.02em; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.reel-count b { color: #fff; font-weight: 700; }
.reel-bar { flex: 1; height: 2px; margin: 0 clamp(16px, 3vw, 40px) 6px; background: var(--line-d); }
.reel-bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }
.reel-foot .hint { color: rgba(255, 255, 255, .7); }
/* the reel's "Keep scrolling" hint sits bottom right, level with the fixed help bubble: stop short of it */
.reel-foot { padding-right: max(var(--pad), 96px); }
@media (hover: hover) and (pointer: fine) {
  .reel-card:hover .reel-cap b { color: var(--red); }
  .reel-end:hover { background: color-mix(in srgb, var(--red) 86%, #000); }
  .reel-end:hover .ico { transform: translateX(6px); }
}
@media (max-width: 900px) {
  .reel-stage { position: static; height: auto; padding: clamp(72px, 12vh, 110px) 0; }
  .reel-track { width: auto; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .reel-track::-webkit-scrollbar { display: none; }
  .reel-card, .reel-end { scroll-snap-align: start; }
  .reel-card .card-media { width: 78vw; height: auto; aspect-ratio: 4 / 5; }
  .reel .card-media img { width: 100%; margin: 0; }
  .reel-end { width: 78vw; height: auto; aspect-ratio: 4 / 5; }
  .reel-head .btn { display: none; }
  .reel-foot .hint { display: none; }
}

/* ---------- FAQ + add-ons open smoothly where the browser can animate to auto ---------- */
:root { interpolate-size: allow-keywords; }
details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease-out), content-visibility .35s allow-discrete; }
details[open]::details-content { height: auto; }
.faq summary { transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: color-mix(in srgb, var(--red) 86%, #000); } }

/* ---------- toast + announcement ---------- */
.toast { position: fixed; left: calc(50% + var(--rail) / 2); bottom: 24px; z-index: 95; max-width: calc(100vw - var(--rail) - 32px); padding: 12px 16px 12px 14px; background: var(--ink); color: var(--paper); border: 1px solid var(--line-d); font: 600 13px/1.4 var(--body); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); translate: -50% 16px; opacity: 0; pointer-events: none; transition: opacity .2s ease, translate .3s var(--ease-out); }
.toast.on { opacity: 1; translate: -50% 0; }
.ann { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: min(460px, calc(100vw - var(--rail) - 32px)); padding: 10px 8px 10px 16px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 4px 4px 0 var(--red); font: 500 14px/1.4 var(--body); animation: ann-in .8s var(--ease-out) 1.2s backwards; transition: opacity .25s ease, translate .3s var(--ease-out); }
.ann a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ann a .ico { width: 10px; height: 10px; color: var(--red); }
.ann-dot { flex: none; width: 8px; height: 8px; background: var(--red); }
.ann button { flex: none; width: 30px; height: 30px; font-size: 20px; line-height: 1; color: var(--mute); }
.ann.gone { opacity: 0; translate: 0 12px; pointer-events: none; }
@keyframes ann-in { from { opacity: 0; translate: 0 20px; } }
/* the cookie choice (assets/consent.js): the announcement's block, bottom left, clear of the help button. Shown only on pages that carry the tag. */
.cc { position: fixed; left: calc(var(--rail) + 16px); bottom: 16px; z-index: 65; width: min(420px, calc(100vw - var(--rail) - 32px)); padding: 18px 20px 20px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 4px 4px 0 var(--red); opacity: 0; translate: 0 12px; transition: opacity .18s ease, translate .18s var(--ease-out); }
.cc.on { opacity: 1; translate: 0 0; }
.cc.cc-top { top: 16px; bottom: auto; translate: 0 -12px; } /* consent.js: a button sits under the bottom-left place */
.cc.cc-top.on { translate: 0 0; }
.cc h2 { margin: 0 36px 6px 0; font: 700 15px/1.25 var(--display); letter-spacing: -.01em; }
.cc p { margin: 0; font: 400 14.5px/1.5 var(--body); color: var(--ink-2); }
.cc p a { color: var(--ink); text-underline-offset: 3px; }
.cc .cc-now { margin-top: 8px; font-weight: 600; color: var(--ink); }
.cc-x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; font-size: 22px; line-height: 1; color: var(--mute); }
.cc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.cc-btns .btn { justify-content: center; min-height: 44px; padding: 6px 12px; } /* the two answers are one button twice: same size, same colour */
@media (max-width: 760px) { .cc { left: calc(var(--rail) + 8px); right: 12px; bottom: 12px; width: auto; } body:has(.hb-fab) .cc { bottom: 84px; } body .cc.cc-top { top: 12px; bottom: auto; }
  body:has(.hb-fab) .legal span { padding-right: 64px; } } /* phones: the footer's last links wrap before the help button instead of sitting under it */

/* ---------- reduced motion: keep fades, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  @keyframes up { from { opacity: 0; } }
  .card.rv .card-media { clip-path: none; opacity: 0; transition: opacity .6s ease; }
  .card.rv.in .card-media { opacity: 1; }
  .cells i { transition: opacity .3s ease; }
  .cells i.gone { transform: none; }
  .step-panel.on, .flash, .shake, .tick path, .sent, .size-box, .order-flag, .hint-note.rush { animation: none; }

  .fx-zoom .reveal-img { animation: none; }
  .shape, .shape img, .shape-t, .shape-v { transition: none; }
  .slide { transition-duration: .4s; }
  .cc, .cc.cc-top { translate: none; transition: opacity .18s ease; }
  .tick path { stroke-dashoffset: 0; }
}

/* Legal pages (terms, refunds, privacy) in the dev's doc layout: the section
   number sits apart from its heading, in the accent. The dev's markup ships
   an empty .toc nav with nothing to fill it, so it takes no space. */
.doc h2 .n { display: inline-block; min-width: 1.6em; margin-right: .35em; color: var(--red); font-variant-numeric: tabular-nums; }
.doc-wrap .toc:empty { display: none; }
