/* =========================================================================
   Dr. Jeff Yoo · Medical Authority System · pitch site (system A)
   "Night shift monitor": deep navy canvas, one ECG-green accent, fine grain.
   Structure mirrors the pitch-deck format (hero + math + sample deliverables).
   ========================================================================= */

@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/spacegrotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/spacegrotesk-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/spacegrotesk-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #070b14;
  --bg-2: #0a1120;
  --surface: #0e1524;
  --surface-2: #141d30;
  --line: rgba(238, 243, 251, 0.10);
  --line-soft: rgba(238, 243, 251, 0.06);

  --text: #eef3fb;
  --text-2: #a6b4c9;
  --text-3: #7f8da3;

  --accent: #3fe0a1;
  --accent-2: #7af0c3;
  --accent-deep: #2bbf86;
  --accent-ink: #04140d;
  --accent-soft: rgba(63, 224, 161, 0.12);
  --accent-line: rgba(63, 224, 161, 0.30);

  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Geist", ui-monospace, SFMono-Regular, Menlo, monospace; /* labels: Geist + tracking, no third font */

  --container: 1120px;
  --gutter: clamp(20px, 5vw, 32px);
  --section-y: clamp(80px, 12vh, 140px);
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

/* --------------------------------- Base --------------------------------- */
[hidden] { display: none !important; } /* mode-switched elements must stay hidden even when a component sets display */
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; color-scheme: dark; }
/* page canvas: calm dark field, one soft accent bloom (top), a deep navy floor */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% -8%, rgba(63, 224, 161, 0.10), transparent 62%),
    radial-gradient(60% 50% at 100% 100%, rgba(40, 72, 140, 0.16), transparent 64%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
/* fine grain */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 140px 140px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }

/* ------------------------------ Typography ------------------------------ */
.eyebrow {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.section__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.125rem, 5vw, 3.125rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Small directional arrows */
.arrow, .arrow-down {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  vertical-align: middle;
  margin-left: 7px;
  transition: transform 0.3s var(--ease);
}
.arrow { transform: rotate(-45deg); }
.arrow-down { transform: rotate(45deg); margin-left: 9px; margin-top: -4px; }

/* -------------------------------- Reveal -------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.hero__inner .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero__inner .reveal:nth-child(2) { transition-delay: 0.18s; }
.hero__inner .reveal:nth-child(3) { transition-delay: 0.3s; }

/* -------------------------------- Buttons ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 980px;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-weight: 600; position: relative; overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent); transition: transform 0.6s var(--ease); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(63, 224, 161, 0.45); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: rgba(238, 243, 251, 0.03); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); }
.btn--lg { padding: 18px 42px; font-size: 1.225rem; }

/* --------------------------------- Hero --------------------------------- */
.hero {
  text-align: center;
  padding-top: clamp(96px, 14vh, 156px);
  padding-bottom: clamp(28px, 5vh, 56px);
  overflow: hidden;
}
/* the one accent bloom behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -5% 0 -5%;
  background: radial-gradient(60% 46% at 50% 18%, rgba(63, 224, 161, 0.13), transparent 70%);
  pointer-events: none;
  animation: glowDrift 16s ease-in-out infinite alternate;
}
/* signature: the ECG trace draws once across the hero */
.ecg { position: absolute; left: 0; right: 0; top: var(--ecg-y, 520px); height: 120px; margin-top: -64px; width: 100%; pointer-events: none; z-index: 0; opacity: 0.55; }
.ecg path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ecg .ecg__glow { stroke: var(--accent); stroke-width: 5; opacity: 0.18; filter: blur(3px); }
.ecg.is-drawing path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ecgDraw 2.4s cubic-bezier(0.45, 0, 0.2, 1) 0.15s forwards; }
.ecg.is-drawn { animation: ecgSettle 1.6s var(--ease) 2.3s forwards; }
@keyframes ecgDraw { to { stroke-dashoffset: 0; } }
@keyframes ecgSettle { to { opacity: 0.22; } }

