/* =========================================================
   josebrizida.com · "Signal over noise"
   Layout concept: a spec-sheet grid on cool ink. Images are rendered
   from noise (dither, duotone), labels speak in monospace, and one
   colour, Klein blue, marks what was chosen out of everything made.
   ========================================================= */

@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/funnel-display-latin.woff2?v=96468ae772') format('woff2');
}
@font-face {
  font-family: 'Funnel Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/funnel-sans-latin.woff2?v=db04420f79') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2?v=23e8992733') format('woff2');
}

:root {
  color-scheme: dark;

  /* ground and surfaces: cool ink */
  --ink: #08090C;
  --ink-2: #0F1116;
  --ink-3: #171A21;

  /* text (on --ink: 16.5 / 8.6 / 5.3) */
  --bone: #ECEAE4;
  --ash: #A6AAB5;
  --smoke: #7E8391;

  /* the one colour: Klein blue (bone on --klein 5.7, on --klein-deep 8.2; --signal on ink 7.9) */
  --klein: #2337FF;
  --klein-hover: #3A4CFF;
  --klein-deep: #1424C9;
  --signal: #8B9CFF;
  --klein-glow: rgba(35, 55, 255, .35);

  /* lines */
  --line: rgba(236, 234, 228, .09);
  --line-2: rgba(236, 234, 228, .16);
  --line-3: rgba(236, 234, 228, .34);

  /* type */
  --font-display: 'Funnel Display', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Funnel Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --fs-h1: clamp(46px, 7.2vw, 116px);
  --fs-h2: clamp(34px, 4.9vw, 72px);
  --fs-lead: clamp(17px, 1.5vw, 20px);

  /* layout */
  --max: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --section-y: clamp(72px, 9vw, 136px);
  --header-h: 64px;
  --r: 6px;

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-snap: cubic-bezier(.7, 0, .2, 1);
}

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px));
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background: var(--ink);
  color: var(--bone);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: normal; }
cite { font-style: normal; color: var(--bone); }
b, strong { font-weight: 600; }
::selection { background: var(--klein); color: var(--bone); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
  user-select: none;
}
.mono { font-family: var(--font-mono); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--pad-l) + var(--pad-r));
  margin-inline: auto;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}

.skip {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: var(--pad-l);
  z-index: 200;
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--klein);
  color: var(--bone);
  font: 600 13px/1 var(--font-mono);
  transform: translateY(-200%);
  transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }

.progress { position: fixed; inset: 0 0 auto; z-index: 120; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--klein); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--bone); text-wrap: balance; }
h2 { font-weight: 500; font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.035em; }
/* the second clause is "selected" once the model has written the line: the person picks the part that matters */
h2 em {
  color: var(--bone);
  padding-inline: .06em;
  margin-inline: -.06em;
  background: linear-gradient(var(--klein), var(--klein)) 0 58% / 0% .78em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .7s var(--ease-snap) .15s;
}
h2.is-done em, h2:not(.is-streamed) em { background-size: 100% .78em; }
h3 { font-weight: 500; font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
p { text-wrap: pretty; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12.5px/1.2 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 22px;
}
.label::before { content: ">"; content: ">" / ""; flex: none; color: var(--signal); font-weight: 600; }

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ash); max-width: 34em; }

/* the blinking block caret, our one recurring "machine" mark */
.caret {
  display: inline-block;
  width: .52em;
  height: .82em;
  margin-left: .08em;
  vertical-align: -.06em;
  background: var(--klein);
  animation: blink 1.1s steps(1) 4;
}
@keyframes blink { 50% { opacity: 0; } }

