/* =================================================================
   QCoreTech — Design System
   Plain CSS, no build step. Edit tokens in :root to re-theme.
   ================================================================= */

:root {
  /* Palette — restrained monochrome + a single signal accent */
  --ink: #0b0b0d;
  --ink-soft: #1b1b1f;
  --paper: #f7f6f2;
  --paper-pure: #ffffff;
  --muted: #565660;
  --muted-soft: #64646d;
  --line: rgba(11, 11, 13, 0.10);
  --line-strong: rgba(11, 11, 13, 0.22);

  /* Signal accent — "coherence" cobalt, used sparingly */
  --accent: #2b43f0;
  --accent-ink: #1d2eb0;
  --accent-wash: rgba(43, 67, 240, 0.08);
  --accent-light: #8fa0ff; /* legible accent on dark surfaces */

  /* Golden ratio for proportional layouts */
  --phi: 1.618;

  /* Consistent small-text scale (rem = 16px root).
     --fs-label: mono labels, eyebrows, indices, buttons, captions (~14.4px)
     --fs-small: secondary/body text — descriptions, notes, table cells (~16px) */
  --fs-label: 0.92rem;
  --fs-small: 1.04rem;

  /* Dark surfaces (hero / footer) */
  --dark: #0a0a0c;
  --dark-soft: #131318;
  --dark-line: rgba(255, 255, 255, 0.12);
  --dark-muted: rgba(255, 255, 255, 0.58);

  /* Typography */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;

  color-scheme: light;
}

/* ---------- Dark theme ----------
   Swaps the core palette tokens. Components built on these variables
   adapt automatically; always-dark surfaces (hero, footer) are unchanged. */
:root[data-theme="dark"] {
  --ink: #eceef4;
  --ink-soft: #c5c7d2;
  --paper: #0b0c10;
  --paper-pure: #15161d;
  --muted: #9b9da9;
  --muted-soft: #82838f;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.26);

  --accent: #4257f5;
  --accent-ink: #aeb8ff;
  --accent-wash: rgba(99, 120, 255, 0.16);

  color-scheme: dark;
}
:root[data-theme="dark"] .ig-text--warn { fill: #ff9a63; }
/* Smooth the transition when toggling. */
html.theme-anim, html.theme-anim body { transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 17px; /* root bump — lifts all rem-based sizing for readability */
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: clamp(1.05rem, 1rem + 0.28vw, 1.2rem);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: clamp(4.5rem, 10vw, 9rem);
}

.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Eyebrow / mono labels (// and 01 :: style) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: "//";
  color: var(--accent);
  font-weight: 700;
}

.eyebrow--plain::before { content: none; }

.idx {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.05em;
  color: var(--accent);
}

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; }

.lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: -0.015em;
  max-width: 40ch;
}

.measure { max-width: 62ch; }

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper-pure);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.02em;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }

