/* ============================================================
   Corvue — corvue.ai landing page
   Built on the Corvue design system (Nordic-editorial, paper & ember).
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

@font-face { font-family: 'Lemon Milk'; src: url('fonts/LEMONMILK-Light.otf') format('opentype');        font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lemon Milk'; src: url('fonts/LEMONMILK-LightItalic.otf') format('opentype');  font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lemon Milk'; src: url('fonts/LEMONMILK-Regular.otf') format('opentype');      font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lemon Milk'; src: url('fonts/LEMONMILK-RegularItalic.otf') format('opentype');font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lemon Milk'; src: url('fonts/LEMONMILK-Medium.otf') format('opentype');       font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lemon Milk'; src: url('fonts/LEMONMILK-MediumItalic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lemon Milk'; src: url('fonts/LEMONMILK-Bold.otf') format('opentype');         font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lemon Milk'; src: url('fonts/LEMONMILK-BoldItalic.otf') format('opentype');   font-weight: 700; font-style: italic; font-display: swap; }

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --paper-0: #FFFFFE;
  --paper-1: #FDFCF9;
  --paper-2: #F8F6F2;
  --paper-3: #F1EEE8;
  --paper-4: #E8E4DC;

  --ink-0: #1C1C1C;
  --ink-1: #26251E;
  --ink-2: #3A3934;
  --ink-3: #6B6963;
  --ink-4: #A8A59E;
  --ink-5: #D4D0C8;

  --accent-50:  #FEF1EC;
  --accent-100: #FDDCCD;
  --accent-300: #FA9670;
  --accent-500: #F54E00;
  --accent-600: #D94200;
  --accent-700: #B23600;

  --success: #3F7D5B;
  --warning: #C38A0C;
  --danger:  #B53A2B;
  --info:    #4B6E8F;

  --bg:        var(--paper-1);
  --bg-alt:    var(--paper-2);
  --bg-sunk:   var(--paper-3);
  --surface:   var(--paper-0);

  --fg:        var(--ink-1);
  --fg-strong: var(--ink-0);
  --fg-muted:  var(--ink-3);
  --fg-faint:  var(--ink-4);

  --border:        var(--paper-4);
  --border-strong: var(--ink-5);
  --border-hair:   var(--paper-3);

  --accent:    var(--accent-500);
  --accent-fg: #FFFDFA;
  --accent-bg: var(--accent-50);

  --font-brand: 'Lemon Milk', 'Inter Tight', ui-sans-serif, sans-serif;
  --font-sans:  'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-mono:  'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-40: 2.5rem;
  --fs-56: 3.5rem;
  --fs-80: 5rem;

  --lh-tight: 1.08;
  --lh-snug:  1.22;
  --lh-body:  1.55;
  --lh-loose: 1.7;

  --ls-tight:   -0.02em;
  --ls-snugger: -0.01em;
  --ls-normal:  0;
  --ls-wide:    0.04em;
  --ls-wider:   0.12em;

  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 0 rgba(30, 28, 20, 0.04);
  --shadow-sm: 0 1px 2px rgba(30, 28, 20, 0.05), 0 1px 1px rgba(30, 28, 20, 0.03);
  --shadow-md: 0 2px 4px rgba(30, 28, 20, 0.05), 0 6px 16px -4px rgba(30, 28, 20, 0.06);
  --shadow-lg: 0 4px 8px rgba(30, 28, 20, 0.05), 0 20px 40px -8px rgba(30, 28, 20, 0.10);
  --ring-focus: 0 0 0 3px rgba(245, 78, 0, 0.18);

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 520ms;

  --maxw-prose:   68ch;
  --maxw-content: 1120px;
  --maxw-wide:    1280px;
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

::selection { background: var(--accent-100); color: var(--ink-0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { color: var(--fg-strong); margin: 0; }

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  color: var(--fg-strong);
}
.display em, .display i { font-style: italic; }

.h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, var(--fs-56));
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
.h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.2vw, var(--fs-40));
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}
.h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-30);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snugger);
}
.h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-24);
  line-height: 1.3;
  letter-spacing: var(--ls-snugger);
}
.h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-20);
  line-height: 1.35;
}

p { margin: 0; text-wrap: pretty; }

.lede {
  font-size: var(--fs-20);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.serif       { font-family: var(--font-serif); font-weight: 400; letter-spacing: var(--ls-tight); }
.serif em,
.serif-italic { font-family: var(--font-serif); font-style: italic; letter-spacing: var(--ls-tight); }

.overline {
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--fg-muted);
  font-weight: 500;
  margin: 0;
}

.meta, small {
  font-size: var(--fs-13);
  color: var(--fg-muted);
  line-height: 1.45;
}

.mono { font-family: var(--font-mono); font-size: 0.93em; font-feature-settings: "ss02", "cv02"; }

a { color: var(--fg-strong); text-decoration: none; transition: color var(--dur-2) var(--ease-out); }
a:hover { color: var(--accent); }
a.under {
  border-bottom: 1px solid var(--ink-5);
  transition: border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
a.under:hover { border-bottom-color: var(--accent); }

/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: var(--maxw-content); margin: 0 auto; padding: 0 48px; }
.container-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 48px; }

.section { padding: 140px 0; position: relative; }
.section-tight { padding: 96px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-sunk { background: var(--paper-0); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--ink-0); color: var(--paper-1); }
.section-dark .overline { color: rgba(253, 252, 249, 0.55); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              transform var(--dur-1) var(--ease-out);
}
.btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.btn:active { transform: scale(0.985); }

.btn-primary {
  background: var(--accent-500);
  color: var(--accent-fg);
  box-shadow: 0 1px 0 rgba(30, 28, 20, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { background: var(--accent-600); color: var(--accent-fg); }

.btn-secondary {
  background: var(--paper-0);
  color: var(--ink-1);
  border-color: var(--ink-5);
}
.btn-secondary:hover { border-color: var(--ink-2); color: var(--ink-0); }

.btn-ghost {
  background: transparent;
  color: var(--ink-1);
  padding: 11px 8px;
}
.btn-ghost:hover { color: var(--accent); }

.btn-dark {
  background: transparent;
  color: var(--paper-1);
  border-color: rgba(253, 252, 249, 0.24);
}
.btn-dark:hover { border-color: rgba(253, 252, 249, 0.5); color: var(--paper-0); }

.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 6px; }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              backdrop-filter var(--dur-2) var(--ease-out);
}
.nav.scrolled {
  background: rgba(253, 252, 249, 0.82);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-left { display: flex; align-items: center; gap: 40px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark { width: 22px; height: 22px; }
.nav-logo-text {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink-0);
  letter-spacing: 0.1em;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-right a:not(.btn) { color: var(--ink-2); font-size: 14px; }
.nav-right a:not(.btn):hover { color: var(--accent); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 96px 0 128px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper-1);
}

/* WebGL canvas — fills the entire hero, sits behind all content */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background: var(--paper-1);
  pointer-events: none;
}

