/* ============================================================
   Robert McFarlin — Mission Mode (Ambitious Variant)
   Dark, high-signal, first-principles aesthetic engineered to land
   with builders who think in decades and physics.
   This is a deliberate evolution of the source design system for
   maximum ambition and clarity. The design docs/ remain the
   reference for the standard warm advisory system.
   ============================================================ */

/* ---- Fonts (same high-quality pair, loaded for precision) ---- */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ---- Mission palette (dark, engineered, high contrast) ---- */
:root {
  --bg: #050505;
  --bg-elev: #0a0a0a;
  --bg-card: #111113;
  --bg-sunken: #0c0c0e;

  --text: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-muted: #6b6b6b;
  --text-on-dark: #f5f5f5;

  --line: #222225;
  --line-strong: #2f2f33;

  /* Evolved from original forest + brass. Brass becomes heat-shield gold. */
  --brass: #c9a26e;
  --brass-strong: #a67c4d;
  --brass-wash: #1a160f;

  /* Forest becomes deep systems green (Earth / life support) */
  --forest: #0f2a22;
  --forest-strong: #0a1f1a;
  --moss: #3a6658;
  --sage: #7a8f84;

  /* Horizon accent — clean, electric, for the future bets */
  --horizon: #5fd1c6;
  --horizon-strong: #3aa99d;

  /* Semantic — still warm-leaning for financial truth */
  --positive: #4ade80;
  --positive-wash: #0a2a1a;
  --negative: #f87171;
  --negative-wash: #2a1212;
  --caution: #facc15;
  --info: #60a5fa;

  --accent: var(--brass);
  --accent-hover: var(--brass-strong);
  --link: var(--horizon);
  --focus-ring: rgba(95, 209, 198, 0.35);

  /* Data viz */
  --viz-1: #c9a26e;
  --viz-2: #5fd1c6;
  --viz-3: #3a6658;
}

/* ---- Typography (pushed for impact) ---- */
:root {
  --font-sans: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --w-regular: 400;
  --w-medium:  500;
  --w-semibold:600;
  --w-bold:    700;
  --w-black:   800;

  --fs-display-xl: 88px;
  --fs-display-l:  56px;
  --fs-display-m:  40px;
  --fs-heading-l:  26px;
  --fs-heading-m:  20px;
  --fs-body-l:     17px;
  --fs-body-m:     15px;
  --fs-body-s:     13px;
  --fs-caption:    12px;
  --fs-eyebrow:    11px;

  --lh-tight:   1.02;
  --lh-snug:    1.15;
  --lh-normal:  1.5;
  --lh-relaxed: 1.65;

  --tracking-tight: -0.03em;
  --tracking-snug:  -0.015em;
  --tracking-normal: 0;
  --tracking-wide:   0.06em;
  --tracking-eyebrow: 0.16em;

  --fnum-tabular: "tnum" 1, "lnum" 1;
}

/* ---- Spacing (still disciplined 4px grid, more generous for drama) ---- */
:root {
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  32px;
  --space-8:  40px;
  --space-9:  48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --space-13: 128px;

  --container-max: 1180px;
  --container-narrow: 720px;
  --gutter: var(--space-6);
  --section-y: var(--space-13);
}

/* ---- Elevation (sharper, more technical) ---- */
:root {
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 999px;

  --border-hairline: 1px;
  --border-strong:   1.5px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.45);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-focus: 0 0 0 3px var(--focus-ring);

  --ease-standard: cubic-bezier(0.2, 0.0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 380ms;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: #020202;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body-m);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  isolation: isolate;
}
a { color: var(--link); text-decoration: none; transition: color var(--dur-fast) var(--ease-standard); }
a:not(.btn):not(.logo):hover { color: var(--horizon-strong); }
::selection { background: rgba(95,209,198,0.2); color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: var(--w-bold);
  line-height: var(--lh-snug);
  margin: 0 0 var(--space-4);
  color: var(--text);
  letter-spacing: var(--tracking-tight);
}
h1 { font-size: var(--fs-display-l); }
h2 { font-size: var(--fs-display-m); }
h3 { font-size: var(--fs-heading-l); }

