/* ===================================================================
   Woven — SaaS landing page
   Light, ink-on-paper system drawn from the Woven app UI
   (#f6f7fa surfaces, #323131 ink, hairline borders, #4169E1 accent)
   with Attio-style restraint. Geist everywhere.
   =================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fa;
  --bg-deep: #eceef4;
  --ink: #1c1d20;
  --ink-2: #323131;
  --text-dim: #5f6470;
  --text-faint: #9097a3;
  --line: rgba(50, 49, 49, 0.12);
  --line-soft: rgba(50, 49, 49, 0.07);
  --blue: #4169e1;
  --teal: #0e9f8f;
  --coral: #e0524d;
  --amber: #d97706;
  --purple: #7c6fd0;
  --grad: linear-gradient(92deg, #0e9f8f 0%, #4169e1 100%);
  --shadow-card: 0 1px 2px rgba(28, 29, 32, 0.04), 0 8px 24px -12px rgba(28, 29, 32, 0.08);
  --shadow-pop: 0 1px 2px rgba(28, 29, 32, 0.06), 0 16px 40px -16px rgba(28, 29, 32, 0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--mono); font-size: 0.78em; letter-spacing: 0.04em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

::selection { background: rgba(65, 105, 225, 0.16); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in-view { opacity: 1; transform: none; }

/* screenshot tooling (?capture) — no smooth scroll, all reveals visible */
.capture { scroll-behavior: auto; }
.capture .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.capture .hero { min-height: 760px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===================================================================
   NAV
   =================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 0 rgba(50, 49, 49, 0.03);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img {
  height: 28px; width: auto;
  mix-blend-mode: multiply;
  transition: opacity 0.3s;
}
.logo:hover .logo-img { opacity: 0.72; }

.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 480;
  padding: 7px 12px; border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-deep); }

/* ===================================================================
   BUTTONS — Attio-style: dark ink primary, bordered secondary
   =================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 540; font-size: 15px;
  padding: 12px 22px; border-radius: 10px; border: none; cursor: pointer;
  text-decoration: none; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(28, 29, 32, 0.2), 0 6px 16px -6px rgba(28, 29, 32, 0.35);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.16) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover { background: #000; box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 2px 4px rgba(28,29,32,0.2), 0 10px 24px -8px rgba(28,29,32,0.4); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-arrow { transition: transform 0.35s var(--ease-out); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost {
  background: #fff; color: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(28, 29, 32, 0.04);
}
.btn-ghost:hover { border-color: rgba(50, 49, 49, 0.28); transform: translateY(-1px); box-shadow: var(--shadow-card); }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 130px 24px 90px;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(65, 105, 225, 0.07), transparent),
    linear-gradient(180deg, #dde2ee 0%, #ccd5eb 100%);
}
/* hero dot grid is drawn by the canvas (shifting sands) — no ::before needed */
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow { display: none; }
.hero-content { position: relative; z-index: 2; max-width: 880px; }

.hero-title {
  font-size: clamp(44px, 7.2vw, 82px);
  font-weight: 640; letter-spacing: -0.04em; line-height: 1.04;
  color: var(--ink); margin-bottom: 24px;
}
.grad-text {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: grad-pan 7s ease-in-out infinite;
}
@keyframes grad-pan {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub {
  font-size: clamp(17px, 2vw, 19.5px); color: var(--text-dim);
  max-width: 620px; margin: 0 auto 36px; font-weight: 410;
}
.hero-sub strong { color: var(--ink); font-weight: 560; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid var(--line); border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
}
.scroll-hint span {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 7px;
  margin-left: -1.5px; border-radius: 3px; background: var(--text-faint);
  animation: scroll-nudge 2s ease-in-out infinite;
}
@keyframes scroll-nudge {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0.15; }
}

/* ===================================================================
   TICKER
   =================================================================== */
