/* ==========================================================================
   Johnson Ecommerce LLC - Portfolio
   Design system: Apple-design-analysis (see DESIGN-portfolio.md)
   Tokens are the single source of truth. Never inline a hex value.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand & accent */
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;

  /* Text */
  --ink: #1d1d1f;
  --body: #1d1d1f;
  --body-on-dark: #ffffff;
  --body-muted: #cccccc;
  --ink-muted-80: #333333;
  --ink-muted-48: #7a7a7a;

  /* Hairlines */
  --divider-soft: #f0f0f0;
  --hairline: #e0e0e0;

  /* Surfaces */
  --canvas: #ffffff;
  --canvas-parchment: #f5f5f7;
  --surface-pearl: #fafafc;
  --surface-tile-1: #272729;
  --surface-tile-2: #2a2a2c;
  --surface-tile-3: #252527;
  --surface-black: #000000;
  --surface-chip-translucent: rgba(210, 210, 215, 0.64);
  --on-primary: #ffffff;
  --on-dark: #ffffff;

  /* Radii */
  --r-none: 0px;
  --r-xs: 5px;
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 18px;
  --r-pill: 9999px;

  /* Spacing */
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 17px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-xxl: 48px;
  --s-section: 80px;

  /* Type stacks */
  --font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --font-text: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;

  /* The one shadow in the system - product renders only */
  --product-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;

  /* Chrome heights */
  --nav-h: 44px;
  --subnav-h: 52px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--subnav-h) + 16px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.44;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

p { margin: 0; }

::selection { background: var(--primary); color: var(--on-primary); }

:focus-visible {
  outline: 2px solid var(--primary-focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--canvas);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: var(--r-sm);
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* --------------------------------------------------------------------------
   3. Typography scale
   -------------------------------------------------------------------------- */
.t-hero {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.028em;
}

.t-display-lg {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.t-display-md {
  font-family: var(--font-text);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.021em;
}

.t-lead {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.007em;
}

.t-lead-airy {
  font-family: var(--font-text);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
}

.t-tagline {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.011em;
}

.t-body-strong { font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -0.374px; }
.t-body        { font-size: 17px; font-weight: 400; line-height: 1.44; letter-spacing: -0.374px; }
.t-caption     { font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: -0.224px; }
.t-caption-strong { font-size: 14px; font-weight: 600; line-height: 1.29; letter-spacing: -0.224px; }
.t-fine        { font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: -0.12px; }
.t-micro       { font-size: 10px; font-weight: 400; line-height: 1.3; letter-spacing: -0.08px; }

.muted { color: var(--ink-muted-80); }
.muted-48 { color: var(--ink-muted-48); }
.on-dark .muted,
.on-dark .muted-48 { color: var(--body-muted); }

/* Eyebrow label above headlines */
.eyebrow {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-md);
}
.on-dark .eyebrow { color: var(--primary-on-dark); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-xs);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.374px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.95); }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--r-pill);
  padding: 11px 22px;
  min-height: 44px;
}
.btn-primary:hover { background: var(--primary-focus); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  border-radius: var(--r-pill);
  padding: 11px 22px;
  min-height: 44px;
}
.btn-secondary:hover { background: rgba(0, 102, 204, 0.06); }
.on-dark .btn-secondary { color: var(--primary-on-dark); border-color: var(--primary-on-dark); }
.on-dark .btn-secondary:hover { background: rgba(41, 151, 255, 0.12); }

.btn-hero {
  font-size: 18px;
  font-weight: 300;
  padding: 14px 28px;
}

.btn-dark-utility {
  background: var(--ink);
  color: var(--on-dark);
  font-size: 14px;
  letter-spacing: -0.224px;
  border-radius: var(--r-sm);
  padding: 8px 15px;
}

