/* ==========================================================================
   Galaxy system
   The whole visual system for pages migrated off style.css (see docs/adr/0001).
   Order: tokens, base, layout, signature devices, components, sections,
   motion, responsive, reduced motion, forced colours, print.

   State hooks owned by js/site.js:
     html.js            set inline in <head>; every hidden-before-reveal style is scoped to it
     .site-header.is-stuck / .is-open, body.menu-open
     [data-reveal].is-in
     .hero.is-ready      starts the hero intro
     .hero-galaxy.is-drawn   set by js/galaxy.js after the first frame
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* colour */
  --ink: #0a0a09;
  --ink-2: #111110;
  --ink-3: #1a1a18;
  --ink-4: #2a2926;          /* stronger hairline for interactive edges */
  --bone: #f1ece4;
  --title: #f6f2ec;          /* every h1 */
  --bone-dim: #b9b2a7;
  --mute: #8d877e;
  --hot: #ff2a46;
  --red: #c8102e;
  --red-deep: #a80d26;
  --glow: rgba(255, 42, 70, .5);
  --glow-soft: rgba(255, 42, 70, .18);

  /* type families */
  --f-display: 'Exo 2', system-ui, sans-serif;
  --f-body: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* type scale */
  --t-display: clamp(3rem, 7.2vw, 7.4rem);
  --t-hero: clamp(3rem, 4.6vw, 4.2rem);
  --t-page: clamp(2.5rem, 1.6rem + 4.4vw, 5.75rem);   /* inner-page h1, all widths */
  --t-h2: clamp(2.25rem, 4.4vw, 4.25rem);
  --t-h2-small: clamp(1.75rem, 2.8vw, 2.6rem);
  --t-h3: clamp(1.25rem, 1.75vw, 1.6rem);
  --t-statement: clamp(1.6rem, 3.1vw, 3.1rem);
  --t-figure: clamp(2.6rem, 6.4vw, 6.25rem);
  --t-lede: clamp(1.0625rem, .98rem + .4vw, 1.3rem);
  --t-body: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --t-small: .9375rem;
  --t-label: .78rem;           /* 12.5px */
  --t-micro: .75rem;           /* 12px floor */

  /* space */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: clamp(40px, 4vw, 56px);
  --s8: clamp(56px, 6vw, 88px);
  --s9: clamp(72px, 8vw, 120px);
  --s10: clamp(96px, 11vw, 168px);
  --section-y: clamp(88px, 11vw, 168px);
  --section-y-tight: clamp(64px, 7vw, 112px);

  /* layout */
  --max: 1520px;
  --gutter: clamp(20px, 4.4vw, 72px);
  --col-gap: clamp(16px, 2vw, 32px);
  --header-h: max(72px, 3.3rem);
  --measure: 65ch;

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 900ms;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-real, var(--header-h)) + 2rem);
  background: var(--ink);
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* older browsers without overflow: clip; only the root, so body never becomes
   a scroll container (that would break position: sticky) */
@supports not (overflow: clip) {
  html { overflow-x: hidden; }
}

/* scroll lock while the mobile menu is open. It sits on the root because
   html's overflow-x: clip stops body's overflow reaching the viewport. */
html.menu-open,
body.menu-open { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* touch: no grey tap flash; a quiet :active state gives the feedback instead */
a, button, [role="tab"] { -webkit-tap-highlight-color: transparent; }
a:not(.btn):active,
button:not(.btn):not(.tab):active { opacity: .72; }
em { font-style: italic; }
strong { font-weight: 500; }

::selection { background: var(--red); color: var(--bone); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--bone);
  color: var(--ink);
  font: 500 var(--t-label)/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus { transform: none; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--tight { padding-block: var(--section-y-tight); }
/* a section that hands straight on to the next one closes tighter */
.section--close { padding-bottom: var(--section-y-tight); }

/* --------------------------------------------------------------------------
   4. Type primitives
   -------------------------------------------------------------------------- */
.label {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: var(--t-label);
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
}

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: .7em;
  color: var(--bone-dim);
}
.eyebrow-num { color: var(--hot); }
.eyebrow-sep { color: var(--mute); }

.h2 {
  margin-top: var(--s5);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--bone);
  max-width: 16ch;
  text-wrap: balance;
}
.h2--small { font-size: var(--t-h2-small); max-width: 20ch; }
/* long words at large text sizes on narrow screens break instead of clipping */
:is(.h2, .page-title, .cta-title, .step-title, .cv-skill-title, .role-title) { overflow-wrap: break-word; }
@media (max-width: 520px) {
  :is(.hero-title, .h2, .page-title, .cta-title, .step-title, .cv-skill-title, .role-title) { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
  /* balanced hero lines would otherwise split short words ("some-one");
     only words long enough to overflow get hyphenated */
  :is(.hero-title, .h2, .page-title, .cta-title, .step-title, .cv-skill-title, .role-title) { hyphenate-limit-chars: 10 5 5; -webkit-hyphenate-limit-before: 5; -webkit-hyphenate-limit-after: 5; }
}
.sec-head-main { min-width: 0; }

/* running copy: no stranded last words */
:is(.hero-lead, .sec-head-aside, .situation-body, .work-outcome, .engage-body, .cta-body, .also-desc) { text-wrap: pretty; }

/* --------------------------------------------------------------------------
   5. Signature devices
   -------------------------------------------------------------------------- */

/* Live dot: the system's "on air" signal */
.live-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 10px var(--hot);
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--hot);
  opacity: 0;
}

/* Lock-on corner brackets */
.lock {
  position: absolute;
  inset: -10px;
  pointer-events: none;
  z-index: 3;
}
.lock i {
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid var(--hot);
  filter: drop-shadow(0 0 4px var(--glow));
  transition: transform .6s var(--ease-out), opacity .6s var(--ease-out);
}
.lock i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; --dx: -18px; --dy: -18px; --hx: -5px; --hy: -5px; }
.lock i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; --dx: 18px; --dy: -18px; --hx: 5px; --hy: -5px; }
.lock i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; --dx: -18px; --dy: 18px; --hx: -5px; --hy: 5px; }
.lock i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; --dx: 18px; --dy: 18px; --hx: 5px; --hy: 5px; }

/* Constellation glyph: dots that join up */
.glyph { width: 40px; height: 34px; overflow: visible; }
.glyph circle { fill: var(--mute); transition: fill var(--dur-2) var(--ease-out); }
.glyph polygon {
  fill: rgba(200, 16, 46, 0);
  stroke: var(--hot);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .8s var(--ease-out), fill .6s .3s var(--ease-out);
}

/* Arrow used by arrow links and list links */
.arrow {
  display: inline-block;
  flex: none;
  width: 1.05em; height: .7em;
  margin-left: .45em;
  overflow: visible;
  vertical-align: .02em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur-2) var(--ease-out);
}

.arrow-link {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color var(--dur-1) linear, text-decoration-color var(--dur-1) linear;
}
.arrow-link .arrow { color: var(--hot); }
.arrow-link:focus-visible .arrow { transform: translateX(5px); }
@media (hover: hover) {
  .arrow-link:hover { color: #fff8f0; text-decoration-color: var(--bone); }
  .arrow-link:hover .arrow { transform: translateX(5px); }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    box-shadow .4s var(--ease-out);
}
.btn-icon { flex: none; }

/* light sweep */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-110%) skewX(-12deg);
  transition: transform .8s var(--ease-out);
  pointer-events: none;
}

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--bone);
}

.btn--ghost {
  background: rgba(10, 10, 9, .45);
  border-color: rgba(241, 236, 228, .26);
  color: var(--bone);
}
.btn--ghost::after { background: linear-gradient(100deg, transparent 30%, rgba(255, 42, 70, .18) 50%, transparent 70%); }

.btn--outline {
  min-height: 44px;
  padding: 0 18px;
  border-color: var(--hot);
  color: var(--bone);
  font-size: .875rem;
}

/* hover glows and sweeps only where a pointer can hover; touch gets :active */
@media (hover: hover) {
  .btn:hover::after { transform: translateX(110%) skewX(-12deg); }
  .btn--primary:hover {
    background: var(--red-deep);
    box-shadow: 0 0 0 1px var(--hot), 0 0 32px rgba(255, 42, 70, .45);
  }
  .btn--ghost:hover { border-color: var(--hot); }
  .btn--outline:hover { background: var(--red); border-color: var(--red); }
}
.btn:active { filter: brightness(.86); }
.btn--ghost:active { border-color: var(--hot); }

/* --------------------------------------------------------------------------
   7. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  min-height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.site-header.is-stuck {
  background: var(--ink);
  border-bottom-color: var(--ink-3);
}
/* site.js hides a tall header while scrolling down (.is-hidden) and brings it
   back on scroll up, at the top, on focus or when the menu opens. The slide is
   a short transform only with motion allowed; otherwise it is instant. */
.site-header.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .site-header {
    transition:
      background-color var(--dur-2) var(--ease-out),
      border-color var(--dur-2) var(--ease-out),
      transform .24s var(--ease-out);
  }
}
/* never hidden with the menu open or focus inside; also keeps the fixed menu
   from being contained by a transformed header */
.site-header:has(:focus-visible),
.site-header.is-open,
html.menu-open .site-header,
body.menu-open .site-header { transform: none; }

.header-inner {
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--s5);
  padding-block: 4px;
}