.live {
  position: relative;
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
}
.live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--signal);
  opacity: 0;
  animation: ping 2.4s var(--ease) 2;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 15px 22px;
  border-radius: 4px;
  background: var(--klein);
  color: var(--bone);
  font: 600 13.5px/1.2 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color .2s ease, box-shadow .25s ease, transform .25s var(--ease);
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover { background: var(--klein-hover); box-shadow: 0 0 0 4px var(--klein-glow); transform: translateY(-1px); }
.btn:hover span { transform: translateX(3px); }
.btn:active { transform: none; }
.btn--sm { min-height: 42px; padding: 11px 16px; font-size: 12.5px; }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-3); }
.btn--ghost:hover { background: rgba(139, 156, 255, .08); box-shadow: inset 0 0 0 1px var(--signal); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 13.5px/1.2 var(--font-mono);
  letter-spacing: .04em;
  color: var(--bone);
  padding-block: 6px;
  background: linear-gradient(var(--line-3), var(--line-3)) 0 100% / 100% 1px no-repeat;
  transition: color .2s ease, gap .25s var(--ease);
}
.link-arrow span { color: var(--signal); }
.link-arrow:hover { color: var(--signal); gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, transform .45s var(--ease), opacity .2s ease;
}
.site-header.is-scrolled {
  background: rgba(8, 9, 12, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
html.popup-open .site-header { opacity: 0; pointer-events: none; }
.bar {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: calc(var(--max) + var(--pad-l) + var(--pad-r));
  height: var(--header-h);
  margin-inline: auto;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; font: 600 19px/1 var(--font-display); letter-spacing: -0.02em; }
.brand .caret { height: .78em; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--smoke); letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 10px 12px;
  font: 500 12.5px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ash);
  border-radius: 4px;
  transition: color .2s ease, background-color .2s ease;
}
.nav a:hover { color: var(--bone); background: rgba(236, 234, 228, .05); }
.nav a.is-active { color: var(--bone); }
.nav a.is-active::before { content: "> "; color: var(--signal); }
.header-cta { flex: none; }
.menu-toggle {
  display: none;
  margin-left: auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--line-3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 36px) var(--pad-r) calc(env(safe-area-inset-bottom, 0px) + 28px) var(--pad-l);
  background: var(--ink);
  overflow-y: auto;
}
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 500 clamp(32px, 9vw, 48px)/1.1 var(--font-display);
  letter-spacing: -0.03em;
}
.js .mobile-menu:not([hidden]) nav a { animation: menuIn .45s var(--ease) both; }
.js .mobile-menu nav a:nth-child(2) { animation-delay: .04s; }
.js .mobile-menu nav a:nth-child(3) { animation-delay: .08s; }
.js .mobile-menu nav a:nth-child(4) { animation-delay: .12s; }
.js .mobile-menu nav a:nth-child(5) { animation-delay: .16s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 980px; margin-bottom: clamp(40px, 5.5vw, 72px); }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: 28px 64px;
}
.section-head--split > .lead, .section-head--split > .link-arrow { justify-self: end; }
.section-head--stack .lead { margin-top: 26px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + clamp(44px, 6.5vw, 100px));
  padding-bottom: clamp(48px, 6vw, 84px);
  isolation: isolate;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: max(var(--pad-l), calc(50% - 644px)) -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 92%);
}
/* the grid lights up in blue under the pointer: a round window moves one way and the grid
   inside it the other, so the lines stay put and nothing is repainted (transform only) */
.glow {
  position: absolute;
  left: 0; top: 0;
  width: 520px; height: 520px;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent 70%);
  mask-image: radial-gradient(closest-side, #000, transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  will-change: transform;
}
.glow.is-on { opacity: 1; }
.glow-grid {
  position: absolute;
  left: 0; top: 0;
  width: var(--hero-w, 100vw);
  height: var(--hero-h, 100vh);
  background-image:
    linear-gradient(rgba(139, 156, 255, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 156, 255, .55) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: max(var(--pad-l), calc(50% - 644px)) -1px;
  will-change: transform;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
}
.hero-title {
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: .95;
  letter-spacing: -0.045em;
  max-width: 9.6em;
}
.hero-title em { display: block; color: var(--signal); }
.hero-lead { margin-top: clamp(24px, 3vw, 34px); max-width: 36em; font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.62; color: var(--ash); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.hero-note { flex: 1 1 18em; max-width: 26em; font-size: 14.5px; line-height: 1.5; color: var(--smoke); }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 16px clamp(22px, 3.4vw, 52px); margin-top: clamp(32px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--line-2); }
.hero-proof li { display: grid; align-content: start; gap: 6px; }
.hero-proof b { font: 400 clamp(26px, 2.4vw, 34px)/1 var(--font-display); letter-spacing: -0.035em; color: var(--bone); }
.hero-proof span { max-width: 17ch; font: 500 11.5px/1.45 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--smoke); }

/* the portrait, rendered from noise */
.render { justify-self: end; width: min(100%, 470px); }
.render-frame {
  position: relative;
  padding: clamp(14px, 1.8vw, 22px);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background:
    radial-gradient(70% 55% at 55% 38%, rgba(35, 55, 255, .16), transparent 70%),
    var(--ink-2);
}
.render-static, .render-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 212 / 275;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.render-canvas { position: absolute; inset: clamp(14px, 1.8vw, 22px); width: calc(100% - 2 * clamp(14px, 1.8vw, 22px)); display: none; }
.js .render.is-live .render-canvas { display: block; }
.js .render.is-live .render-static { opacity: 0; }
.render.is-live .render-canvas { cursor: crosshair; }
.corner { position: absolute; width: 16px; height: 16px; border: 0 solid var(--signal); }
.corner--tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corner--tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner--bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corner--br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.render-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  white-space: nowrap;
  margin-top: 12px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--smoke);
}

