/* FrontiersMind: Sovereign Superintelligence */

:root {
  --bg: #040407;
  --bg-2: #09090F;
  --surface: #101019;
  --line: rgba(220, 222, 255, 0.09);
  --line-strong: rgba(220, 222, 255, 0.2);
  --ink: #FFFFFF;
  --ink-soft: #D2D1DE;
  --ink-faint: #9C9BB0;
  --copper: #F4A259;
  --copper-deep: #D9783A;
  --copper-glow: rgba(244, 162, 89, 0.4);
  --jet: #8EA6FF;
  --jet-glow: rgba(142, 166, 255, 0.35);
  --horizon: linear-gradient(100deg, #FFD9A0 0%, #F4A259 45%, #E0663A 100%);
  --sans: 'Inter', system-ui, sans-serif;
  --serif: var(--sans);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

em { font-style: normal; }

img, svg, canvas { display: block; }

::selection { background: var(--copper); color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- grain overlay ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  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 type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 300ms, border-color 300ms, backdrop-filter 300ms;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(4, 4, 7, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}

.nav .nav-cta { justify-self: end; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand img { width: 36px; height: 36px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-item { position: relative; }

.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 10px 12px;
  transition: color 200ms;
}

.menu-trigger svg { width: 10px; height: 10px; transition: transform 200ms; }

.menu-item:hover .menu-trigger,
.menu-item:focus-within .menu-trigger,
.menu-trigger[aria-current="page"] { color: var(--ink); }

.menu-item:hover .menu-trigger svg,
.menu-item:focus-within .menu-trigger svg { transform: rotate(180deg); }

.menu-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 260px;
  padding: 8px;
  background: rgba(16, 16, 25, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 180ms, transform 180ms, visibility 180ms;
}

.menu-item:hover .menu-panel,
.menu-item:focus-within .menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 150ms;
}

.menu-panel a:hover { background: rgba(220, 222, 255, 0.06); }

.menu-panel b { display: block; font-weight: 500; font-size: 14px; color: var(--ink); }
.menu-panel span { display: block; font-size: 13px; color: var(--ink-faint); margin-top: 2px; }

.soon {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid rgba(244, 162, 89, 0.4);
  border-radius: 4px;
  padding: 2px 8px;
}

.menu-panel .soon { display: inline-block; color: var(--copper); font-size: 11px; margin-top: 6px; }

.nav-cta {
  font-size: 14px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  transition: border-color 200ms, background 200ms, color 200ms;
}

.nav-cta:hover { background: var(--copper); border-color: var(--copper); color: var(--bg); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  width: 40px; height: 40px;
  cursor: pointer;
}

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jet);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--jet);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--jet-glow);
}

.display {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.display em, .panel h3 em, .footer-tag em {
  font-style: normal;
  background: var(--horizon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2.display { font-size: clamp(30px, 3.4vw, 40px); }

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.55;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 6px;
  transition: transform 200ms, background 200ms, color 200ms, border-color 200ms;
}

.btn .arrow { transition: transform 200ms; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--copper); }

.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 4, 7, 0.82) 0%, rgba(4, 4, 7, 0.5) 32%, transparent 58%),
    linear-gradient(to top, var(--bg) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-title {
  font-size: clamp(40px, 4.6vw, 60px);
  margin: 0 0 24px;
}

.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.hero-title .line span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) forwards;
}
.hero-title .line:nth-child(2) span { animation-delay: 0.12s; }

@keyframes rise { to { transform: translateY(0); } }

.hero-foot {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  opacity: 0;
  animation: fade 1s 0.5s forwards;
}

@keyframes fade { to { opacity: 1; } }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { position: relative; }