p { margin: 0 0 var(--space-5); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--brass);
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-7);
}
@media (max-width: 640px) { .container { padding: 0 var(--space-5); } }

.section {
  --section-accent: var(--brass);
  --section-rgb: 201, 162, 110;
  --section-glow: rgba(201, 162, 110, 0.10);
  position: relative;
  padding: var(--section-y) 0;
  overflow: hidden;
  background: transparent;
}
.section > .container { position: relative; z-index: 2; }
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, var(--section-glow), transparent 28%),
    radial-gradient(circle at 88% 68%, rgba(var(--section-rgb), 0.12), transparent 30%),
    linear-gradient(115deg, transparent 0 56%, rgba(var(--section-rgb), 0.05) 56.08%, transparent 56.22% 100%);
  opacity: 0.55;
}
.section--elev {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
#principles { --section-accent: var(--brass); --section-rgb: 201, 162, 110; --section-glow: rgba(201, 162, 110, 0.115); }
#value-agenda { --section-accent: #f3d19c; --section-rgb: 243, 209, 156; --section-glow: rgba(243, 209, 156, 0.12); }
#long-bets {
  --section-accent: #5b9cf5;
  --section-rgb: 91, 156, 245;
  --section-glow: rgba(91, 156, 245, 0.11);
  --thesis-blue: #5b9cf5;
  --thesis-blue-deep: #3d7ed4;
  --thesis-frost: #e8eef8;
}
#systems { --section-accent: #88d0a0; --section-rgb: 74, 222, 128; --section-glow: rgba(74, 222, 128, 0.095); }
#stack { --section-accent: #9bb7ff; --section-rgb: 96, 165, 250; --section-glow: rgba(96, 165, 250, 0.09); }
#credentials { --section-accent: #d4b896; --section-rgb: 212, 184, 150; --section-glow: rgba(212, 184, 150, 0.10); }
.section--signal { --section-accent: #f3d19c; --section-rgb: 201, 162, 110; --section-glow: rgba(201, 162, 110, 0.15); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,5,0.72);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}
.site-header .nav a {
  font-size: 13.5px;
  font-weight: var(--w-medium);
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.site-header .nav a:hover { color: var(--text); }
.site-header .nav-actions { display: flex; align-items: center; gap: var(--space-4); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.logo img { display: block; flex: 0 0 auto; }
.logo .name {
  font-weight: var(--w-bold);
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.logo .eyebrow-logo {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  line-height: 1;
  margin-top: 2px;
}

/* Buttons — more engineered */
.btn {
  --_bg: var(--brass);
  --_fg: #050505;
  --_bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: var(--w-semibold);
  font-size: 14.5px;
  padding: 11px 20px;
  border: 1px solid var(--_bd);
  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--dur-fast) var(--ease-standard);
  letter-spacing: 0.01em;
}
.btn:active { transform: translateY(0.5px); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn:hover,
.btn:focus-visible {
  color: var(--_fg);
}

.btn--sm { font-size: 12.5px; padding: 8px 14px; }
.btn--lg { font-size: 15.5px; padding: 14px 26px; }

.btn--primary { --_bg: var(--brass); --_fg: #050505; }
.btn--primary:hover { --_bg: #dbb882; --_fg: #050505; }

.btn--secondary {
  --_bg: rgba(255,255,255,0.04);
  --_fg: var(--text);
  --_bd: rgba(255,255,255,0.16);
}
.btn--secondary:hover {
  --_bg: rgba(255,255,255,0.07);
  --_bd: var(--brass);
  --_fg: var(--text);
  color: var(--text);
}

.btn--ghost {
  --_bg: transparent;
  --_fg: var(--text-secondary);
  --_bd: transparent;
}
.btn--ghost:hover { --_fg: var(--text); color: var(--text); background: rgba(255,255,255,0.03); }

.btn--horizon { --_bg: var(--horizon); --_fg: #050505; }
.btn--horizon:hover { --_bg: #4ebeb2; --_fg: #050505; }
.btn--brass { --_bg: var(--brass); --_fg: #050505; }
.btn--brass:hover { --_bg: #dbb882; --_fg: #050505; }

.btn--block { display: flex; width: 100%; }

.btn svg, .btn i { width: 1.05em; height: 1.05em; flex: 0 0 auto; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-sm);
}
.card--lg { padding: var(--space-8); }

/* Stat / metric */
.stat {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), var(--shadow-xs);
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.stat .value {
  font-size: 30px;
  font-weight: var(--w-bold);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  margin: 6px 0 2px;
  color: var(--text);
}
.stat .meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* Operating Principles */
.principle {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
}
.principle:first-child { padding-top: 0; }
.principle:last-child { border-bottom: none; padding-bottom: 0; }
.principle-num {
  font-family: var(--font-mono);
  font-weight: var(--w-bold);
  font-size: 15px;
  color: var(--brass);
  flex: 0 0 34px;
  letter-spacing: 0.08em;
}
.principle-body .title {
  font-weight: var(--w-semibold);
  font-size: 18px;
  color: var(--text);
  margin-bottom: var(--space-2);
  line-height: var(--lh-snug);
}
.principle-body .desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin: 0;
  max-width: 62ch;
}

/* Future Thesis — horizon timeline */
.thesis-section .thesis-eyebrow { color: var(--thesis-blue); }
.thesis-head .thesis-intro {
  color: var(--text-secondary);
  max-width: 62ch;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
}
.thesis-scape:not(.in-view) .thesis-head .thesis-intro {
  opacity: 0;
  animation: thesisIntroReveal 1.1s var(--ease-out) 0.15s forwards;
}
.thesis-scape.in-view .thesis-head .thesis-intro {
  opacity: 1;
}
.thesis-scape {
  position: relative;
  margin-top: 48px;
  isolation: isolate;
}
.thesis-scape::before {
  content: '';
  position: absolute;
  inset: -8% -4%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 42%, rgba(91,156,245,0.09), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(232,238,248,0.05), transparent 30%);
  animation: thesisDrift 22s ease-in-out infinite alternate;
}
.thesis-timeline {
  position: relative;
  z-index: 1;
  height: clamp(72px, 10vw, 100px);
  margin-bottom: 28px;
}
.thesis-timeline__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.thesis-timeline__path {
  fill: none;
  stroke: url(#thesisArc);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-dasharray: 6 0;
  filter: drop-shadow(0 0 8px rgba(91,156,245,0.25));
}
.thesis-timeline__nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.thesis-node {
  position: absolute;
  top: 58%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
}
.thesis-node__core {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--thesis-frost);
  box-shadow: 0 0 12px rgba(91,156,245,0.45);
}
.thesis-node__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(91,156,245,0.55);
}
.thesis-node--building .thesis-node__core {
  background: var(--thesis-blue);
  box-shadow: 0 0 16px rgba(91,156,245,0.65);
}
.thesis-node--building .thesis-node__ring {
  border-color: rgba(232,238,248,0.7);
  animation: thesisPulse 3.2s ease-in-out infinite;
}
.thesis-node--watch .thesis-node__core {
  background: transparent;
  box-shadow: none;
}
.thesis-node--watch .thesis-node__ring {
  border-style: dashed;
  border-color: rgba(232,238,248,0.45);
}
.thesis-timeline__labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232,238,248,0.55);
}
.thesis-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.thesis-panel {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid rgba(91,156,245,0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, rgba(91,156,245,0.06), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.008)),
    rgba(6,8,12,0.62);
  box-shadow: inset 0 1px 0 rgba(232,238,248,0.05);
}
.thesis-scape.in-view .thesis-panel--forces { animation: thesisRise 0.75s var(--ease-out) 0.12s both; }
.thesis-scape.in-view .thesis-panel--bets { animation: thesisRise 0.75s var(--ease-out) 0.28s both; }
.thesis-scape.in-view .thesis-panel--watch { animation: thesisRise 0.75s var(--ease-out) 0.44s both; }
.thesis-panel::before {
  content: '';
  position: absolute;
  top: -28px;
  left: 50%;
  width: 1px;
  height: 20px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(91,156,245,0.45), transparent);
}
.thesis-panel__head {
  margin-bottom: 16px;
}
.thesis-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 9px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}
.thesis-badge--present {
  color: var(--thesis-frost);
  border-color: rgba(232,238,248,0.22);
  background: rgba(232,238,248,0.06);
}
.thesis-badge--building {
  color: var(--thesis-frost);
  border-color: rgba(91,156,245,0.45);
  background: rgba(91,156,245,0.14);
}
.thesis-badge--watch {
  color: rgba(232,238,248,0.72);
  border-color: rgba(232,238,248,0.18);
  background: rgba(255,255,255,0.02);
}
.thesis-panel h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--thesis-frost);
}
.thesis-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.thesis-item {
  position: relative;
  padding: 11px 0 11px 16px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(245,245,245,0.72);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.thesis-item:first-child { border-top: none; padding-top: 0; }
.thesis-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--thesis-blue);
  opacity: 0.65;
}
.thesis-item:first-child::before { top: 7px; }
.thesis-panel--watch .thesis-item::before {
  background: transparent;
  border: 1px solid rgba(232,238,248,0.4);
}
.thesis-item__note {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(232,238,248,0.45);
  font-weight: 400;
}
@media (max-width: 900px) {
  .thesis-grid { grid-template-columns: 1fr; gap: 36px; }
  .thesis-panel::before { display: none; }
  .thesis-timeline { margin-bottom: 12px; }
  .thesis-node { top: 52%; }
}
@media (prefers-reduced-motion: reduce) {
  .thesis-scape:not(.in-view) .thesis-head .thesis-intro,
  .thesis-scape.in-view .thesis-panel {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .thesis-scape::before,
  .thesis-node--building .thesis-node__ring {
    animation: none;
  }
}
@keyframes thesisIntroReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes thesisRise {
  from { transform: translateY(14px); }
  to { transform: translateY(0); }
}
@keyframes thesisDrift {
  from { transform: translate3d(-1.5%, 0, 0); }
  to { transform: translate3d(1.5%, -1%, 0); }
}
@keyframes thesisPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.22); opacity: 1; }
}

