/* =============================================================================
   zacharybhenley.com v2 — shared design system
   Read this block before building a new page. Nothing here is home-specific
   except the block explicitly marked "HOME PAGE SCENES" near the bottom —
   everything above that line is the shared foundation other pages reuse.

   LAYOUT
     .wrap                 max-width content container (--maxw / --pad)
     .section              full-bleed section, vertical rhythm padding, bg var(--bg)
     .section--alt         bg var(--bg-alt) (the "gray" Apple alternation)
     .section--pro         forced-dark "Pro" section (always dark, both themes)
     .section__head        title + sub wrapper used at the top of most sections

   TYPOGRAPHY
     .eyebrow               small colored label, set --accent to recolor
     .display-xl / -l / -m  the three display sizes from the spec
     .body-l / .body        paragraph sizes
     .caption                14px ink-3, tabular figures

   COMPONENTS
     .btn, .btn--primary, .btn--secondary, .btn--sm     buttons (pill primary)
     .link-more                                          text link with › chevron
     .chip, .chip__dot                                   status chip, pulsing dot
     .tile, .tile--wide, .tile--pro                       28px rounded card
     .figure, .figure__value/__label/__source/__viz      big-number figure
     .grid--asymmetric                                    1 wide + N narrow tiles

   ACCENT SYSTEM
     Set `style="--accent:var(--acc-solar)"` (or --acc-dasalla / --acc-founder)
     on a wrapping element; .eyebrow, .tile__glow, chart marks etc. read
     var(--accent, var(--blue)) so one declaration recolors a whole card.

   MOTION HOOKS (see /assets/js/site.js)
     [data-reveal]                 fades/rises in once, on scroll into view
     [data-reveal="lines"]         SplitText line-mask reveal (falls back to fade)
     [data-split]                  text container SplitText will split into lines
     [data-draw]                   SVG shape that draws on scroll-into-view
       [data-draw="stroke"]        stroke-dashoffset 1 → 0 (path needs pathLength="1")
       [data-draw="scalex"]        scaleX 0 → 1 (bars/underlines), transform-origin left
       [data-draw="scaley"]        scaleY 0 → 1 (vertical bars), transform-origin bottom
       [data-draw-delay="120"]     optional stagger delay in ms
     [data-copy-email]             click-to-copy button, data-email="…" data-copied-label="…"
     Everything above is fully visible with zero JS; JS only hides-then-reveals
     when GSAP actually loaded (see site.js), so a CDN failure never hides content.

   VIEW TRANSITIONS
     Cross-document view-transitions are enabled site-wide below. Shared elements
     carry inline `style="view-transition-name: wt-<slug>"` (card/case title) and
     `wv-<slug>` (card/case visual) directly in the page markup — set both ends
     to the same name so future case-study pages morph from the home cards.
============================================================================= */

@view-transition {
  navigation: auto;
}

/* ---------- tokens ---------- */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;

  --acc-solar: #ff9f0a;
  --acc-solar-ink: #b25f00;
  --acc-dasalla: #30b0c7;
  --acc-dasalla-ink: #0e7490;
  --acc-founder: #34c759;
  --acc-founder-ink: #1a7f37;

  /* The one signature gradient moment on the whole site: the hero's second
     headline beat ("Fluent in data."), and nowhere else. See .text-signature. */

  --radius-card: 28px;
  --radius-ui: 12px;
  --radius-pill: 980px;

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 4px 12px rgba(0, 0, 0, 0.06), 0 24px 48px rgba(0, 0, 0, 0.10);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --section-pad: clamp(72px, 9vw, 140px);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0d0d0f;
  --card: #1c1c1e;
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --ink-3: #a1a1a6;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --blue: #0a84ff;
  --blue-hover: #3b9dff;
  --link: #2997ff;

  --acc-solar-ink: #ffb340;
  --acc-dasalla-ink: #56cbe0;
  --acc-founder-ink: #4ee07c;

  --shadow-soft: none;
  --shadow-lift: none;

  color-scheme: dark;
}