.wordmark {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 1.3rem;
  letter-spacing: -.005em;
  color: var(--bone);
}
.wordmark-dot { color: var(--hot); }

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 4px 0 12px;
  font: 500 var(--t-label)/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone);
}
.nav-toggle-bars { position: relative; width: 22px; height: 10px; }
.nav-toggle-bars i {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2);
}
.nav-toggle-bars i:first-child { top: 0; }
.nav-toggle-bars i:last-child { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i { background: var(--hot); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
}
.nav-list { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding-inline: 4px;
  font-size: .95rem;
  font-weight: 400;
  color: var(--bone-dim);
  transition: color var(--dur-1) linear;
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: 8px;
  height: 1px;
  background: var(--hot);
  box-shadow: 0 0 8px var(--hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
@media (hover: hover) {
  .nav-list a:hover { color: var(--bone); }
  .nav-list a:hover::after { transform: scaleX(1); }
}
.nav-list a[aria-current="page"] { color: var(--bone); }
.nav-list a[aria-current="page"]::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 8px var(--hot);
}
.nav-meta { display: none; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: max(640px, min(100vh, 1100px));
  min-height: max(640px, min(100svh, 1100px));
  padding-top: var(--header-real, var(--header-h));
  background:
    radial-gradient(ellipse 46% 52% at 72% 46%, rgba(200, 16, 46, .11), transparent 70%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(200, 16, 46, .05), transparent 70%),
    #070706;
  cursor: crosshair;
}
.hero-copy, .hero-meta { cursor: auto; }
.hero a, .hero button { cursor: pointer; }

.hero-galaxy {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* fades the galaxy into the next band */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  z-index: 1;
  background: linear-gradient(transparent, var(--ink));
  pointer-events: none;
}

.hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  align-items: center;
  padding-block: clamp(40px, 8vh, 96px) clamp(32px, 6vh, 72px);
}

.hero-copy {
  position: relative;
  grid-column: 1 / span 8;
  isolation: isolate;
}
/* soft scrim so the copy reads over the galaxy; no hard edges */
.hero-copy::before {
  content: '';
  position: absolute;
  inset: -18% -22% -20% -14%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(7, 7, 6, .9), rgba(7, 7, 6, .62) 55%, rgba(7, 7, 6, 0));
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hot);
  letter-spacing: .12em;
}
.eyebrow-segs { display: flex; flex-wrap: wrap; column-gap: .9em; row-gap: .25em; }
.eyebrow-segs > span { white-space: nowrap; }
.eyebrow-segs > span + span::before { content: '\00b7'; margin-right: .9em; }
@media (max-width: 520px) {
  /* separators would strand at a line end; the gap alone separates the segments */
  .eyebrow-segs > span + span::before { content: none; }
  .eyebrow-segs > span { white-space: normal; }
  .eyebrow-segs { column-gap: 1.4em; }
}

.hero-title-wrap {
  position: relative;
  margin-top: clamp(20px, 3vh, 32px);
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 200;
  font-size: var(--t-hero);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--title);
  max-width: 30ch;
  overflow-wrap: break-word;
}
.hero-title-line { display: block; }

.hl {
  display: inline;
  white-space: nowrap;
  color: var(--hot);
  text-shadow: 0 0 28px rgba(255, 42, 70, .35);
  /* underline lives on the text itself, so it follows every wrapped line */
  background:
    linear-gradient(var(--hot), var(--hot)) 0 100% / 100% 2px no-repeat,
    linear-gradient(rgba(255, 42, 70, .4), rgba(255, 42, 70, .4)) 0 100% / 100% 7px no-repeat;
  padding-bottom: .1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* scanning beam for the intro; parked when not animating */
.hero-beam {
  position: absolute;
  left: -6vw; right: -30vw;
  top: 0;
  height: 100%;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}
.hero-beam::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hot) 6%, #fff4f1 40%, var(--hot) 90%, transparent);
  box-shadow: 0 0 8px var(--hot), 0 0 30px 5px rgba(255, 42, 70, .5);
}
.hero-beam::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: calc(100% - 1px);
  height: 64px;
  background: linear-gradient(to top, rgba(255, 42, 70, .16), transparent);
}

.hero-lead {
  margin-top: clamp(24px, 3.6vh, 40px);
  max-width: 54ch;
  font-size: var(--t-lede);
  line-height: 1.65;
  color: var(--bone-dim);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vh, 44px);
}

/* HUD meta row along the bottom of the hero */
.hero-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: var(--s5);
  padding-bottom: clamp(24px, 4vh, 40px);
}
.hero-meta::before {
  content: '';
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  top: calc(-1 * clamp(16px, 2.4vh, 24px));
  height: 1px;
  background: linear-gradient(90deg, var(--ink-4), rgba(42, 41, 38, 0) 80%);
}

.hud { display: flex; flex-wrap: wrap; gap: 10px clamp(24px, 3vw, 48px); }
.hud-row {
  display: flex;
  gap: 14px;
  font: 400 var(--t-label)/1.4 var(--f-mono);
  letter-spacing: .06em;
}
.hud dt { color: var(--hot); letter-spacing: .14em; text-transform: uppercase; }
.hud dd { color: var(--bone-dim); }

.hero-hint {
  display: none;
  justify-self: center;
  white-space: nowrap;
  color: var(--mute);
  letter-spacing: .14em;
}
@media (hover: hover) and (pointer: fine) and (min-width: 1280px) {
  .hero-hint { display: block; }
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  flex-wrap: wrap;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink-4);
  border-radius: 999px;
  background: rgba(10, 10, 9, .55);
  font: 400 var(--t-micro)/1 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bone-dim);
  transition: border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.motion-toggle::before {
  content: '';
  width: 8px; height: 9px;
  flex: none;
  border-left: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
}
.motion-toggle[aria-pressed="true"] {
  border-color: var(--hot);
  background: rgba(255, 42, 70, .16);
  color: var(--bone);
}
.motion-toggle[aria-pressed="true"]::after {
  content: 'ON';
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--hot);
  color: var(--ink);
  font-size: .85em;
  font-weight: 600;
  letter-spacing: .1em;
}
@media (hover: hover) {
  .motion-toggle:hover { border-color: var(--hot); color: var(--bone); }
}
/* the copy site.js puts in the mobile menu; shown only in the overlay (section 19) */
.menu-motion-toggle { display: none; }
html:not(.js) .motion-toggle, html:not(.js) .hero-hint { display: none; }
html.motion-paused .hero-hint { display: none; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px 0 14px;
  font: 400 var(--t-micro)/1 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color var(--dur-1) linear;
}
@media (hover: hover) {
  .scroll-cue:hover { color: var(--bone); }
}
.scroll-cue i {
  position: relative;
  width: 1px; height: 36px;
  background: var(--ink-4);
  overflow: hidden;
}
.scroll-cue i::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 12px;
  background: var(--hot);
  box-shadow: 0 0 6px var(--hot);
}

/* --------------------------------------------------------------------------
   8b. Page hero: the compact galaxy band every inner page opens with
   Markup: section.page-hero > canvas.hero-galaxy[data-galaxy],
   .page-hero-body > .page-hero-copy (.page-hero-eyebrow, h1.page-title,
   .page-lead), then .page-hero-meta (dl.hud, spacer, .hero-controls with the
   [data-galaxy-toggle] pause pill).
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: clamp(480px, 70vh, 700px);
  min-height: clamp(480px, 70svh, 700px);
  padding-top: var(--header-real, var(--header-h));
  background:
    radial-gradient(ellipse 40% 60% at 78% 46%, rgba(200, 16, 46, .11), transparent 70%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(200, 16, 46, .05), transparent 70%),
    #070706;
  cursor: crosshair;
}
.page-hero-copy, .page-hero-meta { cursor: auto; }
.page-hero a, .page-hero button { cursor: pointer; }
/* fades the galaxy into the next band */
.page-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  z-index: 1;
  background: linear-gradient(transparent, var(--ink));
  pointer-events: none;
}
.page-hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  align-items: center;
  padding-block: clamp(40px, 7vh, 88px) clamp(28px, 5vh, 56px);
}
.page-hero-copy {
  position: relative;
  grid-column: 1 / span 8;
  isolation: isolate;
}
.page-hero-copy::before {
  content: '';
  position: absolute;
  inset: -18% -22% -20% -14%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(7, 7, 6, .9), rgba(7, 7, 6, .62) 55%, rgba(7, 7, 6, 0));
  pointer-events: none;
}
.page-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hot);
  letter-spacing: .12em;
}
.page-title {
  margin-top: clamp(18px, 2.6vh, 28px);
  font-family: var(--f-display);
  font-weight: 200;
  font-size: var(--t-page);
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--title);
  text-wrap: balance;
}
.page-lead {
  margin-top: clamp(20px, 3vh, 32px);
  max-width: 52ch;
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--bone-dim);
  text-wrap: pretty;
}
/* HUD meta row along the bottom of the band */
.page-hero-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: var(--s5);
  padding-bottom: clamp(24px, 4vh, 40px);
}
.page-hero-meta::before {
  content: '';
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  top: calc(-1 * clamp(16px, 2.4vh, 24px));
  height: 1px;
  background: linear-gradient(90deg, var(--ink-4), rgba(42, 41, 38, 0) 80%);
}

/* --------------------------------------------------------------------------
   9. Marquee band
   -------------------------------------------------------------------------- */
.marquee-band {
  position: relative;
  border-top: 1px solid var(--ink-3);
  border-bottom: 1px solid var(--ink-3);
  background: var(--ink);
}
.marquee-band-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  min-height: 76px;
}
.marquee-label {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bone-dim);
  white-space: nowrap;
}
.marquee-label::after {
  content: '';
  width: 28px; height: 1px;
  background: var(--hot);
  box-shadow: 0 0 6px var(--hot);
}