/* Horizon / Long bets (legacy cards) */
.horizon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
@media (max-width: 780px) { .horizon-grid { grid-template-columns: 1fr; } }

.horizon-card {
  background:
    linear-gradient(145deg, rgba(95,209,198,0.055), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), var(--shadow-sm);
}
.horizon-card .icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: rgba(95,209,198,0.08);
  color: var(--horizon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}
.horizon-card h3 { font-size: 21px; margin-bottom: var(--space-3); }
.horizon-card p { font-size: 15px; color: var(--text-secondary); max-width: none; }

/* The Simulator — centerpiece */
.simulator {
  background:
    radial-gradient(circle at 82% 18%, rgba(95,209,198,0.09), transparent 26%),
    radial-gradient(circle at 12% 90%, rgba(201,162,110,0.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
    var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 30px 90px rgba(0,0,0,0.38);
}
.simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-6);
}
.simulator-header .title {
  font-weight: var(--w-bold);
  font-size: 19px;
}
.simulator-header .subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brass);
  letter-spacing: 0.12em;
}

.sim-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7) var(--space-6);
}
@media (max-width: 720px) { .sim-controls { grid-template-columns: 1fr; } }

.sim-control label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.sim-control input[type="range"] {
  width: 100%;
  accent-color: var(--brass);
}
.sim-control .value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  margin-top: 6px;
}

