/* HiNode, tokens and slice styles. See DESIGN.md for the system. */

@font-face {
  font-family: "Funnel Sans";
  src: url("../assets/fonts/FunnelSans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/GeistMono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --canvas: #0a130e;
  --ink: #ffffff;
  --accent: #4c815f;
  --accent-hi: #82a78f;
  --accent-lo: #2b4a37;
  --surface-1: #0f1a14;
  --surface-2: #14221a;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .16);
  --text-muted: rgba(255, 255, 255, .64);
  --text-faint: rgba(255, 255, 255, .42);
  --radius-card: 12px;
  --radius-pill: 9999px;
  --space: 4px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --logo-h: 88px;
  --section-gap: clamp(96px, 14vw, 192px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-ui: 240ms;
  --dur-reveal: 700ms;

  --font-sans: "Funnel Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* type scale */
  --t-label: 13px;
  --t-small: 15px;
  --t-body: 17px;
  --t-lead: clamp(18px, 1.6vw, 21px);
  --t-h3: clamp(24px, 2.4vw, 30px);
  --t-h2: clamp(34px, 4.4vw, 56px);
  --t-hero: clamp(40px, min(6.2vw, 9svh), 88px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  color-scheme: dark;
  /* anchors and keyboard focus land below the sticky header */
  scroll-padding-top: calc(var(--header-h) + 16px);
}
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--canvas); text-decoration: none; font-size: var(--t-small);
}
.skip:focus-visible { top: 12px; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  border-radius: var(--radius-pill);
  font: 500 var(--t-small)/1 var(--font-sans);
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 300ms var(--ease-out),
    border-color 300ms var(--ease-out),
    color 300ms var(--ease-out),
    transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--canvas); }
.btn-quiet {
  height: 36px; padding: 0 16px;
  border: 1px solid var(--line-strong); color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #dfe7e2; }
  .btn-quiet:hover { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .04); }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  background: rgba(10, 19, 14, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.site-header.is-scrolled { background: rgba(10, 19, 14, .97); border-bottom-color: var(--line); }
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: block; border-radius: 4px; }
.brand img { width: 112px; height: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  /* one header-height taller than the screen: the logo slot starts just below
     the fold, so the bar docks to the viewport bottom until the slot arrives */
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: clamp(20px, 6svh, 72px);
}
.hero-copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  pointer-events: none;
}
.hero-copy a, .hero-copy h1, .hero-copy p { pointer-events: auto; }
.hero-title {
  font-size: var(--t-hero);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 11em;
  text-wrap: balance;
}
.hero-sub {
  margin-top: clamp(12px, min(2vw, 2.4svh), 24px);
  font-size: var(--t-lead);
  color: var(--text-muted);
  max-width: 44ch;
  text-wrap: balance;
}
.hero-actions { margin-top: clamp(18px, min(3vw, 3.6svh), 36px); display: flex; gap: 12px; }

/* ---------- stage (3D frames) ---------- */
.stage {
  position: relative; margin: 0;
  border-radius: var(--radius-card);
  outline-offset: 4px;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.stage-canvas, .stage-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.stage-poster { object-fit: cover; border-radius: inherit; }
.stage.is-static .stage-canvas { visibility: hidden; }
.stage-bloom {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(52% 58% at 50% 56%, rgba(76, 129, 95, .16), rgba(76, 129, 95, 0) 72%);
}
.stage-canvas { opacity: 0; transition: opacity var(--dur-reveal) var(--ease-out); }
.stage.is-live .stage-canvas { opacity: 1; }
.stage.is-draggable { cursor: grab; }
.stage.is-dragging { cursor: grabbing; }

.stage-tip {
  position: absolute; left: 0; top: 0; z-index: 2;
  pointer-events: none;
  padding: 5px 9px 4px;
  border-radius: 6px;
  background: rgba(10, 19, 14, .9);
  border: 1px solid var(--line-strong);
  font: 400 11px/1.2 var(--font-mono);
  letter-spacing: .02em;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) translate(-50%, calc(-100% - 10px)) scale(.97);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.stage-tip.is-on {
  opacity: 1;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) translate(-50%, calc(-100% - 10px));
}

.stage-step {
  position: absolute; left: 20px; bottom: 16px; z-index: 2;
  font: 400 11px/1.2 var(--font-mono);
  letter-spacing: .02em;
  color: var(--text-muted);
  pointer-events: none;
  display: flex; gap: 10px; align-items: baseline;
}
.stage-step b { font-weight: 400; color: var(--accent-hi); }
.stage-step .is-paused { color: var(--text-faint); }

/* the hero piece fills the whole first screen behind the copy, down to the logo
   slot; its main structure sits below the copy, above the docked bar */
