/* BLSSD — site system. Governs index, about and mydata. See ../DESIGN.md. */

/* ============ fonts ============ */
/* Self-hosted Google Fonts (OFL), greek + latin subsets only: no third-party
   request blocks first paint. The logo face is subset to the letters B L S D . */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/inter-tight-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Serif Display"; font-style: italic; font-weight: 300 400; font-display: swap; src: url("/assets/fonts/noto-serif-display-italic-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Noto Serif Display"; font-style: italic; font-weight: 300 400; font-display: swap; src: url("/assets/fonts/noto-serif-display-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/commissioner-700-logo.woff2") format("woff2"); unicode-range: U+2E, U+42, U+44, U+4C, U+53; }

/* ============ tokens ============ */
:root {
  --black:   #08080A;
  --black-2: #111114;
  --black-3: #19191E;
  --paper:   #F3F2EE;
  --paper-2: #E9E7E1;
  --white:   #FFFFFF;
  --ink:     #0B0B0D;

  /* The one colour. Text on it is always --ink. */
  --signal:  #FF5A36;
  /* Atmosphere only: glows, particles, gradients. Never text, never UI. */
  --lilac:   #B7A6FF;
  --ice:     #A8E6FF;

  --display: "Inter Tight", Arial, "Helvetica Neue", sans-serif; /* Arial first: within 1% of Inter Tight's width, so the swap does not rewrap the hero */
  --serif:   "Noto Serif Display", Georgia, serif;
  --mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;
  --logo:    "Commissioner", "Helvetica Neue", Arial, sans-serif;

  --gutter:  clamp(1rem, 4.4vw, 4rem);
  --maxw:    86rem;
  --band:    clamp(5rem, 12vw, 10rem);

  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;

  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --nav-h: 4.5rem;
}

/* Sections set their own ground. Components read --fg / --line / --surface. */
.theme-dark {
  background: var(--black); color: var(--white);
  --fg: var(--white); --fg-2: rgba(255,255,255,.66); --fg-3: rgba(255,255,255,.48);
  --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.22);
  --surface: rgba(255,255,255,.04); --surface-2: rgba(255,255,255,.08);
  --btn-bg: var(--white); --btn-fg: var(--ink);
}
.theme-light {
  background: var(--paper); color: var(--ink);
  --fg: var(--ink); --fg-2: #4A4A52; --fg-3: #6C6C74;
  --line: rgba(11,11,13,.11); --line-2: rgba(11,11,13,.22);
  --surface: #FFFFFF; --surface-2: #FBFAF7;
  --btn-bg: var(--ink); --btn-fg: var(--white);
}
.theme-light.alt { background: var(--paper-2); }

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark; background: var(--black);
  scroll-behavior: smooth; scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--display); font-size: 17px; line-height: 1.55;
  letter-spacing: -0.006em; font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--signal); color: var(--ink); }

h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--signal); color: var(--ink); font-weight: 600;
  padding: .8rem 1.2rem; border-radius: 999px; transition: top .2s;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

/* Film grain on dark grounds: texture, not decoration you notice. */
.theme-dark.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .07;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============ type ============ */
.display {
  font-size: clamp(3rem, 9.2vw, 9.6rem); line-height: .92;
  letter-spacing: -0.048em; font-weight: 500;
}
.h2 {
  font-size: clamp(2.3rem, 5.6vw, 5rem); line-height: .98;
  letter-spacing: -0.04em; font-weight: 500;
}
.h3 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 500; }
.serif, .display em, .h2 em, .h3 em, .scrub em {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  letter-spacing: -0.02em;
}
/* 19.65em = 34ch of Inter Tight. Not ch: ch follows the fallback font while it swaps, which rewrapped the hero. */
.lede { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.45; color: var(--fg-2); max-width: 19.65em; letter-spacing: -0.012em; }
.muted { color: var(--fg-2); }
.faint { color: var(--fg-3); }

/* Mono is data: dates, figures, identifiers, statuses, code. */
.mono, .datum { font-family: var(--mono); font-size: .78rem; letter-spacing: 0; font-variant-numeric: tabular-nums; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .02em; color: var(--fg-2);
}
.kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 22%, transparent);
}

.head { display: grid; gap: 1.4rem; max-width: 64rem; }
.head.split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 2rem 4rem; max-width: none; }
@media (max-width: 54rem) { .head.split { grid-template-columns: 1fr; } }

/* ============ logo — black and white, always ============ */
.logo {
  font-family: var(--logo); font-weight: 700; letter-spacing: .26em; margin-right: -.26em;
  font-size: 1.05rem; line-height: 1; color: currentColor; white-space: nowrap;
}

