/* ==========================================================================
   Cerevio — site styles
   Tokens first: change colors, type and spacing here.
   ========================================================================== */

:root {
  --ground: #F3F2EF;        /* page background */
  --surface: #FFFFFF;       /* cards */
  --ink: #16181B;           /* main text */
  --ink-2: #3E444B;         /* body text */
  --ink-3: #5A6068;         /* labels */
  --line: #D8D6D1;          /* hairlines on light */
  --line-soft: #E6E4DF;

  --night: #0F1113;         /* dark panels */
  --night-line: #2A2E33;
  --night-text: #F4F5F6;
  --night-2: #B9BEC4;
  --night-3: #A9AFB7;

  --accent: #7FD3BF;        /* the target's mint — used sparingly */
  --amber: #C98A2E;
  --error: #F2A08F;

  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --frame: clamp(8px, 1.2vw, 16px);   /* outer gutter around rounded panels */
  --pad: clamp(16px, 4vw, 40px);      /* inner side padding */
  --max: 1280px;
  --radius-lg: 24px;
  --radius: 20px;
}

/* --------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: var(--frame);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
::selection { background: var(--accent); color: var(--night); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------- Type */
.mono, .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
}
.eyebrow { margin-bottom: 20px; }
.eyebrow--center { text-align: center; margin-bottom: 32px; }
.eyebrow--dark { color: var(--night-3); }

