:root {
  --bg: #000;
  --blue: #3b82f6;
  --blue-bright: #7db4ff;
  --blue-pale: #bcd7ff;
  --blue-soft: #8fb2e8;
  --blue-dim: #7396cf;
  --line: #10224a;
  --pink: #ff4fa8;
  --gutter: 28px;
  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* Slow pulsing through blues, indigo and cyan-ish blues */
@keyframes pulse-text {
  0%, 100% { color: #6f9bf0; text-shadow: 0 0 0 rgba(59,130,246,0); }
  33%      { color: #9ec5ff; text-shadow: 0 0 18px rgba(96,165,250,.35); }
  66%      { color: #7fa6ff; text-shadow: 0 0 12px rgba(129,140,248,.30); }
}
@keyframes pulse-body { 0%, 100% { color: #86a6d9; } 50% { color: #aac6f5; } }
@keyframes pulse-glow { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
@keyframes sweep { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--blue); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img, canvas, svg { display: block; max-width: 100%; }
::selection { background: var(--blue); color: #000; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--blue-bright); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header / wordmark ---------- */
.top {
  position: absolute; top: 0; left: 0; right: 0; height: 76px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); font-size: 14px;
}
.top.solid { position: relative; border-bottom: 1px solid var(--line); }
.logo {
  font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--blue-bright);
  white-space: nowrap; display: inline-flex; align-items: baseline;
}
.logo em {
  font-style: normal; display: inline-block; max-width: 0; overflow: hidden; opacity: 0;
  vertical-align: bottom; transition: max-width .5s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.logo:hover em, .logo:focus-visible em, .logo.expanded em { max-width: 6em; opacity: 1; }
.logo:hover, .logo.expanded { color: var(--blue-pale); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: flex-end; }
.nav a, .bottom a { opacity: .9; transition: opacity .2s ease, color .2s ease; animation: pulse-glow 6s ease-in-out infinite; }
.nav a:hover, .bottom a:hover, .nav a[aria-current] { opacity: 1; color: var(--blue-pale); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- home hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.hero canvas.dragging { cursor: grabbing; }
@media (pointer: coarse) { .hero canvas { touch-action: pan-y; } }
.hero-h1 {
  position: absolute; left: 0; right: 0; top: 17%; z-index: 3; text-align: center; padding: 0 var(--gutter);
  font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--blue-soft);
  pointer-events: none; animation: pulse-glow 5s ease-in-out infinite;
}
.hero-h1 b { color: var(--blue-bright); font-weight: 700; }
.hint {
  position: absolute; left: 0; right: 0; bottom: 100px; z-index: 3; text-align: center; padding: 0 var(--gutter);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dim);
  pointer-events: none; animation: pulse-glow 4s ease-in-out infinite;
}
.bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); font-size: 14px;
}
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 11px; letter-spacing: .2em; color: var(--blue-dim); text-transform: uppercase; z-index: 4; }

/* ---------- generic layout ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-dim); margin-bottom: 18px; animation: pulse-glow 6s ease-in-out infinite; }
h1, h2, h3, h4 { font-weight: 500; }
.display {
  font-size: clamp(30px, 4.6vw, 54px); line-height: 1.12; letter-spacing: -0.025em; color: var(--blue-bright);
  background: linear-gradient(90deg, #3b82f6, #9ec5ff, #6366f1, #38bdf8, #3b82f6); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: sweep 14s linear infinite; max-width: 20em;
}
.lead { margin-top: 22px; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.55; color: var(--blue-pale); max-width: 40em; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 40px; }
.card {
  display: block; border: 1px solid var(--line); border-radius: 6px; padding: 26px 24px 28px; background: #02060f;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
a.card:hover { border-color: var(--blue); background: #050d22; transform: translateY(-2px); }
.card h3 { font-size: 19px; line-height: 1.3; color: var(--blue-bright); margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { font-size: 15px; line-height: 1.6; color: var(--blue-soft); }
.card .meta { margin-top: 14px; font-size: 12px; color: var(--blue-dim); letter-spacing: .04em; }
.facts { margin-top: 36px; display: grid; grid-template-columns: minmax(130px, 220px) 1fr; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.facts dt { color: var(--blue-dim); letter-spacing: .04em; }
.facts dd { color: var(--blue-pale); }
.btn { display: inline-block; margin-top: 28px; padding: 13px 28px; border-radius: 4px; background: var(--blue-bright); color: #000; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: background .2s ease; border: 0; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--blue-pale); }
.link-arrow { color: var(--blue-bright); border-bottom: 1px solid var(--blue); padding-bottom: 1px; }
.link-arrow:hover { color: var(--blue-pale); }

/* ---------- article ---------- */
.page { padding: 56px 0 96px; }
.article { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.crumbs { font-size: 13px; color: var(--blue-dim); margin-bottom: 36px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a:hover { color: var(--blue-pale); text-decoration: underline; }
.article h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 500; }
.article h1.display { max-width: none; }
.dek { margin-top: 22px; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--blue-pale); }
.byline { margin: 28px 0 36px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--blue-dim); display: flex; flex-wrap: wrap; gap: 6px 22px; letter-spacing: .02em; }
.status-box { margin: 0 0 36px; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 4px; background: #02060f; font-size: 14.5px; line-height: 1.6; color: var(--blue-soft); }
.status-box strong { color: var(--blue-pale); font-weight: 600; }
.toc { margin: 0 0 44px; border: 1px solid var(--line); border-radius: 4px; padding: 16px 20px; background: #02060f; font-size: 14.5px; }
.toc summary { cursor: pointer; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; color: var(--blue-dim); }
.toc ol { margin: 14px 0 4px; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--blue-soft); } .toc a:hover { color: var(--blue-pale); text-decoration: underline; }

.prose { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.25em; }
.prose p, .prose li { color: #86a6d9; animation: pulse-body 10s ease-in-out infinite; }
.prose li:nth-child(2n), .prose p:nth-of-type(2n) { animation-delay: -3s; }
.prose li:nth-child(3n), .prose p:nth-of-type(3n) { animation-delay: -6s; }
.prose h2 { font-size: clamp(24px, 3vw, 31px); line-height: 1.22; letter-spacing: -0.02em; margin-top: 2.3em; color: var(--blue-bright); animation: pulse-text 8s ease-in-out infinite; scroll-margin-top: 24px; }
.prose h3 { font-size: 19px; line-height: 1.3; margin-top: 1.9em; color: var(--blue-pale); letter-spacing: -0.01em; scroll-margin-top: 24px; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--blue-pale); font-weight: 600; }
.prose em { color: var(--blue-pale); }
.prose a { color: var(--blue-bright); border-bottom: 1px solid #1d3f87; transition: border-color .2s ease, color .2s ease; }
.prose a:hover { color: #fff; border-color: var(--blue-bright); }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .55em; }
.prose blockquote { border-left: 3px solid var(--blue); padding: 2px 0 2px 20px; color: var(--blue-pale); font-style: italic; }
.prose code { font-family: var(--mono); font-size: .88em; background: #06122b; padding: 2px 6px; border-radius: 3px; color: var(--blue-pale); }
.prose pre { background: #06122b; padding: 16px 18px; border-radius: 6px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.5; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); color: #86a6d9; animation: none; }
.prose th { color: var(--blue-pale); font-weight: 600; background: #030a1c; font-size: 13px; letter-spacing: .04em; }
.prose tr:last-child td { border-bottom: 0; }
.cite { font-size: .72em; vertical-align: super; line-height: 0; letter-spacing: 0; white-space: nowrap; }
.prose .cite a { border: 0; color: var(--blue); padding: 0 1px; }
.prose .cite a:hover { color: #fff; }
.refs { margin-top: 3.2em; padding-top: 2em; border-top: 1px solid var(--line); }
.refs h2 { margin-top: 0; }
.refs ol { margin-top: 1.2em; padding-left: 1.7em; display: grid; gap: 14px; font-size: 14.5px; line-height: 1.6; }
.refs li { color: #86a6d9; animation: none; scroll-margin-top: 24px; }
.refs li:target { background: #06122b; outline: 1px solid var(--blue); }
.refs a { color: var(--blue-bright); word-break: break-word; }
.refs .t { color: var(--blue-pale); }
.cite-this { margin-top: 3em; padding: 18px 20px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; line-height: 1.6; color: var(--blue-soft); }
.cite-this b { color: var(--blue-pale); }
.related { margin-top: 3.4em; }
.related h2 { margin-top: 0; font-size: 22px; }
.related .grid { margin-top: 20px; }

/* index lists */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 28px 0 8px; }
.cat-nav a { font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue-soft); transition: all .2s ease; }
.cat-nav a:hover { border-color: var(--blue); color: var(--blue-pale); }
.list-group { margin-top: 56px; }
.list-group > h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-dim); font-weight: 600; margin-bottom: 4px; }

/* contact form */
.contact-form { margin: 36px 0 12px; display: grid; gap: 20px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-dim); }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--sans); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--blue-pale);
  background: #04091a; border: 1px solid #14295c; border-radius: 4px; padding: 13px 14px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form select option { background: #04091a; color: var(--blue-pale); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.22); }
.contact-form .invalid { border-color: #6d8bff; box-shadow: 0 0 0 3px rgba(129,140,248,.35); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .check { display: flex; align-items: flex-start; gap: 12px; text-transform: none; letter-spacing: 0; font-size: 14.5px; color: var(--blue-soft); }
.contact-form .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); padding: 0; }
.contact-form .btn { justify-self: start; margin-top: 4px; }
.contact-form .btn:disabled { opacity: .5; cursor: default; }
.form-status { font-size: 15px; min-height: 1.4em; color: var(--blue-pale); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 64px; font-size: 14px; color: var(--blue-dim); }
.footer-grid { display: grid; gap: 36px 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer h2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-dim); font-weight: 600; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: var(--blue-soft); } .footer a:hover { color: var(--blue-pale); text-decoration: underline; text-underline-offset: 4px; }
.footer p { line-height: 1.6; max-width: 30em; }
.footer .legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; }

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .top { height: 64px; } .nav { gap: 4px 16px; font-size: 13px; }
  .prose { font-size: 17px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; } .facts dt { padding-bottom: 2px; border-bottom: 0; } .facts dd { padding-top: 0; }
  .hero-h1 { top: 14%; font-size: 11px; letter-spacing: .16em; }
  .hint { bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* accessibility: underlined in-text links, comfortable touch targets */
.footer .legal a, .refs a, .byline a, .cite-this a { text-decoration: underline; text-underline-offset: 3px; }
.nav a, .bottom a, .footer li a { display: inline-block; padding: 6px 3px; }
.crumbs a { display: inline-block; padding: 4px 2px; }

.person { padding: 8px 0 36px; border-top: 1px solid var(--line); margin-top: 8px; }
.person h2 { margin-top: 1.2em; }
.person p strong { letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