.ticker {
  border-block: 1px solid var(--line-soft);
  background: var(--bg);
  overflow: hidden; padding: 13px 0; position: relative;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.ticker-track {
  display: flex; gap: 56px; width: max-content;
  animation: ticker-scroll 42s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.tick { font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; white-space: nowrap; color: var(--text-dim); }
.tick.hot { color: var(--coral); }
.tick.pressure { color: var(--amber); }
.tick.whitespace { color: var(--amber); opacity: 0.85; }
.tick.reach { color: var(--teal); }
.tick.sim { color: var(--purple); }
.tick.delta { color: var(--blue); }

/* ===================================================================
   SECTIONS (shared)
   =================================================================== */
.section { padding: 130px 0; position: relative; }

/* white sections carry a fine dot grid that parallax-scrolls (see landing.js) */
#problem, #map, #brief, #rabbitholes {
  background-image: radial-gradient(circle, rgba(50, 49, 49, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 50% var(--dotY, 0px);
}
.kicker {
  font-family: "Scope One", serif; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
  -webkit-text-stroke: 0.15px var(--blue);
  paint-order: stroke fill;
}
.section-title {
  font-size: clamp(32px, 4.6vw, 50px); font-weight: 620;
  letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); margin-bottom: 20px;
}
.section-title .dim { color: var(--text-faint); }
.section-sub {
  font-size: 17px; color: var(--text-dim); max-width: 640px; margin-bottom: 56px; font-weight: 410;
}
.section-sub em { color: var(--ink); font-style: italic; }

/* ===================================================================
   PROBLEM
   =================================================================== */
.problem-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, border-color 0.35s;
  transform-style: preserve-3d; will-change: transform;
}
.p-card:hover { border-color: rgba(50, 49, 49, 0.22); box-shadow: var(--shadow-pop); }
.p-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  color: var(--text-dim); margin-bottom: 18px;
}
.p-icon svg { width: 20px; height: 20px; }
.p-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; }
.p-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
.p-tag {
  font-size: 10px; letter-spacing: 0.1em; color: var(--text-faint);
  padding: 4px 10px; border-radius: 6px; background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}
