/* Sobo Labs , Landing */
:root {
  --bg: #F2F5F9;
  --bg-2: #FFFFFF;
  --bg-3: #E8EDF3;
  --surface: #FFFFFF;
  --line: rgba(0,0,0,0.08);
  --line-2: rgba(0,0,0,0.14);
  --fg: #1A1714;
  --fg-dim: #4A4742;
  --fg-mute: #8C8880;
  --accent: oklch(0.62 0.20 25);         /* warm red CTA */
  --accent-dim: oklch(0.62 0.20 25 / 0.12);
  --accent-2: oklch(0.55 0.22 285);      /* violet counter */
  --warn: oklch(0.65 0.18 65);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-display: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }

/* Lenis smooth-scroll compatibility */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
html.lenis-scrolling iframe { pointer-events: none; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- Utility bar ---------- */
.util {
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.util-inner {
  display: flex; justify-content: flex-end; gap: 28px;
  padding: 10px 32px;
}
.util a { transition: color .15s; }
.util a:hover { color: var(--fg); }

/* ---------- Announcement strip ---------- */
.announce {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
}
.announce-inner {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 32px;
  font-size: 13px;
  color: var(--fg-dim);
}
.announce .tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px;
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
}
.announce a.more {
  color: var(--fg);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
}

/* ---------- Floating header (full-width rounded bar) ---------- */
.header-pill-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 10px;
  pointer-events: none;
  transform: translateY(0);
  transition: transform .38s cubic-bezier(.4,.0,.2,1), padding .25s ease;
  will-change: transform;
}
.header-pill-wrap.is-hidden {
  transform: translateY(calc(-100% - 4px));
}
.header-pill-wrap.is-scrolled {
  padding: 6px 10px;
}
.header-pill-wrap.is-scrolled .header-pill {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 14px 40px rgba(0,0,0,0.09);
  background: rgba(255,255,255,0.88);
}
.header-pill-wrap.is-scrolled .announce-row,
.header-pill-wrap.announce-collapsed .announce-row {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
  opacity: 0;
  overflow: hidden;
}
/* when scrolled but announce is explicitly re-opened, override the scrolled collapse */
.header-pill-wrap.is-scrolled:not(.announce-collapsed) .announce-row {
  max-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom-color: var(--line);
  opacity: 1;
}
.announce-row {
  max-height: 60px;
  transition: max-height .3s ease, padding .3s ease, opacity .2s ease;
}
.header-pill {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  width: 100%;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 8px 30px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow .25s ease, background .25s ease;
}