.btn--accent { --bg: var(--accent); --fg: #fff; }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--on-dark { --bg: var(--paper-pure); --fg: var(--ink); }
.btn--ghost-on-dark {
  --bg: transparent; --fg: #fff;
  border-color: var(--dark-line);
}
.btn--ghost-on-dark:hover { border-color: #fff; }

.link-arrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.link-arrow .arrow { transition: transform 0.25s var(--ease); }
.link-arrow:hover .arrow { transform: translate(3px, -3px); }

/* =================================================================
   Header / Nav
   ================================================================= */
.site-header {
  --header-h: 92px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 64%, transparent);
  backdrop-filter: saturate(135%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* Scrolled: compact into the slim, more solid sticky bar. */
.site-header.is-scrolled {
  --header-h: 64px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(10, 10, 16, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
  transition: height 0.4s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand__mark { width: 46px; height: 46px; flex: none; transition: width 0.4s var(--ease), height 0.4s var(--ease); }
.brand__text { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
  transition: font-size 0.4s var(--ease);
}
.brand__sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  /* Kerned so "TECHNOLOGIES" sits cleanly under "QuantumCore",
     sharing the same left edge as the name above it. */
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.45em;
  white-space: nowrap;
  transition: font-size 0.4s var(--ease);
}

/* Compact (scrolled) brand sizes. */
.site-header.is-scrolled .brand__mark { width: 36px; height: 36px; }
.site-header.is-scrolled .brand__name { font-size: 1.26rem; }
.site-header.is-scrolled .brand__sub { font-size: 0.62rem; }

/* Tighten the lockup on small screens so the nav never crowds */
@media (max-width: 420px) {
  .site-header { --header-h: 76px; }
  .brand { gap: 0.5rem; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.22rem; }
  .brand__sub { font-size: 0.6rem; letter-spacing: 0.3em; }
  .site-header.is-scrolled .brand__mark { width: 32px; height: 32px; }
  .site-header.is-scrolled .brand__name { font-size: 1.1rem; }
  .site-header.is-scrolled .brand__sub { font-size: 0.56rem; letter-spacing: 0.28em; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .nav, .brand__mark, .brand__name, .brand__sub { transition: none; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  padding: 0.5em 0.85em;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__links a:hover { background: var(--accent-wash); color: var(--accent); }
.nav__links a[aria-current="page"] { color: var(--accent); }

.nav__cta { display: flex; align-items: center; gap: 0.75rem; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle span::before { transform: translateY(-7px); }
.nav__toggle span::after { transform: translateY(5px); }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: rotate(45deg); }
body.nav-open .nav__toggle span::after { transform: rotate(-45deg) translateY(-1.5px); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: inset 0.4s var(--ease), opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  body.nav-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 0.9em 0.5em; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__cta .btn--desktop { display: none; }
}

/* =================================================================
   Hero
   ================================================================= */
.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.55;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.85;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 82% 0%, rgba(43, 67, 240, 0.20), transparent 55%),
    linear-gradient(95deg, rgba(10,10,12,0.94) 0%, rgba(10,10,12,0.70) 42%, rgba(10,10,12,0.30) 100%),
    linear-gradient(180deg, rgba(10,10,12,0) 45%, rgba(10,10,12,0.88) 100%);
  pointer-events: none;
}

.hero__inner {
  padding-block: clamp(6rem, 16vh, 11rem) clamp(4rem, 10vh, 7rem);
}

.hero .eyebrow { color: var(--dark-muted); }
.hero .eyebrow::before { color: #fff; }

.hero h1 {
  margin-top: 1.4rem;
  max-width: 16ch;
}

.hero__lead {
  margin-top: 1.6rem;
  color: var(--dark-muted);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  max-width: 52ch;
  line-height: 1.5;
}

.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__meta {
  margin-top: clamp(3rem, 8vh, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hero__meta dt {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.hero__meta dd {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
@media (max-width: 640px) {
  .hero__meta { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* =================================================================
   Section header
   ================================================================= */
.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-head__title { max-width: 18ch; }
.sec-head__note { color: var(--muted); max-width: 46ch; justify-self: start; }

@media (min-width: 880px) {
  .sec-head--split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 3rem;
  }
  .sec-head--split .sec-head__note { justify-self: end; }
}

/* =================================================================
   Numbered item grid (themes / principles)
   ================================================================= */
.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 880px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.cell {
  background: var(--paper-pure);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 230px;
  transition: background 0.3s var(--ease);
}
.cell:hover { background: var(--accent-wash); }
.cell__idx {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent);
  letter-spacing: 0.05em;
}
.cell h3 { margin-top: 0.2rem; }
.cell p { color: var(--muted); font-size: var(--fs-small); }
.cell .link-arrow { margin-top: auto; }

/* =================================================================
   Steps (how we work)
   ================================================================= */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__idx {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: var(--fs-small);
  padding-top: 0.35rem;
}
.step__body h3 { margin-bottom: 0.5rem; }
.step__body p { color: var(--muted); max-width: 60ch; }
@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* =================================================================
   Signals table
   ================================================================= */
.signals { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.signals th, .signals td {
  text-align: left;
  padding: 1.1rem 1.2rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.signals thead th {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 0;
}
.signals tbody th {
  font-family: var(--font-display);
  font-weight: 500;
  width: 26%;
}
.signals tbody td.signals__val { color: var(--ink); width: 28%; font-family: var(--font-mono); font-size: var(--fs-small); }
.signals tbody td:last-child { color: var(--muted); }
@media (max-width: 720px) {
  .signals thead { display: none; }
  .signals tr { display: grid; gap: 0.25rem; padding-block: 0.8rem; border-top: 1px solid var(--line); }
  .signals th, .signals td { border: 0; padding: 0.15rem 0; }
  .signals tbody th { width: auto; }
  .signals tbody td.signals__val { width: auto; }
}

/* =================================================================
   Restraint / private-by-design callout
   ================================================================= */
.note-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, var(--paper-pure), color-mix(in srgb, var(--accent-wash) 60%, var(--paper-pure)));
  display: grid;
  gap: 1rem;
}
.note-card .eyebrow::before { content: "::"; }

/* =================================================================
   FAQ
   ================================================================= */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.faq__sign { font-family: var(--font-mono); color: var(--accent); font-size: 1.3rem; transition: transform 0.3s var(--ease); flex: none; }
.faq__item[open] .faq__sign { transform: rotate(45deg); }
.faq__a { padding: 0 0 1.5rem; color: var(--muted); max-width: 68ch; }

/* =================================================================
   CTA band
   ================================================================= */
.cta-band {
  background: var(--dark);
  color: #fff;
  border-radius: clamp(16px, 3vw, 28px);
  padding: clamp(2.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 120% at 90% 10%, rgba(43,67,240,0.30), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { position: relative; max-width: 18ch; }
.cta-band p { position: relative; color: var(--dark-muted); margin-top: 1rem; max-width: 50ch; }
.cta-band__actions { position: relative; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* =================================================================
   Forms
   ================================================================= */
.form-grid { display: grid; gap: 1.4rem; }
@media (min-width: 720px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid--2 .field--full { grid-column: 1 / -1; } }

.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-pure);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.field__err { color: #c0392b; font-size: var(--fs-label); min-height: 1em; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #c0392b; }

.form-status {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  padding: 0.9em 1.1em;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}
.form-status[data-state="ok"] { background: var(--accent-wash); color: var(--accent-ink); }
.form-status[data-state="err"] { background: rgba(192,57,43,0.08); color: #c0392b; }

/* Tabs for contact intents */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tab {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  padding: 0.6em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: none;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =================================================================
   Footer
   ================================================================= */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem;
}
.footer__top {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
.footer__brand p { color: var(--dark-muted); margin-top: 1rem; max-width: 34ch; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__col a { color: rgba(255,255,255,0.82); font-size: var(--fs-small); }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}

/* =================================================================
   Scroll reveal
   ================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =================================================================
   Logo lockup
   ================================================================= */
.logo-lockup { display: inline-block; }
.logo-lockup img { width: 100%; height: auto; }
.hero__logo { max-width: 340px; margin-bottom: 1.5rem; }
.footer__logo { max-width: 220px; margin-bottom: 0.25rem; }

/* =================================================================
   Proof stat row
   ================================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--paper-pure); padding: 1.5rem clamp(1.2rem,2.5vw,1.8rem); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.stat__num .unit { font-size: 0.55em; color: var(--accent); }
.stat__label { margin-top: 0.6rem; color: var(--muted); font-size: var(--fs-small); line-height: 1.4; }

/* =================================================================
   Proof / results cards — confident, credible, method-safe
   ================================================================= */
.proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.9rem, 2vw, 1.4rem);
}
@media (min-width: 920px) { .proof { grid-template-columns: repeat(4, 1fr); } }

.proof__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* When interactive, the card is a <button>. */
button.proof__card { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
button.proof__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.proof__view {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
@media (hover: hover) {
  button.proof__card:hover .proof__view { color: var(--accent); gap: 0.7em; }
}
.proof__card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
  opacity: 0.85;
}
@media (hover: hover) {
  .proof__card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 40px -28px rgba(10,10,16,0.55); }
}
.proof__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.proof__num .u { font-size: 0.42em; color: var(--accent); letter-spacing: 0; margin-left: 0.1em; }
.proof__label { font-weight: 600; font-size: var(--fs-small); color: var(--ink); line-height: 1.3; }
.proof__desc { font-size: var(--fs-label); color: var(--muted); line-height: 1.5; }
.proof__tag {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.proof__tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.proof__foot {
  margin-top: 1.4rem;
  font-size: var(--fs-label);
  color: var(--muted-soft);
  line-height: 1.55;
  max-width: 80ch;
}

/* =================================================================
   Visualizations
   ================================================================= */
.viz {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-pure);
  overflow: hidden;
}
.viz__head {
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2rem) 0;
  display: grid;
  gap: 0.75rem;
}
.viz__title { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.viz__sub { color: var(--muted); max-width: 60ch; font-size: var(--fs-small); }

.viz__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.2rem clamp(1.4rem, 3vw, 2rem) 0;
}
.viz__btn {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.02em;
  padding: 0.55em 1em;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.viz__btn:hover { border-color: var(--ink); color: var(--ink); }
.viz__btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.viz__btn--scenario[aria-pressed="true"][data-tone="warn"] { background: var(--accent); border-color: var(--accent); }

.viz__scrub-hint {
  font-family: var(--font-mono); font-size: var(--fs-label);
  color: var(--muted-soft); align-self: center; margin-left: auto;
}
@media (hover: none) { .viz__scrub-hint { display: none; } }

.viz__chart { padding: 0.5rem clamp(0.8rem,2vw,1.4rem) 0.5rem; }
.viz__chart svg { width: 100%; height: auto; display: block; overflow: hidden; }
/* On small screens the SVG scales down; counter the shrink with larger
   font-size values (these are in SVG user-unit space, so they scale with
   the viewBox and keep axis labels readable at any viewport width). */
@media (max-width: 640px) {
  .ax-text  { font-size: 22px; }
  .anno-text { font-size: 22px; }
}
@media (max-width: 420px) {
  .ax-text  { font-size: 28px; }
  .anno-text { font-size: 28px; }
}

.viz__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 0 clamp(1.4rem, 3vw, 2rem) 0.5rem;
}
.viz__legend span { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--fs-small); color: var(--muted); font-family: var(--font-mono); }
.viz__swatch { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.viz__swatch--dot { width: 9px; height: 9px; border-radius: 50%; }

.viz__readout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding: 0.5rem clamp(1.4rem, 3vw, 2rem) 0;
}
.viz__r2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.viz__bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.viz__bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.7s var(--ease); }
.viz__caption { padding: 0.25rem clamp(1.4rem, 3vw, 2rem); color: var(--ink-soft); font-size: var(--fs-small); }

.viz__note {
  padding: 0.8rem clamp(1.4rem, 3vw, 2rem) 1.4rem;
  border-top: 1px solid var(--line);
  margin-top: 0.8rem;
  color: var(--muted-soft);
  font-size: var(--fs-label);
  line-height: 1.5;
}

/* SVG chart primitives */
.ax-line { stroke: var(--line); stroke-width: 1; }
.ax-text { fill: var(--muted); font-family: var(--font-mono); font-size: 13px; }
.ax-text--y { text-anchor: end; }
.ax-text--x { text-anchor: middle; }
.series-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.series-dot { stroke: var(--paper-pure); stroke-width: 1.5; }
.anno-text { font-family: var(--font-mono); font-size: 13px; }

/* =================================================================
   Team
   ================================================================= */
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 720px) { .team { grid-template-columns: 1fr; } }
.member { background: var(--paper-pure); padding: clamp(1.6rem,3vw,2.2rem); }
.member__avatar {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-wash); color: var(--accent-ink);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
}
.member__name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; }
.member__role { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-top: 0.4rem; }
.member__bio { color: var(--muted); margin-top: 0.9rem; font-size: var(--fs-small); }

/* =================================================================
   Skip link (accessibility)
   ================================================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.85em 1.3em;
  border-radius: 0 0 10px 0;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}
.skip-link:focus { left: 0; }

/* =================================================================
   Golden-ratio / proportional splits
   ================================================================= */
.split-phi {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 920px) {
  /* 1.618 : 1 — golden ratio (fr units can't live inside calc reliably) */
  .split-phi { grid-template-columns: 1.618fr 1fr; }
  .split-phi--rev { grid-template-columns: 1fr 1.618fr; }
  .split-phi--rev > .feature__media { order: 2; }
}

/* =================================================================
   Media / figures
   ================================================================= */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media__tint {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 85% 0%, rgba(43,67,240,0.18), transparent 60%);
  mix-blend-mode: screen;
}
.media__edge {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  border-radius: var(--radius);
}
.feature__media { box-shadow: 0 34px 70px -34px rgba(11,11,13,0.55); }
@media (hover: hover) { .media:hover img { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .media img { transition: none; } .media:hover img { transform: none; } }

.feature__body .eyebrow { margin-bottom: 1.1rem; }
.feature__body .h2 { margin-bottom: 1.1rem; }

/* =================================================================
   Image domain cards
   ================================================================= */
.cards-media {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .cards-media { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards-media { grid-template-columns: 1fr; } }

/* Flip-card system: wavy "swipe" reveal (used by domain cards + principles).
   The back face is clipped to a zero-width column at the left, then a gently
   undulating leading edge sweeps across to wipe over the front face. */
.flip { position: relative; }
.flip__inner { position: relative; display: block; width: 100%; height: 100%; }
.flip__face { display: block; position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius); }
.flip__face--back {
  z-index: 5;
  clip-path: polygon(0% 0%, 0% 0%, 0% 17%, 0% 34%, 0% 50%, 0% 66%, 0% 83%, 0% 100%, 0% 100%);
  -webkit-clip-path: polygon(0% 0%, 0% 0%, 0% 17%, 0% 34%, 0% 50%, 0% 66%, 0% 83%, 0% 100%, 0% 100%);
  transition: -webkit-clip-path 0.62s cubic-bezier(0.62, 0.02, 0.21, 1);
  transition: clip-path 0.62s cubic-bezier(0.62, 0.02, 0.21, 1);
  transition: clip-path 0.62s cubic-bezier(0.62, 0.02, 0.21, 1), -webkit-clip-path 0.62s cubic-bezier(0.62, 0.02, 0.21, 1);
  will-change: clip-path;
}
@media (hover: hover) {
  .flip:hover .flip__face--back {
    clip-path: polygon(0% 0%, 100% 0%, 94% 17%, 100% 34%, 94% 50%, 100% 66%, 94% 83%, 100% 100%, 0% 100%);
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 94% 17%, 100% 34%, 94% 50%, 100% 66%, 94% 83%, 100% 100%, 0% 100%);
  }
}
.flip:focus-visible .flip__face--back,
.flip.is-flipped .flip__face--back {
  clip-path: polygon(0% 0%, 100% 0%, 94% 17%, 100% 34%, 94% 50%, 100% 66%, 94% 83%, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 94% 17%, 100% 34%, 94% 50%, 100% 66%, 94% 83%, 100% 100%, 0% 100%);
}
.flip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .flip__face--back { transition: none; } }

/* Domain image flip cards */
.mcard {
  position: relative; display: block; width: 100%; height: 360px;
  padding: 0; border: 0; background: var(--dark); color: #fff;
  border-radius: var(--radius); cursor: pointer; text-align: left;
}
.mcard .flip__inner { height: 100%; }
.mcard__front { background: var(--dark); }
.mcard__front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mcard__front::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,12,0.04) 0%, rgba(10,10,12,0.32) 38%, rgba(10,10,12,0.74) 70%, rgba(10,10,12,0.97) 100%);
}
@media (hover: hover) { .mcard:hover .mcard__front img { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .mcard__front img { transition: none; } }
.mcard__overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.4rem, 2.5vw, 1.9rem); display: flex; flex-direction: column; gap: 0.45rem; text-shadow: 0 1px 14px rgba(0,0,0,0.6); }
.mcard__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.9vw, 1.4rem); letter-spacing: -0.02em; color: #fff; line-height: 1.1; }
.mcard__back { background: linear-gradient(165deg, #18204a 0%, #0b0c18 72%); padding: clamp(1.5rem, 2.6vw, 2rem); display: flex; flex-direction: column; gap: 0.85rem; }
.mcard__back p { color: rgba(255,255,255,0.86); font-size: var(--fs-small); }
.mcard__more { margin-top: auto; font-family: var(--font-mono); font-size: var(--fs-label); color: var(--accent-light); display: inline-flex; align-items: center; gap: 0.45em; }
.mcard__idx { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--accent-light); letter-spacing: 0.05em; }
@media (max-width: 600px) { .mcard { height: 320px; } }

/* Principle flip cards */
.cellf { position: relative; display: block; width: 100%; height: auto; min-height: 232px; padding: 0; border: 0; background: var(--paper-pure); color: var(--ink); cursor: pointer; text-align: left; }
/* Auto-height flip: stack both faces in one grid cell so the card grows
   to fit the taller face (no clipped descriptions). */
.cellf .flip__inner { height: 100%; display: grid; }
.cellf .flip__face { border-radius: 0; position: relative; inset: auto; grid-area: 1 / 1; } /* square inside the hairline grid */
.cellf__front, .cellf__back { display: flex; flex-direction: column; padding: clamp(1.6rem, 3vw, 2.2rem); }
.cellf__front { gap: 0.6rem; background: var(--paper-pure); }
.cellf__front .cell__idx { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--accent); }
.cellf__front .h3 { margin-top: 0.2rem; }
.cellf__hint { margin-top: auto; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-soft); display: inline-flex; align-items: center; gap: 0.4em; }
.cellf__back { justify-content: center; gap: 0.6rem; background: linear-gradient(165deg, color-mix(in srgb, var(--accent-wash) 80%, var(--paper-pure)), var(--paper-pure)), var(--paper-pure); }
.cellf__back .cell__idx { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--accent); }
.cellf__back p { color: var(--ink-soft); font-size: var(--fs-small); }
@media (max-width: 880px) { .cellf { min-height: 200px; } }