.section { padding: clamp(56px, 7vw, 96px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .eyebrow { margin-bottom: 24px; }

/* manifesto */
.manifesto {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 1100px;
}

.manifesto .dim { color: var(--ink-faint); transition: color 600ms; }
.manifesto .dim.lit { color: var(--ink); }

/* ---------- full stack ---------- */
.stack {
  border-top: 1px solid var(--line);
}

.stack-row {
  display: grid;
  grid-template-columns: 80px 1.1fr 1.4fr 140px;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 300ms;
}

.stack-row::before {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  height: 1px; width: 0;
  background: var(--copper);
  transition: width 600ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

.stack-row:hover::before { width: 100%; }
.stack-row:hover { padding-left: 12px; }

.stack-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.stack-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
}

.stack-row:hover .stack-name { color: var(--copper); }

.stack-desc { color: var(--ink-soft); font-size: 15px; }

.stack-tag {
  justify-self: end;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

/* ---------- split feature panels ---------- */
.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.panel {
  background: var(--bg-2);
  padding: clamp(28px, 3vw, 44px);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: background 400ms;
}

.panel:hover { background: var(--surface); }

.panel-wide {
  grid-column: 1 / -1;
  min-height: 360px;
  flex-direction: row;
  align-items: flex-end;
  gap: 48px;
}

.panel-wide .panel-art { right: 40px; bottom: auto; top: 50%; transform: translateY(-50%); opacity: 0.45; }

.panel h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.15;
  margin: 20px 0 16px;
  letter-spacing: -0.01em;
}

.panel p { color: var(--ink-soft); max-width: 420px; }

.panel-art {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 320px; height: 320px;
  opacity: 0.6;
  pointer-events: none;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.panel-link .arrow { transition: transform 200ms; }
.panel:hover .panel-link .arrow { transform: translateX(6px); }
.panel:hover .panel-link { color: var(--copper); }

/* ---------- cards: research / models ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 260px;
  transition: border-color 300ms, transform 300ms, background 300ms;
}

.card:hover {
  border-color: var(--copper-deep);
  transform: translateY(-4px);
  background: var(--surface);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
}

.card p { color: var(--ink-soft); font-size: 15px; flex: 1; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.card:hover .card-foot { color: var(--copper); }

.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card-soon .card-foot { color: var(--copper); }
.card-soon:hover { transform: none; }

/* ---------- metrics strip ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--line);
}

.metric + .metric { padding-left: 24px; }
.metric:last-child { border-right: 0; }

.metric-value {
  font-family: var(--serif);
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}

.metric-value sup { font-size: 0.4em; color: var(--copper); vertical-align: top; margin-left: 4px; }

.metric-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 14px;
}

/* ---------- partners ---------- */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.partner {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
}

/* ---------- big CTA ---------- */
.cta {
  text-align: center;
  padding: clamp(56px, 6vw, 88px) 0;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(244, 162, 89, 0.14), transparent 45%),
    radial-gradient(ellipse 12% 50% at 50% 50%, rgba(142, 166, 255, 0.10), transparent 70%);
  pointer-events: none;
}

/* the section above already ends with its own padding */
.section + .cta { padding-top: clamp(24px, 3vw, 40px); }

.cta h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  margin: 16px 0 28px;
  position: relative;
}

.cta .hero-actions { justify-content: center; position: relative; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding: 160px 0 72px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(40px, 4.6vw, 60px);
  margin: 20px 0 24px;
}

.page-hero .orbit {
  position: absolute;
  right: -160px; top: 60px;
  width: 620px; height: 620px;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- two-col prose ---------- */
.prose-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.prose-grid h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
}

.prose-grid p { color: var(--ink-soft); margin-bottom: 16px; }
.prose-grid p:last-child { margin-bottom: 0; }

.list-plain { list-style: none; }

.list-plain li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.list-plain li:first-child { border-top: 1px solid var(--line); }
.list-plain li b { color: var(--ink); font-weight: 500; }
.list-plain a:hover { color: var(--copper); }

/* ---------- spec table ---------- */
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.spec th, .spec td {
  text-align: left;
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--line);
}

.spec th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.spec td { color: var(--ink-soft); }
.spec td:first-child { color: var(--ink); font-weight: 500; }

.table-wrap { overflow-x: auto; }

.spec td a { transition: color 150ms; }
.spec td a:hover { color: var(--copper); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}

.footer-grid h4 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid li a { color: var(--ink-soft); font-size: 14px; transition: color 200ms; }
.footer-grid li a:hover { color: var(--copper); }

.footer-tag {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  margin-top: 20px;
  max-width: 320px;
  color: var(--ink-soft);
}

.footer-tag em { color: var(--copper); }

.footer-word {
  font-family: var(--serif);
  font-size: clamp(48px, 13vw, 190px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  white-space: nowrap;
  user-select: none;
  margin-bottom: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(0.2, 0.7, 0.1, 1), transform 900ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .section-head,
  .panels,
  .prose-grid { grid-template-columns: 1fr; }

  .stack-row { grid-template-columns: 48px 1fr; gap: 12px 20px; }
  .stack-desc { grid-column: 2; }
  .stack-tag { grid-column: 2; justify-self: start; }

  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3) { padding-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }

  .panel { min-height: 420px; }
}