/* logos */
.logos { margin-top: clamp(64px, 7vw, 104px); padding-top: 28px; border-top: 1px solid var(--line); }
.logos-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.logos-head .label { margin-bottom: 0; }
.marquee-toggle {
  flex: none;
  white-space: nowrap;
  margin-left: auto;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--smoke);
  transition: color .2s ease, box-shadow .2s ease;
}
.marquee-toggle:hover { color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-3); }
.marquee-toggle[aria-pressed="true"] { color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; }
.marquee-track li { flex: none; }
.marquee-track img { height: var(--h, 24px); width: auto; opacity: .62; transition: opacity .25s ease; }
.marquee-track li:hover img { opacity: 1; }
.marquee:not(.is-running) { -webkit-mask-image: none; mask-image: none; }
.marquee:not(.is-running) .marquee-track { justify-content: center; gap: 24px 44px; }
.marquee.is-running .marquee-track { flex-wrap: nowrap; width: max-content; gap: 0; animation: marquee 50s linear infinite; }
.marquee.is-running .marquee-track li { padding-right: 60px; }
.marquee.is-running:not(.is-visible) .marquee-track { animation-play-state: paused; }
.marquee.is-running:hover .marquee-track,
.marquee.is-running:focus-within .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { animation-play-state: paused !important; }
html.motion-paused .mobile-menu nav a { animation: none !important; }

/* ---------- shared card behaviour: pointer light and selection corners ---------- */
[data-spotlight] { position: relative; isolation: isolate; }
[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(280px circle at var(--sx, 50%) var(--sy, 50%), rgba(35, 55, 255, .14), transparent 65%);
  transition: opacity .3s ease;
}
[data-spotlight]:hover::after { opacity: 1; }
.selectable::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .25s ease, transform .35s var(--ease);
  --c: var(--signal);
  background:
    linear-gradient(var(--c), var(--c)) top left / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 16px no-repeat;
}
.selectable:hover::before, .selectable:focus-visible::before, .selectable:focus-within::before, .selectable.is-picked::before { opacity: 1; transform: none; }

/* ---------- AI work ---------- */
.systems { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-2); }
.system {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-rows: auto 1fr;
  column-gap: 48px;
  row-gap: 10px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-2);
}
.system-tag { grid-column: 1; grid-row: 1 / span 2; padding-top: 6px; color: var(--signal); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.system h3 { grid-column: 2; font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -0.025em; }
.system > p:not(.system-tag) { grid-column: 2; color: var(--ash); font-size: 16px; line-height: 1.6; }
.system .spec { grid-column: 3; grid-row: 1 / span 2; margin-top: 4px; }
.spec { border-top: 1px dashed var(--line-2); }
.spec div { display: grid; grid-template-columns: 9.5ch minmax(0, 1fr); gap: 12px; padding-block: 9px; border-bottom: 1px dashed var(--line); font-size: 12.5px; line-height: 1.45; }
.spec dt { color: var(--smoke); }
.spec dd { color: var(--bone); }

/* ---------- judgement board ---------- */
.funnel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.funnel-stage { position: relative; }
.funnel-board {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 32px);
  width: min(100%, calc(100svh - var(--header-h) - 64px));
  max-width: 100%;
  aspect-ratio: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: clamp(16px, 2.2vw, 28px);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(35, 55, 255, .10), transparent 70%),
    var(--ink-2);
}
.board-head, .board-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12px; letter-spacing: .06em; color: var(--smoke); }
.board-head [data-readout-label] { flex: 1; text-align: right; color: var(--signal); text-transform: uppercase; }
.board-foot { padding-top: 12px; border-top: 1px solid var(--line); }
.readout-num { font: 300 clamp(36px, 4vw, 56px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--bone); font-variant-numeric: tabular-nums; }
.funnel-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: repeat(10, minmax(0, 1fr));
  gap: clamp(3px, .6vw, 7px);
  aspect-ratio: 1;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  justify-self: center;
}
.cell {
  border-radius: 2px;
  background-color: rgba(236, 234, 228, .14);
  background-image: var(--pat, none);
  background-size: 100% 100%;
  image-rendering: pixelated;
  opacity: .08;
  transform: scale(.5);
  transition: opacity .45s ease var(--dl, 0s);
}
.cell.idea, .cell.keep, .cell.win { transition: opacity .45s ease var(--dl, 0s), transform .55s var(--ease) var(--dl, 0s), background-color .45s ease var(--dl, 0s), box-shadow .45s ease var(--dl, 0s); }
[data-step="0"] .cell.idea, [data-step="1"] .cell.idea { opacity: 1; transform: scale(1); background: var(--klein); box-shadow: 0 0 16px var(--klein-glow); }
[data-step="2"] .cell { opacity: 1; transform: scale(.9); }
[data-step="3"] .cell { opacity: .06; transform: scale(.38); --dl: 0s; }
[data-step="3"] .cell.keep { opacity: 1; transform: scale(1); background: var(--bone); }
[data-step="4"] .cell, [data-step="5"] .cell { opacity: .05; transform: scale(.36); --dl: 0s; }
[data-step="4"] .cell.keep, [data-step="5"] .cell.keep { opacity: 1; transform: scale(1.1); background: var(--klein); box-shadow: 0 0 18px var(--klein-glow); }
[data-step="5"] .cell.keep { opacity: .5; transform: scale(.92); box-shadow: none; }
[data-step="5"] .cell.win { opacity: 1; transform: scale(1.5); background: var(--bone); box-shadow: 0 0 0 5px var(--klein), 0 0 30px var(--klein-glow); }

