/* ============================================================
   Neonix Security — Site Styles
   Void-black canvas. Editorial typography. One neon accent.
   ============================================================ */

/* ───────── Reset ───────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ───────── Tokens ───────── */
:root {
  /* color */
  --bg: #0A0A0A;
  --bg-elev: #111111;
  --surface: #141414;
  --line: #1c1c1c;
  --line-strong: #2a2a2a;
  --ink: #FFFFFF;
  --ink-soft: #D8D8D8;
  --ink-dim: #A0A0A0;
  --ink-mute: #7A7A7A;
  --accent: #39FF88;
  --accent-dim: #2BD96F;
  --accent-glow: rgba(57,255,136,0.18);
  --danger: #ff5252;

  /* type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --shell-max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-pad: clamp(80px, 12vh, 160px);

  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ───────── Base ───────── */
html, body { background: var(--bg); color: var(--ink-soft); }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #000; }

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--accent); color: #000;
  padding: 8px 14px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 12px;
}
.skip-link:focus { left: 16px; top: 16px; z-index: 9999; }

/* ───────── Typography Scale ───────── */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h-display {  /* hero only */
  font-size: clamp(42px, 7.2vw, 96px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h-1 { font-size: clamp(40px, 6vw, 88px); line-height: 1.02; letter-spacing: -0.03em; }
.h-2 { font-size: clamp(30px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.025em; }
.h-3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2;  letter-spacing: -0.015em; }
.h-4 { font-size: 18px; line-height: 1.3; letter-spacing: -0.005em; font-weight: 600; }

.lede {
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  text-wrap: pretty;
}

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--accent);
}

.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--ink-dim); }
.muted { color: var(--ink-dim); }
.small { font-size: 14px; }

/* ───────── Header ───────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 18px 0;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10,10,10,0.85);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans); font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark { width: 22px; height: 28px; }
.brand-text { font-size: 17px; letter-spacing: -0.01em; }
.brand-text .dim { color: var(--ink-dim); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  position: relative;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 6px 0;
  letter-spacing: -0.005em;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 2px;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width .35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px; color: var(--ink);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2.2s ease-in-out infinite; }
.nav-cta:hover {
  background: rgba(57,255,136,0.08);
  color: var(--ink);
  border-color: var(--accent);
}
.nav-cta:hover .dot { background: var(--accent); }

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%     { box-shadow: 0 0 0 6px transparent; }
}

.nav-toggle {
  display: none;
  width: 40px; height: 32px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 8px; right: 8px; height: 1px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 15px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 64px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    min-height: calc(100svh - 64px);
    padding: 32px var(--gutter) 48px;
    gap: 18px;
    background: var(--bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    overflow-y: auto;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
  }
  .nav a { font-size: 22px; padding: 6px 0; }
  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
}

/* ───────── Layout helpers ───────── */
main { padding-top: 100px; min-height: 60vh; }

.section { padding: var(--section-pad) 0; position: relative; scroll-margin-top: 80px; }
.section + .section { border-top: 1px solid var(--line); }
.section.no-border { border-top: 0; }
.page-head { margin-top: 32px; }
.section-head.compact { margin-top: 16px; }
.lede-follow,
.block-follow { margin-top: 24px; }
.reveal-delay-short { --rd: .1s; }
.dim-copy { color: var(--ink-dim); max-width: 60ch; }
.dim-lede { color: var(--ink-dim); }
.email-heading-link {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.inline-rule-link {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}
.accent-link { color: var(--accent); }
.inline-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.research-feed-spaced { margin-top: clamp(40px, 6vh, 64px); }
.copy-spaced { margin-top: clamp(32px, 4vh, 48px); }
.tiles-spaced { margin-top: clamp(48px, 6vh, 80px); }
.list-spaced { margin-top: 32px; }
.mono-note { color: var(--ink-mute); margin-top: 32px; }
.error-copy { --rd: .15s; margin-top: 32px; max-width: 70ch; }
.article-cta-title { margin-top: 20px; }
.article-cta-copy { margin-top: 24px; }
.cta-row-end { justify-content: flex-end; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 8vh, 96px);
}
.section-head .head-meta { display: flex; flex-direction: column; gap: 12px; align-self: start; padding-top: 8px; }
.section-head h2 { max-width: 18ch; }
.section-head .head-meta p { color: var(--ink-dim); font-size: 14px; max-width: 32ch; }