.hero__inner { position: relative; z-index: 1; }
.hero__title {
  margin: 0 auto;
  max-width: 1000px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.1vw, 2.55rem);
  text-wrap: balance;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.028em;
}
/* Word-by-word reveal (applied once JS splits the headline) */
.hero__title.split { opacity: 1; transform: none; transition: none; } /* the words carry the entrance; no transition on the h1 itself so GSAP never samples a half-way state */
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
  will-change: opacity, transform, filter;
}
.hero__title.is-in .word { opacity: 1; transform: none; filter: blur(0); }

.mark { position: relative; white-space: nowrap; color: var(--accent); }
.mark::after {
  content: "";
  position: absolute;
  left: -1px; right: -1px; bottom: -0.04em;
  height: 0.08em;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(63, 224, 161, 0.6);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease) 0.5s;
}
.hero__title.is-in .mark::after { transform: scaleX(1); }

.hero__actions { margin-top: 40px; display: flex; justify-content: center; }
.hero__actions .arrow-down { animation: chevBob 2.2s var(--ease) infinite; }

/* -------------------------------- Player -------------------------------- */
.hplayer { margin: 44px auto 0; max-width: 780px; }
.hplayer__stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: #05060a; border: 1px solid var(--line);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(63, 224, 161, 0.06), 0 0 80px -30px rgba(63, 224, 161, 0.25);
}
.hplayer__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #05060a; }

/* dark scrim behind the big play button (idle only) */
.hplayer__scrim { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.45s var(--ease);
  background: radial-gradient(120% 120% at 50% 45%, rgba(0,0,0,0.04), rgba(0,0,0,0.38)); }
.hplayer__stage:not([data-state="idle"]) .hplayer__scrim { opacity: 0; }

/* big centered play */
.hplayer__big { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.35); background: var(--accent); backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), opacity 0.4s var(--ease), border-color 0.4s var(--ease); }
.hplayer__big svg { width: 32px; height: 32px; fill: var(--accent-ink); margin-left: 4px; position: relative; z-index: 1; }
.hplayer__big-glow { position: absolute; inset: 0; border-radius: 50%; animation: hpPulse 2.8s ease-out infinite; }
.hplayer__big:hover { transform: translate(-50%, -50%) scale(1.07); background: var(--accent-2); border-color: #fff; }
.hplayer__stage:not([data-state="idle"]) .hplayer__big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.8); }
@keyframes hpPulse { 0% { box-shadow: 0 0 0 0 rgba(63,224,161,0.45); } 70% { box-shadow: 0 0 0 22px rgba(63,224,161,0); } 100% { box-shadow: 0 0 0 0 rgba(63,224,161,0); } }

/* captions overlay */
.hplayer__cc { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); max-width: 84%; text-align: center;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem); line-height: 1.4; color: #fff; pointer-events: none;
  transition: bottom 0.3s var(--ease); }
.hplayer__cc span { background: rgba(6,8,14,0.64); padding: 3px 10px; border-radius: 7px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hplayer__cc:empty { display: none; }
.hplayer__stage:hover .hplayer__cc, .hplayer__stage[data-state="paused"] .hplayer__cc { bottom: 82px; }

/* control bar */
.hplayer__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: linear-gradient(to top, rgba(4,6,10,0.85), rgba(4,6,10,0.4) 60%, transparent);
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.hplayer__stage:hover .hplayer__bar, .hplayer__stage[data-state="paused"] .hplayer__bar,
.hplayer__stage.hp-touch .hplayer__bar { opacity: 1; transform: none; }
.hplayer__stage[data-state="idle"] .hplayer__bar { opacity: 0; pointer-events: none; }

.hp-btn { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: none; background: transparent;
  color: #fff; cursor: pointer; border-radius: 8px; opacity: 0.82; transition: opacity 0.2s var(--ease), background 0.2s var(--ease); }
.hp-btn:hover { opacity: 1; background: rgba(255,255,255,0.1); }
.hp-btn svg { width: 20px; height: 20px; fill: #fff; }
.hp-btn--mute svg, .hp-btn--full svg { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-i-play, .hp-i-sound { display: none; }
.hplayer__stage[data-state="paused"] .hp-i-pause, .hplayer__stage[data-state="idle"] .hp-i-pause { display: none; }
.hplayer__stage[data-state="paused"] .hp-i-play, .hplayer__stage[data-state="idle"] .hp-i-play { display: block; }

.hp-time { font-size: 0.85rem; color: rgba(255,255,255,0.75); font-variant-numeric: tabular-nums; min-width: 38px; text-align: center; }

/* scrub */
.hp-scrub { position: relative; flex: 1 1 auto; height: 28px; display: flex; align-items: center; cursor: pointer; }
.hp-scrub__track { position: relative; width: 100%; height: 4px; border-radius: 99px; background: rgba(255,255,255,0.22); transition: height 0.15s var(--ease); }
.hp-scrub:hover .hp-scrub__track, .hp-scrub.dragging .hp-scrub__track { height: 6px; }
.hp-scrub__buf { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 99px; background: rgba(255,255,255,0.3); }
.hp-scrub__fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent-deep), var(--accent-2)); box-shadow: 0 0 10px rgba(63,224,161,0.6); }
.hp-scrub__knob { position: absolute; top: 50%; left: 0; width: 13px; height: 13px; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%) scale(0); transition: transform 0.18s var(--ease); box-shadow: 0 1px 5px rgba(0,0,0,0.45); }
.hp-scrub:hover .hp-scrub__knob, .hp-scrub.dragging .hp-scrub__knob { transform: translate(-50%, -50%) scale(1); }

