/* SpiralThink — site styles. No external requests. */
@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2248, U+2264-2265, U+FEFF, U+FFFD;
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-tint: #eef3fc;
  --border: #dbe1eb;
  --border-strong: #c3ccdb;
  --text: #0c1326;
  --text-muted: #46506a;
  --text-faint: #6a7389;
  --accent: #1d44b0;
  --accent-hover: #15348a;
  --accent-soft: #4f8cff;
  --accent-wash: #e6edfb;
  --ink: #10152c;

  --measured-fg: #0b5a39; --measured-bg: #e2f2e9; --measured-bd: #b5dcc6;
  --decided-fg: #1d44b0;  --decided-bg: #e6edfb;  --decided-bd: #bccbf1;
  --projected-fg: #864600; --projected-bg: #fbefdd; --projected-bd: #ecd0a6;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.625rem);
  --text-hero: clamp(2.125rem, 1.4rem + 3.4vw, 4.125rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);
  --gutter: clamp(1.25rem, 0.8rem + 2.2vw, 2.5rem);
  --maxw: 72rem;
  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; padding: var(--space-1) 0; }
.brand img { height: 28px; width: auto; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; min-width: 44px; padding: 0 var(--space-3);
  background: transparent; color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); font: inherit; font-size: var(--text-sm); font-weight: 500; cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-open .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.site-nav { display: none; }
.nav-open .site-nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 24px -12px rgba(16, 21, 44, 0.18);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.site-nav ul { list-style: none; margin: 0; padding: var(--space-2) var(--gutter) var(--space-4); }
.site-nav a {
  display: block; padding: var(--space-3) 0; color: var(--text); text-decoration: none;
  font-weight: 500; border-bottom: 1px solid var(--border);
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 4px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em;
}
.lang-switch a { display: inline-flex; align-items: center; min-height: 30px; padding: 0 8px; border-radius: 4px; color: var(--text-muted); text-decoration: none; }
.lang-switch a:hover { color: var(--accent); background: var(--accent-wash); }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .nav-open .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .site-nav ul { display: flex; align-items: center; gap: clamp(0.75rem, 0.1rem + 1.1vw, 1.5rem); padding: 0; }
  .site-nav a { padding: var(--space-2) 0; border: 0; font-size: var(--text-sm); white-space: nowrap; color: var(--text-muted); }
  .header-inner { gap: var(--space-6); }
  .header-nav-group { display: flex; align-items: center; gap: clamp(1rem, 0.2rem + 1.4vw, 2rem); }
}

