/* =========================================================
   Work Redesigned — landing page
   Calm, authoritative, premium. Indigo spine, warm clay accent.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces & ink — pale mint paper, charcoal ink (from LinkedIn banner) */
  --paper-light:  oklch(0.990 0.005 168);  /* near-white mint — for section alternation */
  --paper:        oklch(0.962 0.022 168);
  --paper-2:      oklch(0.935 0.03 170);
  --surface:      oklch(0.995 0.004 168);
  --ink:          oklch(0.235 0.013 200);
  --ink-2:        oklch(0.45 0.016 195);
  --line:         oklch(0.88 0.022 175);
  --line-soft:    oklch(0.915 0.016 172);

  /* Deep teal (dark drench + structure) — names kept as --indigo-* for stability */
  --indigo:       oklch(0.50 0.095 184);   /* teal-deep: accent text on light */
  --indigo-deep:  oklch(0.31 0.055 188);   /* dark teal drench */
  --indigo-ink:   oklch(0.24 0.042 190);   /* deepest teal drench */
  --indigo-on:    oklch(0.965 0.02 175);   /* text on dark teal */
  --indigo-on-2:  oklch(0.82 0.04 176);    /* muted text on dark teal */

  /* Bright teal accent (fills, CTA, marker) — names kept as --clay-* for stability */
  --clay:         oklch(0.745 0.115 178);  /* bright teal: CTA / chips / accent fills */
  --clay-deep:    oklch(0.50 0.095 184);   /* teal-deep: emphasis text / chip text */
  --clay-deeper:  oklch(0.42 0.082 186);   /* teal-deeper */
  --clay-soft:    oklch(0.90 0.052 176);   /* teal-tint chip / band bg */
  --paper-warm:   oklch(0.928 0.04 172);   /* mint band */
  --marker:       oklch(0.84 0.09 177);    /* teal highlighter box */

  /* Type — optical-size grotesque display + humanist body */
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* Fluid type scale — pulled down for the wider geometric display face */
  --step--1: clamp(0.86rem, 0.83rem + 0.13vw, 0.94rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2:  clamp(1.4rem, 1.28rem + 0.6vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.52rem + 1.1vw, 2.5rem);
  --step-4:  clamp(2.15rem, 1.75rem + 1.9vw, 3.3rem);
  --step-5:  clamp(2.4rem, 1.95rem + 2.6vw, 3.9rem);

  /* Space */
  --space-section:    clamp(4.5rem, 3.5rem + 5vw, 8.5rem);
  --space-section-sm: clamp(3rem, 2rem + 4vw, 6rem);
  --shell-max: 1180px;
  --shell-pad: clamp(1.25rem, 0.8rem + 2.2vw, 2.5rem);

  /* Radius & motion — warm-premium but enterprise-restrained */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 1px 2px oklch(0.4 0.05 280 / 0.06), 0 8px 24px oklch(0.4 0.05 280 / 0.07);
  --shadow-lift: 0 2px 4px oklch(0.4 0.05 280 / 0.08), 0 18px 44px oklch(0.4 0.05 280 / 0.12);
  --shadow-card: 0 2px 6px oklch(0.4 0.05 280 / 0.05), 0 24px 50px oklch(0.4 0.05 280 / 0.10);

  /* z-index scale */
  --z-sticky: 100;
  --z-mobilenav: 200;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible {
  outline: 3px solid var(--clay-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}
.section { padding-block: var(--space-section); }
/* Supporting/evidence sections: tighter padding creates rhythm vs. primary sections */
.section.outcomes,
.section.proof,
.section.timeline,
.section.lab { padding-block: var(--space-section-sm); }
.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lede {
  margin-top: 0.9rem;
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 52ch;
}
.u-clay { color: var(--clay-deep); }

/* Teal highlight box behind key words (from the banner) */
.mark { position: relative; isolation: isolate; white-space: nowrap; }
.mark::before {
  content: ""; position: absolute; z-index: -1;
  left: -0.14em; right: -0.14em; bottom: -0.02em; height: 0.62em;
  background: var(--marker);
  border-radius: 3px;
}
.mark--indigo::before { background: oklch(0.62 0.09 180 / 0.34); }

.skip-link {
  position: absolute; left: 0; top: -100%;
  background: var(--indigo-deep); color: var(--indigo-on);
  padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0; z-index: 999;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 0.85em;
  --btn-pad-x: 1.4em;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: var(--step-0);
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn-sm { --btn-pad-y: 0.65em; --btn-pad-x: 1.1em; font-size: var(--step--1); }
.btn-lg { --btn-pad-y: 0.95em; --btn-pad-x: 1.7em; font-size: var(--step-1); }

.btn-primary {
  background: var(--clay); color: var(--ink);
  box-shadow: 0 1px 2px oklch(0.4 0.08 184 / 0.18), 0 10px 24px oklch(0.55 0.1 182 / 0.28);
}
.btn-primary:hover { background: oklch(0.69 0.12 180); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--indigo-ink); color: var(--indigo-on);
}
.btn-secondary:hover { background: oklch(0.16 0.035 240); transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-1px); }
.btn:active { transform: scale(0.96); transition-duration: 0.12s; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: oklch(0.985 0.004 278 / 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--indigo-ink);
  margin-right: auto;
}
.wordmark-mark {
  width: 0.85rem; height: 1.05rem; flex: none;
  background: var(--indigo);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
  transition: transform 0.35s var(--ease-out), background-color 0.3s var(--ease-out);
}
.wordmark:hover .wordmark-mark {
  transform: scale(1.22) translateY(-1px);
  background: var(--clay);
}
.primary-nav { display: flex; gap: clamp(1rem, 0.5rem + 1.4vw, 2rem); }
.primary-nav a {
  text-decoration: none; color: var(--ink-2);
  font-weight: 550; font-size: var(--step--1);
  padding: 0.4rem 0; position: relative;
  transition: color 0.2s var(--ease-out);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px;
  height: 2px; background: var(--clay-deep);
  transition: left 0.3s var(--ease-out), right 0.3s var(--ease-out);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { left: 0; right: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle-bar { width: 20px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 0.5rem var(--shell-pad) 1.5rem;
  border-bottom: 1px solid var(--line); background: var(--paper);
}
.mobile-nav a:not(.btn) {
  text-decoration: none; color: var(--ink); font-weight: 550;
  padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .btn { margin-top: 1rem; }

/* ---------- Hero (2-col: copy + portrait) ---------- */
.hero {
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem) clamp(2.5rem, 2rem + 2vw, 4rem);
  position: relative;
  background: radial-gradient(
    ellipse 60% 85% at 76% 46%,
    oklch(0.90 0.052 176 / 0.5) 0%,
    transparent 100%
  ), var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1fr 0.72fr; gap: clamp(2.5rem, 2rem + 4vw, 4.5rem); align-items: center; }
.hero-image-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-lift);
}
.hero-portrait-img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 15%; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 2rem + 3.2vw, 4.6rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-title em {
  font-style: normal;
  color: var(--indigo);
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-underline-offset: 0.1em;
  text-decoration-thickness: 0.05em;
}
/* With JS: start hidden, transition in when .is-underlined is added via setTimeout */
.js .hero-title em {
  text-decoration-color: transparent;
  transition: text-decoration-color 0.65s var(--ease-out);
}
.js .hero-title em.is-underlined { text-decoration-color: var(--clay); }
.hero-sub {
  margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 58ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-trust {
  margin-top: 1.5rem; font-size: var(--step--1); color: var(--ink-2);
  max-width: 54ch; padding-top: 1.25rem; border-top: 1px solid var(--line);
}

/* Hero entrance — dedicated keyframe choreography, not a scroll reveal */
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroImageEnter {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.js .hero-title       { animation: heroEnter     0.75s var(--ease-out) 0.04s both; }
.js .hero-sub         { animation: heroEnter     0.70s var(--ease-out) 0.15s both; }
.js .hero-actions     { animation: heroEnter     0.65s var(--ease-out) 0.26s both; }
.js .hero-trust       { animation: heroEnter     0.60s var(--ease-out) 0.37s both; }
.js .hero-image-wrap  { animation: heroImageEnter 0.85s var(--ease-out) 0.08s both; }

/* CTA attention pulse — single ring after hero settles, then yields to normal hover */
@keyframes ctaAttention {
  0%   { box-shadow: 0 1px 2px oklch(0.4 0.08 184 / 0.18), 0 10px 24px oklch(0.55 0.1 182 / 0.28), 0 0 0 0 oklch(0.745 0.115 178 / 0.55); }
  65%  { box-shadow: 0 1px 2px oklch(0.4 0.08 184 / 0.18), 0 10px 24px oklch(0.55 0.1 182 / 0.28), 0 0 0 13px oklch(0.745 0.115 178 / 0); }
  100% { box-shadow: 0 1px 2px oklch(0.4 0.08 184 / 0.18), 0 10px 24px oklch(0.55 0.1 182 / 0.28), 0 0 0 13px oklch(0.745 0.115 178 / 0); }
}
.js .hero-actions .btn-primary { animation: ctaAttention 1.1s var(--ease-out) 1.75s; }
.js .closing-inner.is-in .btn-primary { animation: ctaAttention 1.1s var(--ease-out) 1s; }

/* Canvas sits behind all hero content; CSS gradient is the no-JS / reduced-motion fallback */
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero .shell { position: relative; z-index: 1; }
/* Two-class specificity (0,2,0) beats the single-class responsive override — no !important needed */
.hero.is-canvas-active { background: var(--paper); }


/* ---------- Authority / logo bar ---------- */
.logobar { padding-block: clamp(2rem, 1.5rem + 1.8vw, 3.25rem); background: var(--surface); border-block: 1px solid var(--line); }
.logobar-inner { display: flex; flex-direction: column; align-items: center; gap: 1.35rem; text-align: center; }
.logobar-label {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.13em;
  font-weight: 600; font-size: var(--step--1); color: var(--ink-2); margin: 0;
}
.logobar-list {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1.1rem clamp(1.75rem, 1rem + 3vw, 3.25rem); padding: 0; margin: 0;
  color: oklch(0.55 0.008 205);
}
.logobar-list li { display: flex; align-items: center; }
.logo { display: block; width: auto; fill: currentColor; }
/* per-logo optical sizing: even cap-height, denser marks slightly smaller */
.logo--google   { height: 22px; }
.logo--meta     { height: 23px; }
.logo--youtube  { height: 20px; }
.logo--uber     { height: 18px; }
.logo--doordash { height: 22px; }
.logo--calibrate{ height: 19px; }

/* Hero portrait — indigo committed panel, echoes brand header */
.hero-portrait { margin: 0; }
.portrait-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--indigo-deep);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 4.4;
}
.portrait-img {
  width: 100%; height: 100%;
  background-image: url("assets/brand-header.png");
  background-repeat: no-repeat;
  background-size: 220%;
  background-position: 100% 82%;
}
.portrait-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column;
  padding: 2.75rem 1.4rem 1.25rem;
  background: linear-gradient(to top,
    oklch(0.14 0.06 280 / 0.97) 0%,
    oklch(0.14 0.06 280 / 0.82) 42%,
    oklch(0.14 0.06 280 / 0) 100%);
  color: var(--indigo-on);
}
.portrait-name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.005em; }
.portrait-role { font-size: var(--step--1); color: oklch(0.90 0.02 278); margin-top: 0.15rem; }