/* ROW 1 , thin announce strip, spans full width */
.header-pill .announce-row {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(250,248,244,0.5);
  font-size: 12px;
}
.announce-left {
  display: flex; align-items: center; gap: 10px;
  color: var(--fg-dim);
  min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.announce-left strong { color: var(--fg); font-weight: 600; }
.header-announce-cta {
  background: #111315; color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 500;
  white-space: nowrap;
}
.announce-right {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.announce-right a { transition: opacity .15s; }
.announce-right a:hover { opacity: 0.7; }
.announce-right .header-social {
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
}

/* ROW 2 , main nav row */
.header-pill .nav-row {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 18px;
}
.header-pill .brand { font-size: 24px; white-space: nowrap; }
.header-pill .nav-links { display: flex; gap: 2px; font-size: 14px; }
.header-pill .nav-item {
  position: relative;
  padding: 8px 16px;
  color: var(--fg-dim);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.header-pill .nav-item:hover { color: var(--fg); background: rgba(0,0,0,0.04); }
.header-pill .flyout {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  min-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  display: none;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}
.header-pill .nav-item:hover .flyout { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.header-pill .flyout-item { display: flex; gap: 12px; padding: 10px; border-radius: 10px; }
.header-pill .flyout-item:hover { background: var(--bg-3); }
.header-pill .flyout-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; background: var(--bg-3); display: grid; place-items: center; color: var(--accent); }
.header-pill .flyout-item-text h4 { margin: 0 0 2px; font-size: 13px; color: var(--fg); font-weight: 500; }
.header-pill .flyout-item-text p { margin: 0; font-size: 12px; color: var(--fg-mute); line-height: 1.4; }

.header-right {
  display: flex; align-items: center; gap: 8px;
}
.btn-primary-pill {
  background: #111315; color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  transition: background .15s;
}
.btn-primary-pill:hover { background: #000; }

body { padding-top: 108px; }

/* Topbar enter animation when mounted after splash.
   No fill:both , we only need the transition into place, after which
   the underlying .is-hidden transforms must remain authoritative. */
@keyframes topbar-enter {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.header-pill-wrap.topbar-enter {
  animation: topbar-enter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Scroll-reveal animations */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Main nav (legacy) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(250,248,244,0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--fg);
}
.brand-name { color: inherit; }

.nav-links {
  display: flex; gap: 6px;
  font-size: 14px;
}
.nav-links > .nav-item {
  position: relative;
  padding: 8px 14px;
  color: var(--fg-dim);
  border-radius: 8px;
  transition: color .15s, background .15s;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.nav-links > .nav-item:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nav-links .chev { width: 10px; opacity: 0.6; }

.flyout {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 520px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 14px;
  display: none;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.nav-item:hover .flyout, .nav-item.open .flyout { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.flyout-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  transition: background .15s;
}
.flyout-item:hover { background: rgba(255,255,255,0.04); }
.flyout-icon {
  width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 8px;
  background: var(--bg-3);
  display: grid; place-items: center;
  color: var(--accent);
}
.flyout-item-text h4 { margin: 0 0 2px; font-size: 13px; color: var(--fg); font-weight: 500; }
.flyout-item-text p { margin: 0; font-size: 12px; color: var(--fg-mute); line-height: 1.4; }

.nav-cta {
  display: flex; gap: 10px; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
  border: 1px solid transparent;
}
.btn-ghost { color: var(--fg-dim); }
.btn-ghost:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.btn-outline { border-color: var(--line-2); color: var(--fg); }
.btn-outline:hover { border-color: var(--fg); }
.btn-primary { background: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:hover { transform: translateY(-1px); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translate(2px, 0); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 23, 20, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 23, 20, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at center, black 0%, black 35%, transparent 92%);
          mask-image: radial-gradient(ellipse 70% 65% at center, black 0%, black 35%, transparent 92%);
}
.hero-inner {
  position: relative;
  padding: 200px 32px 140px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

h1.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  color: #1A1714;
}
h1.hero-title em,
h1.hero-title .hero-title-em {
  font-style: italic;
  font-weight: 400;
  color: #B8553A; /* warm clay , distinct from red accent, harmonizes with peach gradient */
  text-shadow:
    0 0 18px rgba(217, 119, 87, 0.22),
    0 0 50px rgba(217, 119, 87, 0.14),
    0 1px 0 rgba(255,255,255,0.4);
}
.hero-sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-dim);
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn-hero-dark {
  background: #111315; color: #fff;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500;
  transition: background .15s, transform .15s;
}
.btn-hero-dark:hover { background: #000; transform: translateY(-1px); }
.btn-hero-ghost {
  background: transparent; color: var(--fg);
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 500;
  transition: background .15s;
}
.btn-hero-ghost:hover { background: rgba(0,0,0,0.04); }

/* ---------- Logo marquee ---------- */
.marquee-wrap {
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
  overflow: hidden;
  position: relative;
}
.marquee-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 24px;
}
.marquee {
  display: flex; gap: 72px;
  width: max-content;
  animation: scroll 40s linear infinite;
}
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--fg-mute);
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.marquee-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fg-mute); opacity: 0.4;
}

/* ---------- Feature blocks ---------- */
.feature {
  padding: 140px 0;
}
.feature + .feature { padding-top: 0; }
.feature-copy {
  max-width: 460px;
  display: flex; flex-direction: column; justify-content: center;
}
.spacer-sm { height: 16px; }
.feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 120px;
  align-items: center;
}
.feature-reverse .feature-grid { direction: rtl; }
.feature-reverse .feature-grid > * { direction: ltr; }
.feature-reverse .feature-copy { margin-left: auto; }

.feature-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.feature h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.feature h2.__unused {
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.feature p.lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-dim);
  margin: 0;
  max-width: 460px;
}
.feature p.__unused {
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg-dim);
  margin: 0 0 28px;
  max-width: 520px;
}
.feature ul.bullets {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.feature ul.bullets li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px;
  color: var(--fg-dim);
}
.feature ul.bullets li::before {
  content: '';
  flex: 0 0 6px; width: 6px; height: 6px;
  background: var(--accent);
  margin-top: 9px;
  border-radius: 1px;
}
.soon-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--warn);
  padding: 3px 8px;
  border: 1px solid oklch(0.82 0.16 75 / 0.3);
  border-radius: 4px;
  margin-left: 12px;
  vertical-align: middle;
}
.fresh-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(0.58 0.17 148);
  background: oklch(0.58 0.17 148 / 0.1);
  padding: 3px 8px;
  border: 1px solid oklch(0.58 0.17 148 / 0.35);
  border-radius: 4px;
  margin-left: 12px;
  vertical-align: middle;
}

