:root, :root[data-theme="light"] {
  --bg: #fbfaf6;
  --bg-rgb: 251, 250, 246;
  --ink: #14182b;
  --ink-2: rgba(20, 24, 43, 0.84);
  --ink-3: rgba(20, 24, 43, 0.64);
  --line: rgba(20, 24, 43, 0.13);
  --gold: #f2b200;          /* marks, stars, buttons */
  --gold-text: #a06d00;     /* yellow is too light for text on white */
  --warn: #e0553a;
  --panel: rgba(255, 255, 255, 0.72);
  --vignette: rgba(20, 24, 43, 0.06);
  --btn-ink: #14182b;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1020;
  --bg-rgb: 11, 16, 32;
  --ink: #f3f1ea;
  --ink-2: rgba(243, 241, 234, 0.88);
  --ink-3: rgba(243, 241, 234, 0.66);
  --line: rgba(243, 241, 234, 0.14);
  --gold: #ffc83d;
  --gold-text: #ffc83d;
  --warn: #ff7a59;
  --panel: rgba(16, 22, 42, 0.66);
  --vignette: rgba(3, 5, 12, 0.5);
  --btn-ink: #0b1020;
  color-scheme: dark;
}
:root {
  --navy: #0b1020;
  --display: "Figtree", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --frame: 1320px; /* wide screens: everything sits in a centered frame this wide */
  --edge: max(var(--gutter), calc((100vw - var(--frame)) / 2 + var(--gutter)));
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* Page text follows the sky (data-theme flips between day and night); ease the switch. */
body, .kicker, .tag, .links, .links a, .brand, .hud, .counter, .signals li, .stat, .card, .site-footer {
  transition: color 0.8s, background-color 0.8s, border-color 0.8s;
}
::selection { background: var(--gold); color: var(--bg); }

#space {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Paper grain over the sky: a little tooth so the gradient never looks like a flat screen. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .47 0 0 0 0 .42 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── Annotations: plain words beside the art, like labels on a star chart ───────── */
#tags { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.tag {
  position: absolute;
  left: 0; top: 0;
  font: 600 13px/1 var(--sans);
  color: var(--ink-2);
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(var(--bg-rgb), 0.9), 0 0 2px rgba(var(--bg-rgb), 0.9);
  will-change: transform, opacity;
}
.tag--gold { color: var(--gold-text); }
.tag--warn { color: var(--warn); }

/* ───────── Header ───────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 0 var(--edge);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -24px 0;
  z-index: -1;
  background: linear-gradient(rgba(var(--bg-rgb), 0.94), rgba(var(--bg-rgb), 0));
  opacity: 0;
  transition: opacity 0.4s;
}
body.past-story .site-header::before { opacity: 1; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark { width: 32px; height: 32px; color: var(--ink); }
.brand__name {
  font: 800 15px/1.05 var(--display);
  letter-spacing: -0.01em;
}
.brand__powered {
  display: flex;
  flex-direction: column; /* "Powered by" above the Fourth Order Intel logotype */
  align-items: flex-start;
  gap: 3px;
  margin-right: auto; /* everything after it sits to the right */
  white-space: nowrap;
  text-decoration: none;
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font: 500 8px/1.2 var(--sans);
  letter-spacing: 0.02em;
  text-transform: lowercase; /* "powered by", small, so the logotype reads first */
  color: var(--ink-3);
}
/* The Fourth Order Intel logotype, as fourthorderintel.com sets it: always stacked, all caps, Inter Black,
   left-aligned, leading 1.25, tracking -0.025em */
.foi {
  display: inline-flex;
  flex-direction: column;
  font: 900 9px/1.25 "Inter", "Figtree", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  text-align: left;
  color: var(--ink);
}
.foi > span { display: block; }
.brand__powered .foi { font-size: 9px; }
@media (max-width: 560px) { .brand__powered { display: none; } }

