/* ==========================================================================
   Steve Crocker — site styles
   Theme: protocols, packets & plain-text RFCs. Deep navy, signal cyan, violet.
   ========================================================================== */

/* Self-hosted fonts (latin subsets, variable weight) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../fonts/space-grotesk-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); }

:root {
  --bg: #050b18;
  --bg-2: #081226;
  --bg-3: #0c1a33;
  --panel: rgba(148, 190, 255, 0.04);
  --panel-strong: rgba(148, 190, 255, 0.07);
  --line: rgba(130, 175, 255, 0.14);
  --line-strong: rgba(130, 175, 255, 0.28);
  --text: #e8eef8;
  --muted: #94a5c0;
  --dim: #64748b;
  --cyan: #38bdf8;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --green: #4ade80;
  --grad: linear-gradient(110deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 20px 60px -20px rgba(56, 189, 248, 0.35);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --max: 1180px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint grid that sits behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(130, 175, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 175, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #7dd3fc; }
::selection { background: rgba(56, 189, 248, 0.35); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
strong { color: #fff; font-weight: 600; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono { font-family: var(--font-mono); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--cyan); color: #00121f; padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 12px; }

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

/* ---------------------------------------------------------------- Header */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 11, 24, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(167,139,250,.18));
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: .82rem; font-weight: 700; color: #fff;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}
.brand small { display: block; font-family: var(--font-mono); font-size: .66rem; color: var(--muted); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: .92rem; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: var(--panel-strong); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(56, 189, 248, 0.12); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.3); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s, background .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .005em;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  border: 1px solid transparent; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #04101f; box-shadow: 0 10px 40px -10px rgba(56, 189, 248, .6); }
.btn-primary:hover { color: #04101f; transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(129, 140, 248, .7); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: var(--panel); }
.btn-ghost:hover { color: #fff; border-color: rgba(56, 189, 248, .5); background: rgba(56, 189, 248, .08); }

/* ---------------------------------------------------------------- Hero */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden; isolation: isolate;
}
.net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 220px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: -1; pointer-events: none; }
.orb-1 { width: 520px; height: 520px; background: #0ea5e9; top: -160px; right: -120px; opacity: .22; animation: drift 18s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: #7c3aed; bottom: -180px; left: -140px; opacity: .2; animation: drift 22s ease-in-out infinite reverse; }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); padding: 7px 14px; border-radius: 999px;
  background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .25);
  margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }

.hero h1 { margin-bottom: .3em; }
.hero h1 .line { display: block; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 36em; margin-bottom: 2em; }
.lede strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.portrait-wrap { position: relative; perspective: 1200px; justify-self: center; width: min(420px, 100%); }
.portrait {
  position: relative; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 0 8px rgba(56, 189, 248, .04);
  transform-style: preserve-3d; transition: transform .2s ease-out;
  aspect-ratio: 4 / 5; background: var(--bg-3);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 11, 24, .85) 100%);
}
.portrait-caption {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2;
  font-family: var(--font-mono); font-size: .76rem; color: #cbd5e1; letter-spacing: .04em;
  display: flex; justify-content: space-between; gap: 12px;
}
.portrait-caption b { color: #fff; font-weight: 600; }
.portrait-ring {
  position: absolute; inset: -14px; border-radius: 36px; z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), transparent 0deg, rgba(56,189,248,.7) 60deg, transparent 120deg, rgba(167,139,250,.7) 220deg, transparent 280deg);
  filter: blur(14px); opacity: .55;
  animation: spin 9s linear infinite;
}

.float-chip {
  position: absolute; z-index: 3;
  font-family: var(--font-mono); font-size: .74rem; line-height: 1.4;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(8, 18, 38, .82); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.float-chip .k { color: var(--muted); display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.float-chip .v { color: #fff; font-weight: 600; }
.chip-a { top: 9%; left: -18%; }
.chip-b { bottom: 18%; right: -14%; animation-delay: -3s; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--cyan), transparent); animation: cue 2.2s ease-in-out infinite; }

/* inner page hero */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 90px) 0 90px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 16em; }
.page-hero .lede { margin-bottom: 0; }
.crumb { font-family: var(--font-mono); font-size: .82rem; color: var(--dim); margin-bottom: 22px; }
.crumb span { color: var(--cyan); }
.crumb .caret { display: inline-block; width: 9px; height: 1.05em; background: var(--cyan); vertical-align: -2px; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }

/* ---------------------------------------------------------------- Sections */

