  :root {
    /* Warm-tinted neutral ladder (hue ~80, very low chroma) — premium warm paper,
       not clinical screen-white, so blue reads as the deliberate lone cool accent
       instead of "white + blue everywhere". Depth comes from the base→paper→
       elevated steps (cards/modals now float on the warm base). */
    --bg-base: oklch(0.987 0.004 83);
    --bg-elevated: oklch(0.995 0.0025 83);
    --bg-paper: oklch(0.975 0.006 82);
    --bg-sunken: oklch(0.968 0.005 80);
    --bg-ink: oklch(0.205 0.022 80);
    --text-primary: oklch(0.235 0.022 78);
    --text-secondary: oklch(0.505 0.018 80);
    --text-tertiary: oklch(0.665 0.013 82);
    --border: oklch(0.922 0.006 80);
    --border-strong: oklch(0.862 0.009 80);
    --surface-glass: rgba(255,253,250,0.72);

    --accent: var(--accent-base, #3B82F6);
    --accent-deep: color-mix(in oklch, var(--accent), #000 16%);
    --accent-soft: color-mix(in oklch, var(--accent), var(--bg-base) 89%);
    --accent-pale: color-mix(in oklch, var(--accent), var(--bg-base) 74%);
    --violet: #38bdf8;
    --violet-soft: color-mix(in oklch, var(--violet), var(--bg-base) 89%);
    --gold: oklch(0.78 0.11 85);
    --gold-deep: oklch(0.66 0.12 78);
    /* Results/lift accent — a muted emerald, used ONLY for "we lifted your
       numbers" moments (hero lift stat, success state). Gives the eye a second,
       SEMANTIC place to land so blue isn't the only color. Subordinate to blue. */
    --good: oklch(0.58 0.13 162);
    --good-deep: oklch(0.50 0.13 162);
    --good-soft: color-mix(in oklch, var(--good), var(--bg-base) 88%);
    --good-pale: color-mix(in oklch, var(--good), var(--bg-base) 72%);

    --grad: linear-gradient(118deg, var(--accent) 0%, var(--violet) 100%);
    --grad-soft: linear-gradient(118deg, var(--accent-soft), var(--violet-soft));

    /* Warm near-black shadows (no saturated blue) — soft warm contact shadows on
       warm paper. The old --shadow-lg cast a SATURATED-BLUE halo (a big "everything
       is blue" tell); now a warm neutral so big elevations read expensive, not blue. */
    --shadow-sm: 0 1px 2px rgba(28,22,14,0.045), 0 2px 8px -4px rgba(28,22,14,0.07);
    --shadow-md: 0 2px 6px -2px rgba(28,22,14,0.07), 0 16px 40px -20px rgba(28,22,14,0.17);
    --shadow-lg: 0 4px 12px -4px rgba(28,22,14,0.09), 0 14px 60px -28px rgba(34,28,16,0.18);
    --r-lg: 22px;
    --r-md: 14px;
    --r-sm: 10px;

    /* Motion — natural deceleration curves (no bounce/elastic). */
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-theme="dark"] {
    /* Warm charcoal (hue 78, low chroma) — same warm family as light, never brown. */
    --bg-base: oklch(0.172 0.012 78);
    --bg-elevated: oklch(0.218 0.015 78);
    --bg-paper: oklch(0.195 0.013 78);
    --bg-sunken: oklch(0.136 0.011 78);
    --bg-ink: oklch(0.118 0.010 78);
    --text-primary: oklch(0.96 0.005 80);
    --text-secondary: oklch(0.74 0.012 80);
    --text-tertiary: oklch(0.56 0.012 80);
    --border: oklch(0.305 0.012 78);
    --border-strong: oklch(0.40 0.015 78);
    --surface-glass: rgba(38,34,28,0.66);

    --accent: color-mix(in oklch, var(--accent-base, #3B82F6), white 16%);
    --accent-deep: color-mix(in oklch, var(--accent), #000 8%);
    --accent-soft: color-mix(in oklch, var(--accent), var(--bg-base) 84%);
    --accent-pale: color-mix(in oklch, var(--accent), var(--bg-base) 66%);
    --violet: #38bdf8;
    --violet-soft: color-mix(in oklch, var(--violet), var(--bg-base) 84%);
    /* Results emerald + gold lifted for dark (they were inheriting light values). */
    --good: oklch(0.74 0.13 162);
    --good-deep: oklch(0.80 0.12 162);
    --good-soft: color-mix(in oklch, var(--good), var(--bg-base) 80%);
    --good-pale: color-mix(in oklch, var(--good), var(--bg-base) 60%);
    --gold: oklch(0.82 0.11 85);
    --gold-deep: oklch(0.74 0.12 80);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 2px 10px -4px rgba(0,0,0,0.5);
    --shadow-md: 0 2px 8px -2px rgba(0,0,0,0.5), 0 18px 44px -20px rgba(0,0,0,0.7);
    --shadow-lg: 0 6px 16px -6px rgba(0,0,0,0.55), 0 36px 80px -30px rgba(0,0,0,0.8);
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; height: 100%; }
  body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
    overflow-x: hidden;
  }
  #root { min-height: 100%; }

  .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
  a { color: inherit; text-decoration: none; }
  ::selection { background: var(--accent); color: #fff; }

  .footlink { font-size: 12px; color: var(--text-secondary); background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; letter-spacing: -0.01em; transition: color 0.15s ease; }
  .footlink:hover { color: var(--accent); }

  .theme-toggle { transition: color 0.2s var(--ease-out-quint), background 0.2s ease, border-color 0.2s ease, transform 0.15s var(--ease-out-quint); }
  .theme-toggle:hover { color: var(--accent); border-color: var(--border-strong); }
  .theme-toggle:active { transform: scale(0.92); }

  button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
  }

  @keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
  .pulse-dot { animation: pulseDot 1.6s ease-in-out infinite; }

  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

  @keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .fade-up { animation: fadeUp 0.5s var(--ease-out-quint) both; }

  /* ---- Page-load entrance choreography ----
     The hero is client-rendered, so #root is empty until React mounts (no FOUC);
     these play once on first paint. enter-col staggers its direct children;
     enter-soft fades a single block in slightly later. */
  @keyframes enterUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes enterSoft { from { opacity: 0; transform: translateY(10px) scale(0.992); } to { opacity: 1; transform: none; } }

  .enter-col > * { animation: enterUp 0.62s var(--ease-out-quint) both; }
  .enter-col > *:nth-child(1) { animation-delay: 0.04s; }
  .enter-col > *:nth-child(2) { animation-delay: 0.11s; }
  .enter-col > *:nth-child(3) { animation-delay: 0.18s; }
  .enter-col > *:nth-child(4) { animation-delay: 0.25s; }
  .enter-col > *:nth-child(5) { animation-delay: 0.32s; }
  .enter-col > *:nth-child(6) { animation-delay: 0.39s; }
  .enter-soft { animation: enterSoft 0.8s var(--ease-out-expo) 0.22s both; }

  /* Hover lift for interactive surfaces (pointer devices only, so touch taps
     don't get a stuck hover). transform/opacity only — GPU-friendly. */
  @media (hover: hover) {
    .lift { transition: transform 0.28s var(--ease-out-quint), box-shadow 0.28s var(--ease-out-quint); will-change: transform; }
    .lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  }

  /* Animated underline for inline text links. */
  .ulink { position: relative; }
  .ulink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out-quint); }
  .ulink:hover::after { transform: scaleX(1); }

  /* Success checkmark — scale-in pop + stroke draw at the conversion moment. */
  @keyframes checkPop { 0% { opacity: 0; transform: scale(0.6); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
  @keyframes checkDraw { from { stroke-dashoffset: 28; } to { stroke-dashoffset: 0; } }
  .check-pop { animation: checkPop 0.5s var(--ease-out-quint) both; }
  .check-pop path { stroke-dasharray: 28; animation: checkDraw 0.45s var(--ease-out-quart) 0.18s both; }

  /* Tiny spinner for the form sending state. */
  @keyframes spin { to { transform: rotate(360deg); } }
  .spin { animation: spin 0.7s linear infinite; }

  /* Form fields — smooth focus ring in the brand color. */
  .fld { transition: border-color 0.2s var(--ease-out-quint), box-shadow 0.2s var(--ease-out-quint); }
  .fld:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft); }

  @keyframes marqueeX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @keyframes marqueeY { from { transform: translateY(0); } to { transform: translateY(-50%); } }
  @keyframes vidProgress { 0% { width: 0%; } 92%,100% { width: 100%; } }

  /* striped placeholder for imagery */
  .ph-stripe {
    background-image: repeating-linear-gradient(135deg, rgba(43,107,255,0.06) 0 10px, rgba(43,107,255,0) 10px 20px);
  }

  ::-webkit-scrollbar { height: 8px; width: 8px; }
  ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.08s !important; }
    [data-marquee] { animation: none !important; }
    .lift:hover { transform: none !important; }
  }

  @media (max-width: 1080px) { .studio-live { display: none !important; } }
  /* stack to natural scroll on short or narrow screens */
  @media (max-width: 920px), (max-height: 640px) {
    .app-main { grid-template-columns: 1fr !important; }
    .app-shell { height: auto !important; }
  }

  /* ---- phone ---- */
  .cta-short { display: none; }
  @media (max-width: 600px) {
    .app-shell { padding-left: 18px !important; padding-right: 18px !important; }
    /* nav: drop secondary, swap CTA label to short */
    .nav-secondary { display: none !important; }
    .cta-full { display: none; }
    .cta-short { display: inline; }
    /* hero CTAs stack full-width and tappable */
    .hero-cta { flex-direction: column !important; align-items: stretch !important; gap: 9px !important; width: 100%; }
    .hero-cta > * { width: 100% !important; justify-content: center !important; }
    /* give the work wall more room on phones */
    .wall-col { min-height: 66vh !important; }
    /* roomier tap targets in footer */
    .footlink { padding: 7px 0 !important; font-size: 13px !important; }
    .foot-legal { flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; }
    /* modals: stack every side-by-side grid */
    .strat-funnel { grid-template-columns: 1fr !important; gap: 18px !important; }
    .strat-proof { grid-template-columns: 1fr !important; gap: 18px !important; }
    .strat-cascade { grid-template-columns: 1fr 1fr !important; gap: 14px 10px !important; }
    .strat-track { display: none !important; }
  }
  @media (max-width: 380px) {
    .strat-cascade { grid-template-columns: 1fr !important; }
  }
  @media (max-width: 600px) {
    .lb-arrow { width: 36px !important; height: 36px !important; left: auto; }
    .lb-arrow[aria-label="Previous"] { left: 4px !important; }
    .lb-arrow[aria-label="Next"] { right: 4px !important; }
  }