/* motion panel shell */
.motion-panel {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 580px;
  justify-self: center;
  border-radius: var(--radius-lg);
  background: #111315;
  color: #F2F0EC;
  border: 1px solid rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  contain: layout paint style;
}
.motion-panel .panel-chrome { background: rgba(0,0,0,0.4); color: rgba(255,255,255,0.6); border-bottom-color: rgba(255,255,255,0.08); }
.motion-panel { --line: rgba(255,255,255,0.08); --line-2: rgba(255,255,255,0.14); --fg: #F2F0EC; --fg-dim: #B8B6B1; --fg-mute: #7C7A75; --bg-3: #17191C; --accent: oklch(0.82 0.18 148); --accent-dim: oklch(0.82 0.18 148 / 0.15); --accent-2: oklch(0.72 0.22 25); --warn: oklch(0.82 0.16 75); }

/* ---- LIGHT variant (used e.g. for orderbook.replay) ---- */
.motion-panel.motion-panel--light {
  background: #FBFAF7;
  color: #1A1714;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 30px 80px rgba(30,20,10,0.08);
  --line: rgba(0,0,0,0.06);
  --line-2: rgba(0,0,0,0.1);
  --fg: #1A1714;
  --fg-dim: #4C4742;
  --fg-mute: #8F8A83;
  --bg-3: #F3F0EA;
  --accent: oklch(0.55 0.17 148);        /* calmer green on light */
  --accent-dim: oklch(0.55 0.17 148 / 0.12);
  --accent-2: oklch(0.55 0.19 25);       /* calmer red on light */
  --warn: oklch(0.70 0.15 70);
}
.motion-panel.motion-panel--light .panel-chrome {
  background: rgba(255,255,255,0.8);
  color: #6B655F;
  border-bottom-color: rgba(0,0,0,0.06);
}
.panel-chrome {
  position: absolute; top: 0; left: 0; right: 0;
  height: 38px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  z-index: 3;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
}
.panel-chrome .dots { display: flex; gap: 6px; }
.panel-chrome .dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.panel-chrome .live { color: var(--accent); display: flex; align-items: center; gap: 6px; }
.panel-chrome .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.6s infinite;
}

/* ---------- Pillars ---------- */
.pillars {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.pillars h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: -0.03em;
  margin: 0 0 70px;
  line-height: 1.05;
}
.pillars h2 em { font-style: normal; color: var(--fg-mute); font-weight: 300; }
.pillars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar {
  padding: 40px 28px;
  background: var(--bg);
  text-align: left;
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 28px;
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.pillar p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-mute);
  line-height: 1.5;
}