/* ---------- reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html.js [data-nav] {
  transition: transform 0.4s var(--ease-out), background 0.3s ease, border-color 0.3s ease;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: rgba(0, 113, 227, 0.2); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

main { display: block; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }

.display-xl {
  font-size: clamp(48px, 8.2vw, 104px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}
.display-l {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.display-m {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-wrap: balance;
}
.eyebrow {
  display: block;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent-text, var(--link));
  margin-bottom: 16px;
}
/* Text-safe accent: bright story hues (e.g. #ff9f0a) fail 4.5:1 as text on light surfaces, so colored
   labels read --accent-text, which follows whichever story accent the element (or an ancestor) sets. */
[style*="--acc-solar"]   { --accent-text: var(--acc-solar-ink); }
[style*="--acc-dasalla"] { --accent-text: var(--acc-dasalla-ink); }
[style*="--acc-founder"] { --accent-text: var(--acc-founder-ink); }
.body-l {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 46ch;
}
.body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.caption {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums lining-nums;
}
.tnum { font-variant-numeric: tabular-nums lining-nums; }
p { text-wrap: pretty; }

/* ---------- section rhythm ---------- */
.section {
  position: relative;
  background: var(--bg);
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.section--alt { background: var(--bg-alt); }
.section--pro {
  background: #000;
  color: #f5f5f7;
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --ink-3: #a1a1a6;
  --line: rgba(255, 255, 255, 0.12);
  --card: #1c1c1e;
  --blue: #0a84ff;
  overflow: hidden;
}
.section__head { max-width: 640px; margin-bottom: clamp(36px, 6vw, 64px); }
.section__head .body-l { margin-top: 18px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 17px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--secondary {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn--secondary:hover { background: var(--line); }
.btn--sm { padding: 9px 20px; font-size: 15px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link);
  font-weight: 500;
  font-size: 17px;
}
.link-more::after {
  content: "\203A";
  transition: transform 0.2s var(--ease-out);
  display: inline-block;
}
.link-more:hover::after { transform: translateX(3px); }

/* ---------- status chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border-radius: var(--radius-pill);
  background: rgba(127, 127, 127, 0.08);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc-founder);
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);
  animation: chip-pulse 2.4s ease-in-out infinite;
  flex: none;
}
@keyframes chip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); }
}

/* ---------- tiles & figures ---------- */
.tile {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out), border-color 0.24s ease;
}
html.js .tile--hoverable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}
.section--pro .tile {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.figure__value {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--accent-ink, var(--ink));
  overflow-wrap: anywhere;
}
.figure__label {
  margin-top: 6px;
  font-size: 17px;
  color: var(--ink-2);
}
.figure__source {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-3);
}
.figure__viz { margin-top: 20px; }

.grid--asymmetric {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.grid--asymmetric .tile--wide { grid-column: 1 / -1; }

/* ---------- motion hooks: base (fully visible without JS) ---------- */
[data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}
[data-draw] { }
.split-line { overflow: hidden; display: block; }

@media (prefers-reduced-motion: no-preference) {
  html.gsap-ready [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }
  html.gsap-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-draw], .split-line { opacity: 1 !important; transform: none !important; filter: none !important; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .chip__dot { animation: none; }
  @view-transition { navigation: none; }
}

/* =============================================================================
   NAV
============================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transform: translateY(0);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex: none;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--ink-2);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__link:hover, .nav__link.active { color: var(--ink); background: var(--line); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__contact { flex: none; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { background: var(--line); color: var(--ink); }
.theme-toggle__icon { width: 19px; height: 19px; grid-area: 1 / 1; }
.theme-toggle__icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--moon { display: block; }

.nav__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.nav__menu-btn span {
  width: 20px;
  height: 1.6px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}
.nav__menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav__menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.nav__sheet {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--pad) 28px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--line);
}
.nav__sheet.is-open { display: flex; }
.nav__sheet-link {
  padding: 14px 6px;
  font-size: 19px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.nav__sheet-link.active { color: var(--blue); }
.nav__sheet-contact { margin-top: 16px; justify-content: center; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }
}
@media (min-width: 861px) {
  .nav__sheet { display: none !important; }
}

/* =============================================================================
   FOOTER
============================================================================= */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
}
.footer__name { font-weight: 600; }
.footer__meta { margin-top: 4px; color: var(--ink-3); font-size: 15px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; }
.footer__links a { color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); text-decoration: underline; }
.footer__copy { color: var(--ink-3); font-size: 14px; width: 100%; }