.btn-pearl {
  background: var(--surface-pearl);
  color: var(--ink-muted-80);
  font-size: 14px;
  letter-spacing: -0.224px;
  border: 3px solid var(--divider-soft);
  border-radius: var(--r-md);
  padding: 8px 14px;
}
.btn-pearl:hover { border-color: var(--hairline); }

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--r-pill);
  background: var(--surface-chip-translucent);
  color: var(--ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-icon:hover { background: rgba(210, 210, 215, 0.9); }
.btn-icon:disabled { opacity: 0.35; cursor: default; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
  align-items: center;
}
.btn-row.center { justify-content: center; }

/* Arrow link - the "Learn more ›" grammar */
.arrow-link {
  font-size: 17px;
  letter-spacing: -0.374px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.arrow-link::after { content: "\203A"; font-size: 1.15em; line-height: 1; transition: transform 0.2s ease; }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { transform: translateX(3px); }
.on-dark .arrow-link { color: var(--primary-on-dark); }

/* --------------------------------------------------------------------------
   5. Global nav
   -------------------------------------------------------------------------- */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--surface-black);
  color: var(--on-dark);
}

.global-nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--s-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
}

.global-nav__brand {
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: var(--s-xs);
}
.global-nav__brand:hover { text-decoration: none; opacity: 0.85; }

.global-nav__mark {
  width: 20px;
  height: 20px;
  border-radius: var(--r-xs);
  background: var(--on-dark);
  color: var(--surface-black);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: 0;
}

.global-nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav__links a {
  color: var(--on-dark);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  opacity: 0.82;
  transition: opacity 0.2s ease;
  padding: 12px 0;
  display: block;
}
.global-nav__links a:hover { opacity: 1; text-decoration: none; }
.global-nav__links a[aria-current="page"] { opacity: 1; font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--on-dark);
  width: 44px;
  height: 44px;
  margin-right: -10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: background 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Sub nav (frosted)
   -------------------------------------------------------------------------- */
.sub-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  height: var(--subnav-h);
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
}

.sub-nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--s-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
}

.sub-nav__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  color: var(--ink);
}
.sub-nav__title:hover { text-decoration: none; }

.sub-nav__right {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
}

.sub-nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}
.sub-nav__links a {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.224px;
}
.sub-nav__links a:hover { color: var(--primary); text-decoration: none; }

.sub-nav .btn-primary {
  font-size: 14px;
  letter-spacing: -0.224px;
  padding: 7px 16px;
  min-height: 32px;
}

/* --------------------------------------------------------------------------
   7. Tiles - the section chassis
   -------------------------------------------------------------------------- */
.tile {
  padding: var(--s-section) var(--s-lg);
  background: var(--canvas);
  color: var(--ink);
  overflow: hidden;
}
.tile--parchment { background: var(--canvas-parchment); }
.tile--dark   { background: var(--surface-tile-1); color: var(--on-dark); }
.tile--dark-2 { background: var(--surface-tile-2); color: var(--on-dark); }
.tile--dark-3 { background: var(--surface-tile-3); color: var(--on-dark); }
.tile--tight  { padding-top: var(--s-xxl); padding-bottom: var(--s-xxl); }

.on-dark a:not(.btn) { color: var(--primary-on-dark); }

.tile__inner {
  max-width: 1320px;
  margin: 0 auto;
}
.tile__inner--narrow { max-width: 980px; }
.tile__inner--center { text-align: center; }

.tile__head { max-width: 900px; }
.tile__inner--center .tile__head { margin-left: auto; margin-right: auto; }
.tile__head h2 + p,
.tile__head h1 + p { margin-top: var(--s-lg); }
.tile__head .btn-row { margin-top: var(--s-xl); }

.stack-lg > * + * { margin-top: var(--s-lg); }
.stack-md > * + * { margin-top: var(--s-md); }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 96px;
  padding-bottom: var(--s-xxl);
  text-align: center;
}
.hero h1 { max-width: 16ch; margin: 0 auto; }
.hero__lead {
  max-width: 44ch;
  margin: var(--s-lg) auto 0;
  color: var(--ink-muted-80);
}
.hero .btn-row { margin-top: var(--s-xl); }
.hero__note {
  margin-top: var(--s-md);
  color: var(--ink-muted-48);
}

