/* Prairie Research — site stylesheet. One file, no framework. Tokens first. */
:root {
  --night: #070d18;
  --navy-900: #0b1526;
  --navy-800: #12213a;
  --graphite-800: #1a2029;
  --graphite-700: #262d38;
  --graphite-500: #5a6371;
  --graphite-300: #9aa3b0;
  --warm-50: #f7f4ee;
  --warm-100: #efebe3;
  --warm-200: #e3ddd2;
  --teal-600: #3d8a80;
  --teal-500: #4fa094;
  --teal-400: #6fb8ad;
  --teal-300: #9fd4cb;
  --teal-100: #dcefeb;
  --ink: #111926;
  --ink-2: #3b4452;
  --muted: #66707e;
  --line: #e2dcd1;
  --line-dark: rgba(255, 255, 255, 0.09);
  --card: #fffdf9;
  --danger: #b4382c;

  --font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-md: 12px;
  --r-lg: 20px;
  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --shadow-2: 0 2px 6px rgba(7, 13, 24, 0.06), 0 18px 40px rgba(7, 13, 24, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--night); }
body { margin: 0; background: var(--warm-50); color: var(--ink); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--teal-600); text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -0.03em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.9rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; }
h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.015em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--teal-300); color: var(--night); padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-600); margin: 0 0 20px; }
.label b { font-weight: 500; color: var(--graphite-500); }
.label::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: 0.5; }
.dark .label { color: var(--teal-300); }
.dark .label b { color: var(--graphite-300); }
.lead { font-size: 1.16rem; line-height: 1.65; color: var(--ink-2); max-width: 40em; }