/* ---------- Problem ---------- */
.problem { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.problem .section-head { max-width: none; margin-bottom: 0.75rem; }
.problem-prose { display: flex; flex-direction: column; gap: 1.1rem; }
.problem-prose p { color: var(--ink-2); max-width: 46ch; }
.problem-prose .problem-lead { font-size: var(--step-0); color: var(--ink); }
.problem .lede { font-size: var(--step-0); }
.problem-prose .problem-point { color: var(--ink); border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 0.4rem; }
.problem-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.problem-aside-label { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--ink); letter-spacing: -0.005em; }

/* Card hover lift (interaction) */
.tcard, .path-step {
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
}
.tcard:hover, .path-step:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--clay);
}
.problem-body { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 0.5rem + 4vw, 4rem); align-items: start; }
.problem-para { font-size: var(--step-1); color: var(--ink); max-width: 38ch; }
.signal-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.signal-list li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 500;
}
.signal-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.signal-mark {
  flex: none; width: 1.5rem; height: 1.5rem; border-radius: 6px;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
  background: var(--indigo-deep); color: var(--indigo-on); margin-top: 0.1rem;
}

/* ---------- Shift (the turn) — indigo drench ---------- */
.shift { background: var(--indigo-deep); color: var(--indigo-on); }
.shift-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 2rem + 4vw, 5.5rem); align-items: center; position: relative;
}
.shift-statement {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 2rem + 2.5vw, 4rem); letter-spacing: -0.02em; line-height: 1.15;
  color: var(--indigo-on);
}
.shift-statement .u-clay { color: var(--clay); }
.shift-setup {
  display: block;
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 500;
  opacity: 0.65;
  letter-spacing: -0.01em;
  margin-bottom: 0.35em;
}
.shift-support {
  margin-top: 1.5rem; font-size: var(--step-1); color: var(--indigo-on-2);
}
/* The shift is the turn — scale entrance feels more decisive than a slide */
.js .shift-grid.reveal { transform: scale(0.965) translateY(8px); transition-duration: 0.9s; }