/* =================================================================
   Industries band
   ================================================================= */
.industries {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .industries { grid-template-columns: repeat(2, 1fr); } }
.industry { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--dark); }
.industry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.industry::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,0.10), rgba(10,10,12,0.82)); }
.industry span {
  position: absolute; left: 1rem; bottom: 0.95rem; right: 0.75rem; z-index: 1; color: #fff;
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3;
}
@media (hover: hover) { .industry:hover img { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .industry img { transition: none; } }

/* =================================================================
   Read-aloud control
   ================================================================= */
.nav__listen {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono); font-size: var(--fs-label);
  padding: 0.55em 0.95em; border-radius: 999px;
  border: 1px solid var(--line-strong); background: none; color: var(--ink-soft);
  cursor: pointer; transition: all 0.2s var(--ease);
}
.nav__listen[hidden] { display: none; }
.nav__listen:hover { border-color: var(--ink); }
.nav__listen[aria-pressed="true"] { background: var(--accent-wash); border-color: var(--accent); color: var(--accent-ink); }
.nav__listen svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 480px) { .nav__listen .nav__listen-text { display: none; } }

/* Theme (dark/light) toggle */
.nav__theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 999px;
  border: 1px solid var(--line-strong); background: none; color: var(--ink-soft);
  cursor: pointer; transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__theme:hover { border-color: var(--ink); color: var(--ink); }
