:root {
  --bg: #040a1c;
  --bg-2: #071230;
  --panel: rgba(14, 32, 74, 0.55);
  --panel-solid: #0b1a40;
  --line: rgba(125, 175, 255, 0.16);
  --line-2: rgba(125, 175, 255, 0.3);
  --ink: #e6f0ff;
  --ink-2: #a9bde0;
  --ink-3: #6f85ad;
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --sky: #7dd3fc;
  --cyan: #22d3ee;
  --indigo: #a5b4fc;
  --deep: #1d4ed8;
  --warn: #fbbf24;
  --bad: #f87171;
  --on-accent: #031027;
  --glass: rgba(6, 14, 38, 0.66);
  --panel-hi: rgba(16, 36, 84, 0.6);
  --panel-lo: rgba(6, 14, 38, 0.7);
  --tone-start: #7dd3fc;
  --tone-mid: #60a5fa;
  --tone-end: #a5b4fc;
  --warn-ink: #fde68a;
  --warn-soft: rgba(251, 191, 36, 0.15);
  --bad-ink: #fecaca;
  --display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wordmark: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  --radius-control: 12px;
  --radius-demo: 22px;
  --radius-tile: 14px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --radius-pill: 999px;
  --glow-button: 0 10px 30px -10px rgba(59, 130, 246, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --glow-button-hover: 0 16px 40px -10px rgba(59, 130, 246, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --glow-field: 0 20px 60px -20px rgba(29, 78, 216, 0.6);
  --drop-card: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  --emphasis: linear-gradient(100deg, var(--tone-start), var(--tone-mid) 45%, var(--tone-end));
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  /* film grain + subtle vignette */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
h1 em, h2 em {
  font-family: var(--display);
  font-style: normal;
  font-weight: inherit;
  background: var(--emphasis);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.kicker {
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease) calc(var(--d, 0) * 110ms),
    transform 0.9s var(--ease) calc(var(--d, 0) * 110ms),
    filter 0.9s var(--ease) calc(var(--d, 0) * 110ms);
}
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; }
.progress span {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--indigo));
  box-shadow: 0 0 12px var(--blue);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1160px, 100% - 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: var(--glass);
  border-color: var(--line);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 17px/1 var(--wordmark);
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: nowrap;
}
/* The mark: three strands tied in one knot. Colors are the logo's strand tokens. */
.brand svg { width: 28px; height: auto; flex: none; overflow: visible; }
.brand svg path { fill: none; stroke-width: 4; stroke-linecap: round; }
.brand .s-cyan { stroke: #22d3ee; }
.brand .s-blue { stroke: #60a5fa; }
.brand .s-indigo { stroke: #a5b4fc; }
.brand .s-knot { fill: #e6f0ff; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.92rem;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  --x: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  padding: 0 22px;
  height: 52px;
  border-radius: var(--radius-control);
  font: 600 0.98rem var(--sans);
  color: var(--on-accent);
  text-decoration: none;
  background:
    radial-gradient(120px circle at var(--x) 50%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(110deg, var(--sky), var(--blue-2) 45%, var(--blue));
  box-shadow: var(--glow-button);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow-button-hover); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 0.88rem; border-radius: var(--radius-sm); }
.btn:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
#threads { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 90%;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(29, 78, 216, 0.45), transparent 70%),
    radial-gradient(35% 45% at 75% 35%, rgba(34, 211, 238, 0.18), transparent 70%),
    radial-gradient(60% 60% at 50% 100%, rgba(59, 130, 246, 0.2), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  to { transform: translate3d(3%, 4%, 0) scale(1.08); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, var(--bg));
  z-index: -1;
  pointer-events: none;
}
.hero-inner {
  width: min(980px, 100% - 32px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: var(--glass);
  backdrop-filter: blur(8px);
  font: 500 0.78rem var(--mono);
  letter-spacing: 0.06em;
  color: var(--ink-2);
  margin: 0 0 28px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
  animation: pulse 2s infinite;
  flex: none;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span {
  transform: translateY(110%) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1.2s var(--ease);
}
.hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { transition-delay: 0.24s; }
.js.loaded .hero-title .line > span { transform: none; }
.hero-title .eyebrow { line-height: 1.4; letter-spacing: 0.06em; font-weight: 500; }
.hero-sub {
  max-width: 620px;
  margin: 0 0 36px;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  --d: 3;
}
.hero .waitlist { --d: 4; }
.hero-note { --d: 5; margin: 14px 0 0; font-size: 0.85rem; color: var(--ink-3); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  width: 26px; height: 42px;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 8px;
  translate: -50% 0;
  border-radius: 2px;
  background: var(--cyan);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Waitlist form ---------- */
.waitlist {
  position: relative;
  display: flex;
  gap: 8px;
  width: min(520px, 100%);
  padding: 6px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glow-field);
  flex-wrap: wrap;
}
.waitlist::before {
  /* animated border thread */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--cyan) 80%, var(--blue-2) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 5s linear infinite;
  pointer-events: none;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.waitlist input {
  flex: 1 1 200px;
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  font: 400 1rem var(--sans);
}
.waitlist input::placeholder { color: var(--ink-3); }
.waitlist input:focus { outline: none; }
.waitlist:focus-within { border-color: var(--cyan); }
.form-msg {
  position: absolute;
  top: calc(100% + 12px);
  left: 0; right: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-2);
  text-align: center;
  min-height: 1.4em;
}
.form-msg.err { color: var(--bad); }
.waitlist.shake { animation: shake 0.45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.waitlist.loading .btn span { opacity: 0.6; }
.waitlist.done { justify-content: center; }
.waitlist.done input,
.waitlist.done .btn { display: none; }
.success {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 18px;
  font-weight: 500;
  animation: pop 0.7s var(--ease);
}
.success svg { width: 28px; height: 28px; fill: none; stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.success svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.8s 0.15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(29, 78, 216, 0.08), rgba(34, 211, 238, 0.06));
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee span {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee i {
  width: 7px; height: 7px;
  rotate: 45deg;
  background: var(--blue);
  flex: none;
}
@keyframes marquee { to { transform: translateX(calc(-50% - 16px)); } }

/* ---------- Problem ---------- */
.problem { text-align: center; }
.contradiction {
  display: grid;
  grid-template-columns: 1fr 160px 1fr;
  align-items: center;
  gap: 20px;
  margin: 56px auto 48px;
  max-width: 1000px;
}
.page-card {
  text-align: left;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel-hi), var(--panel-lo));
  border: 1px solid var(--line);
  box-shadow: var(--drop-card);
}
.page-card p { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.4; letter-spacing: -0.01em; }
.chap {
  display: inline-block;
  font: 500 0.72rem var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
mark { background: none; color: inherit; position: relative; white-space: nowrap; }
mark::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease) 0.6s;
}
.in mark::after { transform: scaleX(1); }
.m-ok::after { background: var(--cyan); }
.m-bad { color: #fecaca; }
.m-bad::after {
  height: 6px;
  bottom: -6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 3 Q3 0 6 3 T12 3' fill='none' stroke='%23f87171' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x;
  background-size: 12px 6px;
}
.knot { position: relative; height: 80px; display: grid; place-items: center; }
.knot svg { width: 100%; height: 60px; overflow: visible; }
.knot-path {
  fill: none;
  stroke: var(--bad);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  animation: dash 1.2s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -24; } }
.knot-badge {
  position: absolute;
  font: 600 0.7rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: #3a0d16;
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.5);
  animation: throb 2s ease-in-out infinite;
}
@keyframes throb { 50% { box-shadow: 0 0 0 8px rgba(248, 113, 113, 0.12); } }
.problem-copy { max-width: 640px; margin: 0 auto; color: var(--ink-2); font-size: 1.12rem; }

/* ---------- Engine demo ---------- */
.engine { text-align: center; }
.demo {
  margin-top: 48px;
  text-align: left;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(12, 28, 68, 0.85), rgba(6, 14, 38, 0.92));
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(29, 78, 216, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  transform-style: preserve-3d;
}
.js .demo.reveal { transform: perspective(1400px) rotateX(14deg) translateY(60px) scale(0.96); }
.js .demo.reveal.in { transform: perspective(1400px) rotateX(0) translateY(0) scale(1); transition-duration: 1.4s; }
.demo-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font: 400 0.8rem var(--mono);
  color: var(--ink-3);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(125, 175, 255, 0.2); }
.demo-file { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-status { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); white-space: nowrap; }
.demo-status.warn { color: var(--warn); }
.demo-status.warn .pulse { background: var(--warn); }
.demo-body { display: grid; grid-template-columns: 1.5fr 1fr; min-height: 380px; }
.manuscript {
  padding: 36px 40px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.6;
  color: #d5e3fb;
}
.manuscript p { margin: 0 0 1em; }
.manuscript .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  transition: opacity 0.5s, transform 0.5s var(--ease), filter 0.5s;
}
.manuscript .w.on { opacity: 1; transform: none; filter: none; }
.ent, .flag { border-radius: 6px; transition: background 0.6s, box-shadow 0.6s, color 0.6s; }
.scan .ent-char { background: rgba(96, 165, 250, 0.18); box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.45); }
.scan .ent-place { background: rgba(34, 211, 238, 0.15); box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4); }
.scan .ent-faction { background: rgba(165, 180, 252, 0.16); box-shadow: 0 0 0 1px rgba(165, 180, 252, 0.45); }
.flagged .flag {
  background: rgba(251, 191, 36, 0.12);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.55);
  color: #fde68a;
  animation: flagpulse 1.6s ease-in-out infinite;
}
@keyframes flagpulse { 50% { box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.55), 0 0 22px rgba(251, 191, 36, 0.3); } }
.lore {
  padding: 24px;
  border-left: 1px solid var(--line);
  background: rgba(4, 10, 28, 0.4);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lore-card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .lore-card { opacity: 0; transform: translateX(24px); }
.js .lore-card.on { opacity: 1; transform: none; }
.lore-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font: 500 0.72rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lore-label svg { width: 16px; height: 16px; fill: none; stroke: var(--warn); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.js .chip { opacity: 0; transform: scale(0.8); }
.js .lore-card.on .chip { opacity: 1; transform: none; }
.lore-card.on .chip:nth-child(2) { transition-delay: 0.08s; }
.lore-card.on .chip:nth-child(3) { transition-delay: 0.16s; }
.lore-card.on .chip:nth-child(4) { transition-delay: 0.24s; }
.lore-card.on .chip:nth-child(5) { transition-delay: 0.32s; }
.chip-char { color: #bfdbfe; border-color: rgba(96, 165, 250, 0.5); background: rgba(96, 165, 250, 0.1); }
.chip-place { color: #a5f3fc; border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.08); }
.chip-faction { color: #c7d2fe; border-color: rgba(165, 180, 252, 0.5); background: rgba(165, 180, 252, 0.1); }
.alert { border-color: rgba(251, 191, 36, 0.4); background: linear-gradient(160deg, rgba(251, 191, 36, 0.08), rgba(14, 32, 74, 0.55)); }
.alert .lore-label { color: var(--warn); }
.alert-text { margin: 0 0 12px; font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
.alert-text strong { color: var(--ink); font-weight: 600; }
.alert-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.alert-actions span {
  font-size: 0.76rem;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.alert-actions span:first-child { background: rgba(251, 191, 36, 0.15); border-color: rgba(251, 191, 36, 0.45); color: #fde68a; }
.mini-tl { position: relative; height: 40px; margin-top: 4px; }
.mini-tl::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 10px;
  height: 2px;
  background: linear-gradient(90deg, var(--deep), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}
.lore-card.on .mini-tl::before { transform: scaleX(1); }
.mini-tl span {
  position: absolute;
  left: calc(var(--p) * 100%);
  top: 0;
  translate: -50% 0;
  padding-top: 20px;
  font: 400 0.7rem var(--mono);
  color: var(--ink-3);
  white-space: nowrap;
}
.mini-tl span::before {
  content: "";
  position: absolute;
  top: 5px; left: 50%;
  width: 11px; height: 11px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue-2);
}
.mini-tl span:first-child::before { border-color: var(--warn); }
.mini-tl .now { color: var(--cyan); }
.mini-tl .now::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ---------- What is ---------- */
.what-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.answer {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.65;
  color: var(--ink);

}
.facts {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(16, 36, 84, 0.6), rgba(6, 14, 38, 0.7));
  overflow: hidden;
}
.facts div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 500 0.72rem/1.9 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); font-size: 0.97rem; }
.facts a { color: var(--cyan); }

/* ---------- Features ---------- */
.features { text-align: center; }
.grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.feature {
  --mx: 50%;
  --my: 0%;
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(16, 36, 84, 0.6), rgba(6, 14, 38, 0.7));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, opacity 0.9s var(--ease), filter 0.9s var(--ease);
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(59, 130, 246, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.feature:hover { border-color: var(--line-2); }
.feature:hover::before { opacity: 1; }
.feature.in:hover { transform: translateY(-6px); }
.ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.35), rgba(34, 211, 238, 0.12));
  border: 1px solid var(--line-2);
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* ---------- Story web ---------- */
.web-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.web-copy p { color: var(--ink-2); font-size: 1.08rem; }
.legend { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.88rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.lg-char { background: var(--blue-2); box-shadow: 0 0 10px var(--blue-2); }
.lg-place { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.lg-faction { background: var(--indigo); box-shadow: 0 0 10px var(--indigo); }
.web-stage {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(29, 78, 216, 0.25), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(125, 175, 255, 0.05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(125, 175, 255, 0.05) 39px 40px);
  overflow: hidden;
}
#storyweb { display: block; width: 100%; height: auto; }
#storyweb .edge {
  fill: none;
  stroke: rgba(125, 175, 255, 0.28);
  stroke-width: 1.3;
  stroke-dasharray: 4 6;
  animation: dash 3s linear infinite;
  transition: stroke 0.3s, stroke-width 0.3s, opacity 0.3s;
}
#storyweb .node { cursor: pointer; }
#storyweb .node circle.core { transition: r 0.3s var(--ease); }
#storyweb .node text {
  font: 500 13px var(--sans);
  fill: var(--ink-2);
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 4px;
  transition: fill 0.3s;
  pointer-events: none;
}
#storyweb .node .halo { opacity: 0.25; animation: breathe 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 50% { opacity: 0.08; transform: scale(1.5); } }
#storyweb.focus .edge { opacity: 0.12; }
#storyweb.focus .edge.hot { opacity: 1; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: none; }
#storyweb.focus .node { opacity: 0.35; transition: opacity 0.3s; }
#storyweb.focus .node.hot { opacity: 1; }
#storyweb.focus .node.hot text { fill: var(--ink); }
#storyweb .spark { fill: #fff; filter: drop-shadow(0 0 4px var(--cyan)); }

/* ---------- Braid timeline ---------- */
.braid { text-align: center; padding-bottom: clamp(100px, 14vw, 170px); }
.braid-stage { position: relative; width: min(1200px, 100% - 32px); margin: 40px auto 0; height: 300px; }
.braid-stage svg { width: 100%; height: 260px; display: block; overflow: visible; }
.strand {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--draw, 1));
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.6));
}
.beats { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.beats li {
  position: absolute;
  left: var(--x);
  top: 50%;
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.82rem;
  color: var(--ink-2);
  white-space: nowrap;
  transition: opacity 0.6s, transform 0.6s var(--ease);
}
.js .beats li { opacity: 0; transform: translateY(12px); }
.beats li:nth-child(even) { top: auto; bottom: -6px; translate: -50% 0; }
.beats li:nth-child(odd) { top: -14px; translate: -50% 0; }
.js .beats li.on { opacity: 1; transform: none; }
.beats b { font: 500 0.7rem var(--mono); letter-spacing: 0.12em; color: var(--cyan); text-transform: uppercase; }

/* ---------- FAQ ---------- */
.faq { text-align: center; }
.faq details {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:first-of-type { margin-top: 36px; border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-size: 1.12rem;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: inherit; letter-spacing: normal; }
.faq summary::after {
  content: "";
  width: 14px; height: 14px;
  flex: none;
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 100% 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 2px 100% no-repeat;
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: 0 4px 22px; color: var(--ink-2); animation: fadeDown 0.5s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- CTA ---------- */
.cta { text-align: center; overflow: hidden; padding-block: clamp(120px, 16vw, 200px); }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta h2 { margin-bottom: 40px; }
.cta-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.cta-rings span {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.25);
  animation: ring 6s linear infinite;
}
.cta-rings span:nth-child(2) { animation-delay: -2s; }
.cta-rings span:nth-child(3) { animation-delay: -4s; }
@keyframes ring {
  from { transform: scale(0.4); opacity: 0; }
  20% { opacity: 1; }
  to { transform: scale(3.2); opacity: 0; }
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(29, 78, 216, 0.3), transparent 70%);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 0.88rem; }
.foot-links a:hover { color: var(--ink); }
.foot p { margin: 0; font-size: 0.85rem; color: var(--ink-3); }

/* ---------- Views (rename once) ---------- */
.views { text-align: center; }
.views-sub, .braid-sub { max-width: 660px; margin: 0 auto; color: var(--ink-2); font-size: 1.08rem; }
.rename {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 40px auto 28px;
  padding: 8px 8px 8px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(8, 20, 52, 0.7);
  font: 400 0.95rem var(--mono);
}
.rename-label { color: var(--ink-3); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.rename-field {
  min-width: 200px;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(4, 10, 28, 0.8);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--ink);
}
.caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.rename-key {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.rename-key.hit { background: var(--cyan); color: var(--on-accent); transform: scale(0.92); }
.panes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  text-align: left;
}
.pane {
  position: relative;
  min-height: 190px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(16, 36, 84, 0.6), rgba(6, 14, 38, 0.7));
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.pane::after {
  /* propagation ripple */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--cyan), 0 0 30px rgba(34, 211, 238, 0.35);
  opacity: 0;
  pointer-events: none;
}
.pane.flash::after { animation: paneflash 1.1s var(--ease); }
@keyframes paneflash { 15% { opacity: 1; } 100% { opacity: 0; } }
.pane-tag { font: 500 0.68rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.pane-title { margin: 4px 0 4px; font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.02em; }
.pane-foot { margin-top: auto; font: 400 0.72rem var(--mono); color: var(--ink-3); }
.sk { display: block; height: 7px; border-radius: 4px; background: rgba(125, 175, 255, 0.14); }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.pane-graph { width: 100%; height: 90px; }
.pane-graph path { stroke: rgba(125, 175, 255, 0.35); stroke-width: 1.4; fill: none; }
.pane-graph circle { fill: var(--blue-2); }
.pane-graph .hub { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.pane-node { margin: 0; text-align: center; font-size: 0.9rem; font-weight: 500; }
.pane-tl { position: relative; height: 96px; margin-top: 6px; }
.pane-tl .bar { position: absolute; height: 22px; border-radius: 6px; background: rgba(96, 165, 250, 0.22); border: 1px solid rgba(96, 165, 250, 0.4); }
.pane-tl .b1 { top: 4px; left: 0; width: 45%; }
.pane-tl .b2 { top: 36px; left: 18%; width: 78%; background: rgba(34, 211, 238, 0.2); border-color: rgba(34, 211, 238, 0.55); display: flex; align-items: center; padding-left: 8px; }
.pane-tl .b2 b { font-size: 0.78rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane-tl .b3 { top: 68px; left: 40%; width: 40%; }
.card-ix {
  margin-top: 6px;
  padding: 14px;
  border-radius: 6px;
  background: #e8eefb;
  color: #0b1a40;
  rotate: -2deg;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column; gap: 6px;
}
.card-ix p { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.card-ix .sk { background: rgba(11, 26, 64, 0.15); }
[data-name] { transition: color 0.4s, text-shadow 0.4s; }
.flash [data-name] { color: var(--sky); text-shadow: 0 0 14px rgba(125, 211, 252, 0.7); }
.card-ix [data-name] { text-shadow: none; }
.flash .card-ix [data-name] { color: var(--deep); text-shadow: none; }
.view-list {
  list-style: none;
  padding: 0;
  margin: 32px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 820px;
}
.view-list li {
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.view-list li:hover { border-color: var(--cyan); color: var(--ink); background: rgba(34, 211, 238, 0.08); }

/* ---------- Split layout (time, maps) ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split.reverse .split-copy { order: 2; }
.split-copy > p { color: var(--ink-2); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 0.97rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 12px; height: 6px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  rotate: -45deg;
}

/* ---------- World time ---------- */
.time-stage { display: grid; gap: 14px; }
.chrono-card, .age-card, .warn-card {
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(16, 36, 84, 0.7), rgba(6, 14, 38, 0.8));
}
.chrono-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chrono-name { font: 500 0.78rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.chrono-tag {
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.45);
}
.chrono-date {
  margin: 14px 0 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  min-height: 1.15em;
}
.chrono-units { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chrono-units li {
  font: 400 0.74rem var(--mono);
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #bfdbfe;
}
.chrono-card .swap { animation: swapIn 0.6s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.chrono-dots { display: flex; gap: 6px; margin-top: 16px; }
.chrono-dots i { width: 18px; height: 3px; border-radius: 2px; background: rgba(125, 175, 255, 0.2); transition: background 0.4s, width 0.4s; }
.chrono-dots i.on { width: 30px; background: var(--cyan); }
.age-card .lore-label strong { color: var(--ink); font-weight: 500; letter-spacing: 0.04em; text-transform: none; font-family: var(--sans); }
.ages { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ages li { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 12px; font-size: 0.92rem; }
.ages b { font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.age-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(125, 175, 255, 0.12); overflow: hidden; }
.age-bar i, .age-bar u {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 3px;
  width: calc(var(--a) * 100%);
  background: linear-gradient(90deg, var(--deep), var(--blue-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease) 0.3s;
}
.age-bar u {
  left: calc(var(--a) * 100%);
  width: calc((var(--b) - var(--a)) * 100%);
  background: repeating-linear-gradient(90deg, var(--warn) 0 4px, transparent 4px 7px);
  transition-delay: 1.5s;
}
.time-stage.in .age-bar i, .time-stage.in .age-bar u, .no-js .age-bar i, .no-js .age-bar u { transform: none; }
.unsure-tag {
  font: 500 0.62rem var(--mono);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warn);
  margin-left: 4px;
}
.warn-card { border-color: rgba(251, 191, 36, 0.4); background: linear-gradient(160deg, rgba(251, 191, 36, 0.08), rgba(14, 32, 74, 0.6)); }
.warn-card .lore-label { color: var(--warn); }
.warn-card p { margin: 0 0 8px; color: var(--ink-2); font-size: 0.95rem; }
.warn-card strong { color: var(--ink); font-weight: 600; }
.warn-note { font: 400 0.74rem var(--mono); color: var(--ink-3); }
.js .time-stage .warn-card { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease) 2.2s, transform 0.7s var(--ease) 2.2s; }
.js .time-stage.in .warn-card { opacity: 1; transform: none; animation: throb 2.4s ease-in-out 3s infinite; }

/* ---------- Maps ---------- */
.map-stage {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -40px rgba(29, 78, 216, 0.6);
}
.map-stage svg { display: block; width: 100%; height: auto; }
.map-stage .land { fill: #12306a; stroke: var(--sky); stroke-width: 1.4; stroke-opacity: 0.6; }
.map-stage .peaks path { fill: none; stroke: var(--indigo); stroke-width: 1.4; stroke-linejoin: round; opacity: 0.6; }
.map-stage .region {
  fill: rgba(165, 180, 252, 0.12);
  stroke: var(--indigo);
  stroke-width: 1.6;
  stroke-dasharray: 6 5;
  animation: dash 3s linear infinite;
}
.map-stage .region-label { font: 500 11px var(--mono); letter-spacing: 0.2em; fill: var(--indigo); text-anchor: middle; }
.map-stage .route {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.7));
}
.map-stage .sea-route { stroke-dasharray: 1; }
.js .map-stage .route { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) 1.2s; }
.js .map-stage .sea-route { transition-delay: 2.6s; }
.js .map-stage.in .route { stroke-dashoffset: 0; }
.map-stage .measure rect { fill: rgba(4, 10, 28, 0.85); stroke: rgba(34, 211, 238, 0.5); }
.map-stage .measure text { font: 500 11.5px var(--mono); fill: var(--sky); text-anchor: middle; }
.js .map-stage .measure { opacity: 0; transition: opacity 0.6s 4.2s; }
.js .map-stage.in .measure { opacity: 1; }
.map-stage .pin-dot { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.map-stage .pin-halo { fill: rgba(34, 211, 238, 0.25); animation: breathe 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.map-stage .pin text { font: 600 12.5px var(--sans); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: #071230; stroke-width: 4px; }
.js .map-stage .pin { opacity: 0; transform: translateY(-24px); transition: opacity 0.4s, transform 0.9s var(--ease); transition-delay: calc(0.4s + var(--i) * 0.25s); }
.js .map-stage.in .pin { opacity: 1; transform: none; }
.map-stage .compass circle { fill: none; stroke: rgba(125, 175, 255, 0.35); }
.map-stage .compass path { fill: var(--blue-2); }
.map-stage .compass text { font: 600 11px var(--mono); fill: var(--ink-3); text-anchor: middle; }
.braid-sub { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .contradiction { grid-template-columns: 1fr; gap: 8px; }
  .knot { height: 70px; }
  .knot svg { width: 60px; height: 100%; transform: rotate(90deg); }
  .demo-body { grid-template-columns: 1fr; }
  .lore { border-left: 0; border-top: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr 1fr; }
  .web-layout, .what-layout, .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-copy { order: 0; }
  .panes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .waitlist { border-radius: var(--radius); }
  .waitlist .btn { flex: 1 1 100%; }
  .manuscript { padding: 26px 22px; }
  .lore { padding: 16px; }
  .braid-stage { height: 240px; }
  .braid-stage svg { height: 200px; }
  .beats li { font-size: 0.7rem; }
  .beats li span, .beats li { max-width: 80px; white-space: normal; text-align: center; }
  .demo-file { display: none; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .panes { grid-template-columns: 1fr; }
  .rename { flex-wrap: wrap; justify-content: center; }
  .rename-field { min-width: 0; flex: 1 1 160px; }
  .ages li { grid-template-columns: 80px 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
}