.marquee {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
}
.marquee-list {
  display: flex;
  flex: none;
  align-items: center;
}
.marquee-list li {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 40px);
  padding-right: clamp(22px, 2.6vw, 40px);
  font: 400 .875rem/1 var(--f-mono);
  letter-spacing: .06em;
  color: var(--bone-dim);
  white-space: nowrap;
}
.marquee-list li::after {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--hot);
  opacity: .7;
}

/* --------------------------------------------------------------------------
   10. Person
   -------------------------------------------------------------------------- */
.person {
  background:
    radial-gradient(ellipse 40% 60% at 14% 50%, rgba(200, 16, 46, .08), transparent 70%),
    var(--ink);
}
.person-grid { align-items: center; row-gap: var(--s8); }

.portrait {
  position: relative;
  grid-column: 1 / span 4;
  max-width: 440px;
  width: 100%;
}
.portrait-media { position: relative; }
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #3a0610, #1a0306 70%);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.2) brightness(.9);
  mix-blend-mode: screen;
  opacity: .92;
}
/* scanlines */
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .34) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
/* slow scan bar */
.portrait-frame::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 26%;
  z-index: 3;
  background: linear-gradient(transparent, rgba(255, 42, 70, .14), transparent);
  transform: translateY(-100%);
  pointer-events: none;
}
@media (hover: hover) {
  .portrait-media:hover .lock i { transform: translate(var(--hx), var(--hy)); }
}

.portrait-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--bone-dim);
}

.person-copy {
  grid-column: 6 / span 7;
}
.statement {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-statement);
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--bone);
  max-width: 30ch;
  text-wrap: pretty;
}
.statement-hl {
  color: var(--hot);
  font-style: italic;
}

/* Homepage statement: a lead line, three situations on a short laser line,
   and a quieter closing line. Read in order it is still one paragraph. */
.statement-lead {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 1.1rem + 1.9vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -.012em;
  color: var(--bone);
  max-width: 24ch;
  text-wrap: pretty;
}
.statement-list {
  --node: 11px;
  --step: clamp(16px, 1.6vw, 24px);
  display: grid;
  gap: var(--step);
  margin-top: clamp(32px, 3.4vw, 52px);
  padding-left: calc(var(--node) + 22px);
}
.statement-list li {
  position: relative;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.05rem + .3vw, 1.3rem);
  line-height: 1.4;
  color: var(--bone);
  max-width: 50ch;
  text-wrap: balance;
}
/* laser segment from this node down to the next one */
.statement-list li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: calc(-1 * (var(--node) + 22px) + var(--node) / 2 - .75px);
  top: .7em;
  height: calc(100% + var(--step));
  width: 1.5px;
  background: var(--hot);
  box-shadow: 0 0 6px var(--hot), 0 0 14px rgba(200, 16, 46, .7);
  transform-origin: 50% 0;
  transition: transform .5s var(--ease-in-out);
  transition-delay: calc(700ms + var(--i, 0) * 260ms);
}
.statement-node {
  position: absolute;
  z-index: 1;
  left: calc(-1 * (var(--node) + 22px));
  top: calc(.7em - var(--node) / 2);
  width: var(--node); height: var(--node);
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--hot);
  box-shadow: 0 0 0 3px var(--ink), 0 0 12px var(--hot);
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
  transition-delay: calc(560ms + var(--i, 0) * 260ms);
}
.statement-node::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--hot);
}
.statement-list li:nth-child(2) { --i: 1; }
.statement-list li:nth-child(3) { --i: 2; }
.statement-close {
  margin-top: clamp(28px, 3vw, 44px);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: 48ch;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   11. Section heads
   -------------------------------------------------------------------------- */
.sec-head {
  position: relative;
  align-items: end;
  row-gap: var(--s6);
  padding-top: var(--s6);
  margin-bottom: var(--s8);
}
/* laser rule: hairline with a hot segment that scales in from the left */
.sec-head::before,
.engage-head::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--ink-3);
}
.sec-head::after,
.engage-head::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: clamp(80px, 12vw, 180px);
  height: 1px;
  background: var(--hot);
  box-shadow: 0 0 10px var(--hot);
  transform-origin: left;
  transition: transform 1.1s .2s var(--ease-out);
}
.sec-head-main { grid-column: 1 / span 7; }
.sec-head-aside {
  grid-column: 9 / span 4;
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 36ch;
  justify-self: end;
}
.sec-head-aside .arrow-link { display: inline; }

/* --------------------------------------------------------------------------
   12. Situations
   -------------------------------------------------------------------------- */
.situations {
  background:
    linear-gradient(rgba(241, 236, 228, .022) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(241, 236, 228, .022) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--ink);
}
.situations::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 40%, transparent 40%, var(--ink) 95%);
  pointer-events: none;
}
.situations .wrap { position: relative; }

.situations-list { border-bottom: 1px solid var(--ink-3); }

.situation {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--s4);
  align-items: baseline;
  padding-block: clamp(28px, 3.4vw, 48px);
  border-top: 1px solid var(--ink-3);
}
.situation::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--hot);
  box-shadow: 0 0 10px var(--hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.situation-num {
  grid-column: 1 / span 1;
  font: 400 .875rem/1 var(--f-mono);
  letter-spacing: .04em;
  color: var(--mute);
  transition: color var(--dur-2), text-shadow var(--dur-2);
}
.situation-title {
  grid-column: 2 / span 5;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: var(--t-h3);
  line-height: 1.28;
  letter-spacing: 0;
  color: var(--bone);
  max-width: 30ch;
  text-wrap: balance;
  transition: transform .5s var(--ease-out), color var(--dur-2);
}
.situation-body {
  grid-column: 7 / span 4;
  font-size: var(--t-small);
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: 44ch;
}
.situation-meta {
  grid-column: 11 / span 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
}
.situation-tag { color: var(--mute); transition: color var(--dur-2); }

.situation:focus-within::after { transform: scaleX(1); }
.situation:focus-within .situation-num { color: var(--hot); text-shadow: 0 0 12px var(--hot); }
.situation:focus-within .situation-title { transform: translateX(8px); color: #fffaf3; }
.situation:focus-within .glyph circle { fill: var(--hot); }
.situation:focus-within .glyph polygon { stroke-dashoffset: 0; fill: rgba(200, 16, 46, .2); }
@media (hover: hover) {
  .situation:hover::after { transform: scaleX(1); }
  .situation:hover .situation-num { color: var(--hot); text-shadow: 0 0 12px var(--hot); }
  .situation:hover .situation-title { transform: translateX(8px); color: #fffaf3; }
  .situation:hover .situation-tag { color: var(--bone-dim); }
  .situation:hover .glyph circle { fill: var(--hot); }
  .situation:hover .glyph polygon { stroke-dashoffset: 0; fill: rgba(200, 16, 46, .2); }
}

/* --------------------------------------------------------------------------
   13. Selected work
   -------------------------------------------------------------------------- */
.work { background: var(--ink-2); }
.work .sec-head::before { background: var(--ink-4); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--col-gap);
}

.work-company { display: block; color: var(--hot); letter-spacing: .12em; }
.work-outcome {
  margin-top: var(--s4);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: var(--measure);
}
.work-outcome a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-1) linear, color var(--dur-1) linear;
}
@media (hover: hover) {
  .work-outcome a:hover { color: #fffaf3; text-decoration-color: var(--bone); }
}

/* feature block */
.work-feature {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--s7);
  align-items: end;
  padding: clamp(32px, 5vw, 72px);
  margin-bottom: clamp(16px, 2vw, 32px);
  background:
    radial-gradient(ellipse 60% 90% at 0% 100%, rgba(200, 16, 46, .14), transparent 70%),
    linear-gradient(180deg, rgba(255, 42, 70, .03), rgba(10, 10, 9, .6)),
    var(--ink);
  border: 1px solid var(--ink-3);
}
.work-feature .lock { inset: -1px; }
.work-feature .lock i { width: 28px; height: 28px; }
@media (hover: hover) {
  .work-feature:hover .lock i { transform: translate(var(--hx), var(--hy)); }
}

.feature-figures { grid-column: 1 / span 7; }
.feature-kicker { color: var(--bone-dim); }
.feature-display {
  margin-top: var(--s4);
  font-family: var(--f-display);
  font-weight: 200;
  font-size: var(--t-figure);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--bone);
  white-space: nowrap;
}
.feature-display em { font-weight: 300; color: var(--hot); text-shadow: 0 0 30px rgba(255, 42, 70, .35); }
.feature-arrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: .5em;
  vertical-align: .28em;
  color: var(--mute);
  margin-inline: .08em;
}

.feature-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5) clamp(24px, 4vw, 64px);
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--ink-4);
}
.stat dt { color: var(--mute); }
.stat dd {
  margin-top: 8px;
  font: 400 clamp(1.25rem, 2.1vw, 1.75rem)/1.1 var(--f-mono);
  letter-spacing: -.02em;
  color: var(--bone);
}

.feature-text {
  grid-column: 9 / span 4;
  align-self: end;
}
.feature-text .work-outcome { font-size: var(--t-body); }