/* speed */
.hp-speed { position: relative; }
.hp-btn--speed { width: auto; padding: 0 9px; font-size: 0.88rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hp-speed__menu { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); min-width: 80px; padding: 6px;
  background: rgba(10,14,24,0.97); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  display: none; flex-direction: column; gap: 2px; }
.hp-speed__menu.open { display: flex; }
.hp-speed__menu button { border: none; background: transparent; color: rgba(255,255,255,0.8); font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  padding: 8px 10px; border-radius: 7px; cursor: pointer; text-align: center; font-variant-numeric: tabular-nums; }
.hp-speed__menu button:hover { background: rgba(255,255,255,0.09); color: #fff; }
.hp-speed__menu button.is-on { background: rgba(63,224,161,0.22); color: var(--accent-2); }

@media (max-width: 560px) {
  .hp-btn { width: 32px; height: 32px; }
  .hp-btn--full { display: none; }
  .hplayer__cc { bottom: 62px; }
  .hplayer__big { width: 72px; height: 72px; }
  .hplayer__big svg { width: 26px; height: 26px; }
}

/* ------------------------------- The math ------------------------------- */
.math { padding-top: clamp(64px, 10vh, 120px); padding-bottom: clamp(32px, 5vh, 64px); }
.math__head { text-align: center; margin-bottom: clamp(48px, 8vh, 88px); }
.math__head .eyebrow { margin-bottom: 16px; }
.math__lede { margin: 20px auto 0; max-width: 54ch; font-size: 1.125rem; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

.beat { display: grid; grid-template-columns: 92px minmax(0, 1.2fr) minmax(300px, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-block: clamp(40px, 6vh, 68px); border-top: 1px solid var(--line-soft); }
.beat__num { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.beat__idx { font-family: var(--mono); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.2em; color: var(--accent); }
.beat__rule { width: 36px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 0.25s; }
.beat.is-in .beat__rule { transform: scaleX(1); }
.beat__kicker { margin: 0 0 12px; font-family: var(--mono); font-size: 0.84rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.beat__title { margin: 0 0 16px; font-family: var(--display); font-size: clamp(1.475rem, 2.4vw, 1.925rem); font-weight: 700; line-height: 1.16; letter-spacing: -0.024em; text-wrap: balance; }
.beat__text { margin: 0; font-size: 1.15rem; line-height: 1.65; color: var(--text-2); max-width: 56ch; text-wrap: pretty; }
.beat__text + .beat__text { margin-top: 14px; }
.beat__text b { color: var(--text); font-weight: 600; }
.beat__aside { background: linear-gradient(180deg, var(--surface), rgba(14, 21, 36, 0.7)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.aside__note { margin: 16px 0 0; font-family: var(--mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); line-height: 1.5; }
.aside__note b { color: var(--accent); font-weight: 500; }
/* 01 · price ladder */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ladder li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 14px; border-radius: 11px; background: var(--surface-2); font-size: 1.04rem; }
.ladder li span { color: var(--text-2); }
.ladder li b { font-family: var(--display); font-weight: 600; white-space: nowrap; color: var(--text); }
.ladder li b.ladder__q { font-family: var(--mono); font-weight: 500; font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); white-space: normal; text-align: right; }
.ladder__gap { background: transparent !important; border: 1px dashed rgba(63, 224, 161, 0.45); }
.ladder__gap span { color: var(--text) !important; }
.ladder__gap b { color: var(--accent) !important; font-family: var(--mono) !important; font-weight: 500 !important; font-size: 0.84rem; letter-spacing: 0.12em; text-transform: uppercase; }
/* 02 · webinar frames */
.frames { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.frames figure { margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); background: var(--surface-2); }
.frames img { width: 100%; height: 100%; object-fit: cover; }
.frames figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.frames__cap { margin: 14px 0 0; font-family: var(--display); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.012em; color: var(--text); }
.frames__cap b { color: var(--accent); font-weight: 600; }
/* 03 · sums */
.sums { display: grid; gap: 10px; }
.sum { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.sum b { font-family: var(--display); font-size: 1.65rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1; font-variant-numeric: tabular-nums; }
.sum span { font-size: 0.98rem; color: var(--text-2); line-height: 1.45; }
.sum--on { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.sum--on b { color: var(--accent); }

/* calculator */
.calc { margin-top: clamp(40px, 6vh, 64px); background: linear-gradient(180deg, var(--surface), rgba(10, 17, 32, 0.9)); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow), 0 0 0 1px rgba(63, 224, 161, 0.04); position: relative; overflow: hidden; }
.calc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(63, 224, 161, 0.5), transparent); }
.calc__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(22px, 3vw, 32px); }
.calc__kicker { margin: 0 0 10px; font-family: var(--mono); font-size: 0.84rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.calc__kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: livePulse 2s ease-in-out infinite; }
.calc__title { margin: 0; font-family: var(--display); font-size: clamp(1.475rem, 2.4vw, 1.925rem); font-weight: 700; letter-spacing: -0.024em; line-height: 1.15; }
.calc__reset { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-family: var(--font); font-size: 0.98rem; border-radius: 999px; padding: 0 18px; min-height: 44px; cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease); }
.calc__reset:hover { color: var(--accent); border-color: var(--accent-line); }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: start; }
.calc__inputs { display: grid; gap: 20px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.field__label { font-size: 1.02rem; color: var(--text); font-weight: 500; }
.field__val { display: flex; align-items: center; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; min-height: 44px; transition: border-color .2s var(--ease); flex: none; }
.field__val:focus-within { border-color: var(--accent); }
.field__val span { color: var(--text-3); font-size: 1rem; }
.field__val input { width: 5.4ch; background: transparent; border: 0; outline: 0; color: var(--text); font-family: var(--display); font-size: 1.12rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; padding: 8px 0; -moz-appearance: textfield; }
.field__val input.w-wide { width: 6.4ch; }
.field__val input::-webkit-outer-spin-button, .field__val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* range: 44px hit area, slim visible track */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; --p: 50%; }
.range:focus-visible { outline: none; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) 0 var(--p), rgba(238, 243, 251, 0.12) var(--p) 100%); }
.range::-moz-range-track { height: 4px; border-radius: 99px; background: rgba(238, 243, 251, 0.12); }
.range::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); box-shadow: 0 0 0 6px rgba(63, 224, 161, 0.12); transition: box-shadow .2s var(--ease); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); }
.range:focus-visible::-webkit-slider-thumb, .range:hover::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(63, 224, 161, 0.2); }