.nav__theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav__theme svg { width: 17px; height: 17px; flex: none; }
.nav__theme .icon-sun { display: none; }
.nav__theme .icon-moon { display: block; }
:root[data-theme="dark"] .nav__theme .icon-sun { display: block; }
:root[data-theme="dark"] .nav__theme .icon-moon { display: none; }

.ra-bar {
  position: fixed; left: 50%; bottom: clamp(1rem, 3vw, 2rem);
  transform: translateX(-50%) translateY(24px);
  z-index: 200; display: flex; align-items: center; gap: 0.35rem;
  background: var(--ink); color: #fff; padding: 0.5rem 0.55rem; border-radius: 999px;
  box-shadow: 0 18px 44px -16px rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.ra-bar.is-open { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.ra-bar button {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.08); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.ra-bar button:hover { background: rgba(255,255,255,0.18); }
.ra-bar button svg { width: 16px; height: 16px; }
.ra-bar__label { font-family: var(--font-mono); font-size: var(--fs-label); padding: 0 0.5rem 0 0.7rem; color: rgba(255,255,255,0.72); white-space: nowrap; }
.ra-bar__speed { font-family: var(--font-mono); font-size: var(--fs-label); min-width: 2.6em; text-align: center; color: rgba(255,255,255,0.9); }

.ra-reading {
  background: var(--accent-wash);
  box-shadow: 0 0 0 6px var(--accent-wash);
  border-radius: 4px;
  scroll-margin-top: 90px;
}

/* Utilities */
.stack-sm > * + * { margin-top: 0.75rem; }
.stack > * + * { margin-top: 1.25rem; }
.text-center { text-align: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45em 0.9em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* =================================================================
   Hero v2 — editorial landing
   ================================================================= */
.hero--v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(94vh, 940px);
  isolation: isolate;
}
.hero--v2 .hero__bg { z-index: -5; }
.hero--v2 .hero__bg img { opacity: 0.42; object-position: right center; }
.hero--v2 .hero__canvas { z-index: -3; opacity: 0.8; }
.hero--v2 .hero__veil {
  z-index: -2;
  background:
    radial-gradient(70% 80% at 78% 30%, rgba(43,67,240,0.22), transparent 60%),
    linear-gradient(100deg, rgba(10,10,12,0.95) 0%, rgba(10,10,12,0.72) 40%, rgba(10,10,12,0.30) 75%, rgba(10,10,12,0.55) 100%),
    linear-gradient(180deg, rgba(10,10,12,0.30) 0%, rgba(10,10,12,0) 30%, rgba(10,10,12,0.55) 100%);
}

/* Aurora + grain depth */
.hero__aurora {
  position: absolute; inset: -25%; z-index: -4; pointer-events: none;
  background:
    radial-gradient(38% 48% at 22% 32%, rgba(43,67,240,0.40), transparent 60%),
    radial-gradient(34% 44% at 82% 22%, rgba(24,200,200,0.18), transparent 60%),
    radial-gradient(40% 50% at 72% 82%, rgba(43,67,240,0.26), transparent 62%);
  filter: blur(48px);
  animation: aurora 20s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.12); }
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
  mix-blend-mode: overlay;
}