/* bento tiles */
.work-tile {
  position: relative;
  padding: clamp(24px, 2.6vw, 40px);
  border: 1px solid var(--ink-3);
  background: var(--ink);
  transition: background-color var(--dur-2) var(--ease-out);
}
.work-tile:focus-within { background: #0d0d0c; }
@media (hover: hover) {
  .work-tile:hover { background: #0d0d0c; }
}
.work-tile--woolworths { grid-column: 1 / span 7; }
.work-tile--gov { grid-column: 8 / span 5; }
.work-tile--jd { grid-column: 1 / span 7; grid-row: span 2; }
.work-tile--telco { grid-column: 8 / span 5; }
.work-tile--media { grid-column: 8 / span 5; }

.work-tile--woolworths .work-outcome,
.work-tile--jd .work-outcome {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.125rem, 1.45vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--bone);
  max-width: 46ch;
}
.work-tile--jd { display: flex; flex-direction: column; justify-content: space-between; }
.work-tile--jd .work-outcome { margin-top: auto; padding-top: var(--s7); font-size: clamp(1.2rem, 1.7vw, 1.55rem); }

/* light-cycle border trail */
.trail {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  overflow: visible;
  pointer-events: none;
}
.trail-run {
  fill: none;
  stroke: var(--hot);
  stroke-width: 2;
  stroke-dasharray: 12 88;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 4px var(--hot));
  opacity: 0;
  animation: cycle 2.8s linear infinite paused;
  transition: opacity var(--dur-2) var(--ease-out);
}
.work-tile:focus-within .trail-run { opacity: 1; animation-play-state: running; }
@media (hover: hover) {
  .work-tile:hover .trail-run { opacity: 1; animation-play-state: running; }
}

/* --------------------------------------------------------------------------
   14. Engagements
   -------------------------------------------------------------------------- */
.engage-head {
  position: relative;
  align-items: end;
  row-gap: var(--s6);
  padding-top: var(--s6);
}
.engage-body {
  grid-column: 8 / span 5;
  font-size: var(--t-lede);
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: 46ch;
}

.spectrum {
  position: relative;
  margin-top: var(--s9);
  padding-top: 8px;
}
.spectrum-line {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}
.spectrum-line line {
  stroke: var(--hot);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 4px var(--hot)) drop-shadow(0 0 10px rgba(200, 16, 46, .8));
  transition: stroke-dashoffset 1.6s .2s var(--ease-in-out);
}
.spectrum-line--h {
  left: 0; right: 0;
  top: 15px;
  width: 100%;
  height: 2px;
}
.spectrum-line--v { display: none; }

.spectrum-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--col-gap);
}
.spectrum-node {
  display: grid;
  grid-template-columns: auto;
  align-content: start;
  gap: 14px;
}
.node {
  position: relative;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--hot);
  box-shadow: 0 0 0 4px var(--ink), 0 0 16px var(--hot);
  transition: transform .6s var(--ease-out), opacity .6s var(--ease-out), background-color .6s var(--ease-out);
  transition-delay: calc(600ms + var(--i, 0) * 220ms);
}
.node::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--hot);
}
.spectrum-index {
  margin-top: 14px;
  font: 400 var(--t-micro)/1 var(--f-mono);
  letter-spacing: .14em;
  color: var(--hot);
}
.spectrum-label {
  font: 400 clamp(.8125rem, .9vw, .9375rem)/1.45 var(--f-mono);
  letter-spacing: .04em;
  color: var(--bone);
  max-width: 26ch;
}

.engage-meta {
  margin-top: var(--s9);
  margin-left: calc((100% + var(--col-gap)) / 12);
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--bone);
  max-width: 30ch;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta {
  --cta-floor: clamp(110px, 15vw, 230px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--section-y);
  padding-bottom: calc(var(--cta-floor) + var(--s7));
  background:
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(200, 16, 46, .16), transparent 70%),
    var(--ink-2);
  color: var(--bone);
}

/* Laser grid floor: sits in the bottom padding, below the copy */
.cta-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--cta-floor);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.cta-floor::before {
  /* 1px glowing horizon */
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  z-index: 2;
  background: var(--hot);
  opacity: .7;
  box-shadow: 0 0 12px 2px var(--hot), 0 0 60px 12px rgba(200, 16, 46, .35);
}
/* The plane holds the perspective and clips; the grid and the wave are
   layers inside it that only translate, so the loops stay on the compositor */
.cta-plane {
  opacity: .45;
  position: absolute;
  left: -50%;
  top: 0;
  width: 200%;
  height: 170%;
  overflow: hidden;
  transform: perspective(360px) rotateX(64deg);
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%);
  mask-image: linear-gradient(to bottom, transparent, #000 35%);
}
.cta-plane::before {
  /* grid, one 80px cell taller than the plane so a one-cell slide loops */
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -80px;
  height: calc(100% + 80px);
  background-image:
    linear-gradient(rgba(255, 42, 70, .75) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 42, 70, .75) 1px, transparent 1px);
  background-size: 80px 80px;
}
.cta-plane::after {
  /* scan wave rolling toward the viewer: a band in a layer three planes tall */
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 300%;
  background: linear-gradient(to bottom, transparent 44%, rgba(255, 120, 135, .3) 50%, transparent 56%);
  transform: translateY(-66.6667%);
}
@keyframes cta-floor { from { transform: translateY(0); } to { transform: translateY(80px); } }
@keyframes cta-wave { from { transform: translateY(-66.6667%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .cta-plane::before { animation: cta-floor 3.2s linear infinite; will-change: transform; }
  html:not(.motion-paused) .cta-plane::after { animation: cta-wave 8s linear infinite; will-change: transform; }
  html:not(.motion-paused) .cycle-run { animation: cycle 3.2s linear infinite; }
}

/* Lock-on panel: corner brackets, no fill */
.cta-panel {
  position: relative;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 48px);
}
.cta-panel .lock { inset: 0; }
.cta-panel .lock i { width: 26px; height: 26px; }

.cta-grid { row-gap: var(--s7); align-items: end; }
.cta-copy { grid-column: 1 / span 7; }
.cta-eyebrow { display: flex; align-items: center; gap: 12px; color: var(--bone-dim); }
.cta-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--hot);
}
.cta-title {
  margin-top: var(--s5);
  font-family: var(--f-display);
  font-weight: 200;
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--bone);
  max-width: 12ch;
}
.cta-title em {
  font-weight: 300;
  color: var(--hot);
  text-shadow: 0 0 30px rgba(255, 42, 70, .35);
}

.cta-side { grid-column: 8 / span 5; }
.cta-body {
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: 44ch;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--s6);
}
.btn--cta { font-size: 1rem; }

/* light-cycle trail around the primary button */
.cycle-wrap { position: relative; display: inline-flex; }
.cycle {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  overflow: visible;
  pointer-events: none;
}
.cycle-run {
  fill: none;
  stroke: var(--hot);
  stroke-width: 2;
  stroke-dasharray: 14 86;
  filter: drop-shadow(0 0 4px var(--hot));
}

/* --------------------------------------------------------------------------
   16. Also worth knowing
   -------------------------------------------------------------------------- */
.also .sec-head { margin-bottom: var(--s7); }
.also-grid { row-gap: var(--s7); }
.also-col { grid-column: span 4; }
.also-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-4);
  color: var(--bone-dim);
}
.also-list li {
  padding-block: 8px 18px;
  border-bottom: 1px solid var(--ink-3);
}
/* 44px-tall hit area; the li padding is trimmed to keep the rhythm */
.also-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.125rem, 1.4vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--bone);
  transition: color var(--dur-1) linear;
}
.also-link .arrow { color: var(--hot); }
.also-link:focus-visible .arrow { transform: translateX(5px); }
@media (hover: hover) {
  .also-link:hover { color: #fffaf3; }
  .also-link:hover .arrow { transform: translateX(5px); }
}
.also-desc {
  display: block;
  margin-top: 0;
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--bone-dim);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: var(--s9);
  border-top: 1px solid var(--ink-3);
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(200, 16, 46, .1), transparent 70%),
    var(--ink);
}
.footer-top { row-gap: var(--s7); }
.footer-intro { grid-column: 1 / span 5; }
.footer-status { display: flex; align-items: center; gap: 10px; color: var(--bone-dim); }
.footer-line {
  margin-top: var(--s4);
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--bone);
}
.footer-col { grid-column: span 2; }
.footer-col--pages { grid-column: 7 / span 2; }
.footer-col:last-child { grid-column: span 2; }
.footer-head { color: var(--mute); margin-bottom: 14px; }
.footer-list li { border-top: 1px solid var(--ink-3); }
.footer-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: var(--t-small);
  font-weight: 400;
  color: var(--bone-dim);
  cursor: pointer;
  transition: color var(--dur-1) linear, transform var(--dur-2) var(--ease-out);
}
@media (hover: hover) {
  .footer-list a:hover { color: var(--bone); transform: translateX(4px); }
}
.footer-list a[aria-current="page"] { color: var(--bone); }
.footer-list a[aria-current="page"]::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 8px var(--hot);
}
.footer-icon { width: 14px; height: 14px; flex: none; fill: currentColor; opacity: .8; }
.footer-icon[fill="none"] { fill: none; }

.footer-wordmark {
  margin-top: var(--s8);
  font-family: var(--f-display);
  font-weight: 200;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: .95;
  padding-bottom: .1em;
  letter-spacing: -.03em;
  color: rgba(241, 236, 228, .14);
  white-space: nowrap;
  user-select: none;
  margin-left: -.04em;
}
.footer-wordmark span { color: var(--hot); text-shadow: 0 0 40px rgba(255, 42, 70, .4); }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: var(--s5);
  padding-block: var(--s5) var(--s6);
  margin-top: var(--s5);
  border-top: 1px solid var(--ink-3);
}
.footer-copy { color: var(--mute); }

