/* ─────────────────────────────────────────────────────────────
   vickyalopez.com, "Flight Ops" theme
   Dark aerospace / drone-tech: carbon slate ground, signal cyan,
   ember amber for the fire thread, NB Tech green kept for the
   company. Gemini-generated images: assets/hero-drone.jpg
   (firefighting UAS over a ridgeline), assets/mission-drone.jpg (close-up) and assets/band-bg.jpg (flight paths).
   ───────────────────────────────────────────────────────────── */

:root {
  --bg:           #0d1422;
  --bg-2:         #111a2c;
  --panel:        #16213608;
  --card:         #141e31;
  --line:         #26334b;
  --line-soft:    #1c2840;
  --text:         #e9eef7;
  --text-2:       #b7c2d4;
  --muted:        #7e8ca3;
  --cyan:         #6fc9e2;
  --cyan-dim:     #3e7f95;
  --ember:        #e0913f;
  --nb-green:     #5cc98b;

  --color-accent-2: var(--nb-green); /* used by script.js form confirmation */
  --color-accent: var(--cyan);        /* motion.css progress bar */
  --color-bg: var(--bg);              /* motion.css nav shrink */
  --color-border: var(--line-soft);

  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;   /* sticky nav height + breathing room, so anchors land below it */
  color-scheme: dark;         /* native form controls and scrollbars render dark */
}
html, body { overflow-x: clip; } /* reveal offsets must never widen the page */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgba(111, 201, 226, .28); }
a, button, input, textarea, summary { touch-action: manipulation; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
.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;
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--cyan); color: var(--bg); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; outline-offset: 0; }

/* Development markers: content still needed.
   grep -c 'class="todo' index.html must be 0 before launch. */
.todo {
  background: #3d3413;
  outline: 1px dashed #d8a400;
  color: #ffd75e;
  padding: 0 4px;
  border-radius: 2px;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(13, 20, 34, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  background: transparent; color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
}
.brand-name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
@media (max-width: 960px) { .brand-name { display: none; } }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; font-size: 0.92rem; color: var(--text-2); }
.nav-links a { position: relative; padding: 6px 0; transition: color .15s; }
.nav-links a:hover { color: var(--cyan); }
.nav-links a[aria-current="true"] { color: var(--text); }
.nav-links a[aria-current="true"]:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--cyan); border-radius: 2px;
}
.nav-cta {
  color: var(--nb-green) !important;
  border: 1px solid rgba(92, 201, 139, .45);
  padding: 7px 12px; border-radius: 999px;
  font-weight: 500;
}
.nav-cta:hover { background: rgba(92, 201, 139, .12); border-color: var(--nb-green); }
.nav { transition: padding .25s ease, background .25s ease; }
.nav.is-scrolled { padding-top: 9px; padding-bottom: 9px; background: rgba(10, 16, 28, .9); box-shadow: 0 1px 0 var(--line-soft), 0 12px 32px rgba(4, 8, 16, .45); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 0; padding: 0 11px; cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle span { transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn-primary { background: var(--cyan); color: #0a1220; border-color: var(--cyan); position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); transition: left .55s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { background: #8ed9ee; border-color: #8ed9ee; box-shadow: 0 0 24px rgba(111, 201, 226, .25); }
.btn-ghost { background: rgba(233, 238, 247, .02); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan-dim); color: var(--cyan); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; box-shadow: none; }
.btn { min-height: 44px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(72px, 11vw, 150px) var(--gutter) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.hero-bg {
  position: absolute; left: 0; right: 0; top: -12%; bottom: -28%;
  z-index: -3; will-change: transform;
}
.hero-bg img, .hero-bg picture { width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 68% 45%; transform-origin: 60% 40%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 20, 34, .55) 0%, rgba(13, 20, 34, .30) 40%, rgba(13, 20, 34, .82) 84%, var(--bg) 100%),
              linear-gradient(90deg, rgba(13, 20, 34, .90) 0%, rgba(13, 20, 34, .62) 42%, rgba(13, 20, 34, .18) 68%, rgba(13, 20, 34, 0) 100%);
}
.hero-grid-layer {
  position: absolute; left: 0; right: 0; top: -10%; bottom: -40%; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(111, 201, 226, .085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 201, 226, .085) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  will-change: transform;
}
.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero-grid, .facts { position: relative; z-index: 1; }
.hero-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 6vw, 80px);
  align-items: end;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ember); font-weight: 500; margin-bottom: 18px;
}
.eyebrow::before { content: "// "; color: var(--cyan-dim); }
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 600; margin-bottom: 26px;
  text-shadow: 0 2px 32px rgba(6, 10, 18, .8);
}
.hero-lede {
  font-size: 1.16rem; line-height: 1.58; color: var(--text-2); max-width: 36em;
  text-shadow: 0 1px 18px rgba(6, 10, 18, .9);
}
.hero-lede a { color: var(--nb-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-portrait { justify-self: end; width: 100%; max-width: 340px; position: relative; }
.portrait {
  aspect-ratio: 4 / 5; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(4, 8, 16, .55);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(111, 201, 226, .9), transparent);
  box-shadow: 0 0 18px rgba(111, 201, 226, .55);
  opacity: 0; animation: scan 5s ease-in-out 2s infinite;
  pointer-events: none;
}
.portrait { position: relative; }
@keyframes scan {
  0%   { top: 0;    opacity: 0; }
  8%   { opacity: .8; }
  45%  { top: 100%; opacity: .8; }
  50%  { opacity: 0; }
  100% { top: 100%; opacity: 0; }
}
.portrait.ph { display: grid; place-items: center; }
.portrait.ph span {
  font-family: var(--font-display); font-size: 5rem; font-weight: 300;
  color: var(--text); opacity: .3;
}
/* HUD corner ticks on the portrait */
.hero-portrait::before, .hero-portrait::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
}
.hero-portrait::before {
  top: -7px; left: -7px;
  border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan);
}
.hero-portrait::after {
  bottom: -7px; right: -7px;
  border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan);
}
.portrait-caption { font-size: 0.8rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

.facts {
  list-style: none;
  max-width: var(--wrap);
  margin: clamp(40px, 6vw, 72px) auto 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(17, 26, 44, .72);
  backdrop-filter: blur(8px);
}
.facts li {
  padding: 20px 16px;
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.facts li:last-child { border-right: 0; }
.facts strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--cyan); }
.facts span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }

/* ── HUD readout (decorative telemetry, real values) ─────── */
.hud {
  position: absolute; top: 28px; right: var(--gutter); z-index: 2;
  display: grid; gap: 4px; padding: 12px 14px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .08em;
  color: var(--cyan); background: rgba(10, 16, 28, .55); backdrop-filter: blur(6px);
  border: 1px solid rgba(111, 201, 226, .35); border-radius: 4px;
  text-shadow: 0 0 8px rgba(111, 201, 226, .45);
}
.hud::before, .hud::after { content: ""; position: absolute; width: 10px; height: 10px; }
.hud::before { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.hud::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.hud-row { display: flex; gap: 14px; justify-content: space-between; }
.hud-k { color: var(--muted); text-shadow: none; }
.hud-v { font-variant-numeric: tabular-nums; }
.hud-live { display: inline-flex; align-items: center; gap: 6px; color: var(--nb-green); text-shadow: 0 0 8px rgba(92, 201, 139, .5); }
.hud-blink { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ── Telemetry ticker ────────────────────────────────────── */
.ticker {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 16, 28, .6);
  padding: 12px 0;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2);
}
.ticker > span, .ticker .marquee-track > span { padding: 0 6px; }
.tick-sep { color: var(--ember); font-size: 0.6em; }
.ticker .marquee-track { gap: 18px; }
.motion-off .ticker, html:not(.motion-on) .ticker { white-space: normal; padding-left: var(--gutter); padding-right: var(--gutter); line-height: 2; }

/* ── Mission (pinned, scrubbed) ──────────────────────────── */
.mission {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  border-bottom: 1px solid var(--line-soft);
}
.mission-media { position: absolute; inset: 0; z-index: -1; }
.mission-media picture, .mission-media img { width: 100%; height: 100%; }
.mission-media img { object-fit: cover; object-position: 50% 40%; transform-origin: 50% 45%; will-change: transform; }
.mission-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 20, 34, .35) 0%, rgba(13, 20, 34, .42) 40%, rgba(13, 20, 34, .90) 100%);
}
.mission-copy { max-width: var(--wrap); width: 100%; margin: 0 auto; }
.mission-copy .eyebrow { margin-bottom: 14px; }
.mission-copy h2 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); font-weight: 600; margin-bottom: 8px; text-shadow: 0 2px 28px rgba(6, 10, 18, .9); }
.mission-big { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 500; line-height: 1.2; margin: 0 0 6px; color: var(--text); text-shadow: 0 2px 22px rgba(6, 10, 18, .9); }
.mission-note { max-width: 60ch; color: var(--text-2); margin: 20px 0 22px; text-shadow: 0 1px 14px rgba(6, 10, 18, .9); }
.mission-line { will-change: transform, opacity; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 104px) var(--gutter); }
.section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(13, 20, 34, .82), rgba(13, 20, 34, .88)),
    image-set(url("assets/band-bg.webp") type("image/webp"), url("assets/band-bg.jpg") type("image/jpeg")) center / cover no-repeat fixed;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-head {
  position: relative;
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line); padding-bottom: 14px;
}
.head-meta { margin-left: auto; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .14em; color: var(--muted); }
.head-line {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(111, 201, 226, .15) 60%, transparent);
  box-shadow: 0 0 10px rgba(111, 201, 226, .35);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.2, .8, .2, 1);
}
.section-head.is-in .head-line { transform: scaleX(1); }
.section-head.is-in .section-num { text-shadow: 0 0 10px rgba(224, 145, 63, .45); }
.section-num { font-family: var(--font-mono); color: var(--ember); font-size: 0.85rem; }
.section-num::before { content: "["; color: var(--cyan-dim); }
.section-num::after { content: "]"; color: var(--cyan-dim); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 600; }
.section-sub { color: var(--muted); margin-top: -18px; margin-bottom: 32px; }