.calc__out { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 2.6vw, 28px); }
.out__label { margin: 0 0 8px; font-family: var(--mono); font-size: 0.84rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.out__big { margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 5.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.out__sub { margin: 8px 0 20px; font-size: 1rem; color: var(--text-2); }
.out__rows { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 2px; }
.out__rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; font-size: 1.02rem; }
.out__rows li span { color: var(--text-2); }
.out__rows li b { font-family: var(--display); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.out__rows li.is-key { margin-top: 6px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.out__rows li.is-key span { color: var(--text); }
.out__rows li.is-key b { color: var(--accent); }
.calc__cap { margin: 18px 0 0; font-size: 1.02rem; line-height: 1.5; color: var(--text); }
.calc__cap b { color: var(--accent); font-weight: 600; }
.calc__note { margin: clamp(20px, 3vw, 28px) 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 0.98rem; color: var(--text-3); text-align: center; }

.math__close { text-align: center; padding-top: clamp(52px, 8vh, 84px); display: grid; gap: 26px; justify-items: center; }
.math__closing { margin: 0; max-width: 40ch; font-family: var(--display); font-size: clamp(1.275rem, 2vw, 1.575rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; text-wrap: balance; }

/* ----------------------------- Deliverables ----------------------------- */
.deliverables { padding-top: clamp(56px, 9vh, 112px); }
.deliverables__title { text-align: center; margin-bottom: clamp(48px, 8vh, 84px); }

.group { margin-bottom: clamp(64px, 10vh, 112px); }
.group:last-child { margin-bottom: 0; }
.group__head { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 36px; }
.group__rule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); max-width: 220px; transform: scaleX(0); transform-origin: center; transition: transform 0.9s var(--ease); }
.group__rule:last-child { background: linear-gradient(90deg, var(--line), transparent); }
.group__head.is-in .group__rule { transform: scaleX(1); }
.group__meta { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.group__label { font-family: var(--display); font-size: 1.175rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.group__count { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); letter-spacing: 0.18em; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
.grid--1 { grid-template-columns: 1fr; }

/* Preview card: a framed browser window + clear type hierarchy */
.pcard {
  appearance: none; font: inherit; color: inherit; text-align: left; position: relative;
  background: linear-gradient(180deg, var(--surface), rgba(14, 21, 36, 0.75)); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 12px 12px 22px; cursor: pointer; display: flex; flex-direction: column; gap: 0;
  transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 1px 0 rgba(238, 243, 251, 0.05) inset, 0 18px 40px -26px rgba(0, 0, 0, 0.8);
  transition: transform 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.pcard:hover { border-color: rgba(63, 224, 161, 0.32); box-shadow: 0 1px 0 rgba(238, 243, 251, 0.06) inset, 0 34px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(63, 224, 161, 0.08); }
.pcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(63, 224, 161, 0.09), transparent 44%); opacity: 0; transition: opacity 0.35s var(--ease); pointer-events: none; }
.pcard:hover::after { opacity: 1; }

/* the window frame (dark glass) */
.thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; border: 1px solid var(--line); box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.8); }
.thumb--wide { aspect-ratio: 16 / 7; }
.thumb__bar { position: absolute; left: 0; right: 0; top: 0; height: 28px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: linear-gradient(180deg, rgba(20, 29, 48, 0.94), rgba(14, 21, 36, 0.86)); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.thumb__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(238, 243, 251, 0.18); flex: none; }
.thumb__bar i:nth-child(1) { background: #ff5f57; } .thumb__bar i:nth-child(2) { background: #febc2e; } .thumb__bar i:nth-child(3) { background: #28c840; }
.thumb__url { margin-left: 8px; flex: 1; min-width: 0; height: 16px; border-radius: 8px; background: rgba(238, 243, 251, 0.06); display: flex; align-items: center; padding: 0 9px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.03em; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.thumb__img { position: absolute; inset: 28px 0 0 0; width: 100%; height: calc(100% - 28px); object-fit: cover; object-position: 50% 0%; transition: object-position 2.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s var(--ease); }
.pcard:hover .thumb__img { object-position: 50% 38%; }
.thumb--wide .thumb__img { object-position: 50% 50%; }
.pcard:hover .thumb--wide .thumb__img { object-position: 50% 50%; transform: scale(1.02); }
.thumb::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(238, 243, 251, 0.06); }

/* type */
.pcard__body { padding: 18px 8px 0; }
.pcard__kicker { display: block; font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.pcard__title { display: block; font-family: var(--display); font-size: 1.345rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--text); }
.pcard__desc { display: block; margin-top: 8px; font-size: 1.045rem; line-height: 1.5; color: var(--text-2); }
.pcard__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.985rem; font-weight: 600; color: var(--accent); letter-spacing: 0.005em; transition: gap 0.3s var(--ease); }
.pcard:hover .pcard__link { gap: 10px; }
.pcard__link .arrow { margin-left: 0; border-color: currentColor; }
.pcard--wide .pcard__body { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.pcard--wide .pcard__link { margin-top: 0; }

/* --------------------------------- CTA ---------------------------------- */
.cta { text-align: center; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 115%, rgba(63, 224, 161, 0.12), transparent 70%);
  pointer-events: none;
}
.cta__wrap { position: relative; }
.cta__title {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(2.525rem, 6.5vw, 4.125rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

/* -------------------------------- Footer -------------------------------- */
.footer { position: relative; min-height: 76px; background: rgba(238, 243, 251, 0.02); border-top: 1px solid var(--line-soft); }
.footer__inner { min-height: 76px; display: flex; align-items: center; justify-content: center; text-align: center; }
.footer__note { font-family: var(--mono); font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); line-height: 1.6; padding-block: 14px; }

/* ------------------------------ Sticky CTA ------------------------------ */
/* Booking one tap away for the whole scroll; yields only to the closing CTA. */
.stickycta {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 26px;
  border-radius: 980px;
  background: var(--accent, var(--text));
  color: var(--accent-ink, var(--bg));
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 34%, transparent),
    0 0 0 1px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0s linear 0.35s;
}
.stickycta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(var(--mgx, 0px), var(--mgy, 0px)) scale(1);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
}
.stickycta.is-visible:hover { transform: translate(var(--mgx, 0px), calc(var(--mgy, 0px) - 2px)) scale(1.02); }
.stickycta__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-ink, var(--bg));
  animation: stickyPulse 2.4s var(--ease) infinite;
}
@keyframes stickyPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-ink) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 7px transparent; }
}
@media (max-width: 560px) {
  .stickycta { left: clamp(16px, 3vw, 28px); right: clamp(16px, 3vw, 28px); justify-content: center; }
  .footer { padding-bottom: 76px; } /* the pill never covers the last line */
}