/* ---------- Gradient cards ---------- */
.cards {
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grad-card {
  position: relative;
  padding: 40px;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  display: flex; flex-direction: column; justify-content: space-between;
}
.grad-card .bg {
  position: absolute; inset: 0; z-index: 0;
}
.grad-card .content { position: relative; z-index: 1; }
.grad-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 20px 0 12px;
  line-height: 1.15;
}
.grad-card p { color: var(--fg-dim); font-size: 15px; max-width: 420px; margin: 0 0 24px; }

/* ---------- Testimonial ---------- */
.testimonial {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}
.testimonial-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.testimonial blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 40px;
  color: var(--fg);
}
.testimonial blockquote em { color: var(--fg-mute); font-style: normal; }
.testimonial .who {
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.testimonial .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.6 0.15 25), oklch(0.7 0.15 320));
  border: 1px solid var(--line-2);
}
.testimonial .name { font-weight: 500; font-size: 15px; }
.testimonial .title { color: var(--fg-mute); font-size: 13px; }

/* ---------- Footer ---------- */
footer {
  padding: 80px 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 18px;
  font-weight: 400;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--fg-dim);
  padding: 4px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px;
  width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 16px;
  z-index: 100;
  font-size: 13px;
  display: none;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 400;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row label {
  display: block;
  font-size: 12px; color: var(--fg-dim);
  margin-bottom: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: transform .1s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { outline: 2px solid var(--fg); outline-offset: 2px; }
.tweak-toggle {
  display: flex; gap: 6px;
}
.tweak-toggle button {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--fg-dim);
  font-size: 12px;
}
.tweak-toggle button.active { background: var(--accent); color: #0B0C0D; border-color: var(--accent); }

@media (max-width: 1200px) {
  .header-announce-chip { display: none; }
}
@media (max-width: 820px) {
  /* Mobile: API DOCS + SUPPORT stay on the far right, Early access + Join cling left. */
  .announce-right { gap: 10px; font-size: 9px; letter-spacing: 0.1em; }
  .announce-right a:not(.header-social) { display: inline-block; }
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Architecture block ---------- */
.architecture {
  position: relative;
  margin: 72px 0 48px;
  padding: 120px 0 120px;
  color: #0B0D10;
  /* no overflow clip , glow layer is self-masked */
  background: transparent;
}
/* Soft peach→lilac watercolor wash behind the Architecture section. */
.architecture-bg {
  position: absolute;
  inset: -200px -100px -200px -100px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 38% 50% at 22% 55%, rgba(237, 150, 95, 0.42), transparent 70%),
    radial-gradient(ellipse 42% 55% at 78% 55%, rgba(186, 176, 214, 0.42), transparent 72%),
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(245, 200, 160, 0.18), transparent 80%);
  filter: blur(40px);
}
.architecture-bg::before,
.architecture-bg::after { content: none; }
.architecture-inner {
  position: relative;
  z-index: 2;
}
.arch-head {
  max-width: 980px;
  margin: 0 auto 72px;
  text-align: center;
  position: relative;
}
.arch-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 5.8vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  margin: 0;
  color: #0B0D10;
}
.arch-head h2 em {
  font-style: italic;
  color: #C76B38;
  text-shadow:
    0 0 14px rgba(234, 134, 68, 0.55),
    0 0 32px rgba(234, 134, 68, 0.35),
    0 0 60px rgba(234, 134, 68, 0.22);
}
.arch-sub {
  margin: 20px auto 0;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(11,13,16,0.62);
}

.arch-sub em {
  color: #C76B38;
  font-style: italic;
}
.arch-diagram-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}
.arch-diagram {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 720px) {
  .architecture { margin: 40px 8px; padding: 48px 0 40px; }
}

.built-for {
  padding: 32px 0 24px;
}
.built-for-head {
  text-align: center;
  margin-bottom: 8px;
}
.built-for-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 0;
}
.built-for-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1A1714;
  margin: 0;
  max-width: 22ch;
  margin-inline: auto;
}