/* Product render: the browser mockup, and the motion graphic inside it.
   The only shadowed element in the system.

   The graphic runs the arrangement this page describes: programs get
   searched, one matches, the application goes in, the award lands, the
   software gets built. main.js walks .stage through .is-p1 ... .is-p5 and
   the classes stack, so ".is-p3 x" reads as "from step three onward".

   Two rules kept this honest. Everything is authored in its FINISHED state,
   so a visitor with no scripting sees a complete picture (main.js adds
   .is-live first, which winds it back). And nothing is ever emptied out:
   the steps change what is filled in, coloured or drawn, never whether a
   thing is on screen, so no frame of the loop looks half built. */
.render-wrap {
  position: relative;
  margin: var(--s-section) auto 0;
  max-width: 1000px;
}
/* A slow bloom of the brand blue behind the mockup, so it sits in light
   rather than on flat white. Atmosphere only. */
.render-wrap::before {
  content: "";
  position: absolute;
  inset: 18% -7% -13%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 102, 204, 0.42), rgba(0, 102, 204, 0));
  filter: blur(46px);
  pointer-events: none;
  animation: bloom 11s ease-in-out infinite;
}
.render {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--canvas);
  box-shadow: var(--product-shadow);
}
.render__bar {
  height: 36px;
  background: var(--canvas-parchment);
  border-bottom: 1px solid var(--divider-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--s-sm);
}
.render__dot { width: 10px; height: 10px; border-radius: var(--r-pill); background: var(--hairline); flex: 0 0 auto; }
.render__url {
  margin-left: var(--s-xs);
  flex: 1;
  height: 20px;
  border-radius: var(--r-pill);
  background: var(--canvas);
  border: 1px solid var(--divider-soft);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 10px;
  letter-spacing: -0.08px;
  color: var(--ink-muted-48);
  overflow: hidden;
  white-space: nowrap;
}
.render__typing { flex: 0 0 auto; overflow: hidden; white-space: nowrap; }
.render__caret {
  flex: 0 0 auto;
  width: 1px;
  height: 11px;
  margin-left: 2px;
  background: var(--primary);
  opacity: 0;
}
/* The address types itself in once, then the caret stops blinking and goes.
   Scoped to .js so a scriptless page just shows the finished line. */
.js .render__typing { max-width: 0; animation: type 2.3s steps(48, end) 0.7s forwards; }
.js .render__caret { animation: caret 0.8s steps(1) 0.7s 5; }

.render__body { padding: var(--s-xl); }

/* --- the stage inside the mockup --------------------------------------- */
.stage { display: grid; gap: var(--s-md); text-align: left; transition: opacity 0.45s ease; }
.stage.is-resetting { opacity: 0; }

.stage__top {
  display: flex;
  align-items: center;
  gap: var(--s-xs);
  padding-bottom: var(--s-sm);
  border-bottom: 1px solid var(--divider-soft);
}
.stage__mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: var(--r-xs);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.stage__title { font-size: 13px; font-weight: 600; letter-spacing: -0.08px; color: var(--ink); }
.stage__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(0, 102, 204, 0.08);
  color: var(--primary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stage__live-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--primary);
  animation: live 2.4s ease-out infinite;
}

.stage__cols {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--s-md);
}
.panel {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-sm);
  background: var(--canvas);
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: var(--s-xs);
  min-height: 20px;
  margin-bottom: var(--s-xs);
  padding: 0 var(--s-xxs);
}
.panel__title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted-48);
}
.panel__badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.04px;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.panel__badge-tick {
  width: 4px;
  height: 8px;
  border: solid var(--on-primary);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin-right: 1px;
}