.p-card-woven {
  background: linear-gradient(165deg, #fdfefe, #f2f6ff);
  border-color: rgba(65, 105, 225, 0.35);
  box-shadow: 0 1px 2px rgba(28,29,32,0.04), 0 16px 40px -18px rgba(65, 105, 225, 0.28);
}
.p-card-woven .p-icon { background: rgba(65, 105, 225, 0.08); border-color: rgba(65, 105, 225, 0.2); color: var(--blue); }
.p-card-woven:hover { border-color: rgba(65, 105, 225, 0.55); }
.p-tag-accent { color: var(--blue); background: rgba(65, 105, 225, 0.07); border-color: rgba(65, 105, 225, 0.2); }

/* ===================================================================
   DOMAINS
   =================================================================== */
.section-domains { background: linear-gradient(180deg, #dde2ee 0%, #ccd5eb 100%); border-block: 1px solid var(--line-soft); }

.domain-tabs {
  position: relative; display: inline-flex; gap: 4px;
  background: var(--bg-deep); border-radius: 12px; padding: 4px;
  border: 1px solid var(--line-soft); margin-bottom: 36px;
}
.domain-tab {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-size: 14px; font-weight: 520;
  color: var(--text-dim); background: none; border: none; cursor: pointer;
  padding: 10px 22px; border-radius: 9px;
  transition: color 0.3s;
}
.domain-tab.active { color: var(--ink); }
.tab-dot { width: 8px; height: 8px; border-radius: 50%; transition: box-shadow 0.3s; }
.td-digital { background: var(--blue); }
.td-canvas { background: var(--teal); }
.td-rhetorical { background: var(--coral); }
.domain-tab.active .td-digital { box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.18); }
.domain-tab.active .td-canvas { box-shadow: 0 0 0 3px rgba(14, 159, 143, 0.18); }
.domain-tab.active .td-rhetorical { box-shadow: 0 0 0 3px rgba(224, 82, 77, 0.18); }
.tab-glider {
  position: absolute; top: 4px; bottom: 4px; z-index: 1;
  background: #fff; border-radius: 9px;
  border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(28, 29, 32, 0.08);
  transition: left 0.45s var(--ease-out), width 0.45s var(--ease-out);
}

.domain-stage { position: relative; min-height: 480px; }
.domain-panel {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
  opacity: 0; transform: translateY(14px) scale(0.995);
  pointer-events: none;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.domain-panel.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }

.domain-q { color: var(--text-faint); font-size: 13px; margin-bottom: 14px; }
.domain-copy h3 { font-size: 27px; font-weight: 620; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 14px; }
.domain-copy > p { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; }
.domain-copy em { color: var(--ink); }
.domain-points { list-style: none; display: grid; gap: 12px; }
.domain-points li { display: flex; align-items: baseline; gap: 12px; font-size: 14px; color: var(--text-dim); }
.li-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; transform: translateY(-1px); }
.li-dot.blue { background: var(--blue); }
.li-dot.teal { background: var(--teal); }
.li-dot.coral { background: var(--coral); }

/* domain viz windows — match the app's panel chrome */
.domain-viz {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.viz-chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
}
.viz-chrome span { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-deep); border: 1px solid var(--line); }
.viz-chrome em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--text-faint); letter-spacing: 0.12em; }
.viz-body { position: relative; height: 330px; background: #fff; }
.viz-legend {
  display: flex; gap: 20px; padding: 11px 18px; border-top: 1px solid var(--line-soft);
  background: var(--bg-soft);
  font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.06em;
}
.viz-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lg-blue { background: var(--blue); }
.lg-red { background: var(--coral); }
.lg-amber { background: var(--amber); }
.lg-purple { background: var(--purple); }

/* digital viz — simplified 2D ⇄ 3D creator map */
.dm-toggle {
  display: flex; gap: 2px; margin-left: auto;
  background: #e5e7eb; border: 1px solid #d1d5db; border-radius: 6px; padding: 2px;
}
.dm-mode {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font); font-size: 12px; font-weight: 600; color: #64748b;
  padding: 4px 14px; border-radius: 5px;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.dm-mode.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(28, 29, 32, 0.12); }