@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  main { padding-top: 64px; }
  .section { padding: clamp(48px, 8vh, 88px) 0; }
  .page-head { margin-top: 20px; }
}

.content-narrow { max-width: 66ch; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #050505;
  font-weight: 600;
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.03); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding: clamp(40px, 7vh, 72px) 0 clamp(56px, 8vh, 88px);
  overflow: hidden;
}

/* Big ghost N logomark behind the content — atmosphere, not pattern. */
.hero-watermark {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(420px, 56vw, 820px);
  aspect-ratio: 4 / 5;
  color: #FFFFFF;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}
.hero-watermark svg { width: 100%; height: 100%; display: block; }
.hero .shell { position: relative; z-index: 1; }

/* Small meta line up top — quiet, mono, single row */
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  text-transform: uppercase;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: clamp(48px, 8vh, 80px);
  white-space: nowrap;
}
.hero-meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(57,255,136,.18);
}
.hero-meta .sep { color: var(--line-strong); }

.hero h1 {
  margin: 0 0 clamp(40px, 6vh, 64px);
}
.hero h1 .hline {
  display: block;
}

/* Subtitle + actions row — split column on wide, stack on narrow */
.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
  padding-top: clamp(24px, 4vh, 40px);
  border-top: 1px solid var(--line);
}
.hero-sub {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: flex-end;
}
.hero-link {
  color: var(--ink-soft);
  font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s var(--ease);
}
.hero-link:hover { color: var(--accent); }

@media (max-width: 720px) {
  .hero { padding: clamp(32px, 5vh, 48px) 0 clamp(44px, 7vh, 64px); }
  .hero-meta { flex-wrap: wrap; white-space: normal; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
}

/* ───────── Logomark animation ─────────
   Progressive enhancement: without JS the marks render at final state.
   With `html.js` set, the entry animation plays from initial.
*/
.lm { display: inline-block; position: relative; }
.lm svg { display: block; height: auto; }
.lm .bar { transform-origin: top; }
html.js .lm:not(.no-anim) .bar { animation: barIn .7s var(--ease-out) .15s backwards; }
html.js .lm:not(.no-anim) .bar.b2 { animation-delay: .35s; }
html.js .lm:not(.no-anim) .slash { animation: slashIn .85s var(--ease-out) 1.0s backwards; }
@keyframes barIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes slashIn {
  from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  to   { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* Hero word reveal — same pattern */
@keyframes wordUp { from { transform: translateY(110%); } to { transform: translateY(0); } }

/* ───────── Section labels (numbered) ───────── */
.section-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-bottom: 8px;
}
.section-label .num { color: var(--accent); }
.section-label .line { flex: 1; height: 1px; background: var(--line); }

/* ───────── Service tiles (homepage) ───────── */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  counter-reset: tile;
}
.tile {
  position: relative;
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 360px;
  background: var(--bg);
  transition: background .4s var(--ease);
  overflow: hidden;
  counter-increment: tile;
}
.tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width .55s var(--ease);
}
.tile::after {
  content: counter(tile, decimal-leading-zero) " / 03";
  position: absolute;
  top: clamp(20px, 2.4vw, 32px);
  right: clamp(24px, 2.4vw, 36px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  transition: color .35s var(--ease);
}
.tile:hover { background: #0d0d0d; }
.tile:hover::before { width: 100%; }
.tile:hover::after { color: var(--accent); }
.tile .num {
  font-family: var(--font-mono);
  color: var(--ink-dim);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tile h3 { margin-bottom: 4px; }
.tile p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; max-width: 40ch; }
.tile ul { list-style: none; margin-top: 8px; }
.tile ul li {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 10px;
}
.tile ul li::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 11px;
}
.tile .tile-cta {
  margin-top: auto;
  padding-top: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.005em;
}
.tile .tile-cta .arr { transition: transform .35s var(--ease); }
.tile:hover .tile-cta .arr { transform: translateX(4px); }
.tile:hover .tile-cta { color: var(--accent); }

@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }

/* ───────── Two column rows ───────── */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
@media (max-width: 880px) { .three-col { grid-template-columns: 1fr; } }

/* ───────── Definition list (lined rows) ───────── */
.def-list { list-style: none; border-top: 1px solid var(--line); counter-reset: dl; }
.def-list li {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding .35s var(--ease), background .35s var(--ease);
  counter-increment: dl;
  position: relative;
}
.def-list li::before {
  content: counter(dl, decimal-leading-zero);
  position: absolute;
  left: -56px;
  top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  opacity: 0;
  transition: opacity .35s var(--ease), left .35s var(--ease);
}
.def-list li:hover::before { opacity: 1; left: -40px; }
.def-list .k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  text-transform: uppercase;
  padding-top: 3px;
}
.def-list .v { color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.def-list .v strong { color: var(--ink); font-weight: 500; }
.def-list .v a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .2s var(--ease);
}
.def-list .v a:hover { border-bottom-color: var(--accent); }

@media (max-width: 640px) {
  .def-list li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
  }
}

/* ───────── Plain feature list with leading mono numbers ───────── */
.numbered { list-style: none; counter-reset: nlist; }
.numbered li {
  position: relative;
  padding: 24px 0 24px 64px;
  border-top: 1px solid var(--line);
  counter-increment: nlist;
}
.numbered li:last-child { border-bottom: 1px solid var(--line); }
.numbered li::before {
  content: counter(nlist, decimal-leading-zero);
  position: absolute; left: 0; top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.numbered h4 { margin-bottom: 6px; color: var(--ink); }
.numbered p { color: var(--ink-dim); font-size: 15px; max-width: 70ch; }

/* ───────── Process / flow strip ───────── */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flow-step {
  padding: 28px clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.flow-step:last-child { border-right: 0; }
.flow-step .step-n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.flow-step .step-t { color: var(--ink); font-size: 17px; font-weight: 500; }
.flow-step .step-d { color: var(--ink-dim); font-size: 13.5px; line-height: 1.55; }

@media (max-width: 880px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step:nth-child(2) { border-right: 0; }
  .flow-step:nth-child(1), .flow-step:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ───────── Trust strip ───────── */
.trust-strip {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.trust-strip .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.trust-strip .badge {
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: -0.005em;
}
.trust-strip .sep { color: var(--line-strong); }

/* ───────── Insights / blog cards ───────── */
.insight-row { border-top: 1px solid var(--line); }
.insight {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: start;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(20px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease);
  position: relative;
}
.insight::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.insight:hover { padding-left: 16px; }
.insight:hover::after { transform: scaleX(1); }
.insight .date {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-dim); letter-spacing: 0.05em;
  padding-top: 8px;
}
.insight .body h3 { font-size: clamp(20px, 2vw, 28px); margin-bottom: 8px; }
.insight .body .excerpt { color: var(--ink-dim); font-size: 15px; max-width: 60ch; }
.insight .body .meta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 14px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.insight .arr {
  align-self: center;
  font-family: var(--font-mono);
  color: var(--ink-dim);
  font-size: 14px;
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.insight:hover .arr { transform: translateX(6px); color: var(--accent); }

@media (max-width: 720px) {
  .insight { grid-template-columns: 1fr; }
  .insight .arr { display: none; }
}

/* ───────── People (team) ───────── */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.person {
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 320px;
}
.person .role {
  color: var(--ink-dim);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.person .name { color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.person .cred { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.person .focus { color: var(--ink-dim); font-size: 13.5px; line-height: 1.55; margin-top: auto; }
.person .link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-dim);
  font-family: var(--font-mono); letter-spacing: 0.04em;
  margin-top: 6px;
}
.person .link:hover { color: var(--accent); }

@media (max-width: 880px) { .people { grid-template-columns: 1fr; } }

/* ───────── Contact / CTA panel ───────── */
.cta-panel {
  margin-top: clamp(48px, 8vh, 96px);
  padding: clamp(48px, 8vw, 96px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(800px 400px at 95% 0%, rgba(57,255,136,0.06), transparent 60%),
    var(--bg-elev);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: ""; position: absolute;
  top: 0; right: 0;
  width: 1px; height: 64px;
  background: var(--accent);
}
.cta-panel h2 { margin-bottom: 20px; }
.cta-panel p { color: var(--ink-dim); max-width: 46ch; font-size: 16px; }

@media (max-width: 880px) {
  .cta-panel { grid-template-columns: 1fr; padding: clamp(36px, 8vw, 56px); }
}

/* ───────── Footer ───────── */
footer.site-footer {
  margin-top: clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 16px;
  font-weight: 400;
}
.footer-top ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-top a { color: var(--ink-soft); position: relative; }
.footer-top a:hover { color: var(--accent); }
.footer-brand p { color: var(--ink-dim); max-width: 36ch; margin-top: 16px; font-size: 14px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}
.footer-bottom a { color: var(--ink-mute); }
.footer-bottom a:hover { color: var(--ink-soft); }
.footer-ack {
  padding: 20px 0 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.55;
  max-width: 78ch;
}

@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ───────── Breadcrumb ───────── */
.crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  padding: 0 0 16px;
}
.crumb ol { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb a { color: var(--ink-dim); }
.crumb a:hover { color: var(--accent); }
.crumb li[aria-current="page"] { color: var(--ink-soft); }
.crumb li + li::before { content: "/ "; color: var(--ink-mute); margin-right: 8px; }

/* ───────── Form ───────── */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  max-width: 760px;
}
.form .row-full { grid-column: 1 / -1; }
.form label {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.form input, .form textarea {
  padding: 14px 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: -0.005em;
  text-transform: none;
  transition: border-color .25s var(--ease);
}
.form input::placeholder, .form textarea::placeholder { color: var(--ink-mute); }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form textarea { min-height: 120px; resize: vertical; }
.form .actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.form .note { font-size: 13px; color: var(--ink-mute); font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; text-transform: none; }

@media (max-width: 720px) { .form { grid-template-columns: 1fr; } }

.contact-guide {
  display: grid;
  gap: 16px;
  max-width: 760px;
  list-style: none;
  margin-top: 32px;
}
.contact-guide li {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.contact-guide .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact-guide .v {
  display: block;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ───────── Page transition overlay ───────── */
.page-trans {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  background: var(--bg);
  transform: translateX(-101%);
  display: flex; align-items: center; justify-content: center;
}
.page-trans.is-out { transform: translateX(0); transition: transform .55s var(--ease-out); }
.page-trans.is-in  { transform: translateX(101%); transition: transform .55s var(--ease-out); }
.page-trans .lm { width: 36px; opacity: 0; transition: opacity .25s var(--ease); }
.page-trans.is-out .lm { opacity: 1; transition-delay: .15s; }

/* ───────── Scroll reveal ───────── */
html.js [data-reveal] {
  opacity: 1;
  transform: translateY(24px);
  transition-property: transform;
  transition-duration: .9s;
  transition-timing-function: cubic-bezier(.16,1,.3,1);
  transition-delay: var(--rd, 0s);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
html.js [data-reveal-delay="1"] { transition-delay: .08s; }
html.js [data-reveal-delay="2"] { transition-delay: .16s; }
html.js [data-reveal-delay="3"] { transition-delay: .24s; }
html.js [data-reveal-delay="4"] { transition-delay: .32s; }

.hline { display: inline-block; }

/* Hero h1 lines get a one-time intro animation \u2014 no reveal-on-scroll plumbing,
   so nothing in the cascade can fight it invisible. */
.hero-h1 .hline {
  display: block;
  opacity: 1;
  transform: translateY(22px);
  animation: heroLineIn 1s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-h1 .hline:nth-child(1) { animation-delay: .10s; }
.hero-h1 .hline:nth-child(2) { animation-delay: .22s; }
.hero-h1 .hline:nth-child(3) { animation-delay: .34s; }
@keyframes heroLineIn {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-h1 .hline { transform: none; animation: none; }
}

/* Accent underline on a single word in the hero */
.h-display .accent-line {
  position: relative;
  color: var(--ink);
  white-space: nowrap;
}
.h-display .accent-line::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -0.04em;
  height: 0.06em;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  animation: accentLineSweep 1.1s cubic-bezier(.16,1,.3,1) 1.1s forwards;
}
@keyframes accentLineSweep { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .h-display .accent-line::after { animation: none; transform: scaleX(1); }
}

/* ───────── Scroll progress ───────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 1px; z-index: 90;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}

/* ───────── Misc ───────── */
.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink-dim);
}

/* ───────── Research feed ───────── */
.research-feed { list-style: none; border-top: 1px solid var(--line); }
.research-item {
  display: grid;
  grid-template-columns: 88px 96px 1fr auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left .35s var(--ease);
}
.research-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.research-item:hover { padding-left: 16px; }
.research-item:hover::after { transform: scaleX(1); }
.research-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  padding-top: 6px;
}
.research-type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 7px;
}
.research-link { display: block; min-width: 0; }
.research-link h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color .25s var(--ease);
}
.research-link p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.55;
  max-width: 60ch;
  margin-bottom: 14px;
}
.research-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.research-arrow {
  align-self: center;
  font-family: var(--font-mono);
  color: var(--ink-dim);
  font-size: 15px;
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.research-item:hover .research-arrow { color: var(--accent); transform: translateX(6px); }
.research-item:hover .research-link h3 { color: var(--accent); }

@media (max-width: 760px) {
  .research-item {
    grid-template-columns: auto auto;
    grid-template-areas:
      "date type"
      "link link"
      "arrow arrow";
    gap: 12px 16px;
  }
  .research-date { grid-area: date; padding-top: 0; }
  .research-type { grid-area: type; padding-top: 0; }
  .research-link { grid-area: link; }
  .research-arrow { grid-area: arrow; justify-self: start; }
}

/* ───────── Contact section (homepage) ───────── */
.contact-section { padding-bottom: 0; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  margin-top: clamp(48px, 8vh, 80px);
}
.contact-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 20px;
}
.contact-email {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  word-break: break-word;
}
.h-1 a[href^="mailto:"],
.contact-email a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.h-1:has(a[href^="mailto:"]) {
  font-size: clamp(31px, 7.8vw, 72px);
  line-height: 1.08;
}
.contact-email a {
  color: var(--ink);
  position: relative;
  background-image: linear-gradient(to right, var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 4px;
  padding-bottom: 6px;
  transition: background-size .5s var(--ease);
}
.contact-email a:hover { background-size: 100% 4px; }
.contact-note {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 56ch;
}

.contact-facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.contact-facts > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  min-width: 100px;
}
.contact-facts dd { color: var(--ink-soft); font-size: 14.5px; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.divider { height: 1px; background: var(--line); margin: clamp(48px, 8vh, 96px) 0; }

/* ───────── Long-form article ───────── */
.article {
  max-width: 72ch;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.article h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 64px 0 16px;
  letter-spacing: -0.015em;
}
.article h3 {
  font-size: 20px;
  margin: 40px 0 12px;
  color: var(--ink);
}
.article p { margin-bottom: 1.2em; }
.article a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  transition: background .2s var(--ease);
}
.article a:hover { background: rgba(57,255,136,0.08); }
.article ul, .article ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.article li { margin-bottom: 0.4em; }
.article pre {
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 24px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.article code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--accent);
  background: rgba(57,255,136,0.06);
  padding: 1px 6px;
  border-radius: 3px;
}
.article pre code { background: none; padding: 0; color: inherit; }
.article blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  color: var(--ink);
  font-size: 18px;
  font-style: italic;
}

.article-header {
  max-width: 72ch;
  margin: 0 auto 64px;
}
.article-header h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 16px 0 24px;
}
.article-header .meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

/* ───────── Error pages ───────── */
.error-stage {
  min-height: calc(100vh - 100px);
  display: flex; align-items: center;
  padding: 80px 0;
}
.error-stage .shell { width: 100%; }
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(96px, 18vw, 220px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-weight: 500;
}
.error-code .glow {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(57,255,136,0.4);
}
.error-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.error-title {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 16px;
  color: var(--ink);
}
.error-body {
  color: var(--ink-dim);
  max-width: 50ch;
  font-size: 16px;
  margin-bottom: 32px;
}

.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

/* ───────── Prefers reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