.stage-hero {
  position: absolute; z-index: 1;
  left: 0; right: 0; top: 0;
  bottom: var(--logo-h);
  border-radius: 0;
  outline-offset: -6px;
}
/* the floor dissolves just before the logo bar instead of ending on a hard edge;
   the frame bases sit above the fade and the labels below them stay crisp */
.stage-hero .stage-canvas, .stage-hero .stage-poster {
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent);
}
.stage-hero .stage-tip { display: none; }
/* the piece runs one header height under the docked logo bar, so its focus ring
   is drawn inset to the part you can see */
.stage-hero:focus-visible { outline: none; }
.stage-hero:focus-visible::after {
  content: ""; position: absolute; z-index: 3; pointer-events: none;
  inset: 6px 6px calc(var(--header-h) + 6px);
  border: 2px solid var(--accent-hi); border-radius: 8px;
}

/* frame names on the floor under each base, placed each frame by hero.js */
.hero-label {
  position: absolute; left: 0; top: 0; z-index: 2;
  pointer-events: none;
  display: flex; align-items: center; gap: 8px;
  padding-top: 20px;
  font: 400 10.5px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  translate: -50% 0;
  opacity: 0;
  transition: opacity var(--dur-reveal) var(--ease-out), color 200ms var(--ease-out);
}
.stage-hero.is-live .hero-label { opacity: 1; }
.stage-hero.is-live .hero-label.is-off { opacity: 0; }
.hero-label::before {
  content: ""; position: absolute; left: 50%; top: 4px;
  width: 1px; height: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--line-strong));
}
.hero-label i {
  width: 5px; height: 5px; flex: none;
  background: var(--accent);
  transition: background-color 200ms var(--ease-out), scale 200ms var(--ease-out);
}
.hero-label b { font-weight: 400; color: rgba(255, 255, 255, .6); } /* 4.5:1+ over the glow; the faint token measured 4.0 to 4.3 */
.hero-label.is-on { color: var(--ink); }
.labels-tight .hero-label b { display: none; }
.hero-label.is-end { translate: calc(-100% + 3px) 0; }
.hero-label.is-end::before { left: calc(100% - 3px); }
.hero-label.is-start { translate: -2px 0; }
.hero-label.is-start::before { left: 2px; }
.hero-label.is-on i { background: var(--accent-hi); scale: 1.4; }
.stage-hero .stage-bloom {
  background:
    radial-gradient(46% 42% at 52% 68%, rgba(76, 129, 95, .20), rgba(76, 129, 95, 0) 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(43, 74, 55, .30), rgba(43, 74, 55, 0) 72%);
}
/* poster shows from first paint; the live canvas fades in over it, then it leaves */
.stage-hero .stage-poster { object-fit: cover; object-position: 50% 100%; transition: opacity 0s linear var(--dur-reveal); }
.stage-hero.is-live .stage-poster { opacity: 0; }