/* --- left: the search through grant programs --------------------------- */
.scan { position: relative; display: grid; gap: 4px; align-content: start; }
.scan__beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30px;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(0, 102, 204, 0), rgba(0, 102, 204, 0.13) 50%, rgba(0, 102, 204, 0));
  opacity: 0;
  pointer-events: none;
}
.scan__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-xs);
  height: 30px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  transition: background 0.5s ease;
}
.scan__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--hairline);
  transition: background 0.4s ease;
}
.scan__name {
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.08px;
  color: var(--ink-muted-80);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.4s ease;
}
.scan__chip {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--canvas);
  color: var(--primary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* the matched program, resolved: a solid blue row is the anchor of the
   whole picture, so the eye lands on the one that pays for the build */
.scan__row--match { background: var(--primary); }
.scan__row--match .scan__dot { background: var(--on-primary); }
.scan__row--match .scan__name { color: var(--on-primary); font-weight: 600; }

/* --- the award crossing from the grant to the build -------------------- */
.award {
  --fx: clamp(150px, 29vw, 330px);
  --fy: -84px;
  position: absolute;
  left: 27%;
  top: 56%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.06px;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 102, 204, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.award__tick {
  flex: 0 0 auto;
  width: 5px;
  height: 9px;
  margin-right: 1px;
  border: solid var(--on-primary);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

/* --- right: the software the award pays for ---------------------------- */
.chart { flex: 1 1 auto; display: flex; align-items: flex-end; min-height: 0; }
.curve { width: 100%; height: auto; display: block; }
.curve__grid { stroke: var(--divider-soft); stroke-width: 1; }
/* the dashed line is the plan, always on screen, so the panel is never
   empty; the solid one draws over it once the award lands */
.curve__ghost {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  opacity: 0.2;
}
.curve__area { fill: url(#curveFill); transition: opacity 0.8s ease; }
.curve__stop-top { stop-color: var(--primary); stop-opacity: 0.3; }
.curve__stop-bottom { stop-color: var(--primary); stop-opacity: 0; }
.curve__line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.33, 0.1, 0.25, 1);
}
.curve__marker { fill: var(--primary); r: 4; stroke: var(--canvas); stroke-width: 2.5; transition: opacity 0.4s ease 0.85s; }
.curve__ring {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 2.2s ease-out infinite;
}

/* --- the run of steps under both panels -------------------------------- */
.track { position: relative; padding-top: var(--s-xs); }
.track__rail {
  position: absolute;
  left: 10%;
  right: 10%;
  top: calc(var(--s-xs) + 5px);
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--divider-soft);
  overflow: hidden;
}
.track__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transition: width 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.track__steps { position: relative; display: flex; }
.track__step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.06px;
  color: var(--ink);
  transition: color 0.5s ease;
}
.track__dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: var(--r-pill);
  background: var(--primary);
  border: 2px solid var(--canvas);
  box-shadow: 0 0 0 1px var(--primary);
  transition: background 0.45s ease, box-shadow 0.45s ease;
}
.track__dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--r-pill);
  border: 1px solid var(--primary);
  opacity: 0;
}

/* --- wound back to the start ------------------------------------------- */
.stage.is-live .scan__row--match { background: transparent; }
.stage.is-live .scan__row--match .scan__dot { background: var(--hairline); }
.stage.is-live .scan__row--match .scan__name { color: var(--ink-muted-80); font-weight: 500; }
.stage.is-live .scan__chip { opacity: 0; transform: translateX(-8px); }
.stage.is-live .panel__badge { opacity: 0; transform: scale(0.7); }
.stage.is-live .curve__area { opacity: 0; }
.stage.is-live .curve__line { stroke-dashoffset: 1; }
.stage.is-live .curve__marker { opacity: 0; transition-delay: 0s; }
.stage.is-live .curve__ring { animation: none; }
.stage.is-live .track__fill { width: 0; }
.stage.is-live .track__step { color: var(--ink-muted-48); }
.stage.is-live .track__dot { background: var(--hairline); box-shadow: 0 0 0 1px var(--hairline); }

/* --- and stepped forward ------------------------------------------------ */
.stage.is-live.is-p1:not(.is-p2) .scan__beam { animation: beam 1.9s cubic-bezier(0.45, 0, 0.2, 1) infinite; }

.stage.is-live.is-p2 .scan__row--match { background: var(--primary); }
.stage.is-live.is-p2 .scan__row--match .scan__dot { background: var(--on-primary); }
.stage.is-live.is-p2 .scan__row--match .scan__name { color: var(--on-primary); font-weight: 600; }
.stage.is-live.is-p2 .scan__chip { opacity: 1; transform: none; }

.stage.is-live.is-p3:not(.is-p4) .curve__ghost { animation: trace 1.6s ease-in-out infinite; }