/* ---------- Buttons, labels, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-sm);
  font-weight: 600; font-size: var(--text-sm); text-decoration: none; border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted);
}
.eyebrow .num { color: var(--accent); font-variant-numeric: tabular-nums; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px;
  font-size: 0.6875rem; line-height: 1.4; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-measured { color: var(--measured-fg); background: var(--measured-bg); border-color: var(--measured-bd); }
.badge-decided { color: var(--decided-fg); background: var(--decided-bg); border-color: var(--decided-bd); }
.badge-projected { color: var(--projected-fg); background: var(--projected-bg); border-color: var(--projected-bd); }
.badge-vision { color: var(--accent); background: var(--surface); border-color: var(--decided-bd); border-style: dashed; }
.badge-soon { color: var(--text-muted); background: var(--surface); border-color: var(--border-strong); }
.badge-available { color: var(--measured-fg); background: var(--measured-bg); border-color: var(--measured-bd); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.4rem + 2.5vw, 3.5rem); }
.section-head h2 { font-size: var(--text-2xl); line-height: 1.15; letter-spacing: -0.022em; font-weight: 600; margin-top: var(--space-3); text-wrap: balance; }
.section-head p { margin-top: var(--space-4); color: var(--text-muted); font-size: var(--text-lg); line-height: 1.55; max-width: 40rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 2rem + 7vw, 8.5rem) clamp(3.5rem, 2rem + 6vw, 7.5rem); }
.hero-grid { position: relative; display: grid; gap: var(--space-10); align-items: center; }
.hero-copy { position: relative; z-index: 1; max-width: 44rem; }
.hero-label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); font-size: var(--text-xs); font-weight: 500; color: var(--text-muted); }
.hero-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-wash); }
.hero h1 { margin-top: var(--space-6); font-size: var(--text-hero); line-height: 1.06; letter-spacing: -0.032em; font-weight: 600; text-wrap: balance; }
.hero-sub { margin-top: var(--space-6); font-size: var(--text-lg); line-height: 1.6; color: var(--text-muted); max-width: 38rem; }
.hero-ctas { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-art {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(118vw, 34rem); right: -42vw; top: -2rem; opacity: .5;
}
.hero-art svg { width: 100%; height: auto; }
.spiral-dots { fill: #3d78ee; }
.spiral-ring { fill: none; stroke: var(--accent-soft); stroke-opacity: .28; }
.spiral-rotor { transform-origin: 200px 200px; animation: spin 360s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 640px) { .hero-art { right: -17rem; top: -3rem; opacity: .38; } }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
  .hero-art { position: relative; right: auto; top: auto; width: 100%; max-width: 30rem; justify-self: end; opacity: 1; }
}

/* ---------- Vision ---------- */
.vision { background: linear-gradient(180deg, var(--surface-tint) 0%, var(--bg) 100%); }
.vision-frame {
  position: relative; border: 1.5px dashed var(--decided-bd); border-radius: calc(var(--radius) + 4px);
  background: rgba(255,255,255,.6); padding: clamp(1.125rem, 0.4rem + 3.4vw, 3.5rem);
}
.vision-tag { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.vision h2 { font-size: var(--text-2xl); line-height: 1.15; letter-spacing: -0.022em; font-weight: 600; margin-top: var(--space-4); max-width: 44rem; text-wrap: balance; }
.vision-lede { margin-top: var(--space-4); color: var(--text-muted); font-size: var(--text-lg); max-width: 42rem; }
.vision-list { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); display: grid; gap: var(--space-4); counter-reset: v; }
.vision-item { padding: var(--space-5) var(--space-5) var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.vision-item h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; display: flex; gap: var(--space-3); align-items: baseline; }
.vision-item h3::before { counter-increment: v; content: counter(v, decimal-leading-zero); font-size: var(--text-xs); color: var(--accent); font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.vision-item p { margin-top: var(--space-2); color: var(--text-muted); font-size: var(--text-sm); line-height: 1.6; }
.vision-note { margin-top: var(--space-8); font-size: var(--text-sm); color: var(--text-muted); border-top: 1px solid var(--border); padding-top: var(--space-5); }
.vision-note strong { color: var(--text); }
@media (min-width: 640px) { .vision-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vision-item:last-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .vision-list { grid-template-columns: repeat(6, minmax(0, 1fr)); } .vision-item { grid-column: span 2; } .vision-item:nth-child(n+4) { grid-column: span 3; } }

/* ---------- Method ---------- */
.method-grid { display: grid; gap: var(--space-4); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 0.9rem + 1.4vw, 2rem); }
.card h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.card > p { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--text-sm); }
.card-kicker { font-size: var(--text-xs); font-weight: 600; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-3); display: block; }

.dial { margin-top: var(--space-5); display: grid; gap: var(--space-2); }
.dial-step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.dial-pip { width: 28px; height: 8px; border-radius: 4px; background: var(--accent-wash); position: relative; overflow: hidden; grid-row: span 2; }
.dial-pip i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 4px; }
.dial-step:nth-child(1) .dial-pip i { width: 33%; }
.dial-step:nth-child(2) .dial-pip i { width: 66%; }
.dial-step:nth-child(3) .dial-pip i { width: 100%; }
.dial-step b { font-weight: 600; font-size: var(--text-sm); }
.dial-step span { color: var(--text-muted); font-size: var(--text-xs); }

.checks { margin-top: var(--space-5); display: grid; gap: var(--space-3); list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.75rem; font-size: var(--text-sm); }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1rem; height: 1rem; border-radius: 4px; background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%231d44b0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

.discipline { margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.discipline div { display: grid; gap: var(--space-2); justify-items: start; }
.discipline dd { color: var(--text-muted); font-size: var(--text-sm); }
.discipline-foot { margin-top: var(--space-5); font-size: var(--text-sm); font-weight: 600; }

@media (min-width: 768px) { .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Timeline ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 7px; width: 2px; background: linear-gradient(var(--accent-soft), var(--border-strong)); border-radius: 2px; }
.tl-item { position: relative; padding-left: 2.5rem; padding-bottom: var(--space-6); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-sizing: border-box; }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); }
.tl-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); }
.tl-date { font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-variant-numeric: tabular-nums; }
.tl-card h3 { margin-top: var(--space-3); font-size: var(--text-lg); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.tl-card p { margin-top: var(--space-2); color: var(--text-muted); font-size: var(--text-sm); }
.tl-figure { display: block; margin-top: var(--space-3); font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums lining-nums; line-height: 1.2; }
.timeline-note { margin-top: var(--space-8); font-size: var(--text-sm); color: var(--text-muted); max-width: 46rem; }

@media (min-width: 768px) {
  .timeline::before { left: calc(8.5rem + 7px); }
  .tl-item { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); padding-left: 0; padding-bottom: var(--space-4); }
  .tl-item::before { left: 8.5rem; }
  .tl-side { padding-top: 1.3rem; padding-right: var(--space-4); text-align: left; }
  .tl-side .tl-date { font-size: var(--text-sm); }
  .tl-card { margin-left: 2.75rem; }
  .tl-card .tl-date { display: none; }
  .tl-card .tl-meta { float: right; margin: 0 0 var(--space-2) var(--space-4); }
  .tl-card h3 { margin-top: 0; }
}
@media (max-width: 767.98px) { .tl-side { display: none; } }