.hero-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: opacity;
}

/* Readability scrim — softens the shader behind the copy on the left,
   leaves the right/bottom open for the wallpaper to breathe. */
.hero-scrim {
  z-index: 1;
  background:
    linear-gradient(105deg,
      rgba(253, 252, 249, 0.92) 0%,
      rgba(253, 252, 249, 0.72) 28%,
      rgba(253, 252, 249, 0.28) 54%,
      rgba(253, 252, 249, 0.00) 70%),
    linear-gradient(to bottom,
      rgba(253, 252, 249, 0.00) 55%,
      rgba(253, 252, 249, 0.35) 100%);
}

.hero-grain {
  z-index: 2;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.14  0 0 0 0 0.12  0 0 0 0.7 0'/></filter><rect width='320' height='320' filter='url(%23n)'/></svg>");
  background-size: 320px 320px;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--maxw-content);
  margin: 0 auto;
  padding: 0 48px;
}
.hero .overline { margin-bottom: 20px; }
.hero-headline {
  margin: 0 0 32px;
  max-width: 22ch;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
}
.hero-headline .serif-accent {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.04em;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}
.hero-sub {
  margin: 0 0 40px;
  max-width: 58ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}
.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Interaction cue — subtle "move / click" label, bottom-left of hero */
.hero-cue {
  position: absolute;
  left: 48px;
  bottom: 28px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(253, 252, 249, 0.55);
  border: 1px solid rgba(30, 28, 20, 0.06);
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0.7;
  transition: opacity var(--dur-2) var(--ease-out);
  pointer-events: none;
}
.hero:hover .hero-cue { opacity: 1; }
.hero-cue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(245, 78, 0, 0.18);
  animation: cue-pulse 2.8s ease-in-out infinite;
}
@keyframes cue-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(245, 78, 0, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(245, 78, 0, 0.02); }
}