.funnel-steps { display: grid; }
@media (min-width: 901px) { .funnel-steps { padding-bottom: 30vh; } }
.funnel-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-block: clamp(40px, 9vh, 96px);
  border-top: 1px solid var(--line);
}
.funnel-step:last-child { border-bottom: 1px solid var(--line); }
.step-n { padding-top: 8px; font-size: 13px; color: var(--smoke); transition: color .35s ease; }
.funnel-step h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.025em; color: var(--ash); transition: color .35s ease; }
.funnel-step p { margin-top: 10px; color: var(--smoke); max-width: 30em; transition: color .35s ease; }
.funnel-step.is-active .step-n { color: var(--signal); }
.funnel-step.is-active .step-n::before { content: "> "; }
.funnel-step.is-active h3 { color: var(--bone); }
.funnel-step.is-active p { color: var(--ash); }
.no-js .funnel-stage { display: none; }
.no-js .funnel { grid-template-columns: minmax(0, 1fr); }
.no-js .funnel-step h3 { color: var(--bone); }
.no-js .funnel-step p { color: var(--ash); }

/* ---------- quote band ---------- */
.band { position: relative; overflow: hidden; background: var(--klein-deep); isolation: isolate; }
.band-noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(236, 234, 228, .16) 1px, transparent 1.4px);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(115deg, transparent 20%, #000 75%);
}
.band-inner { padding-block: clamp(80px, 11vw, 168px); }
.scrub-quote { max-width: 1180px; }
.scrub-quote p { font: 500 clamp(32px, 4.9vw, 76px)/1.06 var(--font-display); letter-spacing: -0.035em; color: var(--bone); text-wrap: balance; }
.scrub-quote p::before { content: "\201C"; }
.scrub-quote p::after { content: "\201D"; }
.js .scrub-quote .sw { color: #8F99EA; transition: color .35s ease; }
.js .scrub-quote .sw.on { color: var(--bone); }
.band-cite { margin-top: 32px; font-size: 13px; letter-spacing: .02em; color: rgba(236, 234, 228, .85); }
.band-cite a { color: var(--bone); background: linear-gradient(rgba(236, 234, 228, .5), rgba(236, 234, 228, .5)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.band-cite a:hover { background-size: 100% 2px; }
.band :focus-visible { outline-color: var(--bone); }

/* ---------- rules ---------- */
.rules-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.rules-head { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 40px); }
.rules-list { border-top: 1px solid var(--line-2); }
.rule { position: relative; padding: 28px 0 30px 34px; border-bottom: 1px solid var(--line-2); }
.rule::before { content: ""; position: absolute; left: 0; top: 37px; width: 10px; height: 10px; border: 1px solid var(--signal); transition: background-color .25s ease; }
.rule:hover::before { background: var(--klein); border-color: var(--klein); }
.rule h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.02em; }
.rule p { margin-top: 10px; color: var(--ash); max-width: 36em; }

/* ---------- experience log ---------- */
.log { --fill: 0; position: relative; }
.log::before, .log::after { content: ""; position: absolute; left: calc(160px + 23px); top: 10px; bottom: 10px; width: 1px; }
.log::before { background: var(--line-2); }
.log::after { background: var(--klein); transform-origin: 50% 0; transform: scaleY(var(--fill)); }
.no-js .log::after { transform: none; }
.log-row {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 8px 48px;
  padding-block: 22px;
}
.log-link { padding-top: 10px; font-size: 13px; color: var(--signal); white-space: nowrap; }
.log-link:hover { color: var(--bone); }
.log-row::before {
  content: "";
  position: absolute;
  left: calc(160px + 18px);
  top: 32px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-3);
  transition: background-color .35s ease, box-shadow .35s ease;
  z-index: 1;
}
.log-row.is-on::before, .no-js .log-row::before { background: var(--klein); box-shadow: 0 0 0 4px rgba(35, 55, 255, .25); }
.log-row.is-current::before { background: var(--signal); box-shadow: 0 0 0 4px rgba(139, 156, 255, .25); }
.log-when { padding-top: 6px; font-size: 13px; letter-spacing: .04em; color: var(--smoke); text-align: right; }
.log-row.is-current .log-when { color: var(--signal); }
.log-what h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; }
.log-org { margin-top: 4px; font: 500 13px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--signal); }
.log-what p:not(.log-org) { margin-top: 10px; color: var(--ash); max-width: 46em; }
.log-row--edu h3 { font-size: clamp(19px, 1.7vw, 22px); color: var(--ash); }
.log-row--edu .log-org { color: var(--smoke); }

