/* =========================================================
   M.A.P — SPACESHIP HUD PORTFOLIO
   ========================================================= */
:root {
  --bg:        #03060d;
  --bg-2:      #060b16;
  --panel:     rgba(8, 16, 28, 0.66);
  --panel-2:   rgba(10, 20, 34, 0.82);
  --card:      rgba(10, 19, 32, 0.92);  /* opaque card surface — no backdrop-blur (perf) */
  --line:      rgba(64, 224, 255, 0.18);
  --line-soft: rgba(64, 224, 255, 0.08);
  --cyan:      #4fe9ff;
  --cyan-dim:  #2aa8c4;
  --teal:      #1de4c8;
  --magenta:   #ff4d9d;
  --amber:     #ffb347;
  --text:      #cfe9f5;
  --text-dim:  #8aa6bf;            /* AA-legible muted (was #6f8aa3) */
  --white:     #eafaff;
  --glow:      0 0 18px rgba(79, 233, 255, 0.35);
  --focus:     #8ef2ff;            /* keyboard focus ring */
  --hud-edge:  rgba(79, 233, 255, 0.55);
  --hud-tick:  rgba(79, 233, 255, 0.22);
  --font-head: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  /* z-index scale: bg-fx -3..-1 · hud-frame 50 · tele 60 · nav 9000 · modal 9500 · scanlines 9990 · boot 99999 */
  --tele-h:    30px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(79,233,255,0.07), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(255,77,157,0.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
  letter-spacing: 0.3px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan); color: #02060d; }

/* ===== HUD SCROLLBAR ===== */
* { scrollbar-width: thin; scrollbar-color: var(--cyan-dim) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(3, 8, 16, 0.5); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--cyan-dim), var(--teal)); border-radius: 5px; border: 2px solid rgba(3, 8, 16, 0.7); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ===== ACCESSIBILITY ===== */
/* Visible keyboard focus on every interactive element (mouse clicks stay clean) */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible, .btn:focus-visible,
.tcard:focus-visible, .cert:focus-visible, summary:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus), var(--glow);
  outline: none;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 1px;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100000;
  transform: translateY(-200%);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px;
  color: #02080f; background: linear-gradient(90deg, var(--cyan), var(--teal));
  padding: 10px 16px; border-radius: 6px; text-decoration: none;
  box-shadow: var(--glow); transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; }

/* Tabular figures stop width jitter on live counters / clocks */
#clock, .stat__num, .statbox b, .hud-tele { font-variant-numeric: tabular-nums; }

/* ===== HUD CANOPY FRAME (cockpit framing — all pages) ===== */
.hud-frame { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.hud-frame .hud-corner {
  position: absolute; width: 26px; height: 26px;
  border-color: var(--hud-edge); opacity: 0.8;
}
.hud-frame .hud-corner--tl { top: 12px; left: 12px; border-top: 2px solid; border-left: 2px solid; }
.hud-frame .hud-corner--tr { top: 12px; right: 12px; border-top: 2px solid; border-right: 2px solid; }
.hud-frame .hud-corner--bl { bottom: 12px; left: 12px; border-bottom: 2px solid; border-left: 2px solid; }
.hud-frame .hud-corner--br { bottom: 12px; right: 12px; border-bottom: 2px solid; border-right: 2px solid; }
/* faint edge tick marks along the canopy */
.hud-frame .hud-edge {
  position: absolute; background:
    repeating-linear-gradient(90deg, var(--hud-tick) 0 1px, transparent 1px 26px);
}
.hud-frame .hud-edge--top { top: 12px; left: 52px; right: 52px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--hud-tick) 0 1px, transparent 1px 40px); }
.hud-frame .hud-label {
  position: absolute; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 2px; color: var(--text-dim); opacity: 0.6;
}
.hud-frame .hud-label--tl { top: 14px; left: 46px; }
.hud-frame .hud-label--tr { top: 14px; right: 46px; }