/* Wallpaper picker — hidden by default. Remove `display: none` below
   (or toggle via JS) to reveal the on-page picker. */
.wall-picker {
  display: none;
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 4;
  width: 216px;
  padding: 14px 14px 12px;
  background: rgba(253, 252, 249, 0.68);
  border: 1px solid rgba(30, 28, 20, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 10px 30px -10px rgba(30, 28, 20, 0.18),
    0 2px 6px -2px rgba(30, 28, 20, 0.08);
  flex-direction: column;
  gap: 8px;
}

.wall-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 6px;
  border-bottom: 1px solid rgba(30, 28, 20, 0.08);
}
.wall-picker-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.wall-picker-head::after {
  content: "";
  width: 14px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    rgba(245, 78, 0, 0.85),
    rgba(245, 78, 0, 0.15));
}

.wall-picker-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wall-pill {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 7px 8px;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 28px 1fr 10px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--ink-2);
  text-align: left;
  transition:
    background var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out);
}
.wall-pill:hover { background: rgba(30, 28, 20, 0.04); color: var(--ink-0); }
.wall-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 78, 0, 0.35);
}

.wall-pill-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  transition: color var(--dur-1) var(--ease-out);
}
.wall-pill-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.wall-pill::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(30, 28, 20, 0.18);
  justify-self: end;
  transition:
    background var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out);
}

.wall-pill.is-active {
  background: rgba(245, 78, 0, 0.08);
  color: var(--ink-0);
}
.wall-pill.is-active .wall-pill-num { color: var(--accent-500); }
.wall-pill.is-active::after {
  background: var(--accent-500);
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(245, 78, 0, 0.18);
}

.wall-picker-hint {
  padding: 6px 4px 0;
  border-top: 1px solid rgba(30, 28, 20, 0.08);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  line-height: 1.4;
  min-height: 1.4em;
}

/* No-shader fallback: restore the previous ambient gradient so the hero
   still looks intentional if WebGL isn't available. */
.hero.hero-no-shader {
  background:
    radial-gradient(ellipse 1400px 900px at 100% 0%, var(--paper-1) 0%, var(--paper-2) 55%, var(--paper-1) 100%);
}
.hero.hero-no-shader .wall-picker,
.hero.hero-no-shader .hero-cue { display: none; }

/* ── Section heading block ────────────────────────────────── */
.section-head { margin-bottom: 72px; max-width: 64ch; }
.section-head .overline { margin-bottom: 18px; }
.section-head h2 { margin: 0 0 18px; }
.section-head p.lede { margin: 0; }

/* ── The shift ─────────────────────────────────────────────── */
.shift-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.95fr);
  gap: 72px;
  align-items: start;
}
.shift-body p { max-width: 58ch; font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-bottom: 22px; }
.shift-body p:last-child { margin-bottom: 0; }

.shift-aside { position: sticky; top: 96px; }