.sim-outputs {
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 720px) { .sim-outputs { grid-template-columns: 1fr; } }

.sim-output .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sim-output .number {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--text);
  margin: 4px 0 2px;
}
.sim-output .unit {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Timeline / Systems */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line-strong);
}
@media (max-width: 720px) { .timeline::before { display: none; } }

.role {
  position: relative;
  padding-left: 56px;
  margin-bottom: var(--space-8);
}
.role:last-child { margin-bottom: 0; }
.role::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  width: 17px;
  height: 17px;
  background: var(--bg);
  border: 2px solid var(--brass);
  border-radius: 999px;
}
@media (max-width: 720px) { .role { padding-left: 0; } .role::before { display: none; } }

.role .company { font-weight: var(--w-semibold); font-size: 14px; color: var(--brass); }
.role .title { font-size: 19px; font-weight: var(--w-semibold); margin: 3px 0 3px; }
.role .period { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }
.role ul { margin: 11px 0 0; padding-left: 18px; color: var(--text-secondary); font-size: 14.5px; line-height: 1.65; }
.role li { margin-bottom: 5px; }

/* Tags / capabilities */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  background: rgba(201,162,110,0.08);
  border: 1px solid rgba(201,162,110,0.2);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin: 0 5px 5px 0;
}

/* Final signal */
.signal {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.signal h2 { font-size: 32px; letter-spacing: -0.025em; }

/* Footer */
.site-footer {
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 38px var(--space-7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* Canvas starfield */
#deepfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

/* Global atmospheric system: grid, grain, orbital arcs */
.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at calc(92% + var(--mx, 0px)) calc(2% + var(--my, 0px)), rgba(255, 205, 110, 0.075), transparent 38%),
    radial-gradient(circle at calc(18% + var(--mx, 0px)) calc(16% + var(--my, 0px)), rgba(201,162,110,0.06), transparent 26%),
    radial-gradient(circle at calc(78% - var(--mx, 0px)) calc(18% - var(--my, 0px)), rgba(95,209,198,0.06), transparent 28%);
}
.site-backdrop::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(rgba(255,255,255,0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.034) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 48% 18%, black 0%, rgba(0,0,0,0.62) 38%, transparent 74%);
  mask-image: radial-gradient(ellipse at 48% 18%, black 0%, rgba(0,0,0,0.62) 38%, transparent 74%);
  transform: perspective(900px) rotateX(62deg) translateY(-18%);
  transform-origin: 50% 0%;
  opacity: 0.24;
}
.site-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255,255,255,0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 74% 34%, rgba(201,162,110,0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 58% 74%, rgba(95,209,198,0.16) 0 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 43%, rgba(201,162,110,0.08) 43.08%, transparent 43.2% 100%),
    linear-gradient(74deg, transparent 0 62%, rgba(95,209,198,0.07) 62.08%, transparent 62.2% 100%);
  opacity: 0.32;
}