@media (min-width: 640px) {
  .footer__copy { width: auto; margin-left: auto; }
}

/* =============================================================================
   HOME PAGE SCENES
   (page-specific behavior lives in /assets/js/home.js; these are structural +
   visual styles for the nine HOME scenes. A future page can ignore this block.)
============================================================================= */

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 96px;
}
.hero__inner { position: relative; z-index: 1; }
.hero__headline { display: block; }
.hero__headline .split-line { padding-bottom: 0.1em; }
/* Two-tone hero headline, apple.com style: the second beat sits in a soft gray instead of a
   gradient or accent color (user asked to drop the blue; gray reads calmer and more premium). */
.text-signature { color: var(--ink-3); }
.hero .chip { margin-bottom: 28px; }
.hero__sub { margin-top: 24px; }
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 40px; }

/* ---- RECORD ---- */
.record__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px) clamp(24px, 4vw, 56px);
  margin-top: 8px;
}
@media (min-width: 1280px) {
  .record__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.record__item {
  --accent-ink: var(--ink);
  padding-top: clamp(28px, 3vw, 36px);
  padding-bottom: clamp(32px, 4vw, 44px);
  padding-left: clamp(20px, 2.2vw, 28px);
  padding-right: clamp(20px, 2.2vw, 28px);
}
.record__item .figure__value { margin-bottom: 4px; white-space: nowrap; }

/* mini visuals — always render at their correct final value (no-JS safe).
   Anything animated additionally carries .draw-fill: default = final value
   (var(--final), set inline per element), and only once html.gsap-ready is
   present (site.js confirmed GSAP loaded) does it start from zero, so a CDN
   failure never leaves a chart looking wrong or stuck hidden. */
.draw-fill {
  transform: scaleX(var(--final, 1));
  transform-box: fill-box;
  transform-origin: 0% 50%;
}
html.gsap-ready .draw-fill { transform: scaleX(0); }

.viz-underline { width: 100%; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.viz-underline__fill { height: 100%; width: 100%; background: var(--blue); border-radius: 4px; transform-origin: left; }

.viz-bar { position: relative; height: 40px; }
.viz-bar__track { position: absolute; inset: auto 0 0 0; height: 8px; background: var(--line); border-radius: 4px; }
.viz-bar__fill { position: absolute; inset: auto 0 0 0; height: 8px; background: var(--blue); border-radius: 4px; transform-origin: left; }
.viz-bar__target { position: absolute; top: 0; bottom: 8px; width: 2px; background: var(--ink-3); }
.viz-bar__target::after {
  content: attr(data-label);
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--ink-3); white-space: nowrap;
}

.viz-dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.viz-dots span {
  aspect-ratio: 1; border-radius: 50%; background: var(--line);
  transform: scale(1); opacity: 1;
}
.viz-dots span.is-lit { background: var(--blue); }
html.gsap-ready .viz-dots span { transform: scale(0.4); opacity: 0; }

.viz-split { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.viz-split__seg { height: 100%; width: 100%; background: var(--acc-dasalla); transform-origin: left; }

/* ---- STATEMENT ---- */
.statement { padding-top: clamp(72px, 12vw, 140px); padding-bottom: clamp(72px, 12vw, 140px); }
.statement__text {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 20ch;
}
.statement__word { color: var(--ink); opacity: 1; }
html.gsap-ready .statement__word { opacity: 0.18; }

/* ---- HOW I WORK ----
   Desktop (>=900px): the whole .how__pin (title + text + visual) gets pinned
   by ScrollTrigger in home.js for ~200-250vh; a stage index (0-3) drives
   which .how__stage crossfades in on the left and which .how__card is
   active/past/future on the right. Mobile/reduced-motion: no pin, each
   .how__stage carries its own inline .how__illust copy (the desktop
   .how__stagevis is hidden) so the section reads as plain stacked panels. */
.how { position: relative; }
.how__pin { padding-top: 8px; }
.how__count {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.how__heading { margin-bottom: clamp(28px, 4vw, 48px); }
.how__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .how__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); }
}
.how__stage-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.how__stage-title { font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 14px; }
.how__stage-text { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.how__stages { position: relative; min-height: 220px; }
.how__stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.how__stage.is-active { opacity: 1; pointer-events: auto; position: relative; }

/* right side: thin progress rail + the pipeline of stage cards */
.how__stagevis { display: flex; gap: clamp(16px, 2vw, 28px); height: min(56vh, 460px); }
.how__rail {
  position: relative;
  width: 4px;
  flex: none;
  border-radius: 2px;
  background: var(--line-strong);
}
.how__rail-fill {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
}
.how__rail-tick {
  position: absolute;
  left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--line-strong);
  transform: translate(-50%, -50%);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.how__rail-tick.is-active { border-color: var(--blue); background: var(--blue); }

.how__cards { position: relative; flex: 1; min-width: 0; }
.how__card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 3vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(28px) scale(0.92);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
}
.how__card.is-active { opacity: 1; transform: translateY(0) scale(1); z-index: 2; pointer-events: auto; }
.how__card.is-past { opacity: 0; transform: translateY(-28px) scale(0.9); z-index: 1; }
.how__card.is-future { opacity: 0; transform: translateY(28px) scale(0.9); z-index: 1; }