.shift-diagram {
  margin: 0;
  background: var(--paper-0);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.shift-diagram::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(245, 78, 0, 0.28), transparent);
}
.shift-diagram-caption {
  margin: 0 0 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.shift-diagram-caption::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--border);
}

.shift-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
  margin: 4px auto 0;
}

.shift-diagram-legend {
  position: relative;
  margin: 16px 0 0;
  padding: 16px 0 0 24px;
  border-top: 1px solid var(--border-hair);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.shift-diagram-legend em { font-style: italic; color: var(--ink-0); }
.shift-legend-dot {
  position: absolute;
  left: 0;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(245, 78, 0, 0.14);
}

/* Diagram animations — calm, ~minute-long loops */
.shift-orbit {
  transform-origin: 200px 200px;
  transform-box: view-box;
  animation: shift-orbit-rotate 90s linear infinite;
}
@keyframes shift-orbit-rotate {
  to { transform: rotate(360deg); }
}
.shift-ember {
  transform-box: fill-box;
  transform-origin: center;
  animation: shift-ember-pulse 5.2s ease-in-out infinite;
}
@keyframes shift-ember-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.72; transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .shift-orbit, .shift-ember { animation: none; }
}

.shift-punchline {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  max-width: 36ch;
  text-wrap: balance;
}

@media (max-width: 1024px) {
  .shift-grid { grid-template-columns: 1fr; gap: 56px; }
  .shift-aside { position: static; }
  .shift-diagram { max-width: 460px; }
  .shift-body p { max-width: 66ch; }
}

/* ── Hard problems ─────────────────────────────────────────── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.problem {
  padding: 40px 44px 44px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper-1);
}
.problem-num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--accent-500);
  letter-spacing: -0.01em;
  line-height: 1;
}
.problem h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 24ch;
}
.problem p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 46ch;
}

/* ── Why Corvue ────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.why-body p {
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
  max-width: 54ch;
}
.why-body p:last-child { margin-bottom: 0; }
.why-aside {
  position: sticky;
  top: 96px;
  padding: 28px 28px 24px;
  background: var(--paper-0);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.why-aside .overline { margin-bottom: 14px; }
.why-aside-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-0);
  margin-bottom: 20px;
}
.why-aside-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.why-aside-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.why-aside-list .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-500); flex-shrink: 0;
}

/* ── Platform (three layers) ──────────────────────────────── */
.platform-quote {
  margin: 0 0 48px;
  padding-left: 28px;
  border-left: 2px solid var(--accent-500);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-0);
  max-width: 52ch;
  text-wrap: balance;
}
.platform-intro {
  margin: 0 0 64px;
  max-width: 58ch;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.7;
}
.layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.layer {
  background: var(--paper-0);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.layer:hover { border-color: var(--ink-5); box-shadow: var(--shadow-md); }
.layer-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.layer h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 20ch;
}
.layer p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.layer-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.chip {
  font-size: 11.5px;
  font-family: var(--font-mono);
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--paper-1);
}
.platform-closer {
  margin: 0;
  max-width: 66ch;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ── Who builds ────────────────────────────────────────────── */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.path {
  background: var(--paper-0);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 420px;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out);
}
.path:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ink-5);
}
.path-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}
.path-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-500);
}
.path h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}
.path .h-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink-0);
}
.path p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.path-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-0);
  padding-top: 16px;
  border-top: 1px solid var(--border-hair);
}
.path-cta:hover { color: var(--accent); }
.path-cta .arrow { transition: transform var(--dur-2) var(--ease-out); }
.path-cta:hover .arrow { transform: translateX(3px); }
.paths-closer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.3;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  max-width: 60ch;
  text-wrap: balance;
}