.display {
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.display--narrow { max-width: 13em; }
.display--xl { font-size: clamp(44px, 6.4vw, 92px); line-height: .98; letter-spacing: -.04em; }
.h2 { font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.h3 { font-weight: 400; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.02em; }
.muted { color: var(--ink-2); font-size: 15px; }
.small-gap { margin-top: 24px; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #EDEEEF; }
.btn--ghost { background: transparent; color: var(--night-text); border-color: #3A3F45; }
.btn--ghost:hover { border-color: #5A6068; }

/* --------------------------------------------------------------- Nav */
.nav {
  position: fixed; z-index: 50;
  top: calc(var(--frame) + 16px);
  left: calc(var(--frame) + 16px);
  right: calc(var(--frame) + 16px);
  color: #fff;
}
.nav__bar {
  max-width: calc(var(--max) + 80px); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .3s ease, border-color .3s ease;
}
.nav.is-scrolled .nav__bar { background: rgba(15, 17, 19, .86); border-color: rgba(255, 255, 255, .08); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 20px; letter-spacing: -.02em; min-height: 44px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav__links a[data-nav] { text-decoration: none; color: #DADDE0; position: relative; padding: 12px 0; }
.nav__links a[data-nav]:hover { color: #fff; }
.nav__links a[data-nav].is-active { color: #fff; }
.nav__links a[data-nav].is-active::after {
  content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
}
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; cursor: pointer; position: relative;
}
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .25s ease, top .25s ease; }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px; border-radius: 24px;
    background: #15181B; border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 48px -16px rgba(0,0,0,.5);
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open .nav__bar { background: #15181B; }
  .nav__links a[data-nav] { padding: 14px 12px; font-size: 18px; }
  .nav__links a[data-nav].is-active::after { display: none; }
  .nav__links .btn { margin-top: 8px; justify-content: center; }
}

/* --------------------------------------------------------------- Hero */
/* Hero card = one pane of frosted glass. Coloured shapes sit behind it; where
   they pass under the card they blur and soften, where they spill past its
   edge they stay crisp, which is what makes it read as glass. */
html, body { overflow-x: clip; }
.hero-wrap { position: relative; isolation: isolate; }
.hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: var(--radius-lg); clip-path: inset(0 round var(--radius-lg)); }
.hero-orbs span { position: absolute; border-radius: 50%; will-change: transform; }
.hero-orbs span:nth-child(1) { width: min(90vw, 1300px); aspect-ratio: 1; right: -30vw; top: -45vw;
  background: radial-gradient(circle, rgba(222, 225, 228, .55) 0%, rgba(160, 166, 171, .28) 35%, rgba(120, 126, 132, 0) 70%);
  animation: orb-a 26s ease-in-out infinite alternate; }
.hero-orbs span:nth-child(2) { width: min(80vw, 1150px); aspect-ratio: 1; left: -25vw; bottom: -50vw;
  background: radial-gradient(circle, rgba(140, 146, 152, .45) 0%, rgba(100, 106, 112, .22) 38%, rgba(80, 86, 92, 0) 70%);
  animation: orb-b 30s ease-in-out infinite alternate; }
.hero-orbs span:nth-child(3) { width: min(60vw, 860px); aspect-ratio: 1; left: 20%; top: -20vw;
  background: radial-gradient(circle, rgba(255, 255, 255, .22) 0%, rgba(210, 214, 218, .1) 40%, rgba(200, 204, 208, 0) 70%);
  animation: orb-c 22s ease-in-out infinite alternate; }
.hero-orbs--panel span:nth-child(3) { top: 45%; left: 45%; }
.panel.panel--glass > * { position: relative; z-index: 1; }
@keyframes orb-a { to { transform: translate(-5vw, 6vw) scale(1.06); } }
@keyframes orb-b { to { transform: translate(8vw, -5vw) scale(.94); } }
@keyframes orb-c { to { transform: translate(3vw, 10vw) scale(1.1); } }

.hero, .panel.panel--glass {
  position: relative; z-index: 1; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .5),
    inset 1px 0 1px rgba(255, 255, 255, .18),
    inset 0 -1px 1px rgba(0, 0, 0, .4),
    inset 0 0 40px rgba(255, 255, 255, .04),
    0 40px 80px -30px rgba(10, 14, 18, .6);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 26%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .05) 100%),
    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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    rgba(7, 14, 17, .80);
  -webkit-backdrop-filter: blur(90px) saturate(120%); backdrop-filter: blur(90px) saturate(120%);
}
.hero {
  min-height: max(640px, min(860px, calc(100svh - 2 * var(--frame))));
  border-radius: var(--radius-lg);
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 26%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .05) 100%),
    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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    rgba(7, 14, 17, .80);
  -webkit-backdrop-filter: blur(90px) saturate(120%); backdrop-filter: blur(90px) saturate(120%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .5),
    inset 1px 0 1px rgba(255, 255, 255, .18),
    inset 0 -1px 1px rgba(0, 0, 0, .4),
    inset 0 0 40px rgba(255, 255, 255, .04),
    0 40px 80px -30px rgba(10, 14, 18, .6);
}
/* lit rim, brightest at the top-left */
.hero::before, .panel.panel--glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; z-index: 3; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .14) 28%, rgba(255, 255, 255, .05) 60%, rgba(127, 211, 191, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* faint diagonal reflection */
.hero::after, .panel.panel--glass::after {
  content: ''; position: absolute; top: -40%; left: 12%; width: 22%; height: 180%; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
  transform: rotate(20deg);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero, .panel.panel--glass { background-color: #0E1316; }
}
.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__svg { width: 100%; height: 100%; }
.hero__canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s ease; }
.hero__canvas.is-on { opacity: 1; }
.hero { touch-action: pan-y; }
.hero.is-dragging { cursor: grabbing !important; user-select: none; }
.hero__path { stroke: #262A2F; stroke-width: 1; stroke-dasharray: 3 7; }
.hero__ring { stroke: var(--accent); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ring 3s ease-out infinite; }
.hero__ring--late { animation-delay: 1.5s; }
.hero__halo { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.hero__dot { fill: #fff; }
.hero__target { animation: pursuit 12s ease-in-out infinite; }
.hero.is-paused .hero__target, .hero.is-paused .hero__ring { animation-play-state: paused; }

@keyframes pursuit {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(300px, -110px); }
  50% { transform: translate(0, 0); }
  75% { transform: translate(-300px, 110px); }
}
@keyframes ring {
  0% { opacity: 0; transform: scale(.4); }
  25% { opacity: .6; }
  100% { opacity: 0; transform: scale(1.6); }
}

.hero__notice {
  position: absolute; top: 100px; left: calc(16px + 24px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--night-3);
}
.hero__content {
  position: relative;
  padding: clamp(24px, 4vw, 56px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px;
}
.hero__title {
  max-width: 10em;
  font-weight: 300; font-size: clamp(46px, 7.4vw, 108px); line-height: .98; letter-spacing: -.035em;
  opacity: 0; transform: translateY(16px); animation: rise .9s .1s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__aside {
  max-width: 24em; display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
  color: #C9CDD2;
  opacity: 0; animation: rise .9s .35s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .hero__notice { top: 92px; left: 24px; right: 24px; }
}

/* --------------------------------------------------------------- Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(80px, 10vw, 140px); }
.section--tall { padding-top: clamp(80px, 11vw, 160px); padding-bottom: clamp(64px, 8vw, 112px); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 32px; }
.section__head .h2 { max-width: 18em; }
.section__head .muted { max-width: 22em; }
.rule-top { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); }

.statement { max-width: 1080px; margin: 0 auto; padding: clamp(80px, 11vw, 160px) var(--pad); text-align: center; }
.statement__text { font-weight: 300; font-size: clamp(26px, 3.6vw, 48px); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.statement__text span { color: #6E747C; }

.card { background: var(--surface); border-radius: var(--radius); }

.domains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.domain { padding: 28px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; transition: transform .3s ease; }
.domain:hover { transform: translateY(-3px); }
.domain h3 { font-weight: 500; font-size: 24px; letter-spacing: -.015em; margin-bottom: 8px; }
.domain p { font-size: 15px; color: #4C525A; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 40px 64px; }
.prose { display: flex; flex-direction: column; gap: 28px; font-size: 16px; color: var(--ink-2); }
sup { font-size: .7em; line-height: 0; margin-left: 1px; }
sup a { text-decoration: none; color: var(--ink-3); padding: 0 1px; }
sup a:hover { color: var(--ink); text-decoration: underline; }

.stats { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.stat { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.stat__num { font-weight: 300; font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat__label { max-width: 26em; font-size: 15px; color: #4C525A; }
.stat__num--live { color: #0F1113; display: flex; align-items: baseline; gap: 12px; }
.stat__num--live::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #C24B3A; flex: none; align-self: center; animation: live-dot 1.6s ease-in-out infinite; }
/* white frosted glass cards */
.stats { position: relative; isolation: isolate; }
.stats .stat {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .55) 38%, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0) 54%, rgba(255, 255, 255, .25) 58%, rgba(255, 255, 255, 0) 64%),
    linear-gradient(160deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .10) 45%, rgba(255, 255, 255, .22));
  -webkit-backdrop-filter: blur(7px) saturate(140%) brightness(1.04); backdrop-filter: blur(7px) saturate(140%) brightness(1.04);
  border: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .55),
    inset 0 2px 1px rgba(255, 255, 255, .9),
    inset 0 -1px 1px rgba(15, 17, 19, .06),
    inset 0 0 28px rgba(255, 255, 255, .45),
    0 1px 2px rgba(15, 17, 19, .04),
    0 30px 60px -34px rgba(15, 17, 19, .30);
}
.stats .stat::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, .2) 30%, rgba(15, 17, 19, .10) 55%, rgba(255, 255, 255, .15) 75%, #fff 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@supports not (backdrop-filter: blur(1px)) { .stats .stat { background: rgba(255, 255, 255, .9); } }
@keyframes live-dot { 50% { opacity: .25; } }