/* Prospect: a column of lead rows, a few highlighted */
.how__leads { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }
.how__lead { height: 14px; border-radius: 7px; background: var(--line); width: 100%; }
.how__lead:nth-child(2) { width: 82%; }
.how__lead:nth-child(4) { width: 64%; }
.how__lead:nth-child(6) { width: 90%; }
.how__lead.is-hot { background: var(--blue); }

/* Qualify: needs chips being checked */
.how__chips { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 320px; }
.how__chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-size: 15px; font-weight: 500; color: var(--ink-2);
}
.how__check {
  flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  position: relative;
}
.how__check::after {
  content: "";
  position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border-right: 2px solid var(--bg); border-bottom: 2px solid var(--bg);
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s var(--ease-out);
}
.how__chip.is-checked .how__check { background: var(--acc-founder); border-color: var(--acc-founder); }
.how__chip.is-checked .how__check::after { transform: rotate(45deg) scale(1); }

/* Close: reuses .viz-bar; Measure: a small drawn line + caption */
.how__quota { width: 100%; max-width: 320px; }
.how__quota-label { margin-top: 16px; font-size: 15px; color: var(--ink-2); text-align: center; }
.how__report { width: 100%; max-width: 320px; }
.how__report-caption { margin-top: 14px; font-size: 14px; color: var(--ink-3); text-align: center; }

/* mobile / reduced-motion inline illustration copy */
.how__illust { display: none; margin-top: 20px; }

@media (min-width: 900px) {
  .how--pinned .how__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 96px; padding-bottom: 96px; }
}

@media (max-width: 899px) {
  .how__stagevis { display: none; }
  .how__stages { position: static; min-height: 0; }
  .how__stage {
    position: static;
    opacity: 1 !important;
    pointer-events: auto;
    margin-bottom: clamp(40px, 8vw, 64px);
  }
  .how__stage:last-child { margin-bottom: 0; }
  .how__illust { display: flex; align-items: center; justify-content: center; }
}