/* ── Running today ─────────────────────────────────────────── */
.running-pattern {
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}
.running-pattern:last-of-type { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.running-pattern-head {
  position: sticky;
  top: 96px;
  align-self: start;
}
.running-pattern-head .pattern-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.running-pattern-head h3 {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink-0);
}
.running-pattern-head p { color: var(--ink-3); font-size: 14px; margin: 0; line-height: 1.55; max-width: 26ch; }

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.products.single { grid-template-columns: 1fr; }
.product {
  background: var(--paper-0);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  position: relative;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.product:hover { border-color: var(--ink-5); box-shadow: var(--shadow-sm); }
.product.featured {
  padding: 32px 32px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  row-gap: 16px;
  column-gap: 32px;
}
.product.featured .product-name { font-size: 22px; }
.product.featured .product-status { align-self: start; }
.product.featured p {
  grid-column: 1 / -1;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 64ch;
}
.product.featured .product-cta { grid-column: 1 / -1; margin-top: 0; }
.product-top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.product-name { font-family: var(--font-sans); font-weight: 600; font-size: 17px; color: var(--ink-0); letter-spacing: -0.01em; }
.product p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.product-cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-0);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-cta:hover { color: var(--accent); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
}
.status .s-dot { width: 6px; height: 6px; border-radius: 50%; }
.status.live     { color: #2B5A40; background: #E8F1EC; border-color: #D6E4DC; }
.status.live .s-dot { background: var(--success); box-shadow: 0 0 0 3px rgba(63, 125, 91, 0.18); }
.status.active   { color: #8A6106; background: #FBF3DF; border-color: #F0E3BD; }
.status.active .s-dot { background: var(--warning); }
.status.running  { color: #B23600; background: #FEF1EC; border-color: #FDDCCD; }
.status.running .s-dot { background: var(--accent-500); }
.status.coming   { color: var(--ink-3); background: var(--paper-2); border-color: var(--border); }
.status.coming .s-dot { background: var(--ink-4); }
.status.dev      { color: #2F4F6B; background: #E7EEF5; border-color: #CDDBE8; }
.status.dev .s-dot { background: var(--info); }

/* ── Media product cards (Pattern 01 "Agents as products") ────
   Site-screenshot hero + glass status pill, inspired by
   shadcn community "Glass Blog Card". Whole card is clickable. */
.products-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.product-media {
  padding: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
}
.product-media-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.product-media-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 1px solid var(--border);
}
.product-media-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 7, 0) 55%, rgba(10, 9, 7, 0.12) 100%);
  pointer-events: none;
}
.product-media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 600ms var(--ease-out);
}
.product-media:hover .product-media-figure img { transform: scale(1.035); }
.product-media-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: rgba(253, 252, 249, 0.78);
  border-color: rgba(253, 252, 249, 0.65);
  box-shadow: 0 2px 10px -4px rgba(10, 9, 7, 0.18);
}
.product-media-tag.coming {
  background: rgba(253, 252, 249, 0.72);
  color: var(--ink-1);
}
.product-media-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-media-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink-0);
  letter-spacing: -0.015em;
  margin: 0;
}
.product-media-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.product-media-cta {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-0);
  transition: color var(--dur-2) var(--ease-out), gap var(--dur-2) var(--ease-out);
}
.product-media:hover { border-color: var(--ink-5); box-shadow: 0 14px 40px -20px rgba(34, 33, 27, 0.22), 0 4px 12px -6px rgba(34, 33, 27, 0.08); }
.product-media:hover .product-media-cta { color: var(--accent-500); gap: 10px; }
.product-media:hover .product-media-name { color: var(--accent-500); }

.running-closer {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 64ch;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.7;
}
.running-closer strong { color: var(--ink-0); font-weight: 500; }

/* ── Final CTA paths ───────────────────────────────────────── */
.final-cta { background: var(--ink-0); color: var(--paper-1); position: relative; overflow: hidden; }
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 500px at 85% 20%, rgba(245, 78, 0, 0.14), transparent 60%);
  pointer-events: none;
}
.final-cta .container { position: relative; }
.final-cta .overline { color: rgba(253, 252, 249, 0.55); }
.final-cta .section-head h2 {
  color: var(--paper-0);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 24ch;
}
.final-cta .section-head h2 em { font-style: italic; color: var(--paper-0); }