.ticker {
  position: relative;
  overflow: hidden;
  padding: 12px 0 10px;
  margin-top: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: ticker-scroll 70s linear infinite;
  will-change: transform;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tkr-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  opacity: 0.55;
  transition: opacity .25s;
  font-family: var(--font-display, 'Inter Tight'), var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.tkr-logo:hover { opacity: 1; }
.tkr-mark {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px;
  opacity: 0.9;
}
.tkr-name {
  color: inherit;
  /* mix the tint with a neutral grey so logos stay subdued */
  filter: saturate(0.75);
}

/* ---------- Boot splash ---------- */
#splash-boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: grid;
  place-items: center;
  pointer-events: none;
  will-change: opacity, transform;
}
#splash-boot .splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
#splash-boot .splash-mark {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--fg);
  opacity: 0;
  transform: translateY(6px);
  will-change: opacity, transform;
}
#splash-boot .splash-line {
  width: 88px;
  height: 1px;
  background: var(--fg);
  opacity: 0.45;
  transform: scaleX(0);
  transform-origin: center;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  #splash-boot .splash-mark { opacity: 1; transform: none; }
  #splash-boot .splash-line { transform: scaleX(1); }
}

/* ---------- Thesis bands ---------- */
.thesis {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}
.thesis + .thesis { border-top: 0; padding-top: 0; }
.thesis-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.thesis.thesis-reverse .thesis-inner { direction: rtl; }
.thesis.thesis-reverse .thesis-inner > * { direction: ltr; }
.thesis-copy {
  max-width: 820px;
}
.thesis-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.thesis-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  color: var(--fg);
}
.thesis-title em {
  font-style: italic;
  font-weight: 400;
  color: #B8553A;
}
.thesis-body {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 640px;
  margin: 0;
}
.thesis.thesis-split .thesis-inner {
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.thesis-aside {
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  perspective: 1400px;
}
.thesis-viz {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(30, 20, 10, 0.18);
  border: 1px solid rgba(0,0,0,0.08);
  transform: rotateX(var(--viz-rx, 0deg)) rotateY(var(--viz-ry, 0deg)) translate3d(var(--viz-tx, 0px), var(--viz-ty, 0px), 0);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .thesis-viz { transform: none; transition: none; }
}
.thesis-code {
  margin: 0;
  padding: 28px 32px;
  background: #0F1113;
  color: #E8E6E1;
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  white-space: pre-wrap;
  word-break: break-word;
  width: 100%;
  max-width: 520px;
}
.thesis-code code { color: var(--accent); }
@media (max-width: 860px) {
  .thesis.thesis-split .thesis-inner { grid-template-columns: 1fr; }
}

/* ---------- Page transition (internal route changes) ---------- */
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-transition {
  animation: page-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Thin loading hairline that sweeps across the top on route change */
@keyframes route-bar {
  0%   { transform: scaleX(0); transform-origin: left center; opacity: 1; }
  70%  { transform: scaleX(1); transform-origin: left center; opacity: 1; }
  100% { transform: scaleX(1); transform-origin: right center; opacity: 0; }
}
.page-transition::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  z-index: 10000;
  animation: route-bar 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .page-transition { animation: none; }
  .page-transition::before { display: none; }
}

/* ---------- Page shells (waitlist, questions, coming soon) ---------- */
.page-soon, .page-waitlist, .page-questions {
  min-height: calc(100vh - 260px);
  padding: 160px 0 140px;
  display: flex;
  align-items: flex-start;
}
.page-soon {
  min-height: calc(100vh - 220px);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0;
}
.page-soon .page-body { margin-left: auto; margin-right: auto; }
.page-soon .page-cta-row { justify-content: center; }
.page-soon-inner, .page-waitlist-inner, .page-questions-inner {
  width: 100%;
}
.page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 18px 0 24px;
  color: var(--fg);
}
.page-title em { font-style: italic; color: #B8553A; font-weight: 400; }
.page-body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 620px;
  margin: 0 0 32px;
}
.page-body--tight { margin-bottom: 48px; }
.page-bullets {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.6;
}
.page-bullets li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  position: relative;
  padding-left: 22px;
}
.page-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 20px;
  width: 10px; height: 1px;
  background: var(--accent);
}
.page-bullets li:last-child { border-bottom: 1px solid var(--line); }
.page-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Waitlist: two-column split copy / form */
.page-waitlist-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: start;
}
.page-waitlist-copy { max-width: 560px; }