/* ---------- Method / stages ---------- */
.stages-outer { position: relative; }
.stages { list-style: none; padding: 0; display: flex; flex-direction: column; gap: clamp(2rem, 1.4rem + 2.5vw, 3.5rem); }
.js .stages.reveal { opacity: 1; transform: none; }  /* container is a trigger only; don't fade it */
.stages-rail { position: absolute; left: 1.75rem; top: 1.75rem; bottom: 2.5rem; width: 2px; background: var(--line); border-radius: 2px; transform: translateX(-50%); }
.stages-rail-fill { position: absolute; inset: 0; background: var(--clay-deep); border-radius: 2px; transform: scaleY(0); transform-origin: top; }
.js .stages-outer:has(.stages.is-in) .stages-rail-fill { transform: scaleY(1); transition: transform 1.6s var(--ease-out); }
.stage {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: clamp(1.25rem, 0.8rem + 2vw, 2.25rem);
  align-items: start; position: relative;
}
.stage-num {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1);
  width: 3.5rem; height: 3.5rem; flex: none; display: grid; place-items: center;
  background: var(--surface); color: var(--clay-deep);
  border: 2px solid var(--clay); border-radius: 50%; line-height: 1; position: relative; z-index: 1;
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.stage-name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -0.01em; color: var(--ink); }
.stage-promise { margin-top: 0.6rem; font-size: var(--step-1); color: var(--ink-2); max-width: 50ch; }
.stage-steps { margin-top: 1.1rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.55rem; max-width: 54ch; }
.stage-steps li { position: relative; padding-left: 1.5rem; color: var(--ink); font-size: var(--step-0); }
.stage-steps li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 0.5rem;
  background: var(--clay); border-radius: 2px; transform: rotate(45deg);
}