@media (max-width: 720px) {
  .nav { display: flex; justify-content: space-between; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .panel-wide { flex-direction: column; align-items: flex-start; }

  .site-header.open { background: var(--bg); border-bottom-color: var(--line); }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
  }
  .site-header.open .menu-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: 0;
    padding: 0 0 8px;
    min-width: 0;
  }
  .site-header.open .menu-trigger { padding: 14px 0 6px; }
  .site-header.open .menu-trigger svg { display: none; }
  .site-header.open .menu-panel a { padding: 8px 0; }
  .cards, .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
}

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

/* =========================================================
   v2 home: cinematic sections
   ========================================================= */

.card, .panel, .proof-card { position: relative; }

.card::after, .panel::after, .proof-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 162, 89, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}

.card:hover::after, .panel:hover::after, .proof-card:hover::after { opacity: 1; }

/* hero extras */
.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(16, 16, 25, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 28px;
  transition: border-color 200ms, color 200ms;
}

.announce:hover { border-color: var(--copper); color: var(--ink); }
.announce .soon { border-radius: 999px; }

.hero-proof {
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  z-index: 2;
}

.hero-proof .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-proof b { color: var(--ink); font-weight: 400; }

.proof-items { display: flex; flex-wrap: wrap; gap: 28px; }

.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }

.scroll-cue i {
  display: block;
  width: 1px; height: 28px;
  background: linear-gradient(var(--jet), transparent);
  animation: cue 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* traction */
.traction {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.traction > div { background: var(--bg-2); padding: 28px 24px; }

.traction .num {
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--horizon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.traction .lbl {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

.source-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* full stack scrollytelling */
.scrolly {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.scrolly-visual {
  position: sticky;
  top: 12vh;
  height: 76vh;
  display: flex;
  align-items: center;
}

.scrolly-visual svg { width: 100%; height: auto; max-height: 100%; overflow: visible; }

.layer .top { fill: rgba(220, 222, 255, 0.02); stroke: var(--line-strong); transition: fill 500ms, stroke 500ms; }
.layer .side { fill: rgba(220, 222, 255, 0.015); stroke: var(--line); transition: fill 500ms, stroke 500ms; }
.layer text { fill: var(--ink-faint); font-family: var(--sans); font-size: 14px; transition: fill 500ms; }
.layer text.n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.layer line { stroke: var(--line); transition: stroke 500ms; }
.layer { transition: transform 700ms cubic-bezier(0.2, 0.7, 0.1, 1); }

.layer.done .top { stroke: rgba(244, 162, 89, 0.4); }
.layer.done text { fill: var(--ink-soft); }

.layer.active .top { fill: url(#plateGlow); stroke: #FFD9A0; }
.layer.active .side { fill: rgba(244, 162, 89, 0.18); stroke: rgba(244, 162, 89, 0.5); }
.layer.active text { fill: var(--ink); }
.layer.active text.n { fill: var(--copper); }
.layer.active line { stroke: rgba(244, 162, 89, 0.6); }
.layer.active { transform: translateX(-10px); }

.steps { padding: 18vh 0; }

.step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.25;
  transition: opacity 500ms;
}

.step.active { opacity: 1; }

.step .n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--jet);
  text-transform: uppercase;
}

.step h3 {
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 16px 0 18px;
}

.step p { color: var(--ink-soft); font-size: 17px; max-width: 480px; }

.step-points {
  list-style: none;
  margin-top: 24px;
  max-width: 480px;
  border-top: 1px solid var(--line);
}

.step-points li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.step-points li b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.step-points a:hover { color: var(--copper); }

/* proof charts */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.proof-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}

.proof-card h3 { font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.proof-card .sub { color: var(--ink-faint); font-size: 14px; margin: 6px 0 28px; }

.bars { display: flex; flex-direction: column; gap: 14px; }

.bar-row {
  display: grid;
  grid-template-columns: 170px 1fr 52px;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: default;
}

.bar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row.ours .name { color: var(--ink); font-weight: 500; }

.bar-track { height: 10px; position: relative; }

.bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  border-radius: 0 4px 4px 0;
  background: rgba(220, 222, 255, 0.2);
  transition: width 1.2s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.bar-row.ours .bar-fill { background: var(--horizon); box-shadow: 0 0 18px rgba(244, 162, 89, 0.25); }
.reveal.in .bar-fill { width: var(--v); }
.bar-row:nth-child(2) .bar-fill { transition-delay: 80ms; }
.bar-row:nth-child(3) .bar-fill { transition-delay: 160ms; }
.bar-row:nth-child(4) .bar-fill { transition-delay: 240ms; }
.bar-row:nth-child(5) .bar-fill { transition-delay: 320ms; }
.bar-row:nth-child(6) .bar-fill { transition-delay: 400ms; }
.bar-row:hover .bar-fill { filter: brightness(1.25); }

.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

.ours-tag {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--copper);
  border: 1px solid rgba(244, 162, 89, 0.4);
  border-radius: 3px;
  padding: 0 4px;
  vertical-align: 1px;
}

.proof-card .foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
}

.proof-card .foot b { color: var(--ink); font-weight: 500; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.stat-row .proof-card { padding: 28px 32px; }

.stat-row .big {
  font-size: clamp(36px, 3.6vw, 48px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.stat-row .big span { color: var(--copper); }
.stat-row p { color: var(--ink-soft); font-size: 14px; margin-top: 12px; }

.tip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink);
  opacity: 0;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity 120ms;
  white-space: nowrap;
}

.tip.show { opacity: 1; }

/* language marquee */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  padding: 8px 0;
}

.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 48s linear infinite;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 300;
  line-height: 1.5;
  white-space: nowrap;
}

.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 56s; }