/* ===== BOTTOM TELEMETRY BAR ===== */
.hud-tele {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--tele-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 clamp(16px, 4vw, 48px) env(safe-area-inset-bottom, 0px);
  display: none; align-items: center; gap: 22px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px;
  color: var(--text-dim);
  background: linear-gradient(0deg, rgba(3,6,13,0.94), rgba(3,6,13,0.55));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.hud-tele__cell { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hud-tele__k { color: var(--cyan-dim); }
.hud-tele__v { color: var(--teal); }
.hud-tele__sep { width: 1px; height: 12px; background: var(--line); }
.hud-tele__spacer { flex: 1; }
.hud-tele__gauge {
  width: 120px; height: 5px; border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; background: rgba(79,233,255,0.06);
}
.hud-tele__gauge i { display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--teal)); box-shadow: var(--glow); }
.hud-tele__live { color: var(--teal); }
.hud-tele__live::before {
  content: "●"; margin-right: 6px; color: var(--teal);
  animation: pulse 1.8s ease-in-out infinite;
}

/* ===== BACKGROUND FX ===== */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}
.grid-overlay {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 35%, transparent 100%);
}
.scanlines {
  /* no mix-blend-mode: avoids per-frame recompositing over the animated canvas */
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, rgba(120,200,230,0.035) 0px, rgba(120,200,230,0.035) 1px,
    transparent 2px, transparent 3px);
  opacity: 0.6;
}
.vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  box-shadow: inset 0 0 280px 60px rgba(0,0,0,0.85);
}

/* ===== BOOT SCREEN ===== */
.boot {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot__inner { width: min(560px, 86vw); }
.boot__log {
  font-family: var(--font-mono);
  color: var(--teal);
  font-size: 13px;
  line-height: 1.7;
  text-shadow: 0 0 8px rgba(29,228,200,0.4);
  min-height: 180px;
  white-space: pre-wrap;
}
.boot__bar {
  margin-top: 18px; height: 6px; border: 1px solid var(--line);
  background: rgba(79,233,255,0.05); border-radius: 3px; overflow: hidden;
}
.boot__bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  box-shadow: var(--glow);
  transition: width 0.18s linear;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(3,6,13,0.92), rgba(3,6,13,0.4));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav__brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.nav__sigil { color: var(--cyan); font-size: 14px; animation: spinSlow 6s linear infinite; }
.nav__call {
  font-family: var(--font-head); font-weight: 900; letter-spacing: 3px;
  color: var(--white); font-size: 18px; text-shadow: var(--glow);
}
.nav__sub { font-family: var(--font-mono); font-size: 10px; color: var(--teal); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; text-decoration: none; color: var(--text-dim);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px;
  padding: 6px 14px; border: 1px solid transparent; border-radius: 4px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, text-shadow 0.2s ease;
}
.nav__links a::before { content: attr(data-idx) " "; color: var(--cyan-dim); opacity: 0.7; }
.nav__links a:hover, .nav__links a.active {
  color: var(--white); border-color: var(--line);
  background: rgba(79,233,255,0.06); text-shadow: var(--glow);
}
.nav__links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--cyan); box-shadow: var(--glow);
}
.nav__links a.nav__cta.active::after { display: none; }
.nav__links a.nav__cta {
  color: #02080f; background: linear-gradient(90deg, var(--cyan), var(--teal));
  border-color: transparent; font-weight: 700; margin-left: 6px;
}
.nav__links a.nav__cta::before { content: ""; }
.nav__links a.nav__cta:hover { box-shadow: 0 0 22px rgba(79,233,255,0.6); color: #02080f; }
.nav__status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--teal);
}
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--cyan);
  font-size: 22px; line-height: 1; padding: 4px 12px; border-radius: 6px; cursor: pointer;
}