/* ---------- logo bar (docks at the bottom of the first viewport) ---------- */
.logo-slot {
  position: relative; z-index: 20;
  flex: 0 0 auto;
  height: var(--logo-h);
  /* one header-height of space: the hero's art ends where the docked bar starts */
  margin-top: auto;
}
.logo-panel {
  height: var(--logo-h);
  display: flex; align-items: center;
  border-top: 1px solid var(--line);
  background-color: rgba(10, 19, 14, 0);
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.logo-panel.is-docked {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(var(--logo-h) + env(safe-area-inset-bottom, 0px));
  background-color: rgba(10, 19, 14, .94);
  border-top-color: var(--line-strong);
}

/* marquee: two identical lists side by side; the track moves left by exactly one
   list, then repeats, so the loop has no seam. Linear, transform only. */
.marquee {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee var(--marquee-dur, 80s) linear infinite;
  animation-play-state: paused;
  will-change: transform;
}
.marquee.is-running .marquee-track { animation-play-state: running; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.logo-row {
  --base: 24px;
  --gap: clamp(56px, 6vw, 96px);
  display: flex; align-items: center; flex: 0 0 auto;
  gap: var(--gap);
  padding-right: var(--gap);
}
.logo-row li { flex: 0 0 auto; }
.logo-row img {
  /* sized by eye, measured: each mark's scale (--s) evens out its visual weight
     from its aspect ratio and ink coverage (viewBoxes are cropped to the ink) */
  height: calc(var(--base) * var(--s, 1));
  width: calc(var(--base) * var(--s, 1) * var(--ar));
  opacity: .5;
}
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
/* reduced motion: a still row you can swipe */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee-track { animation: none; padding-inline: var(--gutter); }
  .logo-row[aria-hidden="true"] { display: none; }
}

/* ---------- sections ---------- */
.work { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.section-head { max-width: 640px; margin-bottom: clamp(56px, 8vw, 112px); }
.eyebrow {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.section-title {
  font-size: var(--t-h2);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.018em;
}
.section-body { margin-top: 16px; font-size: var(--t-lead); color: var(--text-muted); }

/* use cases: three pairs. Without JS, on phones, on short screens and under
   reduced motion this is a plain grid, one pair per row. With .is-pinned the
   pairs stack in one sticky frame and native scroll moves between them. */
.cases-track { display: none; }
.cases-stage { display: grid; gap: clamp(56px, 7vw, 96px); }
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.case { display: flex; flex-direction: column; min-width: 0; }
.case-copy { padding-top: 24px; }
.case-client {
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--ink);
  display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline;
}
.case-meta { font-weight: 400; color: var(--text-muted); }
.case-title {
  margin-top: 10px;
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.case-body { margin-top: 10px; color: var(--text-muted); max-width: 46ch; text-wrap: pretty; }

.stage-case {
  aspect-ratio: 7 / 5;
  background: var(--surface-1);
  border: 1px solid var(--line);
  transition: border-color 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .stage-case:hover { border-color: var(--line-strong); }
}

.cases.is-pinned { position: relative; }
.cases.is-pinned .cases-pin {
  position: sticky; top: var(--header-h);
  height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column;
  padding-block: 20px 28px;
}
.cases.is-pinned .cases-track {
  display: flex; gap: 6px; width: 132px; flex: 0 0 auto; margin-bottom: 20px;
}
.cases-track span { flex: 1; height: 2px; background: var(--line-strong); border-radius: 1px; overflow: hidden; }
.cases-track span::after {
  content: ""; display: block; height: 100%;
  background: var(--accent-hi);
  transform: scaleX(var(--f, 0)); transform-origin: 0 50%;
}
/* clip, not hidden: a hidden box can still be scrolled by focus, which shifted
   the pairs by a whole card when tabbing into the next pair */
.cases.is-pinned .cases-stage { position: relative; flex: 1; display: block; overflow: hidden; overflow: clip; }
/* the pairs are stacked; only the cards take the pointer, so the empty wrapper
   of a pair on top never blocks hover and drag on the demos under it */
.cases.is-pinned .pair { position: absolute; inset: 0; align-content: center; pointer-events: none; }
.cases.is-pinned .case { pointer-events: auto; }
.cases.is-pinned .case { will-change: transform, opacity; }
.cases.is-pinned .stage-case { max-height: calc(100svh - var(--header-h) - 330px); }

/* ---------- about ---------- */
/* Cyrus's draft, verbatim and in order, set in two tiers: the thesis as a
   display line, then the method as the lead.
   Words resolve from faint to full as the block scrolls through (main.js). */
.about { position: relative; padding-bottom: var(--section-gap); isolation: isolate; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px clamp(32px, 5vw, 80px);
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 64px);
}
.about-label { margin: 0; }
/* the signature: a field of dots that starts loose and settles into a grid as
   the words resolve; one of them is the logo's green dot (drawn in main.js) */
.about-field { display: block; touch-action: pan-y; width: 100%; max-width: 380px; aspect-ratio: 380 / 330; margin-top: 36px; }
.about-lede {
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.018em;
  max-width: 15em;
  text-wrap: balance;
}
.about-core {
  margin-top: clamp(28px, 3.4vw, 44px);
  max-width: 30em;
  font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.42;
  letter-spacing: -.006em;
  text-wrap: pretty;
}
.about-main .w { transition: opacity 120ms linear; }

/* ---------- testimonials ---------- */
/* Two client notes, verbatim, as one spread inside the hero frames' corner
   brackets: Dave's short note set large on the left, Sean's long note at
   reading size on the right, a hairline between them, both names on one line
   at the foot. Each name hangs off a hairline leader ending in the hero
   labels' 5px green square, the block's one accent. */
.voices { padding-bottom: var(--section-gap); }
.voices-grid {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 64px);
}
.voices-label { margin: 0; }
.voices-frame {
  --bk: var(--line-strong); --bl: 18px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  margin-top: clamp(32px, 4vw, 56px);
  padding: clamp(40px, 4.4vw, 72px) clamp(24px, 4.4vw, 72px);
  background:
    linear-gradient(var(--bk), var(--bk)) left top / var(--bl) 1px,
    linear-gradient(var(--bk), var(--bk)) left top / 1px var(--bl),
    linear-gradient(var(--bk), var(--bk)) right top / var(--bl) 1px,
    linear-gradient(var(--bk), var(--bk)) right top / 1px var(--bl),
    linear-gradient(var(--bk), var(--bk)) left bottom / var(--bl) 1px,
    linear-gradient(var(--bk), var(--bk)) left bottom / 1px var(--bl),
    linear-gradient(var(--bk), var(--bk)) right bottom / var(--bl) 1px,
    linear-gradient(var(--bk), var(--bk)) right bottom / 1px var(--bl);
  background-repeat: no-repeat;
}
.voice { margin: 0; display: flex; flex-direction: column; }
.voice-quote { margin: 0; }
.voice-quote p { text-wrap: pretty; }
.voice-lead { padding-right: clamp(32px, 4vw, 64px); }
.voice-long { position: relative; padding-left: clamp(32px, 4vw, 64px); }
.voice-long::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); transform-origin: center top; }
.voice-lead .voice-quote p {
  font-size: clamp(26px, 2.75vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.016em;
  text-indent: -.4em;
}
.voice-long .voice-quote p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  text-indent: -.36em;
}
.voice-name {
  margin-top: auto;
  padding-top: clamp(28px, 3vw, 44px);
  display: flex; align-items: center; gap: 10px;
  font-size: var(--t-small); font-weight: 500;
  color: var(--ink);
}
.voice-rule { width: 32px; height: 1px; background: var(--line-strong); transform-origin: left center; }
.voice-name i { width: 5px; height: 5px; flex: none; background: var(--accent); }
@media (max-width: 1100px) {
  .voices-frame { grid-template-columns: 1fr; }
  .voice-lead { padding-right: 0; }
  .voice-long { padding-left: 0; margin-top: clamp(40px, 6vw, 56px); padding-top: clamp(40px, 6vw, 56px); }
  .voice-long::before { bottom: auto; right: 0; width: auto; height: 1px; transform-origin: left center; }
  .voice-lead .voice-quote p { max-width: 22em; font-size: clamp(26px, 3.4vw, 36px); }
  .voice-long .voice-quote p { font-size: var(--t-lead); max-width: 34em; }
}