/* --------------------------------------------------------------------------
   18. Motion
   Default styles above are the final state. Everything below only hides or
   animates under html.js with motion allowed, so no-JS and reduced-motion
   readers always get the finished page.
   -------------------------------------------------------------------------- */
@keyframes cycle { to { stroke-dashoffset: -100; } }
@keyframes pulse-ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes pscan { from { transform: translateY(-100%); } to { transform: translateY(400%); } }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes cue { 0% { transform: translateY(-14px); } 100% { transform: translateY(40px); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes scan-reveal { from { clip-path: inset(-12% -6% 100% -6%); } to { clip-path: inset(-12% -6% -24% -6%); } }
@keyframes cool { from { color: #ffd9de; text-shadow: 0 0 18px rgba(255, 42, 70, .9); } to { color: var(--title); text-shadow: 0 0 0 rgba(255, 42, 70, 0); } }
@keyframes beam { 0% { transform: translateY(0); opacity: 1; } 86% { opacity: 1; } 100% { transform: translateY(100%); opacity: 0; } }
@keyframes draw { from { background-size: 0% 2px, 0% 7px; } to { background-size: 100% 2px, 100% 7px; } }
@keyframes failsafe { to { opacity: 1; } }
@keyframes failsafe-line { to { stroke-dashoffset: 0; } }
@keyframes failsafe-underline { to { background-size: 100% 2px, 100% 7px; } }
@keyframes failsafe-reveal { to { opacity: 1; transform: none; } }
@keyframes failsafe-scale { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {

  /* ambient loops */
  .live-dot::after { animation: pulse-ring 2.4s var(--ease-out) infinite; }
  .portrait-frame::before { animation: pscan 6s linear infinite; }
  .scroll-cue i::after { animation: cue 2.2s var(--ease-in-out) infinite; }
  .marquee-track { animation: marquee 70s linear infinite; }
  @media (hover: hover) {
    .marquee:hover .marquee-track { animation-play-state: paused; }
  }

  /* galaxy fades in once it has drawn */
  .js .hero-galaxy { opacity: 0; transition: opacity 1.6s var(--ease-out); }
  .js .hero-galaxy.is-drawn { opacity: 1; }

  /* ---- hero intro ---- */
  .js .hero:not(.is-ready) :is(.hero-eyebrow, .hero-title, .hero-lead, .hero-ctas, .hero-meta) {
    opacity: 0;
    /* failsafe: if site.js never marks the hero ready, show it anyway */
    animation: failsafe 0s 3.2s forwards;
  }
  .js .hero:not(.is-ready) .hl {
    background-size: 0% 2px, 0% 7px;
    animation: failsafe-underline 0s 3.2s forwards;
  }

  .js .hero.is-ready .hero-eyebrow { animation: fade-in .5s 0s var(--ease-out) both; }
  .js .hero.is-ready .hero-title {
    animation:
      scan-reveal .8s .1s var(--ease-out) both,
      cool .9s .2s ease-out both;
  }
  .js .hero.is-ready .hero-beam { animation: beam .8s .1s var(--ease-out) both; }
  .js .hero.is-ready .hl { animation: draw .4s .7s var(--ease-out) both; }
  .js .hero.is-ready .hero-lead { animation: fade-up .6s .4s var(--ease-out) both; }
  .js .hero.is-ready .hero-ctas { animation: fade-up .6s .5s var(--ease-out) both; }
  .js .hero.is-ready .hero-meta { animation: fade-in .6s .5s var(--ease-out) both; }

  /* ---- page hero intro: one pass, same scan and cool as the homepage title ---- */
  .js .page-hero-eyebrow { animation: fade-in .5s 0s var(--ease-out) both; }
  .js .page-title {
    animation:
      scan-reveal .8s .1s var(--ease-out) both,
      cool .9s .2s ease-out both;
  }
  .js .page-lead { animation: fade-up .6s .4s var(--ease-out) both; }
  .js .page-hero-meta { animation: fade-in .6s .5s var(--ease-out) both; }

  /* ---- scroll reveals ---- */
  .js [data-reveal] {
    transition:
      opacity var(--dur-3) var(--ease-out),
      transform var(--dur-3) var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal]:not(.is-in) {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }

  /* section-head laser rule scales in */
  .js .sec-head[data-reveal]:not(.is-in)::after,
  .js .engage-head[data-reveal]:not(.is-in)::after { transform: scaleX(0); }

  /* brackets lock on after the block arrives */
  .js [data-reveal] .lock i { transition-delay: calc(var(--d, 0ms) + 450ms); }
  .js [data-reveal]:not(.is-in) .lock i {
    opacity: 0;
    transform: translate(var(--dx), var(--dy));
  }
  @media (hover: hover) {
    .js [data-reveal].is-in:hover .lock i { transition-delay: 0ms; }
  }

  /* spectrum: line draws, nodes light up in sequence */
  .js .spectrum[data-reveal] { transform: none; }
  .js .spectrum[data-reveal]:not(.is-in) .spectrum-line line { stroke-dashoffset: 1; }
  .js .spectrum[data-reveal]:not(.is-in) .node {
    opacity: .25;
    transform: scale(.5);
    background-color: var(--ink);
  }
  .js .spectrum .spectrum-node > :not(.node) {
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: calc(700ms + var(--i, 0) * 220ms);
  }
  .js .spectrum[data-reveal]:not(.is-in) .spectrum-node > :not(.node) {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }

  /* homepage statement: nodes light in sequence, the line joins them (one pass) */
  .js .person-copy[data-reveal]:not(.is-in) .statement-node { opacity: .25; transform: scale(.5); }
  .js .person-copy[data-reveal]:not(.is-in) .statement-list li::before { transform: scaleY(0); }
}

/* Failsafes: only when site.js never ran (it adds html.reveal-armed first thing).
   Without this scope they would pre-reveal everything 3.5s after load. */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.reveal-armed) [data-reveal]:not(.is-in) { animation: failsafe-reveal 0s 3.5s forwards; }
  html.js:not(.reveal-armed) .sec-head[data-reveal]:not(.is-in)::after,
  html.js:not(.reveal-armed) .engage-head[data-reveal]:not(.is-in)::after { animation: failsafe-scale 0s 3.5s forwards; }
  html.js:not(.reveal-armed) [data-reveal]:not(.is-in) .lock i { animation: failsafe-reveal 0s 3.5s forwards; }
  html.js:not(.reveal-armed) .spectrum[data-reveal]:not(.is-in) .spectrum-line line { animation: failsafe-line 0s 3.5s forwards; }
  html.js:not(.reveal-armed) .spectrum[data-reveal]:not(.is-in) .node,
  html.js:not(.reveal-armed) .spectrum[data-reveal]:not(.is-in) .spectrum-node > :not(.node) { animation: failsafe-reveal 0s 3.5s forwards; }
  html.js:not(.reveal-armed) .person-copy[data-reveal]:not(.is-in) .statement-node { animation: failsafe-reveal 0s 3.5s forwards; }
  html.js:not(.reveal-armed) .person-copy[data-reveal]:not(.is-in) .statement-list li::before { animation: failsafe-reveal 0s 3.5s forwards; }
}

/* Pause control (js/galaxy.js toggles html.motion-paused): stop every loop */
html.motion-paused { scroll-behavior: auto; }
html.motion-paused *,
html.motion-paused *::before,
html.motion-paused *::after {
  animation: none !important;
  transition: none !important;
}
html.motion-paused .hero-beam,
html.motion-paused .portrait-frame::before,
html.motion-paused .cta-plane::after { display: none; }
html.motion-paused .trail-run { stroke-dasharray: none; opacity: 0; }
html.motion-paused .work-tile:focus-within .trail-run { opacity: .7; }
@media (hover: hover) {
  html.motion-paused .work-tile:hover .trail-run { opacity: .7; }
}
html.motion-paused .cycle-run { stroke-dasharray: none; opacity: 0; }
html.motion-paused .marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
html.motion-paused .marquee-track { display: block; width: auto; max-width: 100%; transform: none; }
html.motion-paused .marquee-list { flex: 1 1 auto; width: auto; flex-wrap: wrap; row-gap: 10px; }
html.motion-paused .marquee-list li { white-space: normal; }
html.motion-paused .marquee-list + .marquee-list { display: none; }
/* final states for everything the intro and reveals hide */
html.motion-paused .hero :is(.hero-eyebrow, .hero-title, .hero-lead, .hero-ctas, .hero-meta) { opacity: 1 !important; }
html.motion-paused .page-hero :is(.page-hero-eyebrow, .page-title, .page-lead, .page-hero-meta) { opacity: 1 !important; }
html.motion-paused .hl { background-size: 100% 2px, 100% 7px !important; }
html.motion-paused .hero-galaxy { opacity: 1 !important; }
html.motion-paused [data-reveal],
html.motion-paused [data-reveal] .lock i,
html.motion-paused .spectrum .node,
html.motion-paused .spectrum .spectrum-node > :not(.node) { opacity: 1 !important; transform: none !important; }
html.motion-paused .sec-head[data-reveal]::after,
html.motion-paused .engage-head[data-reveal]::after { transform: none !important; }
html.motion-paused .spectrum .spectrum-line line { stroke-dashoffset: 0 !important; }
html.motion-paused .statement-node,
html.motion-paused .statement-list li::before { opacity: 1 !important; transform: none !important; }

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 1680px) {
  .hero-copy { grid-column: 1 / span 8; }
}

@media (max-width: 1199px) {
  .hero-copy { grid-column: 1 / span 10; }
  .page-hero-copy { grid-column: 1 / span 10; }
  .situation-title { grid-column: 2 / span 6; }
  .situation-body { grid-column: 8 / span 5; }
  .situation-meta {
    grid-column: 2 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }
  .feature-figures { grid-column: 1 / -1; }
  .feature-text { grid-column: 1 / span 9; }
  .sec-head-main { grid-column: 1 / span 8; }
  .sec-head-aside { grid-column: 9 / span 4; }
  .engage-head .sec-head-main { grid-column: 1 / span 6; }
  .engage-body { grid-column: 7 / span 6; }
  .engage-meta { margin-left: 0; }
  .cta-copy { grid-column: 1 / -1; }
  .cta-side { grid-column: 1 / span 8; }
  .footer-intro { grid-column: 1 / -1; }
  .footer-col, .footer-col--pages, .footer-col:last-child { grid-column: span 4; }
}

@media (max-width: 959px) {
  :root { --header-h: max(64px, 3.3rem); --t-display: clamp(3rem, 9vw, 5.5rem); --t-hero: var(--t-display); }

  /* nav: overlay under the header row (only when JS can open it). It starts
     below the header so nothing scrolls underneath the wordmark and toggle,
     and it scrolls on its own when it is taller than the screen. */
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed;
    top: var(--header-real, var(--header-h));
    left: 0; right: 0; bottom: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--s7);
    padding: 48px var(--gutter) 32px;
    background:
      radial-gradient(ellipse 80% 50% at 100% 100%, rgba(200, 16, 46, .16), transparent 70%),
      var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  }
  .js .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--dur-2) var(--ease-out), visibility 0s linear 0s;
  }
  .js .site-header.is-open { background: var(--ink); }
  .js .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--ink-3);
  }
  .js .nav-list li { border-bottom: 1px solid var(--ink-3); }
  .js .nav-list a {
    display: flex;
    justify-content: flex-start;
    min-height: 64px;
    padding-inline: 0;
    padding-block: 10px;
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(2.25rem, 10vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -.01em;
    color: var(--bone);
  }
  .js .nav-list a::after { display: none; }
  .js .nav-list a[aria-current="page"]::before { width: 8px; height: 8px; order: 2; margin-left: 6px; }
  .js .nav-cta { align-self: flex-start; min-height: 52px; padding: 0 26px; font-size: .95rem; }
  .js .nav-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    font: 400 var(--t-label)/1.4 var(--f-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bone-dim);
  }
  .js .site-nav > *, .js .nav-list li {
    flex-shrink: 0;
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
  }
  .js .site-header.is-open .site-nav > *,
  .js .site-header.is-open .nav-list li { opacity: 1; transform: none; }
  .js .site-header.is-open .nav-list li:nth-child(1) { transition-delay: 80ms; }
  .js .site-header.is-open .nav-list li:nth-child(2) { transition-delay: 140ms; }
  .js .site-header.is-open .nav-list li:nth-child(3) { transition-delay: 200ms; }
  .js .site-header.is-open .nav-list li:nth-child(4) { transition-delay: 260ms; }
  .js .site-header.is-open .nav-cta { transition-delay: 340ms; }
  .js .site-header.is-open .nav-meta { transition-delay: 420ms; }
  .js .site-header.is-open .menu-motion-toggle { transition-delay: 380ms; }
  .js .site-nav > .nav-list { opacity: 1; transform: none; }

  /* no-JS mobile: plain wrapped links under the wordmark */
  html:not(.js) .site-header { position: absolute; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; row-gap: 0; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 4px 20px; }
  html:not(.js) .nav-list { flex-wrap: wrap; gap: 4px 20px; }
  html:not(.js) .hero { padding-top: 132px; }

  /* the floor never asks for more than 1.3 screens; content sets the rest */
  .hero { min-height: max(min(640px, 130vh), min(100vh, 1000px)); min-height: max(min(640px, 130svh), min(100svh, 1000px)); }
  .hero-body { align-items: start; padding-block: clamp(36px, 8vw, 64px) 0; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-copy::before { inset: -12% -20% -10% -20%; }
  /* leave the lower part of the hero to the galaxy, scaled to the screen height */
  .hero-body::after {
    content: '';
    grid-column: 1 / -1;
    height: clamp(120px, min(56vw, 24vh), 380px);
    height: clamp(120px, min(56vw, 24svh), 380px);
  }
  .hero-meta { grid-template-columns: minmax(0, 1fr) auto; row-gap: 14px; }
  .hero-hint { display: none; }

  html:not(.js) .page-hero { padding-top: 132px; }
  .page-hero { min-height: 0; }
  .page-hero-body { align-items: start; padding-block: clamp(32px, 7vw, 56px) 0; }
  .page-hero-copy { grid-column: 1 / -1; }
  .page-hero-copy::before { inset: -12% -20% -10% -20%; }
  /* leave a strip under the copy for the galaxy */
  .page-hero-body::after {
    content: '';
    grid-column: 1 / -1;
    height: clamp(110px, min(34vw, 24vh), 260px);
    height: clamp(110px, min(34vw, 24svh), 260px);
  }
  .page-hero-meta { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .page-hero-meta > span[aria-hidden] { display: none; }
  .page-hero-meta .hero-controls { justify-self: start; }
  .hud { flex-direction: column; gap: 8px; }

  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .portrait { grid-column: 1 / span 4; }
  .person-copy { grid-column: 1 / -1; }

  .sec-head-main, .sec-head-aside { grid-column: 1 / -1; justify-self: start; }

  .situation { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .situation-num { grid-column: 1 / span 1; }
  .situation-title { grid-column: 2 / -1; }
  .situation-body { grid-column: 2 / -1; }
  .situation-meta { grid-column: 2 / -1; }

  .work-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .work-feature { grid-template-columns: minmax(0, 1fr); }
  .feature-figures, .feature-text { grid-column: 1 / -1; }
  .work-tile--woolworths, .work-tile--jd { grid-column: 1 / -1; grid-row: auto; }
  .work-tile--gov, .work-tile--telco, .work-tile--media { grid-column: span 3; }
  .work-tile--media { grid-column: 1 / -1; }

  .engage-head .sec-head-main, .engage-body { grid-column: 1 / -1; }
  .engage-meta { margin-left: 0; }

  .cta-copy, .cta-side { grid-column: 1 / -1; }
  .br-wide { display: none; }

  .also-col { grid-column: 1 / -1; }

  .footer-col, .footer-col--pages, .footer-col:last-child { grid-column: span 2; }
}

/* Pause motion inside the mobile menu (site.js injects it); hidden on wide
   screens and under reduced motion, like the hero pill */
@media (max-width: 959px) and (prefers-reduced-motion: no-preference) {
  .js .menu-motion-toggle { display: inline-flex; align-self: flex-start; min-height: 44px; }
}

@media (max-width: 719px) {
  :root { --t-display: clamp(3rem, 13.4vw, 3.5rem); --t-hero: var(--t-display); }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .work-tile--gov, .work-tile--telco, .work-tile--media { grid-column: 1 / -1; }

  .marquee-band-inner { flex-direction: column; align-items: stretch; gap: 14px; padding-block: 18px; }

  .portrait { grid-column: 1 / span 3; max-width: 300px; }

  /* situations stack */
  .situation { grid-template-columns: auto minmax(0, 1fr); row-gap: 14px; align-items: center; }
  .situation-num { grid-column: 1; grid-row: 1; }
  .situation-meta { grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 12px; }
  .situation-meta .glyph { order: 2; width: 32px; height: 28px; }
  .situation-title, .situation-body { grid-column: 1 / -1; }

  /* spectrum goes vertical */
  .spectrum { margin-top: var(--s8); padding-left: 0; }
  .spectrum-line--h { display: none; }
  .spectrum-line--v {
    display: block;
    left: 7px;
    top: 8px; bottom: 8px;
    width: 2px;
    height: calc(100% - 16px);
  }
  .spectrum-nodes { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .spectrum-node {
    grid-template-columns: 16px auto minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
  }
  .spectrum-index { margin-top: 0; }
  .spectrum-label { max-width: none; }

  .feature-display { font-size: clamp(2.5rem, 13vw, 4rem); }
  .feature-stats { flex-direction: column; }

  .footer-col, .footer-col--pages, .footer-col:last-child { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; }
}

@media (max-width: 520px) {
  .hl, .feature-display, .btn { white-space: normal; }
  .hl { text-wrap: balance; }
  .feature-display { text-wrap: balance; }
  .btn { text-align: center; padding-block: 12px; line-height: 1.2; }
  .marquee-label { white-space: normal; }
}

@media (max-width: 420px) {
  .hero-ctas .btn { width: 100%; }
  .cta-buttons .btn, .cta-buttons .cycle-wrap { width: 100%; }
  .hero-meta { grid-template-columns: minmax(0, 1fr); }
  .hero-controls { justify-self: start; }
  .hero-title { text-wrap: balance; }
  /* small enough that the first button lands on the first screen at 375x667 */
  :root { --t-hero: clamp(2.25rem, 11vw, 2.75rem); }
}

/* Phones on their side: a slimmer header, a menu that fits, and a hero that
   is sized by its content instead of a tall floor */
@media (max-width: 959px) and (max-height: 500px) {
  :root { --header-h: max(52px, 3.3rem); --t-hero: 2.5rem; }
  .header-inner { padding-block: 2px; }
  .js .site-nav { padding-top: 20px; padding-bottom: 20px; gap: var(--s5); }
  .js .nav-list a { min-height: 48px; padding-block: 6px; font-size: clamp(1.5rem, 7vh, 2rem); }
  .js .nav-cta { min-height: 44px; }
  .hero { min-height: 0; }
  .hero-body { padding-block: 12px 0; }
  .hero-title-wrap { margin-top: 8px; }
  .hero-lead { margin-top: 10px; font-size: 1rem; line-height: 1.55; }
  .hero-ctas { margin-top: 14px; }
  .hero-body::after { height: clamp(64px, 20vh, 120px); }
  .page-hero-body { padding-block: 20px 0; }
  .page-hero-body::after { height: clamp(48px, 16vh, 96px); }
}

/* --------------------------------------------------------------------------
   20. Reduced motion: final states, no loops
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .hero-beam, .portrait-frame::before { display: none; }
  .trail-run { animation: none !important; stroke-dasharray: none; opacity: 0; }
  .cta-plane::before, .cta-plane::after { animation: none !important; will-change: auto; }
  .cta-plane::after { display: none; }
  .cycle-run { animation: none !important; stroke-dasharray: none; opacity: 0; }
  .work-tile:focus-within .trail-run { opacity: .7; }
  @media (hover: hover) {
    .work-tile:hover .trail-run { opacity: .7; }
  }
  /* static, wrapped brand list instead of a moving strip */
  .marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { display: block; width: auto; max-width: 100%; transform: none; animation: none !important; }
  .marquee-list { flex: 1 1 auto; width: auto; flex-wrap: wrap; row-gap: 10px; }
  .marquee-list li { white-space: normal; }
  .marquee-list + .marquee-list { display: none; }
  /* both do nothing without motion */
  .hero-hint, .motion-toggle, .js .menu-motion-toggle { display: none; }
}

/* --------------------------------------------------------------------------
   21. Forced colours
   -------------------------------------------------------------------------- */
@media (forced-colors: active) {
  :focus-visible { outline: 2px solid Highlight; }
  .btn, .motion-toggle { border: 1px solid ButtonText; }
  .work-tile, .work-feature, .situation, .marquee-band, .site-header.is-stuck { border-color: CanvasText; }
  .sec-head::before, .engage-head::before { background: CanvasText; }
  .live-dot, .node::after { background: Highlight; forced-color-adjust: none; }
  .hero-copy::before, .hero::after, .cta-floor, .hero-galaxy { display: none; }
  .page-hero-copy::before, .page-hero::after { display: none; }
  .portrait-frame img { mix-blend-mode: normal; filter: none; opacity: 1; }
}

/* --------------------------------------------------------------------------
   22. Print
   -------------------------------------------------------------------------- */
@media print {
  :root { --ink: #fff; --ink-2: #fff; --ink-3: #ccc; --ink-4: #999; --bone: #111; --bone-dim: #333; --mute: #555; --hot: #a80d26; }
  html, body { background: #fff; color: #111; }
  .site-header { position: static; }
  .nav-toggle, .hero-galaxy, .hero-beam, .hero-meta, .marquee, .scroll-cue, .cta-floor, .cycle, .trail, .lock, .footer-wordmark, .skip-link { display: none !important; }
  .hero { min-height: 0; background: none; }
  .hero::after, .hero-copy::before, .situations::before { display: none; }
  .page-hero { min-height: 0; padding-top: 0; background: none; }
  .page-hero::after, .page-hero-copy::before, .page-hero-meta::before { display: none; }
  .page-hero-meta .hero-controls { display: none; }
  .page-title { color: #111; }
  .cta { background: none; color: #111; border-block: 1px solid #ccc; }
  .cta-title, .cta-body, .cta-eyebrow { color: #111; }
  .portrait-frame { background: none; }
  .portrait-frame img { mix-blend-mode: normal; filter: grayscale(1); }
  .portrait-frame::after { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .work-outcome a::after { content: ' (' attr(href) ')'; font-size: .8em; }
  .section { padding-block: 32px; }
}

/* --------------------------------------------------------------------------
   23. Interaction layer: scan and connect
   Everything here hangs off elements and classes that js/site.js injects or
   adds, so without JS none of it applies. Base styles are the end state;
   motion lives in the no-preference block below and never runs under
   html.motion-paused (section 18 also strips it). Each effect is one pass.

   State hooks owned by js/site.js:
     .btn.fx                 enhanced button (sweep moved into .fx-sweep)
     .fx-focus               plain positioned button that gets focus brackets
     .fx-scan > i            one beam in a clipped box (--row, --y, --addr)
     .fx-h / .fx-h-play      heading waiting for / given its scan reveal
     .fx-hbeam.is-on         the heading's beam
     .fx-row, .fx-pos        scan row; position:relative added to a static host
     .fx-lockon              click lock-on frame on a new-tab primary button
     .mailpop                email popover
     .spine                  scroll spine (>= 1200px)
     .page-wipe              page change overlay; html.wipe-in covers first paint
   -------------------------------------------------------------------------- */
.fx-pos { position: relative; }

/* Beam primitive. The <i> is a full-size box whose leading edge carries the
   line, so the pass is a pure transform. */
.fx-scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}
.fx-scan > i {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-100%);
}
.fx-scan > i::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 2px;
  background: linear-gradient(transparent, #fff 22%, #fff 78%, transparent);
  box-shadow: 0 0 8px var(--hot), 0 0 18px 3px rgba(255, 42, 70, .5);
}
.fx-scan > i::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 2px;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255, 42, 70, .2));
}
/* vertical variant: line on the bottom edge, travelling down */
.fx-scan--y > i { transform: translateY(-100%); }
.fx-scan--y > i::before {
  top: auto; left: 0; right: 0; bottom: 0;
  width: auto; height: 2px;
  background: linear-gradient(90deg, transparent, #fff 25%, #fff 75%, transparent);
}
.fx-scan--y > i::after {
  top: auto; left: 0; right: 0; bottom: 2px;
  width: auto; height: 64px;
  background: linear-gradient(transparent, rgba(255, 42, 70, .14));
}
.fx-scan--row { z-index: 1; }

@keyframes fx-sweep-x { 0% { transform: translateX(-100%); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(2px); opacity: 0; } }
@keyframes fx-sweep-y { 0% { transform: translateY(-100%); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(2px); opacity: 0; } }
@keyframes fx-cool { from { color: #ffd9de; text-shadow: 0 0 18px rgba(255, 42, 70, .9); } to { color: var(--bone); text-shadow: 0 0 0 rgba(255, 42, 70, 0); } }
@keyframes fx-race1 { from { stroke-dasharray: 0 100; stroke-dashoffset: 0; } to { stroke-dasharray: 50 50; stroke-dashoffset: 0; } }
@keyframes fx-race2 { from { stroke-dasharray: 0 100; stroke-dashoffset: 50; } to { stroke-dasharray: 50 50; stroke-dashoffset: 50; } }
@keyframes fx-in { from { opacity: 0; } }
@keyframes fx-corner-in { from { opacity: 0; transform: scale(1.12); } }
@keyframes fx-draw { from { stroke-dashoffset: 1; } }
@keyframes fx-pop-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } }
@keyframes fx-wipe-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fx-wipe-off { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes fx-wipe-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---- A1 / A2 / E3: buttons ---- */
.btn.fx { overflow: visible; }
.btn.fx::after { display: none; }
/* the light sweep, relocated so the button no longer clips its focus brackets */
.fx-sweep {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}
.fx-sweep::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-110%) skewX(-12deg);
  transition: transform .8s var(--ease-out);
}
@media (hover: hover) {
  .btn.fx:hover .fx-sweep::before { transform: translateX(110%) skewX(-12deg); }
}

/* A2: two points trace the ghost border and close it */
.fx-trace {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  max-width: none;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.fx-trace rect {
  fill: none;
  stroke: var(--hot);
  stroke-width: 1.5;
  stroke-dasharray: 0 100;
  filter: drop-shadow(0 0 3px var(--hot));
}
.fx-dot {
  position: absolute;
  z-index: 3;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px var(--hot);
  opacity: 0;
  pointer-events: none;
}
.fx-dot--a { top: -3px; left: -3px; }
.fx-dot--b { bottom: -3px; right: -3px; }
.btn--ghost.fx:focus-visible .fx-dot { opacity: 1; }
@media (hover: hover) {
  .btn--ghost.fx:hover .fx-dot { opacity: 1; }
}

/* E3: lock-on brackets for keyboard focus. Four corners in one pseudo-element.
   The 2px outline from section 2 stays, so focus is never less visible. */
.btn.fx::before,
.fx-focus::before,
.mailpop button::before {
  content: '';
  position: absolute;
  inset: -9px;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(var(--hot), var(--hot)) left top / 12px 2px,
    linear-gradient(var(--hot), var(--hot)) left top / 2px 12px,
    linear-gradient(var(--hot), var(--hot)) right top / 12px 2px,
    linear-gradient(var(--hot), var(--hot)) right top / 2px 12px,
    linear-gradient(var(--hot), var(--hot)) left bottom / 12px 2px,
    linear-gradient(var(--hot), var(--hot)) left bottom / 2px 12px,
    linear-gradient(var(--hot), var(--hot)) right bottom / 12px 2px,
    linear-gradient(var(--hot), var(--hot)) right bottom / 2px 12px;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .16s linear, transform .35s var(--ease-out);
}
.btn.fx:focus-visible::before,
.fx-focus:focus-visible::before,
.mailpop button:focus-visible::before {
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 0 4px var(--glow));
}

/* A1 click lock-on: drawn over the page, removed by JS */
.fx-lockon {
  position: absolute;
  z-index: 45;
  pointer-events: none;
}
.fx-lockon svg { display: block; max-width: none; overflow: visible; }
.fx-lockon-corner { fill: none; stroke: var(--hot); stroke-width: 2; filter: drop-shadow(0 0 4px var(--glow)); transform-origin: center; transform-box: fill-box; }
.fx-lockon-edge { fill: none; stroke: var(--hot); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .8; filter: drop-shadow(0 0 3px var(--hot)); }

/* ---- C1: section headings ---- */
.fx-hbeam {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}
.fx-hbeam::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hot) 8%, #fff4f1 45%, var(--hot) 90%, transparent);
  box-shadow: 0 0 8px var(--hot), 0 0 24px 4px rgba(255, 42, 70, .45);
}
.fx-hbeam::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: calc(100% - 1px);
  height: 48px;
  background: linear-gradient(to top, rgba(255, 42, 70, .14), transparent);
}