.paths-five {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(253, 252, 249, 0.14);
}
.path-five {
  padding: 36px 24px 32px;
  border-right: 1px solid rgba(253, 252, 249, 0.14);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  transition: background var(--dur-2) var(--ease-out);
}
.path-five:last-child { border-right: none; }
.path-five:hover { background: rgba(253, 252, 249, 0.03); }
.path-five-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(253, 252, 249, 0.45);
  letter-spacing: 0.1em;
}
.path-five h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  color: var(--paper-0);
  letter-spacing: -0.01em;
  margin: 0;
}
.path-five p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(253, 252, 249, 0.65);
}
.path-five-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-300);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.path-five-link:hover { color: var(--accent-500); }

.final-extra {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(253, 252, 249, 0.14);
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  color: rgba(253, 252, 249, 0.55);
  font-size: 13px;
}
.final-extra a { color: rgba(253, 252, 249, 0.85); border-bottom: 1px solid rgba(253, 252, 249, 0.2); padding-bottom: 1px; }
.final-extra a:hover { color: var(--paper-0); border-color: var(--accent-300); }
.final-extra .sep { opacity: 0.35; }

/* ── Footer ────────────────────────────────────────────────── */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 72px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 16px;
  max-width: 36ch;
  line-height: 1.6;
}
.footer-brand .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-col h4 {
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--fg-muted);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col a { color: var(--ink-2); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-hair);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--fg-muted);
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--fg-muted); }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom .legal { display: flex; gap: 24px; }