.stage.is-live.is-p4 .award { animation: award-fly 1.7s cubic-bezier(0.5, 0, 0.2, 1) 0.1s; }
.stage.is-live.is-p4 .curve__area { opacity: 1; }
.stage.is-live.is-p4 .curve__line { stroke-dashoffset: 0; }
.stage.is-live.is-p4 .curve__marker { opacity: 1; }
.stage.is-live.is-p4 .curve__ring { animation: ping 2.2s ease-out 1s infinite; }

.stage.is-live.is-p5 .panel__badge { opacity: 1; transform: none; }

.stage.is-live.is-p1 .track__step:nth-child(-n+1),
.stage.is-live.is-p2 .track__step:nth-child(-n+2),
.stage.is-live.is-p3 .track__step:nth-child(-n+3),
.stage.is-live.is-p4 .track__step:nth-child(-n+4),
.stage.is-live.is-p5 .track__step:nth-child(-n+5) { color: var(--ink); }

.stage.is-live.is-p1 .track__step:nth-child(-n+1) .track__dot,
.stage.is-live.is-p2 .track__step:nth-child(-n+2) .track__dot,
.stage.is-live.is-p3 .track__step:nth-child(-n+3) .track__dot,
.stage.is-live.is-p4 .track__step:nth-child(-n+4) .track__dot,
.stage.is-live.is-p5 .track__step:nth-child(-n+5) .track__dot {
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

/* the step currently running gets the ring */
.stage.is-live.is-p1:not(.is-p2) .track__step:nth-child(1) .track__dot::after,
.stage.is-live.is-p2:not(.is-p3) .track__step:nth-child(2) .track__dot::after,
.stage.is-live.is-p3:not(.is-p4) .track__step:nth-child(3) .track__dot::after,
.stage.is-live.is-p4:not(.is-p5) .track__step:nth-child(4) .track__dot::after,
.stage.is-live.is-p5 .track__step:nth-child(5) .track__dot::after { animation: ping 1.9s ease-out infinite; }

.stage.is-live.is-p1 .track__fill { width: 0; }
.stage.is-live.is-p2 .track__fill { width: 25%; }
.stage.is-live.is-p3 .track__fill { width: 50%; }
.stage.is-live.is-p4 .track__fill { width: 75%; }
.stage.is-live.is-p5 .track__fill { width: 100%; }

@keyframes bloom {
  0%, 100% { opacity: 0.45; transform: scale(0.94); }
  50%      { opacity: 1;    transform: scale(1.06); }
}
@keyframes type { to { max-width: 62ch; } }
@keyframes caret {
  0%, 50%      { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 102, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0); }
}
@keyframes beam {
  0%   { opacity: 0; transform: translateY(0); }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(136px); }
}
/* the planned line runs while the application is in */
@keyframes trace {
  0%, 100% { opacity: 0.2; stroke-dashoffset: 0; }
  50%      { opacity: 0.45; stroke-dashoffset: -20; }
}
@keyframes award-fly {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  16%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  70%  { opacity: 1; transform: translate(calc(-50% + var(--fx)), calc(-50% + var(--fy))) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--fx)), calc(-50% + var(--fy))) scale(0.8); }
}
@keyframes ping {
  0%        { opacity: 0.6; transform: scale(1); }
  70%, 100% { opacity: 0;   transform: scale(2.8); }
}

/* --------------------------------------------------------------------------
   9. Grids, cards, ledger
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--s-lg);
  margin-top: var(--s-xxl);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  color: var(--ink);
}
.on-dark .card {
  background: var(--surface-tile-2);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--on-dark);
}
.card h3 { margin-bottom: var(--s-xs); }
.card p { color: var(--ink-muted-80); }
.on-dark .card p { color: var(--body-muted); }

.card--pearl { background: var(--surface-pearl); }

/* Numbered step */
.step__num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: var(--s-md);
  display: block;
}
.on-dark .step__num { color: var(--primary-on-dark); }