/* ------------------------------- Lightbox ------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 64px);
  background: rgba(4, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__inner {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.lightbox__stage {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  max-height: 78vh;
  transform-origin: top left;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.lightbox__stage img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; display: block; }
.lightbox__stage--embed { height: 78vh; background: #fff; }
.lightbox__frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.lightbox__open { margin-left: 12px; font-size: 0.975rem; font-weight: 500; color: var(--accent-2); border-bottom: 1px solid rgba(122, 240, 195, 0.4); transition: color 0.3s var(--ease); white-space: nowrap; }
.lightbox__open:hover { color: #fff; }
.lightbox__placeholder { padding: clamp(28px, 6vw, 64px); text-align: center; }
.lightbox__placeholder p { margin: 0; font-size: 1rem; color: var(--text-3); }
.lightbox__title { margin: 0; font-size: 1.175rem; font-weight: 600; color: var(--text); text-align: center; }
.lightbox__close {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(238, 243, 251, 0.06);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox__close:hover { background: rgba(238, 243, 251, 0.15); transform: rotate(90deg); }

/* ------------------------------- Keyframes ------------------------------ */
@keyframes glowDrift {
  0% { transform: translate3d(-1.5%, 0, 0); opacity: 0.8; }
  100% { transform: translate3d(1.5%, 1.5%, 0); opacity: 1; }
}
@keyframes chevBob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(2px, 2px); }
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 960px) {
  .calc__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .beat { grid-template-columns: 1fr; gap: 20px; }
  .beat__num { flex-direction: row; align-items: center; }
}
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .pcard--wide .pcard__body { grid-template-columns: 1fr; gap: 0; }
  .pcard--wide .pcard__link { margin-top: 16px; }
  .thumb--wide { aspect-ratio: 16 / 10; }
  .group__rule { max-width: 60px; }
  .hero__actions .btn { width: 100%; }
  .stickycta { padding: 12px 22px; }
  .beat__aside { padding: 18px; }
  .ladder li { padding: 11px 12px; font-size: 1rem; }
  .beat__text { font-size: 1.08rem; }
  .math__lede { font-size: 1.06rem; }
}

