/* DuckyHelper brand book 2.0 ("Lens"). Page grammar after American Forge; tokens from BRIEF.md. */

@font-face {
  font-family: "Inter";
  src: url("/brand/assets/fonts/InterVariable.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/brand/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #000;
  --ink: #F4F4E6;
  --ink-bright: #F4F4E6;
  --ink-dark: #0f0f0f;
  --ink-dim: rgb(244 244 230 / .4);
  --ink-soft: rgb(244 244 230 / .64);
  --hairline: rgb(244 244 230 / .2);
  --accent: #1638FF;
  --accent-text: #4A68FF;
  --glow: #A3B0FF;
  --beak: #F0541E;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --w-page: 1400px;
  --gutter: 84px;
  --gutter-tight: 24px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-p3: cubic-bezier(.215, .61, .355, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); margin: 0; }
body {
  font-family: var(--font);
  font-feature-settings: "ss07", "ss08", "cv05";
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  font-weight: 500;
  overflow-x: hidden;
}
a { color: inherit; }
p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; }
::selection { background: var(--accent); color: #fff; }

.eyebrow { color: var(--accent-text); white-space: nowrap; }
.eyebrow::after { content: " /"; content: " /" / ""; color: var(--ink-dim); font-weight: 500; }
.nobr { white-space: nowrap; }

/* Pill button */
.button {
  background: var(--ink-bright); color: var(--ink-dark);
  letter-spacing: -.01em; white-space: nowrap; border-radius: 100px;
  justify-content: center; align-items: center; display: inline-flex;
  padding: 17px 24px 16px; font-size: 16px; line-height: 1; text-decoration: none;
  transition: background-color .12s ease-out, color .12s ease-out, scale .15s ease-out;
}
.button:hover, .button:focus-visible { background: var(--accent); color: #fff; scale: 1.04; }
.button:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

/* Mono caption: two short lines, label then value */
.cap {
  font-family: var(--mono); font-size: 11px; line-height: 1.3; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-dim); font-weight: 500;
  display: flex; flex-direction: column; gap: 4px; font-feature-settings: normal;
}
.cap > span:first-child { color: var(--ink); }
.tab {
  font-family: var(--mono); font-size: 10px; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: rgb(0 0 0 / .8); border: 1px solid var(--hairline);
  padding: 5px 6px 4px; white-space: nowrap; font-weight: 500; font-feature-settings: normal;
}

/* ---------- Reveal + motion (numbers from Forge) ---------- */
html:not(.no-js) .reveal { opacity: 0; }
html:not(.no-js) :is(.strip, .nav .button, .hero-copy__title .w, .art--hero),
html:not(.no-js) .hero-copy__title .eyebrow::after {
  opacity: 0;
  transition: opacity .9s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s),
              background-color .12s ease-out, color .12s ease-out, scale .15s ease-out;
}
html:not(.no-js) body:not(.is-loaded) .hero-copy__title { visibility: hidden; }
.nav .button { --d: .15s; transform: translateY(12px); }
.hero-copy__title .w, .hero-copy__title .eyebrow::after { display: inline-block; transform: translateY(.35em); }
/* an inline-block ::after would drop the leading space of " /" */
.hero-copy__title .eyebrow::after, .dw .eyebrow::after { white-space: pre; }
.art--hero { transition-duration: 1.2s; transform: translateY(48px); }
html:not(.no-js) body.is-loaded :is(.strip, .nav .button, .hero-copy__title .w, .art--hero),
html:not(.no-js) body.is-loaded .hero-copy__title .eyebrow::after { opacity: 1; transform: none; }

/* split paragraphs: words carry their line's delay, so each line rises as one */
.split .wd { display: inline-block; opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease-p3) var(--ld, 0s), transform 1s var(--ease-p3) var(--ld, 0s); }
.split.is-in .wd { opacity: 1; transform: none; }
/* blocks: fade up 40 px */
.reveal.rise { opacity: 0; transform: translateY(40px);
  transition: opacity 1s var(--ease-p3) var(--d, 0s), transform 1s var(--ease-p3) var(--d, 0s); }
.reveal.rise.is-in { opacity: 1; transform: none; }
.reveal.rise.is-done { transform: none; transition: none; }