.dm-stage {
  position: relative; height: 360px; overflow: hidden;
  background: #f8fafc;
  background-image: radial-gradient(circle, rgba(50, 49, 49, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 50% var(--dotY, 0px);
  touch-action: pan-y;
}
.dm-stage.dm-grab { cursor: grab; }
.dm-stage.dm-dragging { cursor: grabbing; }

.dm-clouds { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.dm-clouds path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }

.dm-blob {
  position: absolute; width: 220px; height: 160px; pointer-events: none; z-index: 1;
  transform: translate(-50%, -50%);
}
.dm-cluster-label {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 0.14em;
  white-space: nowrap; pointer-events: none; z-index: 3;
  background: rgba(248, 250, 252, 0.92); border-radius: 6px; padding: 3px 8px;
}
.dm-name {
  position: absolute; transform: translate(-50%, 0);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em;
  color: var(--ink-2); white-space: nowrap; pointer-events: none;
  background: rgba(248, 250, 252, 0.9); border-radius: 5px; padding: 2px 7px;
  opacity: 0; z-index: 150;
}
.dm-node {
  position: absolute; border-radius: 50%; overflow: hidden;
  border: 2px solid; background: #fff;
  box-shadow: 0 2px 8px rgba(28, 29, 32, 0.18);
  cursor: pointer;
}
.dm-node img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-pill {
  position: absolute; transform: translate(-50%, -100%);
  background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line);
  border-radius: 100px; padding: 3px 10px;
  font-size: 10px; color: var(--ink-2); white-space: nowrap;
  box-shadow: 0 2px 8px rgba(28, 29, 32, 0.12);
  pointer-events: none; z-index: 200;
}

/* canvas viz — 360° message builder (ported from src/framer/Canvasdomain.tsx) */
.fc-stage {
  height: auto; aspect-ratio: 1000 / 850;
  background: #f8fafc;
  background-image: radial-gradient(circle, rgba(50, 49, 49, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 50% var(--dotY, 0px);
  overflow: hidden;
}
.fc-scene {
  position: absolute; width: 1000px; height: 850px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(var(--fc-scale, 0.55));
  transform-origin: center center;
}
.fc-svg { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 1; }
.fc-svg path {
  fill: none; stroke: #cbd5e1; stroke-width: 1;
  visibility: hidden;
  transition: stroke 0.4s ease;
}
.fc-svg path.fc-live { visibility: visible; }
.fc-svg path.fc-done { stroke: #77ffb2; }

.fc-card {
  position: absolute; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 12px; border-top-left-radius: 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  transition: border-color 0.4s ease;
  z-index: 2;
}
.fc-card.fc-on, .fc-card.fc-on .fc-tab { border-color: #77ffb2; }

.fc-tabs { position: absolute; top: -26px; left: -1px; display: flex; z-index: 3; }
.fc-tab {
  display: flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px 8px 0 0;
  height: 26px; box-sizing: border-box;
  margin-left: -8px; padding: 4px 10px 4px 14px;
  font-size: 11px; font-weight: 600; color: #707070;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.02);
  transition: border-color 0.4s ease, color 0.4s ease;
  position: relative; z-index: 4;
  white-space: nowrap;
}
.fc-tab:first-child {
  margin-left: 0; padding: 4px 12px 4px 10px; z-index: 5;
  box-shadow: 3px 0 6px rgba(0, 0, 0, 0.05), 0 -2px 6px rgba(0, 0, 0, 0.02);
}
.fc-tab svg { flex-shrink: 0; }

.fc-body { padding: 14px; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
.fc-body-lg { padding: 16px; }
.fc-body-row { flex-direction: row; gap: 10px; align-items: center; }
.fc-col { flex: 1; display: flex; flex-direction: column; height: 100%; }
.fc-title-row { display: flex; justify-content: space-between; align-items: center; height: 24px; }
.fc-title-row.fc-title-tall { height: 38px; }
.fc-title { font-size: 14px; font-weight: 500; color: #323131; line-height: 1.2; }
.fc-title-lg { font-size: 15px; }
.fc-divider { border-top: 1px solid #e2e8f0; margin: 8px 0; }
.fc-desc { font-size: 11px; color: #707070; margin: 0; line-height: 1.3; }
.fc-desc-lg { font-size: 12px; line-height: 1.4; }
.fc-badge {
  display: flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
  border: 1px solid #77ffb2; background: #ecfdf5; color: #065f46;
  white-space: nowrap;
}
.fc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.fc-chip { font-size: 9px; padding: 2px 4px; border-radius: 4px; white-space: nowrap; }
.fc-chip-slate  { background: #eef2f6; border: 1px solid #cbd5e1; color: #475569; }
.fc-chip-sky    { background: #e0f2fe; border: 1px solid #bae6fd; color: #0369a1; }
.fc-chip-green  { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.fc-chip-purple { background: #f3e8ff; border: 1px solid #e9d5ff; color: #6b21a8; }
.fc-chip-amber  { background: #fef3c7; border: 1px solid #fde68a; color: #b45309; }
.fc-avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  border: 1px solid #e2e8f0; flex-shrink: 0;
}
.fc-avatar img { width: 100%; height: 100%; object-fit: cover; }

.fc-socket {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 1px solid #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #64748b; line-height: 1;
  transition: border-color 0.4s ease;
  z-index: 3;
}
.fc-socket.fc-on { border-color: #77ffb2; }
.fc-socket.fc-pulse { animation: socket-pulse 1.6s infinite; }
@keyframes socket-pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* rhetorical viz — policy matchup (ported from src/framer/Rhetoricaldoman.tsx) */
.viz-rhet {
  background: #f8fafc;
  background-image: radial-gradient(circle, rgba(50, 49, 49, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 50% var(--dotY, 0px);
}
.rh-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 50px; padding: 0 18px;
  border-bottom: 1px solid #d1d5db;
  background: rgba(241, 245, 249, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.rh-group { display: flex; align-items: center; gap: 10px; }
.rh-dd {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e5e7eb; border: 1px solid #d1d5db; border-radius: 6px;
  padding: 6px 12px; font-size: 13px; font-weight: 600; color: #374151;
  cursor: pointer; user-select: none; white-space: nowrap;
}
.rh-dd-opp { color: #881337; border-color: #fca5a5; }
.cv-export { background: var(--ink); border-color: var(--ink); color: #fff; }
.rh-opp-label { font-size: 13px; font-weight: 500; color: #64748b; white-space: nowrap; }

.rh-stage { position: relative; height: 300px; overflow: hidden; }
.rh-divider {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  border-left: 1.5px dotted #999999; opacity: 0.85; z-index: 0;
}
.rh-scene {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(var(--rh-scale, 0.65));
  transform-origin: center center;
  display: flex; align-items: flex-start; justify-content: center; gap: 20px;
  width: 660px; z-index: 1;
}
.rh-col { display: flex; flex-direction: column; align-items: center; gap: 42px; }
.rh-col-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; white-space: nowrap; }
.rh-label-you { color: #15803d; }
.rh-label-opp { color: #881337; }
.rh-bracket { margin-top: 55px; flex-shrink: 0; }
/* slots share the canvas cards' intrinsic size (260×120) and scale formula,
   so cards render at identical dimensions across the two animations */
.rh-slot { position: relative; width: 260px; height: 120px; }
.rh-card { position: absolute; inset: 0; }
.rh-body { padding: 12px 14px; }
.rh-opp-card, .rh-opp-card .fc-tab { border-color: #fca5a5; }

/* tossed-card cycle: incoming/outgoing tracks come from per-card --rh-in/--rh-out */
.rh-policy {
  opacity: 0; pointer-events: none;
  transform: var(--rh-out);
  transition: opacity 0.3s ease, transform 0.4s ease-in;
}
.rh-policy.rh-incoming { transform: var(--rh-in); }
.rh-policy.rh-active {
  opacity: 1; pointer-events: auto;
  transform: translate(0, 0) rotate(0) scale(1);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================================================================
   RABBIT HOLES
   =================================================================== */
.rab-layout { display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.rab-copy .section-sub { margin-bottom: 26px; }

.rab-points { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; }
.rab-points li { display: flex; align-items: baseline; gap: 12px; font-size: 14px; color: var(--text-dim); }
.rab-points strong { color: var(--ink); font-weight: 560; }

.rab-controls-label { display: block; font-size: 10px; color: var(--text-faint); letter-spacing: 0.12em; margin-bottom: 10px; }
.rab-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.rab-chip {
  font-family: var(--font); font-size: 13px; font-weight: 520; letter-spacing: -0.01em;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--text-dim); border: 1px solid var(--line);
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.rab-chip:hover { color: var(--ink); border-color: rgba(50, 49, 49, 0.3); transform: translateY(-1px); }
.rab-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.rab-readout { color: var(--text-dim); font-size: 12.5px; min-height: 40px; transition: color 0.3s; }

.rab-frame {
  position: relative; aspect-ratio: 10 / 9; border-radius: 16px; overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
}
.rab-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 11.111% 11.111%;
}
.rab-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rab-axis { position: absolute; bottom: 12px; right: 16px; font-size: 10px; color: var(--text-faint); letter-spacing: 0.1em; }

/* the faint always-on web vs. the lit route being traced */
.rab-edge { fill: none; stroke: rgba(50, 49, 49, 0.09); stroke-width: 1.2; }
.rab-route {
  fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round;
  filter: drop-shadow(0 1px 6px rgba(65, 105, 225, 0.35));
}
.rab-route-final { stroke: var(--coral); filter: drop-shadow(0 1px 6px rgba(224, 82, 77, 0.35)); }
.rab-pulse { fill: var(--blue); opacity: 0; transition: opacity 0.2s; }

.rab-node { position: absolute; z-index: 5; pointer-events: none; }
.rab-dot {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff; border: 2px solid var(--text-faint);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.rab-start .rab-dot { border-color: var(--amber); }
.rab-attractor .rab-dot { border-color: var(--coral); }
.rab-label {
  position: absolute; top: 9px; transform: translateX(-50%);
  white-space: nowrap; font-size: 9.5px; color: var(--text-faint);
  background: rgba(255, 255, 255, 0.85); padding: 2px 7px; border-radius: 5px;
  border: 1px solid var(--line-soft); backdrop-filter: blur(4px);
  transition: color 0.3s, border-color 0.3s;
}
.rab-attractor .rab-label { top: auto; bottom: 12px; }
.rab-on .rab-dot { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.14); }
.rab-start.rab-on .rab-dot { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.16); }
.rab-on .rab-label { color: var(--ink); border-color: var(--line); }
.rab-hit .rab-dot {
  background: var(--coral); border-color: var(--coral);
  animation: rab-throb 1.6s ease-in-out infinite;
}
.rab-hit .rab-label { color: var(--coral); border-color: rgba(224, 82, 77, 0.35); }
@keyframes rab-throb {
  0%, 100% { box-shadow: 0 0 0 4px rgba(224, 82, 77, 0.18); }
  50% { box-shadow: 0 0 0 10px rgba(224, 82, 77, 0.06); }
}

/* per-hop flow strength, pinned to the curve's midpoint */
.rab-weight {
  position: absolute; transform: translate(-50%, -130%); z-index: 6; pointer-events: none;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em; color: var(--blue);
  background: rgba(255, 255, 255, 0.9); padding: 1px 6px; border-radius: 5px;
  border: 1px solid rgba(65, 105, 225, 0.25);
  animation: rab-fade-in 0.4s var(--ease-out) both;
}
@keyframes rab-fade-in {
  from { opacity: 0; transform: translate(-50%, -90%); }
  to { opacity: 1; transform: translate(-50%, -130%); }
}

/* intercept window — dashed ring + pill on the hop-one gateway node */
.rab-intercept { position: absolute; width: 0; height: 0; z-index: 4; opacity: 0; transition: opacity 0.45s; pointer-events: none; }
.rab-intercept.rab-show { opacity: 1; }
.rab-int-ring {
  position: absolute; width: 34px; height: 34px; left: -17px; top: -17px;
  border: 1.5px dashed var(--teal); border-radius: 50%;
  animation: rab-spin 14s linear infinite;
}
@keyframes rab-spin { to { transform: rotate(360deg); } }
.rab-int-pill {
  position: absolute; bottom: 22px; transform: translateX(-50%);
  white-space: nowrap; font-size: 9px; letter-spacing: 0.08em; color: var(--teal);
  background: rgba(255, 255, 255, 0.92); padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(14, 159, 143, 0.3); box-shadow: 0 2px 8px rgba(28, 29, 32, 0.08);
}

/* ===================================================================
   NUMBERS
   =================================================================== */
.section-numbers { background: linear-gradient(180deg, #dde2ee 0%, #ccd5eb 100%); border-block: 1px solid var(--line-soft); text-align: center; }
.section-numbers .section-sub { margin-inline: auto; }
.numbers-grid {
  display: flex; align-items: stretch; justify-content: center; gap: 20px;
  flex-wrap: wrap; margin: 24px 0 40px;
}
.num-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px 40px;
  box-shadow: var(--shadow-card);
  display: grid; gap: 8px; align-content: center; min-width: 230px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.num-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.num-card-hero {
  background: linear-gradient(160deg, #ffffff, #f0f5ff);
  border-color: rgba(65, 105, 225, 0.35);
  box-shadow: 0 1px 2px rgba(28,29,32,0.04), 0 20px 48px -20px rgba(65, 105, 225, 0.35);
}
.num { font-family: var(--mono); font-size: clamp(32px, 4vw, 46px); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.num-card-hero .num {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.num-label { font-size: 13px; color: var(--text-dim); max-width: 220px; margin: 0 auto; }
.num-arrow { align-self: center; font-size: 26px; color: var(--text-faint); }
.numbers-foot { color: var(--text-dim); max-width: 620px; margin: 0 auto; font-size: 15px; }
.numbers-foot strong { color: var(--amber); font-weight: 580; }

/* ===================================================================
   DAILY BRIEF
   =================================================================== */
.brief-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.brief-copy .section-sub { margin-bottom: 28px; }
.brief-points { list-style: none; display: grid; gap: 16px; }
.brief-points li { font-size: 14.5px; color: var(--text-dim); padding-left: 18px; position: relative; }
.brief-points li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.brief-points strong { color: var(--ink); font-weight: 580; }

.brief-window {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.brief-lines { padding: 22px; display: grid; gap: 13px; min-height: 330px; align-content: start; }
.brief-line {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.brief-line.shown { opacity: 1; transform: none; }
.brief-tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em;
  padding: 3px 8px; border-radius: 5px; flex-shrink: 0; transform: translateY(-1px);
  border: 1px solid transparent;
}
.bt-blue { background: rgba(65, 105, 225, 0.08); color: var(--blue); border-color: rgba(65, 105, 225, 0.18); }
.bt-teal { background: rgba(14, 159, 143, 0.08); color: var(--teal); border-color: rgba(14, 159, 143, 0.2); }
.bt-coral { background: rgba(224, 82, 77, 0.08); color: var(--coral); border-color: rgba(224, 82, 77, 0.2); }
.bt-amber { background: rgba(217, 119, 6, 0.08); color: var(--amber); border-color: rgba(217, 119, 6, 0.22); }
.brief-text .caret {
  display: inline-block; width: 7px; height: 14px; transform: translateY(2px);
  background: var(--blue); margin-left: 2px;
  animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ===================================================================
   STACK
   =================================================================== */
.section-stack { background: linear-gradient(180deg, #dde2ee 0%, #ccd5eb 100%); border-block: 1px solid var(--line-soft); }
.stack-diagram { max-width: 720px; margin: 16px auto 72px; display: grid; gap: 0; text-align: center; }
.stack-layer { border-radius: 16px; position: relative; }
.stack-woven {
  background: linear-gradient(150deg, #ffffff, #f0f5ff);
  border: 1px solid rgba(65, 105, 225, 0.35);
  box-shadow: 0 1px 2px rgba(28,29,32,0.05), 0 20px 48px -20px rgba(65, 105, 225, 0.3);
  padding: 34px 28px 30px; display: grid; gap: 4px; z-index: 2;
}
.stack-name { font-size: 26px; font-weight: 640; letter-spacing: -0.02em; color: var(--ink); }
.stack-logo { height: 34px; width: auto; mix-blend-mode: multiply; display: block; margin: 0 auto; }
.stack-role { color: var(--blue); font-size: 11px; letter-spacing: 0.14em; }
.stack-threads { display: flex; justify-content: center; gap: 90px; height: 44px; }
.stack-threads i {
  width: 2px; background: linear-gradient(rgba(65, 105, 225, 0.5), rgba(65, 105, 225, 0.04));
  border-radius: 2px; position: relative; overflow: hidden;
}
.stack-threads i::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px; border-radius: 2px;
  background: var(--blue); animation: thread-pulse 1.8s ease-in infinite;
}
.stack-threads i:nth-child(2)::after { animation-delay: 0.45s; }
.stack-threads i:nth-child(3)::after { animation-delay: 0.9s; }
.stack-threads i:nth-child(4)::after { animation-delay: 1.35s; }
@keyframes thread-pulse { from { top: 100%; opacity: 1; } to { top: -20%; opacity: 0.2; } }
.stack-ops {
  margin-top: -22px; padding: 44px 28px 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.stack-chip {
  display: flex; align-items: center; gap: 9px;
  font-size: 11.5px; color: var(--text-dim); letter-spacing: 0.04em;
  padding: 9px 16px 9px 12px; border-radius: 10px; background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  animation: chip-bob 3.6s ease-in-out infinite;
  animation-delay: var(--bob-delay, 0s);
  transition: transform 0.3s var(--ease-out), color 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}
.stack-chip:hover {
  transform: translateY(-5px) !important;
  animation-play-state: paused;
  color: var(--ink); border-color: var(--line);
  box-shadow: 0 6px 20px -6px rgba(28, 29, 32, 0.14);
}
@keyframes chip-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
.chip-logo {
  width: 24px; height: 24px; object-fit: contain; flex-shrink: 0;
  border-radius: 4px;
}
/* NGP VAN is a stacked wordmark — give it a touch more room */
.chip-logo[alt="NGP VAN"] { width: 28px; height: 28px; }
.stack-caption { margin-top: 14px; color: var(--text-faint); font-size: 10.5px; letter-spacing: 0.14em; }

.stack-whys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.35s;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); border-color: rgba(50, 49, 49, 0.22); }
.why-card h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--text-dim); }

/* ===================================================================
   CTA
   =================================================================== */
.section-cta {
  text-align: center; overflow: hidden; padding: 160px 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(65, 105, 225, 0.08), transparent) 0 0 / auto no-repeat,
    var(--bg);
}
.cta-inner { position: relative; z-index: 2; }
.cta-title { font-size: clamp(36px, 5.4vw, 60px); font-weight: 630; letter-spacing: -0.035em; line-height: 1.08; color: var(--ink); margin-bottom: 20px; }
.section-cta .section-sub { margin: 0 auto 36px; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.cta-form input {
  font-family: var(--font); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 18px; width: min(320px, 100%);
  box-shadow: 0 1px 2px rgba(28, 29, 32, 0.04); outline: none;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.cta-form input::placeholder { color: var(--text-faint); }
.cta-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.1); }
.cta-fine { color: var(--text-faint); font-size: 11.5px; }
.cta-fine.success { color: var(--teal); }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { border-top: 1px solid var(--line-soft); padding: 48px 0; background: linear-gradient(180deg, #dde2ee 0%, #ccd5eb 100%); }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-brand .logo-img { height: 32px; }
.footer-brand p { color: var(--text-faint); font-size: 11px; margin-top: 4px; }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 13.5px; transition: color 0.25s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { width: 100%; color: var(--text-faint); font-size: 11px; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-panel { grid-template-columns: 1fr; gap: 32px; }
  .domain-stage { min-height: 0; }
  .domain-panel:not(.active) { display: none; }
  /* stack the viz directly under the domain tabs; copy reads below it */
  .domain-panel .domain-viz { order: -1; }
  .rab-layout, .brief-layout { grid-template-columns: 1fr; gap: 44px; }
  .stack-whys { grid-template-columns: 1fr; }
  .section { padding: 90px 0; }
}
@media (max-width: 560px) {
  .problem-grid { grid-template-columns: 1fr; }
  .domain-tab { padding: 10px 14px; font-size: 13px; }
  /* viz window headers: wrap pills into rows instead of clipping */
  .rh-header { height: auto; min-height: 50px; flex-wrap: wrap; padding: 8px 12px; gap: 8px; row-gap: 6px; }
  .rh-dd { padding: 5px 10px; font-size: 12px; }
  .rh-opp-label { font-size: 12px; }
  /* rhetorical stage hugs the scaled-up scene on phones */
  .rh-stage { height: 215px; }
  .numbers-grid { flex-direction: column; align-items: stretch; }
  .num-arrow { transform: rotate(90deg); }
}