/* --------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .lightbox, .lightbox__stage { transition: none; }
  .hero::before, .hplayer__big-glow, .hero__actions .arrow-down, .calc__kicker i { animation: none; }
  .ecg path { animation: none !important; stroke-dasharray: none !important; }
  .ecg { opacity: 0.22; }
  .mark::after { transition: none; transform: scaleX(1); }
  .group__rule, .beat__rule { transition: none; transform: scaleX(1); }
  .thumb__img { transition: none; }
  .pcard { transition: none; }
  .stickycta { transform: none; transition: opacity 0.25s linear, visibility 0s linear 0.25s; }
  .stickycta.is-visible { transform: none; transition: opacity 0.25s linear; }
  .stickycta__dot { animation: none; }
}

/* ---------------------- Hero photo-swarm (signature) -------------------- */
/* Overlay above the already-visible hero. pointer-events none throughout.
   The hero clips it (overflow: hidden), so off-screen start positions never
   widen the page. Desktop and mobile both run it; mobile gets smaller tiles
   and its own vw/vh offsets (the --m* variables). */
.swarm { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.swarm__ph { position: absolute; width: clamp(96px, 9.2vw, 136px); aspect-ratio: 4 / 5; margin: calc(clamp(96px, 9.2vw, 136px) * -0.625) 0 0 calc(clamp(96px, 9.2vw, 136px) * -0.5); border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(238, 243, 251, 0.22); box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(63, 224, 161, 0.08); background: var(--surface-2);
  --ox: var(--dox); --oy: var(--doy); --ix: var(--dix); --iy: var(--diy);
  top: 0; left: 50%;
  opacity: 0; transform: translate(var(--ox), var(--oy)) rotate(var(--r, 0deg)) scale(0.92); will-change: transform, opacity; }
.swarm__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swarm.is-on .swarm__ph { animation: swarmIn 2.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes swarmIn {
  0%   { opacity: 0; transform: translate(var(--ox), var(--oy)) rotate(var(--r, 0deg)) scale(0.92); }
  28%  { opacity: 1; transform: translate(var(--ix), var(--iy)) rotate(calc(var(--r, 0deg) * 0.4)) scale(1); }
  52%  { opacity: 1; transform: translate(var(--ix), var(--iy)) rotate(calc(var(--r, 0deg) * 0.4)) scale(1); }
  100% { opacity: 0; transform: translate(var(--ox), var(--oy)) rotate(var(--r, 0deg)) scale(0.92); }
}
@media (max-width: 760px) {
  .hero { padding-top: 140px; }
  .ecg { top: 92px; height: 56px; margin-top: -30px; }
}
/* mobile variant: small tiles, phone-tuned positions, a slightly shorter hold so
   the headline is only framed (never covered) for a beat */
@media (max-width: 760px) {
  .swarm__ph { width: 72px; margin: -45px 0 0 -36px; border-radius: 11px; --ox: var(--mox); --oy: var(--moy); --ix: var(--mix); --iy: var(--miy); }
  .swarm.is-on .swarm__ph { animation-duration: 2.4s; }
}
@media (prefers-reduced-motion: reduce) { .swarm { display: none; } }

/* reduced / static: jump to final states (no mid-transition captures, honours prefers-reduced-motion) */
html.reduced *, html.reduced *::before, html.reduced *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; transition-delay: 0s !important; }
html.reduced .swarm { display: none; }

/* ------------------------- Sender options (pitch site) ------------------- */
/* Agency branding: small top-left lockup. Configured in PITCH_CONFIG.brand; removed when empty. */
.agency-bar { position: absolute; top: clamp(18px, 3vw, 28px); left: clamp(18px, 3vw, 32px); z-index: 6; display: inline-flex; align-items: center; gap: 10px; }
.agency-bar a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.agency-bar a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.agency-bar img { height: 26px; width: auto; display: block; }
.agency-bar span { font-family: var(--mono); font-size: 0.84rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.hero { position: relative; }

/* Hero embed (Loom / Wistia) */
.hplayer__embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #05060a; }
.hplayer__stage[data-state="embed"] .hplayer__scrim, .hplayer__stage[data-state="embed"] .hplayer__big, .hplayer__stage[data-state="embed"] .hplayer__bar, .hplayer__stage[data-state="embed"] .hplayer__cc { display: none; }

/* Inline Calendly (white card on the dark page, readable) */
.cal-inline { position: relative; width: min(900px, 100%); margin: 0 auto; height: min(760px, 92vh); border-radius: 20px; overflow: hidden; background: #ffffff; border: 1px solid var(--line); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(63, 224, 161, 0.08); }
.cal-inline iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Case studies (optional, PITCH_CONFIG.caseStudies) */
.case-studies { padding-top: 0; }
.case-studies__title { text-align: center; margin-bottom: clamp(36px, 6vh, 60px); }
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 980px; margin-inline: auto; }
.cs-card { background: linear-gradient(180deg, var(--surface), rgba(14, 21, 36, 0.75)); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.cs-media { aspect-ratio: 16 / 9; background: var(--surface-2); }
.cs-media iframe, .cs-media img { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.cs-body { padding: 22px 24px 26px; text-align: center; }
.cs-result { margin: 0 0 10px; font-family: var(--mono); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.cs-title { margin: 0 0 10px; font-family: var(--display); font-size: 1.275rem; font-weight: 700; letter-spacing: -0.012em; line-height: 1.25; text-wrap: balance; }
.cs-text { margin: 0; font-size: 1.07rem; color: var(--text-2); line-height: 1.55; }
@media (max-width: 700px) { .cs-grid { grid-template-columns: 1fr; } .cal-inline { height: 80vh; border-radius: 16px; } }

/* ------------------------- Sender proof (who built this) ------------------ */
.sender { padding-top: clamp(24px, 4vh, 48px); }
.sender__card { max-width: 640px; margin: 0 auto; text-align: center; background: linear-gradient(180deg, var(--surface), rgba(14, 21, 36, 0.7)); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4.6vw, 48px) clamp(20px, 4vw, 44px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.sender__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(63, 224, 161, 0.5), transparent); }
.sender__card .eyebrow { margin-bottom: 22px; }
.sender__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 2px solid rgba(238, 243, 251, 0.16); box-shadow: 0 0 0 6px rgba(63, 224, 161, 0.08), 0 16px 40px -14px rgba(0, 0, 0, 0.8); }
.sender__name { margin: 0; font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.sender__role { margin: 6px 0 0; font-size: 1.02rem; color: var(--text-3); }
.sender__line { margin: 18px auto 0; max-width: 44ch; font-size: 1.12rem; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.sender__links { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(238, 243, 251, 0.03); text-align: left; transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease); }
.social:hover { border-color: var(--accent-line); background: rgba(238, 243, 251, 0.05); transform: translateY(-2px); }
.social svg { width: 34px; height: 34px; flex: none; }
.social__txt { display: grid; gap: 2px; min-width: 0; }
.social__name { font-family: var(--display); font-size: 1.1rem; font-weight: 600; color: var(--text); }
.social__handle { font-size: 0.95rem; color: var(--text-3); overflow-wrap: anywhere; }
.social .arrow { margin-left: auto; color: var(--text-3); flex: none; }
.social:hover .arrow { color: var(--accent); }
@media (max-width: 520px) { .sender__links { grid-template-columns: 1fr; } }

/* ---- mobile hardening (references/mobile.md) ---- */
img, svg, video, canvas, iframe { max-width: 100%; }
p, li, td, th, blockquote, figcaption,
h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
.mark { overflow-wrap: normal; }
table, pre { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 700px) {
  .tag, [class*="badge"], [class*="pill"] { margin-left: 0; }
}
@media (max-width: 420px) {
  .tok-merge, .tok-link, code { white-space: normal; }
}

/* QA: tap targets */
.calc__reset { min-height: 46px; }
.calc input[type="number"], .calc__num { min-height: 44px; }
.field__val input { min-height: 44px; }

/* Case studies: lite YouTube embed (thumbnail until clicked) */
.cs-lite { position: relative; cursor: pointer; }
.cs-lite img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease), filter .4s var(--ease); filter: saturate(.92) brightness(.86); }
.cs-lite:hover img { transform: scale(1.025); filter: none; }
.cs-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 12px 34px rgba(0,0,0,.45), 0 0 0 8px rgba(63,224,161,.16); transition: transform .35s var(--ease); }
.cs-play svg { width: 26px; height: 26px; fill: var(--accent-ink); margin-left: 3px; }
.cs-lite:hover .cs-play { transform: scale(1.07); }
.cs-lite:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