.marquee-track span:nth-child(odd) { color: var(--ink); }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(244, 162, 89, 0.6); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.tl {
  position: relative;
  padding: 36px 24px 0 0;
  scroll-snap-align: start;
}

.tl::before {
  content: '';
  position: absolute;
  top: 6px; left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
}

.tl::after {
  content: '';
  position: absolute;
  top: 2px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--copper);
}

.tl.next::after { background: var(--copper); box-shadow: 0 0 0 6px rgba(244, 162, 89, 0.15), 0 0 24px var(--copper-glow); }
.tl.next::before { background: linear-gradient(90deg, var(--copper), transparent); }

.tl time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jet);
}

.tl h4 { font-weight: 500; font-size: 16px; margin: 10px 0 8px; }
.tl p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* centauras teaser */
.teaser {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.teaser canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 8%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.teaser .container { position: relative; z-index: 2; padding-bottom: 56px; text-align: center; }
.teaser h2 { font-size: clamp(48px, 7vw, 96px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin: 18px 0 18px; }
.teaser p { margin: 0 auto 32px; }
.teaser .hero-actions { justify-content: center; }

.backers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  position: relative;
}

@media (max-width: 960px) {
  .traction { grid-template-columns: 1fr 1fr; }
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly-visual { position: sticky; top: 72px; height: auto; z-index: 3; background: linear-gradient(var(--bg) 80%, transparent); padding: 12px 0 24px; }
  .scrolly-visual svg { max-height: 34vh; }
  .steps { padding: 0; }
  .step { min-height: 70vh; }
  .proof-grid, .stat-row { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(8, 220px); }
}

@media (max-width: 720px) {
  .hero-proof .proof-items { gap: 14px; }
  .scroll-cue { display: none; }
  .bar-row { grid-template-columns: 112px 1fr 44px; font-size: 12px; }
  .proof-card { padding: 24px 20px; }
  .traction > div { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal .bar-fill { width: var(--v); }
  .step { opacity: 1; }
}

/* cinematic hero: the stage stays pinned while the camera dives in */
.hero-cine {
  height: 220vh;
  min-height: 0;
  padding: 0;
  display: block;
  overflow: visible;
}

.hero-cine::before { display: none; }

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 104px;
}

.hero-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(4, 4, 7, 0.55) 24%, transparent 46%);
  pointer-events: none;
  z-index: 1;
}

.hero-cine .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-cine .announce { margin-bottom: 22px; }
.hero-cine .hero-title { margin-bottom: 18px; }
.hero-cine .hero-foot { align-items: center; gap: 28px; }
.hero-cine .lede { max-width: 600px; }

@media (max-width: 720px) {
  .hero-stage { padding-bottom: 92px; }
  .hero-cine .announce { font-size: 12px; }
}

/* the thesis rises inside the black hole while the stage is still pinned */
.hero-cine + .section {
  margin-top: -60vh;
  padding-top: 0;
  position: relative;
  z-index: 3;
}

.hero-cine + .section .manifesto { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6); }

/* keep the scroll from the hero into the thesis tight */
.hero + .section { padding-top: 64px; }

@media (max-width: 720px) {
  /* black hole sits in the top third, text below it */
  .hero { align-items: flex-end; padding-bottom: 104px; }
  .lede-more { display: none; }
}

.hero-proof .soon-tag { font-style: normal; color: var(--copper); }

/* one page site: anchor targets clear the fixed header */
[id] { scroll-margin-top: 84px; }

.custom {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.custom h3 { font-weight: 500; font-size: 24px; letter-spacing: -0.01em; margin: 14px 0 8px; }
.custom p { color: var(--ink-soft); max-width: 760px; }
.custom > div { flex: 1 1 520px; }