/* Two-column ledger (what you get / what we keep) */
.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-lg);
  margin-top: var(--s-xxl);
}
.ledger__col {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
  background: var(--canvas);
}
.ledger__col h3 { margin-bottom: var(--s-lg); }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: flex;
  gap: var(--s-sm);
  padding: var(--s-sm) 0;
  border-top: 1px solid var(--divider-soft);
  color: var(--ink-muted-80);
  font-size: 17px;
  line-height: 1.44;
}
.ledger li:first-child { border-top: 0; padding-top: 0; }
.ledger li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 5px;
  border-radius: var(--r-pill);
  background: rgba(0, 102, 204, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ledger__col--ours li::before {
  background: rgba(29, 29, 31, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7a7a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.statement {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.faq { margin-top: var(--s-xxl); border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: var(--s-lg) var(--s-xs);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-lg);
}
.faq__q::after {
  content: "";
  flex: 0 0 auto;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s ease;
}
.faq__q[aria-expanded="true"]::after { transform: rotate(180deg); }
.faq__a {
  padding: 0 var(--s-xs) var(--s-lg);
  max-width: 78ch;
  color: var(--ink-muted-80);
}

/* --------------------------------------------------------------------------
   10. Work - coverflow carousel
   -------------------------------------------------------------------------- */
.flow {
  position: relative;
  margin-top: var(--s-xxl);
  user-select: none;
  /* Card width drives the stage height; JS then sets the exact pixel height. */
  --card-w: min(760px, 76vw);
}

.flow__stage {
  position: relative;
  /* Fallback if JS hasn't measured yet: chrome + 16:10 shot + meta. */
  min-height: calc(36px + (var(--card-w) * 0.625) + 104px);
  perspective: 1800px;
  transform-style: preserve-3d;
  touch-action: pan-y;
  cursor: grab;
  transition: height 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.flow__stage:active { cursor: grabbing; }

.flow__item {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--card-w);
  margin-left: calc(var(--card-w) / -2);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.6s ease, filter 0.6s ease;
  will-change: transform, opacity;
}
.flow__item[data-state="hidden"] { opacity: 0; pointer-events: none; }
.flow__item[data-state="side"] { filter: saturate(0.5) brightness(0.98); }

.flow__card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--canvas);
  box-shadow: var(--product-shadow);
  display: block;
  color: inherit;
}
.flow__card:hover { text-decoration: none; }

.flow__chrome {
  height: 36px;
  background: var(--canvas-parchment);
  border-bottom: 1px solid var(--divider-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--s-sm);
}

.flow__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--canvas-parchment);
  overflow: hidden;
}
.flow__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Fallback poster shown until a screenshot file is dropped in */
.flow__poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: var(--s-sm);
  text-align: center;
  padding: var(--s-xl);
  background: var(--canvas);
}
.flow__poster-mark {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.flow__poster-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}
.flow__poster-url { font-size: 12px; color: var(--ink-muted-48); letter-spacing: -0.12px; }

.flow__meta {
  padding: var(--s-lg);
  border-top: 1px solid var(--divider-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  background: var(--canvas);
}
.flow__meta h3 { font-size: 21px; letter-spacing: 0.011em; color: var(--ink); }

/* Small qualifier chip beside a project name */
.chip {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted-48);
  background: var(--canvas-parchment);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 4px 9px;
  margin-left: 6px;
  position: relative;
  top: -1px;
}
.flow__meta p { color: var(--ink-muted-48); font-size: 14px; letter-spacing: -0.224px; margin-top: 2px; }
.flow__meta .arrow-link { font-size: 14px; letter-spacing: -0.224px; }

.flow__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-lg);
  margin-top: var(--s-xl);
}

.flow__dots { display: flex; gap: var(--s-xs); align-items: center; }
.flow__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--hairline);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.flow__dot[aria-selected="true"] { width: 24px; background: var(--primary); }

.flow__caption {
  text-align: center;
  margin: var(--s-lg) auto 0;
  /* Tall enough for the longest blurb, so the page doesn't jump by a line
     as you flip between projects. */
  min-height: 5.8em;
  max-width: 640px;
  color: var(--ink-muted-80);
}
.flow__hint { margin-top: var(--s-sm); color: var(--ink-muted-48); text-align: center; }