.waitlist-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 30px 80px rgba(30, 20, 10, 0.08);
}
.waitlist-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .waitlist-row { grid-template-columns: 1fr; }
}

/* Inline handles group (top-level, still optional) */
.waitlist-handles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.waitlist-handles-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 2px;
}
.waitlist-field--compact > span {
  font-size: 10px;
}
.waitlist-field--compact input {
  padding: 10px 12px;
  font-size: 13px;
}

/* Optional-fields disclosure */
.waitlist-expand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin: 4px 0;
  background: var(--bg-3);
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.waitlist-expand:hover { background: var(--bg-2); border-color: var(--fg-mute); }
.waitlist-expand.is-open { border-style: solid; background: var(--bg-2); }
.waitlist-expand-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
}
.waitlist-optional {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
  animation: waitlist-reveal 0.35s ease;
}
@keyframes waitlist-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* "(optional)" inline marker next to field labels */
.waitlist-field .opt {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-left: 8px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.waitlist-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.45;
}
.waitlist-check input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
}
.waitlist-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.waitlist-field > span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.waitlist-field input,
.waitlist-field select,
.waitlist-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  transition: border-color .15s, background .15s;
}
.waitlist-field input:focus,
.waitlist-field select:focus,
.waitlist-field textarea:focus {
  border-color: var(--fg);
  background: var(--bg-2);
}
.waitlist-field textarea { resize: vertical; min-height: 72px; font-family: var(--font-body); }
.waitlist-submit { margin-top: 6px; align-self: flex-start; }
.waitlist-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.waitlist-error {
  margin-top: 4px;
  font-size: 13px;
  color: var(--accent);
  line-height: 1.5;
}
.waitlist-error a { color: var(--accent); text-decoration: underline; }
.page-waitlist--done { text-align: left; }
@media (max-width: 860px) {
  .page-waitlist-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* Questions / FAQ */
.page-questions-inner { max-width: 820px; }
.qa-list {
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.qa-item {
  border-bottom: 1px solid var(--line);
}
.qa-q {
  width: 100%;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  border: 0;
  background: none;
}
.qa-q:hover { color: #000; }
.qa-chev {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--fg-mute);
  line-height: 1;
  transition: color .15s;
}
.qa-item.is-open .qa-chev { color: var(--accent); }
.qa-a {
  padding: 0 0 22px;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-dim);
}
.qa-a strong {
  font-weight: 600;
  color: var(--fg);
}

/* Featured question , first-item highlight with subtle accent glow */
.qa-item--featured {
  position: relative;
  margin: 0 -20px 12px;
  padding: 4px 20px;
  background: linear-gradient(180deg, rgba(184, 85, 58, 0.06), rgba(184, 85, 58, 0));
  border-top: 1px solid rgba(184, 85, 58, 0.18);
  border-bottom: 1px solid rgba(184, 85, 58, 0.18);
  border-left: 1px solid rgba(184, 85, 58, 0.18);
  border-right: 1px solid rgba(184, 85, 58, 0.18);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(184, 85, 58, 0.04),
    0 18px 60px -20px rgba(184, 85, 58, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
.qa-item--featured .qa-q {
  color: #B8553A;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  padding: 22px 0 18px;
}
.qa-item--featured .qa-chev { color: #B8553A; }
.qa-item--featured::before {
  content: 'The core';
  position: absolute;
  top: -9px;
  left: 20px;
  padding: 2px 10px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B8553A;
  border: 1px solid rgba(184, 85, 58, 0.25);
  border-radius: 4px;
}

/* ---------- Reassurance self-Q ---------- */
.reassurance {
  padding: 140px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.reassurance-inner { max-width: 820px; margin: 0 auto; }
.reassurance-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0 0 24px;
}
.reassurance-title em {
  font-style: italic;
  color: #B8553A;
  font-weight: 400;
}
.reassurance-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin: 0 auto 32px;
  max-width: 640px;
}

/* ---------- Hero reveal ---------- */
.hero [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero [data-reveal] { opacity: 1; transform: none; }
}


/* =========================================================================
   Unified mobile pass. Consolidates earlier inconsistent breakpoints.
   Tablet-and-phone breakpoint: 820px. Phone-only refinements: 520px.
   ========================================================================= */
@media (max-width: 820px) {
  /* Container padding tightens on small screens */
  .container { padding: 0 20px; }

  /* Section vertical rhythm reduced */
  .hero-inner { padding: 120px 20px 80px; }
  .feature { padding: 80px 0; }
  .thesis { padding: 72px 0; }
  .reassurance { padding: 88px 0; }
  .pillars { padding: 80px 0; }
  .architecture { padding: 80px 0; }
  .page-soon, .page-waitlist, .page-questions { padding: 100px 0 80px; }

  /* Collapse every 2-col layout to 1 col */
  .feature-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .feature-reverse .feature-grid { direction: ltr !important; }
  .thesis.thesis-split .thesis-inner { grid-template-columns: 1fr !important; gap: 40px !important; }
  .thesis.thesis-reverse .thesis-inner { direction: ltr !important; }
  .page-waitlist-inner { grid-template-columns: 1fr !important; gap: 40px !important; }
  .cards-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .pillars-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }

  /* Footer: compact grid */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px 20px !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Hero title scales down — clamp already handles, but cap aggressively */
  h1.hero-title { font-size: clamp(42px, 11vw, 72px); }
  .hero-sub br { display: none; }

  /* Thesis + reassurance titles */
  .thesis-title { font-size: clamp(32px, 8vw, 52px); }
  .reassurance-title { font-size: clamp(30px, 7vw, 44px); }

  /* Page titles */
  .page-title { font-size: clamp(36px, 9vw, 60px); }

  /* Architecture diagram — keep readable by letting it breathe */
  .arch-diagram { min-height: 260px; }

  /* Motion panels: drop strict 1:1 on mobile (content was getting clipped)
     and give each a sensible min-height so content fits without overflow.
     560px covers the tallest panel (orderbook at ~494px content) with headroom. */
  .motion-panel {
    max-width: 100%;
    aspect-ratio: auto;
    min-height: 560px;
  }
  /* Architecture switches to a vertical layout on mobile via React.
     Size the container accordingly. */
  .arch-diagram-wrap--mobile {
    max-width: 100%;
    overflow: visible;
  }
  .arch-diagram--mobile {
    width: 100%;
    height: auto;
    min-height: 720px;
  }

  /* Topbar compaction */
  .header-pill { padding: 0; }
  .header-pill .brand { font-size: 19px; }
  .header-pill .btn-primary-pill { padding: 7px 12px; font-size: 11.5px; }
  .announce-row { gap: 8px; padding: 7px 12px; font-size: 11px; }
  .header-pill .announce-row { padding: 7px 12px; }
  .announce-left { gap: 8px; flex: 1; min-width: 0; justify-content: space-between; }
  .announce-left > span { display: none; }
  .header-pill .nav-row { padding: 8px 10px; gap: 6px; }
  .header-pill-wrap { padding: 8px; }
  .header-pill .nav-links { display: flex; gap: 2px; font-size: 12.5px; }
  .header-pill .nav-item { padding: 6px 8px; }

  /* Waitlist form */
  .waitlist-form { padding: 22px; gap: 12px; }
  .waitlist-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .waitlist-handles { padding: 12px; }

  /* Questions */
  .qa-q { font-size: 16px; padding: 18px 0; }
  .qa-item--featured { margin: 0 -12px 12px; padding: 4px 12px; }
  .qa-item--featured .qa-q { font-size: 18px; padding: 18px 0 14px; }

  /* Thesis viz sits cleanly full-width */
  .thesis-viz { max-width: 100%; }

  /* Pillar padding */
  .pillar { padding: 24px; }
}

/* Only on genuinely tiny viewports (old iPhone SE 320px), drop wordmark to "S". */
@media (max-width: 340px) {
  .header-pill .brand-name { display: none; }
  .header-pill .brand::before {
    content: 'S';
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    color: var(--fg);
  }
}

/* Phone-only refinements */
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .hero-inner { padding: 100px 16px 64px; }
  .feature { padding: 60px 0; }
  .thesis { padding: 56px 0; }
  .architecture { padding: 60px 0; }
  .pillars { padding: 60px 0; }
  .reassurance { padding: 64px 0; }
  .pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }
  .pillar {
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .footer-grid { grid-template-columns: 1fr !important; }
  .waitlist-row { grid-template-columns: 1fr !important; }
  .page-cta-row .btn { width: 100%; text-align: center; }
}

/* ---------- Cookie consent ---------- */
.footer-col .footer-linkbtn {
  display: block;
  width: 100%;
  padding: 4px 0;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: inherit;
  color: var(--fg-dim);
  text-align: left;
  transition: color .15s;
}
.footer-col .footer-linkbtn:hover { color: var(--fg); }

.consent-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(11, 13, 16, 0.14), 0 2px 8px rgba(11, 13, 16, 0.06);
  animation: consent-in .35s cubic-bezier(.2,.8,.2,1);
}
.consent-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.consent-copy {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-dim);
}
.consent-copy strong {
  color: var(--fg);
  font-weight: 600;
  margin-right: 4px;
}
.consent-copy a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.consent-copy a:hover { text-decoration-color: var(--fg); }
.consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.consent-btn {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.consent-btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.consent-btn--ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.22);
}
.consent-btn--primary {
  background: var(--fg);
  color: var(--bg-2);
  border-color: var(--fg);
}
.consent-btn--primary:hover {
  background: #000;
  border-color: #000;
}