/* ============ buttons ============ */
.btn {
  --h: 3.25rem;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  height: var(--h); padding-inline: 1.5rem; border-radius: 999px;
  font-weight: 500; font-size: .98rem; letter-spacing: -0.01em; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg);
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s;
}
.btn::after {
  /* the fill that rises on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--signal); transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); transition: background .3s; }
.btn:hover .dot, .btn:focus-visible .dot { background: var(--ink); }
.btn.signal { background: var(--signal); color: var(--ink); }
.btn.signal::after { background: var(--white); }
.btn.signal .dot { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.sm { --h: 2.6rem; padding-inline: 1.1rem; font-size: .9rem; }
.btn-label { display: inline-block; }

.link {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: background-size .45s var(--ease-out);
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link .arrow { transition: transform .45s var(--ease-out); }
.link:hover .arrow { transform: translateX(4px); }

/* ============ nav ============ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; pointer-events: none;
  transition: transform .6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav-inner {
  pointer-events: auto; width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  color: var(--white); transition: color .4s;
}
.nav[data-on="light"] .nav-inner { color: var(--ink); }
.nav-pill {
  display: flex; align-items: center; gap: .2rem; padding: .3rem;
  border-radius: 999px; background: rgba(20,20,24,.42); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background .4s, border-color .4s;
}
.nav[data-on="light"] .nav-pill { background: rgba(255,255,255,.62); border-color: rgba(11,11,13,.08); }
.nav-pill a {
  position: relative; padding: .55rem .95rem; border-radius: 999px; font-size: .9rem; font-weight: 450;
  opacity: .78; transition: opacity .25s, background-color .25s;
}
.nav-pill a:hover, .nav-pill a:focus-visible, .nav-pill a[aria-current] { opacity: 1; }
.nav-pill a:hover { background: rgba(127,127,127,.14); }
.nav-pill a[aria-current]::after {
  content: ""; position: absolute; left: 50%; bottom: .28rem; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--signal);
}
.nav .btn { --btn-bg: var(--white); --btn-fg: var(--ink); }
.nav[data-on="light"] .btn { --btn-bg: var(--ink); --btn-fg: var(--white); }
.nav-burger { display: none; width: 3rem; height: 3rem; border-radius: 50%; position: relative; background: rgba(20,20,24,.42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.1); }
.nav[data-on="light"] .nav-burger { background: rgba(255,255,255,.62); border-color: rgba(11,11,13,.08); }
.nav-burger i { position: absolute; left: 50%; width: 18px; height: 1.5px; margin-left: -9px; background: currentColor; transition: transform .4s var(--ease-out); }
.nav-burger i:nth-child(1) { top: calc(50% - 4px); }
.nav-burger i:nth-child(2) { top: calc(50% + 3px); }
@media (max-width: 60rem) {
  .nav-pill, .nav .btn { display: none; }
  .nav-burger { display: block; }
}
.nav-right { display: flex; align-items: center; gap: .6rem; }

/* language switch: EL / EN, each a link to the same page in the other language */
.lang {
  display: inline-flex; align-items: center; padding: .25rem; border-radius: 999px;
  background: rgba(20,20,24,.42); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .4s, border-color .4s;
}
.nav[data-on="light"] .lang { background: rgba(255,255,255,.62); border-color: rgba(11,11,13,.08); }
.lang a {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; line-height: 1;
  padding: .5rem .62rem; border-radius: 999px; opacity: .62; transition: opacity .25s, background-color .3s, color .3s;
}
.lang a:hover, .lang a:focus-visible { opacity: 1; }
.lang a[aria-current] { opacity: 1; background: var(--white); color: var(--ink); }
.nav[data-on="light"] .lang a[aria-current] { background: var(--ink); color: var(--white); }
.menu .lang { align-self: flex-start; }
.foot-bar .langs { display: flex; gap: 1.2rem; }
.foot-bar .langs a { color: var(--fg-3); transition: color .25s; }
.foot-bar .langs a:hover, .foot-bar .langs a[aria-current] { color: var(--fg); }

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 150; background: var(--black); color: var(--white);
  display: flex; flex-direction: column; padding: 1.2rem var(--gutter) 2rem;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-in-out), visibility 0s; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: calc(var(--nav-h) - 1.2rem); }
.menu-close { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); position: relative; }
.menu-close::before, .menu-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; margin: -.75px 0 0 -9px; background: currentColor; transform: rotate(45deg); }
.menu-close::after { transform: rotate(-45deg); }
.menu nav { margin-top: auto; display: flex; flex-direction: column; }
.menu nav a {
  font-size: clamp(2.4rem, 11vw, 4rem); letter-spacing: -0.04em; line-height: 1.12; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.1); padding-block: .35rem;
  transform: translateY(40px); opacity: 0; transition: transform .8s var(--ease-out), opacity .8s var(--ease-out);
}
.menu.is-open nav a { transform: none; opacity: 1; }
.menu.is-open nav a:nth-child(2) { transition-delay: .06s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .12s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .18s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .24s; }
.menu.is-open nav a:nth-child(6) { transition-delay: .30s; }
.menu-foot { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }

/* scroll progress */
.progress {
  position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; pointer-events: none;
  background: var(--signal); transform-origin: 0 50%; transform: scaleX(0);
}

/* cursor ring (fine pointers only) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1px solid #fff; mix-blend-mode: difference; opacity: 0;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), opacity .3s, background-color .3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============ hero ============ */
.hero {
  position: relative; min-height: max(100svh, 40rem); display: flex; overflow: hidden; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 70vmax; height: 70vmax; right: -18vmax; top: -12vmax; border-radius: 50%;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--signal) 30%, transparent), transparent 70%),
    radial-gradient(closest-side at 30% 70%, color-mix(in srgb, var(--lilac) 24%, transparent), transparent 70%);
  filter: blur(40px); opacity: .55; animation: drift 18s var(--ease-in-out) infinite alternate;
}
@keyframes drift { to { transform: translate(-6vmax, 6vmax) scale(1.08); } }
.hero::after {
  /* scrim so the headline always wins over the field */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,8,10,.86) 0%, rgba(8,8,10,.55) 38%, rgba(8,8,10,0) 66%),
    linear-gradient(0deg, var(--black) 0%, rgba(8,8,10,0) 26%);
}
@media (max-width: 54rem) {
  .hero::after { background: linear-gradient(0deg, var(--black) 8%, rgba(8,8,10,.62) 52%, rgba(8,8,10,.25) 100%); }
}
.hero > .wrap {
  position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 3rem); padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
/* The kicker sits inside the h1 so the heading carries what we sell; the h1 itself
   is an unstyled wrapper and each part keeps its own look. */
.hero-h1 { font: inherit; }
.hero-h1 > .kicker { display: flex; text-wrap: pretty; } /* as the <p> it used to be */
.hero-h1 > .display { display: block; max-width: 13ch; }
.hero .display { font-size: clamp(3rem, 8.4vw, 8.6rem); }
.hero-row {
  margin-top: clamp(2rem, 4vw, 3.2rem); display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 2rem 3rem;
}
.hero-left { display: flex; flex-direction: column; gap: 1.6rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-meta { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; text-align: right; }
@media (max-width: 54rem) { .hero-meta { align-items: flex-start; text-align: left; } }
.scroll-cue {
  display: inline-flex; align-items: center; gap: .7rem; color: var(--fg-3); font-family: var(--mono); font-size: .72rem;
}
.scroll-cue i { width: 1px; height: 38px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: translateY(-100%); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 60%, 100% { transform: translateY(100%); } }

/* rotating phrase inside the h1 */
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
/* Only the on/off states carry a transition: the reset from "off" (above) back to
   "waiting" (below) must be instant, or the old phrase sweeps back through the slot. */
.rotator > span { grid-area: 1 / 1; white-space: nowrap; transform: translateY(140%); opacity: 0; will-change: transform, opacity; }
.rotator > span.is-on { transform: none; opacity: 1; transition: transform .9s var(--ease-out), opacity .5s var(--ease-out); }
.rotator > span.is-off { transform: translateY(-140%); opacity: 0; transition: transform .8s var(--ease-out), opacity .6s var(--ease-out); }
.no-js .rotator > span:first-child, .reduced .rotator > span:first-child { transform: none; opacity: 1; }
.rotator em { color: var(--signal); }

/* ============ word split reveal ============ */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .02em .14em; margin: -.1em -.02em -.14em; }
.wi { display: inline-block; will-change: transform; }
.js [data-split] .wi { transform: translateY(108%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms)); }
.js [data-split].is-in .wi { transform: none; }

/* generic reveal */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }

/* ============ marquee ============ */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(1.2rem, 2.6vw, 2rem); position: relative; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item {
  display: inline-flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem); padding-right: clamp(1.2rem, 3vw, 2.6rem);
  font-size: clamp(2rem, 5.2vw, 4.6rem); letter-spacing: -0.04em; line-height: 1; font-weight: 500; white-space: nowrap;
}
.marquee-item:nth-child(even) { font-family: var(--serif); font-style: italic; font-weight: 300; color: transparent; -webkit-text-stroke: 1px var(--fg-2); }
.marquee-item::after { content: ""; width: .32em; height: .32em; border-radius: 50%; background: var(--signal); flex: none; }
.marquee.small .marquee-item { font-size: clamp(1.2rem, 2.4vw, 1.8rem); letter-spacing: -0.02em; }
.marquee.small .marquee-item:nth-child(even) { color: var(--fg-2); -webkit-text-stroke: 0; }
.marquee.small .marquee-item::after { width: 6px; height: 6px; background: var(--fg-3); }
.no-js .marquee-track, .reduced .marquee-track { flex-wrap: wrap; width: auto; transform: none !important; }
.no-js .marquee-group[aria-hidden], .reduced .marquee-group[aria-hidden] { display: none; }
.no-js .marquee-group, .reduced .marquee-group { flex-wrap: wrap; row-gap: .6rem; padding-inline: var(--gutter); }