/* ---------- speaking ---------- */
.speaking-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.speaking-media {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 32px);
  overflow: hidden;
  border-radius: var(--r);
  aspect-ratio: 900 / 1128;
  max-width: 100%;
  background: var(--ink-2);
}
.speaking-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.6s var(--ease); }
.speaking-media.is-in img { transform: none; }
.talk {
  margin-top: 32px;
  padding: clamp(24px, 2.8vw, 34px);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--ink-2);
}
.talk-kicker { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.talk h3 { margin-top: 14px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.035em; }
.talk-orig { margin-top: 6px; font-size: 14.5px; color: var(--smoke); }
.talk > p:not(.talk-kicker):not(.talk-orig) { margin-top: 16px; color: var(--ash); }
.talk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.topics li { padding: 8px 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; letter-spacing: .04em; color: var(--ash); }
.media-list { margin-top: 32px; border-top: 1px solid var(--line-2); }
.media-list a {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line-2);
  transition: background-color .2s ease, padding .3s var(--ease);
}
.media-list a:hover { background: rgba(35, 55, 255, .08); padding-inline: 12px; }
.m-type { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--smoke); }
.m-title { font-size: 16.5px; line-height: 1.4; color: var(--bone); }
.m-date { font-size: 12.5px; color: var(--smoke); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quote {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(24px, 2.8vw, 34px);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--ink-2);
}
.quote blockquote { flex: 1; }
.quote blockquote p { color: var(--ash); }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.quote figcaption span { display: grid; gap: 2px; }
.quote figcaption b { font: 600 15.5px/1.2 var(--font-body); color: var(--bone); }
.quote figcaption small { font: 400 12.5px/1.35 var(--font-mono); color: var(--smoke); }
.quote--lead { grid-column: 1 / -1; padding: 0 0 clamp(28px, 3vw, 40px); border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: none; }
.quote--lead blockquote p { font: 500 clamp(22px, 2.5vw, 34px)/1.3 var(--font-display); letter-spacing: -0.02em; color: var(--bone); max-width: 38em; }
.quote--lead blockquote p::before { content: "\201C"; color: var(--signal); }
.quote--lead blockquote p::after { content: "\201D"; color: var(--signal); }
.quote--lead figcaption img { width: 56px; height: 56px; }

/* ---------- contact ---------- */
.prompt {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(35, 55, 255, .16), transparent 60%),
    var(--ink-2);
}
.prompt-head h2 { font-size: clamp(34px, 4.4vw, 64px); }
.prompt-head .lead { margin-top: 20px; }
.prompt-options { display: grid; gap: 10px; }
.prompt-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 20px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--ink);
  transition: border-color .2s ease, background-color .2s ease, transform .35s var(--ease);
}
.prompt-option:hover { border-color: var(--klein); background: var(--ink-3); transform: translateX(4px); }
.prompt-option--primary { background: var(--klein); border-color: transparent; }
.prompt-option--primary:hover { background: var(--klein-hover); border-color: transparent; }
.prompt-option--primary .po-label, .prompt-option--primary:hover .po-label, .prompt-option--primary .po-go { color: var(--bone); }
.prompt-option.is-picked { border-color: var(--signal); box-shadow: 0 0 0 4px rgba(139, 156, 255, .2); }
.po-label { grid-column: 1; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--smoke); transition: color .2s ease; }
.prompt-option:hover .po-label { color: var(--signal); }
.po-text { grid-column: 1; font: 500 clamp(18px, 1.7vw, 22px)/1.35 var(--font-display); letter-spacing: -0.01em; }
.po-go { grid-column: 2; grid-row: 1 / span 2; font: 500 20px/1 var(--font-mono); color: var(--signal); transition: transform .25s var(--ease); }
.prompt-option:hover .po-go { transform: translateX(4px); }

/* ---------- booking bar: phones and tablets, once the hero button has scrolled away ---------- */
.book-bar { display: none; }
@media (max-width: 960px) {
  .js .book-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px var(--pad-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--pad-l);
    background: rgba(8, 9, 12, .92);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border-top: 1px solid var(--line-2);
    transform: translateY(110%);
    transition: transform .35s var(--ease);
  }
  .js .book-bar.is-shown { transform: none; }
  .book-bar-note { flex: none; font-size: 11px; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; color: var(--ash); }
  .book-bar .btn { flex: 1; min-height: 46px; }
  html.popup-open .book-bar { display: none; }
}