/* Solar light — diffuse rim sun and directional wash */
.solar-light {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translate(calc(var(--mx, 0px) * 0.22), calc(var(--my, 0px) * 0.22));
}
.solar-light::before {
  content: '';
  position: absolute;
  top: calc(-22vh + var(--my, 0px) * 0.1);
  right: calc(-18vw - var(--mx, 0px) * 0.12);
  width: min(72vw, 680px);
  height: min(72vw, 680px);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 236, 200, 0.16) 0%,
      rgba(255, 205, 120, 0.09) 22%,
      rgba(201, 162, 110, 0.05) 42%,
      transparent 68%
    );
  filter: blur(8px);
}
.solar-light::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    232deg,
    rgba(255, 215, 130, 0.11) 0%,
    rgba(255, 190, 100, 0.045) 18%,
    rgba(201, 162, 110, 0.018) 34%,
    transparent 52%
  );
}

.orbital-arc {
  position: fixed;
  width: 720px;
  height: 720px;
  right: -300px;
  top: -6vh;
  z-index: 0;
  border: 1px solid rgba(255, 210, 130, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 96px rgba(255, 205, 120, 0.014),
    0 0 0 192px rgba(201, 162, 110, 0.01);
  pointer-events: none;
}

body > *:not(.site-backdrop):not(.solar-light):not(.orbital-arc):not(#deepfield):not(.site-header) {
  position: relative;
  z-index: 1;
}

/* Hero visual console */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
}
.hero-layout--focused {
  display: block;
}
.hero-copy { max-width: 820px; }
.hero-layout--focused .hero-copy {
  max-width: 980px;
}
.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero-text {
  min-width: 0;
}
.headshot-card {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 12px;
  border: 1px solid rgba(243,209,156,0.34);
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(201,162,110,0.38) 0%, rgba(74,58,38,0.92) 18%, rgba(16,14,12,0.98) 48%, rgba(74,58,38,0.9) 82%, rgba(201,162,110,0.32) 100%),
    #0b0a08;
  box-shadow:
    inset 0 1px 0 rgba(243,209,156,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.45),
    0 32px 96px rgba(0,0,0,0.46);
  overflow: hidden;
}
.headshot-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.38);
  pointer-events: none;
  z-index: 2;
}
.headshot-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #050505;
}
.headshot-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 62%, rgba(5,5,5,0.42) 100%),
    radial-gradient(circle at 66% 20%, rgba(201,162,110,0.08), transparent 34%);
  pointer-events: none;
}
.headshot-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.9) contrast(1.04);
}
.future-readiness {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 42px;
}
.future-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  min-height: 188px;
  padding: 22px;
  border: 1px solid rgba(95,209,198,0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(95,209,198,0.13), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.014)),
    rgba(5,5,5,0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 22px 70px rgba(0,0,0,0.32);
}
.future-card:nth-child(2) {
  border-color: rgba(74,222,128,0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(74,222,128,0.11), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.014)),
    rgba(5,5,5,0.42);
}
.future-card:nth-child(3) {
  border-color: rgba(201,162,110,0.25);
  background:
    radial-gradient(circle at 100% 0%, rgba(201,162,110,0.13), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.014)),
    rgba(5,5,5,0.42);
}
.future-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,110,0.32);
  color: var(--brass);
  font-size: 10px;
  letter-spacing: 0.09em;
  background: rgba(201,162,110,0.07);
}
.future-card h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.future-card p {
  font-size: 14px;
  line-height: 1.58;
  color: var(--text-secondary);
  max-width: none;
}
.value-agenda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.agenda-card {
  position: relative;
  min-height: 260px;
  padding: 26px;
  border: 1px solid rgba(243,209,156,0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(243,209,156,0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.016)),
    rgba(6,6,6,0.52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 26px 78px rgba(0,0,0,0.34);
  overflow: hidden;
}
.agenda-card::after {
  content: '';
  position: absolute;
  left: 26px;
  right: 26px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), var(--horizon), transparent);
  opacity: 0.7;
}
.agenda-index {
  color: var(--brass);
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.agenda-card h3 {
  font-size: 21px;
  letter-spacing: -0.018em;
  margin-bottom: 14px;
}
.agenda-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.62;
  max-width: none;
}
.mission-console {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(201,162,110,0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 35%, rgba(95,209,198,0.13), transparent 32%),
    radial-gradient(circle at 62% 62%, rgba(201,162,110,0.12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
    rgba(10,10,10,0.66);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 35px 100px rgba(0,0,0,0.55);
  overflow: hidden;
}
.mission-console::before {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 18px;
}
.mission-console::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 50% 44%, black 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 44%, black 0%, transparent 72%);
  opacity: 0.5;
}
.console-orbit {
  position: absolute;
  width: 330px;
  height: 330px;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(201,162,110,0.28);
  border-radius: 50%;
  z-index: 2;
}
.console-orbit::before,
.console-orbit::after {
  content: '';
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(95,209,198,0.22);
  border-radius: 50%;
  transform: rotate(24deg) scaleX(1.28);
}
.console-orbit::after {
  inset: 78px;
  border-color: rgba(255,255,255,0.13);
  transform: rotate(-34deg) scaleX(1.48);
}
.console-core {
  position: absolute;
  width: 94px;
  height: 94px;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, #f7e6ca, var(--brass) 36%, #4a3420 74%, transparent 75%);
  box-shadow:
    0 0 36px rgba(201,162,110,0.28),
    0 0 90px rgba(95,209,198,0.14);
  z-index: 3;
}
.console-core::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  right: -72px;
  top: 22px;
  border-radius: 50%;
  background: var(--horizon);
  box-shadow: 0 0 18px rgba(95,209,198,0.7);
}
.console-label {
  position: absolute;
  left: 30px;
  top: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  z-index: 4;
}
.console-panel {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 4;
  display: grid;
  gap: 12px;
}
.telemetry-row {
  display: grid;
  grid-template-columns: 82px 1fr 54px;
  gap: 12px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}
