/* Kokodo — soft-tissue layer for humanoid robots
   Type: Aeonik Pro (local) → Inter fallback. Scale follows the house type tokens.
   Colour: taken from the Kokodo Figma frame (near-black, violet / magenta / cyan mesh). */

@font-face { font-family: "Aeonik Pro"; font-weight: 400; font-style: normal; font-display: swap;
  src: local("Aeonik Pro Regular"), local("AeonikPro-Regular"), local("Aeonik Pro"); }
@font-face { font-family: "Aeonik Pro"; font-weight: 500; font-style: normal; font-display: swap;
  src: local("Aeonik Pro Medium"), local("AeonikPro-Medium"); }
@font-face { font-family: "Aeonik Pro"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Aeonik Pro Bold"), local("AeonikPro-Bold"); }
@font-face { font-family: "Aeonik Pro"; font-weight: 400; font-style: italic; font-display: swap;
  src: local("Aeonik Pro Italic"), local("AeonikPro-RegularItalic"), local("AeonikPro-Italic"); }

:root {
  --ink: #08090b;
  --ink-2: #0d0e12;
  --ink-3: #13141a;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f2f8;
  --text-2: #b6b4c6;
  --text-3: #7d7b90;
  --cyan: #5fe0ee;
  --violet: #9b8cff;
  --magenta: #e572f2;
  --green: #04c790;
  --orange: #fba82d;
  --red: #ff6b6b;
  --iris: linear-gradient(100deg, #5fe0ee 0%, #9b8cff 48%, #e572f2 100%);
  --r-sm: 14px;
  --r-lg: 24px;
  --wrap: 1224px;
  --gutter: 32px;
  --font: "Aeonik Pro", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.55; letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(155, 140, 255, 0.4); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
.h-hero { font-size: 52px; line-height: 1.06; letter-spacing: -0.0045em; font-weight: 500; }
.h-sec { font-size: 44px; line-height: 1.1; letter-spacing: 0; font-weight: 700; }
.h-sub { font-size: 28px; line-height: 34px; letter-spacing: 0.01em; font-weight: 500; }
.h-card { font-size: 20px; line-height: 1.3; letter-spacing: 0; font-weight: 700; }
.lede { font-size: 22px; line-height: 1.45; letter-spacing: 0.01em; color: var(--text-2); font-weight: 400; text-wrap: pretty; }
p { margin: 0 0 1em; text-wrap: pretty; }
.body-2 { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.cap { font-size: 12px; line-height: 16px; color: var(--text-3); letter-spacing: 0; }
.overline {
  font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-2); display: inline-flex; align-items: center; gap: 10px;
}
.overline::before { content: ""; width: 22px; height: 1px; background: var(--iris); }
.iris { background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); letter-spacing: 0; }
sup.c { font-size: 0.62em; font-family: var(--mono); letter-spacing: 0; margin-left: 1px; line-height: 0; }
sup.c a { color: var(--cyan); text-decoration: none; padding: 0 1px; }
sup.c a:hover { text-decoration: underline; }
strong { font-weight: 700; color: var(--text); }
em { font-style: italic; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px; display: flex; align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(8, 9, 11, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }

.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; color: var(--text-2); text-decoration: none; letter-spacing: 0; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: var(--r-sm);
  font: 500 16px/1 var(--font); letter-spacing: 0; text-decoration: none; border: 1px solid var(--line-2);
  color: var(--text); background: rgba(255, 255, 255, 0.04); cursor: pointer; transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.btn.pri { background: #fff; color: #0a0a10; border-color: #fff; }
.btn.pri:hover { background: #e9e6ff; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 56px; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 20% 60%, rgba(8, 9, 11, 0.88) 0%, rgba(8, 9, 11, 0.5) 45%, rgba(8, 9, 11, 0.1) 75%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.55) 0%, rgba(8, 9, 11, 0) 22%, rgba(8, 9, 11, 0) 60%, var(--ink) 100%);
}
.hero-mark { width: min(560px, 76vw); margin: 0 0 40px -4px; }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 56ch; margin-top: 22px; color: #d5d3e2; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line-2); }
.hero-facts > div { padding: 20px 24px 0 0; }
.hero-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-facts b { display: block; font-size: 34px; line-height: 41px; font-weight: 500; letter-spacing: 0.01em; }
.hero-facts span { display: block; font-size: 13px; line-height: 18px; color: var(--text-2); margin-top: 4px; max-width: 28ch; }

/* ---------- sections ---------- */
section { position: relative; padding: 128px 0; }
section.tight { padding: 88px 0; }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 880px; margin-bottom: 64px; }
.sec-head .lede { max-width: 64ch; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.wide-l { grid-template-columns: 1.15fr 0.85fr; }
.split.wide-r { grid-template-columns: 0.85fr 1.15fr; }
.split.top { align-items: start; }

.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}
.card.sm { border-radius: var(--r-sm); padding: 20px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-size: 48px; line-height: 1; font-weight: 500; letter-spacing: 0; margin-bottom: 14px; }
.card .num small { font-size: 20px; color: var(--text-2); font-weight: 400; margin-left: 4px; }
.card .k { font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); margin-bottom: 18px; }
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--iris); opacity: 0.55;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.tag.c { color: var(--cyan); border-color: rgba(95, 224, 238, 0.35); background: rgba(95, 224, 238, 0.07); }
.tag.v { color: #b9b0ff; border-color: rgba(155, 140, 255, 0.4); background: rgba(155, 140, 255, 0.08); }
.tag.m { color: #f0a3f8; border-color: rgba(229, 114, 242, 0.4); background: rgba(229, 114, 242, 0.08); }
.tag.g { color: var(--green); border-color: rgba(4, 199, 144, 0.4); background: rgba(4, 199, 144, 0.08); }
.tag.o { color: var(--orange); border-color: rgba(251, 168, 45, 0.4); background: rgba(251, 168, 45, 0.08); }
.tag.r { color: var(--red); border-color: rgba(255, 107, 107, 0.4); background: rgba(255, 107, 107, 0.08); }

/* figures */
.fig { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #000; }
.fig img, .fig video { width: 100%; height: 100%; object-fit: cover; }
.fig figcaption, .figcap { position: absolute; left: 16px; bottom: 14px; right: 16px; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, 0.72); letter-spacing: 0; display: flex; gap: 8px; align-items: center; text-shadow: 0 1px 8px #000; }
.figcap .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--iris); flex: none; }
figure { margin: 0; }
.ar-16x9 { aspect-ratio: 16 / 9; }
.ar-4x5 { aspect-ratio: 4 / 5; }
.ar-1 { aspect-ratio: 1; }

/* lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; line-height: 24px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 1px; background: var(--iris); }
.ticks li b { color: var(--text); font-weight: 700; }

/* ---------- problem ---------- */
.pain { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); align-items: start; }
.pain:last-child { border-bottom: 1px solid var(--line); }
.pain .big { font-size: 40px; line-height: 1.05; font-weight: 500; letter-spacing: 0.01em; }
.pain .big small { display: block; font-size: 13px; line-height: 18px; color: var(--text-3); font-weight: 400; margin-top: 8px; letter-spacing: 0; }
.pain h3 { margin-bottom: 8px; }
.pain p { color: var(--text-2); font-size: 16px; line-height: 24px; margin: 0; max-width: 68ch; }

/* ---------- roles wheel ---------- */
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.roles > div { padding: 28px 24px 30px; border-left: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); transition: background 0.3s; }
.roles > div:first-child { border-left: 0; }
.roles > div:hover { background: rgba(155, 140, 255, 0.07); }
.roles .i { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-bottom: 44px; display: block; }
.roles h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.roles p { font-size: 14px; line-height: 21px; color: var(--text-2); margin: 0; }
.roles .was { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 12px; line-height: 16px; color: var(--text-3); }