.consent-scrim {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(11, 13, 16, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: consent-fade .2s ease-out;
}
.consent-modal {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(11, 13, 16, 0.28);
  width: 100%;
  max-width: 560px;
  padding: 28px 28px 24px;
  animation: consent-in .28s cubic-bezier(.2,.8,.2,1);
}
.consent-modal-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--fg);
}
.consent-modal-body {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-dim);
}
.consent-row {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.consent-row:last-of-type { border-bottom: 1px solid var(--line); }
.consent-row--locked { cursor: default; }
.consent-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.consent-row-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}
.consent-row-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-mute);
}
.consent-locked-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
}
.consent-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.consent-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.consent-switch-track {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  transition: background .18s, border-color .18s;
}
.consent-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--bg-2);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(11, 13, 16, 0.18);
  transition: transform .18s cubic-bezier(.2,.8,.2,1);
}
.consent-switch.is-on .consent-switch-track {
  background: var(--fg);
  border-color: var(--fg);
}
.consent-switch.is-on .consent-switch-track::after {
  transform: translateX(18px);
}
.consent-switch input:focus-visible + .consent-switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.consent-modal-actions {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@keyframes consent-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes consent-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 720px) {
  .consent-banner { left: 12px; right: 12px; bottom: 12px; }
  .consent-banner-inner {
    grid-template-columns: 1fr;
    padding: 14px 16px;
    gap: 12px;
  }
  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .consent-actions .consent-btn--primary { grid-column: span 2; }
  .consent-modal {
    padding: 22px 20px 20px;
    border-radius: var(--radius);
  }
  .consent-modal-title { font-size: 24px; }
  .consent-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .consent-modal-actions .consent-btn--primary { grid-column: span 2; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner, .consent-scrim, .consent-modal { animation: none; }
  .consent-switch-track::after { transition: none; }
}

.waitlist-turnstile {
  margin: 8px 0 4px;
  display: flex;
  justify-content: flex-start;
  min-height: 65px;
}
@media (max-width: 720px) {
  .waitlist-turnstile { justify-content: center; }
}
