/* 0x2458 Portfolio — cyber interactive */
:root {
  --bg: #05070d;
  --bg-2: #0a0f1a;
  --panel: rgba(12, 18, 32, 0.72);
  --panel-border: rgba(0, 240, 255, 0.12);
  --text: #e8eefc;
  --muted: #8b97b0;
  --cyan: #00f0ff;
  --magenta: #ff3d9a;
  --lime: #7cff6b;
  --amber: #ffc857;
  --red: #ff5c7a;
  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
  --nav-h: 72px;
  --glow: 0 0 40px rgba(0, 240, 255, 0.15);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  cursor: crosshair;
}
body.booting { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); font-weight: 400; }
.accent { color: var(--cyan); }
strong { font-weight: 600; }

/* Layers */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.85;
}
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 7, 13, 0.85) 100%);
}
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%;
  pointer-events: none; z-index: 2;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08), transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
body.ready .cursor-glow { opacity: 1; }

.scan-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100;
  background: rgba(255,255,255,0.04);
}
#scan-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 12px var(--cyan);
  transition: width 0.1s linear;
}

/* Boot */
.boot {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: #03050a;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot__panel { width: min(92vw, 520px); }
.boot__log {
  margin: 0 0 1rem;
  min-height: 160px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--lime);
  line-height: 1.7;
  white-space: pre-wrap;
}
.boot__bar {
  height: 3px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden;
}
#boot-fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transition: width 0.2s;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(16px);
  background: rgba(5, 7, 13, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-bottom-color: rgba(0, 240, 255, 0.1);
  background: rgba(5, 7, 13, 0.85);
}
.nav__brand {
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em;
}
.brand-hash { color: var(--cyan); text-shadow: 0 0 18px rgba(0, 240, 255, 0.5); }
.nav__links {
  margin-left: auto;
  display: flex; gap: 0.25rem;
}
.nav__links a {
  font-size: 0.9rem; color: var(--muted);
  padding: 0.45rem 0.75rem; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: rgba(0, 240, 255, 0.08); }
.cmd-hint {
  margin-left: 0.5rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}
.cmd-hint:hover { border-color: var(--cyan); color: var(--cyan); }
.nav__toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px;
  place-items: center; gap: 6px;
  flex-direction: column;
}
.nav__toggle span {
  display: block; width: 20px; height: 2px; background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

/* Hero */
.hero {
  position: relative; z-index: 5;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) clamp(1rem, 4vw, 2.5rem) 4rem;
  max-width: 1280px;
  margin: 0 auto;
}
.hero__content { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--cyan); font-size: 0.82rem; letter-spacing: 0.04em;
  margin: 0 0 1rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(124, 255, 107, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero__title .accent { display: block; }
.glitch {
  position: relative; display: inline-block;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  width: 100%; overflow: hidden; opacity: 0.8;
  pointer-events: none;
}
.glitch::before {
  color: var(--cyan); z-index: -1;
  animation: glitchA 3.5s infinite linear alternate-reverse;
}
.glitch::after {
  color: var(--magenta); z-index: -2;
  animation: glitchB 2.8s infinite linear alternate-reverse;
}
@keyframes glitchA {
  0%, 90%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  92% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 1px); }
  94% { clip-path: inset(40% 0 30% 0); transform: translate(3px, -1px); }
  96% { clip-path: inset(70% 0 5% 0); transform: translate(-2px, 2px); }
}
@keyframes glitchB {
  0%, 88%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  91% { clip-path: inset(60% 0 10% 0); transform: translate(3px, -1px); }
  93% { clip-path: inset(20% 0 50% 0); transform: translate(-3px, 1px); }
  95% { clip-path: inset(0 0 70% 0); transform: translate(2px, 1px); }
}
.hero__sub {
  margin: 1.25rem 0 1.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  min-height: 3.4em;
}
.hero__sub .caret {
  display: inline-block; width: 8px; height: 1.1em;
  background: var(--cyan); margin-left: 2px; vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn--primary {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.95), rgba(0, 180, 255, 0.85));
  color: #031018;
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.3), var(--glow);
}
.btn--primary:hover { box-shadow: 0 0 30px rgba(0, 240, 255, 0.45); }
.btn--ghost {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.btn--ghost:hover { border-color: rgba(0, 240, 255, 0.4); background: rgba(0, 240, 255, 0.06); }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
}
.stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--cyan);
  letter-spacing: 0.02em;
}
.stat span { font-size: 0.85rem; color: var(--muted); }

.hero__terminal {
  position: relative; z-index: 2;
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  background: rgba(6, 10, 18, 0.85);
  box-shadow: var(--glow), 0 30px 80px rgba(0,0,0,0.45);
  overflow: hidden;
  min-height: 320px;
}
.term__bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.term__title { margin-left: 0.5rem; font-size: 0.75rem; color: var(--muted); }
.term__body {
  margin: 0;
  padding: 1rem 1.1rem 1.4rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #b7f5c8;
  min-height: 260px;
  white-space: pre-wrap;
}
.term__body .cmd { color: var(--cyan); }
.term__body .ok { color: var(--lime); }
.term__body .warn { color: var(--amber); }
.term__body .crit { color: var(--magenta); }