.prose p { color: var(--text-2); }
.prose .lead { font-size: 1.2rem; color: var(--text); font-family: var(--font-display); font-weight: 400; line-height: 1.5; }
.two-col { columns: 2; column-gap: 48px; }
.two-col .lead { column-span: all; margin-bottom: 26px; max-width: 62ch; }
.two-col p { break-inside: avoid; }

/* ── Timeline ────────────────────────────────────────────── */
.timeline { list-style: none; position: relative; padding-left: 28px; }
.tl-line {
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-dim));
  transform-origin: top center; transform: scaleY(1);
  box-shadow: 0 0 12px rgba(111, 201, 226, .35);
}
.tl-item {
  position: relative;
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.tl-item::before {
  content: ""; position: absolute; left: -33px; top: 38px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(111, 201, 226, .12);
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-when {
  font-family: var(--font-mono); font-size: 0.95rem;
  display: flex; flex-direction: column; gap: 2px; color: var(--cyan);
}
.tl-to { color: var(--muted); font-size: 0.8rem; }
.tl-to::before { content: "to "; }
.tl-body h3 { font-size: 1.32rem; margin-bottom: 4px; }
.tl-org { color: var(--ember); font-size: 0.9rem; font-weight: 500; margin-bottom: 12px; font-family: var(--font-mono); }
.tl-org a { color: inherit; text-decoration: none; }
.tl-org a:hover { text-decoration: underline; }
.tl-body p { color: var(--text-2); max-width: 62ch; }
.tl-bullets { list-style: none; color: var(--text-2); font-size: 0.95rem; }
.tl-bullets li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.tl-bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border: 1px solid var(--cyan-dim);
  transform: rotate(45deg);
}
.tl-bullets strong { color: var(--text); }

/* ── Education ───────────────────────────────────────────── */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.edu {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .15s;
}
.edu:hover { border-color: var(--cyan-dim); }
.edu-degree { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; margin-bottom: 6px; }
.edu-school { color: var(--text-2); font-weight: 500; margin-bottom: 2px; }
.edu-when { font-family: var(--font-mono); color: var(--cyan); font-size: 0.8rem; margin-bottom: 12px; }
.edu-note { color: var(--text-2); font-size: 0.95rem; margin: 0; }
.edu-certs .tl-bullets { margin-top: 8px; }

/* ── GitHub ──────────────────────────────────────────────── */
.gh { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.gh-card, .gh-side, .gh-term, .gh-repo { min-width: 0; }
.gh-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 3.5vw, 44px); min-height: 300px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); overflow: hidden; isolation: isolate;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.gh-card:hover, .gh-card:focus-visible { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(111, 201, 226, .25), 0 24px 60px rgba(4, 8, 16, .55), 0 0 48px rgba(111, 201, 226, .12); transform: translateY(-3px); }
.gh-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(111, 201, 226, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 201, 226, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(120% 90% at 100% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(120% 90% at 100% 0%, #000 20%, transparent 70%);
  transition: opacity .3s; opacity: .8;
}
.gh-card:hover .gh-grid { opacity: 1; }
.gh-tick { position: absolute; width: 22px; height: 22px; pointer-events: none; transition: transform .3s; }
.gh-tick-tl { top: 10px; left: 10px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.gh-tick-br { bottom: 10px; right: 10px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.gh-card:hover .gh-tick-tl { transform: translate(-4px, -4px); }
.gh-card:hover .gh-tick-br { transform: translate(4px, 4px); }
.gh-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gh-mark { width: 40px; height: 40px; color: var(--text); flex: none; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.gh-card:hover .gh-mark { transform: rotate(-8deg) scale(1.06); }
.gh-eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); font-weight: 500; }
.gh-eyebrow::before { content: "// "; color: var(--cyan-dim); }
.gh-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nb-green); box-shadow: 0 0 0 0 rgba(92, 201, 139, .6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(92, 201, 139, .55); } 70% { box-shadow: 0 0 0 9px rgba(92, 201, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 201, 139, 0); } }
.gh-handle {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(1.5rem, 3.6vw, 2.7rem); color: var(--text-2); margin-top: auto;
  overflow-wrap: normal; word-break: keep-all;
}
.gh-handle strong { font-weight: 600; color: var(--cyan); text-shadow: 0 0 18px rgba(111, 201, 226, .35); }
[data-magnetic] { will-change: transform; }
.gh-tag { color: var(--text-2); max-width: 34em; line-height: 1.55; }
.gh-cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan);
}
.gh-arrow { display: inline-block; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.gh-card:hover .gh-arrow { transform: translate(4px, -4px); }

.gh-side { display: flex; flex-direction: column; gap: 14px; }
.gh-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.gh-repo {
  display: flex; flex-direction: column; gap: 8px; flex: 1;
  padding: 22px 22px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s;
}
.gh-repo:hover, .gh-repo:focus-visible { border-color: var(--cyan-dim); transform: translateY(-2px); }
.gh-repo-name { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 10px; }
.gh-repo-icon { color: var(--ember); font-size: 0.8em; }
.gh-repo-desc { color: var(--text-2); font-size: 0.95rem; line-height: 1.55; }
.gh-repo-meta { margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.gh-repo:hover .gh-repo-meta { color: var(--cyan); }
.gh-term {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 14px; background: #0a101c; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 0.82rem;
}
.gh-prompt { color: var(--nb-green); flex: none; }
.gh-term code { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.gh-copy {
  flex: none; min-height: 32px; padding: 6px 12px; border-radius: 999px;
  background: transparent; color: var(--cyan); border: 1px solid var(--cyan-dim);
  font: inherit; font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase;
  transition: background .15s, color .15s, border-color .15s;
}
.gh-copy:hover { background: rgba(111, 201, 226, .12); border-color: var(--cyan); }
.gh-copy.is-done { color: var(--nb-green); border-color: var(--nb-green); }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 72px); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: row; align-items: baseline; gap: 4px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.contact-form input, .contact-form textarea {
  font: inherit; font-family: var(--font-sans); font-size: 1rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--cyan);
}
.contact-form .req { color: var(--ember); font-family: var(--font-sans); letter-spacing: 0; }
.contact-form input.is-invalid, .contact-form textarea.is-invalid { border-color: #f08a7e; }
.field-error {
  display: none; margin: 0; font-family: var(--font-sans); text-transform: none; letter-spacing: 0;
  font-size: 0.85rem; color: #f5a89f;
}
.field-error.show { display: block; }
.form-status { margin: 0; font-size: 1rem; }
.form-status.ok { color: var(--nb-green); font-size: 1.1rem; }
.form-status.err { color: #f5a89f; }
.form-status a { color: var(--cyan); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea { width: 100%; }
.hidden-field { position: absolute; left: -9999px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }
.contact-form .btn { align-self: flex-start; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: #0a101c; color: var(--text); padding: 48px var(--gutter) 24px; border-top: 1px solid var(--line-soft); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer .brand-name { font-size: 1.12rem; }
.footer-loc { color: var(--muted); font-size: 0.9rem; margin: 6px 0 0; font-family: var(--font-mono); }
.footer-cols { display: flex; gap: 56px; }
.footer-cols .footer-h { margin: 0 0 10px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer-cols a { display: block; color: var(--text-2); text-decoration: none; font-size: 0.92rem; padding: 6px 0; }
.footer-cols a:hover { color: var(--cyan); }
.footer-meta {
  max-width: var(--wrap); margin: 36px auto 0; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.82rem; color: var(--muted);
}
.footer-credit a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-credit a:hover { color: var(--nb-green); border-color: var(--nb-green); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; max-width: 240px; order: -1; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li:nth-child(3) { border-right: 0; }
  .facts li:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .gh { grid-template-columns: minmax(0, 1fr); }
  .hud { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-alt { background-attachment: scroll; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .nav-cta { margin-top: 8px; }
  .brand-name { display: none; }
  .two-col { columns: 1; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .head-meta { display: none; }
  .timeline { padding-left: 20px; }
  .tl-item::before { left: -25px; }
  .mission { min-height: 80svh; align-items: flex-end; }
  .hero-bg img { object-position: 62% 40%; }
  .hero-portrait { max-width: 160px; }
  .hero { padding-top: 52px; }
  .hero-lede { font-size: 1.02rem; line-height: 1.55; }
  .hero-actions { margin-top: 22px; }
  .tl-when { flex-direction: row; gap: 8px; align-items: baseline; }
  .edu-grid { grid-template-columns: 1fr; }
  .gh-card { min-height: 0; }
  .gh-status { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li { border-right: 0 !important; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .section-alt { background-attachment: scroll; }
  .gh-card:hover, .gh-repo:hover, .btn:active { transform: none; }
  .gh-dot { animation: none; }
  .portrait::after, .embers, [data-progress], .hud-blink { display: none; }
  .head-line { transform: none; transition: none; }
  .btn-primary::after { display: none; }
}

/* ── Print: a CV page should print as a clean resume ─────── */
@media print {
  :root { --text: #111; --text-2: #333; --muted: #555; --line: #bbb; --line-soft: #ddd; --cyan: #0b5f78; --ember: #9a4a12; --nb-green: #1f6b45; }
  html { color-scheme: light; }
  body { background: #fff; color: #111; font-size: 11pt; line-height: 1.45; }
  .nav, .skip, .hero-actions, .contact-form, .footer-cols, .section-sub, .nav-toggle,
  .hero-bg, .embers, .hero-grid-layer, .hud, .ticker, .mission-media, [data-progress], .portrait::after, .tl-line, .mission .btn, .head-line { display: none !important; }
  .mission { min-height: 0; padding: 0 0 18pt; }
  .mission-copy h2, .mission-big { text-shadow: none; font-size: 14pt; }
  .mission-note { text-shadow: none; }
  .timeline { padding-left: 0; }
  .tl-item::before { display: none; }
  /* ScrollTrigger pins the mission section (fixed + tall spacer); undo it for paper */
  .pin-spacer { height: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; display: block !important; }
  .mission, .pin-spacer > .mission {
    position: static !important; transform: none !important; inset: auto !important;
    width: auto !important; height: auto !important; max-height: none !important; box-sizing: border-box !important;
  }
  .mission-media img { transform: none !important; }
  /* GSAP parks unrevealed elements at opacity 0; print must show everything */
  [data-reveal], [data-reveal] > *, [data-fx], [data-fx] > *, .mission-line, .split-word > span, .section-num, .facts strong {
    opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important;
  }
  .hero, .section, .section-alt, .footer { background: none !important; border: 0; padding: 0 0 18pt; }
  .hero h1, .hero-lede { text-shadow: none; }
  .hero h1 { font-size: 26pt; margin-bottom: 8pt; }
  .hero-grid { grid-template-columns: 1fr 140pt; align-items: start; }
  .hero-portrait { max-width: 140pt; order: 2; justify-self: end; }
  .hero-lede { max-width: none; }
  .facts { grid-template-columns: repeat(5, 1fr); break-inside: avoid; }
  .facts li { border-right: 1px solid #ddd; border-top: 0 !important; }
  .facts li:last-child { border-right: 0; }
  .hero-portrait::before, .hero-portrait::after { display: none; }
  .portrait { box-shadow: none; border: 1px solid #ccc; }
  .facts { background: none; backdrop-filter: none; margin-top: 14pt; }
  .facts strong { color: #111; }
  .section-head { margin-bottom: 10pt; padding-bottom: 6pt; break-after: avoid; }
  .section-head h2 { font-size: 15pt; }
  .two-col { columns: 1; }
  .tl-item { padding: 10pt 0; break-inside: avoid; }
  .tl-body h3, .edu-degree { font-size: 12pt; }
  .edu, .gh-card, .gh-repo { background: none; border: 1px solid #ccc; break-inside: avoid; min-height: 0; }
  .edu-grid, .gh { gap: 10pt; }
  .gh-grid, .gh-tick, .gh-copy, .gh-status, .gh-cta { display: none !important; }
  .gh-handle { color: #111; font-size: 16pt; }
  .gh-handle strong { color: #0b5f78; }
  a { color: inherit; text-decoration: none; }
  .tl-org a[href^="http"]::after, .gh-repo::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; font-weight: 400; }
  .footer-meta { justify-content: flex-start; gap: 24pt; margin-top: 18pt; color: #555; }
}

/* ── Touch targets (design review 2026-09-08) ─────────────── */
@media (max-width: 720px) {
  .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (pointer: coarse) {
  .gh-copy { min-height: 44px; padding: 10px 16px; }
  .footer-cols a { min-height: 44px; display: inline-flex; align-items: center; }
}