@media (max-width: 640px) {
  .voices-frame { --bl: 14px; padding: 36px 16px; }
}

/* A quiet, one-time arrival (main.js adds .is-anim only when motion is
   allowed; otherwise everything is simply there). Each note's words rise in,
   the hairline between the notes draws, the leader draws toward the name and
   the green square lands last, like a finished point in the hero. */
.voices.is-anim .voice-quote { opacity: 0; translate: 0 12px; transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out); }
.voices.is-anim .voice-long::before { scale: 1 0; transition: scale 900ms var(--ease-out) 200ms; }
.voices.is-anim .voice-rule { scale: 0 1; transition: scale 500ms var(--ease-out) 380ms; }
.voices.is-anim .voice-name span { opacity: 0; transition: opacity 500ms var(--ease-out) 560ms; }
.voices.is-anim .voice-name i { opacity: 0; scale: .4; transition: opacity 240ms var(--ease-out) 760ms, scale 240ms var(--ease-out) 760ms; }
.voices.is-anim .is-in .voice-quote { opacity: 1; translate: 0 0; }
.voices.is-anim .is-in.voice-long::before { scale: 1 1; }
.voices.is-anim .is-in .voice-rule { scale: 1 1; }
.voices.is-anim .is-in .voice-name span { opacity: 1; }
.voices.is-anim .is-in .voice-name i { opacity: 1; scale: 1; }
@media (max-width: 1100px) {
  .voices.is-anim .voice-long::before { scale: 0 1; }
}

/* ---------- close ---------- */
.close { padding-bottom: clamp(80px, 10vw, 144px); }
.close-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px 40px;
  padding-block: clamp(40px, 5vw, 64px);
  border-block: 1px solid var(--line);
}
.close-title {
  font-size: var(--t-h2);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.018em;
  text-wrap: balance;
  max-width: 14em;
}

/* ---------- footer ---------- */
.site-footer { padding-block: 32px 40px; }
.footer-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 32px;
  font-size: var(--t-small);
  color: var(--text-muted);
}
.footer-logo { width: 88px; height: auto; margin-right: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a {
  text-decoration: none;
  border-radius: 2px;
  transition: color 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--ink); }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pair { grid-template-columns: 1fr; gap: clamp(56px, 7vw, 96px); }
  .stage-case { aspect-ratio: 6 / 5; }
  .about-grid { grid-template-columns: 1fr; }
  .about-side { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .about-field { width: 168px; aspect-ratio: 168 / 96; margin-top: 0; }
}
@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .brand img { width: 96px; }
  .hero { padding-top: 32px; }
  :root { --logo-h: 72px; }
  .hero-title { font-size: min(11vw, 46px); }
  .logo-row { --base: 23px; --gap: 44px; }
  .stage-step { left: 14px; bottom: 12px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-logo { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-canvas { transition: none; }
}