/* ---------- Why now ---------- */
.drivers { display: grid; gap: var(--space-4); list-style: none; padding: 0; margin: 0; }
.driver { border-top: 2px solid var(--accent); padding-top: var(--space-5); }
.driver h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; }
.driver p { margin-top: var(--space-2); color: var(--text-muted); font-size: var(--text-sm); }
.statement { margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-radius: var(--radius); background: var(--ink); color: #e9eefb; display: grid; gap: var(--space-5); }
.statement p { font-size: var(--text-lg); line-height: 1.55; color: #c9d3ea; max-width: 46rem; }
.statement .tagline { font-size: var(--text-xl); font-weight: 600; color: #fff; letter-spacing: -0.015em; line-height: 1.25; }
.statement .tagline-2 { font-size: var(--text-base); color: #a9c3ff; font-weight: 500; }
@media (min-width: 768px) { .drivers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); } }

/* ---------- Model ---------- */
.model-grid { display: grid; gap: var(--space-4); }
.engagements { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; }
.engagements li { padding: 6px 12px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-hover); font-size: var(--text-sm); font-weight: 500; }
@media (min-width: 768px) { .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-8); }
.contact-links { display: grid; gap: var(--space-3); }
.contact-link { display: flex; flex-direction: column; gap: 2px; padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .18s ease; min-width: 0; }
.contact-link:hover { border-color: var(--accent); color: var(--text); }
.contact-link small { font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.contact-link span { font-size: var(--text-lg); font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.legal { font-size: var(--text-sm); color: var(--text-muted); font-style: normal; line-height: 1.7; }
.legal strong { color: var(--text); font-weight: 600; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: var(--space-10); font-size: var(--text-sm); color: var(--text-muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); justify-content: space-between; align-items: center; }
.footer-inner img { height: 22px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3) var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--border); font-size: var(--text-xs); color: #5d6680; }
.footer-legal { margin: 0; }
.footer-legal-nav ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; padding: 0; margin: 0; }
.footer-legal-nav a { color: #5d6680; }
.footer-legal-nav a:hover { color: var(--accent); }
.footer-disclaimer { width: 100%; max-width: 62rem; line-height: 1.6; }
.footer-disclaimer a { color: #5d6680; }
.footer-disclaimer a:hover { color: var(--accent); }

/* ---------- Demos page ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2rem, 1.5rem + 3vw, 3.5rem); position: relative; overflow: hidden; }
.page-hero h1 { margin-top: var(--space-4); font-size: var(--text-2xl); font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); line-height: 1.1; letter-spacing: -0.028em; font-weight: 600; }
.page-hero p { margin-top: var(--space-4); color: var(--text-muted); font-size: var(--text-lg); max-width: 40rem; }
.demo-grid { display: grid; gap: var(--space-4); list-style: none; padding: 0; margin: 0; }
.demo-card { display: flex; flex-direction: column; gap: var(--space-3); height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.demo-card .badge { align-self: flex-start; }
.demo-card h2 { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.demo-card p { color: var(--text-muted); font-size: var(--text-sm); flex: 1; }
.demo-card .btn { align-self: flex-start; min-height: 44px; padding: 0 var(--space-5); }
.demo-empty { color: var(--text-muted); }
@media (min-width: 640px) { .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.stages { margin-top: var(--space-5); display: grid; gap: var(--space-2); list-style: none; padding: 0; }
.stages li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); font-size: var(--text-sm); }
.stages li b { font-weight: 600; }
.stages li span { color: var(--accent); font-weight: 600; font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; align-self: center; }


/* ---------- v2: utilities ---------- */
.section-head--flush { margin-bottom: 0; }
.section--flush-top { padding-top: 0; }
.section + .section--flush-top, .page-hero + .section { border-top: 0; }
.demo-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.disclaimer-line { margin-top: var(--space-4); font-size: var(--text-xs); line-height: 1.6; color: var(--text-muted); max-width: 46rem; }
.vision-note + .disclaimer-line { margin-top: var(--space-3); }
.timeline-note + .disclaimer-line { margin-top: var(--space-2); }
.disclaimer-line a { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--accent-wash); color: var(--accent-hover); padding: 1px 5px; border-radius: 4px; }

/* ---------- v2: breadcrumb ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--border-strong); font-weight: 500; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- v2: legal pages ---------- */
.page-hero--legal { padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.legal-updated { font-size: var(--text-sm) !important; }
.legal-layout { display: grid; gap: var(--space-8); }
.legal-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); align-self: start; }
.legal-toc ol { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: var(--space-3); padding: 6px 0; color: var(--text-muted); text-decoration: none; font-size: var(--text-sm); line-height: 1.4; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-size: var(--text-xs); font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 2px; }
.legal-toc a:hover { color: var(--accent); }
.legal-doc { max-width: 46rem; min-width: 0; }
.legal-sec + .legal-sec { margin-top: var(--space-10); padding-top: var(--space-10); border-top: 1px solid var(--border); }
.legal-doc h2 { font-size: var(--text-xl); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.legal-doc p, .legal-doc ul, .legal-doc .facts { margin-top: var(--space-4); }
.legal-doc p, .legal-doc li { color: var(--text-muted); line-height: 1.7; }
.legal-doc strong { color: var(--text); font-weight: 600; }
.legal-doc ul { padding-left: 1.25rem; display: grid; gap: var(--space-3); }
.legal-doc li::marker { color: var(--accent); }
.legal-doc a { overflow-wrap: anywhere; }
.facts { display: grid; gap: 0; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facts div { display: grid; gap: 2px; padding: var(--space-4) var(--space-5); }
.facts div + div { border-top: 1px solid var(--border); }
.facts dt { font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.facts dd { color: var(--text); font-size: var(--text-sm); line-height: 1.6; }
.legal-others { margin-top: var(--space-12); padding: var(--space-6); background: var(--surface-tint); border-radius: var(--radius); }
.legal-others h2 { font-size: var(--text-lg); }
.legal-others ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-3); }
.legal-others .legal-prevails { font-size: var(--text-xs); margin-top: var(--space-4); }
@media (min-width: 640px) { .facts div { grid-template-columns: 11rem minmax(0, 1fr); gap: var(--space-5); align-items: baseline; } }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(3rem, 1rem + 4vw, 5rem); }
  .legal-toc { position: sticky; top: calc(var(--header-h) + var(--space-6)); background: none; border: 0; border-left: 1px solid var(--border); border-radius: 0; padding: 0 0 0 var(--space-5); }
}