/* ---------- layer explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: start; }
.explorer svg { width: 100%; height: auto; overflow: visible; }
.lyr { cursor: pointer; transition: opacity 0.3s; }
.explorer svg.has-on .lyr { opacity: 0.36; }
.explorer svg.has-on .lyr.on { opacity: 1; }
.lyr-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.lyr-tabs button {
  font: 500 14px/1 var(--font); letter-spacing: 0; height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); color: var(--text-2); transition: all 0.2s;
}
.lyr-tabs button:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.lyr-tabs button.on { background: #fff; color: #0a0a10; border-color: #fff; }
.lyr-panel { display: none; }
.lyr-panel.on { display: block; animation: fadeUp 0.4s ease both; }
.lyr-panel .bio { font-size: 13px; line-height: 18px; color: var(--text-3); margin: 0 0 14px; }
.lyr-panel h3 { font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 12px; }
.lyr-panel p { color: var(--text-2); font-size: 16px; line-height: 25px; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.kv > div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.kv > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.kv dt, .kv .t { font-size: 12px; line-height: 16px; color: var(--text-3); letter-spacing: 0; margin-bottom: 4px; }
.kv dd, .kv .d { margin: 0; font-size: 15px; line-height: 20px; color: var(--text); font-weight: 500; }

/* ---------- tables ---------- */
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; background: rgba(255, 255, 255, 0.015); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; letter-spacing: 0; min-width: 860px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 11px; line-height: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); background: rgba(255, 255, 255, 0.025); position: sticky; top: 0; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; color: var(--text); white-space: nowrap; }
td { color: var(--text-2); }
td.n, th.n { font-family: var(--mono); font-size: 13px; }
tr.hl td, tr.hl th { background: linear-gradient(90deg, rgba(95, 224, 238, 0.07), rgba(229, 114, 242, 0.07)); color: var(--text); }
tr.hl th { box-shadow: inset 2px 0 0 var(--violet); }
.good { color: var(--green); } .mid { color: var(--orange); } .bad { color: var(--red); }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 340px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: rgba(255, 255, 255, 0.015); }
.calc-ctl { padding: 28px; border-right: 1px solid var(--line); display: grid; gap: 22px; align-content: start; }
.calc-out { padding: 28px; display: grid; gap: 20px; }
.ctl label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; line-height: 18px; color: var(--text-2); margin-bottom: 10px; letter-spacing: 0; }
.ctl output { font-family: var(--mono); font-size: 14px; color: var(--text); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line-2); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; margin-top: -7px; box-shadow: 0 0 0 4px rgba(155, 140, 255, 0.25); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(155, 140, 255, 0.25); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(95, 224, 238, 0.5); }
.readouts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.readouts > div { padding: 16px 16px 0 0; }
.readouts > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.readouts b { display: block; font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.readouts span { font-size: 12px; line-height: 16px; color: var(--text-3); display: block; margin-top: 2px; }
#curve { width: 100%; height: auto; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { font: 500 13px/1 var(--font); height: 28px; padding: 0 12px; border-radius: 999px; background: transparent; color: var(--text-2); border: 0; cursor: pointer; letter-spacing: 0; }
.seg button.on { background: #fff; color: #0a0a10; }

/* ---------- product ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.rung { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: rgba(255, 255, 255, 0.015); display: flex; flex-direction: column; }
.rung .ph { aspect-ratio: 16 / 10; overflow: hidden; background: #000; position: relative; }
.rung .ph svg { width: 100%; height: 100%; }
.rung .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rung:hover .ph img { transform: scale(1.04); }
.rung .bd { padding: 26px 26px 28px; display: grid; gap: 12px; flex: 1; align-content: start; }
.rung .st { display: flex; justify-content: space-between; align-items: center; }
.rung .st .mono { font-size: 12px; color: var(--text-3); }
.rung h3 { font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: 0.01em; }
.rung p { font-size: 15px; line-height: 23px; color: var(--text-2); margin: 0; }
.rung dl { margin: 8px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.rung dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 18px; }
.rung dt { color: var(--text-3); } .rung dd { margin: 0; color: var(--text); }

/* ---------- timeline ---------- */
.tl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.tl > div { padding: 28px 24px 0 0; position: relative; }
.tl > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.tl > div::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--iris); }
.tl > div + div::before { left: -5px; }
.tl .when { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.tl h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.tl p, .tl li { font-size: 14px; line-height: 21px; color: var(--text-2); }
.tl ul { margin: 0; padding-left: 16px; display: grid; gap: 6px; }

/* ---------- risks ---------- */
.risk { display: grid; grid-template-columns: 28px 1fr 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.risk:last-child { border-bottom: 1px solid var(--line); }
.risk .n { font-family: var(--mono); font-size: 12px; color: var(--text-3); padding-top: 3px; }
.risk h3 { font-size: 17px; line-height: 22px; font-weight: 700; margin-bottom: 6px; }
.risk p { font-size: 14px; line-height: 21px; color: var(--text-2); margin: 0; }
.risk .lab { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 6px; display: block; }

/* ---------- refs / footer ---------- */
.refs { columns: 2; column-gap: 48px; list-style: none; padding: 0; margin: 0; counter-reset: ref; }
.refs li { break-inside: avoid; font-size: 13px; line-height: 19px; color: var(--text-2); padding: 0 0 12px 34px; position: relative; letter-spacing: 0; overflow-wrap: anywhere; }
.refs li::before { counter-increment: ref; content: counter(ref); position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 11px; color: var(--cyan); }
.refs li:target { color: var(--text); }
.refs li:target::before { color: #fff; }
.refs a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.refs a:hover { text-decoration-color: var(--cyan); }
footer { border-top: 1px solid var(--line); padding: 56px 0 72px; color: var(--text-3); font-size: 13px; line-height: 20px; }
footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }


.note { border-left: 2px solid var(--violet); padding: 4px 0 4px 18px; font-size: 14px; line-height: 21px; color: var(--text-2); }
.band { background: var(--ink-2); border-block: 1px solid var(--line); }
.bg-mesh { position: absolute; inset: 0; z-index: -1; opacity: 0.13; background: url("gen/hero-mesh.webp") center / cover no-repeat; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.quote { font-size: 34px; line-height: 41px; font-weight: 500; letter-spacing: 0.01em; max-width: 24ch; }

/* flow animation */
.flow { stroke-dasharray: 3 9; animation: flow 1.6s linear infinite; }
.flow.slow { animation-duration: 3.2s; }
.flow.rev { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .flow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- report page ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 140px 0 96px; }
.doc h1 { font-size: 44px; line-height: 1.1; font-weight: 700; margin-bottom: 20px; }
.doc h2 { font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: 0.01em; margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; }
.doc h4 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.doc p, .doc li { color: #cfcde0; font-size: 17px; line-height: 27px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 1em; }
.doc a { color: var(--cyan); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc table { min-width: 0; font-size: 14px; margin: 0; }
.doc .tbl-wrap { margin: 20px 0 28px; }
.doc code { font-family: var(--mono); font-size: 0.86em; background: rgba(255, 255, 255, 0.07); padding: 1px 6px; border-radius: 6px; }
.doc blockquote { margin: 20px 0; border-left: 2px solid var(--violet); padding: 2px 0 2px 18px; color: var(--text-2); }
.doc hr { border: 0; height: 1px; background: var(--line); margin: 40px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .split, .split.wide-l, .split.wide-r, .explorer { grid-template-columns: 1fr; gap: 40px; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .roles > div { border-left: 0; border-top: 1px solid var(--line); }
  .roles > div:nth-child(even) { border-left: 1px solid var(--line); }
  .roles > div:nth-child(-n + 2) { border-top: 0; }
  .ladder { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc-ctl { border-right: 0; border-bottom: 1px solid var(--line); }
  .tl { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .tl > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .tl > div:nth-child(3)::before { left: 0; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  section { padding: 80px 0; }
  .h-hero { font-size: 34px; line-height: 41px; }
  .h-sec { font-size: 28px; line-height: 34px; }
  .h-sub { font-size: 22px; line-height: 28px; }
  .lede { font-size: 17px; line-height: 26px; }
  .quote { font-size: 24px; line-height: 32px; }
  .sec-head { margin-bottom: 40px; }
  .hero { padding-top: 110px; }
  .hero-mark { width: 82vw; margin-bottom: 28px; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .hero-facts > div { padding: 16px 12px 16px 0; }
  .hero-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hero-facts b { font-size: 28px; line-height: 34px; }
  .g2, .g4 { grid-template-columns: 1fr; }
  .pain { grid-template-columns: 1fr; gap: 10px; }
  .roles { grid-template-columns: 1fr; }
  .roles > div, .roles > div:nth-child(even) { border-left: 0; border-top: 1px solid var(--line); }
  .roles > div:first-child { border-top: 0; }
  .roles > div:nth-child(2) { border-top: 1px solid var(--line); }
  .roles .i { margin-bottom: 16px; }
  .kv { grid-template-columns: 1fr; }
  .kv > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .readouts { grid-template-columns: repeat(2, 1fr); }
  .readouts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .readouts b { font-size: 22px; line-height: 28px; }
  .tl { grid-template-columns: 1fr; }
  .tl > div + div { padding-left: 0; border-left: 0; }
  .tl > div + div::before { left: 0; }
  .risk { grid-template-columns: 1fr; gap: 10px; }
  .risk .n { display: none; }
  .refs { columns: 1; }
  .card { padding: 22px; }
  .nav .btn { display: none; }
}

/* ---------- wordmark (Figma asset, positioned as in the source frame) ---------- */
.mark { position: relative; display: block; aspect-ratio: 510.259 / 110; pointer-events: none; }
.mark img { position: absolute; inset: -100% -22.34% -107.27% -22.34%; width: 144.68%; height: 307.27%; max-width: none; mix-blend-mode: plus-lighter; }
.mark.sm { width: 104px; }
.mark.ft { width: 132px; margin-bottom: 18px; }

/* ---------- recruitment ---------- */
.rc-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.rc-row button { font: 500 14px/1 var(--font); letter-spacing: 0; height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; background: transparent; border: 1px solid var(--line-2); color: var(--text-3); transition: all 0.2s; }
.rc-row button.on { color: #0a0a10; background: #fff; border-color: #fff; }
.rc-svg { width: 100%; height: auto; margin-bottom: 14px; }
.rc-svg circle { fill: rgba(255, 255, 255, 0.03); stroke: var(--line-2); stroke-width: 1.4; transition: all 0.3s; }
.rc-svg g.on circle { fill: rgba(155, 140, 255, 0.28); stroke: var(--violet); }
.rc-k { font: 500 28px var(--font); fill: var(--text); }
.rc-l { font: 11px var(--mono); fill: var(--text-3); }
.rc-bar { display: grid; grid-template-columns: 120px 1fr; gap: 6px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.rc-bar span { font-size: 13px; color: var(--text-2); letter-spacing: 0; }
.rc-bar div { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.rc-bar i { display: block; height: 100%; width: 0; background: var(--iris); border-radius: 6px; transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rc-bar em { grid-column: 2; font: 12px var(--mono); color: var(--text-3); font-style: normal; }
@media (max-width: 1080px) { .ladder { grid-template-columns: 1fr; } #risks .sec-head { position: static !important; } }
@media (max-width: 720px) { .rc-bar { grid-template-columns: 1fr; } .rc-bar em { grid-column: 1; } footer .wrap > div:last-child { text-align: left !important; } }