/* ---------- Outcomes ---------- */
.outcomes { background: var(--paper-warm); border-block: 1px solid var(--line); }
.outcomes-grid { display: block; }
.outcome-list {
  list-style: none; padding: 0; margin-top: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(208px, 1fr)); gap: 1.75rem 2.25rem;
}
.outcome-list li {
  display: block; background: none; border: 0; box-shadow: none; border-radius: 0;
  padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.outcome-mark {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 0.9rem;
  background: var(--clay); color: var(--ink); border-radius: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1;
}
.outcome-list strong { color: var(--ink); font-weight: 700; display: block; margin-bottom: 0.4rem; font-size: var(--step-1); }
.outcome-list div { color: var(--ink-2); }

/* ---------- How we start / path ---------- */
.path { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.path-step {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.1rem, 0.6rem + 2vw, 2rem);
  align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-card);
}
.path-index {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-2);
  width: clamp(2.6rem, 2.2rem + 1vw, 3.2rem); height: clamp(2.6rem, 2.2rem + 1vw, 3.2rem);
  display: grid; place-items: center; flex: none;
  background: var(--indigo-deep); color: var(--indigo-on); border-radius: 50%;
  line-height: 1;
}
.path-content--full { grid-column: 1 / -1; }
.path-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -0.01em; color: var(--ink); }
.path-content p { margin-top: 0.5rem; color: var(--ink-2); max-width: 60ch; }
.tier-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.tier {
  padding: 1.25rem 1.25rem 1.4rem; border-radius: var(--radius-sm);
  background: var(--paper-2); border: 1px solid var(--line);
}
.tier h4 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--indigo); letter-spacing: -0.005em; }
.tier p { margin-top: 0.4rem; font-size: var(--step--1); color: var(--ink-2); }
.tier-note { margin-top: 1.25rem; font-size: var(--step--1); color: var(--ink-2); font-style: italic; }
.tier--pilot { border-color: var(--clay); background: var(--surface); }
.tier-badge {
  display: inline-block; margin-bottom: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.69rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--clay-deeper); background: var(--clay-soft);
  border-radius: 999px; padding: 0.22em 0.7em;
}