.chapters { margin-left: auto; }
.brand__powered:hover { color: var(--ink); }
.links a { white-space: nowrap; }
.chapters ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
.chapters li { position: relative; }
.chapters li + li::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 6px;
  border-top: 1px dashed var(--ink-3);
}
.chapters li + li { margin-left: 6px; }
.chapters a {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  font: 600 11px/1 var(--sans);
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.chapters a:hover { border-color: var(--ink); color: var(--ink); }
.chapters a[aria-current="step"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #14182b;
  transform: translateY(-4px);
}
.chapters .label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font: 600 12px/1 var(--sans);
  color: var(--gold-text);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.chapters a[aria-current="step"] + .label { opacity: 1; }

.links {
  display: flex;
  gap: 22px;
  align-items: center;
  font: 600 15px/1 var(--sans);
}
.links a { color: var(--ink); text-decoration: none; }
.links a:hover { color: var(--gold-text); }

/* Solid, borderless, generous: the one pill we allow. */
.links .links__cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #14182b;
}
.links .links__cta:hover { color: #14182b; filter: brightness(1.05); }

/* the phone menu */
.menu-btn { display: none; }
@media (max-width: 820px) {
  .site-header { gap: 8px; }
  .links .links__cta { white-space: nowrap; padding: 8px 12px; font-size: 13px; }
  .links { gap: 0; margin-left: auto; }
  .menu-btn { flex: none; display: grid; place-items: center; width: 42px; height: 42px; margin-left: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(var(--bg-rgb), 0.35); color: var(--ink); cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; transition: transform 0.25s, opacity 0.2s; }
  .menu-btn span { position: relative; }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -6px; }
  .menu-btn span::after { top: 6px; }
  body.menu-open .menu-btn span { background: transparent; }
  body.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
  body.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
  body.menu-open .links {
    position: fixed; top: calc(var(--header-h) + 4px); left: 12px; right: 12px; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    border-radius: 16px; background: rgba(16, 20, 40, 0.97); box-shadow: 0 20px 50px rgba(10, 8, 30, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  body.menu-open .links a:not(.links__cta) { display: block; padding: 14px 12px; font-size: 18px; color: #f3f1ea; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  body.menu-open .links a[aria-current="page"] { color: #ffc83d; }
  body.menu-open .links .links__cta { margin-top: 10px; text-align: center; padding: 14px 18px; }
}

@media (max-width: 359px) { body:not(.menu-open) .links .links__cta { display: none; } } /* the smallest phones: it lives in the menu */

/* ───────── Chapters ───────── */
main { position: relative; z-index: 3; }

.chapter { position: relative; height: calc(var(--len) * 1vh); }
.chapter--end { height: 0; overflow: hidden; }
.pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--header-h) var(--edge) 64px;
  pointer-events: none;
}
.pin a, .pin button { pointer-events: auto; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 700 15px/1.2 var(--sans);
  color: var(--ink-2);
}
/* the chapter mark: the same numbered circle as the chapter nav */
.kicker__num {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font: 700 11px/1 var(--sans);
  font-variant-numeric: tabular-nums;
}
.kicker--gold { color: var(--gold-text); }
.kicker--warn { color: var(--warn); }

h1, h2, h3 { font-weight: 400; margin: 0; }
h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
mark { background: none; color: inherit; box-shadow: inset 0 -0.2em 0 var(--gold); }

/* Hero: a heavy stacked title, after the Strategyzer Series covers */
.hero { max-width: 900px; }
.chapter--hero .pin { padding-bottom: 150px; } /* leave the horizon to the clouds */
/* social proof: a centered bar under the hero, one even row of past clients in white */
.hero__proof-bar { width: min(calc(var(--frame) - var(--gutter) * 2), calc(100vw - var(--edge) * 2)); margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
.proof-logos {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px clamp(28px, 4vw, 56px);
}
.proof-logos img { display: block; height: var(--h, 22px); width: auto; max-width: 140px; filter: brightness(0) invert(1); opacity: 0.82; }
.proof-logos img.is-knocked { filter: none; }
.chapter--hero .is-active .proof-logos { transition-delay: 1.3s; }
/* one row from tablets up: the logos step down in size instead of orphaning one on a second line */
@media (max-width: 1199px) { .proof-logos { flex-wrap: nowrap; gap: 28px; } .proof-logos img { height: calc(var(--h, 22px) * 0.85); } }
@media (max-width: 899px) { .proof-logos img { height: calc(var(--h, 22px) * 0.74); } }
@media (max-width: 699px) { .hero__proof-bar { text-align: left; } .proof-logos { flex-wrap: wrap; justify-content: flex-start; gap: 18px 26px; } .proof-logos img { height: calc(var(--h, 22px) * 0.8); } }
.hero__proof { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chapter--hero .is-active .hero__proof { transition-delay: 1.15s; }
.hero__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(52px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.hero__line { display: block; white-space: nowrap; } /* always two lines: "Market fit isn't" / "a one-time event." */
.hero__lede {
  max-width: 520px;
  margin: 28px 0 0;
  font-size: 19px;
  color: var(--ink);
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero .button--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.hero .button--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.chapter--hero .is-active .hero__actions { transition-delay: 1s; }

/* Logo bar: past clients, at the hero's horizon; fades as dusk arrives */
.logobar {
  position: absolute;
  left: 0; right: 0; bottom: 34px;
  pointer-events: auto;
  transition: opacity 0.2s linear;
}
.logobar__label { margin: 0 var(--gutter) 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.logobar__track {
  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);
}
.logobar__row { display: flex; align-items: flex-end; gap: 22px; width: max-content; padding: 10px 0 6px; animation: logos 70s linear infinite; }
/* a paper cloud carrying one client's logo */
.cloud {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px; height: 92px;
  padding-top: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 96'%3E%3Cg fill='%23fdfbf6'%3E%3Ccircle cx='58' cy='58' r='30'/%3E%3Ccircle cx='98' cy='44' r='40'/%3E%3Ccircle cx='142' cy='58' r='30'/%3E%3Crect x='30' y='56' width='142' height='38' rx='19'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 6px 10px rgba(16, 24, 60, 0.22));
}
.cloud:nth-child(3n + 2) { width: 168px; height: 82px; transform: translateY(-10px); }
.cloud:nth-child(3n) { width: 206px; height: 98px; }
.cloud img { height: 22px; width: auto; max-width: 104px; object-fit: contain; filter: brightness(0); opacity: 0.62; }
.logobar__row img.raster { filter: grayscale(1) contrast(1.4); mix-blend-mode: multiply; opacity: 0.62; }
.logobar:hover .logobar__row { animation-play-state: paused; }
@keyframes logos { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logobar__row { animation: none; flex-wrap: wrap; width: auto; } }

.scroll-cue {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font: 600 14px/1 var(--sans);
  color: var(--ink-3);
  text-decoration: none;
  transition: opacity 0.4s;
}
.scroll-cue i {
  width: 1px; height: 36px;
  background: linear-gradient(var(--ink-3), transparent);
  animation: cue 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
body.scrolled .scroll-cue { opacity: 0; }

/* Story copy */
.copy {
  position: relative;
  width: min(440px, 36vw);
  min-height: 60vh;
  display: grid;
}
.copy--wide { width: min(980px, 100%); margin: 0 auto; }
.beat {
  grid-area: 1 / 1;
  align-self: center;
  visibility: hidden;
}
.beat.is-active { visibility: visible; }
/* a soft halo behind story type, so stars and particles never break up the letters */
.pin h2, .beat p, .beat__main p { text-shadow: 0 1px 2px rgba(var(--bg-rgb), 0.6), 0 0 18px rgba(var(--bg-rgb), 0.75); }
.beat > p:not(.kicker):not(.counter) { color: var(--ink-2); margin: 22px 0 0; max-width: 400px; }

/* Short screens (most laptops): tighter type so every beat fits between the header and the HUD */
@media (min-width: 821px) and (max-height: 820px) {
  .pin h2 { font-size: clamp(28px, 3vw, 42px); }
  .beat > p:not(.kicker):not(.counter), .beat__main > p:not(.kicker) { margin-top: 14px; }
  .kicker { margin-bottom: 12px; }
}

/* Reveal transitions */
.reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), filter 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1), color 0.8s;
}
.is-active .reveal, .is-active.reveal { opacity: 1; filter: blur(0); transform: none; }
.is-active .reveal:nth-of-type(2) { transition-delay: 0.08s; }
.is-active .reveal:nth-of-type(3) { transition-delay: 0.18s; }
.is-active .reveal:nth-of-type(4) { transition-delay: 0.28s; }
.chapter--hero .reveal { transition-duration: 1.4s; }
.chapter--hero .is-active .hero__title { transition-delay: 0.2s; }
.chapter--hero .is-active .hero__aside { transition-delay: 0.55s; }
.chapter--hero .is-active .hero__lede { transition-delay: 0.8s; }

.counter {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: clamp(72px, 9vw, 128px);
  line-height: 0.9;
  color: var(--gold-text);
  font-variant-numeric: tabular-nums;
}
.counter small {
  display: block;
  margin-top: 8px;
  font: 600 16px/1.2 var(--sans);
  letter-spacing: 0;
  color: var(--ink-3);
}
.source { font-size: 13px !important; color: var(--ink-3) !important; }

.signals {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.signals li {
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-2);
  font-size: 15px;
}
.signals li::before {
  content: "";
  position: absolute;
  left: 2px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 10px var(--warn);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.stat {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(8px);
}
.stat__num {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1;
}
.stat__num span { color: var(--ink-3); }
.stat__label { margin: 14px 0 0; color: var(--ink-2); }

/* ───────── Conventional sections ───────── */
.section {
  position: relative;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 120px var(--gutter);
}
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head h2 { margin-top: 4px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  padding: 32px 28px 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card__num { margin: 0 0 48px; font: 800 15px/1 var(--display); color: var(--gold-text); }
.card h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 28px; line-height: 1.05; }
.card p:last-child { margin: 14px 0 0; color: var(--ink-2); font-size: 16px; }

.posts { border-top: 1px solid var(--line); }
.post {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 0.3s, color 0.3s;
}
.post:hover { padding-left: 12px; }
.post:hover h3, .post:hover .post__arrow { color: var(--gold-text); }
.post__meta { margin: 0; font: 600 14px/1.4 var(--sans); color: var(--ink-3); }
.post h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; transition: color 0.3s; }
.post__arrow { font-size: 22px; color: var(--ink-3); transition: color 0.3s; }

.section--cta {
  max-width: none;
  margin: 40px var(--gutter) 0;
  padding: 140px var(--gutter) 160px;
  border-radius: 28px;
  text-align: center;
  background: var(--navy);
  color: #f3f1ea;
  --ink-2: rgba(243, 241, 234, 0.7);
  --gold: #ffc83d;
  --gold-text: #ffc83d;
  --btn-ink: #0b1020;
}
:root[data-theme="dark"] .section--cta { background: #131b36; }
.section--cta h2 { font-size: clamp(44px, 6.5vw, 96px); font-weight: 900; letter-spacing: -0.045em; }
.section__lede { max-width: 520px; margin: 22px auto 40px; color: var(--ink-2); }
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--btn-ink);
  font: 700 15px/1 var(--sans);
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(242, 196, 109, 0.5);
  transition: box-shadow 0.3s, transform 0.3s;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button--ghost { background: none; color: #f3f1ea; box-shadow: inset 0 0 0 1.5px rgba(243, 241, 234, 0.35); }
.button--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(243, 241, 234, 0.8); }
.stats--inline { display: flex; gap: 36px; margin-top: 28px; }
.stats--inline p { margin: 0; color: var(--ink-2); font-size: 15px; }
.stats--inline strong { display: block; font: 900 clamp(40px, 4vw, 56px)/1 var(--display); letter-spacing: -0.04em; color: var(--gold-text); margin-bottom: 6px; }
.button:hover { box-shadow: 0 0 40px 4px rgba(242, 196, 109, 0.35); transform: translateY(-2px); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--gutter) 80px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}
.site-footer p { margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-powered { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--line); text-transform: lowercase; }
.footer-powered .foi { font-size: 10px; }
.powered { margin: 36px 0 0; font-size: 14px; color: rgba(243, 241, 234, 0.75); }
.powered a, .person__role a, .profile__bench a, .article__lede a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-links a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }

/* ───────── Team ───────── */
.section__lede--left { margin: 16px 0 0; text-align: left; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person { padding: 26px; border-radius: 16px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); backdrop-filter: blur(8px); }
.person__photo {
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #2c3a78, #f2b200);
  color: #fff; font: 800 22px/1 var(--display);
}
.person h3 { margin-top: 18px; font: 800 22px/1.1 var(--display); letter-spacing: -0.02em; }
.person__role { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--gold-text); }
.person p:last-child { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; } }
.profile { display: grid; grid-template-columns: 160px 1fr; gap: 36px; padding: 36px; border-radius: 20px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); backdrop-filter: blur(8px); }
.profile__photo { width: 160px; height: 160px; font-size: 44px; }
.profile h3 { font: 900 clamp(30px, 3.4vw, 44px)/1 var(--display); letter-spacing: -0.04em; }
.profile__bio { max-width: 620px; margin: 16px 0 0; font-size: 18px; color: var(--ink-2); }
.profile__proof { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.profile__proof li { padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.profile__proof strong { display: block; margin-bottom: 4px; font-size: 16px; color: var(--ink); }
.profile__stats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.profile__stats li { padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.profile__stats strong { display: block; margin-bottom: 6px; font: 900 clamp(30px, 3vw, 40px)/1 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.profile__bench { margin: 22px 0 0; font-size: 14px; color: var(--ink-3); }
@media (max-width: 820px) { .profile { grid-template-columns: 1fr; } .profile__proof, .profile__stats { grid-template-columns: 1fr; } }

/* ───────── Back to top ───────── */
.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: 64px;
  z-index: 11;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
          backdrop-filter: blur(14px) saturate(1.4);
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px rgba(10, 8, 30, 0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; }

/* ───────── Progress: a hairline across the top, with a tick at each chapter ───────── */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 12; pointer-events: none; background: var(--line); }
.progress > i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.progress span i { position: absolute; top: 0; width: 1px; height: 3px; background: rgba(var(--bg-rgb), 0.9); }

.expertise { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; border-top: 1px solid var(--line); max-width: 460px; }
.expertise li { border-bottom: 1px solid var(--line); }
.expertise a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.expertise a span { opacity: 0; transform: translateX(-4px); transition: opacity 0.2s, transform 0.2s; }
.expertise a:hover { color: var(--ink); }
.expertise a:hover span { opacity: 1; transform: none; }

/* The Potbelly ad test: return on ad spend as a chart on the right, where the orbits were */
.roas-chart {
  margin: 0; padding: 30px 32px 26px; border-radius: 20px;
  /* solid enough that stars never sit on the numbers; no backdrop blur, which re-blurred the moving sky every frame */
  background: linear-gradient(180deg, rgba(30, 34, 62, 0.98), rgba(16, 19, 38, 0.99));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 24px 60px rgba(0, 0, 0, 0.5), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.roas-chart figcaption { margin-bottom: 22px; font: 700 13px/1 var(--sans); color: var(--ink-3); }
.roas-chart__row + .roas-chart__row { margin-top: 24px; }
.roas-chart__row p { margin: 0 0 10px; font-size: 14px; color: var(--ink-3); }
.roas-chart__row strong { display: block; margin-bottom: 2px; font: 800 18px/1.2 var(--display); color: var(--ink); }
.roas-chart__row--win strong { color: var(--gold-text); }
.is-active .roas-chart__row:nth-of-type(1) { transition-delay: 0.1s; }
.is-active .roas-chart__row:nth-of-type(2) { transition-delay: 0.18s; }
.is-active .roas-chart__row:nth-of-type(3) { transition-delay: 0.26s; }
/* return on ad spend as rockets, ranked: each one launches into place, flames flickering */
.rockets { display: flex; align-items: center; gap: 12px; }
.rockets__fleet { display: flex; gap: 4px; color: #e9e4d6; }
.rockets__fleet svg {
  width: 26px; height: 36px; overflow: visible;
  transform: rotate(40deg) translate(-6px, 18px); opacity: 0;
  transition: opacity 0.3s, transform 0.45s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(0.15s + var(--i) * 0.03s);
}
.is-active .rockets__fleet svg { opacity: 1; transform: rotate(40deg); }
.rockets__flame { transform-origin: 0 9px; }
.is-active .rockets__flame { animation: flame 0.24s ease-in-out infinite alternate; } /* flicker only while the chart is on screen */
@keyframes flame { from { transform: scaleY(0.7); opacity: 0.75; } to { transform: scaleY(1.15); opacity: 1; } }
.rockets b { margin-left: auto; padding-left: 12px; font: 900 30px/1 var(--display); letter-spacing: -0.03em; color: var(--ink-2); }
.roas-chart__row--win .rockets__fleet { color: var(--gold); }
.roas-chart__row--win .rockets__fleet { filter: drop-shadow(0 0 6px rgba(255, 200, 61, 0.35)); } /* one glow per row, not one per rocket */
.roas-chart__row--win .rockets b { color: var(--gold-text); font-size: 40px; }
@media (prefers-reduced-motion: reduce) { .rockets__flame { animation: none; } }
@media (max-width: 820px) {
  .roas-chart { padding: 18px; }
  .rockets__fleet { flex-wrap: wrap; gap: 2px; }
  .rockets__fleet svg { width: 15px; height: 22px; }
  .rockets b { font-size: 22px; }
  .roas-chart__row--win .rockets b { font-size: 28px; }
}
/* grid children may shrink below their content, so one wide row can't push the page sideways */
.beat, .beat__main, .roas-chart, .services-grid { min-width: 0; }

/* North star on a warm sky: deeper ink so the copy holds its contrast against orange */
#alignment { --ink-2: rgba(20, 24, 43, 0.86); --ink-3: rgba(20, 24, 43, 0.66); --gold-text: #7a4a00; --line: rgba(20, 24, 43, 0.18); }
.copy--split { width: 100%; }
.copy--split .beat:not(.beat--split) { max-width: min(440px, 36vw); }
/* part two: the orbits have made their point, so the services take the right side */
.beat--split { display: grid; grid-template-columns: min(440px, 36vw) minmax(0, 620px); justify-content: space-between; align-items: center; gap: 48px; }
.beat__main > p:not(.kicker) { color: var(--ink-2); margin: 22px 0 0; max-width: 400px; }
.services-grid li { transition-delay: 0.35s; }
.is-active .services-grid li:nth-child(2) { transition-delay: 0.45s; }
.is-active .services-grid li:nth-child(3) { transition-delay: 0.55s; }
.is-active .services-grid li:nth-child(4) { transition-delay: 0.65s; }
.is-active .services-grid li:nth-child(5) { transition-delay: 0.75s; }
.is-active .services-grid li:nth-child(6) { transition-delay: 0.85s; }
.services-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.services-grid a {
  position: relative;
  display: block;
  height: 100%;
  padding: 20px 44px 20px 22px;
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.62);
  box-shadow: 0 0 0 1px rgba(20, 24, 43, 0.08), 0 10px 30px rgba(120, 60, 20, 0.08);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.services-grid strong { display: block; margin-bottom: 6px; font: 800 17px/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.services-grid span { position: absolute; top: 20px; right: 20px; color: var(--gold-text); transition: transform 0.25s; }
.services-grid a:hover { transform: translateY(-2px); background: rgba(255, 252, 246, 0.85); box-shadow: 0 0 0 1px rgba(20, 24, 43, 0.12), 0 14px 34px rgba(120, 60, 20, 0.14); }
.services-grid a:hover span { transform: translateX(3px); }
@media (max-width: 820px) {
  .copy--split .beat:not(.beat--split) { max-width: none; }
  .beat--split { grid-template-columns: 1fr; gap: 24px; }
}

/* ───────── HUD ───────── */
.hud {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  padding: 18px var(--edge);
  font: 600 13px/1 var(--sans);
  color: var(--ink-3);
  pointer-events: none;
}
.hud p { margin: 0; display: flex; align-items: center; gap: 8px; }
.hud { transition: opacity 0.4s, visibility 0.4s; }
body.in-hero .hud { opacity: 0; visibility: hidden; }

/* the Easter egg: a small rocket beside the chapter name */
.ff-launch { pointer-events: auto; display: grid; place-items: center; width: 26px; height: 26px; margin: -6px 0 -6px -4px; padding: 0; border: 0; background: none; color: var(--ink-3); cursor: pointer; transition: color 0.2s, transform 0.25s; }
.ff-launch svg { width: 14px; height: 20px; transform: rotate(40deg); }
.ff-launch__flame { opacity: 0; transition: opacity 0.2s; }
.ff-launch:hover, .ff-launch:focus-visible { color: var(--gold-text); transform: translate(2px, -3px); }
.ff-launch:hover .ff-launch__flame, .ff-launch:focus-visible .ff-launch__flame { opacity: 1; }

/* Endless Market Fit, full screen */
html.ff-open { overflow: hidden; }
.ff { position: fixed; inset: 0; z-index: 100; background: #0b0e1c; color: #f3f1ea; touch-action: none; }
.ff[hidden] { display: none; }
.ff__canvas { display: block; }
.ff__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: #f3f1ea; font-size: 16px; cursor: pointer; }
.ff__mute { position: absolute; top: 16px; right: 64px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: #f3f1ea; cursor: pointer; }
.ff__mute svg { width: 20px; height: 20px; }
.ff__mute .ff__x, .ff__mute[aria-pressed="true"] .ff__waves { display: none; }
.ff__mute[aria-pressed="true"] .ff__x { display: inline; }
.ff__mute[aria-pressed="true"] { color: rgba(243, 241, 234, 0.5); }
.ff__screen { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; pointer-events: none; }
.ff__screen[hidden] { display: none; }
.ff__screen > * { pointer-events: auto; }
.ff__screen h2 { margin: 0; font: 900 clamp(40px, 7vw, 84px)/0.95 var(--display); letter-spacing: -0.04em; color: #f3f1ea; }
.ff__screen p { margin: 0; max-width: 460px; font-size: 18px; color: rgba(243, 241, 234, 0.75); }
.ff__screen .ff__keys { font-size: 14px; color: rgba(243, 241, 234, 0.5); }
.ff__screen .ff__score { font: 800 20px/1 var(--display); color: #ffc83d; }
.ff__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
/* the 80s logo: chrome over a sunset, then neon */
.emf-logo { margin: 0 0 8px; display: grid; justify-items: center; line-height: 0.9; transform: skewX(-8deg); }
.emf-logo__chrome {
  position: relative;
  font: italic 900 clamp(64px, 13vw, 150px)/0.9 var(--display);
  letter-spacing: -0.02em;
  padding: 0 0.12em 0 0.04em; /* room for the italic overhang */
  background: linear-gradient(180deg, #ffffff 0%, #cfe2ff 30%, #5d7fd0 48%, #1d2a66 50%, #7a2a6e 52%, #ff7a3d 68%, #ffd27a 86%, #fff6d6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 5px 0 #1d0f3a) drop-shadow(0 0 22px rgba(255, 79, 216, 0.45));
}
.emf-logo__neon {
  margin-top: 14px;
  font: 400 clamp(26px, 5vw, 56px)/1 'Monoton', var(--display);
  letter-spacing: 0.06em;
  color: #ffd6f5;
  text-shadow: 0 0 1px #2a0a3a, 0 0 3px #fff, 0 0 9px #ff4fd8, 0 0 20px #ff4fd8, 0 0 40px #c21aa8;
  animation: emf-flicker 5s infinite;
}
@keyframes emf-flicker { 0%, 91%, 95%, 100% { opacity: 1; } 92%, 94% { opacity: 0.55; } }
/* the copy sits on a dark glass panel so the sun and grid never run through it */
.emf-panel { display: grid; justify-items: center; gap: 16px; max-width: 520px; margin-top: 18px; padding: 22px 26px; border-radius: 18px; background: rgba(11, 14, 28, 0.84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 79, 216, 0.25); }
.ff__screen .emf-panel p { color: rgba(243, 241, 234, 0.9); }
.ff__screen .emf-panel .ff__keys { color: rgba(243, 241, 234, 0.6); }
@media (prefers-reduced-motion: reduce) { .emf-logo__neon { animation: none; } }
.ff__card { max-width: 620px; max-height: calc(100vh - 48px); overflow: auto; display: grid; justify-items: center; gap: 14px; padding: 32px; border-radius: 22px; background: rgba(13, 16, 32, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 80px rgba(0, 0, 0, 0.6); }
.ff__card h2 { font-size: clamp(30px, 4.4vw, 46px); }
.ff__screen .ff__kicker { font: 700 14px/1 var(--sans); color: #ffc83d; }
.ff__screen .ff__hits { font-size: 17px; color: rgba(243, 241, 234, 0.85); }
.ff__wrapped { position: relative; isolation: isolate; width: 100%; height: clamp(340px, 54vh, 480px); margin: 4px 0; border-radius: 20px; overflow: hidden; background: #1d2a66; text-align: left; -webkit-user-select: none; user-select: none; }
.ff__bg { position: absolute; inset: -30px; z-index: -2; background: center / cover no-repeat; filter: blur(22px) brightness(0.45) saturate(1.2); }
/* the whole photo, never cropped: it sits between the label and the text, over a blurred copy of itself */
.ff__ph { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: contain; padding: 54px 18px calc(var(--foot, 140px) + 22px); filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55)); }
.ff__art { position: absolute; inset: 40px 20% 140px; z-index: -1; width: 60%; height: auto; }
/* one photo per slide; the photos crossfade as the story moves */
/* one photo at a time: the new one fades in on top, and the old one drops out once it's covered */
.ff__media { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 0s linear 0.6s; }
.ff__media.is-on { z-index: -1; opacity: 1; transition: opacity 0.6s ease; }
.ff__media .ff__ph { transition: transform 4.6s ease-out; }
.ff__media.is-on .ff__ph { transform: scale(1.04); } /* a slow push-in while the slide plays */
/* the question after the setup: the photo dims, and three answers sit over it */
/* the outcome label would give the answer away, so it waits until the question is answered */
.ff__wrapped.is-asking .ff__label span { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .ff__media .ff__ph, .ff__media.is-on .ff__ph { transition: none; transform: none; } }
@keyframes ff-pop { 50% { transform: scale(1.03); } }
@keyframes ff-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.ff__wrapped::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11, 14, 28, 0.7) 0%, rgba(11, 14, 28, 0) 14%, rgba(11, 14, 28, 0) 62%, rgba(11, 14, 28, 0.88) 78%, rgba(11, 14, 28, 0.95) 100%); }
.ff__bars { position: absolute; z-index: 2; top: 12px; left: 14px; right: 14px; display: flex; gap: 5px; }
.ff__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.ff__bars i::before { content: ""; display: block; width: 0; height: 100%; background: #fff; }
.ff__bars i.done::before { width: 100%; }
.ff__bars i.now::before { animation: ff-bar var(--dur, 4200ms) linear forwards; }
.ff__wrapped.is-paused .ff__bars i.now::before { animation-play-state: paused; }
@keyframes ff-bar { to { width: 100%; } }
.ff__wrapped .ff__label { position: absolute; z-index: 2; top: 26px; left: 16px; right: 16px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
/* how-to-play slides each carry their own picture, above the text */
.ff__wrapped--how { background: radial-gradient(70% 60% at 50% 35%, rgba(255, 200, 61, 0.1), transparent 70%), #10132a; }
.ff__visuals { position: absolute; inset: 44px 16px auto; bottom: calc(var(--foot, 140px) + 16px); z-index: 1; }
.ff__visual { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: ff-slide 0.45s cubic-bezier(.2,.7,.2,1); } /* the picture always fits the space above the text */
.ff__visual[hidden] { display: none; }
/* the slide and the credit stack from the bottom, so a long fact pushes up instead of colliding */
.ff__foot { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 12px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.ff__foot a { pointer-events: auto; }
.ff__slide { animation: ff-slide 0.45s cubic-bezier(.2,.7,.2,1); }
@keyframes ff-slide { from { opacity: 0; transform: translateY(10px); } }
.ff__slide h3 { margin: 0 0 8px; font: 900 clamp(26px, 4vw, 34px)/1.05 var(--display); letter-spacing: -0.03em; color: #fff; }
.ff__screen .ff__slide p { max-width: none; margin: 0; font-size: 16px; line-height: 1.4; color: rgba(255, 255, 255, 0.92); }
.ff__slide strong { display: block; margin-bottom: 8px; font: 900 clamp(24px, 3.6vw, 34px)/1.1 var(--display); letter-spacing: -0.025em; color: #ffc83d; } /* the impact, in a short sentence; the number sits underneath as proof */
.ff__slide strong.is-quote { font: 800 italic clamp(20px, 3vw, 26px)/1.2 var(--display); letter-spacing: -0.01em; color: #fff; }
.ff__screen .ff__credit { max-width: none; margin: 0; font-size: 11px; line-height: 1.35; color: rgba(255, 255, 255, 0.6); }
.ff__credit a { color: inherit; position: relative; z-index: 3; }
.ff__tap { position: absolute; z-index: 1; top: 0; bottom: 0; width: 35%; padding: 0; border: 0; background: none; cursor: pointer; }
.ff__tap--prev { left: 0; cursor: w-resize; }
.ff__tap--next { right: 0; cursor: e-resize; }
.ff__tap:focus-visible { outline: 2px solid #ffc83d; outline-offset: -4px; border-radius: 20px; }
@media (prefers-reduced-motion: reduce) { .ff__slide { animation: none; } }
.ff__screen .ff__label { font: 700 12px/1 var(--sans); color: rgba(243, 241, 234, 0.5); }
.ff__label span { margin-left: 8px; color: #ffc83d; }
.ff__card--over { gap: 12px; }
.ff__form { width: 100%; display: grid; gap: 10px; text-align: left; }
.ff__form label { display: grid; gap: 4px; font-size: 13px; color: rgba(243, 241, 234, 0.6); }
.ff__form input[type="email"], .ff__form input[name="name"] { padding: 11px 14px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: #f3f1ea; font: 500 16px var(--sans); }
.ff__form input:focus { outline: 2px solid #ffc83d; outline-offset: 1px; }
.ff__form .ff__check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(243, 241, 234, 0.7); }
.ff__form .button { justify-self: start; }
.ff__form label > span { display: flex; justify-content: space-between; }
.ff__count { font-style: normal; color: rgba(243, 241, 234, 0.4); }
.ff__form input[aria-invalid="true"] { border-color: #ff8a9a; }
.ff__screen .ff__field-error { margin: -4px 0 0; min-height: 0; font-size: 13px; line-height: 1.4; color: #ff8a9a; }
.ff__screen .ff__field-error:empty { display: none; }
.ff__screen .ff__fine { font-size: 12px; color: rgba(243, 241, 234, 0.5); }
.ff__fine a { color: rgba(243, 241, 234, 0.75); }
.ff__screen .ff__error { min-height: 18px; font-size: 13px; color: #ff8a9a; }
.ff__board { width: 100%; text-align: left; }
.ff__board ol { list-style: none; margin: 0; padding: 0; }
.ff__board li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; color: rgba(243, 241, 234, 0.75); }
.ff__board li span { color: rgba(243, 241, 234, 0.4); }
.ff__board li b { color: #f3f1ea; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff__board li em { font-style: normal; font-size: 12px; color: rgba(243, 241, 234, 0.45); }
.ff__board li strong { font: 800 15px/1 var(--display); color: #ffc83d; }
.ff__board li.is-me { color: #f3f1ea; }
.ff__board li.is-me b { color: #ffc83d; }
.ff__screen .ff__muted { font-size: 14px; color: rgba(243, 241, 234, 0.5); }
/* Launch fills up, then unlocks, so a mashed space bar can't skip the card */
.ff__launch { position: relative; overflow: hidden; }
.ff__launch:disabled { opacity: 0.55; cursor: default; }
.ff__ready { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #1d2a66; transform-origin: left; animation: ff-ready 1.8s linear forwards; }
@keyframes ff-ready { from { transform: scaleX(0); } to { transform: scaleX(1); opacity: 0; } }
.ff__launch-hint { min-height: 1.2em; color: #ffc83d !important; }
/* phone controls */
.ff__pad { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); pointer-events: none; }
.ff__pad[hidden] { display: none; }
.ff__pad button { pointer-events: auto; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #f3f1ea; font: 700 20px/1 var(--sans); touch-action: none; -webkit-user-select: none; user-select: none; }
.ff__pad .ff__fire { margin-left: auto; width: 84px; height: 84px; background: rgba(255, 200, 61, 0.2); border-color: rgba(255, 200, 61, 0.6); color: #ffc83d; font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.ff__pad button.is-down { background: rgba(255, 200, 61, 0.35); }
/* Stage, game-over and leaderboard screens: one centered modal. The story or score on top, the
   actions in a bar along the bottom. The game stays visible behind, dimmed and tinted by the challenge. */
.ff__screen { overflow-y: auto; place-content: safe center; background: radial-gradient(60% 55% at 50% 40%, rgba(var(--tone, 255, 200, 61), 0.12), transparent 70%); }
.ff__screen:has(.ff__modal) { background: radial-gradient(60% 55% at 50% 40%, rgba(255, 200, 61, 0.06), transparent 70%), rgba(6, 8, 18, 0.72); }
.ff__modal {
  width: min(660px, calc(100vw - 32px)); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; background: #12152a; text-align: left;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ff__modal .ff__wrapped { flex: none; height: clamp(280px, 52vh, 460px); margin: 0; border-radius: 0; }
.ff__modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; gap: 10px; padding: 22px 26px 20px; }
.ff__modal-body h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1; letter-spacing: -0.03em; text-align: left; }
.ff__modal .ff__kicker { color: rgb(var(--tone, 255, 200, 61)); }
.ff__screen .ff__modal .ff__hits { max-width: none; text-align: left; font-size: 16px; line-height: 1.5; color: rgba(243, 241, 234, 0.85); }
.ff__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 14px 26px; border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); }
.ff__bar-group { display: flex; gap: 8px; flex-wrap: wrap; }
.ff__screen .ff__bar .ff__launch-hint { margin: 0; text-align: left; }
/* game over */
.ff__modal--over { width: min(720px, calc(100vw - 32px)); }
.ff__modal .ff__score-big { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ff__modal--over .ff__board { max-height: 196px; overflow-y: auto; padding: 4px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.ff__screen .ff__form-title { margin: 8px 0 0; font: 800 17px/1.2 var(--display); color: #f3f1ea; }
.ff__modal--over .ff__form { gap: 8px; }
.ff__modal--board { width: min(560px, calc(100vw - 32px)); }
@media (max-width: 820px) {
  .ff__screen { padding: 60px 10px 12px; }
  .ff__modal { max-height: calc(100vh - 72px); border-radius: 20px; }
  .ff__modal .ff__wrapped { height: clamp(260px, 52vh, 440px); }
  .ff__modal .ff__wrapped--how { height: clamp(300px, 60vh, 560px); } /* room for the how-to pictures on a tall phone */
  .ff__modal-body { padding: 18px 18px 16px; }
  .ff__bar { padding: 12px 12px 12px 18px; }
  .ff__modal--over .ff__bar { flex-wrap: wrap; }
  .ff__modal--over .ff__save { width: 100%; justify-content: center; }
}
/* The stage card, as a game show: the story, then the question on its own screen, then the answer and its
   prize, then the facts, then an arcade title card. One phone-sized column, centered on a desktop. */
.ff__show { position: relative; width: min(440px, calc(100vw - 24px)); height: min(760px, calc(100vh - 40px)); border-radius: 26px; overflow: hidden; background: #0b0e1c; text-align: left; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.ff__show > .ff__story, .ff__ask, .ff__reveal, .ff__stagecard { position: absolute; inset: 0; display: none; }
.ff__show[data-phase="setup"] > .ff__story, .ff__show[data-phase="facts"] > .ff__story { display: block; }
.ff__show[data-phase="ask"] .ff__ask { display: flex; }
.ff__show[data-phase="reveal"] .ff__reveal { display: block; }
.ff__show[data-phase="stage"] .ff__stagecard { display: flex; }
.ff__show[data-phase="stage"] { background: transparent; box-shadow: none; } /* the synthwave sun shows through */
.ff__show .ff__wrapped { height: 100%; margin: 0; border-radius: 0; }
.ff__next { position: absolute; z-index: 5; top: 26px; right: 12px; display: none; padding: 7px 12px; border: 0; border-radius: 10px; background: rgba(11, 14, 28, 0.6); color: #fff; font: 700 13px/1 var(--sans); cursor: pointer; }
.ff__show[data-phase="setup"] .ff__next, .ff__show[data-phase="facts"] .ff__next, .ff__show[data-phase="reveal"] .ff__next { display: block; }
.ff__next:focus-visible { outline: 2px solid #ffc83d; outline-offset: 2px; }
.ff__wrapped.is-asking .ff__outcome { visibility: hidden; } /* the outcome would give the answer away */

/* modern stories: the photo fills the screen, the year sits up top like a phone clock, and each slide is a notification */
.ff__story--phone .ff__ph { padding: 108px 16px calc(var(--foot, 160px) + 26px); }
.ff__story--phone .ff__year { position: absolute; z-index: 2; top: 40px; left: 0; right: 0; margin: 0; text-align: center; font: 300 54px/1 var(--sans); letter-spacing: -0.02em; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.ff__story--phone .ff__foot { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px 12px; border-radius: 20px; background: rgba(246, 246, 250, 0.92); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ff__story--phone .ff__slide h3, .ff__story--phone .ff__slide strong, .ff__story--phone .ff__slide strong.is-quote { color: #111522; }
.ff__screen .ff__story--phone .ff__slide p { color: #2b3044; text-shadow: none; }
.ff__screen .ff__story--phone .ff__credit, .ff__story--phone .ff__credit a { color: rgba(17, 21, 34, 0.55); }
.ff__story--phone .ff__slide h3, .ff__story--phone .ff__slide strong { text-shadow: none; }

/* older stories: a newspaper clipping, with the photo printed in black and white and the year stamped in red */
.ff__story--paper { background: #e9e1cc; color: #1d1a14; }
.ff__story--paper::after { background: radial-gradient(circle at 15% 8%, rgba(120, 90, 40, 0.16), transparent 40%), radial-gradient(circle at 92% 95%, rgba(120, 90, 40, 0.2), transparent 45%); }
.ff__story--paper .ff__media { inset: 72px 18px calc(var(--foot, 160px) + 26px); overflow: hidden; border: 1px solid #1d1a14; background: #d9d0b8; }
.ff__story--paper .ff__bg { display: none; }
.ff__story--paper .ff__ph { padding: 0; filter: grayscale(1) contrast(1.15) sepia(0.15); }
.ff__story--paper .ff__bars i { background: rgba(29, 26, 20, 0.18); }
.ff__story--paper .ff__bars i::before { background: #1d1a14; }
.ff__story--paper .ff__label { left: 18px; right: 18px; top: 26px; padding: 5px 0; border-top: 3px double #1d1a14; border-bottom: 1px solid #1d1a14; color: #1d1a14; text-shadow: none; }
.ff__screen .ff__story--paper .ff__label span { margin: 0; color: #b3261e; }
.ff__story--paper .ff__year { position: absolute; z-index: 2; top: 84px; right: 26px; margin: 0; padding: 0 8px; transform: rotate(7deg); border: 3px solid #b3261e; border-radius: 4px; background: rgba(233, 225, 204, 0.75); font: 900 26px/1.3 "Playfair Display", Georgia, serif; color: #b3261e; }
.ff__story--paper .ff__slide h3, .ff__story--paper .ff__slide strong { font-family: "Playfair Display", Georgia, serif; font-weight: 900; letter-spacing: -0.01em; color: #1d1a14; text-shadow: none; }
.ff__story--paper .ff__slide strong.is-quote { font-style: italic; color: #1d1a14; }
.ff__screen .ff__story--paper .ff__slide p { font: 15px/1.45 "Special Elite", "Courier New", monospace; color: #2a251c; text-shadow: none; }
.ff__screen .ff__story--paper .ff__credit, .ff__story--paper .ff__credit a { color: rgba(29, 26, 20, 0.6); }
.ff__story--paper .ff__next { background: rgba(29, 26, 20, 0.85); }

/* the question: a countdown ring and three big tiles */
.ff__ask { flex-direction: column; padding: 22px 18px 18px; background: radial-gradient(80% 50% at 50% 0%, rgba(var(--tone), 0.25), transparent 70%), #0b0e1c; }
.ff__ask::before { content: ""; position: absolute; inset: -30px; z-index: -1; background: var(--ph) center / cover no-repeat; filter: blur(18px) brightness(0.4) saturate(1.2); opacity: 0.55; } /* the story's photo, faint behind the question */
.ff__ask { isolation: isolate; overflow: hidden; }
.ff__ask .ff__ring { margin-top: auto; } /* the ring and question sit centered above the answers */
.ff__ask .ff__tiles { margin-top: 18px; }
.ff__ask-top { display: flex; justify-content: space-between; padding-right: 0; font: 400 9px/1 "Press Start 2P", monospace; color: rgba(243, 241, 234, 0.6); }
.ff__ask-top b { font-weight: 400; color: #ffc83d; }
.ff__ring { position: relative; flex: none; width: 64px; height: 64px; margin: 18px auto 12px; }
.ff__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ff__ring circle { fill: none; stroke-width: 5; }
.ff__ring-track { stroke: rgba(255, 255, 255, 0.12); }
.ff__ring-time { stroke: #ffc83d; stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 0; }
.ff__ring.is-running .ff__ring-time { animation: ff-ring 12s linear forwards; }
@keyframes ff-ring { to { stroke-dashoffset: 163.4; } } /* the bonus drains; nothing bad happens when it runs out */
.ff__ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 16px/1 "Press Start 2P", monospace; color: #ffc83d; }
.ff__screen .ff__ask h3 { margin: 0 0 auto; text-align: center; font: 900 clamp(22px, 5.6vw, 27px)/1.14 var(--display); letter-spacing: -0.02em; color: #fff; }
.ff__tiles { display: grid; gap: 10px; }
.ff__tile { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 74px; padding: 12px 14px 12px 16px; border: 0; border-radius: 16px; background: rgb(var(--c)); color: #14182b; font: 800 17px/1.2 var(--sans); text-align: left; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18); cursor: pointer; transition: transform 0.12s, opacity 0.25s, box-shadow 0.12s; }
.ff__tile svg { flex: none; width: 26px; height: 26px; fill: #14182b; }
.ff__tile span { flex: 1; }
.ff__tile kbd { flex: none; padding: 4px 7px; border-radius: 6px; background: rgba(20, 24, 43, 0.14); font: 700 12px/1 var(--sans); color: rgba(20, 24, 43, 0.7); }
.ff__tile:hover:not(:disabled) { transform: translateY(-2px); }
.ff__tile:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.ff__tile:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ff__tile:disabled { cursor: default; opacity: 0.25; }
.ff__tile.is-right { opacity: 1; outline: 4px solid #fff; outline-offset: 0; transform: scale(1.03); animation: ff-pop 0.4s ease-out; }
.ff__tile.is-wrong { opacity: 0.55; animation: ff-shake 0.35s ease-out; }

/* the answer: confetti and a wingman for a right answer; a kind word and the right answer otherwise */
.ff__reveal { padding: 24px 18px; text-align: center; overflow: hidden; background: radial-gradient(70% 45% at 50% 32%, rgba(255, 200, 61, 0.3), transparent 70%), #0b0e1c; }
.ff__reveal.is-wrong { background: radial-gradient(70% 45% at 50% 30%, rgba(124, 172, 236, 0.16), transparent 70%), #0b0e1c; }
.ff__confetti i { position: absolute; top: -20px; left: var(--x); width: 8px; height: 14px; border-radius: 2px; animation: ff-fall var(--d) var(--w) cubic-bezier(.3,.6,.6,1) both; }
@keyframes ff-fall { 80% { opacity: 1; } to { transform: translateY(var(--y, 560px)) rotate(var(--r)); opacity: 0; } }
.ff__screen .ff__shout { margin: 64px 0 0; max-width: none; font: 400 22px/1.55 "Press Start 2P", monospace; color: #ffc83d; text-shadow: 0 0 14px rgba(255, 200, 61, 0.7); animation: ff-zoom 0.55s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes ff-zoom { from { transform: scale(0.4); opacity: 0; } }
.ff__screen .ff__gain { margin: 12px 0 0; max-width: none; font: 800 16px var(--sans); color: #fff; }
.ff__won { margin-top: 26px; }
.ff__won .ff__tile, .ff__won .ff__tile:disabled { opacity: 1; outline: 4px solid #fff; outline-offset: 0; }
.ff__won kbd { display: none; }
.ff__screen .ff__miss-q { max-width: none; margin: 56px 0 0; font: 900 22px/1.15 var(--display); letter-spacing: -0.02em; color: #fff; }
.ff__reveal.is-wrong .ff__won { display: grid; gap: 10px; margin-top: 22px; }
.ff__won .ff__tile[data-miss] { opacity: 0.45; outline: 0; text-decoration: line-through; }
.ff__dock { position: absolute; left: 0; right: 0; bottom: 40px; }
.ff__dock svg { width: 100%; height: auto; overflow: visible; }
.ff__dock text { font: 400 8px "Press Start 2P", monospace; fill: #ffc83d; }
.ff__wing { animation: ff-dock 1.3s 0.35s cubic-bezier(.3,.7,.3,1) both; }
@keyframes ff-dock { from { transform: translate(90px, -110px); opacity: 0; } 25% { opacity: 1; } }
.ff__sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 24px; border-radius: 20px 20px 0 0; background: #1f3157; text-align: left; animation: ff-up 0.35s ease-out both; } /* a kind blue, not an alarm red */
@keyframes ff-up { from { transform: translateY(100%); } }
.ff__sheet h4 { margin: 0 0 6px; font: 900 21px/1.1 var(--display); color: #cfe0ff; }
.ff__screen .ff__sheet p { max-width: none; margin: 0; font-size: 15px; line-height: 1.45; color: #e8f0ff; }
.ff__sheet strong { color: #fff; }
.ff__screen .ff__ring-cap { flex: none; margin: -6px 0 10px; max-width: none; text-align: center; font: 400 8px/1 "Press Start 2P", monospace; color: rgba(255, 200, 61, 0.7); }

/* the stage title: an arcade intro over the synthwave sun, with the enemy craft */
.ff__stagecard { flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 18px; text-align: center; }
.ff__screen .ff__stage-n { margin: 0; font: 400 13px/1 "Press Start 2P", monospace; letter-spacing: 0.1em; color: #ff4f6d; }
.ff__screen .ff__stagecard h2 { margin: 0; font: 900 clamp(32px, 8.5vw, 46px)/1 var(--display); letter-spacing: -0.02em; text-transform: uppercase; text-align: center; color: #fff; text-shadow: 0 0 8px #ff4fd8, 0 0 24px rgba(255, 79, 216, 0.6); }
.ff__enemy { width: 150px; height: 110px; filter: drop-shadow(0 0 14px rgba(var(--tone), 0.9)); animation: ff-hover 2.4s ease-in-out infinite; }
@keyframes ff-hover { 50% { transform: translateY(-6px); } }
.ff__screen .ff__stagecard .ff__hits { max-width: 340px; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(11, 14, 28, 0.7); font-size: 15px; line-height: 1.45; text-align: center; color: #f3f1ea; }
.ff__stagecard .ff__launch { margin-top: 6px; }
.ff__screen .ff__press { margin: 0; font: 400 10px/1.4 "Press Start 2P", monospace; color: #fff; visibility: hidden; }
.ff__stagecard.is-ready .ff__press { visibility: visible; animation: ff-blink 1s steps(2) infinite; }
@keyframes ff-blink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .ff__confetti, .ff__wing, .ff__enemy, .ff__shout { animation: none !important; } .ff__confetti { display: none; } }
@media (max-width: 820px) {
  .ff__show { width: calc(100vw - 16px); height: calc(100dvh - 72px); border-radius: 22px; }
}
/* sideways phones: the how-to and other picture modals fill the height, so their buttons stay on screen */
@media (max-height: 520px) and (orientation: landscape) {
  .ff__screen:has(.ff__modal) { padding: 8px 10px; }
  .ff__modal:has(.ff__wrapped) { height: calc(100dvh - 16px); max-height: none; }
  .ff__modal .ff__wrapped, .ff__modal .ff__wrapped--how { flex: 1 1 0; height: auto; min-height: 0; }
}
/* sideways phones: answers side by side, a smaller ring, and a tighter title card */
@media (max-height: 520px) and (orientation: landscape) {
  .ff__show { width: min(760px, calc(100vw - 24px)); height: calc(100dvh - 16px); }
  .ff__ring { width: 44px; height: 44px; margin: 6px auto; }
  .ff__ring b { font-size: 11px; }
  .ff__screen .ff__ask h3 { font-size: 20px; }
  .ff__ask .ff__tiles { margin-top: 8px; }
  .ff__tiles { grid-template-columns: repeat(3, 1fr); }
  .ff__tile { min-height: 64px; font-size: 14px; }
  .ff__screen .ff__shout { margin-top: 10px; font-size: 16px; }
  .ff__won { margin-top: 12px; }
  .ff__dock { display: none; }
  .ff__reveal.is-wrong .ff__won { margin-top: 10px; grid-template-columns: 1fr 1fr; }
  .ff__screen .ff__miss-q { margin-top: 8px; font-size: 18px; }
  .ff__enemy { width: 100px; height: 72px; }
  .ff__stagecard { gap: 6px; }
  /* the story goes side by side: the photo on the left, the words on the right */
  .ff__story--phone .ff__ph { padding: 70px calc(50% + 8px) 14px 14px; }
  .ff__story--phone .ff__year { top: 26px; right: 50%; font-size: 36px; }
  .ff__story--phone .ff__foot { left: 50%; }
  .ff__story--paper .ff__media { inset: 64px calc(50% + 8px) 14px 18px; }
  .ff__story--paper .ff__foot { left: calc(50% + 4px); }
  .ff__story--paper .ff__year { top: 72px; right: calc(50% + 18px); font-size: 20px; }
  .ff__story .ff__slide h3, .ff__story .ff__slide strong { font-size: 22px; }
}
/* buttons and fields: flat and current, no bevels or heavy rings */
.ff .button { border: 0; box-shadow: none; padding: 14px 24px; font-weight: 700; }
.ff .button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ff .button--quiet, .ff .button--ghost { background: rgba(255, 255, 255, 0.08); color: #f3f1ea; box-shadow: none; }
.ff .button--quiet:hover, .ff .button--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.ff__form input[type="email"], .ff__form input[name="name"] { height: 48px; border-radius: 12px; border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); }
.ff__form input:focus { outline: 2px solid rgb(var(--tone, 255, 200, 61)); outline-offset: 0; border-color: transparent; }
.ff__form .ff__check input { width: 18px; height: 18px; accent-color: #ffc83d; }
.ff .button--ghost { color: #f3f1ea; }
#hud-phase { color: var(--ink); }
/* past the story, the chapter name and altitude mean nothing; only the game rocket stays */
#hud-phase, .hud__right { transition: opacity 0.4s; }
body.past-story #hud-phase, body.past-story .hud__right { opacity: 0; }
#hud-alt { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ───────── Responsive ───────── */
@media (max-width: 1279px) {
  .chapters { display: none; }
}

@media (max-width: 820px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .links a:not(.links__cta) { display: none; }

  .pin { align-items: flex-end; padding-bottom: 72px; }
  .copy, .copy--wide { width: 100%; min-height: 0; }
  .beat {
    align-self: end;
    padding: 22px 18px;
    margin: 0 -6px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.8), rgba(var(--bg-rgb), 0.95) 35%);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 -12px 40px rgba(var(--bg-rgb), 0.6);
  }
  .chapter--hero .pin { align-items: center; }
  .hero__title { font-size: clamp(34px, 11.6vw, 64px); }
  h2 { font-size: clamp(30px, 8.4vw, 42px); }
  .counter { font-size: 64px; }
  .stats { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .stat { padding: 20px; }
  .signals li { padding: 8px 0 8px 22px; font-size: 14px; }

  .section { padding: 88px var(--gutter); }
  .cards { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .post__meta { grid-column: 1 / -1; }
  .site-footer { flex-direction: column; }
  .tag { font-size: 12px; }

  /* the story on a phone: the graphic up top, a compact copy card below */
  .pin h2 { font-size: clamp(26px, 7.4vw, 34px); }
  .beat > p:not(.kicker):not(.counter), .beat__main > p:not(.kicker) { font-size: 15px; line-height: 1.5; margin-top: 12px; }
  .beat .kicker { margin-bottom: 10px; }
  .proof { margin-top: 16px; }
  body:not(.past-story) .to-top { opacity: 0; pointer-events: none; } /* it sat on top of the copy */
  .profile { padding: 22px; gap: 18px; }
  .profile__photo { width: 88px; height: 88px; font-size: 28px; }
  .profile__bio { font-size: 16px; }
  .profile__stats strong { font-size: 30px; }
  .site-footer { padding-bottom: 84px; } /* clear of the bottom bar and the back-to-top button */
  /* split beats keep the headline and the proof; the chart or the cards say the rest */
  .beat--split .beat__main > p:not(.kicker):not(.source) { display: none; }
  .beat--split { gap: 14px; }
  .roas-chart__row p { margin-bottom: 6px; font-size: 12px; }
  .roas-chart__row strong { font-size: 15px; }
  .roas-chart__row + .roas-chart__row { margin-top: 12px; }
  .roas-chart figcaption { margin-bottom: 12px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .services-grid a { padding: 12px 26px 12px 12px; font-size: 0; line-height: 0; }
  .services-grid strong { margin: 0; font-size: 14px; line-height: 1.25; }
  .services-grid span { top: 12px; right: 10px; font-size: 14px; line-height: 1; }
}

/* Short phones held upright (iPhone SE and similar): a tighter hero so it clears the header */
@media (max-width: 820px) and (max-height: 700px) and (orientation: portrait) {
  .hero__title { font-size: clamp(32px, 10.4vw, 48px); }
  .hero__lede { margin-top: 14px; font-size: 16px; line-height: 1.45; }
  .hero__actions { margin-top: 18px; gap: 8px; }
  .hero__actions .button { padding: 12px 20px; }
  .hero__proof { margin-top: 18px; font-size: 13px; }
  .proof-logos { gap: 12px 20px; margin-top: 10px; }
  .proof-logos img { height: calc(var(--h, 22px) * 0.7); }
}

/* The smallest phones (320×568): one more step down */
@media (max-width: 820px) and (max-height: 600px) and (orientation: portrait) {
  :root { --header-h: 58px; }
  .site-header { height: var(--header-h); }
  .hero__title { font-size: clamp(28px, 9.4vw, 40px); }
  .hero__lede { font-size: 14.5px; margin-top: 10px; }
  .hero__actions { margin-top: 12px; }
  .hero__actions .button { padding: 10px 16px; font-size: 14px; }
  .hero__proof { margin-top: 12px; }
  .proof-logos img { height: calc(var(--h, 22px) * 0.6); }
  .pin h2 { font-size: 24px; }
  .beat > p:not(.kicker):not(.counter), .beat__main > p:not(.kicker) { font-size: 13.5px; margin-top: 8px; }
  .beat { padding: 16px 14px; }
  .roas-chart__row p { display: none; } /* the insight lines; the stimulus and the return still show */
  .roas-chart__row strong { display: inline; margin-right: 8px; }
}

/* A phone held sideways: short and wide. The story goes side by side, like desktop, but compact. */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-h: 54px; }
  .site-header { height: var(--header-h); }
  .brand__mark { width: 26px; height: 26px; }
  .hero__title { font-size: clamp(28px, 5.4vw, 44px); }
  .hero__lede { max-width: 560px; margin-top: 10px; font-size: 15px; line-height: 1.45; }
  .hero__actions { margin-top: 14px; }
  .hero__actions .button { padding: 10px 18px; font-size: 14px; }
  .hero__proof { margin-top: 14px; font-size: 12px; }
  .proof-logos { margin-top: 8px; flex-wrap: nowrap; width: auto; gap: 18px; justify-content: flex-start; }
  .proof-logos img { height: calc(var(--h, 22px) * 0.62); }
  .chapter--hero .pin { padding-bottom: 20px; }

  .pin { align-items: center; padding: var(--header-h) var(--gutter) 40px; }
  .copy { width: min(420px, 50vw); min-height: 0; }
  .copy--split { width: 100%; }
  .beat { align-self: center; padding: 0; margin: 0; background: none; border-radius: 0; }
  .pin h2 { font-size: clamp(20px, 3.4vw, 28px); }
  .beat > p:not(.kicker):not(.counter), .beat__main > p:not(.kicker) { font-size: 13.5px; line-height: 1.45; margin-top: 8px; }
  .beat .kicker { margin-bottom: 6px; font-size: 13px; }
  .kicker__num { width: 22px; height: 22px; font-size: 10px; }
  .proof { margin-top: 10px; }
  .proof strong { font-size: 24px; }
  .stats--inline strong, .stat strong { font-size: 28px; }
  .beat--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; }
  .roas-chart { padding: 12px 14px; }
  .roas-chart figcaption { margin-bottom: 6px; font-size: 11px; }
  .roas-chart__row + .roas-chart__row { margin-top: 6px; }
  .roas-chart__row p { margin-bottom: 2px; font-size: 11px; }
  .roas-chart__row strong { font-size: 13px; }
  .rockets__fleet svg { width: 12px; height: 18px; }
  .rockets b, .roas-chart__row--win .rockets b { font-size: 18px; }
  .services-grid { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .services-grid a { padding: 10px 22px 10px 10px; }
  .services-grid strong { font-size: 12.5px; }
  .hud { padding: 10px var(--gutter); }
  body:not(.past-story) .to-top { opacity: 0; pointer-events: none; }
}

/* ───────── Inner pages (case studies, services, insights) ───────── */
body.page {
  background:
    linear-gradient(180deg, #a6cdf4 0%, #d2e5f8 28%, #f6efe2 70%, #fbfaf6 100%) fixed;
}
body.page .site-header { position: sticky; background: rgba(var(--bg-rgb), 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.page-hero { max-width: var(--frame); margin: 0 auto; padding: 120px var(--gutter) 40px; }
.page-hero h1 { font: 900 clamp(48px, 7vw, 96px)/0.92 var(--display); letter-spacing: -0.045em; }
.page-hero p { max-width: 560px; margin: 24px 0 0; font-size: 19px; color: var(--ink-2); }
.page main { position: relative; z-index: 3; }
.case {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line);
  backdrop-filter: blur(8px);
}
.case + .case { margin-top: 20px; }
.case__media {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b1020, #2c2a6a 60%, #c5627a);
  display: grid;
  place-items: center;
  color: #f3f1ea;
  font-weight: 700;
}
.case__media span { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 14px; }
.case__logo { height: 28px; width: auto; filter: brightness(0); opacity: 0.75; }
.case h2 { margin-top: 18px; font-size: clamp(28px, 3vw, 40px); }
.case p { color: var(--ink-2); }
.case__stats { display: flex; gap: 28px; margin-top: 18px; }
.case__stats strong { display: block; font: 900 40px/1 var(--display); letter-spacing: -0.04em; color: var(--gold-text); }
.case__stats span { font-size: 14px; color: var(--ink-3); }
.case--soon { opacity: 0.75; }
@media (max-width: 820px) {
  .case { grid-template-columns: 1fr; }
}

/* ───────── Inner pages: a night-sky header, then daylight content ───────── */
body.page .site-header--page {
  position: absolute;
  --ink: #f3f1ea; --ink-2: rgba(243, 241, 234, 0.75); --ink-3: rgba(243, 241, 234, 0.5); --line: rgba(243, 241, 234, 0.22);
  color: var(--ink);
}
.links a[aria-current="page"] { color: var(--gold); }
.night {
  position: relative;
  z-index: 3;
  padding: 150px var(--gutter) 90px;
  color: #f3f1ea;
  background:
    radial-gradient(1.2px 1.2px at 12% 22%, #ffd36b 50%, transparent 52%),
    radial-gradient(1px 1px at 28% 64%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 44% 30%, #ffd36b 50%, transparent 52%),
    radial-gradient(1px 1px at 61% 74%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 78% 18%, #ffd36b 50%, transparent 52%),
    radial-gradient(1px 1px at 88% 58%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 6% 80%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 52% 12%, #fff 50%, transparent 52%),
    linear-gradient(180deg, #0c1636 0%, #16346f 62%, #3f66b0 100%);
}
.night__inner { max-width: 1100px; margin: 0 auto; }
.night h1 { margin: 0; max-width: 900px; font: 900 clamp(44px, 6.4vw, 88px)/0.94 var(--display); letter-spacing: -0.045em; }
.night p { max-width: 620px; margin: 22px 0 0; font-size: 19px; color: rgba(243, 241, 234, 0.78); }
.night .night__kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; font-size: 15px; font-weight: 700; color: var(--gold); }
.night__kicker img { height: 28px; width: auto; filter: brightness(0) invert(1); }

.wrap { position: relative; z-index: 3; max-width: 1100px; margin: 0 auto; padding: 64px var(--gutter) 0; }
.wrap__title { margin: 0 0 24px; font-size: clamp(28px, 3vw, 40px); }
.play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); position: relative; }
.play::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 16px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.feature__note { margin-top: 12px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.75); }

/* the featured case study */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; text-decoration: none; color: inherit; }
.feature__media, .video-frame {
  aspect-ratio: 16 / 9; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0c1636, #2c2a6a 55%, #c5627a);
  box-shadow: 0 24px 60px rgba(16, 24, 60, 0.25);
}
.feature__logo { height: 34px; width: auto; filter: brightness(0); opacity: 0.8; }
.feature h2 { margin-top: 18px; font-size: clamp(30px, 3.4vw, 46px); }
.feature p { color: var(--ink-2); }
.feature__link { display: inline-block; margin-top: 20px; font-weight: 700; color: var(--gold-text); }
.feature:hover .feature__link { text-decoration: underline; }
.stat-strip { display: flex; gap: 28px; margin-top: 22px; }
.stat-strip p { margin: 0; }
.stat-strip strong { display: block; font: 900 34px/1 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.stat-strip span { font-size: 13px; color: var(--ink-3); }

.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case-card { padding: 22px; border-radius: 16px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.case-card__media { height: 120px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, #16346f, #3f66b0); }
.case-card__media img { height: 26px; width: auto; max-width: 70%; filter: brightness(0) invert(1); }
.case-card__tag { margin: 16px 0 0; font-size: 13px; font-weight: 700; color: var(--gold-text); }
.case-card h3 { margin-top: 6px; font: 800 22px/1.1 var(--display); letter-spacing: -0.02em; }
.case-card p { color: var(--ink-2); font-size: 15px; }
.case-card .case-card__soon { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }

/* the case study page */
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 0 36px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glance dt { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.glance dd { margin: 6px 0 0; font-weight: 700; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.story h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 18px; }
.drift-list, .did-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.drift-list li, .did-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.drift-list strong { display: block; color: var(--warn); font-size: 14px; }
.did-list { counter-reset: did; }
.did-list li { counter-increment: did; display: grid; grid-template-columns: 34px 1fr; }
.did-list li::before { content: counter(did, decimal-leading-zero); font-weight: 800; color: var(--gold-text); }
.note { margin-top: 16px; font-size: 15px; color: var(--ink-3); }
.ad-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ad-tile { margin: 0; }
.ad-tile__art { aspect-ratio: 4 / 5; border-radius: 16px; display: flex; align-items: flex-end; padding: 22px; background: linear-gradient(160deg, #3a2a20, #8a4a2a 60%, #e0a050); }
.ad-tile__art p { margin: 0; font: 900 26px/1 var(--display); letter-spacing: -0.03em; color: #fff; }
.ad-tile figcaption { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.ad-tile figcaption strong { font: 900 22px/1 var(--display); color: var(--ink); }
.ad-tile--win .ad-tile__art { box-shadow: 0 0 0 3px var(--gold); }
.ad-tile__art { position: relative; }
.ad-tile__tag { position: absolute; top: 18px; left: 18px; font: 700 13px/1 var(--sans); color: rgba(255, 255, 255, 0.85); }
.ad-tile--win .ad-tile__tag { color: var(--gold); }
.ad-tile__map { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.ad-tile__map dt { font-weight: 700; color: var(--ink-3); }
.ad-tile__map dd { margin: 0; color: var(--ink-2); }
.wrap__lede { max-width: 620px; margin: -8px 0 28px; color: var(--ink-2); }

.results { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.results__num { margin: 0; font: 900 clamp(36px, 4.6vw, 60px)/1 var(--display); letter-spacing: -0.04em; }
.results p:not(.results__num) { margin: 6px 0 0; color: var(--ink-2); }
.results strong { color: var(--gold-text); }
.results__arrow { font-size: 28px; color: var(--ink-3); }
.source-line { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* insights */
.filters { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.filters a { padding: 0 0 12px; font-weight: 700; color: var(--ink-3); text-decoration: none; border-bottom: 2px solid transparent; }
.filters a[aria-current="true"], .filters a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.post-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 36px; text-decoration: none; color: inherit; }
.post-feature__media { aspect-ratio: 16 / 10; border-radius: 18px; display: flex; align-items: flex-end; padding: 20px; background: linear-gradient(135deg, #0c1636, #16346f 60%, #ff7a59); }
.post-feature__cat { font-weight: 700; color: var(--gold); }
.post-feature h2 { font-size: clamp(28px, 3vw, 40px); }
.post-feature p { color: var(--ink-2); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { display: block; padding: 22px; border-radius: 16px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--gold); }
.post-card__cat { margin: 0; font-size: 13px; font-weight: 700; color: var(--gold-text); }
.post-card h3 { margin-top: 8px; font: 800 21px/1.15 var(--display); letter-spacing: -0.02em; }
.post-card p { color: var(--ink-2); font-size: 15px; }
.post-card .post-card__meta { margin: 0; font-size: 13px; color: var(--ink-3); }

/* article */
.article { position: relative; z-index: 3; max-width: 720px; margin: 0 auto; padding: 56px var(--gutter) 0; font-size: 19px; line-height: 1.65; }
.article__lede { font-size: 22px; color: var(--ink); }
.article h2 { margin: 40px 0 12px; font-size: 32px; }
.article p { color: var(--ink-2); }
.article blockquote { margin: 34px 0; padding-left: 22px; border-left: 3px solid var(--gold); font: 800 30px/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.article__wide { margin: 34px -80px; }

.page-cta { position: relative; z-index: 3; max-width: 1100px; margin: 90px auto 0; padding: 70px var(--gutter); border-radius: 26px; text-align: center; background: var(--navy); color: #f3f1ea; --gold: #ffc83d; --btn-ink: #0b1020; }
.page-cta h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; letter-spacing: -0.045em; }
.page-cta p { margin: 16px auto 28px; max-width: 480px; color: rgba(243, 241, 234, 0.72); }

@media (max-width: 860px) {
  .feature, .story, .post-feature { grid-template-columns: 1fr; }
  .case-grid, .ad-tiles { grid-template-columns: 1fr; }
  .ad-tile__art { aspect-ratio: 16 / 9; } /* three ads in a short scroll, not a screen each */
  .glance { grid-template-columns: 1fr 1fr; }
  .article__wide { margin: 34px 0; }
  .page-cta { margin: 60px var(--gutter) 0; }
}

/* logos that carry their own color (Potbelly's yellow stamp) stay in color on the case study pages */
.feature__logo.is-color, .night__kicker img.is-color { filter: none; opacity: 1; }

/* a sourced proof point inside a story step */
.beat > p.proof { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.proof strong { grid-row: span 2; font: 900 34px/1 var(--display); letter-spacing: -0.04em; color: var(--gold-text); }
.proof span, .cite { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }

/* ───────── Ledger pages (services, insights): no cards; a strict grid of rows under one heavy rule ───────── */
body.page--ledger { background: var(--bg); }
.ledger { max-width: var(--frame); margin: 0 auto; padding: 72px var(--gutter) 96px; }
.ledger__top { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-bottom: 56px; }
.ledger__top h1 { margin: 0; font: 800 clamp(44px, 6vw, 72px)/0.95 var(--display); letter-spacing: -0.045em; }
.ledger__top p { max-width: 520px; margin: 6px 0 0; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.mono { font: 500 11px/1.4 "JetBrains Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.ledger__head, .ledger__row { display: grid; grid-template-columns: var(--cols); gap: 32px; }
.ledger__head { padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.ledger__row { align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background 0.2s; }
a.ledger__row:hover { background: linear-gradient(90deg, rgba(242, 178, 0, 0.1), transparent 70%); }
.ledger__row h2, .ledger__row h3 { margin: 0; font: 700 22px/1.2 var(--display); letter-spacing: -0.015em; }
.ledger__row p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ledger__go { justify-self: end; font-size: 20px; transition: transform 0.2s; }
a.ledger__row:hover .ledger__go { transform: translateX(4px); color: var(--gold-text); }
.ledger__note { margin: 28px 0 0; font-size: 15px; color: var(--ink-2); }
.ledger__note a { color: inherit; font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.ledger--services { --cols: 300px 1fr 40px; }
.ledger--insights { --cols: 180px 1fr 140px; }
.ledger--cases { --cols: minmax(0, 1fr) 220px; }
.ledger--cases .ledger__row > div p { max-width: 680px; }
.ledger--cases .ledger__row strong { color: var(--ink); }
.ledger__meta { justify-self: end; text-align: right; font-size: 14px !important; color: var(--ink-3, var(--ink-2)) !important; }
.ledger__read { font-weight: 700; color: var(--ink); }
.ledger--insights .ledger__row .mono { align-self: baseline; }
.ledger__row--lead h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -0.03em; }
.ledger__row--lead { padding: 34px 0; }
.ledger__row h2 + p, .ledger__row h3 + p { margin-top: 6px; }
.ledger__row .ledger__when { justify-self: end; text-align: right; }
.ledger__row[hidden] { display: none; }
.topics { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 28px; }
.topics button { padding: 0 0 6px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-3); font: 600 15px var(--sans); cursor: pointer; }
.topics button:hover, .topics button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }
@media (max-width: 820px) {
  .ledger { padding-top: 48px; }
  .ledger__top { grid-template-columns: 1fr; gap: 14px; padding-bottom: 36px; }
  .ledger__head { display: block; height: 0; padding: 0; overflow: hidden; } /* keep the heavy rule, drop the column labels */
  .ledger--services, .ledger--insights { --cols: 1fr auto; }
  .ledger--cases { --cols: 1fr; } .ledger--cases .ledger__meta { justify-self: start; text-align: left; }
  .ledger__row { gap: 8px 16px; padding: 22px 0; }
  .ledger--services .ledger__row > p { grid-column: 1 / -1; grid-row: 2; }
  .ledger--services .ledger__go { grid-column: 2; grid-row: 1; }
  .ledger--insights .ledger__row > .mono:first-child { grid-column: 1; grid-row: 1; }
  .ledger--insights .ledger__row > div { grid-column: 1 / -1; grid-row: 2; }
  .ledger--insights .ledger__when { grid-column: 2; grid-row: 1; }
}

/* ───────── Who you'd work with: a portrait and intro, the numbers under a heavy rule, then ledger rows ───────── */
.founder__grid { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.founder__portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; display: grid; place-items: center; background: radial-gradient(80% 60% at 70% 20%, #2c3a7a, #0b1020 70%); color: #f3f1ea; box-shadow: 0 30px 70px rgba(11, 16, 32, 0.25); }
.founder__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder__mark { position: absolute; width: 130%; right: -46%; bottom: -42%; color: rgba(255, 200, 61, 0.12); }
.founder__mark circle { fill: rgba(255, 200, 61, 0.22); }
.founder__portrait span { position: relative; font: 900 clamp(64px, 8vw, 104px)/1 var(--display); letter-spacing: -0.05em; }
.founder__intro h2 { margin: 0; }
.founder__lede { max-width: 620px; margin: 18px 0 0; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.founder__intro h3 { margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); font: 900 clamp(34px, 4vw, 52px)/1 var(--display); letter-spacing: -0.045em; }
.founder .person__role { margin-top: 10px; font-size: 16px; }
.founder__bio { max-width: 640px; margin: 18px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.founder__stats { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 2px solid var(--ink); }
.founder__stats li { padding-top: 24px; font-size: 16px; color: var(--ink-2); }
.founder__stats strong { display: block; margin-bottom: 8px; font: 900 clamp(48px, 6.4vw, 88px)/0.95 var(--display); letter-spacing: -0.05em; color: var(--ink); }
.founder__ledger { margin-top: 56px; }
.founder__row { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 30px 0; border-top: 1px solid var(--line); }
.founder__row:last-child { border-bottom: 1px solid var(--line); }
.founder__row > .mono { margin: 4px 0 0; }
.founder__clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 28px; }
.founder__clients li { font-size: 14px; color: var(--ink-3); }
.founder__clients span { display: block; margin-bottom: 2px; font: 700 20px/1.2 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.founder__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.founder__steps li { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.founder__steps strong { display: block; margin-bottom: 6px; font: 700 19px/1.2 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.founder__bench { margin: 0; font-size: 17px; color: var(--ink-2); }
.founder__bench a { color: inherit; font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: 3px; }
@media (max-width: 960px) {
  .founder__clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder__steps { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 820px) {
  .founder__grid { grid-template-columns: 1fr; }
  .founder__portrait { max-width: 220px; }
  .founder__stats { grid-template-columns: 1fr; gap: 0; }
  .founder__stats li + li { border-top: 1px solid var(--line); margin-top: 22px; }
  .founder__row { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
}
.founder__built { max-width: 640px; margin: 0 0 26px; font: 700 clamp(20px, 2vw, 24px)/1.3 var(--display); letter-spacing: -0.015em; }
.founder__split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.founder__sub { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--gold-text); }
.founder__split .founder__clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.founder__proof { display: inline-block; margin-top: 22px; font-weight: 700; color: var(--gold-text); text-decoration: none; }
.founder__proof:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 820px) { .founder__split { grid-template-columns: 1fr; gap: 28px; } }

/* Phones and tablets held upright: the Potbelly ad test follows the same layout as every other beat.
   The art steps aside for the chart, so the chart takes the art's place up top; the story card stays at the bottom.
   (The North star services stay in their card: that chapter's art keeps drawing above it.) */
@media (max-width: 820px) and (orientation: portrait) {
  .beat--split:has(> .roas-chart) {
    align-self: stretch;
    display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
    min-height: calc(100svh - var(--header-h) - 72px - 12px);
    padding: 0; margin: 0; border-radius: 0; background: none; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .beat--split > .roas-chart { order: -1; margin-block: auto; } /* centered in the space above the card, like the art */
  .beat--split:has(> .roas-chart) .beat__main {
    padding: 22px 18px; margin: 0 -6px; border-radius: 14px;
    background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.8), rgba(var(--bg-rgb), 0.95) 35%);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 -12px 40px rgba(var(--bg-rgb), 0.6);
  }
}
@media (max-width: 820px) and (max-height: 700px) and (orientation: portrait) {
  .beat--split:has(> .roas-chart) .beat__main { padding: 16px 14px; }
  .roas-chart { padding: 14px 16px; }
  .roas-chart__row p { display: none; } /* short phones: the stimulus and the return still show */
  .roas-chart__row strong { display: inline; margin-right: 8px; }
}

/* article figures */
.article figure { margin: 36px 0; }
.article figure.article__wide { margin: 40px -120px; }
@media (max-width: 1000px) { .article figure.article__wide { margin: 32px 0; } }
.article figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
@media (max-width: 640px) { .h1-split br { display: none; } .h1-split { text-wrap: balance; } }
.article figure img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* phone pass: header backdrop during the story, 44px targets */
@media (max-width: 820px) {
  body.scrolled .site-header::before { opacity: 1; }
  .links .links__cta { min-height: 44px; display: inline-flex; align-items: center; }
  .menu-btn { width: 44px; height: 44px; }
  .footer-links { flex-wrap: wrap; gap: 0 20px; padding-right: 64px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .topics button { min-height: 44px; }
  .founder__proof { padding: 10px 0; }
}
/* night-sky pages: the header sits on the dark hero, so no light bar behind its light text */
body.page .site-header--page { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* article model diagrams: S-curve, funnel, five forces, canvas */
.article figcaption a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.model__svg { display: block; width: 100%; height: auto; color: var(--ink); font-family: var(--sans); }
.model__label { font-size: 23px; font-weight: 700; fill: #14182b; }
.model__axis { font-size: 19px; font-weight: 600; fill: currentColor; fill-opacity: .7; }
.forces { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-areas: ". top ." "left center right" ". bottom ."; gap: 26px; }
.forces__box { position: relative; display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 12px 10px; border: 2px solid #0e7c86; border-radius: 10px; background: #fff; text-align: center; font: 700 clamp(13px, 2.4vw, 16px)/1.25 var(--sans); color: #14182b; }
.forces__top { grid-area: top; } .forces__left { grid-area: left; } .forces__right { grid-area: right; } .forces__bottom { grid-area: bottom; }
.forces__center { grid-area: center; background: #0e7c86; color: #fff; }
.forces__box:not(.forces__center)::after { content: ""; position: absolute; background: #0e7c86; }
.forces__top::after { top: 100%; left: 50%; width: 2px; height: 26px; }
.forces__bottom::after { bottom: 100%; left: 50%; width: 2px; height: 26px; }
.forces__left::after { left: 100%; top: 50%; width: 26px; height: 2px; }
.forces__right::after { right: 100%; top: 50%; width: 26px; height: 2px; }
.bmc { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.bmc > div { min-height: 92px; padding: 8px 7px; border: 2px solid #14182b; border-radius: 6px; background: #fff; font: 700 clamp(10.5px, 2.2vw, 14px)/1.2 var(--sans); color: #14182b; overflow-wrap: break-word; hyphens: auto; }
.bmc__kp { grid-column: 1 / 3; grid-row: 1 / 3; } .bmc__ka { grid-column: 3 / 5; grid-row: 1; } .bmc__kr { grid-column: 3 / 5; grid-row: 2; }
.bmc__vp { grid-column: 5 / 7; grid-row: 1 / 3; } .bmc__cr { grid-column: 7 / 9; grid-row: 1; } .bmc__ch { grid-column: 7 / 9; grid-row: 2; }
.bmc__cs { grid-column: 9 / 11; grid-row: 1 / 3; } .bmc__cost { grid-column: 1 / 6; grid-row: 3; min-height: 64px; } .bmc__rev { grid-column: 6 / 11; grid-row: 3; min-height: 64px; }
@media (max-width: 520px) { .forces { gap: 18px; } .forces__top::after, .forces__bottom::after { height: 18px; } .forces__left::after, .forces__right::after { width: 18px; } .forces__box { min-height: 84px; padding: 8px 6px; } .bmc > div { padding: 6px 4px; min-height: 80px; } }
@media (max-width: 520px) { .model__label { font-size: 30px; } .model__axis { font-size: 26px; } }

/* market check quiz */
.quiz { position: relative; z-index: 3; max-width: 720px; margin: 0 auto; padding: 56px var(--gutter) 90px; }
.quiz__card { padding: clamp(24px, 5vw, 44px); border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 50px -24px rgba(20, 24, 43, 0.25); }
.quiz__progress { display: flex; gap: 6px; margin-bottom: 18px; }
.quiz__progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.quiz__progress i.on { background: var(--gold); }
.quiz__step { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--gold-text); }
.quiz h2 { margin: 0; font-size: clamp(26px, 4vw, 34px); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; outline: none; }
.quiz__hint { margin: 10px 0 0; color: var(--ink-2); font-size: 17px; }
.quiz__choices { display: grid; gap: 10px; margin-top: 26px; }
.quiz__choice { min-height: 56px; padding: 14px 18px; border: 0; border-radius: 14px; background: rgba(20, 24, 43, 0.05); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; font: 700 18px/1.3 var(--sans); color: var(--ink); cursor: pointer; transition: background 0.15s, box-shadow 0.15s; }
.quiz__choice:hover { background: rgba(242, 178, 0, 0.12); box-shadow: inset 0 0 0 1.5px var(--gold); }
.quiz__choice.is-picked { box-shadow: inset 0 0 0 2px var(--gold); }
.quiz__choice:focus-visible, .quiz__back:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.quiz__back { min-height: 44px; margin-top: 18px; padding: 0 4px; border: 0; background: none; font: 600 16px var(--sans); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quiz__lede { margin: 14px 0 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.quiz h3 { margin: 28px 0 10px; font-size: 18px; }
.quiz__seen { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.quiz__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.quiz__actions .quiz__back { margin-top: 0; }
.quiz__note { margin: 16px 0 0; font-size: 15px; color: var(--ink-3); }
.cta-quiz { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; color: inherit; font-weight: 700; text-underline-offset: 4px; }
.page-cta .cta-quiz { display: flex; width: fit-content; margin: 14px auto 0; color: rgba(243, 241, 234, 0.85); }
[hidden] { display: none !important; }

/* Nov 16: areas of expertise shown as plain cards (the services page is held back) */
.services-grid .services-grid__item { position: static; display: block; height: 100%; padding: 20px 22px; border-radius: 14px; background: rgba(255, 252, 246, 0.62); box-shadow: 0 0 0 1px rgba(20, 24, 43, 0.08), 0 10px 30px rgba(120, 60, 20, 0.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink-2); font-size: 14px; line-height: 1.45; transition: none; }
/* resources: each one is a link */
.founder__steps--links a { display: block; color: inherit; text-decoration: none; }
.founder__steps--links a strong::after { content: " →"; color: var(--gold-text); transition: margin 0.2s; }
.founder__steps--links a:hover strong, .founder__steps--links a:focus-visible strong { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* Request access dialog */
.access { --ink: #14182b; --ink-2: #4a5068; width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; background: #fffdf8; color: var(--ink); box-shadow: 0 30px 80px rgba(20, 24, 43, 0.3); }
.access::backdrop { background: rgba(20, 24, 43, 0.45); backdrop-filter: blur(3px); }
.access__form, .access__done { position: relative; display: grid; gap: 14px; padding: 30px 28px 24px; }
.access h2 { margin: 0; font: 800 26px/1.15 var(--display); letter-spacing: -0.02em; }
.access__lede, .access__done p { margin: -4px 0 4px; color: var(--ink-2); font-size: 15px; }
.access label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.access input { min-height: 46px; padding: 10px 12px; border: 1px solid rgba(20, 24, 43, 0.2); border-radius: 10px; background: #fff; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); }
.access input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.access__trap { position: absolute; left: -9999px; }
.access__error { min-height: 1em; margin: 0; color: #a3341f; font-size: 14px; }
.access .button { justify-self: start; }
.access__fine { margin: 0; color: var(--ink-2); font-size: 12.5px; } .access__fine a { color: inherit; }
.access__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 26px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.access__close:hover { background: rgba(20, 24, 43, 0.06); }

/* who the site is for, above the hero headline */
.hero__for { margin: 0 0 14px; font: 700 14px/1.3 var(--sans); letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.86); }