/* ---------- footer ---------- */
.site-footer {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-h { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--smoke); margin-bottom: 16px; }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { color: var(--ash); transition: color .2s ease; }
.footer-cols a:hover { color: var(--signal); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .04em; color: var(--smoke); }

/* =========================================================
   Motion states (only with JS and motion allowed)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-in { opacity: 0; transform: translateY(14px); animation: heroIn .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
  .js .render.hero-in { opacity: 1; transform: none; animation: none; }
  @keyframes heroIn { to { opacity: 1; transform: none; } }
  @media (max-width: 960px) {
    .js .hero-in { opacity: 1; transform: none; animation: none; }
    .js .hero-title[data-stream]:not(.is-streamed) { opacity: 1; animation: none; }
  }

  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .9s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal-d1 { transition-delay: .07s; }
  .js .reveal-d2 { transition-delay: .14s; }
  .js .reveal-d3 { transition-delay: .21s; }

  .js .reveal-mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-snap); }
  .js .reveal-mask.is-in { clip-path: inset(0 0 0 0); }

  /* streaming headings: every character is laid out from the start, only its ink arrives late */
  [data-stream].is-streamed .wd { white-space: nowrap; }
  [data-stream].is-streamed .ch { color: transparent; }
  [data-stream].is-streamed .ch.on { color: inherit; }
  [data-stream].is-streamed .ch.tip::after {
    content: "";
    position: absolute;
    width: .5em;
    height: .8em;
    margin: .12em 0 0 .06em;
    background: var(--klein);
  }
  .js [data-stream]:not(.is-streamed) { opacity: 0; animation: fallbackShow 0s 1.4s both; }
  @keyframes fallbackShow { to { opacity: 1; } }
  [data-stream].is-done .ch.tip::after { animation: blink 1.1s steps(1) infinite; }

  /* the portrait waits for its canvas; if the script never gets there, the picture shows anyway */
  .js .render:not(.is-live):not(.is-static) .render-static { opacity: 0; animation: fallbackShow 0s 1.6s both; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .marquee .marquee-track { flex-wrap: wrap; width: auto; }
}