/* ============ scrubbed manifesto ============ */
.scrub-wrap { height: 230vh; position: relative; }
.scrub-sticky { position: sticky; top: 0; min-height: 100svh; display: flex; align-items: center; }
.scrub {
  font-size: clamp(2rem, 5.4vw, 5.2rem); line-height: 1.04; letter-spacing: -0.042em; font-weight: 500; max-width: 21ch;
}
.scrub .sw { opacity: .14; transition: opacity .35s linear; }
.scrub .sw.lit { opacity: 1; }
.scrub em { color: var(--signal); }
.no-js .scrub-wrap, .reduced .scrub-wrap { height: auto; }
.no-js .scrub-sticky, .reduced .scrub-sticky { position: static; min-height: 0; padding-block: var(--band); }
.no-js .scrub .sw, .reduced .scrub .sw { opacity: 1; }

/* ============ specimen ============ */
.proof-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (max-width: 60rem) { .proof-grid { grid-template-columns: 1fr; } }
.ticks { display: grid; gap: 0; margin-top: 2.4rem; border-top: 1px solid var(--line); }
.ticks li { display: flex; align-items: baseline; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.ticks li .mono { color: var(--fg-3); min-width: 1.6rem; }

.spec {
  position: relative; border-radius: var(--r-lg); padding: 1px; isolation: isolate;
  background: linear-gradient(140deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 40%, color-mix(in srgb, var(--signal) 50%, transparent));
  box-shadow: 0 40px 120px -40px color-mix(in srgb, var(--signal) 45%, transparent);
}
.spec-in { border-radius: calc(var(--r-lg) - 1px); background: linear-gradient(180deg, #131317, #0C0C0F); overflow: hidden; }
.spec-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); color: var(--fg-3); }
.spec-bar .live { display: inline-flex; align-items: center; gap: .5rem; }
.spec-bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #45E39A; box-shadow: 0 0 10px #45E39A; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.spec-body { padding: clamp(1.3rem, 3vw, 2.2rem); min-height: 22rem; display: grid; }
.spec-panel { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 1.2rem; }
.js .spec-panel { opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.js .spec-panel.is-on { opacity: 1; visibility: visible; transition: opacity .4s; }
.no-js .spec-body { gap: 2.5rem; }
.bubble-q {
  align-self: flex-end; max-width: 30ch; background: var(--surface-2); border: 1px solid var(--line);
  padding: .85rem 1.1rem; border-radius: 18px 18px 4px 18px; font-size: 1rem; color: var(--fg);
}
.bubble-a { display: flex; flex-direction: column; gap: .7rem; }
.who { display: inline-flex; align-items: center; gap: .55rem; color: var(--fg-3); }
.who::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: conic-gradient(from 210deg, var(--signal), var(--lilac), var(--ice), var(--signal)); }
.answer { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.answer.refuse { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--signal); }
.answer.text { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.25; }
.src {
  border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: .75rem .9rem; color: var(--fg-2);
  font-family: var(--mono); font-size: .76rem; line-height: 1.6; word-break: break-word;
}
.src b { color: var(--fg); font-weight: 500; }
.cite-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4em; height: 1.4em; padding: 0 .35em; margin-left: .2em; border-radius: 6px; background: var(--signal); color: var(--ink); font-family: var(--mono); font-size: .62em; vertical-align: .35em; letter-spacing: 0; font-style: normal; }
.typing { display: inline-flex; gap: 5px; padding: .5rem 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.spec-tabs { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem 1.3rem 1.3rem; border-top: 1px solid var(--line); }
.spec-tabs button {
  border: 1px solid var(--line-2); border-radius: 999px; padding: .5rem .95rem; font-size: .86rem; color: var(--fg-2);
  transition: background .3s, color .3s, border-color .3s;
}
.spec-tabs button:hover { color: var(--fg); border-color: var(--fg-3); }
.spec-tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.no-js .spec-tabs { display: none; }

/* ============ bento ============ */
.bento { margin-top: clamp(3rem, 6vw, 5rem); display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  padding: clamp(1.4rem, 2.4vw, 2rem); display: flex; flex-direction: column; gap: 1rem; overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--signal) 13%, transparent), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(11,11,13,.28); }
.card h3 { margin-top: auto; }
.card p { color: var(--fg-2); max-width: 38ch; }
.b-a { grid-column: span 4; min-height: 26rem; }
.b-b { grid-column: span 2; grid-row: span 2; }
.b-c { grid-column: span 2; min-height: 24rem; }
.b-d { grid-column: span 2; }
.b-e { grid-column: span 6; flex-direction: row; align-items: center; gap: 2rem 4rem; flex-wrap: wrap; }
.b-e .copy { flex: 1 1 22rem; display: flex; flex-direction: column; gap: 1rem; }
.b-e .copy h3 { margin-top: 0; }
@media (max-width: 64rem) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-a, .b-e { grid-column: span 2; }
  .b-b, .b-c, .b-d { grid-column: span 1; grid-row: auto; }
}
@media (max-width: 40rem) {
  .bento { grid-template-columns: 1fr; }
  .b-a, .b-b, .b-c, .b-d, .b-e { grid-column: auto; min-height: 0; }
}
.viz { position: relative; flex: 1 1 auto; min-height: 11rem; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; font-family: var(--mono); font-size: .76rem; color: var(--fg-2); }
.b-e .viz { flex: 1 1 22rem; min-height: 10rem; }