/* Buttons */
.btn {
  --btn-bg: var(--teal-300); --btn-fg: var(--night); --btn-bd: var(--teal-300);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: 600 15px/1.2 var(--font-body); cursor: pointer; text-align: center;
  transition: transform 0.18s var(--ease), background-color 0.18s, box-shadow 0.25s var(--ease), border-color 0.18s, color 0.18s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover { --btn-bg: #b9e2da; --btn-bd: #b9e2da; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(111, 184, 173, 0.28); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn-ghost { --btn-bg: transparent; --btn-fg: #e9eef4; --btn-bd: rgba(255, 255, 255, 0.24); }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.06); --btn-bd: rgba(255, 255, 255, 0.6); box-shadow: none; }
.btn-dark { --btn-bg: var(--navy-800); --btn-fg: #fff; --btn-bd: var(--navy-800); }
.btn-dark:hover { --btn-bg: var(--graphite-700); --btn-bd: var(--graphite-700); box-shadow: var(--shadow-2); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal-600); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.25s var(--ease); padding-bottom: 2px; }
.text-link:hover { background-size: 100% 1.5px; }
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
.dark .text-link { color: var(--teal-300); }

/* Header (always dark glass) */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(7, 13, 24, 0.92); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; min-height: 44px; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font: 600 18px/1 var(--font-head); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: #b7c0cc; font-weight: 500; font-size: 15px; transition: color 0.15s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1.5px; background: var(--teal-300); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 14px; min-height: 42px; padding: 10px 18px; font-size: 14px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 12px; background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Dark surfaces */
.dark { background: var(--night); color: #c3ccd7; position: relative; overflow: hidden; }
.dark h1, .dark h2, .dark h3 { color: #f4f6f8; }
.dark .lead { color: #b5c0cc; }
.grid-bg::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%); opacity: 0.6; }

/* Hero */
.hero { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: clamp(48px, 6vw, 88px) 0; }
.hero > .wrap { position: relative; z-index: 2; width: 100%; }
.hero canvas.signals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 18% 50%, rgba(7, 13, 24, 0.92), rgba(7, 13, 24, 0.55) 55%, transparent 80%); }
.hero h1 { max-width: 11.5em; }
.hero h1 .glow { background: linear-gradient(100deg, var(--teal-300), #d9f1ec 60%, var(--teal-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 28px 0 36px; max-width: 34em; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); max-width: 640px; }
.hero-foot .tagline { font: 600 1.05rem/1.3 var(--font-head); color: #fff; }
.hero-foot .stages { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite-300); }
.hero-foot .stages i { font-style: normal; color: var(--teal-400); padding: 0 6px; }

/* Sections */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-warm { background: var(--warm-100); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 72px; align-items: end; margin-bottom: 60px; }
.section-head > p { margin: 0; color: var(--ink-2); font-size: 1.08rem; }
.dark .section-head > p { color: #aeb9c6; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }

/* Overview statement */
.statement { font: 500 clamp(1.6rem, 3vw, 2.5rem)/1.22 var(--font-head); letter-spacing: -0.025em; color: var(--ink); max-width: 22em; margin: 0; }
.statement em { font-style: normal; color: var(--teal-600); }
.pillars { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.pillars li { padding: 28px 28px 0 0; }
.pillars li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.pillars .num { font: 500 12px/1 var(--font-mono); color: var(--teal-600); letter-spacing: 0.1em; }
.pillars h3 { margin: 14px 0 8px; }
.pillars p { color: var(--ink-2); margin: 0; }

/* Research area cards */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.area { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 28px; color: inherit; overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s; }
a.area:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--warm-200); }
.area .glyph-wrap { height: 92px; margin: -2px -2px 22px; border-radius: 14px; background: linear-gradient(160deg, var(--navy-900), var(--graphite-800)); display: grid; place-items: center; padding: 10px 20px; }
.area .glyph { width: 100%; max-width: 200px; height: 100%; }
.area .num { font: 500 12px/1 var(--font-mono); color: var(--muted); letter-spacing: 0.1em; margin-bottom: 10px; }
.area h3 { margin-bottom: 10px; }
.area p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }
.area .text-link { margin-top: auto; padding-top: 18px; }
.glyph .g-faint { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1.5; }
.glyph .g-main { stroke: var(--teal-400); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.glyph .flow { stroke-dasharray: 6 10; animation: flow 2.8s linear infinite; }
.glyph .flow.f2 { animation-duration: 3.4s; }
.glyph .g-dot, .glyph .g-node.hi { fill: var(--teal-300); }
.glyph .g-node { fill: var(--graphite-700); stroke: var(--teal-400); stroke-width: 1.5; }
.glyph .g-bar { fill: rgba(255, 255, 255, 0.14); }
.glyph .g-bar.hi { fill: var(--teal-400); }
.glyph .g-mark { stroke: rgba(159, 212, 203, 0.5); stroke-dasharray: 3 3; }
.glyph .g-txt { fill: var(--graphite-300); font: 500 10px var(--font-mono); }
.glyph .g-alert { fill: none; stroke: #f0b86e; stroke-width: 2; animation: blink 3s ease-in-out infinite; }
.glyph .g-frame { stroke: rgba(255, 255, 255, 0.14); }
@keyframes flow { to { stroke-dashoffset: -64; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Scenario charts */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 24px 24px 18px; backdrop-filter: blur(6px); }
.panel.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.panel h3 { font-size: 1.15rem; margin-bottom: 8px; }
.panel p { margin: 0 0 18px; color: #aab5c2; font-size: 0.96rem; }
.panel .q { font: 500 12px/1.5 var(--font-mono); color: var(--teal-300); letter-spacing: 0.06em; margin-bottom: 12px; display: block; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .ch-grid { stroke: rgba(255, 255, 255, 0.06); }
.chart .ch-axisline { stroke: rgba(255, 255, 255, 0.18); }
.chart .ch-axis { fill: var(--graphite-300); font: 400 11px var(--font-mono); }
.chart .ch-label { fill: #dbe2ea; font: 500 12px var(--font-mono); letter-spacing: 0.04em; }
.chart .ch-line { fill: none; stroke: var(--teal-300); stroke-width: 2; stroke-linejoin: round; }
.chart .ch-mark { fill: var(--night); stroke: #f0b86e; stroke-width: 2; }
.chart .ch-bar { fill: var(--teal-400); opacity: 0.85; }
.chart .ch-bar.tail { fill: #f0b86e; opacity: 0.8; }
.chart .ch-marker { stroke: rgba(255, 255, 255, 0.55); stroke-dasharray: 4 4; }
.chart .ch-mlabel { fill: #f4f6f8; font: 500 11px var(--font-mono); }
.chart .ch-cell { fill: var(--teal-400); }
.chart .ch-badge rect { fill: rgba(240, 184, 110, 0.12); stroke: rgba(240, 184, 110, 0.55); }
.chart .ch-badge text { fill: #f0c68e; font: 500 11px var(--font-mono); letter-spacing: 0.04em; }
.js .chart .draw { stroke-dasharray: 2600; stroke-dashoffset: 2600; }
.js .is-in .chart .draw { animation: draw 2.4s var(--ease) forwards; }
.js .chart .ch-bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.js .is-in .chart .ch-bar { animation: grow 0.9s var(--ease) forwards; animation-delay: calc(var(--i) * 18ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { to { transform: scaleY(1); } }

/* Process */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: linear-gradient(90deg, var(--teal-500), var(--warm-200)); }
.steps li { position: relative; padding: 0 28px 0 0; }
.steps .n { position: relative; display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--warm-50); border: 1px solid var(--teal-500); font: 600 1.25rem/1 var(--font-head); color: var(--ink); margin-bottom: 26px; }
.steps .n::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed var(--warm-200); }
.steps h3 { margin-bottom: 8px; font-size: 1.3rem; }
.steps p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }
.steps .out { margin-top: 14px; font: 500 12px/1.5 var(--font-mono); color: var(--teal-600); letter-spacing: 0.04em; }

/* Value */
.values { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.values .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-900); color: var(--teal-300); }
.values .icon svg { width: 22px; height: 22px; }
.values h3 { margin-bottom: 6px; }
.values p { margin: 0; color: var(--ink-2); }

/* CTA */
.cta { border-radius: 28px; padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta h2 { max-width: 14em; }
.cta p { margin: 14px 0 0; color: #b5c0cc; max-width: 34em; }
.cta canvas.signals { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.cta > * { position: relative; z-index: 1; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); }
.page-hero > .wrap { position: relative; z-index: 2; }
.page-hero canvas.signals { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.page-hero h1 { max-width: 14em; font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.page-hero .lead { margin-top: 24px; }

/* Detail rows */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding: 64px 0; border-top: 1px solid var(--line); align-items: start; }
.detail:first-child { border-top: 0; padding-top: 0; }
.detail h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 18px; }
.detail .num { font: 500 12px/1 var(--font-mono); color: var(--teal-600); letter-spacing: 0.12em; display: block; margin-bottom: 16px; }
.detail > div > p { color: var(--ink-2); font-size: 1.05rem; }
.detail .glyph-wrap { height: 120px; border-radius: 16px; background: linear-gradient(160deg, var(--navy-900), var(--graphite-800)); display: grid; place-items: center; padding: 14px 28px; margin-bottom: 16px; }
.detail .glyph { width: 100%; max-width: 260px; height: 100%; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.box + .box { margin-top: 16px; }
.box h3 { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 14px; }
.ticks { list-style: none; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 1.5px; background: var(--teal-500); }
.dark .ticks li { color: #b5c0cc; }

/* Facts */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 12px/1.8 var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding-right: 48px; }
.facts dd { font-weight: 500; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 40px); }
.form-card.pending h3 { font-size: 1.4rem; margin-bottom: 10px; }
.form-card.pending p { color: var(--ink-2); margin: 0; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: var(--navy-900); color: var(--teal-300); }
.icon-tile svg { width: 22px; height: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-weight: 600; font-size: 14px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--warm-200); border-radius: 12px; background: #fff; color: var(--ink); font: 400 16px/1.4 var(--font-body); transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366707e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(61, 138, 128, 0.16); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .error { font-size: 13px; color: var(--danger); font-weight: 500; }
.field .error:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.form-actions .btn { --btn-bg: var(--navy-800); --btn-fg: #fff; --btn-bd: var(--navy-800); }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { margin-top: 20px; padding: 16px 18px; border-radius: 12px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { background: #fbefec; color: #8a2b20; border: 1px solid #efcbc3; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { color: var(--ink-2); }
.form-success code { font-family: var(--font-mono); font-size: 13px; background: var(--warm-100); padding: 2px 6px; border-radius: 4px; }

/* Footer */
.site-footer { background: var(--night); color: #8e99a7; padding: 72px 0 32px; font-size: 15px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.site-footer .tag { font: 600 1.2rem/1.3 var(--font-head); color: #fff; margin: 22px 0 10px; }
.site-footer p { margin: 0; }
.site-footer h3 { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-300); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 2px; }
.site-footer a { color: #cfd6df; display: inline-flex; align-items: center; min-height: 36px; background: linear-gradient(currentColor, currentColor) 0 85% / 0 1px no-repeat; transition: background-size 0.25s var(--ease), color 0.15s; }
.site-footer a:hover { color: #fff; background-size: 100% 1px; }
.site-footer a.brand { background: none; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px; color: #6f7a88; }

/* Motion */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-enter] { animation: enter 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 100ms); }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .chart .draw { stroke-dashoffset: 0; }
  .js .chart .ch-bar { transform: none; }
  .glyph .flow { stroke-dasharray: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps::before { display: none; }
  .panel.wide { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--night); }
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px; background: var(--night); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { min-height: 58px; font-size: 19px; padding: 0 4px; border-bottom: 1px solid var(--line-dark); color: #e6ebf0; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 24px 0 0; min-height: 52px; font-size: 16px; }
  body.menu-open { overflow: hidden; }
  .section-head, .split, .detail, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .section-head { margin-bottom: 40px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars li, .pillars li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero::after { background: linear-gradient(180deg, rgba(7, 13, 24, 0.75), rgba(7, 13, 24, 0.9)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .areas, .steps, .form-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn, .form-actions .btn { width: 100%; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .panel { padding: 18px 16px 12px; }
}
@media (max-width: 640px) {
  .label { display: block; }
  .label::after { display: none; }
}