/* Layout */
.hero__grid {
  flex: 1 1 auto;
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-block: clamp(4.5rem, 10vh, 7.5rem);
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.45fr 1fr; }
}

/* Status pill */
.hero__status {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  padding: 0.5em 0.95em; background: rgba(255,255,255,0.04);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light);
  box-shadow: 0 0 0 0 rgba(143,160,255,0.55); animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(143,160,255,0.55); }
  70% { box-shadow: 0 0 0 11px rgba(143,160,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(143,160,255,0); }
}

/* Headline */
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.7rem, 6.4vw, 5.4rem);
  line-height: 0.97; letter-spacing: -0.04em;
  margin: 1.5rem 0 0; max-width: 15ch; color: #fff;
  text-wrap: balance;
}
.hero__title .grad {
  background: linear-gradient(104deg, #ffffff 8%, #9fb0ff 58%, #d4dcff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Glass proof panel */
.hero__panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 18px;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 34px 70px -34px rgba(0,0,0,0.65);
}
.hero__panel-head {
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dark-muted); display: flex; align-items: center; gap: 0.55em; margin-bottom: 0.3rem;
}
.hero__metrics { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.hero__metrics li {
  display: flex; align-items: baseline; gap: 1.4rem;
  padding: 0.9rem 0; border-top: 1px solid rgba(255,255,255,0.09);
}
.hero__metrics li:first-child { border-top: 0; }
.hero__metrics b {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  color: #fff; letter-spacing: -0.02em; min-width: 5.4rem; white-space: nowrap; flex: none;
}
.hero__metrics b .u { color: var(--accent-light); font-size: 0.62em; }
.hero__metrics span { color: rgba(255,255,255,0.80); font-size: var(--fs-small); line-height: 1.35; }
.hero__panel-foot { margin-top: 1rem; font-size: var(--fs-label); color: var(--dark-muted); line-height: 1.4; }

/* Marquee ticker */
.hero__ticker {
  position: relative; z-index: 1;
  border-top: 1px solid var(--dark-line);
  background: rgba(10,10,12,0.35);
  backdrop-filter: blur(6px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero__ticker-track { display: inline-flex; white-space: nowrap; animation: ticker 34s linear infinite; }
.hero__ticker-track span {
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dark-muted); padding: 0.95rem 0; display: inline-flex; align-items: center;
}
.hero__ticker-track span::before { content: "—"; color: var(--accent-light); margin: 0 1.5rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .hero--v2 { min-height: auto; }
  .hero__panel { max-width: 520px; }
}
/* Tighten the airy gap between the hero ticker and the first section on phones */
@media (max-width: 640px) {
  .hero__grid { padding-block: clamp(2.6rem, 7vh, 4.5rem) clamp(1.5rem, 4vh, 2.4rem); }
  .hero__ticker-track span { padding-block: 0.78rem; }
  .hero--v2 + .section { padding-top: clamp(2.2rem, 7vw, 3.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__aurora, .hero__ticker-track, .pulse { animation: none !important; }
}

/* =================================================================
   Detail modal (domain "more substance")
   ================================================================= */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,8,12,0.62); backdrop-filter: blur(5px); animation: modalFade 0.25s ease; }
.modal__dialog {
  position: relative; z-index: 1; width: 100%; max-width: 640px; max-height: 90vh; overflow: auto;
  background: var(--paper-pure); border-radius: 20px;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.65);
  animation: modalPop 0.32s var(--ease);
}
.modal__media { margin: 0; height: 210px; overflow: hidden; position: relative; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,0.2), transparent 40%); }