@media (forced-colors: active) {
  .btn, .menu-toggle, .marquee-toggle, .prompt-option { border: 1px solid ButtonText; }
  .funnel-board { forced-color-adjust: none; }
  .render-frame { forced-color-adjust: none; }
  h2 em { forced-color-adjust: none; background-size: 0% 100%; }
  h2.is-done em, h2:not(.is-streamed) em { background-size: 100% 100%; }
}
.no-js .menu-toggle { display: none !important; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .status { display: none; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-cta { display: none; }
  .no-js .header-cta { display: inline-flex; margin-left: auto; }
  .prompt { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 961px) { .mobile-menu { display: none !important; } }

@media (max-width: 900px) {
  :root { --fs-h1: clamp(44px, 10.5vw, 84px); }
  .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .render { justify-self: start; width: min(100%, 380px); }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .section-head--split > .lead, .section-head--split > .link-arrow { justify-self: start; }
  .rules-layout, .speaking-layout { grid-template-columns: minmax(0, 1fr); }
  .system { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
  .system-tag, .system h3, .system > p:not(.system-tag), .system .spec { grid-column: 1; grid-row: auto; }
  .system-tag { padding-top: 0; }
  .log-link { grid-column: 1; padding-top: 0; }
  .rules-head, .speaking-media { position: relative; top: auto; }
  .speaking-media { aspect-ratio: 4 / 3.6; }
  .speaking-media img { object-position: 50% 22%; }
  .quotes { grid-template-columns: minmax(0, 1fr); }

  /* experience log: dates move above each entry, the rail stays on the left */
  .log::before, .log::after { left: 5px; }
  .log-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 32px; }
  .log-row::before { left: 0; top: 28px; }
  .log-when { text-align: left; padding-top: 0; }

  /* scrollytelling on phones: the board sticks under the header and the steps pass beneath it */
  .funnel { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .funnel-stage {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 18px);
    padding-bottom: 14px;
    background: var(--ink);
  }
  .funnel-stage::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 48px; background: linear-gradient(var(--ink), transparent); pointer-events: none; }
  .funnel-board { position: relative; top: auto; width: min(100%, 340px, 36svh); margin-inline: auto; aspect-ratio: auto; padding: 14px; gap: 10px; }
  .funnel-grid { height: auto; width: 100%; }
  .readout-num { font-size: 32px; }
  .funnel-step { padding-block: 18vh 4vh; }
  .funnel-step:first-child { padding-top: 10vh; }
}

@media (max-width: 900px) and (max-height: 760px) {
  .funnel-stage { position: relative; top: auto; padding-top: 0; background: none; padding-bottom: 24px; }
  .funnel-stage::after { display: none; }
  .funnel-board { width: min(100%, 300px); }
  .funnel-step, .funnel-step:first-child { padding-block: 32px; }
}

@media (max-width: 640px) {
  .hero-actions .btn { width: 100%; }
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 20px); padding-bottom: 40px; }
  .hero .label { margin-bottom: 14px; }
  .hero-lead { margin-top: 16px; font-size: 16.5px; line-height: 1.55; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero-note { font-size: 14px; }
  .hero-proof { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 26px; padding-top: 16px; }
  .hero-proof li { grid-template-columns: 92px minmax(0, 1fr); align-items: baseline; gap: 12px; }
  .hero-proof b { font-size: 24px; }
  .hero-proof span { max-width: none; font: 400 14px/1.35 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ash); }
  .render { width: min(66%, 240px); }
  .render-caption { display: none; }
  .js .system .spec { display: none; }
  .js .rail-count { display: block; margin-top: 14px; font-size: 12px; letter-spacing: .06em; color: var(--smoke); }
  .rules-list .rule:nth-child(2), .rules-list .rule:nth-child(3) { display: none; }
  .logos { margin-top: 40px; }
  .marquee-track { gap: 18px 32px; }
  .marquee-track img { opacity: .8; }
  .speaking-media { aspect-ratio: 16 / 11; }
  .topics { gap: 4px 0; }
  .topics li { padding: 0; box-shadow: none; }
  .topics li:not(:last-child)::after { content: "·"; padding-inline: 8px; color: var(--smoke); }
  .quote--lead blockquote p { font-size: 19px; line-height: 1.4; }
  .words-cta .btn { width: 100%; }
  .prompt { padding: 0; border: 0; background: none; }
  /* the board plays on its own on phones, so the steps are plain, readable text */
  .funnel-stage { position: relative; top: auto; padding-top: 0; padding-bottom: 20px; background: none; }
  .funnel-stage::after { display: none; }
  .funnel-board { width: min(100%, 280px); }
  .funnel-step, .funnel-step:first-child { padding-block: 16px; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .funnel-step h3 { font-size: 20px; color: var(--bone); }
  .funnel-step p { margin-top: 4px; font-size: 15.5px; line-height: 1.5; color: var(--ash); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .js .systems {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    border-top: 0;
    margin-inline: calc(-1 * var(--pad-l)) calc(-1 * var(--pad-r));
    padding-inline: var(--pad-l) var(--pad-r);
    scroll-padding-inline: var(--pad-l);
    scrollbar-width: none;
  }
  .js .systems::-webkit-scrollbar { display: none; }
  .js .system { scroll-snap-align: start; grid-template-rows: none; align-content: start; padding: 22px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--ink-2); }
  .media-list a { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .m-type { grid-column: 1 / -1; }
  .prompt-option { padding: 18px; }
}

@media (max-width: 340px) {
  .board-head > span:first-child { display: none; }
}

@media (max-width: 360px) {
  .hero-actions .btn { font-size: 12px; letter-spacing: .03em; }
  .bar { gap: 12px; }
  .btn { padding-inline: 16px; letter-spacing: .04em; }
}

/* ---------- additions for phones ---------- */
.rail-count { display: none; }
.words-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 32px; }
.menu-cta .hero-note { margin-top: 10px; max-width: none; }
@media (max-width: 960px) {
  /* thumb-sized targets */
  .footer-cols ul { gap: 0; }
  .footer-cols a, .log-link { display: inline-flex; align-items: center; min-height: 44px; }
  .link-arrow { min-height: 44px; background-position: 0 calc(100% - 8px); }
  .marquee-toggle, .btn--sm { min-height: 44px; }
  /* anchors land above the booking bar */
  html.js { scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 380px) { .hero .label { font-size: 11.5px; letter-spacing: .06em; } }
/* phones on their side: headline, button and portrait share one screen */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1000px) {
  :root { --fs-h1: clamp(34px, 9vh, 44px); }
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 12px); }
  .hero .label { margin-bottom: 10px; }
  .hero-title { max-width: none; }
  .hero-title em { display: inline; }
  .hero-lead { margin-top: 12px; font-size: 15.5px; line-height: 1.5; max-width: 44em; }
  .hero-actions { margin-top: 16px; flex-wrap: nowrap; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) 150px; gap: 24px; align-items: start; }
  .render { justify-self: end; width: 150px; }
  .render-caption { display: none; }
}
/* short phone screens (an SE in Safari): the button and the reason to tap it share the first screen */
@media (max-width: 640px) and (max-height: 600px) {
  :root { --fs-h1: 40px; }
  .hero-lead { font-size: 16px; line-height: 1.5; }
  .hero-actions { margin-top: 18px; }
}
@media (max-width: 960px) {
  .book-bar .btn { white-space: nowrap; padding-inline: 14px; font-size: 12px; letter-spacing: .04em; gap: 8px; }
}
@media (max-width: 640px) {
  .board-head > span:first-child { display: none; }
  .board-head [data-readout-label] { white-space: nowrap; }
}
@media (max-width: 359px) { .book-bar-note { display: none; } }