/* ---------- v2: 404 ---------- */
.nf { padding-bottom: var(--section-y); }
.page-hero .nf-code { margin: 0; font-size: clamp(4.5rem, 3rem + 7vw, 8rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.nf h1 { display: grid; gap: var(--space-2); }
.nf-alt { font-size: 0.55em; color: var(--text-muted); font-weight: 500; letter-spacing: -0.015em; }
.nf-grid { margin-top: var(--space-10); display: grid; gap: var(--space-4); max-width: 56rem; }
.page-hero .nf-card p { font-size: var(--text-base); margin: 0 0 var(--space-5); color: var(--text-muted); }
@media (min-width: 768px) { .nf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- La mirilla (footer easter egg) ---------- */
.mirilla { position: relative; margin-left: auto; --breath: 7s; }
.mirilla-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
.mirilla-dot span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); opacity: .55; transition: background .3s; }
.mirilla.is-alive .mirilla-dot span { background: var(--accent-soft); animation: mirilla-breath var(--breath) ease-in-out infinite; }
.mirilla-dot:hover span, .mirilla-dot:focus-visible span, .mirilla-dot[aria-expanded="true"] span { background: var(--accent); opacity: 1; }
.mirilla-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes mirilla-breath { 0%, 100% { transform: scale(.75); opacity: .45; box-shadow: 0 0 0 0 rgba(79,140,255,0); } 50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 5px rgba(79,140,255,.14); } }
@media (prefers-reduced-motion: reduce) { .mirilla.is-alive .mirilla-dot span { animation: none; opacity: 1; } }
.mirilla-panel { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 20; width: min(340px, calc(100vw - 32px)); padding: 14px 16px 12px; background: var(--ink); color: #dfe5f2; border-radius: 12px; box-shadow: 0 12px 40px rgba(12,19,38,.28); font-size: var(--text-xs); line-height: 1.5; }
.mirilla-panel[hidden] { display: none; }
.mirilla-title { margin: 0 0 8px; color: #fff; font-weight: 600; letter-spacing: .01em; }
.mirilla-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.mirilla-list li { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.mirilla-list li:first-child { border-top: 0; padding-top: 0; }
.mirilla-msg { margin: 0; color: #eef2fa; overflow-wrap: anywhere; }
.mirilla-by { margin: 2px 0 0; color: #9aa6c2; font-variant-numeric: tabular-nums; }
.mirilla-empty { color: #9aa6c2; }
.mirilla-foot { margin: 10px 0 0; color: #9aa6c2; }
.mirilla-foot a { color: #9fc0ff; }