@keyframes fade-out { to { opacity: 0; } }
@supports (animation-timeline: view()) {
  .body p, p.body {
    animation: fade-out linear both;
    animation-timeline: view(10vh 45vh);
    animation-range: entry 100% exit;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .strip, .nav .button, .hero-copy__title .w, .hero-copy__title .eyebrow::after, .art--hero,
  .split .wd, .reveal.rise { opacity: 1 !important; transition: none !important; transform: none !important; }
  .body p, p.body { animation: none; }
  html:not(.no-js) body:not(.is-loaded) .hero-copy__title { visibility: visible; }
  .dots i:nth-child(5) { opacity: 1; }
}

/* ---------- Art panels ---------- */
.art { background: var(--bg); touch-action: pan-y; position: relative; overflow: hidden; }
.art canvas { width: 100%; height: 100%; display: block; }
.art--hero { aspect-ratio: 16 / 9; width: 100%; }
.art--square { aspect-ratio: 1; flex: 1 1 0; min-width: 0; }
.art--break { aspect-ratio: 2000 / 1132; width: 100%; }

/* ---------- Top strip + nav ---------- */
.strip {
  border-bottom: 1px solid var(--hairline); height: 48px;
  display: flex; justify-content: center; align-items: center; gap: 8px;
}
.strip__mark { width: 16px; height: 16px; }
.strip__text { color: var(--ink); letter-spacing: -.01em; font-size: 12px; font-weight: 500; }

.nav {
  position: sticky; top: var(--gutter-tight); z-index: 10; margin-top: 84px;
  display: flex; justify-content: flex-end; padding: 0 var(--gutter); pointer-events: none;
  transition: opacity .5s var(--ease-out), visibility 0s 0s;
}
.nav .button { pointer-events: auto; }
.nav.is-hidden { opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility 0s .5s; }

/* ---------- Landing ---------- */
.landing { display: flex; flex-direction: column; gap: 84px; padding-top: 84px; }
.hero-copy { min-height: 30vh; padding: 0 var(--gutter); display: flex; justify-content: center; align-items: center; }
.hero-copy__title {
  max-width: 20em; color: var(--ink); font-size: 48px; font-weight: inherit;
  letter-spacing: -.02em; text-wrap: balance; margin: 0; line-height: 1.1;
}

/* ---------- Editorial ---------- */
.intro, .kit { display: flex; justify-content: center; padding: 96px 83px 160px; }
.kit { flex-direction: column; align-items: center; padding-top: 160px; padding-bottom: 48px; border-bottom: 1px solid var(--hairline); }
.intro__column, .kit__column {
  display: flex; flex-direction: column; align-items: flex-start; gap: 60px;
  width: 607px; max-width: 100%; padding: 32px 0;
}
.intro__body, .kit__body, .row__body { letter-spacing: -.0125em; font-size: 30px; line-height: 1.4; }
.intro__body p + p, .kit__body > * + p { margin-top: 24px; }
.kit__logo { align-self: center; width: min(1232px, 100% + 118px); height: auto; margin: 248px 0 0; }

.rows { display: flex; flex-direction: column; }
.row {
  width: 100%; max-width: var(--w-page); margin: 0 auto; padding: 160px var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
}
.row--centered { justify-content: center; padding-top: 96px; }
.row:has(.art--square) { padding-right: var(--gutter-tight); }
.row--art-first:has(.art--square) { padding-left: var(--gutter-tight); padding-right: var(--gutter); }
.row__text { display: flex; flex-direction: column; gap: 40px; width: 517px; max-width: 100%; }
.row__text--wide { width: 608px; }

/* ---------- System ---------- */
.system { display: flex; flex-direction: column; }
.row--system { padding-top: 160px; padding-bottom: 64px; }

.spec { width: 100%; max-width: var(--w-page); margin: 0 auto; padding: 96px 0 64px; }
.rule {
  margin: 0 var(--gutter-tight); border-top: 1px solid var(--hairline); padding-top: 12px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim);
  font-feature-settings: normal;
}
.spec__row {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  padding: 96px var(--gutter-tight) 0 var(--gutter);
}
.spec__row--art-first { padding: 96px var(--gutter) 0 var(--gutter-tight); }
.spec__lede { padding: 96px var(--gutter) 0; display: flex; }