/* ---- D1: email popover ---- */
.mailpop {
  position: absolute;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  padding: 18px 18px 14px;
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  color: var(--bone);
  text-align: left;
}
.mailpop-label { color: var(--bone-dim); padding-right: 44px; }
.mailpop-addr {
  position: relative;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--ink-4);
  background: var(--ink);
  font: 400 1.0625rem/1.3 var(--f-mono);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  user-select: all;
}
.mailpop-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 14px;
}
.mailpop-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--red);
  background: var(--red);
  font: 500 var(--t-label)/1 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone);
  transition: background-color var(--dur-2) var(--ease-out);
}
@media (hover: hover) {
  .mailpop-copy:hover { background: var(--red-deep); }
}
.mailpop-copy:active { background: var(--red-deep); }
.mailpop-open {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--t-small);
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--hot);
  text-underline-offset: 5px;
}
@media (hover: hover) {
  .mailpop-open:hover { text-decoration-color: var(--bone); }
}
.mailpop-status {
  min-height: 1.4em;
  margin-top: 6px;
  font: 400 var(--t-micro)/1.4 var(--f-mono);
  letter-spacing: .06em;
  color: var(--bone-dim);
}
.mailpop-close {
  position: absolute;
  top: 4px; right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  color: var(--bone-dim);
}
@media (hover: hover) {
  .mailpop-close:hover { color: var(--bone); }
}
.mailpop-close svg { stroke: currentColor; stroke-width: 1.5; fill: none; }