/* ---- SELECTED WORK ---- */
.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
  margin-top: 8px;
}
@media (min-width: 900px) {
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work__grid .work-card:first-child { grid-column: 1 / -1; }
}
.work-card {
  display: block;
  --accent-ink: var(--ink);
}
.work-card__viz { margin-top: 28px; }
.work-card__eyebrow { font-size: 15px; font-weight: 600; color: var(--accent-text, var(--link)); margin-bottom: 10px; }
.work-card__title { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.work-card__result { font-size: 17px; color: var(--ink-2); margin-bottom: 4px; }
.work-card__metric { font-size: 15px; color: var(--ink-3); }

.viz-quota { position: relative; height: 64px; }
.viz-waffle { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.viz-waffle span { aspect-ratio: 1; border-radius: 3px; background: var(--line); }
.viz-waffle span.is-lit { background: var(--acc-dasalla); }
.viz-pipeline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.viz-pipeline__node {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.viz-pipeline__arrow { color: var(--ink-3); }

/* ---- PROJECTS DASHBOARD (Pro) ---- */
.dash__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 700px) {
  .dash__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .dash__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash__grid .dash-tile:first-child { grid-column: span 2; }
}
.dash-tile__cat { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--blue); margin-bottom: 10px; }
.dash-tile__text { font-size: 17px; line-height: 1.5; color: #f5f5f7; }
.dash-tile__text b { font-weight: 700; }
.dash-tile__bars { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.dash-bar { display: flex; align-items: center; gap: 10px; }
.dash-bar__track { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.1); overflow: hidden; }
.dash-bar__fill { height: 100%; background: var(--blue); border-radius: 4px; transform-origin: left; }
.dash-bar__label { font-size: 13px; color: #a1a1a6; width: 6.5ch; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.dash__cta { margin-top: clamp(40px, 6vw, 64px); }

/* ---- EXPERIENCE: gantt chart ----
   Grid columns: label | track, shared across the ticks row + one row per
   role, so the label and its bar always share a row and bars/gridlines/ticks
   share the exact same horizontal scale. Bars are positioned with inline
   left/width percentages (computed from real dates) and carry .draw-fill so
   they grow from their own start date (transform-origin: 0% = the bar's own
   left edge) when scrubbed into view. */
.gantt {
  margin-top: 8px;
  margin-bottom: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(96px, 20%) 1fr;
  column-gap: clamp(12px, 2vw, 24px);
  row-gap: 4px;
}
.gantt__axis-label { grid-column: 1; grid-row: 1; }
.gantt__axis { grid-column: 2; grid-row: 1; position: relative; height: 20px; }
.gantt__tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}
.gantt__tick:first-child { transform: translateX(0); }
.gantt__tick:last-child { transform: translateX(-100%); }
.gantt__gridlines {
  grid-column: 2;
  grid-row: 1 / 8;
  position: relative;
}
.gantt__gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.gantt__now {
  grid-column: 2;
  grid-row: 1 / 8;
  position: relative;
}
.gantt__now-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-3); }
.gantt__now-label {
  position: absolute;
  top: -20px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}

/* narrow viewports: thin the ticks out (every 4 years) so labels don't collide */
@media (max-width: 640px) {
  .gantt { grid-template-columns: minmax(88px, 26%) 1fr; }
  .gantt__tick:nth-child(2n) { display: none; }
  .gantt__tick:last-child { display: none; }
}
.gantt__row-label {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}
.gantt__role { font-weight: 600; font-size: 15px; }
.gantt__org { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.gantt__row-track {
  grid-column: 2;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.gantt__bar {
  position: absolute;
  top: 50%;
  margin-top: -5px;
  height: 10px;
  border-radius: 5px;
  background: var(--accent, var(--blue));
  transform-origin: 0% 50%;
}

.exp__list { display: flex; flex-direction: column; }
.exp__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.exp__row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) {
  .exp__row { grid-template-columns: 120px 1fr 1.3fr; align-items: baseline; }
}
.exp__years { font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.exp__role { font-weight: 600; }
.exp__org { color: var(--ink-2); font-size: 15px; }
.exp__detail { color: var(--ink-2); font-size: 15px; }
.exp__more { margin-top: 32px; }

/* ---- TOOLKIT ---- */
.toolkit__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
  margin-top: 8px;
}
@media (min-width: 860px) {
  .toolkit__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.toolkit-tile__title { font-weight: 600; font-size: 19px; margin-bottom: 16px; }
.toolkit-tile__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.toolkit-tag {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.section--alt .toolkit-tag { background: var(--card); }

/* ---- CONTACT ---- */
.contact__lede { margin-top: 28px; }
.contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 28px;
  margin-top: 44px;
}
.contact__email {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.contact__copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
  transform: translateY(-0.1em);
}
.contact__copy-btn:hover { background: var(--line); }
.contact__links { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; }

/* ---- 404 ---- */
.notfound {
  min-height: 70svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-pad) var(--pad);
}
.notfound__code { color: var(--blue); font-weight: 700; margin-bottom: 12px; }

/* ---- print (resume page will extend this) ---- */
@media print {
  .nav, .footer, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  /* Scroll reveals never fire while printing, and GSAP's autoAlpha hides targets with inline
     visibility:hidden, so force every animated element to its final, visible state. */
  [data-reveal], [data-draw], [data-split], .split-line, .draw-fill {
    opacity: 1 !important; visibility: visible !important; transform: none !important; filter: none !important;
  }
}