.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 10px var(--teal); animation: pulse 1.6s ease-in-out infinite;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(16px, 5vw, 64px) 40px;
  position: relative;
}
.hero__hud {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(6px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: 0;            /* brackets sit on all four corners → squared */
}
.hero__grid {
  display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 40px; align-items: center;
}
.hero__eyebrow { font-family: var(--font-mono); color: var(--cyan); font-size: 12px; letter-spacing: 2px; margin-bottom: 14px; }
.hero__name {
  font-family: var(--font-head); font-weight: 900; line-height: 0.98;
  font-size: clamp(38px, 8vw, 92px); letter-spacing: 2px; color: var(--white);
}
.hero__name span { display: block; }
.hero__name .accent {
  color: transparent; -webkit-text-stroke: 1.5px var(--cyan);
  text-shadow: 0 0 30px rgba(79,233,255,0.5);
}
.hero__role {
  font-family: var(--font-mono); font-size: clamp(15px, 2.4vw, 22px);
  color: var(--teal); margin: 18px 0 24px; min-height: 1.6em;
}
.caret { color: var(--cyan); animation: blink 1s step-end infinite; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); background: rgba(79,233,255,0.04);
  display: inline-flex; align-items: center; gap: 8px;
}
.chip--live { color: var(--teal); border-color: rgba(29,228,200,0.4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.5px;
  text-decoration: none; color: var(--text);
  padding: 13px 22px; border: 1px solid var(--line); border-radius: 6px;
  background: rgba(79,233,255,0.03); cursor: pointer;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .12s ease;
  position: relative; overflow: hidden;
}
.btn:hover { color: var(--white); border-color: var(--cyan); box-shadow: var(--glow); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn--primary {
  color: #02080f; background: linear-gradient(90deg, var(--cyan), var(--teal));
  border-color: transparent; font-weight: 700;
}
.btn--primary:hover { box-shadow: 0 0 26px rgba(79,233,255,0.6); }
/* light sheen sweep on primary buttons (GPU transform; auto-disabled under reduced-motion) */
.btn--primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.32) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform 0.55s ease;
}
.btn--primary:hover::after { transform: translateX(130%); }

/* RADAR */
.radar {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 320px; margin: 0 auto;
  border-radius: 50%; border: 1px solid var(--line);
  background: radial-gradient(circle at center, rgba(79,233,255,0.08), transparent 70%);
  overflow: hidden;
}
.radar__rings span {
  position: absolute; inset: 0; margin: auto; border: 1px solid var(--line-soft); border-radius: 50%;
}
.radar__rings span:nth-child(1) { width: 86%; height: 86%; }
.radar__rings span:nth-child(2) { width: 58%; height: 58%; }
.radar__rings span:nth-child(3) { width: 30%; height: 30%; }
.radar__sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, rgba(79,233,255,0.35), transparent 28%);
  animation: sweep 4s linear infinite;
}
.radar__core {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(3,12,20,0.9); border: 1px solid var(--cyan); box-shadow: var(--glow);
}
.radar__init { font-family: var(--font-head); font-weight: 900; color: var(--cyan); font-size: 16px; letter-spacing: 1px; }
.radar__blip {
  position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px;
  margin: -4px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 12px var(--teal); animation: blip 4s ease-in-out infinite; animation-delay: var(--d);
}

.hero__readout {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 24px;
}
.readout {
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px;
  background: var(--card);
}
.readout__k { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: 2px; }
.readout__v { display: block; font-family: var(--font-head); font-weight: 700; color: var(--cyan); font-size: 15px; margin-top: 4px; }

.scroll-cue {
  align-self: center; margin-top: 30px; text-decoration: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; color: var(--text-dim);
  animation: bob 2s ease-in-out infinite;
}

/* ===== SECTIONS ===== */
.section { padding: 80px clamp(16px, 5vw, 64px); max-width: 1180px; margin: 0 auto; }
.section__head { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.section__idx { font-family: var(--font-mono); color: var(--cyan); font-size: 14px; }
.section__title {
  font-family: var(--font-head); font-weight: 700; letter-spacing: 4px;
  font-size: clamp(20px, 3.4vw, 34px); color: var(--white); text-shadow: var(--glow);
  white-space: nowrap;
}
.section__rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  position: relative;
}
.section__rule::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  background: var(--cyan); box-shadow: var(--glow); border-radius: 50%;
}