.plate { position: relative; container-type: inline-size; }
.plate--square { aspect-ratio: 1; flex: 1 1 0; min-width: 0; }

/* annotation handles (the Lens frame corners) */
.h { position: absolute; width: 6px; height: 6px; background: var(--ink); }
.h--tl { left: -3px; top: -3px; } .h--tr { right: -3px; top: -3px; }
.h--bl { left: -3px; bottom: -3px; } .h--br { right: -3px; bottom: -3px; }

/* Mark plate */
.mk { position: absolute; inset: 0; display: grid; place-items: center; }
.mk__space { position: relative; width: 54cqw; aspect-ratio: 1; border: 1px solid rgb(244 244 230 / .32); display: grid; place-items: center; }
.mk__tile { width: 36cqw; height: 36cqw; }
.mk__tab { position: absolute; left: -1px; bottom: calc(100% + 10px); }
.mk__dim { position: absolute; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--ink-dim); font-feature-settings: normal; }
.mk__dim b { font-weight: 500; }
.mk__dim--x { right: 0; top: 50%; width: 9cqw; height: 1px; background: var(--glow); }
.mk__dim--x::before, .mk__dim--x::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--glow); }
.mk__dim--x::before { left: 0; } .mk__dim--x::after { right: 0; }
.mk__dim--x b { position: absolute; left: 50%; top: 8px; translate: -50% 0; color: var(--glow); }
.mk__dim--t { left: 9cqw; right: 9cqw; bottom: 3.6cqw; height: 1px; background: var(--ink-dim); }
.mk__dim--t::before, .mk__dim--t::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--ink-dim); }
.mk__dim--t::before { left: 0; } .mk__dim--t::after { right: 0; }
.mk__dim--t b { position: absolute; left: 50%; top: -6px; translate: -50% 0; background: var(--bg); padding: 0 6px; }
.mk__rim { position: absolute; top: 58%; left: -23cqw; width: 32cqw; height: 1px; background: var(--ink-soft); }
.mk__rim::after { content: ""; position: absolute; right: -2.5px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.mk__rim .tab { position: absolute; left: 0; bottom: 8px; }
.mk__mins { position: absolute; left: 0; bottom: 0; display: flex; align-items: flex-end; gap: 28px; }
.mk__mins > span { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mk__mins em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); font-feature-settings: normal; }

/* Lockup plate */
.lk { position: absolute; inset: 0; display: grid; place-items: center; }
.lk__space { position: relative; width: 62cqw; padding: 7.2cqw; border: 1px solid rgb(244 244 230 / .32); }
.lk__img { width: 100%; height: auto; }
.lk__tab { position: absolute; left: -1px; bottom: calc(100% + 10px); }

.duo { display: grid; grid-template-columns: 1fr 1fr; margin: 96px var(--gutter-tight) 0; border-top: 1px solid var(--hairline); }
.duo__cell { display: flex; flex-direction: column; gap: 24px; padding: 24px 24px 0 0; }
.duo__cell + .duo__cell { border-left: 1px solid var(--hairline); padding-left: 24px; }
.duo__stage { height: 320px; display: grid; place-items: center; }
.duo__h { width: min(440px, 80%); height: auto; }
.duo__w { width: min(400px, 76%); height: auto; }