/* Dark panels */
.panel { background: var(--night); color: var(--night-text); border-radius: var(--radius-lg); }
.panel__inner { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 128px) clamp(24px, 4vw, 56px); }

/* Principles: one row per principle; the row in view lights up and animates */
.prs { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; }
.pr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(40px, 6vw, 96px); align-items: center; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--night-line); transition: opacity .6s ease; }
.pr:last-child { border-bottom: 1px solid var(--night-line); }
.pr__text h3 { font-weight: 300; font-size: clamp(26px, 3vw, 40px); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 14px; }
.pr__text p { max-width: 30em; font-size: 16px; line-height: 1.65; color: var(--night-2); }
.pr__visual { aspect-ratio: 16 / 10; max-width: 100%; border: 1px solid var(--night-line); border-radius: var(--radius); background: #121518; }
.pr__visual svg { width: 100%; height: 100%; }
/* With JS: only the row in view is bright and moving */
.js .prs.is-ready .pr { opacity: .3; }
.js .prs.is-ready .pr * { animation-play-state: paused; }
.js .prs.is-ready .pr.is-active { opacity: 1; }
.js .prs.is-ready .pr.is-active * { animation-play-state: running; }
@media (max-width: 860px) {
  .pr { grid-template-columns: minmax(0, 1fr); }
  .pr__visual { order: -1; }
}
/* 2 · continuous line draws in */
@keyframes pm-draw{0%{stroke-dashoffset:700}60%,100%{stroke-dashoffset:0}}
.pm-draw{stroke-dasharray:700;animation:pm-draw 3s cubic-bezier(.4,0,.2,1) infinite}
@keyframes pm-fade{0%,100%{opacity:.25}50%{opacity:.6}}
.pm-steps{animation:pm-fade 3s ease-in-out infinite}

/* 3 · bars grow, one abstains */
@keyframes pm-bar{0%{transform:scaleY(0)}35%,85%{transform:scaleY(1)}100%{transform:scaleY(0)}}
.pm-bar{transform-box:fill-box;transform-origin:bottom center;animation:pm-bar 4s cubic-bezier(.3,.7,.2,1) infinite}
@keyframes pm-blink{0%,30%{opacity:0}40%,85%{opacity:1}100%{opacity:0}}
.pm-abstain{animation:pm-blink 4s ease infinite}

/* 4 · offline: pulse inside, signal crossed out */
@keyframes pm-pulse{0%{opacity:.7;transform:scale(.5)}100%{opacity:0;transform:scale(1.8)}}
.pm-pulse{transform-box:fill-box;transform-origin:center;animation:pm-pulse 2.2s ease-out infinite}
@keyframes pm-strike{0%,30%{stroke-dashoffset:120}55%,100%{stroke-dashoffset:0}}
.pm-strike{stroke-dasharray:120;animation:pm-strike 3s ease infinite}

/* 5 · trace from result back to inputs */
@keyframes pm-trace{0%{stroke-dashoffset:200}50%,100%{stroke-dashoffset:0}}
.pm-trace{stroke-dasharray:200;animation:pm-trace 3.6s ease-in-out infinite}
@keyframes pm-node{0%,40%{fill:#181B1E}55%,100%{fill:#7FD3BF}}
.pm-node{animation:pm-node 3.6s ease infinite}


/* Status */
.status { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 12px; }
.status__card { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: #4C525A; }
.status__card h3 { font-weight: 500; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); margin: 10px 0 2px; }
.chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  background: var(--ground); border-radius: 999px; padding: 6px 14px;
}
.chip__dot { width: 7px; height: 7px; border-radius: 50%; }
.chip__dot--accent { background: #3FA98F; }
.chip__dot--amber { background: var(--amber); }
.phases { display: flex; flex-direction: column; color: var(--ink); }
.phases li { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.phases li:last-child { border-bottom: 1px solid var(--line-soft); }
.phases .mono { min-width: 24px; padding-top: 3px; }

/* Research */
.research { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 32px 64px; align-items: end; }
.chip--light { background: var(--surface); }


/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 56px 72px; align-items: start; }
.contact__intro { display: flex; flex-direction: column; gap: 28px; color: #C9CDD2; }
.contact__intro p { max-width: 28em; }
.contact__direct { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.contact__email { color: #fff; font-size: 18px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact__copied { font-family: var(--mono); font-size: 12px; color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--night-2); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: #fff;
  background: #181B1E; border: 1px solid #33383E; border-radius: 14px;
  padding: 14px 16px; min-height: 50px;
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23B9BEC4' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field select option { color: var(--ink); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #4A5057; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background-color: #1C2023; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__error { font-size: 13px; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form__note { font-size: 13px; color: var(--night-3); }
.form__done { border: 1px solid #2F5D52; background: #13201D; border-radius: 14px; padding: 16px 18px; font-size: 15px; color: #CFE9E2; }
.form__done a { color: #fff; }
.form__error { font-size: 15px; color: var(--error); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* References + footer */
.refs { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 6vw, 72px) var(--pad) 24px; }
.refs h2 { margin-bottom: 18px; }
.refs ol { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.55; color: #4C525A; max-width: 62em; }
.refs li:target { color: var(--ink); background: #E9F6F2; border-radius: 6px; }
.refs li a { text-decoration: none; color: var(--ink-3); margin-left: 4px; }

.footer {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 16px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 40px;
  font-size: 13px; color: #4C525A;
}
.footer p:last-child { max-width: 46em; }
.footer__brand { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------------- Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__target, .hero__ring, .hero-orbs span { animation: none; }
  .hero__ring { opacity: .35; }
  .pr * { animation: none !important; }
  .stat__num--live::before { animation: none; }
  .js .prs.is-ready .pr { transition: none; }
  .hero__title, .hero__aside { animation: none; opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .domain { transition: none; }
}


/* principle illustrations sit in the dark glass as darker, clearer insets */
.panel--glass .pr__visual { background: rgba(4, 8, 10, .32); border-color: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.panel--glass .pr { border-top-color: rgba(255, 255, 255, .09); }
.pr__canvas { display: block; width: 100%; height: 100%; }


/* contact form fields sit in the dark glass as clearer, darker insets */
.panel--glass .field input, .panel--glass .field select, .panel--glass .field textarea {
  background-color: rgba(4, 8, 10, .32); border-color: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.panel--glass .field input:focus, .panel--glass .field select:focus, .panel--glass .field textarea:focus { background-color: rgba(4, 8, 10, .45); border-color: var(--accent); }
.panel--glass .field select option { background: #15181B; color: #fff; }
.nav__logo { height: 30px; width: auto; display: block; }

/* Where we are: statement + study card */
.research { align-items: center; }
.research__lead { display: flex; flex-direction: column; gap: 28px; }
.research__statement { max-width: 34em; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); }
.pathway { margin-top: clamp(4px, 1vw, 16px); height: clamp(180px, 20vw, 260px); }
.pathway canvas { display: block; width: 100%; height: 100%; }
.stat__num--live.is-done::before { animation: none; background: var(--ink-3, #8A9097); }
/* the live count grows to 13 characters (1,200,000,000); shrink it to fit its card */
.stats .stat { container-type: inline-size; }
.stat__num--live { font-size: min(clamp(48px, 6vw, 84px), calc(136cqi / var(--len, 9))); }