/* Guarantee / risk-reversal — B-School-style seal, truthful */
.guarantee {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  margin-top: 1.75rem;
  background: var(--paper-warm); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
}
.seal {
  flex: none; width: 128px; height: 128px; border-radius: 50%;
  background: var(--clay-soft); border: 2px dashed var(--clay-deep);
  display: grid; place-items: center; text-align: center; line-height: 1.1;
  color: var(--clay-deeper); padding: 0.5rem;
}
.seal-check { font-size: 1.6rem; }
.seal-text { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.72rem; margin-top: 0.2rem; }
.guarantee-copy { flex: 1 1 320px; }
.guarantee-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--ink); letter-spacing: -0.005em; }
.guarantee-copy p { margin-top: 0.5rem; color: var(--ink-2); max-width: 56ch; }

.start-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2.5rem; }
.start-cta-note { font-size: var(--step--1); color: var(--ink-2); }
.start-cta-note a { color: var(--clay-deep); text-underline-offset: 3px; }

/* ---------- About ---------- */
.about { background: var(--paper-light); }
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.about-portrait { margin: 0; }
.portrait-frame--about { aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-soft); }
.portrait-frame--about .portrait-img { background-size: 235%; background-position: 100% 60%; }
.about-copy p { color: var(--ink-2); margin-top: 1.1rem; max-width: 56ch; }
.about-copy p:first-of-type { margin-top: 1.5rem; font-size: var(--step-1); color: var(--ink); }
.about-copy em { font-style: italic; color: var(--ink); }

/* ---------- Image placeholder (awaiting real asset) ---------- */
.portrait-placeholder {
  display: grid; place-items: center; text-align: center;
  background: var(--indigo-deep);
}
.placeholder-label {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 600; font-size: var(--step--1); color: var(--indigo-on-2); line-height: 1.3;
  border: 1px dashed oklch(0.7 0.04 178 / 0.6); border-radius: 8px; padding: 0.6rem 0.9rem;
}
.portrait-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; z-index: 1; }