/* Work index list below the carousel */
.work-list { margin-top: var(--s-xxl); border-top: 1px solid var(--hairline); }
.work-list__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-lg);
  align-items: center;
  padding: var(--s-lg) var(--s-xs);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  transition: padding-left 0.2s ease;
}
.work-list__row:hover { text-decoration: none; padding-left: var(--s-md); }
.work-list__row:hover .work-list__name { color: var(--primary); }
.work-list__name { display: block; font-size: 21px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.011em; transition: color 0.2s ease; }
.work-list__tag { display: block; color: var(--ink-muted-48); font-size: 14px; letter-spacing: -0.224px; margin-top: 2px; }
.work-list__go { color: var(--primary); font-size: 14px; letter-spacing: -0.224px; white-space: nowrap; }

/* --------------------------------------------------------------------------
   11. About
   -------------------------------------------------------------------------- */
.bio {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--s-section);
  align-items: start;
  margin-top: var(--s-xxl);
}

.headshot {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--canvas-parchment);
  aspect-ratio: 4 / 5;
  box-shadow: var(--product-shadow);
  position: relative;
}
.headshot img { width: 100%; height: 100%; object-fit: cover; }
.headshot__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: var(--s-xs);
  text-align: center;
  padding: var(--s-lg);
  color: var(--ink-muted-48);
  background: var(--canvas-parchment);
}
.headshot__placeholder svg { margin: 0 auto; opacity: 0.3; }

.headshot__caption { margin-top: var(--s-md); }

.timeline { list-style: none; margin: var(--s-xxl) 0 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--s-lg);
  padding: var(--s-lg) 0;
  border-top: 1px solid var(--hairline);
}
.timeline__when {
  color: var(--ink-muted-48);
  font-size: 14px;
  letter-spacing: -0.224px;
}
.timeline__what strong { font-weight: 600; }
.timeline__what p { color: var(--ink-muted-80); margin-top: var(--s-xxs); }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form {
  margin-top: var(--s-xxl);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
}

.form__section + .form__section {
  margin-top: var(--s-xl);
  padding-top: var(--s-xl);
  border-top: 1px solid var(--divider-soft);
}
.form__section-title {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted-48);
  margin-bottom: var(--s-lg);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-lg);
}
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: var(--s-xs); }
.field label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--ink);
}
.field .hint { font-size: 12px; letter-spacing: -0.12px; color: var(--ink-muted-48); }
.field .req { color: var(--primary); font-weight: 400; }

.input, .select, .textarea {
  font-family: var(--font-text);
  font-size: 17px;
  letter-spacing: -0.374px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 12px 16px;
  min-height: 44px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.44; }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7a7a' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary-focus);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-muted-48); }

.checks { display: grid; gap: var(--s-sm); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 14px;
  letter-spacing: -0.224px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.check:hover { border-color: var(--ink-muted-48); }
.check input { accent-color: var(--primary); width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 auto; }
.check:has(input:checked) { border-color: var(--primary); background: rgba(0, 102, 204, 0.04); }

.form__footer {
  margin-top: var(--s-xl);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--divider-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
}

.form__status {
  margin-top: var(--s-md);
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
}
.form__status[data-tone="ok"] { color: var(--primary); }

/* Embedded Google Form slot */
.embed {
  margin-top: var(--s-xxl);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--canvas);
}
.embed iframe { width: 100%; min-height: 1000px; border: 0; display: block; }

/* --------------------------------------------------------------------------
   13. Channels & socials
   -------------------------------------------------------------------------- */
.channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-lg);
  margin-top: var(--s-xxl);
}
.channel {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--canvas);
  padding: var(--s-lg);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.channel:hover { text-decoration: none; border-color: var(--primary); }
.channel__icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: rgba(0, 102, 204, 0.08);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.channel__icon svg { width: 20px; height: 20px; }
.channel__label { display: block; font-size: 14px; letter-spacing: -0.224px; color: var(--ink-muted-48); }
.channel__value { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.374px; margin-top: 2px; word-break: break-word; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(29, 29, 31, 0.06);
  border-radius: var(--r-xs);
  padding: 1px 5px;
}