/* ---- E1: scroll spine, wide screens only, centred in the left gutter ---- */
.spine { display: none; }
@media (min-width: 1200px) {
  .spine {
    display: block;
    position: fixed;
    left: calc(var(--gutter) / 2 - 12px);
    top: 50%;
    z-index: 40;
    transform: translateY(-50%);
  }
}
/* its labels need hover, so touch screens (large tablets included) go without */
@media (pointer: coarse) {
  .spine { display: none; }
}
.spine ol {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: min(56vh, calc((var(--n, 5) - 1) * 44px + 24px));
}
.spine-track {
  position: absolute;
  left: 11.5px;
  top: 12px; bottom: 12px;
  width: 1px;
  background: var(--ink-4);
  pointer-events: none;
}
.spine-prog {
  position: absolute;
  inset: 0;
  background: var(--hot);
  box-shadow: 0 0 6px var(--hot);
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.spine a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
}
.spine-node {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--mute);
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.spine a.is-lit .spine-node { background: var(--hot); border-color: var(--hot); box-shadow: 0 0 8px var(--hot); }
.spine a[aria-current] .spine-node { box-shadow: 0 0 0 3px var(--ink), 0 0 0 4px var(--hot), 0 0 10px var(--hot); }
@media (hover: hover) {
  .spine a:hover .spine-node { border-color: var(--bone); }
}
/* the h2 text is the link's name; it shows as a tag only on hover or focus */
.spine-label {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  background: var(--ink);
  border: 1px solid var(--ink-4);
  font: 400 var(--t-micro)/1.2 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bone);
  clip-path: inset(50%);
  pointer-events: none;
}
.spine a:focus-visible .spine-label { clip-path: none; }
@media (hover: hover) {
  .spine a:hover .spine-label { clip-path: none; }
}