section { position: relative; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.section-head.center .kicker::after { content: ""; width: 24px; height: 1px; background: currentColor; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------------------------------------------------------------- Terminal / RFC card */

.terminal {
  border-radius: var(--radius); overflow: hidden;
  background: #030814; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 80px -30px rgba(56, 189, 248, .35);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: rgba(148, 190, 255, .05); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .74rem; color: var(--dim);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.terminal-bar i:nth-child(1) { background: #f87171; }
.terminal-bar i:nth-child(2) { background: #fbbf24; }
.terminal-bar i:nth-child(3) { background: #4ade80; }
.terminal-bar span { margin-left: auto; }
.terminal pre {
  margin: 0; padding: 22px 24px 26px;
  font-family: var(--font-mono); font-size: clamp(.68rem, 1.35vw, .86rem); line-height: 1.75;
  color: #d6e2f5; white-space: pre; overflow-x: auto; min-height: 15.5em;
}
.terminal pre .amber { color: var(--amber); }
.terminal pre .cyan { color: var(--cyan); }
.terminal pre .dim { color: var(--dim); }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--cyan); vertical-align: -3px; animation: blink 1s steps(1) infinite; }

/* ---------------------------------------------------------------- Stats */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-2); padding: 34px 28px; position: relative; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.stat-label { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 40%; background: var(--grad); }

/* ---------------------------------------------------------------- Cards */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 32px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(56, 189, 248, .13), transparent 45%);
}
.card:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, .35); box-shadow: var(--glow); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }
.card .tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; display: block; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; font-size: .92rem; }
.card-link::after { content: "→"; transition: transform .25s; }
.card:hover .card-link::after { transform: translateX(4px); }
a.card { color: inherit; display: block; }

.icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(56,189,248,.16), rgba(167,139,250,.16));
  border: 1px solid var(--line-strong); color: var(--cyan);
}
.icon svg { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- Split / prose */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr .8fr; }
.prose p { color: #c4d0e3; }
.prose p.lead-p { font-size: 1.2rem; color: var(--text); }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.8em; color: #fff; }

.figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg-3); box-shadow: var(--shadow); }
.figure img { width: 100%; height: auto; }
.figure figcaption { padding: 14px 18px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); font-family: var(--font-mono); }
.figure.map img { background: #f8fafc; padding: 18px; filter: invert(.92) hue-rotate(180deg) contrast(.95); mix-blend-mode: normal; }

/* ---------------------------------------------------------------- Quote */

.quote-band { padding: 120px 0; text-align: center; position: relative; overflow: hidden; }
.quote-band::before {
  content: "“"; position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  font-family: Georgia, serif; font-size: 22rem; line-height: 1; color: rgba(56, 189, 248, .06); pointer-events: none;
}
blockquote { margin: 0; }
.big-quote { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; max-width: 26em; margin: 0 auto 28px; }
.quote-cite { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); letter-spacing: .04em; }
.quote-cite b { color: var(--cyan); font-weight: 500; }

.pull {
  border-left: 2px solid var(--cyan); padding: 6px 0 6px 24px; margin: 2em 0;
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1.45; color: #fff;
}
.pull cite { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); font-style: normal; }

/* ---------------------------------------------------------------- Timeline */

.timeline { position: relative; max-width: 940px; margin: 0 auto; padding-left: 0; list-style: none; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 2px; transform: translateX(-50%);
}
.timeline::before { bottom: 0; background: var(--line); }
.timeline::after { height: var(--p, 0%); background: var(--grad); box-shadow: 0 0 14px rgba(56, 189, 248, .7); transition: height .1s linear; }
.tl-item { position: relative; width: 50%; padding: 0 56px 64px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 64px 56px; }
.tl-item::before {
  content: ""; position: absolute; top: 26px; right: -8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 0 5px rgba(56, 189, 248, .12), 0 0 18px rgba(56,189,248,.6);
  z-index: 2;
}
.tl-item:nth-child(even)::before { right: auto; left: -6px; }
.tl-item:nth-child(odd)::before { right: -8px; }
.tl-date { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: var(--cyan); margin-bottom: 10px; display: block; }
.tl-card { padding: 26px 28px; }
.tl-card h3 { font-size: 1.22rem; margin-bottom: .3em; }
.tl-card .role { color: var(--violet); font-weight: 500; font-size: .92rem; display: block; margin-bottom: 10px; }

/* ---------------------------------------------------------------- Honors */

.honor { display: flex; gap: 24px; align-items: flex-start; }
.honor-year {
  flex: none; width: 84px; height: 84px; border-radius: 20px;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(56,189,248,.15), rgba(167,139,250,.15));
  border: 1px solid var(--line-strong); color: #fff;
}
.honor-year small { display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; color: var(--muted); font-weight: 400; text-transform: uppercase; }
.honor h3 { margin-bottom: .25em; }
.honor .by { font-family: var(--font-mono); font-size: .78rem; color: var(--cyan); letter-spacing: .06em; display: block; margin-bottom: 10px; }

.feature-honor {
  position: relative; border-radius: 26px; padding: 56px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #0b1d3a, #120f33);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.feature-honor::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), transparent, rgba(56,189,248,.18), transparent 30%, rgba(167,139,250,.18), transparent 60%);
  animation: spin 14s linear infinite;
}
.feature-honor h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.feature-honor p { color: #c4d0e3; max-width: 46em; }
.citation { font-family: var(--font-mono); font-size: .95rem; color: var(--amber); background: rgba(251, 191, 36, .06); border: 1px dashed rgba(251, 191, 36, .35); border-radius: 12px; padding: 18px 22px; margin-top: 24px; }

/* ---------------------------------------------------------------- Lists */

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: #c4d0e3; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 6px;
  background: rgba(56,189,248,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid rgba(56,189,248,.35);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-mono); font-size: .78rem; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); color: #cbd5e1; background: var(--panel); transition: border-color .2s, color .2s; }