/* ===== PANELS + BRACKETS ===== */
.panel {
  position: relative; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); backdrop-filter: blur(6px);
  padding: clamp(22px, 3vw, 38px);
}
.bracket { position: absolute; width: 18px; height: 18px; border-color: var(--cyan); pointer-events: none; }
.bracket--tl { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.bracket--tr { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.bracket--bl { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }
.bracket--br { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

/* ===== ABOUT ===== */
.about__tag { font-family: var(--font-mono); color: var(--cyan); font-size: 12px; letter-spacing: 1px; margin-bottom: 16px; }
.about__lead { font-size: clamp(18px, 2.4vw, 24px); color: var(--white); font-weight: 500; margin-bottom: 18px; line-height: 1.4; }
.about p { color: var(--text); margin-bottom: 14px; font-size: 16px; }
.about strong { color: var(--cyan); font-weight: 600; }
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.stat { border: 1px solid var(--line); border-radius: 6px; padding: 16px; text-align: center; background: rgba(79,233,255,0.03); }
.stat__num { display: block; font-family: var(--font-head); font-weight: 900; font-size: 34px; color: var(--cyan); text-shadow: var(--glow); }
.stat__lbl { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--text-dim); margin-top: 6px; }

/* ===== SYSTEMS / SKILLS ===== */
.systems { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.sys {
  position: relative; border: 1px solid var(--line); border-radius: 0 8px 0 8px;
  background: var(--card); padding: 18px 18px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.sys:active { transform: translateY(-1px) scale(0.99); }
.sys::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.sys:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: var(--glow); }
.sys:hover::before { opacity: 1; }
.sys__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sys__glyph { font-size: 22px; color: var(--cyan); text-shadow: var(--glow); line-height: 1; }
.sys:hover .sys__glyph { animation: spinSlow 4s linear infinite; }
.sys__tier {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 10px var(--teal);
}
.sys[data-tier="advanced"] .sys__tier { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.sys[data-tier="familiar"] .sys__tier { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.sys__name { display: block; font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 17px; letter-spacing: 1px; }
.sys__tag { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: 1px; margin-top: 8px; }

.stack-strip {
  margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border: 1px dashed var(--line); border-radius: 8px; padding: 14px 18px;
}
.stack-strip__label { font-family: var(--font-mono); color: var(--cyan); font-size: 12px; letter-spacing: 2px; }
.stack-strip__items { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-strip__items span {
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(79,233,255,0.04);
}

/* ===== TIMELINE / FLIGHT LOG ===== */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(79,233,255,0.1));
}
.entry { position: relative; margin-bottom: 28px; }
.entry__node {
  position: absolute; left: -33px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan); box-shadow: var(--glow);
}
.entry__node::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}
.entry__top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.entry__role { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: clamp(16px, 2.2vw, 21px); letter-spacing: 0.5px; }
.entry__org { color: var(--teal); font-size: 14px; font-family: var(--font-mono); margin-top: 4px; }
.entry__stamp { text-align: right; }
.entry__date { display: block; font-family: var(--font-mono); color: var(--cyan); font-size: 13px; letter-spacing: 1px; }
.entry__loc { display: block; font-family: var(--font-mono); color: var(--text-dim); font-size: 11px; margin-top: 3px; }
.entry__proj { font-family: var(--font-mono); color: var(--amber); font-size: 12px; letter-spacing: 1px; margin-bottom: 12px; }
.entry__list { list-style: none; }
.entry__list li { position: relative; padding-left: 22px; margin-bottom: 9px; color: var(--text); font-size: 15px; }
.entry__list li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags span {
  font-family: var(--font-mono); font-size: 11px; color: var(--teal);
  padding: 5px 12px; border: 1px solid rgba(29,228,200,0.3); border-radius: 999px; background: rgba(29,228,200,0.05);
}

/* ===== ACTIVE BUILD / PERSONAL PROJECT ===== */
.project__tag { font-family: var(--font-mono); color: var(--cyan); font-size: 12px; letter-spacing: 1px; margin-bottom: 18px; }
.project__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.project__eyebrow { font-family: var(--font-mono); color: var(--amber); font-size: 11px; letter-spacing: 2px; margin-bottom: 8px; }
.project__name { font-family: var(--font-head); font-weight: 900; color: var(--white); font-size: clamp(22px, 4.4vw, 40px); letter-spacing: 2px; text-shadow: var(--glow); line-height: 1.05; }
.project__temp { font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--text-dim); letter-spacing: 1px; text-shadow: none; white-space: nowrap; }
.project__lead { color: var(--text); font-size: 16px; line-height: 1.6; margin-bottom: 22px; max-width: 70ch; }
.project__lead strong { color: var(--cyan); font-weight: 600; }
.proj-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.pillar { border: 1px solid var(--line); border-radius: 0 8px 0 8px; background: var(--card); padding: 14px 10px; text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: clamp(12px, 1.6vw, 15px); letter-spacing: 1px; }
.pillar__x { color: var(--cyan); text-shadow: var(--glow); }
.project__readout { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.readout__note { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 9px; letter-spacing: 1px; color: var(--text-dim); text-shadow: none; margin-top: 3px; }
.plat-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.plat-row__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--cyan); }
.plat {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--text);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 0 8px 0 8px; background: var(--card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.plat:hover { border-color: var(--cyan); box-shadow: var(--glow); color: var(--white); }
.plat svg { width: 15px; height: 15px; color: var(--cyan); flex: 0 0 auto; }
@media (max-width: 760px) {
  .proj-pillars { grid-template-columns: repeat(2, 1fr); }
  .project__readout { grid-template-columns: repeat(2, 1fr); }
}

/* ===== EDUCATION ===== */
.edu { display: flex; align-items: center; gap: 26px; }
.edu__icon {
  font-size: 34px; width: 76px; height: 76px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(79,233,255,0.05);
}
.edu__body h3 { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: clamp(18px, 2.6vw, 24px); }
.edu__deg { color: var(--teal); margin: 6px 0; font-size: 15px; }
.edu__meta { display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }
.edu__gpa { color: var(--cyan); }

/* ===== CERTIFICATIONS / CLEARANCE BADGES ===== */
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cert {
  position: relative; display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: 0 8px 0 8px; background: var(--card);
  padding: 20px 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.cert:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: var(--glow); }
.cert:active { transform: translateY(-1px) scale(0.995); }
.cert__seal {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  color: var(--cyan); border: 1px solid var(--cyan);
  background: radial-gradient(circle at center, rgba(79,233,255,0.14), transparent 70%);
  box-shadow: var(--glow);
}
.cert:hover .cert__seal { animation: spinSlow 5s linear infinite; }
.cert__body { flex: 1; min-width: 0; }
.cert__title { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 15px; line-height: 1.25; letter-spacing: 0.3px; }
.cert__issuer { font-family: var(--font-mono); color: var(--teal); font-size: 11px; letter-spacing: 2px; margin: 6px 0 8px; }
.cert__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: 1px; }
.cert__verify {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--cyan);
  opacity: 0; transform: translateX(-6px); transition: all 0.22s ease;
}
.cert:hover .cert__verify { opacity: 1; transform: none; }