/* Infographic figure inside a modal (static SVG, method-safe) */
.modal__figure {
  margin: 0;
  padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.2rem, 3vw, 1.8rem) 0.6rem;
  background: radial-gradient(120% 120% at 50% 0%, var(--accent-wash), var(--paper-pure) 70%);
  border-bottom: 1px solid var(--line);
}
.modal__figure svg { width: 100%; height: auto; display: block; }
.modal__figcap {
  margin: 0.6rem 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
/* Infographic SVG primitives */
.ig-axis { stroke: var(--line-strong); stroke-width: 1.2; }
.ig-grid { stroke: var(--line); stroke-width: 1; }
.ig-text { fill: var(--muted); font-family: var(--font-mono); font-size: 13px; }
.ig-text--ink { fill: var(--ink); font-weight: 600; }
.ig-text--accent { fill: var(--accent-ink); font-weight: 600; }
.ig-text--warn { fill: #b8501f; }
.ig-diag { stroke: var(--muted-soft); stroke-width: 1.4; stroke-dasharray: 5 4; }
.ig-pt { fill: var(--accent); }
.ig-curve { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.ig-bar-base { fill: var(--muted-soft); }
.ig-bar-accent { fill: var(--accent); }
.ig-marker-accent { stroke: var(--accent); stroke-width: 1.6; }
.ig-marker-muted { stroke: var(--muted-soft); stroke-width: 1.6; }
.ig-win { fill: var(--accent); fill-opacity: 0.10; }
.modal__body { padding: clamp(1.6rem, 3vw, 2.4rem); }
.modal__body .eyebrow { margin-bottom: 0.8rem; }
.modal__title { margin: 0 0 1rem; }
.modal__lead { color: var(--ink-soft); }
.modal__points { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 0.85rem; }
.modal__points li { position: relative; padding-left: 1.7rem; color: var(--muted); }
.modal__points li::before { content: ""; position: absolute; left: 0; top: 0.52em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.modal__scope { font-size: var(--fs-small); color: var(--ink-soft); background: var(--accent-wash); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.modal__scope strong { color: var(--accent-ink); }
.modal__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.modal__close {
  position: absolute; top: 0.85rem; right: 0.85rem; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(8,8,12,0.45); color: #fff; font-size: 1.5rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.modal__close:hover { background: rgba(8,8,12,0.7); }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal__backdrop, .modal__dialog { animation: none; } }
body.modal-open { overflow: hidden; }