/* ---------- The Lab (Substack) ---------- */
.lab { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.lab-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.lab-kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.13em; font-weight: 600; font-size: var(--step--1); color: var(--clay-deep); margin-bottom: 0.75rem; }
.lab-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 0.7rem; max-width: 52ch; }
.lab-points li { position: relative; padding-left: 1.6rem; color: var(--ink); }
.lab-points li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 0.5rem; height: 0.5rem; background: var(--clay); border-radius: 2px; transform: rotate(45deg); }
.lab-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.lab-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.lab-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--clay); }
.lab-card-tag { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; font-size: 0.72rem; color: var(--clay-deep); }
.lab-card-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -0.01em; color: var(--ink); margin-top: 0.45rem; }
.lab-card-excerpt { color: var(--ink-2); margin-top: 0.6rem; }
.lab-card-link { display: inline-block; margin-top: 1rem; color: var(--clay-deep); font-weight: 600; font-size: var(--step--1); }
.lab-card:hover .lab-card-link { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ (native accordion) ---------- */
.faq { background: var(--paper-light); }
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 96px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.7rem; height: 0.7rem;
  border-right: 2px solid var(--clay-deep); border-bottom: 2px solid var(--clay-deep);
  transform: translateY(-60%) rotate(45deg); transition: transform 0.25s var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item:focus-within summary { color: var(--clay-deep); }
.faq-a { padding: 0 1.5rem 1.5rem 0; overflow: hidden; }
.faq-a p { color: var(--ink-2); max-width: 60ch; }

@keyframes faqSlideOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
details[open] .faq-a { animation: faqSlideOpen 0.25s var(--ease-out); }
.faq-a.is-closing    { animation: faqSlideOpen 0.18s var(--ease-out) reverse forwards; }

/* ---------- Reveal stagger (vary the entrance, not one uniform reflex) ---------- */
.js .tgrid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .tgrid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .tgrid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .stages > .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .stages > .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .tl > .reveal:nth-child(2) { transition-delay: 0.10s; }
.js .tl > .reveal:nth-child(3) { transition-delay: 0.20s; }
.js .path > .reveal:nth-child(2) { transition-delay: 0.12s; }
.js .path > .reveal:nth-child(3) { transition-delay: 0.24s; }
/* Closing CTA: same scale entrance as the shift — bookend the argument */
.js .closing-inner.reveal { transform: scale(0.965) translateY(8px); transition-duration: 0.9s; }

/* ---------- Pull quote ---------- */
.pullquote { background: var(--paper-2); border-block: 1px solid var(--line-soft); padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.pullquote-inner {
  max-width: 52rem; margin-inline: auto;
  background: var(--clay-soft); border: 1px solid oklch(0.86 0.04 176);
  border-radius: var(--radius-lg); padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  box-shadow: var(--shadow-soft);
}
.pullquote-inner::before { content: none; }
.pullquote blockquote { margin: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.pullquote blockquote > p {
  font-family: var(--font-body); font-weight: 400; font-size: var(--step-1);
  line-height: 1.55; color: var(--ink);
}
.pullquote footer { display: flex; align-items: center; gap: 0.85rem; }

/* ---------- Testimonials (featured-first, not a uniform grid) ---------- */
.proof { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tcard:first-child { grid-column: 1 / -1; }
.tcard:first-child blockquote { font-size: var(--step-1); line-height: 1.45; max-width: 46ch; }
.tcard {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 1.5rem;
}
.tcard blockquote { margin: 0; color: var(--ink); font-size: var(--step-0); line-height: 1.55; }
.tcard figcaption { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.tavatar {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--clay-soft); color: var(--clay-deeper);
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
  object-fit: cover;
}
.tperson { display: flex; flex-direction: column; }
.tname { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.tmeta { font-size: var(--step--1); color: var(--ink-2); }

/* ---------- First 90 days timeline ---------- */
.timeline { background: var(--paper-warm); border-block: 1px solid oklch(0.9 0.03 172); }
.tl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.tl-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.tl-when { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--step--1); color: var(--clay-deep); display: block; margin-bottom: 0.6rem; }
.tl-step p { color: var(--ink); margin: 0; }

/* ---------- About link ---------- */
.about-links { margin-top: 1.5rem; }
.about-links a { color: var(--clay-deep); font-weight: 600; text-decoration: none; }
.about-links a:hover { text-decoration: underline; }

/* ---------- Self-check teaser ---------- */
.selfcheck { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.selfcheck-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.75rem;
  background: var(--clay-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.4rem + 2vw, 3rem);
}
.selfcheck-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -0.01em; color: var(--ink); }
.selfcheck-copy p { margin-top: 0.5rem; color: var(--ink-2); max-width: 52ch; }
.selfcheck .btn { flex: none; }

/* ---------- Closing ---------- */
.closing { background: var(--indigo-ink); color: var(--indigo-on); }
.closing-inner { position: relative; text-align: center; padding-block: clamp(4rem, 3rem + 4vw, 7rem); max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.closing-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 2rem + 2.5vw, 4rem); letter-spacing: -0.02em; line-height: 1.15; color: var(--indigo-on); }
.closing-sub { margin-top: 1.25rem; font-size: var(--step-1); color: var(--indigo-on-2); max-width: 46ch; }
.closing .btn { margin-top: 2.25rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper-2); border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.75rem);
  padding-bottom: max(1.75rem, env(safe-area-inset-bottom, 0px));
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.wordmark--footer { font-size: 1.15rem; color: var(--indigo-ink); }
.footer-tag { margin-top: 0.6rem; color: var(--ink-2); font-size: var(--step--1); max-width: 32ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: flex-start; }
.footer-links a { text-decoration: none; color: var(--ink-2); font-size: var(--step--1); font-weight: 550; padding-block: 0.4rem; }
.footer-links a:hover { color: var(--clay-deep); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--ink-2);
}
.footer-base a { text-decoration: none; color: var(--clay-deep); font-weight: 600; }

/* ---------- Reveal motion (progressive enhancement) ---------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero {
    background: radial-gradient(
      ellipse 80% 55% at 50% 80%,
      oklch(0.90 0.052 176 / 0.4) 0%,
      transparent 100%
    ), var(--paper);
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-wrap { max-width: 360px; margin-inline: auto; }
  .shift-grid { grid-template-columns: 1fr; }
  .shift-support { margin-top: 0; }
  .problem-body { display: flex; flex-direction: column; gap: 2rem; }
  .problem-aside { order: -1; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 340px; margin-inline: auto; }
  .lab-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .tgrid { grid-template-columns: 1fr; }
  .tcard:first-child { grid-column: auto; }
}
@media (max-width: 720px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.is-open { display: flex; }
  .path-step { grid-template-columns: 1fr; }
  .selfcheck-inner { flex-direction: column; align-items: flex-start; }
  .selfcheck .btn { white-space: normal; text-align: center; align-self: stretch; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; transition-delay: 0s; }
  .btn, .primary-nav a::after, .portrait-img { transition: none; }
  /* Underline transition: JS adds .is-underlined immediately for reduced-motion users (see main.js) */
  .js .hero-title em { text-decoration-color: var(--clay) !important; }
  .wordmark-mark { transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