/* ── Utilities ─────────────────────────────────────────────── */
.stack { display: flex; flex-direction: column; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-0);
  border-bottom: 1px solid var(--ink-5);
  padding-bottom: 2px;
  transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.arrow-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container, .container-wide, .hero-inner, .nav-inner { padding-left: 32px; padding-right: 32px; }
  .section { padding: 112px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-aside { position: static; }
  .layers { grid-template-columns: 1fr; }
  .paths-grid { grid-template-columns: 1fr; }
  .path { min-height: unset; }
  .paths-five { grid-template-columns: repeat(2, 1fr); }
  .path-five { border-right: 1px solid rgba(253,252,249,0.14); border-bottom: 1px solid rgba(253,252,249,0.14); min-height: unset; }
  .path-five:nth-child(2n) { border-right: none; }
  .products { grid-template-columns: 1fr 1fr; }
  .products.single { grid-template-columns: 1fr; }
  .product.featured { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .problems-grid { grid-template-columns: 1fr; }
  .problem { padding: 32px 28px 36px; }
  .running-pattern { grid-template-columns: 1fr; gap: 28px; padding-bottom: 56px; margin-bottom: 56px; }
  .running-pattern-head { position: static; }
  .running-pattern-head p { max-width: 52ch; }
  .wall-picker { right: 24px; bottom: 20px; width: 200px; }
  .hero-cue { left: 32px; }
}

@media (max-width: 680px) {
  .container, .container-wide, .hero-inner, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .section { padding: 88px 0; }
  .hero { min-height: calc(100svh - 64px); padding: 64px 0 120px; }
  .hero-scrim {
    background:
      linear-gradient(to bottom,
        rgba(253, 252, 249, 0.92) 0%,
        rgba(253, 252, 249, 0.55) 40%,
        rgba(253, 252, 249, 0.12) 72%,
        rgba(253, 252, 249, 0.00) 100%);
  }
  .hero-headline { font-size: 2.25rem; line-height: 1.08; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .nav-links { display: none; }
  .nav-right a:not(.btn) { display: none; }
  .section-head { margin-bottom: 48px; }
  .products { grid-template-columns: 1fr; }
  .products-media { grid-template-columns: 1fr; gap: 18px; }
  .product-media-body { padding: 20px 20px 22px; }
  .product-media-name { font-size: 18px; }
  .paths-five { grid-template-columns: 1fr; }
  .path-five { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .shift-punchline { font-size: 1.75rem; }
  .product.featured { padding: 24px 22px; }
  .product.featured .product-name { font-size: 18px; }

  .wall-picker {
    left: 20px;
    right: 20px;
    bottom: 16px;
    width: auto;
    padding: 10px 12px 10px;
  }
  .wall-picker-head { padding-bottom: 4px; }
  .wall-picker-list { flex-direction: row; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .wall-picker-list::-webkit-scrollbar { display: none; }
  .wall-pill {
    grid-template-columns: 22px 1fr;
    padding: 6px 8px;
    flex: 0 0 auto;
  }
  .wall-pill::after { display: none; }
  .wall-pill-name { font-size: 12px; }
  .wall-picker-hint { display: none; }
  .hero-cue { display: none; }
}

/* ============================================================
   Scroll reveals & micro-interactions
   ============================================================ */

/* ── Scroll-reveal setup ───────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {

  /* Target elements fade + lift into view as they scroll on screen.
     Hidden only when JS is available (html.js) so no-JS users still
     see content normally. */
  html.js :where(
    .section-head > *,
    .shift-body > p,
    .shift-aside,
    .shift-punchline,
    .problems-grid > .problem,
    .why-body > p,
    .why-aside,
    .platform-quote,
    .platform-intro,
    .layers > .layer,
    .platform-closer,
    .paths-grid > .path,
    .paths-closer,
    .running-pattern-head > *,
    .products > .product,
    .running-closer,
    .paths-five > .path-five,
    .final-extra
  ) {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 720ms var(--ease-out),
      transform 720ms var(--ease-out);
  }

  html.js :where(
    .section-head > *,
    .shift-body > p,
    .shift-aside,
    .shift-punchline,
    .problems-grid > .problem,
    .why-body > p,
    .why-aside,
    .platform-quote,
    .platform-intro,
    .layers > .layer,
    .platform-closer,
    .paths-grid > .path,
    .paths-closer,
    .running-pattern-head > *,
    .products > .product,
    .running-closer,
    .paths-five > .path-five,
    .final-extra
  ).is-visible {
    opacity: 1;
    transform: none;
  }

  /* Stagger delays for grouped reveals. */
  .section-head > *:nth-child(2) { transition-delay:  90ms; }
  .section-head > *:nth-child(3) { transition-delay: 180ms; }

  .shift-body > p:nth-child(2)   { transition-delay:  80ms; }
  .shift-body > p:nth-child(3)   { transition-delay: 160ms; }

  .why-body > p:nth-child(2)     { transition-delay:  80ms; }
  .why-body > p:nth-child(3)     { transition-delay: 160ms; }
  .why-body > p:nth-child(4)     { transition-delay: 240ms; }

  .problems-grid > .problem:nth-child(2) { transition-delay:  90ms; }
  .problems-grid > .problem:nth-child(3) { transition-delay: 180ms; }
  .problems-grid > .problem:nth-child(4) { transition-delay: 270ms; }

  .layers > .layer:nth-child(2)  { transition-delay: 110ms; }
  .layers > .layer:nth-child(3)  { transition-delay: 220ms; }

  .paths-grid > .path:nth-child(2) { transition-delay: 110ms; }
  .paths-grid > .path:nth-child(3) { transition-delay: 220ms; }

  .running-pattern-head > *:nth-child(2) { transition-delay:  80ms; }
  .running-pattern-head > *:nth-child(3) { transition-delay: 160ms; }

  .products > .product:nth-child(2) { transition-delay:  90ms; }
  .products > .product:nth-child(3) { transition-delay: 180ms; }

  .paths-five > .path-five:nth-child(2) { transition-delay:  80ms; }
  .paths-five > .path-five:nth-child(3) { transition-delay: 160ms; }
  .paths-five > .path-five:nth-child(4) { transition-delay: 240ms; }
  .paths-five > .path-five:nth-child(5) { transition-delay: 320ms; }
}

/* ── Hero page-load entrance ───────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > *          { animation: hero-enter 720ms var(--ease-out) both; }
  .hero-inner > *:nth-child(1) { animation-delay: 120ms; }
  .hero-inner > *:nth-child(2) { animation-delay: 240ms; }
  .hero-inner > *:nth-child(3) { animation-delay: 360ms; }
  .hero-inner > *:nth-child(4) { animation-delay: 480ms; }
}
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ── Micro-interactions ────────────────────────────────────── */

/* Nav link: animated underline */
.nav-links a:not(.btn) { position: relative; padding: 2px 0; }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 360ms var(--ease-out);
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn):focus-visible::after { transform: scaleX(1); }

/* Primary CTA arrow slides on hover */
.btn-primary svg { transition: transform var(--dur-2) var(--ease-out); }
.btn-primary:hover svg,
.btn-primary:focus-visible svg { transform: translateX(2px); }

/* Nav logo mark rotates gently */
.nav-logo-mark { transition: transform 520ms var(--ease-out); }
.nav-logo:hover .nav-logo-mark,
.nav-logo:focus-visible .nav-logo-mark { transform: rotate(45deg); }

/* Problem card — subtle wash + number shifts to ember on hover */
.problem {
  transition:
    background var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out);
}
.problem:hover { background: var(--paper-2); }
.problem-num {
  transition:
    color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
.problem:hover .problem-num {
  color: var(--accent-700);
  transform: translateX(2px);
}

/* Layer card — number turns ember, chips brighten */
.layer-num { transition: color var(--dur-2) var(--ease-out); }
.layer:hover .layer-num { color: var(--accent-500); }
.layer .chip {
  transition:
    border-color var(--dur-2) var(--ease-out),
    background var(--dur-2) var(--ease-out);
}
.layer:hover .chip {
  border-color: var(--ink-5);
  background: var(--paper-0);
}

/* Product card — name nudges warm on hover, CTA arrow walks */
.product-name { transition: color var(--dur-2) var(--ease-out); }
.product:hover .product-name { color: var(--accent-500); }
.product-cta {
  transition:
    color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
.product:hover .product-cta { transform: translateX(2px); }

/* Final-CTA paths-five — row lift + ember link on hover */
.path-five-link {
  transition:
    color var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}
.path-five:hover .path-five-link { transform: translateX(3px); }

/* Footer links — animated underline */
.footer-col a,
.footer-bottom a,
.final-extra a {
  position: relative;
  display: inline-block;
}
.footer-col a::after,
.footer-bottom a::after,
.final-extra a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 300ms var(--ease-out);
}
.footer-col a:hover::after,
.footer-bottom a:hover::after,
.final-extra a:hover::after { transform: scaleX(1); }
/* The final-extra already has `border-bottom`; remove that so the animated
   underline replaces it cleanly. */
.final-extra a { border-bottom: 0; padding-bottom: 2px; }

/* Status dots — subtle breathing pulses (infinite) */
@media (prefers-reduced-motion: no-preference) {
  .status.live .s-dot    { animation: status-live-pulse    2.8s ease-in-out infinite; }
  .status.running .s-dot { animation: status-running-pulse 2.2s ease-in-out infinite; }
  .path-tag .dot         { animation: tag-dot-pulse        3.6s ease-in-out infinite; }
  .shift-legend-dot      { animation: legend-pulse         3.8s ease-in-out infinite; }
}
@keyframes status-live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(63, 125, 91, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(63, 125, 91, 0.02); }
}
@keyframes status-running-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 78, 0, 0.00); }
  50%      { box-shadow: 0 0 0 5px rgba(245, 78, 0, 0.16); }
}
@keyframes tag-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 78, 0, 0.00); }
  50%      { box-shadow: 0 0 0 4px rgba(245, 78, 0, 0.10); }
}
@keyframes legend-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245, 78, 0, 0.14); }
  50%      { box-shadow: 0 0 0 7px rgba(245, 78, 0, 0.02); }
}