/* ===== COMMS ===== */
.comms { text-align: center; }
.comms__status { font-family: var(--font-mono); color: var(--teal); font-size: 13px; letter-spacing: 1.5px; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.comms__title { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: clamp(22px, 4vw, 40px); margin-bottom: 28px; text-shadow: var(--glow); }
.comms__links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== BRACKETED-CORNER ALIGNMENT =====
   Square the corners that carry an L-bracket so the frame sits flush (no rounded gap). */
.about, .edu { border-radius: 0 8px 0 8px; }    /* brackets at TL + BR */
.entry__body { border-radius: 8px 0 8px 8px; }  /* bracket at TR */
.comms { border-radius: 0; }                     /* brackets at all four corners */

/* ===== FOOTER ===== */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 24px clamp(16px, 5vw, 64px); border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 1px;
}
.footer__mid { color: var(--cyan-dim); }
.footer__ai { flex-basis: 100%; text-align: center; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--text-dim); }
.footer__ai a { color: var(--cyan); text-decoration: none; }
.footer__ai a:hover { text-shadow: var(--glow); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== ANIMATIONS ===== */
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes blip { 0%, 100% { opacity: 0; transform: scale(0.6); } 40%, 60% { opacity: 1; transform: scale(1); } }

/* =========================================================
   EXTREME HUD FX — GPU transform/opacity only · reduced-motion safe
   ========================================================= */
/* ambient drifting aurora behind content */
.fx-aurora {
  position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(79,233,255,0.10), transparent 60%),
    radial-gradient(38% 38% at 82% 68%, rgba(255,77,157,0.08), transparent 60%),
    radial-gradient(30% 34% at 62% 18%, rgba(29,228,200,0.07), transparent 60%);
  animation: auroraDrift 38s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes auroraDrift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
/* a soft cyan band sweeping down the canopy */
.fx-scan {
  position: fixed; left: 0; right: 0; top: 0; height: 160px; z-index: 48; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(79,233,255,0.05) 44%, rgba(140,242,255,0.13) 50%, rgba(79,233,255,0.05) 56%, transparent);
  transform: translateY(-220px); will-change: transform;
  animation: scanDown 9s linear infinite;
}
@keyframes scanDown { from { transform: translateY(-220px); } to { transform: translateY(102vh); } }