.chip:hover { border-color: rgba(56,189,248,.5); color: #fff; }

/* people row */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { padding: 24px; }
.person .avatar {
  width: 48px; height: 48px; border-radius: 50%; margin-bottom: 16px;
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: .85rem; color: #04101f;
  background: var(--grad);
}
.person h3 { font-size: 1.05rem; margin-bottom: .2em; }
.person p { font-size: .88rem; }

/* live counter */
.live {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .86rem; color: var(--muted);
  padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(3, 8, 20, .6);
}
.live b { color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }

/* writings */
a.card.writing, .writing { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 26px 30px; }
.writing .w-year { font-family: var(--font-mono); color: var(--cyan); font-size: .9rem; min-width: 4.5em; }
.writing h3 { font-size: 1.15rem; margin-bottom: .2em; }
.writing p { font-size: .92rem; }
.writing .w-go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--cyan); transition: transform .3s, background .3s, color .3s; }
.writing:hover .w-go { transform: rotate(-45deg); background: var(--cyan); color: #04101f; }
.writing .w-go svg { width: 18px; height: 18px; }

.credits { font-size: .9rem; color: var(--muted); }
.credits li { margin-bottom: 10px; }
.credits a { color: #93c5fd; }

/* CTA */
.cta {
  border-radius: 28px; padding: 70px 56px; text-align: center; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at top, rgba(56,189,248,.18), transparent 60%), linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-strong);
}
.cta h2 { margin-bottom: .35em; }
.cta p { color: var(--muted); max-width: 36em; margin: 0 auto 32px; font-size: 1.08rem; }
.cta .hero-actions { justify-content: center; }

/* ---------------------------------------------------------------- Footer */

.site-footer { border-top: 1px solid var(--line); padding: 70px 0 36px; background: linear-gradient(180deg, var(--bg), #030712); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 50px; }
.footer-grid p { color: var(--muted); font-size: .92rem; max-width: 26em; margin-top: 16px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: #cbd5e1; font-size: .94rem; }
.footer-grid ul a:hover { color: var(--cyan); }
.footer-email {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel);
  font-family: var(--font-mono); font-size: .86rem; color: #cbd5e1;
  transition: border-color .2s, color .2s, background .2s;
}
.footer-email svg { width: 17px; height: 17px; color: var(--cyan); }
.footer-email:hover { color: #fff; border-color: rgba(56, 189, 248, .5); background: rgba(56, 189, 248, .08); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--dim); font-family: var(--font-mono); }

/* ---------------------------------------------------------------- Reveal */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Utilities
   (the Content-Security-Policy blocks inline style attributes) */

.d-06 { --d: .06s; }
.d-08 { --d: .08s; }
.d-1  { --d: .1s; }
.d-12 { --d: .12s; }
.d-16 { --d: .16s; }
.d-18 { --d: .18s; }
.d-2  { --d: .2s; }
.d-24 { --d: .24s; }
.pt-0 { padding-top: 0; }
.mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; }
.align-start { align-items: start; }
.stats.stats-2 { grid-template-columns: repeat(2, 1fr); }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------------------------------------------------------------- 404 */

.notfound { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; text-align: center; }
.notfound .hero-actions { justify-content: center; }
.notfound .code { font-family: var(--font-mono); font-size: clamp(4rem, 14vw, 9rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; margin-bottom: 16px; }
.notfound .lede { margin-inline: auto; }

/* ---------------------------------------------------------------- Keyframes */

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 30px); } }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1080px) {
  .chip-a { left: -6%; }
  .chip-b { right: -4%; }
  .people { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 24px;
    background: rgba(5, 11, 24, .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s;
  }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-open .site-header { background: rgba(5, 11, 24, .97); border-bottom-color: var(--line); }
  .nav-links a { padding: 14px 16px; border-radius: 12px; font-size: 1rem; }

  .hero-grid, .split, .split.wide-left { grid-template-columns: 1fr; gap: 56px; }
  .hero-grid .portrait-wrap { order: -1; width: min(340px, 82%); }
  .sticky-aside { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }

  .timeline::before, .timeline::after { left: 7px; transform: none; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 48px 40px; }
  .tl-item::before, .tl-item:nth-child(even)::before { left: 1px; right: auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 84px 0; }
  .quote-band { padding: 84px 0; }
  .grid-2, .grid-3, .people { grid-template-columns: 1fr; }
  .stat { padding: 26px 20px; }
  .card { padding: 26px; }
  .feature-honor { padding: 36px 26px; }
  .cta { padding: 52px 24px; }
  .honor { flex-direction: column; gap: 16px; }
  .writing { grid-template-columns: 1fr auto; padding: 22px; }
  .writing .w-year { grid-column: 1 / -1; }
  .float-chip, .scroll-cue { display: none; }
  .eyebrow { font-size: .68rem; letter-spacing: .08em; }
  .portrait-caption { flex-direction: column; gap: 2px; font-size: .7rem; left: 16px; bottom: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .terminal pre { padding: 18px 16px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