/* paused until visible */
.viz * { animation-play-state: paused !important; }
.is-playing .viz * { animation-play-state: running !important; }

/* A — ask the data */
.v-ask { display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; padding: 1.4rem; }
.v-ask .q { display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1rem; max-width: 34rem; }
.v-ask .q::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; }
.v-ask .q span { --n: 30; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--fg); width: 0; max-width: 100%; animation: type 7s steps(var(--n)) infinite; }
@keyframes type { 0% { width: 0; } 30%, 88% { width: calc(var(--n) * 1ch + 2px); } 100% { width: calc(var(--n) * 1ch + 2px); border-color: transparent; } }
.v-ask .res { display: flex; align-items: flex-end; gap: 1.2rem; opacity: 0; animation: res 7s infinite; }
.v-ask .res b { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.04em; color: var(--fg); line-height: 1; }
.v-ask .bars { display: flex; align-items: flex-end; gap: 5px; height: 48px; }
.v-ask .bars i { width: 10px; border-radius: 3px 3px 0 0; background: var(--fg); opacity: .18; transform-origin: bottom; animation: grow 7s var(--ease-out) infinite; }
.v-ask .bars i:last-child { background: var(--signal); opacity: 1; }
@keyframes res { 0%, 34% { opacity: 0; transform: translateY(10px); } 40%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes grow { 0%, 36% { transform: scaleY(0); } 48%, 92% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

/* B — documents read themselves */
.v-doc { display: flex; align-items: center; justify-content: center; padding: 1.4rem; }
.v-doc .sheet { position: relative; width: min(100%, 15rem); aspect-ratio: 3 / 4; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem; display: flex; flex-direction: column; gap: .55rem; box-shadow: 0 20px 40px -24px rgba(0,0,0,.35); }
.v-doc .ln { height: 6px; border-radius: 3px; background: var(--fg); opacity: .1; }
.v-doc .fld { display: flex; justify-content: space-between; align-items: center; gap: .4rem; padding: .35rem .5rem; border-radius: 6px; border: 1px solid transparent; animation: fld 6s infinite; }
.v-doc .fld span { font-size: .66rem; color: var(--fg-2); }
.v-doc .fld b { font-weight: 500; font-size: .66rem; color: var(--fg); }
.v-doc .fld:nth-of-type(2) { animation-delay: .5s; } .v-doc .fld:nth-of-type(3) { animation-delay: 1s; }
.v-doc .fld.unsure { animation-name: unsure; animation-delay: 1.5s; }
@keyframes fld { 0%, 15% { background: transparent; border-color: transparent; } 25%, 90% { background: color-mix(in srgb, #45E39A 14%, transparent); border-color: color-mix(in srgb, #2BBF7A 40%, transparent); } 100% { background: transparent; } }
@keyframes unsure { 0%, 15% { background: transparent; border-color: transparent; } 25%, 90% { background: color-mix(in srgb, var(--signal) 14%, transparent); border-color: var(--signal); } 100% { background: transparent; } }
.v-doc .beam { position: absolute; left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--signal) 28%, transparent) 70%, var(--signal) 72%, transparent 74%); animation: beam 6s var(--ease-in-out) infinite; pointer-events: none; }
@keyframes beam { 0% { transform: translateY(-40px); } 45%, 100% { transform: translateY(calc(15rem * 4 / 3)); } }
.v-doc .tag { position: absolute; right: -.6rem; bottom: 18%; background: var(--signal); color: var(--ink); border-radius: 999px; padding: .3rem .65rem; font-size: .66rem; opacity: 0; animation: tag 6s infinite; animation-delay: 1.6s; white-space: nowrap; }
@keyframes tag { 0%, 20% { opacity: 0; transform: translateY(6px); } 28%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* C — knowledge with citations */
.v-know { padding: 1.3rem; display: flex; flex-direction: column; gap: .7rem; justify-content: center; }
.v-know .ans { font-family: var(--display); font-size: 1rem; color: var(--fg); line-height: 1.45; letter-spacing: -0.01em; }
.v-know .ans .cite-chip { opacity: 0; transform: scale(.4); animation: pop 6s var(--ease-out) infinite; }
.v-know .ans .cite-chip:nth-of-type(2) { animation-delay: .4s; }
@keyframes pop { 0%, 20% { opacity: 0; transform: scale(.4); } 28%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.v-know .srcs { display: flex; flex-direction: column; gap: .4rem; }
.v-know .srcs div { display: flex; gap: .6rem; align-items: center; padding: .45rem .6rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); opacity: 0; animation: srcin 6s var(--ease-out) infinite; }
.v-know .srcs div:nth-child(2) { animation-delay: .4s; }
@keyframes srcin { 0%, 28% { opacity: 0; transform: translateX(-8px); } 36%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* D — processes that run themselves */
.v-flow { display: flex; align-items: center; justify-content: center; padding: 1rem; }
.v-flow svg { width: 100%; height: auto; max-height: 12rem; overflow: visible; }
.v-flow .path { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.v-flow .node { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.v-flow .node.hum { stroke: var(--signal); }
.v-flow .lbl { font-family: var(--mono); font-size: 9px; fill: var(--fg-2); }
.v-flow .lbl.hum { fill: var(--fg); }
.v-flow .pk { fill: var(--fg); }
.v-flow .pk.x { fill: var(--signal); }

/* E — inside your systems */
.v-code { padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; justify-content: center; line-height: 1.7; }
.v-code div { opacity: 0; animation: codein 7s infinite; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-code div:nth-child(2) { animation-delay: .5s; } .v-code div:nth-child(3) { animation-delay: 1s; } .v-code div:nth-child(4) { animation-delay: 1.6s; } .v-code div:nth-child(5) { animation-delay: 2.1s; }
.v-code .k { color: var(--signal); } .v-code .s { color: var(--fg); } .v-code .ok { color: #2BBF7A; }
@keyframes codein { 0% { opacity: 0; transform: translateY(4px); } 6%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.bento-foot { margin-top: 2rem; color: var(--fg-2); }

/* ============ stacking rules ============ */
.stack { margin-top: clamp(3rem, 6vw, 5rem); display: grid; gap: 1.2rem; }
.rule-card {
  position: sticky; top: calc(var(--nav-h) + 1rem + var(--k, 0) * 1.1rem);
  min-height: clamp(18rem, 46vh, 26rem); border-radius: var(--r-lg);
  background: var(--black-3); border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "num ." "h p"; gap: 2rem;
  padding: clamp(1.6rem, 4vw, 3.2rem); transform-origin: 50% 0; overflow: hidden; isolation: isolate;
  will-change: transform;
}
.rule-card:nth-child(even) { background: #1F1F25; }
.rule-card:last-child { background: var(--signal); color: var(--ink); --fg-2: rgba(11,11,13,.72); --fg-3: rgba(11,11,13,.55); --line: rgba(11,11,13,.18); }

.rule-card .num { grid-area: num; font-family: var(--mono); font-size: .8rem; color: var(--fg-3); }
.rule-card h3 { grid-area: h; font-size: clamp(2rem, 4.8vw, 4.2rem); line-height: .98; letter-spacing: -0.045em; font-weight: 500; align-self: end; }
.rule-card p { grid-area: p; align-self: end; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--fg-2); max-width: 30ch; justify-self: end; }
.rule-card .glyph { position: absolute; right: clamp(1.6rem, 4vw, 3.2rem); top: clamp(1.6rem, 4vw, 3.2rem); font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(3rem, 8vw, 7rem); line-height: .8; color: var(--fg-3); opacity: .5; z-index: -1; }
@media (max-width: 48rem) {
  .rule-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "num" "h" "p"; gap: 1.2rem; }
  .rule-card p { justify-self: start; }
}

/* ============ process ============ */
.steps { margin-top: clamp(3rem, 6vw, 5rem); position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.steps-line { position: absolute; left: 0; right: 0; top: 1.6rem; height: 1px; background: var(--line-2); }
.steps-line i { position: absolute; inset: 0; background: var(--signal); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); height: 2px; top: -.5px; }
.step { position: relative; display: flex; flex-direction: column; gap: .9rem; }
.step .dot { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-size: .8rem; transition: background .5s, color .5s, border-color .5s; position: relative; z-index: 1; }
.theme-light.alt .step .dot { background: var(--paper-2); }
.step.is-lit .dot { background: var(--ink); color: var(--white); border-color: var(--ink); }
.step h3 { margin-top: 1rem; font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -0.035em; line-height: 1.05; }
.step p { color: var(--fg-2); max-width: 32ch; }
.step .pill { align-self: flex-start; display: inline-flex; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: .72rem; }
.step .pill.hot { background: var(--signal); border-color: var(--signal); color: var(--ink); }
@media (max-width: 54rem) {
  .steps { grid-template-columns: 1fr; padding-left: 4.4rem; }
  .steps-line { left: 1.6rem; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps-line i { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); width: 2px; height: auto; left: -.5px; top: 0; }
  .step .dot { position: absolute; left: -4.4rem; top: 0; }
  .step h3 { margin-top: .4rem; }
}

/* ============ products ============ */
.duo { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 58rem) { .duo { grid-template-columns: 1fr; } }
.prod { position: relative; border-radius: var(--r-lg); padding: clamp(1.6rem, 3.4vw, 2.8rem); display: flex; flex-direction: column; gap: 1.2rem; overflow: hidden; isolation: isolate; min-height: 30rem; transition: transform .6s var(--ease-out); }
.prod:hover { transform: translateY(-4px); }
.prod.dark { background: var(--black); color: var(--white); --fg-2: rgba(255,255,255,.66); --fg-3: rgba(255,255,255,.48); --line: rgba(255,255,255,.14); --line-2: rgba(255,255,255,.24); --btn-bg: var(--white); --btn-fg: var(--ink); }
.prod.light { background: var(--surface); border: 1px solid var(--line); }
.prod h3 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.05em; line-height: .95; font-weight: 500; }
.prod p { color: var(--fg-2); max-width: 36ch; font-size: 1.08rem; }
.prod .chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.prod .chips span { padding: .38rem .75rem; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: .72rem; color: var(--fg-2); }
.prod .foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.status { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .74rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #45E39A; box-shadow: 0 0 0 4px rgba(69,227,154,.18); animation: pulse 2s infinite; }
.ledger { position: absolute; right: -2rem; top: 2rem; width: 55%; display: flex; flex-direction: column; gap: 9px; z-index: -1; opacity: .9; mask-image: linear-gradient(90deg, transparent, #000 30%); }
.ledger i { height: 3px; border-radius: 2px; background: rgba(255,255,255,.16); transform-origin: 0 50%; animation: ledger 6s var(--ease-out) infinite; }
.ledger i:nth-child(4n+2) { width: 70%; } .ledger i:nth-child(3n) { width: 84%; } .ledger i:nth-child(5n) { background: var(--signal); width: 40%; }
@keyframes ledger { 0% { transform: scaleX(0); } 20%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.big-date { font-size: clamp(3.4rem, 8vw, 6.4rem); letter-spacing: -0.06em; line-height: .85; font-weight: 400; font-variant-numeric: tabular-nums; }
.big-date small { display: block; font-size: .78rem; letter-spacing: 0; font-family: var(--mono); color: var(--fg-3); margin-top: .8rem; font-weight: 400; }

/* ============ closing ============ */
.closing { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: clamp(2rem, 4vw, 3rem); position: relative; z-index: 1; }
.closing .display { font-size: clamp(3.2rem, 10vw, 10rem); max-width: 12ch; }
.aura {
  position: absolute; left: 50%; top: 55%; width: 90vmax; height: 90vmax; translate: -50% -50%; z-index: 0; pointer-events: none; border-radius: 50%;
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--signal) 50%, transparent), color-mix(in srgb, var(--lilac) 40%, transparent), color-mix(in srgb, var(--ice) 30%, transparent), color-mix(in srgb, var(--signal) 50%, transparent));
  filter: blur(90px); opacity: .32; animation: spin 26s linear infinite;
  mask-image: radial-gradient(closest-side, #000 30%, transparent 75%);
}
@keyframes spin { to { rotate: 360deg; } }
.orb-btn {
  --s: clamp(9rem, 16vw, 12rem);
  width: var(--s); height: var(--s); border-radius: 50%; color: var(--ink);
  display: grid; place-items: center; text-align: center; font-weight: 500; font-size: 1.02rem; line-height: 1.15; padding: 1rem;
  position: relative; isolation: isolate; transition: transform .5s var(--ease-out);
}
/* Fill on ::before, pulse on ::after beneath it. The pulse grows and fades with
   transform + opacity only, so it runs on the compositor (box-shadow does not). */
.orb-btn::before, .orb-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.orb-btn::before { z-index: -1; background: var(--signal); transition: background .3s; }
.orb-btn::after { z-index: -2; background: color-mix(in srgb, var(--signal) 45%, transparent); animation: ring 2.8s var(--ease-out) infinite; }
.orb-btn:hover::before { background: var(--white); }
@keyframes ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.36); opacity: 0; } }
.closing .contact-line { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; color: var(--fg-2); }
.closing .contact-line a { color: var(--fg); }

/* ============ footer ============ */
.foot { padding-top: clamp(4rem, 8vw, 6rem); overflow: hidden; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
@media (max-width: 54rem) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h2 { font-family: var(--mono); font-size: .72rem; font-weight: 400; color: var(--fg-3); margin-bottom: 1rem; }
.foot ul { display: flex; flex-direction: column; gap: .5rem; }
.foot li a { color: var(--fg-2); transition: color .25s; }
.foot li a:hover { color: var(--fg); }
.foot .tag { font-size: 1.3rem; letter-spacing: -0.025em; line-height: 1.25; max-width: 18ch; }
.wordmark {
  margin-top: clamp(3rem, 7vw, 5.5rem); font-family: var(--logo); font-weight: 700; color: var(--white);
  font-size: clamp(3.4rem, 10.5vw, 9.5rem); line-height: .8; letter-spacing: .08em; display: flex;
  user-select: none; padding-bottom: .04em;
}
.wordmark span { display: inline-block; }
.js .wordmark span { transform: translateY(70%); opacity: 0; transition: transform 1.3s var(--ease-out), opacity 1.3s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.js .wordmark.is-in span { transform: none; opacity: 1; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; color: var(--fg-3); font-size: .85rem; border-top: 1px solid var(--line); margin-top: 1.4rem; }

/* ============ page heroes (about, mydata) ============ */
.page-hero { position: relative; overflow: hidden; isolation: isolate; min-height: 88svh; display: flex; align-items: flex-end; }
.page-hero > .wrap { position: relative; z-index: 1; padding-top: calc(var(--nav-h) + 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(0deg, var(--black) 4%, rgba(8,8,10,.4) 50%, rgba(8,8,10,.2) 100%); }
.crumbs { display: flex; gap: .6rem; font-family: var(--mono); font-size: .74rem; color: var(--fg-3); margin-bottom: 2rem; }
.crumbs a:hover { color: var(--fg); }
.crumbs li + li::before { content: "/"; margin-right: .6rem; opacity: .5; }
.crumbs ol { display: flex; gap: .6rem; }

/* facts row */
.facts { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 1.6rem 1.4rem 0 0; display: flex; flex-direction: column; gap: .5rem; }
.facts > div + div { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.facts b { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
@media (max-width: 54rem) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* triple negative statement */
.nots { display: flex; flex-direction: column; }
.nots li { font-size: clamp(2.6rem, 8vw, 7.4rem); letter-spacing: -0.05em; line-height: 1; font-weight: 500; border-bottom: 1px solid var(--line); padding-block: .6rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.nots li s { text-decoration-thickness: .06em; text-decoration-color: var(--signal); color: var(--fg-3); }
.nots li:last-child { border-bottom: 0; }
.nots .mono { color: var(--fg-3); }

/* sectors cloud */
.cloud { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.cloud span { padding: .7rem 1.2rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: 1.02rem; transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-out); }
.cloud span:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-3px) rotate(-1.5deg); }

/* ============ mydata ============ */
.dates { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 54rem) { .dates { grid-template-columns: 1fr; } }
.date { border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; background: var(--surface); }
.date b { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.045em; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.date.now { border-color: var(--signal); }
.date.now .mono { color: var(--signal); }
.cite { margin-top: 1rem; font-family: var(--mono); font-size: .72rem; color: var(--fg-3); }

.flow4 { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: f; }
@media (max-width: 60rem) { .flow4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .flow4 { grid-template-columns: 1fr; } }
.flow4 li { border-radius: var(--r); padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2.6rem; min-height: 13rem; }
.flow4 li::before { counter-increment: f; content: "0" counter(f); font-family: var(--mono); font-size: .76rem; color: var(--fg-3); }
.flow4 li p { margin-top: auto; font-size: 1.1rem; letter-spacing: -0.015em; line-height: 1.3; }
.flow4 li.key { background: var(--ink); color: var(--white); border-color: var(--ink); }
.flow4 li.key::before { color: var(--signal); }

.stats { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
@media (max-width: 60rem) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { padding: 1.8rem 1.4rem 1.8rem 0; display: flex; flex-direction: column; gap: .8rem; border-bottom: 1px solid var(--line); }
.stat b { font-size: clamp(3.4rem, 7vw, 6rem); font-weight: 400; letter-spacing: -0.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.stat b.zero { color: var(--signal); }
.stat > span { color: var(--fg-2); max-width: 24ch; }

.cols2 { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 54rem) { .cols2 { grid-template-columns: 1fr; } }
.col-card { border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.4rem); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.4rem; background: var(--surface); }
.col-card.inv { background: var(--ink); color: var(--white); border-color: var(--ink); --line: rgba(255,255,255,.14); --fg-2: rgba(255,255,255,.7); }
.col-card ul { display: flex; flex-direction: column; }
.col-card li { padding-block: .85rem; border-top: 1px solid var(--line); color: var(--fg-2); }

.faq { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.5rem; font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.025em; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .5s var(--ease-out), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; }
.faq summary i::after { transform: rotate(90deg); transition: transform .5s var(--ease-out); }
.faq details[open] summary i { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { padding-bottom: 1.6rem; color: var(--fg-2); max-width: 64ch; }

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-split] .wi, .js [data-reveal], .js .wordmark span { transform: none !important; opacity: 1 !important; }
  .rule-card { transform: none !important; }
  .v-ask .q span { width: auto; border: 0; }
  .v-ask .res, .v-know .ans .cite-chip, .v-know .srcs div, .v-code div, .v-doc .tag { opacity: 1; transform: none; }
  .v-ask .bars i { transform: none; }
  .ledger i { transform: none; }
  .cursor, .hero-glow { display: none; }
}

/* cross-document page transitions where supported */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .35s var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: .55s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