.socials { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-top: var(--s-xl); }
.social {
  display: inline-flex;
  align-items: center;
  gap: var(--s-xs);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--ink);
  background: var(--canvas);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.social svg { width: 16px; height: 16px; }

/* On dark tiles the live chips carry the accent (they're the interactive
   ones); the "soon" chips stay muted and dashed. `a.social` is needed to
   outrank `.on-dark a:not(.btn)`. */
.on-dark a.social {
  background: transparent;
  border-color: rgba(41, 151, 255, 0.4);
  color: var(--primary-on-dark);
}
.on-dark a.social:hover { border-color: var(--primary-on-dark); }
.on-dark .social--soon { color: var(--body-muted); border-color: rgba(255, 255, 255, 0.18); background: transparent; }
.social--soon {
  color: var(--ink-muted-48);
  border-style: dashed;
  cursor: default;
  pointer-events: none;
}
.social--soon::after {
  content: "soon";
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--canvas-parchment);
  color: var(--ink-muted-80);
  padding: 64px var(--s-lg);
}
.footer__inner { max-width: 1440px; margin: 0 auto; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-xl);
}
.footer h4 {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--ink);
  margin-bottom: var(--s-xs);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul a {
  color: var(--ink-muted-80);
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: -0.224px;
}
.footer ul a:hover { color: var(--primary); text-decoration: none; }

.footer__legal {
  margin-top: var(--s-xxl);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
  justify-content: space-between;
  color: var(--ink-muted-48);
  font-size: 12px;
  letter-spacing: -0.12px;
}

/* --------------------------------------------------------------------------
   15. Motion
   -------------------------------------------------------------------------- */
/* Scoped to .js so that if scripting is off or fails, content is simply
   visible rather than invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .flow__item { transition: none; }
  /* The hero graphic holds still in its finished state. main.js also skips
     the phase loop entirely here, so nothing is left half drawn. */
  .js .render__typing { max-width: none; animation: none; }
  .render-wrap::before,
  .stage__live-dot,
  .scan__beam,
  .curve__ghost,
  .curve__ring,
  .award,
  .track__dot::after { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1068px) {
  .t-hero { font-size: 40px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio { grid-template-columns: 260px 1fr; gap: var(--s-xl); }
}

@media (max-width: 833px) {
  .global-nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--surface-black);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-xs) var(--s-lg) var(--s-lg);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .global-nav__links[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .global-nav__links a {
    font-size: 17px;
    letter-spacing: -0.374px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-toggle { display: inline-flex; }

  .sub-nav__links { display: none; }
  .sub-nav__title { font-size: 17px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; gap: var(--s-xl); }
  .headshot { max-width: 320px; }
  .form__grid { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { --card-w: 88vw; }
}

@media (max-width: 734px) {
  .tile { padding: var(--s-xxl) var(--s-lg); }
  .hero { padding-top: 64px; }
  .render-wrap { margin-top: var(--s-xxl); }
  .render__body { padding: var(--s-lg) var(--s-md); }
  /* Stacked, the two panels read top to bottom, so the award has nowhere
     sensible to fly. The step track carries that beat on its own. */
  .stage__cols { grid-template-columns: 1fr; gap: var(--s-sm); }
  .award { display: none; }
  .stage__title { font-size: 12px; }
  .track__step { font-size: 9px; gap: 8px; }
  .t-display-lg { font-size: 32px; }
  .t-display-md { font-size: 28px; }
  .t-lead { font-size: 21px; }
  .t-lead-airy { font-size: 19px; }
  .timeline li { grid-template-columns: 1fr; gap: var(--s-xs); }
  .form { padding: var(--s-lg); }
  .flow__caption { min-height: 0; }
  .flow__meta { flex-direction: column; align-items: flex-start; }
  .faq__q { font-size: 17px; }
}

@media (max-width: 640px) {
  .t-hero { font-size: 34px; }
  .btn-row { gap: var(--s-sm); }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

@media (max-width: 419px) {
  .t-hero { font-size: 28px; }
  .footer__cols { grid-template-columns: 1fr; }
}