.hero__orbit {
  position: absolute; right: 8%; top: 50%;
  width: 380px; height: 380px;
  transform: translateY(-50%);
  pointer-events: none; z-index: 0; opacity: 0.5;
}
.orbit {
  position: absolute; inset: 0; margin: auto;
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 50%;
  animation: spin linear infinite;
}
.orbit--1 { width: 100%; height: 100%; animation-duration: 24s; }
.orbit--2 { width: 70%; height: 70%; animation-duration: 16s; animation-direction: reverse; border-color: rgba(255, 61, 154, 0.2); }
.orbit--3 { width: 42%; height: 42%; animation-duration: 10s; border-color: rgba(124, 255, 107, 0.18); }
.orbit-core {
  position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 30px var(--cyan), 0 0 60px rgba(0, 240, 255, 0.4);
}
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}
.scroll-cue span {
  width: 1px; height: 36px;
  background: linear-gradient(var(--cyan), transparent);
  animation: drop 1.6s infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* Sections */
.section {
  position: relative; z-index: 5;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem clamp(1rem, 4vw, 2.5rem);
}
.section__head { margin-bottom: 2.5rem; }
.section__idx {
  display: block;
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.section__head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}
.section__lead { margin: 0; color: var(--muted); max-width: 36rem; }

.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
}
.about-card { padding: 1.75rem; }
.about-card h3 { margin: 0 0 0.85rem; font-size: 1.2rem; }
.about-card p { color: var(--muted); margin: 0 0 1rem; }
.about-card p:last-child { margin-bottom: 0; }
.about-card strong { color: var(--text); }
.about-meta { display: grid; gap: 0.85rem; }
.meta-chip { padding: 1.1rem 1.2rem; }
.meta-chip .label {
  display: block; font-size: 0.72rem; color: var(--cyan);
  margin-bottom: 0.35rem; letter-spacing: 0.04em;
}
.meta-chip strong { font-size: 1rem; }

/* Skills */
.skills-stage {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.25rem;
  align-items: stretch;
  min-height: 380px;
}
.skill-constellation {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 240, 255, 0.08), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255, 61, 154, 0.07), transparent 35%),
    rgba(8, 12, 22, 0.7);
  overflow: hidden;
  min-height: 360px;
}
.skill-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.skill-node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(8, 14, 28, 0.9);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
  white-space: nowrap;
  z-index: 2;
  user-select: none;
}
.skill-node:hover, .skill-node.active {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
  transform: translate(-50%, -50%) scale(1.08);
  z-index: 3;
}
.skill-detail { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.skill-detail .label { color: var(--cyan); font-size: 0.75rem; margin-bottom: 0.5rem; }
.skill-detail h3 { margin: 0 0 0.6rem; font-size: 1.4rem; }
.skill-detail p { margin: 0; color: var(--muted); }
.skill-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.25rem;
}
.skill-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  transition: all 0.2s;
  cursor: pointer;
}
.skill-tag:hover, .skill-tag.active {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.08);
}

/* Timeline */
.timeline {
  position: relative;
  display: grid; gap: 1.1rem;
  padding-left: 1.25rem;
}
.timeline::before {
  content: "";
  position: absolute; left: 5px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--cyan), var(--magenta), transparent);
  opacity: 0.4;
}
.tl-item {
  position: relative;
  padding: 1.4rem 1.5rem 1.4rem 1.6rem;
  transition: border-color 0.3s, transform 0.3s;
}
.tl-item:hover {
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateX(4px);
}
.tl-dot {
  position: absolute; left: -1.25rem; top: 1.7rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  transform: translateX(-3px);
}
.tl-date { font-size: 0.78rem; color: var(--cyan); margin-bottom: 0.35rem; }
.tl-item h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.tl-org { margin: 0 0 0.75rem; color: var(--muted); font-weight: 500; }
.tl-item ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.tl-item li { margin-bottom: 0.35rem; }
.tl-item li::marker { color: var(--cyan); }

/* Achievements */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.ach-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
  transform-style: preserve-3d;
}
.ach-card:hover { border-color: rgba(255, 61, 154, 0.35); }
.ach-rank {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--magenta);
  background: rgba(255, 61, 154, 0.1);
  border: 1px solid rgba(255, 61, 154, 0.25);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.ach-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.ach-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.certs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.cert {
  padding: 1.15rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.cert:hover { border-color: rgba(0, 240, 255, 0.35); transform: translateY(-3px); }
.cert .label { font-size: 0.7rem; color: var(--cyan); }
.cert strong { font-size: 1.05rem; }
.cert span:last-child { font-size: 0.85rem; color: var(--muted); }
a.cert--link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.cert--link:hover {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.12);
}
a.cert--link:hover strong { color: var(--cyan); }
.ext-hint {
  font-size: 0.75em;
  opacity: 0.55;
  font-weight: 500;
}
a.cert--link:hover .ext-hint,
a.hof-card:hover .ext-hint { opacity: 1; color: var(--cyan); }