/* ---------- booking pages (/schedule-call, /call-booked) ---------- */
.book {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(36px, 6vw, 88px));
  padding-bottom: var(--section-y);
}
.book-back { margin-left: auto; }
.book-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  grid-template-areas: "head widget" "notes widget";
  grid-template-rows: auto 1fr;
  gap: 0 clamp(36px, 5vw, 80px);
  align-items: start;
}
.book-head { grid-area: head; }
.book-widget { grid-area: widget; }
.book-notes { grid-area: notes; }
.book-title {
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: .98;
  letter-spacing: -0.04em;
}
.book-title em { display: block; color: var(--signal); }
.book-lead { margin-top: 22px; max-width: 30em; font-size: var(--fs-lead); line-height: 1.6; color: var(--ash); }
/* above the grain overlay (z 90), below the header (z 100): the grain would grey out a light calendar */
.book-widget { position: relative; z-index: 91; container-type: inline-size; }
/* form_embed.js hides the iframe (absolute, left -9999px) until the calendar loads (3 to 12 s on a phone),
   so the wrapper reserves the calendar's height meanwhile: without it the notes jump up and back (CLS 0.41).
   The calendar picks its layout from its own width, not the screen's, so the reserve follows the frame's
   width (container queries below) and lets go once the calendar is shown (it shrinks after a date is picked). */
.book-frame {
  position: relative;
  min-height: 772px;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line-2);
}
.book-frame::before {
  content: "Loading the calendar…";
  position: absolute;
  inset: 120px 0 auto;
  text-align: center;
  font: 500 12.5px/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--smoke);
  z-index: 0;
  pointer-events: none;
}
.book-widget iframe {
  display: block;
  width: 100%;
  /* above the label if form_embed.js never runs (while it hides the iframe, its inline styles win) */
  position: relative;
  z-index: 1;
  /* the calendar's own height; form_embed.js sets the real one inline, and if it never runs
     the calendar is still whole instead of clipped (the iframe does not scroll) */
  height: 772px;
}
/* measured 1 Nov 2026: 767px tall up to 450px wide, 825px up to 725px, 971px from 726px (+5px from form_embed.js) */
@container (min-width: 451px) {
  .book-frame { min-height: 830px; }
  .book-widget iframe { height: 830px; }
}
@container (min-width: 726px) {
  .book-frame { min-height: 976px; }
  .book-widget iframe { height: 976px; }
}
.book-frame:has(> iframe[style*="visibility: visible"]) { min-height: 0; }
.book-fallback { margin-top: 14px; font-size: 13.5px; color: var(--smoke); }
.book-fallback a { color: var(--ash); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.book-fallback a:hover { color: var(--signal); }
.book-notes { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 30em; }
.book-notes h2 { font: 500 12px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--smoke); margin-bottom: 12px; }
.book-notes h2:not(:first-child) { margin-top: 30px; }
.book-notes ol { counter-reset: step; }
.book-notes li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); color: var(--ash); font-size: 16px; line-height: 1.5; }
.book-notes ol li::before { counter-increment: step; content: "0" counter(step); position: absolute; left: 0; top: 12px; font: 500 12.5px/1.4 var(--font-mono); color: var(--signal); }
.book-notes ul li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 1px; background: var(--signal); }
.book-notes p { margin-top: 14px; font-size: 14.5px; color: var(--smoke); }
.book-done { max-width: calc(46em + var(--pad-l) + var(--pad-r)); margin-inline: 0 auto; }
@media (min-width: 1400px) { .book-done { margin-inline: auto; max-width: calc(var(--max) + var(--pad-l) + var(--pad-r)); } .book-done > * { max-width: 46em; } }
.book-done .book-notes { margin-block: 40px; }
.book-footer { border-top: 1px solid var(--line); padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px)); }
.book-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12px; letter-spacing: .04em; color: var(--smoke); }
@media (max-width: 960px) {
  .book-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "widget" "notes"; grid-template-rows: none; }
  .book-widget { margin-top: 32px; }
}
@media (max-width: 640px) {
  .book { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 28px); }
  .book-title em { display: inline; }
  .book-lead { margin-top: 16px; font-size: 16.5px; }
  .book-widget { margin-top: 24px; margin-inline: calc(var(--pad-l) * -1 + 8px) calc(var(--pad-r) * -1 + 8px); }
  .book-fallback { padding-inline: calc(var(--pad-l) - 8px) calc(var(--pad-r) - 8px); }
  .book-notes { margin-top: 36px; }
  .book-back { min-height: 44px; }
}
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }
