/* ============================================================
   gilbertigwe.com — futuristic design system
   "Cinematic, restrained, editorial-meets-AI"
   tokens, primitives, surfaces, motion
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- tokens ---------- */
:root {
  /* surfaces — deep cinematic indigo, never pure black */
  --void: #04050C;
  --ink: #07091A;
  --surface: #0D1024;
  --surface-2: #131634;
  --surface-3: #1A1E40;
  --rule: rgba(255, 255, 255, 0.07);
  --rule-strong: rgba(255, 255, 255, 0.16);
  --rule-glow: rgba(34, 211, 238, 0.22);

  /* foreground — warm bone, not cold white */
  --bone: #F2EBDD;
  --bone-soft: rgba(242, 235, 221, 0.72);
  --bone-mute: rgba(242, 235, 221, 0.48);
  --bone-faint: rgba(242, 235, 221, 0.28);

  /* aurora accents — restrained, used as light not paint */
  --aurora-cyan: #22D3EE;
  --aurora-cyan-soft: rgba(34, 211, 238, 0.14);
  --aurora-gold: #F5B651;
  --aurora-gold-soft: rgba(245, 182, 81, 0.14);
  --aurora-violet: #A78BFA;
  --aurora-violet-soft: rgba(167, 139, 250, 0.14);
  --aurora-rose: #F472B6;

  /* legacy aliases used by classic blog markup — re-skinned */
  --paper: var(--bone);
  --paper-deep: var(--surface);
  --burgundy: var(--aurora-cyan);
  --burgundy-deep: #0E7490;
  --brass: var(--aurora-gold);
  --brass-soft: var(--aurora-gold);
  --slate: var(--bone-soft);
  --mute: var(--bone-mute);
  --ink-soft: var(--surface-2);

  /* type */
  --display: 'Instrument Serif', 'EB Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* legacy aliases */
  --serif: var(--display);

  /* layout */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max-w: 1320px;
  --prose-w: 68ch;

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

  /* depth */
  --shadow-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 30px rgba(0,0,0,.45);
  --shadow-2: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 80px rgba(0,0,0,.6);
  --glow: 0 0 0 1px rgba(34,211,238,.18), 0 12px 60px -10px rgba(34,211,238,.18);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, canvas, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--aurora-cyan); color: var(--ink); }

html {
  background: var(--void);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(167, 139, 250, 0.10), transparent 60%),
    radial-gradient(1000px 600px at -10% 30%, rgba(34, 211, 238, 0.08), transparent 65%),
    radial-gradient(800px 500px at 110% 80%, rgba(245, 182, 81, 0.06), transparent 60%),
    var(--void);
  background-attachment: fixed;
}

/* film grain overlay — extremely subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* aurora mesh canvas — fixed behind everything */
.aurora-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

main, header, footer, section, article { position: relative; z-index: 2; }

/* ============================================================
   typography
   ============================================================ */

.display, h1.lede, h1.title, h2.title {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

h1.lede {
  font-size: clamp(2.6rem, 7.2vw, 6.8rem);
  margin: 0;
}

h1.title {
  font-size: clamp(2.4rem, 5.8vw, 5rem);
  margin: 0 0 1.2rem;
  letter-spacing: -0.02em;
}

h2.title {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  margin: 0 0 1rem;
  letter-spacing: -0.018em;
}

h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.01em;
  margin: 2.2rem 0 0.6rem;
  line-height: 1.18;
}

h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-soft);
  margin: 1.6rem 0 0.4rem;
}

p { margin: 0 0 1.05rem; hyphens: auto; }

.prose p { font-size: 1.06rem; line-height: 1.72; color: var(--bone); }
.prose p + p { margin-top: 1rem; }

.prose blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 2px solid var(--aurora-cyan);
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--bone);
}

.prose ul, .prose ol { padding-left: 1.2rem; margin: 1rem 0 1.2rem; }
.prose li { margin: 0.4rem 0; line-height: 1.65; color: var(--bone); }

.prose code, code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--rule);
  padding: 0.12em 0.45em;
  border-radius: 4px;
  color: var(--bone);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.4rem auto;
  max-width: 4rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aurora-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px; height: 1px;
  background: var(--aurora-cyan);
  opacity: 0.7;
}

.eyebrow.brass, .eyebrow.gold { color: var(--aurora-gold); }
.eyebrow.brass::before, .eyebrow.gold::before { background: var(--aurora-gold); }
.eyebrow.violet { color: var(--aurora-violet); }
.eyebrow.violet::before { background: var(--aurora-violet); }
.eyebrow.slate { color: var(--bone-soft); }
.eyebrow.slate::before { background: var(--bone-soft); }

.dim { color: var(--bone-soft); }
.muted { color: var(--bone-mute); }

a.linklike {
  color: var(--aurora-cyan);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color .2s var(--ease);
}
a.linklike:hover { color: var(--aurora-gold); }

/* gradient text utility */
.grad-text {
  background: linear-gradient(120deg, var(--bone) 0%, var(--aurora-cyan) 45%, var(--aurora-violet) 75%, var(--aurora-gold) 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 14s linear infinite;
}

@keyframes grad-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

em.italic, .display em, h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--aurora-gold);
}

/* ============================================================
   layout primitives
   ============================================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose-container {
  max-width: var(--prose-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.row { display: flex; gap: 1.5rem; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 1rem; }

/* ============================================================
   header / nav (glass)
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(7,9,26,0.78), rgba(7,9,26,0.55));
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid var(--rule);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aurora-cyan), transparent);
  opacity: 0.4;
}

.site-header .row {
  height: 72px;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.005em;
}

.brand .mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule-strong);
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  position: relative;
  overflow: hidden;
}

.brand .mark::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 180deg, transparent 70%, var(--aurora-cyan), transparent);
  animation: spin 8s linear infinite;
  opacity: 0.6;
}

.brand .mark > * { position: relative; z-index: 1; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.brand .role {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-mute);
}

nav.primary {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

nav.primary a {
  font-size: 0.9rem;
  letter-spacing: 0.005em;
  color: var(--bone-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

nav.primary a:hover { color: var(--bone); }

nav.primary a[aria-current="page"] {
  color: var(--bone);
}

nav.primary a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--aurora-cyan), var(--aurora-violet));
}

.nav-cta {
  font-size: 0.86rem;
  padding: 9px 18px;
  border: 1px solid var(--rule-strong);
  background:
    linear-gradient(180deg, rgba(34,211,238,.08), rgba(34,211,238,0)),
    var(--surface);
  color: var(--bone);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 60px at var(--mx,50%) var(--my,50%), rgba(34,211,238,.25), transparent 60%);
  opacity: 0;
  transition: opacity .25s var(--ease);
}

.nav-cta:hover { border-color: var(--aurora-cyan); color: #fff; box-shadow: var(--glow); }
.nav-cta:hover::before { opacity: 1; }

.menu-toggle { display: none; }

@media (max-width: 820px) {
  nav.primary { display: none; }
  nav.primary.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 1.5rem var(--gutter) 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--rule);
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
  }
  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after {
    content: "";
    display: block;
    width: 22px; height: 1.5px;
    background: var(--bone);
    transition: transform .3s var(--ease);
  }
  .menu-toggle span { position: relative; }
  .menu-toggle span::before { position: absolute; top: -7px; left: 0; }
  .menu-toggle span::after { position: absolute; top: 7px; left: 0; }
}

/* ============================================================
   hero — cinematic
   ============================================================ */

.hero {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 40% at 30% 20%, rgba(34,211,238,0.08), transparent 60%),
    radial-gradient(40% 30% at 80% 70%, rgba(167,139,250,0.07), transparent 60%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
}

@media (min-width: 980px) {
  .hero .container { grid-template-columns: 1.45fr 1fr; align-items: end; gap: 4rem; }
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 8.8vw, 7.8rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--aurora-gold), var(--aurora-rose) 60%, var(--aurora-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede-deck {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--bone-soft);
  max-width: 38ch;
  margin: 1.6rem 0 0;
}

.hero .meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 0.4rem;
  position: relative;
}

.hero .meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
}

.hero .meta-row:last-child { border-bottom: 1px solid var(--rule); }

.hero .meta-row .k {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-mute);
  align-self: center;
  flex-shrink: 0;
}

.hero .meta-row .v {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--bone);
  text-align: right;
}

.hero .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ============================================================
   buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn.primary {
  background: linear-gradient(135deg, var(--aurora-cyan), var(--aurora-violet) 90%);
  color: var(--ink);
  border-color: transparent;
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 30px -10px rgba(34,211,238,.55);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 18px 40px -10px rgba(34,211,238,.7);
}

.btn.ghost {
  border-color: var(--rule-strong);
  color: var(--bone);
  background: rgba(255,255,255,.02);
}

.btn.ghost:hover {
  border-color: var(--aurora-cyan);
  color: var(--bone);
  background: rgba(34,211,238,.06);
}

.btn .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   sections
   ============================================================ */

section.band {
  padding: clamp(4rem, 9vw, 8rem) 0;
  position: relative;
}

section.band + section.band { border-top: 1px solid var(--rule); }

section.band.deep { background: var(--ink); }

section.band.darker {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(167,139,250,.06), transparent 70%),
    var(--void);
}

section.band.dark { background: var(--ink); color: var(--bone); }
section.band.dark h2.title { color: var(--bone); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-bottom: 3rem;
}

@media (min-width: 820px) {
  .section-head { grid-template-columns: 1fr 2fr; gap: 3rem; align-items: end; }
}

.section-head .eyebrow { align-self: end; }

/* ============================================================
   cards / glass
   ============================================================ */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

@media (min-width: 720px) { .cards.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) {
  .cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 60%),
    var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.7rem 1.7rem 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow .3s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,.1), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.card.glow:hover { box-shadow: var(--glow); }

.card .card-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--aurora-gold);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card .card-num::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--aurora-gold);
  box-shadow: 0 0 12px var(--aurora-gold);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--bone);
}

.card p { margin: 0; font-size: 0.96rem; color: var(--bone-soft); line-height: 1.6; }

.card .tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--bone-soft);
  background: rgba(255,255,255,.02);
  text-transform: uppercase;
}

/* ============================================================
   stat strip
   ============================================================ */

.stat-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}

@media (min-width: 720px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }

.stat {
  background: var(--surface);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34,211,238,.04), transparent 60%);
  pointer-events: none;
}

.stat .num {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 4.8vw, 3.8rem);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--bone);
}

.stat .num em {
  font-style: italic;
  background: linear-gradient(120deg, var(--aurora-cyan), var(--aurora-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aurora-cyan);
}

.stat .desc { font-size: 0.92rem; color: var(--bone-soft); line-height: 1.5; }

/* ============================================================
   logos / "trusted by"
   ============================================================ */

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  align-items: center;
}

.logo-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--bone);
  opacity: 0.55;
  letter-spacing: 0.005em;
  transition: opacity 0.25s var(--ease), color .25s var(--ease);
  font-style: italic;
}

.logo-name:hover { opacity: 1; color: var(--aurora-cyan); }

/* ============================================================
   pull quote
   ============================================================ */

.pull {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.22;
  letter-spacing: -0.018em;
  max-width: 24ch;
  color: var(--bone);
}

.pull em {
  font-style: italic;
  color: var(--aurora-gold);
}

/* ============================================================
   timeline
   ============================================================ */

.timeline {
  border-top: 1px solid var(--rule);
}

.tl-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: padding .3s var(--ease);
}

.tl-row:hover { padding-left: 0.6rem; }
.tl-row:hover::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--aurora-cyan), var(--aurora-violet));
}

@media (min-width: 720px) {
  .tl-row { grid-template-columns: 110px 1fr 240px; gap: 2rem; align-items: baseline; }
}

.tl-row .when {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--aurora-gold);
  text-transform: uppercase;
}

.tl-row h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--bone);
}

.tl-row p { margin: 0.4rem 0 0; color: var(--bone-soft); font-size: 0.96rem; }

.tl-row .where {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--bone-mute);
}

/* ============================================================
   blog index / post-list
   ============================================================ */

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.post-list li { border-bottom: 1px solid var(--rule); }

.post-link {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1.6rem 0;
  transition: padding 0.3s var(--ease);
  position: relative;
}

@media (min-width: 820px) {
  .post-link {
    grid-template-columns: 130px 1fr 200px;
    gap: 2rem;
    align-items: baseline;
    padding: 1.9rem 0;
  }
}

.post-link:hover { padding-left: 0.6rem; }

.post-link::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(180deg, var(--aurora-cyan), var(--aurora-violet));
  transition: width 0.3s var(--ease);
}

.post-link:hover::before { width: 2px; }

.post-link .when {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--bone-mute);
  text-transform: uppercase;
}

.post-link h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--bone);
  transition: color 0.2s var(--ease);
}

.post-link:hover h3 { color: var(--aurora-cyan); }

.post-link .topic {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--aurora-gold);
  text-transform: uppercase;
}

.post-list .deck {
  margin: 0.4rem 0 0;
  color: var(--bone-soft);
  font-size: 0.95rem;
  grid-column: 2;
  max-width: 60ch;
}

@media (max-width: 819px) { .post-list .deck { grid-column: 1; } }

/* ============================================================
   article (blog post) page
   ============================================================ */

.article-head {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.article-head::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 80px;
  transform: translateX(-50%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aurora-cyan), transparent);
}

.article-head .meta {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-mute);
}

.article-head .meta .topic { color: var(--aurora-gold); }

.article-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 1.4rem;
  color: var(--bone);
}

.article-head .deck {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: var(--bone-soft);
  max-width: 56ch;
  margin: 0;
}

.article-body { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }

.article-body .prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  letter-spacing: -0.015em;
  margin: 2.8rem 0 0.7rem;
  line-height: 1.18;
  color: var(--bone);
}

.article-body .prose h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 2rem 0 0.4rem;
  color: var(--bone);
}

.article-foot {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 0;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-soft);
}

.article-foot a { color: var(--aurora-cyan); transition: color .2s var(--ease); }
.article-foot a:hover { color: var(--aurora-gold); }

/* ============================================================
   story page (about)
   ============================================================ */

.story-hero {
  padding: clamp(4rem, 10vw, 9rem) 0 clamp(2.5rem, 6vw, 5rem);
  position: relative;
}

.story-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7.8vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin: 0;
  color: var(--bone);
}

.story-hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--aurora-gold), var(--aurora-rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-hero .deck {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: var(--bone-soft);
  margin: 2rem 0 0;
  max-width: 52ch;
}

.story-section {
  border-top: 1px solid var(--rule);
  padding: clamp(3rem, 7vw, 5rem) 0;
  position: relative;
}

.story-section .number {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aurora-gold);
  margin-bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.story-section .number::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--aurora-gold);
}

.story-section .label {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  margin: 0 0 2rem;
  line-height: 1.15;
  color: var(--bone);
}

.story-section .label em {
  font-style: italic;
  color: var(--aurora-gold);
}

.story-section .prose p {
  font-size: 1.13rem;
  line-height: 1.75;
  color: var(--bone);
}

.story-section .prose p:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 400;
  font-size: 4.6rem;
  line-height: 0.9;
  padding: 0.4rem 0.6rem 0 0;
  background: linear-gradient(135deg, var(--aurora-gold), var(--aurora-rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* portrait card on story page */
.portrait-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  isolation: isolate;
}

.portrait-card img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

.portrait-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(7,9,26,.55) 100%),
    radial-gradient(120% 80% at 100% 0%, rgba(34,211,238,.25), transparent 50%),
    radial-gradient(80% 60% at 0% 100%, rgba(245,182,81,.18), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.portrait-card .scanlines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.04) 0 1px, transparent 1px 4px);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: .5;
}

.portrait-card .caption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  pointer-events: none;
  z-index: 2;
}

.portrait-card .caption .where { color: var(--aurora-cyan); }

/* ============================================================
   hyperframes embed shell
   ============================================================ */

.hyperframe-shell {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule);
  isolation: isolate;
  aspect-ratio: 16 / 9;
  width: 100%;
  box-shadow: var(--shadow-2);
}

.hyperframe-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--aurora-cyan), transparent 30%, transparent 70%, var(--aurora-violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .6;
  z-index: 3;
}

.hyperframe-shell hyperframes-player,
.hyperframe-shell .hf-fallback {
  width: 100%;
  height: 100%;
  display: block;
}

.hyperframe-shell .hf-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hyperframe-shell .hf-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aurora-cyan);
  background: rgba(7,9,26,.55);
  border: 1px solid var(--rule-strong);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hyperframe-shell .hf-tag::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--aurora-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--aurora-cyan);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ============================================================
   contact form
   ============================================================ */

.form-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

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

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--rule);
  color: var(--bone);
  font: inherit;
  padding: 12px 14px;
  border-radius: 8px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--bone-mute); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--aurora-cyan);
  background: rgba(34,211,238,.05);
}

/* ============================================================
   footer
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: var(--bone-soft);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  margin-top: 4rem;
  position: relative;
  border-top: 1px solid var(--rule);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aurora-cyan), var(--aurora-violet), var(--aurora-gold), transparent);
  opacity: 0.6;
}

.site-footer .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 820px) {
  .site-footer .grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
}

.site-footer h5 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aurora-gold);
  margin: 0 0 1rem;
}

.site-footer .footer-brand {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--bone);
  margin: 0 0 0.6rem;
  line-height: 1.05;
}

.site-footer .footer-brand em {
  font-style: italic;
  background: linear-gradient(120deg, var(--aurora-gold), var(--aurora-rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer a {
  color: var(--bone-soft);
  font-size: 0.94rem;
  transition: color 0.2s var(--ease);
}

.site-footer a:hover { color: var(--aurora-cyan); }

.site-footer .colophon {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-mute);
}

.site-footer .colophon a { color: var(--bone-mute); }
.site-footer .colophon a:hover { color: var(--aurora-cyan); }

.site-footer .tag {
  border-color: var(--rule-strong);
  color: var(--bone-soft);
  background: rgba(255,255,255,.03);
}

/* ============================================================
   reveal-on-scroll
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.in { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   utilities
   ============================================================ */

.divider {
  height: 1px;
  background: var(--rule);
  margin: clamp(3rem, 6vw, 5rem) 0;
}

.divider.glow {
  background: linear-gradient(90deg, transparent, var(--aurora-cyan), transparent);
}

.kbd {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 2px 6px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  color: var(--bone-soft);
}

.lead {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.18rem, 1.9vw, 1.45rem);
  line-height: 1.5;
  color: var(--bone);
}

.chapter-rail {
  position: sticky;
  top: 100px;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chapter-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.chapter-rail a {
  color: var(--bone-mute);
  display: inline-flex;
  gap: 0.6rem;
  transition: color .2s var(--ease);
}

.chapter-rail a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1px;
  background: currentColor;
  align-self: center;
  transition: width .2s var(--ease);
}

.chapter-rail a:hover,
.chapter-rail a.active { color: var(--aurora-cyan); }

.chapter-rail a.active::before { width: 16px; }

/* utility: hidden for sr text */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   theme switcher
   ============================================================ */

.theme-toggle {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-mute);
  border: 1px solid var(--rule);
  padding: 5px 10px;
  border-radius: 999px;
  background: transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.theme-toggle:hover { color: var(--aurora-cyan); border-color: var(--aurora-cyan); }