/* Colour */
.swatches { display: flex; margin: 96px var(--gutter-tight) 0; height: 460px; }
.sw {
  flex: var(--f, 1) 1 0; min-width: 0; padding: 22px 20px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 22px; letter-spacing: -.01em; line-height: 1.2;
}
.sw b { font-weight: 500; }
.sw__meta { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11px; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; font-feature-settings: normal; }
.sw__meta code { font-family: inherit; font-size: 13px; letter-spacing: .02em; }
.sw--black { --f: 2.1; background: #000; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.sw--black .sw__meta span { color: var(--ink-dim); }
.sw--cream { --f: 1.6; background: #F4F4E6; color: #000; }
.sw--blue { --f: 1.6; background: #1638FF; color: #fff; }
.sw--signal { --f: 1.05; background: #4A68FF; color: #000; }
.sw--peri { --f: 1.05; background: #A3B0FF; color: #000; }
.sw--beak { --f: .42; background: #F0541E; color: #000; padding-left: 14px; padding-right: 12px; }
.sw :is(.sw__meta span) { opacity: .78; }

.contrast { display: grid; grid-template-columns: repeat(3, 1fr); margin: 48px var(--gutter-tight) 0; border-top: 1px solid var(--hairline); }
.contrast__cell { display: flex; align-items: flex-end; gap: 20px; padding: 24px 24px 0 0; }
.contrast__cell + .contrast__cell { border-left: 1px solid var(--hairline); padding-left: 24px; }
.contrast__aa { font-size: 64px; line-height: .8; letter-spacing: -.03em; }
.contrast__aa--signal { color: var(--accent-text); }
.contrast__aa--blue { color: var(--accent); }
.contrast__aa--white { background: var(--accent); color: #fff; padding: 10px 12px 12px; line-height: .8; }
.contrast__aa--white i { font-style: normal; }

/* Type */
.specimen { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 32px; margin: 96px var(--gutter-tight) 0; padding: 0 0 32px; }
.specimen__big { font-size: clamp(160px, 26vw, 360px); line-height: .78; letter-spacing: -.045em; margin-left: -.04em; color: var(--ink); }
.specimen__sets { display: flex; flex-direction: column; gap: 28px; padding-bottom: 6px; }
.specimen__set { font-size: 22px; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.specimen__set--mono { font-family: var(--mono); font-size: 15px; letter-spacing: .04em; line-height: 1.55; color: var(--ink-soft); font-feature-settings: normal; }
.scale { margin: 32px var(--gutter-tight) 0; }
.scale__row { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: baseline; border-top: 1px solid var(--hairline); padding: 28px 0; }
.scale__s { color: var(--ink); }
.scale__s--hero { font-size: 48px; line-height: 1.1; letter-spacing: -.02em; }
.scale__s--body { font-size: 30px; line-height: 1.4; letter-spacing: -.0125em; max-width: 20em; }
.scale__s--strip { font-size: 12px; letter-spacing: -.01em; }
.scale__s--label { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-feature-settings: normal; }
.scale__s--foot { font-size: 16px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }

/* Cells (components + motion) */
.cells { display: grid; grid-template-columns: repeat(4, 1fr); margin: 96px var(--gutter-tight) 0; border-top: 1px solid var(--hairline); }
.cell { display: flex; flex-direction: column; gap: 20px; padding: 0 24px 0 0; }
.cell + .cell { border-left: 1px solid var(--hairline); padding-left: 24px; }
.cell__stage { height: 300px; display: grid; place-items: center; position: relative; }
.comp__eyebrow { font-size: 30px; letter-spacing: -.0125em; }

.frame { position: relative; width: 150px; height: 150px; border: 1px solid rgb(255 255 255 / .5); }
.frame .h { background: #fff; }
/* the Lens window: chunky square cells that keep the picture's own colours */
.frame__dots {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 64% 42%, #F4F4E6 0 10%, #A3B0FF 22%, #1638FF 42%, #0C24A3 58%, #000 78%);
  -webkit-mask-image: linear-gradient(90deg, #000 0 72%, transparent 72%), linear-gradient(#000 0 72%, transparent 72%);
          mask-image: linear-gradient(90deg, #000 0 72%, transparent 72%), linear-gradient(#000 0 72%, transparent 72%);
  -webkit-mask-size: 8px 8px; mask-size: 8px 8px;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  transition: -webkit-mask-size .5s var(--ease-out), mask-size .5s var(--ease-out);
}
.cell:hover .frame__dots { -webkit-mask-size: 9px 9px; mask-size: 9px 9px; }

.track { position: relative; width: 200px; height: 140px; }
.track__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.track__line line { stroke: var(--ink-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.track__box { position: absolute; border: 1px solid var(--ink); }
.track__box--a { left: 8px; top: 18px; width: 100px; height: 52px; }
.track__box--b { left: 120px; top: 84px; width: 60px; height: 40px; }
.track__box .tab { position: absolute; left: -1px; bottom: calc(100% + 4px); }
.track__box--b .tab { bottom: auto; top: calc(100% + 4px); }
.track__dot { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--ink); }

/* Motion demos */
.demo { cursor: pointer; outline: none; }
.demo:focus-visible .cell__stage { outline: 1px solid var(--glow); outline-offset: -1px; }
.dw { font-size: 26px; letter-spacing: -.0125em; line-height: 1.2; text-align: left; }
.dw .w, .dw .eyebrow::after { display: inline-block; }
.demo.is-armed .dw .w, .demo.is-armed .dw .eyebrow::after { opacity: 0; transform: translateY(.35em); }
.demo.is-playing .dw .w, .demo.is-playing .dw .eyebrow::after {
  opacity: 1; transform: none; transition: opacity .9s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s);
}
.dl { font-size: 22px; line-height: 1.35; letter-spacing: -.01em; }
.dl__l { display: block; }
.demo.is-armed .dl__l { opacity: 0; transform: translateY(40px); }
.demo.is-playing .dl__l { opacity: 1; transform: none; transition: opacity 1s var(--ease-p3) var(--d, 0s), transform 1s var(--ease-p3) var(--d, 0s); }
.dl__l:nth-child(2) { --d: .08s; } .dl__l:nth-child(3) { --d: .16s; }

.dots { --pitch: 28px; display: grid; grid-template-columns: repeat(3, var(--pitch)); grid-auto-rows: var(--pitch); }
.dots i { display: block; margin: auto; width: calc(var(--pitch) * .44); height: calc(var(--pitch) * .44); border-radius: 50%; background: var(--glow); opacity: .18; }
.demo.is-on .dots i { animation: ripple 2.6s linear infinite; animation-delay: calc(var(--r) * 140ms); }
@keyframes ripple {
  0% { opacity: .18; transform: scale(1); }
  9% { opacity: 1; transform: scale(1.22); }
  30% { opacity: .18; transform: scale(1); }
  100% { opacity: .18; transform: scale(1); }
}

.ease { width: 200px; height: 200px; overflow: visible; }
.ease__grid { fill: none; stroke: var(--hairline); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ease__arm { fill: none; stroke: var(--glow); stroke-width: 1; opacity: .7; vector-effect: non-scaling-stroke; }
.ease__h { fill: var(--bg); stroke: var(--glow); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ease__curve { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ease__dot { fill: var(--accent); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* Pictures */
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 96px var(--gutter-tight) 0; }
.layer { display: flex; flex-direction: column; gap: 16px; }
.layer__img { aspect-ratio: 1; background: #000 center / cover no-repeat; position: relative; overflow: hidden; }
.layer__img img { width: 100%; height: 100%; object-fit: cover; }
/* Duckrise sits left of centre in its 16:9 plate: keep the head, eye and beak in the square */
[data-layer="front"] .layer__img img { object-position: 4% 50%; }
.layer__img--back:not(.has-img) {
  background-color: #000;
  background-image:
    linear-gradient(rgb(244 244 230 / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(244 244 230 / .07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.layer__img--front:not(.has-img) {
  background:
    radial-gradient(60% 45% at 62% 46%, rgb(163 176 255 / .9), rgb(22 56 255 / .55) 45%, transparent 75%),
    radial-gradient(40% 30% at 30% 70%, rgb(22 56 255 / .5), transparent 70%), #000;
}
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 64px var(--gutter-tight) 0; }
.dodont__head { font-size: 22px; letter-spacing: -.01em; padding-bottom: 16px; }
.dodont__col--dont .eyebrow { color: var(--ink); }
.dodont li { border-top: 1px solid var(--hairline); padding: 14px 0 13px; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; }
.dodont__col--dont li { color: var(--ink-soft); }

/* Voice */
.lines, .never { margin: 96px var(--gutter-tight) 0; }
.never { margin-top: 64px; }
.lines__label { padding-bottom: 20px; }
.lines__row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-top: 1px solid var(--hairline); padding: 22px 0 24px; }
.lines__row p { font-size: 48px; line-height: 1.1; letter-spacing: -.02em; }
.lines__row .cap { flex: none; }
.never__words { border-top: 1px solid var(--hairline); padding: 22px 0; font-size: 30px; line-height: 1.5; letter-spacing: -.0125em; color: var(--ink-dim); display: flex; flex-wrap: wrap; column-gap: 36px; }
.never__words s { text-decoration-thickness: 1px; text-decoration-color: var(--ink-soft); }
.never__note { border-top: 1px solid var(--hairline); padding-top: 16px; }

/* Applications */
.apps { margin: 96px var(--gutter-tight) 0; display: flex; flex-direction: column; gap: 48px; container-type: inline-size; }
.apps__row { display: flex; gap: 24px; align-items: flex-start; }
.app { flex: var(--ar) 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.app__frame { aspect-ratio: var(--ar); border: 1px solid var(--hairline); position: relative; overflow: hidden; display: grid; place-items: center; }
.app__frame img, .app__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app__frame.has-media { border-color: transparent; }
.app__ph { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); display: flex; flex-direction: column; align-items: center; gap: 12px; font-feature-settings: normal; }
.app__ph::before {
  content: ""; width: 26px; height: 26px; opacity: .55;
  background-image: radial-gradient(circle, var(--glow) 0 2.3px, transparent 2.8px);
  background-size: 9.33px 9.33px;
}

/* ---------- Footer ---------- */
.footer {
  height: 72px; color: var(--ink); letter-spacing: .01em; text-transform: uppercase; text-align: center; text-wrap: balance;
  display: flex; justify-content: center; align-items: center; font-size: 16px; line-height: 1;
}

/* ---------- Mobile (Forge's 1000 px break) ---------- */
@media (width <= 1000px) {
  :root { --gutter: 24px; }
  .nav { margin-top: 48px; }
  .landing { gap: 48px; padding-top: 48px; }
  .hero-copy__title { font-size: 36px; line-height: 1.1; }
  .intro, .kit { padding: 64px var(--gutter) 96px; }
  .kit { padding-top: 96px; padding-bottom: 48px; }
  .kit__logo { width: min(1232px, 100%); margin: 280px 0 0; }
  .intro__column, .kit__column { gap: 40px; padding: 0; }
  .intro__body, .kit__body, .row__body { font-size: 22px; }
  .row, .row--centered { padding: 96px var(--gutter); flex-direction: column; align-items: flex-start; gap: 40px; }
  .row--art-first { flex-direction: column-reverse; }
  .row__text, .row__text--wide { width: 100%; }
  .art--square { flex: none; width: 100%; }
  .row--system { padding-bottom: 32px; }

  .spec { padding: 64px 0 32px; }
  .spec__row, .spec__row--art-first { padding: 64px var(--gutter) 0; flex-direction: column; align-items: flex-start; gap: 40px; }
  .spec__row--art-first { flex-direction: column-reverse; }
  .spec__lede { padding: 64px var(--gutter) 0; }
  .plate--square { flex: none; width: 100%; }
  .mk__mins { gap: 18px; }
  .mk__rim .tab { white-space: normal; width: 21cqw; line-height: 1.25; }
  .duo { grid-template-columns: 1fr; margin-top: 64px; }
  .duo__cell + .duo__cell { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); margin-top: 24px; }
  .duo__stage { height: 200px; }

  .swatches { flex-wrap: wrap; height: auto; margin-top: 64px; }
  .sw { flex: 1 1 50%; height: 200px; font-size: 20px; }
  .sw--beak { flex-basis: 100%; height: 96px; flex-direction: row; align-items: flex-start; padding: 16px 20px; }
  .sw--beak .sw__meta { align-items: flex-end; text-align: right; }
  .contrast { grid-template-columns: 1fr; margin-top: 32px; }
  .contrast__cell { padding: 20px 0; }
  .contrast__cell + .contrast__cell { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); }
  .contrast__aa { font-size: 48px; }

  .specimen { grid-template-columns: 1fr; margin-top: 64px; }
  .specimen__big { font-size: 200px; }
  .specimen__set { font-size: 17px; }
  .specimen__set--mono { font-size: 12px; }
  .scale__row { grid-template-columns: 1fr; gap: 14px; padding: 20px 0 24px; }
  .scale__s--hero { font-size: 36px; }
  .scale__s--body { font-size: 22px; }

  .cells { grid-template-columns: 1fr 1fr; margin-top: 64px; }
  .cell { padding: 0 12px 24px 0; }
  .cell + .cell { padding-left: 12px; }
  .cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .cell:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .cell__stage { height: 200px; }
  .comp__eyebrow, .dw { font-size: 22px; }
  .dl { font-size: 16px; }
  .frame { width: 110px; height: 110px; }
  .track { transform: scale(.78); }
  .ease { width: 130px; height: 130px; }

  .layers { margin-top: 64px; gap: 16px; }
  .dodont { grid-template-columns: 1fr; gap: 40px; }
  .dodont li, .dodont__head { font-size: 18px; }

  .lines { margin-top: 64px; }
  .lines__row { flex-direction: column; gap: 10px; padding: 18px 0 20px; }
  .lines__row p { font-size: 30px; }
  .never__words { font-size: 22px; column-gap: 22px; }

  .apps { margin-top: 64px; gap: 32px; }
  .apps__row { gap: 16px; }
}
@media (width >= 768px) and (width <= 1000px) {
  .intro__body, .kit__body, .row__body { font-size: 26px; }
}
@media (width <= 560px) {
  .layers { grid-template-columns: 1fr; }
  .apps__row { flex-direction: column; gap: 32px; }
  .app { flex: none; width: 100%; }
  .app[style*="--ar: .5625"], .app[style*="--ar: .6667"], .app[style*="--ar: .8"] { width: 72%; }
  .cells { grid-template-columns: 1fr; }
  .cell, .cell + .cell { border-left: 0; padding: 0 0 24px; }
  .cell + .cell { border-top: 1px solid var(--hairline); }
  .cell:nth-child(3) { padding-left: 0; }
  .mk__mins { gap: 14px; }
  .mk__mins em { font-size: 9px; }
}

/* ---------- 10 On X (SITEXFILMS 10-27): the films we post on X as X studio-kit cards (the frame over a black bar
   with the wordmark, the day it posts and the mono-white mark), then four of our X photo sets in the studio look ---- */
.xs-link { color: var(--accent-text); text-decoration: none; }
.xs-link:hover { text-decoration: underline; }
.xs-films { margin: 96px var(--gutter-tight) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.xs-film { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.xs-card { --xb-h: 34px; display: block; width: 100%; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--hairline); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.xs-film:not(.is-playing) .xs-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgb(244 244 230 / .32), 0 24px 48px -24px rgb(22 56 255 / .45); }
.xs-hit { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.xs-hit:focus-visible { outline: 2px solid var(--glow); outline-offset: -2px; }
.xs-film.is-playing .xs-hit { display: none; }
.xs-face { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1020; }
.xs-face img, .xs-face video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xs-face[data-wide="false"] img, .xs-face[data-wide="false"] video { object-fit: contain; }
.xs-face::after { content: ""; z-index: 1; pointer-events: none; position: absolute; left: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2.5v7l5.5-3.5z' fill='%23000'/%3E%3C/svg%3E") center / 12px no-repeat; transition: opacity .3s; }
.xs-film.is-playing .xs-face::after { opacity: 0; }
.xs-bar { display: flex; align-items: center; justify-content: space-between; height: var(--xb-h); padding: 0 calc(var(--xb-h) * .34); background: #000; }
.xs-word { display: block; width: auto; height: calc(var(--xb-h) * .4); }
.xs-right { display: flex; align-items: center; gap: calc(var(--xb-h) * .3); }
.xs-tag { font-family: var(--mono); font-size: 10px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .62); white-space: nowrap; font-feature-settings: normal; }
.xs-mark { display: block; width: calc(var(--xb-h) * .5); height: calc(var(--xb-h) * .5); }
.xs-film .cap span:first-child { text-transform: none; letter-spacing: -.005em; font-family: var(--font); font-size: 15px; line-height: 1.35; }
.xs-more { margin: 40px var(--gutter-tight) 0; }
.xs-more a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.xs-more a:hover { border-color: var(--ink); }
.xs-sets { margin: 120px var(--gutter-tight) 0; display: flex; flex-direction: column; gap: 72px; }
.xs-set { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.xs-set__imgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1040px; }
.xs-set__imgs img { display: block; width: 100%; height: auto; aspect-ratio: 1448 / 2048; object-fit: cover; border-radius: 6px; background: #0b1020; }
@media (width <= 1000px) {
  .xs-films { margin-top: 64px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
  .xs-sets { margin-top: 80px; gap: 56px; }
}
@media (width <= 560px) {
  .xs-films { grid-template-columns: 1fr; }
  .xs-card { --xb-h: 30px; }
  .xs-set__imgs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .xs-card { transition: none; }
}