/* nav energy line travelling along the bottom border */
.nav::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  background-size: 45% 100%; background-repeat: no-repeat;
  animation: navScan 6s linear infinite;
}
@keyframes navScan { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* telemetry gauge shimmer */
.hud-tele__gauge i { background-size: 200% 100%; animation: gaugeFlow 2.6s linear infinite; }
@keyframes gaugeFlow { to { background-position: -200% 0; } }

/* pointer-tracked spotlight on cards (only the hovered card paints) */
.sys::after, .tcard::after, .cert::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), rgba(140,242,255,0.14), transparent 65%);
  opacity: 0; transition: opacity 0.3s ease;
}
.sys:hover::after, .tcard:hover::after, .cert:hover::after { opacity: 1; }

/* ===== RESPONSIVE ===== */
/* Telemetry bar is desktop/tablet only; reserve space so footer clears it */
@media (min-width: 720px) {
  .hud-tele { display: flex; }
  body { padding-bottom: var(--tele-h); }
  .hud-frame .hud-corner--bl, .hud-frame .hud-corner--br { bottom: calc(var(--tele-h) + 12px); }
}
@media (max-width: 719px) {
  .hud-frame .hud-label { display: none; }
  .hud-frame .hud-corner { width: 18px; height: 18px; }

  .scanlines,
  .fx-scan {
    display: none;
  }

  .fx-aurora {
    animation: none;
    transform: none;
    opacity: 0.55;
  }

  .grid-overlay {
    background-size: 72px 72px;
    mask-image: none;
    opacity: 0.45;
  }

  .vignette {
    box-shadow: inset 0 0 120px 28px rgba(0,0,0,0.72);
  }

  .nav,
  .panel,
  .hero__hud,
  .hud-tele {
    backdrop-filter: none;
  }

  .nav::after,
  .btn--primary::after,
  .sys::after,
  .tcard::after,
  .cert::after {
    display: none;
  }

  .nav__sigil,
  .dot,
  .caret,
  .scroll-cue,
  .radar__sweep,
  .radar__blip,
  .entry__node::after,
  .hud-tele__live::before,
  .hud-tele__gauge i {
    animation: none;
  }

  .radar {
    background:
      radial-gradient(circle at center, rgba(79,233,255,0.13), transparent 68%),
      linear-gradient(135deg, rgba(79,233,255,0.04), transparent);
  }

  .radar__sweep {
    opacity: 0.45;
  }

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

  .btn,
  .sys,
  .cert,
  .plat,
  .tcard {
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  }

  .btn:hover,
  .sys:hover,
  .cert:hover,
  .plat:hover,
  .tcard:hover {
    transform: none;
    box-shadow: none;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
@media (max-width: 880px) {
  .nav__links {
    position: fixed; top: 60px; right: 0; left: 0;
    flex-direction: column; gap: 0; background: rgba(3,8,16,0.97);
    border-bottom: 1px solid var(--line); padding: 8px;
    transform: translateY(-130%); transition: transform 0.35s ease; margin-left: 0;
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 12px; border-radius: 0; }
  .nav__status { margin-left: auto; }
  .nav__toggle { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__right { order: -1; }
  .radar { max-width: 220px; }
  .hero__readout { grid-template-columns: repeat(2, 1fr); }
  .about__stats { grid-template-columns: 1fr; }
  .entry__stamp { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