/* HOF */
.hof-marquee {
  overflow: hidden;
  margin-bottom: 1.5rem;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.hof-track {
  display: flex; gap: 1rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.hof-track:hover { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.hof-pill {
  flex: 0 0 auto;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.05);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
a.hof-pill--link {
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
a.hof-pill--link:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}
.hof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.hof-card {
  padding: 1.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  display: block;
}
.hof-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 240, 255, 0.12), transparent 50%);
  opacity: 0; transition: opacity 0.3s;
}
.hof-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.1);
}
.hof-card:hover::before { opacity: 1; }
.hof-card strong {
  position: relative;
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.hof-card span {
  position: relative;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* Contact */
.section--contact { padding-bottom: 3rem; }
.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
}
.contact-main h3 {
  margin: 0 0 0.75rem;
  color: var(--lime);
  font-size: 1rem;
}
.contact-main p { color: var(--muted); margin: 0 0 1.25rem; }
.contact-loc { margin-top: 0.25rem !important; font-size: 0.85rem !important; color: var(--muted) !important; }
.socials { display: grid; gap: 0.75rem; }
.social {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.social:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.06);
}
.social__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
}
.social strong { display: block; font-size: 0.98rem; }
.social small { color: var(--muted); }

/* Footer + egg */
.footer {
  position: relative; z-index: 5;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__row {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: flex-start;
}
.footer p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.footer__hint {
  max-width: 28rem;
  font-size: 0.72rem !important;
  opacity: 0.55;
  transition: opacity 0.3s, color 0.3s;
}
.footer__hint:hover, .footer__hint.hot {
  opacity: 1;
  color: var(--amber);
}
.egg-trigger {
  position: absolute;
  right: clamp(0.5rem, 3vw, 1.5rem);
  bottom: 0.85rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(0, 240, 255, 0.18);
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.06);
  background: transparent;
  transition: color 0.3s, border-color 0.3s, text-shadow 0.3s, transform 0.3s;
  z-index: 6;
}
.egg-trigger:hover, .egg-trigger:focus-visible {
  color: rgba(0, 240, 255, 0.75);
  border-color: rgba(0, 240, 255, 0.35);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  transform: scale(1.08);
  outline: none;
}
.egg-trigger.pulse {
  animation: eggPulse 1.8s ease-in-out infinite;
}
@keyframes eggPulse {
  0%, 100% { color: rgba(0, 240, 255, 0.18); }
  50% { color: rgba(0, 240, 255, 0.45); }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Command palette */
.cmd {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: start center;
  padding-top: 15vh;
}
.cmd[hidden] { display: none; }
.cmd__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}
.cmd__panel {
  position: relative;
  width: min(92vw, 480px);
  padding: 0.75rem;
  overflow: hidden;
}
.cmd__input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  outline: none;
  font-size: 0.95rem;
}
.cmd__input:focus { border-color: var(--cyan); }
.cmd__list {
  list-style: none; margin: 0.5rem 0 0; padding: 0;
  max-height: 280px; overflow: auto;
}
.cmd__list li button {
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  display: flex; justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}
.cmd__list li button:hover,
.cmd__list li button.active {
  background: rgba(0, 240, 255, 0.08);
  color: var(--text);
}
.cmd__list kbd {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
}

/* Game modal */
.game-modal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 1rem;
}
.game-modal[hidden] { display: none; }
.game-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 4, 10, 0.8);
  backdrop-filter: blur(8px);
}
.game-shell {
  position: relative;
  width: min(96vw, 940px);
  padding: 1rem 1rem 0.85rem;
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.12), 0 30px 80px rgba(0,0,0,0.5);
}
.game-shell__bar {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 0.75rem;
}
.game-shell__bar h2 {
  margin: 0; font-size: 1.1rem; letter-spacing: 0.06em;
}
.game-sub { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.85rem; font-family: var(--font); }
.game-close {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
}
.game-close:hover { color: var(--text); border-color: var(--magenta); }
.game-hud {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  font-size: 0.78rem; color: var(--muted);
  margin-bottom: 0.6rem;
}
.game-hud strong { color: var(--cyan); margin-left: 0.3rem; }
#game-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: #04080f;
  cursor: none;
  touch-action: none;
}
.game-overlay {
  position: absolute;
  left: 1rem; right: 1rem;
  top: 50%;
  transform: translateY(-30%);
  display: grid; place-items: center;
  pointer-events: none;
}
.game-overlay.hidden { display: none; }
.game-overlay__card {
  pointer-events: auto;
  text-align: center;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(10px);
  max-width: 360px;
}
.game-overlay__card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.game-overlay__card p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.game-footer {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 0.55rem;
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 1.5rem);
    min-height: auto;
  }
  .hero__orbit { display: none; }
  .hero__terminal { order: 3; }
  .scroll-cue { display: none; }
  .about-grid, .skills-stage, .contact-panel { grid-template-columns: 1fr; }
  .ach-grid { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr 1fr; }
  .hof-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    display: none; flex-direction: column;
    padding: 1rem;
    background: rgba(5, 7, 13, 0.96);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }
  .cmd-hint { display: none; }
  .certs { grid-template-columns: 1fr; }
  .footer__row { flex-direction: column; }
  .game-overlay { top: 45%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