/* ---- E2: page change ---- */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
}
.page-wipe.is-out { pointer-events: auto; }
.page-wipe-ink {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.page-wipe.is-cover .page-wipe-ink,
.page-wipe.is-out .page-wipe-ink { transform: scaleY(1); }
.page-wipe.is-reveal .page-wipe-ink { transform-origin: 50% 100%; }
.page-wipe-beam {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.page-wipe-beam::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hot) 6%, #fff4f1 40%, var(--hot) 90%, transparent);
  box-shadow: 0 0 8px var(--hot), 0 0 24px 4px rgba(255, 42, 70, .45);
}
/* covers the first paint of a page reached through a wipe; site.js hands over
   to a .page-wipe at once, and the failsafe uncovers it if site.js never runs */
html.wipe-in body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: var(--ink);
  pointer-events: none;
  animation: fx-wipe-failsafe 0s 1.4s forwards;
}
html.motion-paused.wipe-in body::after { display: none; }

/* ---- motion: only with motion allowed and not paused ---- */
@media (prefers-reduced-motion: no-preference) {
  /* A1 primary: one beam on hover or focus; E3: one short beam on any .btn focus */
  html:not(.motion-paused) .btn.fx:focus-visible .fx-scan > i { animation: fx-sweep-x .5s var(--ease-out) both; }

  /* A2 ghost */
  html:not(.motion-paused) .btn--ghost.fx:focus-visible .fx-trace .r1 { animation: fx-race1 .7s var(--ease-out) forwards; }
  html:not(.motion-paused) .btn--ghost.fx:focus-visible .fx-trace .r2 { animation: fx-race2 .7s var(--ease-out) forwards; }
  html:not(.motion-paused) .btn--ghost.fx:focus-visible .fx-dot { animation: fx-in .2s linear both; }

  /* the same passes on pointer hover, never as sticky touch hover */
  @media (hover: hover) {
    html:not(.motion-paused) .btn--primary.fx:hover .fx-scan > i { animation: fx-sweep-x .65s var(--ease-out) both; }
    html:not(.motion-paused) .btn--ghost.fx:hover .fx-trace .r1 { animation: fx-race1 .7s var(--ease-out) forwards; }
    html:not(.motion-paused) .btn--ghost.fx:hover .fx-trace .r2 { animation: fx-race2 .7s var(--ease-out) forwards; }
    html:not(.motion-paused) .btn--ghost.fx:hover .fx-dot { animation: fx-in .2s linear both; }
    html:not(.motion-paused) .fx-row:hover > .fx-scan > i { animation: fx-sweep-x .8s var(--ease-out) both; }
  }

  /* A1 lock-on: corners snap, then the frame draws */
  html:not(.motion-paused) .fx-lockon-corner { animation: fx-corner-in .3s var(--ease-out) both; }
  html:not(.motion-paused) .fx-lockon-edge { animation: fx-draw .45s .2s var(--ease-out) both; }

  /* C1: hidden until its beam passes; JS adds .fx-h-play on first view */
  html.js.reveal-armed:not(.motion-paused) .fx-h:not(.fx-h-play) { clip-path: inset(-12% -6% 100% -6%); }
  html:not(.motion-paused) .fx-h.fx-h-play {
    animation:
      scan-reveal .9s .15s var(--ease-out) backwards,
      fx-cool 1.1s .25s ease-out backwards;
  }
  html:not(.motion-paused) .fx-hbeam.is-on { animation: beam .9s .15s var(--ease-out) both; }

  /* C2 rows */
  html:not(.motion-paused) .fx-row:focus-within > .fx-scan > i { animation: fx-sweep-x .8s var(--ease-out) both; }

  /* C3 tiles and D1 address */
  html:not(.motion-paused) .fx-scan--y.is-on > i { animation: fx-sweep-y .9s var(--ease-out) both; }
  html:not(.motion-paused) .fx-scan--addr.is-on > i { animation: fx-sweep-x .9s var(--ease-out) both; }
  html:not(.motion-paused) .mailpop { animation: fx-pop-in .22s var(--ease-out) both; }

  /* E2 */
  html:not(.motion-paused) .page-wipe.is-out .page-wipe-ink { animation: fx-wipe-down .42s var(--ease-in-out) both; }
  html:not(.motion-paused) .page-wipe.is-reveal .page-wipe-ink { animation: fx-wipe-off .42s var(--ease-in-out) both; }
  html:not(.motion-paused) .page-wipe:is(.is-out, .is-reveal) .page-wipe-beam { animation: beam .42s var(--ease-in-out) both; }
}
@media (prefers-reduced-motion: reduce) {
  html.wipe-in body::after, .page-wipe { display: none; }
}
html.motion-paused .page-wipe { display: none; }

@media (forced-colors: active) {
  .fx-scan, .fx-hbeam, .fx-trace, .fx-dot, .page-wipe-beam { display: none; }
  .mailpop, .mailpop-addr { border-color: CanvasText; }
  .spine-node { border-color: CanvasText; forced-color-adjust: none; }
  .spine a.is-lit .spine-node { background: Highlight; border-color: Highlight; }
  .spine-track, .spine-prog { background: CanvasText; }
}

@media print {
  .spine, .mailpop, .page-wipe, .fx-lockon, .fx-scan, .fx-hbeam, .fx-trace, .fx-dot { display: none !important; }
  html.wipe-in body::after { display: none; }
  .fx-h { clip-path: none !important; }
}

/* Pause motion pill stays inside narrow viewports at large text sizes */
@media (max-width: 520px) { .motion-toggle { max-width: 100%; padding-inline: 12px; letter-spacing: .06em; } }