.telemetry-row .bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.telemetry-row .bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brass), var(--horizon));
  box-shadow: 0 0 18px rgba(95,209,198,0.35);
}
.console-chips {
  position: absolute;
  right: 28px;
  top: 28px;
  display: grid;
  gap: 8px;
  z-index: 4;
}
.console-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(201,162,110,0.22);
  background: rgba(201,162,110,0.06);
  border-radius: 999px;
  padding: 6px 10px;
}

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-intro { grid-template-columns: 1fr; }
  .headshot-card {
    align-self: auto;
    min-height: 360px;
    max-width: 360px;
  }
  .mission-console { min-height: 420px; }
  .future-readiness { grid-template-columns: 1fr; }
  .future-card { min-height: auto; }
  .value-agenda-grid { grid-template-columns: 1fr; }
  .agenda-card { min-height: auto; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(52px, 17vw, 72px); }
  .headshot-card { min-height: 330px; }
  .mission-console { min-height: 360px; border-radius: 16px; }
  .console-orbit { width: 250px; height: 250px; }
  .console-core { width: 74px; height: 74px; }
  .telemetry-row { grid-template-columns: 70px 1fr 42px; font-size: 10px; }
}

.skills-table {
  margin-top: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008)),
    rgba(6,6,6,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.skills-table__columns,
.skills-row,
.skills-section__summary {
  display: grid;
  grid-template-columns: minmax(180px, 28%) minmax(0, 1fr) auto;
  gap: 0;
  align-items: stretch;
}
.skills-table__columns {
  border-bottom: 1px solid var(--line-strong);
  background: rgba(201,162,110,0.06);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.skills-table__col {
  padding: 12px 18px;
}
.skills-table__col--proof {
  border-left: 1px solid var(--line);
}
.skills-section {
  border-top: 1px solid var(--line);
}
.skills-section:first-of-type {
  border-top: none;
}
.skills-section__summary {
  list-style: none;
  cursor: pointer;
  padding: 0;
  background: rgba(255,255,255,0.02);
  transition: background var(--dur-fast) var(--ease-standard);
}
.skills-section__summary::-webkit-details-marker { display: none; }
.skills-section__summary:hover {
  background: rgba(201,162,110,0.05);
}
.skills-section[open] > .skills-section__summary {
  background: rgba(95,209,198,0.05);
  border-bottom: 1px solid var(--line);
}
.skills-section__code {
  padding: 14px 18px;
  color: var(--brass);
  font-size: 11px;
  letter-spacing: 0.12em;
  border-right: 1px solid var(--line);
}
.skills-section__title {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: var(--w-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.skills-section__meta {
  display: none;
  padding: 14px 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.skills-section__chev {
  width: 18px;
  height: 18px;
  margin: auto 16px auto 0;
  color: var(--text-muted);
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-standard);
}
.skills-section[open] .skills-section__chev {
  transform: rotate(180deg);
  color: var(--horizon);
}
.skills-section__body {
  border-top: 1px solid rgba(255,255,255,0.03);
}
.skills-section__tags {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
}
.skills-section__tags .tag {
  margin-bottom: 6px;
}
.skills-section__proof-label {
  padding: 10px 18px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.01);
}
.credentials-table {
  margin-top: 42px;
}
.credentials-table__body .skills-row:first-child {
  border-top: none;
}
@media (min-width: 760px) {
  .credentials-table__body .skills-row {
    grid-template-columns: 72px minmax(180px, 28%) minmax(0, 1fr);
  }
  .credentials-table__body .skills-row__skill {
    grid-column: 2;
  }
  .credentials-table__body .skills-row__proof {
    grid-column: 3;
    border-left: 1px solid var(--line);
  }
}
.skills-row {
  border-top: 1px solid var(--line);
}
.skills-row:first-child {
  border-top: none;
}
.skills-row__skill {
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: var(--w-semibold);
  line-height: 1.35;
  color: var(--text);
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.skills-row__proof {
  grid-column: 2 / -1;
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}
@media (min-width: 760px) {
  .skills-section__summary {
    grid-template-columns: 72px minmax(180px, 28%) minmax(0, 1fr) auto;
  }
  .skills-section__meta {
    display: block;
    justify-self: end;
    padding-right: 0;
  }
  .skills-table__columns {
    grid-template-columns: 72px minmax(180px, 28%) minmax(0, 1fr);
  }
  .skills-table__col--skill {
    grid-column: 2;
  }
  .skills-table__col--proof {
    grid-column: 3;
    border-left: none;
  }
  .skills-row {
    grid-template-columns: 72px minmax(180px, 28%) minmax(0, 1fr);
  }
  .skills-row__skill {
    grid-column: 2;
  }
  .skills-row__proof {
    grid-column: 3;
    border-left: 1px solid var(--line);
  }
}
@media (max-width: 759px) {
  .skills-table__columns {
    display: none;
  }
  .skills-section__summary,
  .skills-row {
    grid-template-columns: 1fr auto;
  }
  .skills-section__code {
    display: none;
  }
  .skills-section__title {
    grid-column: 1;
  }
  .skills-row__skill {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
  }
  .skills-row__proof {
    grid-column: 1 / -1;
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .console-orbit { animation: orbitDrift 28s linear infinite; }
  .console-core::after { animation: satellitePulse 3.4s ease-in-out infinite; }
  .site-backdrop::before { animation: gridDrift 22s linear infinite; }
  .solar-light::before { animation: solarPulse 9s ease-in-out infinite; }
}

@keyframes orbitDrift {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes satellitePulse {
  0%, 100% { transform: scale(0.88); opacity: 0.65; }
  50% { transform: scale(1.18); opacity: 1; }
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 72px 72px, 72px 72px; }
}
@keyframes solarPulse {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.02); opacity: 1; }
}

/* Misc */
.lead { font-size: 19px; line-height: 1.55; color: var(--text-secondary); max-width: 58ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums; }
.cred-list { display: grid; gap: var(--space-3); }
.cred { display: flex; gap: var(--space-4); }
.cred .when { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); width: 86px; flex-shrink: 0; padding-top: 3px; }
.cred .what { flex: 1; }
.cred .what .org { color: var(--text-muted); font-size: 13.5px; }

@media print {
  .site-header, .btn, .site-footer, #deepfield, .site-backdrop, .solar-light, .orbital-arc { display: none !important; }
  body { background: white; color: black; }
}