/* ═══════════════════════════════════════════════════════════
   OBED PAUL — Portfolio v3.0
   Theme: Mission Control / Cloud Engineer's Dashboard
   ═══════════════════════════════════════════════════════════ */

/* === VARIABLES === */
:root {
  --primary:       #9fd801;
  --primary-dim:   rgba(159, 216, 1, 0.12);
  --primary-glow:  rgba(159, 216, 1, 0.35);
  --bg:            #0b0d1b;
  --bg-card:       rgba(15, 18, 40, 0.82);
  --text:          #ffffff;
  --text-sec:      #9aa3be;
  --border:        rgba(159, 216, 1, 0.1);
  --border-hover:  rgba(159, 216, 1, 0.38);
  --glass:         rgba(255, 255, 255, 0.03);
  --speed:         0.3s;
  --nav-h:         64px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

html { overflow-anchor: none; }
body {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  overflow-anchor: none;
  line-height: 1.7;
  -webkit-user-select: none;
  user-select: none;
}

input, textarea { user-select: text; }
a { transition: color var(--speed) ease; }

/* === ICONS (inline SVG line icons) === */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--fill { fill: currentColor; stroke: none; }

/* === CANVAS === */
#canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* ═══════════ FLOWING AURORA BACKGROUND ═══════════ */
/* registered custom props so the accent colour interpolates smoothly as you scroll */
@property --flow  { syntax: '<color>'; inherits: true; initial-value: #9fd801; }
@property --flow2 { syntax: '<color>'; inherits: true; initial-value: #00aaff; }
:root { --flow: #9fd801; --flow2: #00aaff; transition: --flow 1.4s ease, --flow2 1.4s ease; }

#flow-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.flow-blob {
  position: absolute; width: 48vw; height: 48vw; border-radius: 50%;
  filter: blur(90px); opacity: 0.4; will-change: transform;
  background: radial-gradient(circle at 50% 50%, var(--flow), transparent 68%);
}
.flow-blob.b1 { top: -10%; left: -8%; animation: flowA 24s ease-in-out infinite; }
.flow-blob.b2 {
  bottom: -14%; right: -10%; width: 56vw; height: 56vw; opacity: 0.32;
  background: radial-gradient(circle at 50% 50%, var(--flow2), transparent 68%);
  animation: flowB 30s ease-in-out infinite;
}
.flow-blob.b3 { top: 42%; left: 46%; width: 40vw; height: 40vw; opacity: 0.22; animation: flowC 27s ease-in-out infinite; }
@keyframes flowA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(12vw,12vh) scale(1.1); } }
@keyframes flowB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-14vw,-10vh) scale(1.08); } }
@keyframes flowC { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-38%,-62%) scale(1.12); } }

/* faint drifting grid for a clean techy texture */
.flow-grid {
  position: absolute; inset: -50%;
  background-image:
    linear-gradient(rgba(159,216,1,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,216,1,0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 72%);
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift { from { transform: translateY(0); } to { transform: translateY(62px); } }
@media (max-width: 768px) {
  .flow-blob { filter: blur(60px); opacity: 0.32; }
  .flow-grid { display: none; }
}

/* === STAR TEXTURE === */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
  opacity: 0.2;
  z-index: -2;
  pointer-events: none;
}

/* === WATERMARKS === */
.watermark {
  position: fixed;
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  color: rgba(159, 216, 1, 0.025);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}
.watermark-first {
  top: 50%; left: -5%;
  font-size: 15vw;
  transform: rotate(-90deg) translateY(-50%);
  animation: float1 18s ease-in-out infinite;
}
.watermark-second {
  bottom: 10%; right: -5%;
  font-size: 8vw;
  transform: rotate(90deg);
  animation: float2 22s ease-in-out infinite;
}

/* === SPACESHIPS === */
#spaceship-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.spaceship {
  position: absolute;
  font-family: 'Orbitron', monospace;
  color: rgba(159, 216, 1, 0.07);
  font-weight: bold;
  white-space: nowrap;
  user-select: none;
  will-change: transform;
}
#ship-big   { font-size: 4rem; }
#ship-small { font-size: 2rem; }

/* ═══════════════════════════════════════════
   BOOT SCREEN
   ═══════════════════════════════════════════ */
#boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#boot-content {
  width: 580px;
  max-width: 90vw;
  padding: 0 1rem;
}
#boot-logo {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow), 0 0 50px var(--primary-glow);
  margin-bottom: 2rem;
  letter-spacing: 10px;
}
#terminal-lines {
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  color: #4aaeff;
  line-height: 2.1;
}
#terminal-lines .t-line {
  display: block;
  opacity: 0;
  animation: lineIn 0.05s forwards;
}
#terminal-lines .ok   { color: var(--primary); }
#terminal-lines .warn { color: #ffaa00; }
#terminal-lines .dim  { color: #445; }
#boot-cursor {
  color: var(--primary);
  animation: blink 0.65s step-end infinite;
  font-size: 1rem;
  margin-top: 0.3rem;
}
#boot-screen.boot-out {
  animation: bootFade 0.9s ease forwards;
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════ */
#cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--primary), 0 0 18px var(--primary-glow);
  transition: width 0.18s, height 0.18s, background 0.18s;
  will-change: left, top;
}
#cursor-ring {
  position: fixed;
  width: 34px; height: 34px;
  border: 1.5px solid rgba(159, 216, 1, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.22s, height 0.22s, opacity 0.22s;
  will-change: left, top;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
nav#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(11, 13, 27, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}
.nav-brand {
  font-family: 'Orbitron', monospace;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 4px;
  text-shadow: 0 0 12px var(--primary-glow);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav-link {
  color: var(--text-sec);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: color var(--speed), background var(--speed);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: left 0.28s ease, right 0.28s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
}
.nav-link:hover::after, .nav-link.active::after {
  left: 12%; right: 12%;
}
.nav-cta {
  color: #000;
  background: var(--primary);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 1.15rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-left: 0.6rem;
  transition: all var(--speed);
  box-shadow: 0 0 16px var(--primary-glow);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px var(--primary-glow);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: border-color var(--speed);
}
.nav-toggle:hover { border-color: var(--primary); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 1.5rem 6rem;
  position: relative;
  /* z-index 3 lifts the hero ABOVE the blast runway (z-index 2) so it can
     slide up and OVER the pinned intro video; the solid background makes it
     opaquely cover the clip as it rises. The rise + top-pin is driven by a
     compositor scroll-driven animation below (v5.1) — NOT by JS — so it can
     never wobble frame-to-frame the way the old JS transform did. */
  z-index: 3;
  background: var(--bg);
  overflow: hidden;
  will-change: transform;
}

/* ── Hero rise-and-pin over the blast video (v5.1) ────────────────────────────
   Desktop only, and only where the browser supports scroll-driven animations
   (Chromium/Edge 115+, Safari 26+). The blast runway is 420vh with the video
   scrubbing over its first 320vh (p=1 = last frame at scrollY 320vh). We map a
   single linear timeline to the scroll window [120vh → 420vh]:
     • 120vh  (0%)     : hero top enters at the viewport BOTTOM  → translateY(-200vh)
     • 160vh  (halfway): hero ~20% up the screen (already overlaying from bottom)
     • 320vh  (66.67%) : hero top reaches the viewport TOP, fully covering the
                         video on its LAST frame                 → translateY(-100vh)
     • 320→420vh       : screen-top stays 0 (native top-pin/hold) → translateY(-100vh→0)
     • past 420vh      : rests at translateY(0) and scrolls away, revealing #about
   Because the timeline lives on the compositor, the pin is rock-steady: there is
   no per-frame JS cancel to stutter. Non-supporting browsers simply flow the hero
   normally after the runway (graceful, no overlay). */
@media (min-width: 1025px) {
  @supports (animation-timeline: scroll()) {
    @keyframes heroRise {
      0%     { transform: translateY(-200vh); }
      66.67% { transform: translateY(-100vh); }
      100%   { transform: translateY(0); }
    }
    #hero {
      animation: heroRise linear both;
      animation-timeline: scroll(root block);
      animation-range: 120vh 420vh;
    }
  }
}
/* NOTE: intentionally NOT gated behind prefers-reduced-motion. This overlay is
   scroll-DRIVEN — it only moves when the user scrolls, so the user is always in
   control — exactly like the blast video scrub, which this site also keeps for
   reduced-motion users (see the .blast-cue-line note). Gating it here is what
   made the whole overlay vanish for reduced-motion browsers (v5.2 fix). */
/* soft focus glow behind the name — calms the busy starfield & draws the eye */
.hero-glow {
  position: absolute;
  top: 44%; left: 50%;
  width: min(760px, 92vw); height: min(760px, 92vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(159,216,1,0.13) 0%, rgba(159,216,1,0.045) 34%, transparent 68%);
  pointer-events: none; z-index: -1; filter: blur(6px);
}
.hero-content {
  max-width: 880px; width: 100%;
  display: flex; flex-direction: column; align-items: center;
}

/* availability pill */
.hero-status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.95rem; margin-bottom: 1.7rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.4px;
  color: #cbe0a6;
  background: rgba(159,216,1,0.07);
  border: 1px solid rgba(159,216,1,0.22);
  border-radius: 100px; backdrop-filter: blur(8px);
  animation: fadeDown 0.8s ease both;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--primary);
  animation: statusPulse 2.2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(159,216,1,0.55); }
  50% { box-shadow: 0 0 0 6px rgba(159,216,1,0); }
}

.hero-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-sec);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  animation: fadeDown 0.8s ease 0.05s both;
}

.hero-name {
  font-family: 'Orbitron', monospace;
  font-size: clamp(3rem, 9vw, 6.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 3px;
  animation: fadeDown 0.9s ease 0.1s both;
}
.name-space { width: 1.4rem; }
.letter {
  display: inline-block;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  cursor: default;
}
.letter:hover {
  color: var(--primary);
  text-shadow: 0 0 18px var(--primary-glow), 0 0 48px var(--primary-glow);
}

/* value proposition — the one line that says what you do */
.hero-lede {
  max-width: 620px;
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
  line-height: 1.55;
  font-weight: 400;
  color: #c3cbdd;
  margin-bottom: 1.4rem;
  animation: fadeUp 0.9s ease 0.25s both;
}
.hero-lede .hl { color: var(--primary); font-weight: 600; }

.typewriter-container {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(0.82rem, 2vw, 0.98rem);
  color: var(--text-sec);
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 3.2rem;
  min-height: 1.5rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  animation: fadeUp 0.9s ease 0.35s both;
}
.tw-caret-pre { color: var(--primary); font-size: 0.72rem; }
.type-cursor {
  color: var(--primary);
  animation: blink 0.65s step-end infinite;
  margin-left: 1px;
}

/* === STATS — minimal, editorial === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%; max-width: 720px;
  margin-bottom: 3rem;
  animation: fadeUp 0.9s ease 0.5s both;
}
.stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.3rem 0.8rem 1rem;
  transition: transform var(--speed), border-color var(--speed), background var(--speed);
}
.stat-card:hover { border-color: var(--border-hover); background: rgba(159,216,1,0.04); transform: translateY(-3px); }
.stat-row { display: flex; align-items: baseline; justify-content: center; gap: 1px; }
.stat-number {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-suffix {
  font-family: 'Orbitron', monospace;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  font-size: 0.64rem;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 0.55rem;
}

/* === HERO BUTTONS === */
.hero-cta {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  animation: fadeUp 0.9s ease 0.65s both;
}
.btn-primary, .btn-secondary, .btn-ghost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 0.85rem 1.7rem;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--speed);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-primary {
  background: var(--primary);
  color: #05140a;
  border: 1px solid var(--primary);
  box-shadow: 0 6px 22px rgba(159,216,1,0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(159,216,1,0.34); }
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-ghost {
  background: none;
  border: 1px solid transparent;
  color: var(--text-sec);
}
.btn-ghost:hover { color: var(--primary); }

/* === SCROLL INDICATOR === */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-sec);
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.6;
  animation: floatUpDown 3s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   CONTENT SECTIONS
   ═══════════════════════════════════════════ */
.content-section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.7rem;
  opacity: 0.8;
}
.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
  margin-top: 0.7rem;
}

/* === REVEAL ANIMATIONS === */
.reveal        { opacity: 0; transform: translateY(32px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left   { opacity: 0; transform: translateX(-32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right  { opacity: 0; transform: translateX(32px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: translate(0);
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3.5rem;
  align-items: start;
}
.about-text p {
  color: var(--text-sec);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.85;
}
.about-text strong { color: var(--text); }
.about-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-sec);
  padding: 0.4rem 1rem;
  border-radius: 22px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--speed);
  cursor: default;
}
.badge .icon { width: 1.05rem; height: 1.05rem; color: var(--primary); transition: color var(--speed); }
.badge:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: border-color var(--speed), box-shadow var(--speed);
}
.skill-category:hover { border-color: var(--border-hover); box-shadow: 0 4px 20px rgba(159,216,1,0.06); }
.skill-cat-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1.25rem;
}
.skill-cat-title .icon { width: 1.15rem; height: 1.15rem; }
.skill-bars { display: flex; flex-direction: column; gap: 0.85rem; }
.skill-bar-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.2rem 0.5rem;
  font-size: 0.8rem;
  color: var(--text-sec);
}
.skill-bar-item > span:first-child { grid-column: 1; grid-row: 1; }
.bar-pct {
  grid-column: 2; grid-row: 1;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
  text-align: right;
}
.bar-track {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), rgba(159, 216, 1, 0.45));
  border-radius: 2px;
  transition: width 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === TECH PILLS === */
.tech-pills { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pill {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-sec);
  padding: 0.3rem 0.85rem;
  border-radius: 22px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all var(--speed);
  cursor: default;
}
.pill:hover { background: var(--primary-dim); border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   EXPERIENCE TIMELINE
   ═══════════════════════════════════════════ */
.timeline { position: relative; display: flex; flex-direction: column; gap: 3rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 18px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, rgba(159,216,1,0.25) 60%, transparent 100%);
}
.timeline-item { display: flex; gap: 2.5rem; position: relative; }
.timeline-marker { flex-shrink: 0; padding-top: 0.3rem; }
.marker-dot {
  width: 16px; height: 16px;
  background: var(--bg);
  border: 2.5px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(159,216,1,0.12), 0 0 16px var(--primary-glow);
  position: relative;
  z-index: 1;
  margin-left: 11px;
}
.marker-dot.current {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(159,216,1,0.18), 0 0 22px var(--primary-glow);
}
.timeline-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: all var(--speed);
}
.timeline-card:hover { border-color: var(--border-hover); box-shadow: 0 8px 40px rgba(159,216,1,0.07); transform: translateX(4px); }
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.job-title  { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.company-name { color: var(--primary); font-size: 0.88rem; font-weight: 600; }
.job-date {
  font-size: 0.75rem;
  color: var(--text-sec);
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
}
.timeline-achievements { display: flex; flex-direction: column; gap: 1.1rem; }
.achievement-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 10px;
  transition: all var(--speed);
}
.achievement-item:hover { background: var(--primary-dim); border-color: var(--border); }
.ach-icon { flex-shrink: 0; width: 1.8rem; margin-top: 0.15rem; color: var(--primary); }
.ach-icon .icon { width: 1.35rem; height: 1.35rem; }
.ach-text strong { display: block; color: var(--text); font-size: 0.88rem; margin-bottom: 0.3rem; font-weight: 600; }
.ach-text p { color: var(--text-sec); font-size: 0.82rem; margin: 0; line-height: 1.65; }

/* ═══════════════════════════════════════════
   EDUCATION
   ═══════════════════════════════════════════ */
.edu-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  max-width: 680px;
  transition: all var(--speed);
}
.edu-card:hover { border-color: var(--border-hover); box-shadow: 0 8px 30px rgba(159,216,1,0.07); }
.edu-icon { flex-shrink: 0; color: var(--primary); }
.edu-icon .icon { width: 3rem; height: 3rem; stroke-width: 1.6; }
.edu-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.edu-institution { color: var(--primary); font-size: 0.88rem; font-weight: 600; margin-bottom: 0.8rem; }
.edu-meta { display: flex; gap: 2rem; font-size: 0.82rem; color: var(--text-sec); }
.edu-grade { color: var(--primary); font-weight: 700; }

/* ═══════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════ */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-bottom: 2rem; }
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
  backdrop-filter: blur(12px);
  transition: all var(--speed);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(159,216,1,0.3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 14px 44px rgba(159,216,1,0.1); }
.project-card:hover::before { transform: scaleX(1); }
.project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.project-icon { color: var(--primary); display: inline-flex; }
.project-icon .icon { width: 1.7rem; height: 1.7rem; stroke-width: 1.8; }
.project-link { color: var(--text-sec); text-decoration: none; font-size: 0.78rem; font-weight: 600; transition: color var(--speed); }
.project-link:hover { color: var(--primary); }
.project-card h3 { font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 0.55rem; }
.project-card p { color: var(--text-sec); font-size: 0.82rem; line-height: 1.65; margin-bottom: 1rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tags span {
  background: var(--primary-dim);
  border: 1px solid rgba(159,216,1,0.2);
  color: var(--primary);
  padding: 0.18rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}
.projects-more { text-align: center; margin-top: 1.5rem; }

/* ═══════════════════════════════════════════
   HOBBIES
   ═══════════════════════════════════════════ */
.hobbies-grid { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hobby-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.8rem;
  text-align: center;
  flex: 1;
  min-width: 120px;
  font-size: 0.88rem;
  color: var(--text-sec);
  transition: all var(--speed);
  backdrop-filter: blur(12px);
  cursor: default;
}
.hobby-icon { margin-bottom: 0.7rem; display: block; color: var(--primary); }
.hobby-icon .icon { width: 1.9rem; height: 1.9rem; stroke-width: 1.7; }
.hobby-card:hover .hobby-icon { color: var(--primary); }
.hobby-card:hover { border-color: var(--primary); color: var(--text); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(159,216,1,0.1); }

.languages-section { margin-top: 0.5rem; }
.lang-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.lang-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.7rem; }
.lang-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--text-sec);
  backdrop-filter: blur(12px);
  transition: border-color var(--speed);
}
.lang-item:hover { border-color: var(--border-hover); }
.lang-item > span:first-child::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 0.6rem;
  vertical-align: middle;
  opacity: 0.65;
}
.lang-level { padding: 0.15rem 0.65rem; border-radius: 4px; font-size: 0.7rem; font-weight: 700; }
.fluent       { background: rgba(159,216,1,0.12); color: var(--primary); }
.intermediate { background: rgba(0,180,255,0.1);  color: #4aaeff; }
.beginner     { background: rgba(255,170,0,0.1);  color: #ffaa00; }

/* ═══════════════════════════════════════════
   GAMES
   ═══════════════════════════════════════════ */
.games-subtitle { text-align: center; color: var(--text-sec); margin-bottom: 2.5rem; font-size: 0.95rem; }
.games-grid { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
.game-card { text-decoration: none; color: inherit; transition: transform var(--speed); display: block; }
.game-card:hover { transform: translateY(-7px); }
.game-screen {
  background: #000;
  width: 220px; min-height: 185px;
  display: flex; flex-direction: column;
  justify-content: space-between; align-items: center;
  padding: 1.8rem 1.2rem;
  border-radius: 28px;
  border: 6px solid #252525;
  box-shadow: inset 0 0 28px rgba(0,0,0,0.9), 0 0 0 2px #111, 0 14px 28px rgba(0,0,0,0.5);
  position: relative; overflow: hidden;
  transition: all var(--speed);
}
.game-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(transparent, transparent 2px, rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px);
  pointer-events: none; z-index: 1;
}
.game-screen::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.07), transparent);
  border-radius: 22px 22px 100% 100% / 22px 22px 10% 10%;
  pointer-events: none; z-index: 2;
}
.game-screen:hover {
  border-color: rgba(159,216,1,0.35);
  box-shadow: inset 0 0 38px rgba(159,216,1,0.12), 0 0 0 2px #111, 0 0 32px var(--primary-glow);
}
.game-screen h3 { color: var(--primary); font-size: 1.1rem; z-index: 3; }
.game-screen p  { color: var(--text-sec); font-size: 0.8rem; text-align: center; z-index: 3; }
.play-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 1rem;
  background: var(--primary); color: #000;
  border-radius: 4px; font-weight: 700; font-size: 0.8rem;
  z-index: 3; box-shadow: 0 0 10px var(--primary-glow);
}
.play-btn .icon { width: 0.8rem; height: 0.8rem; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  background: rgba(11, 13, 27, 0.96);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  position: relative; z-index: 1;
}
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem; font-weight: 900;
  color: var(--primary);
  letter-spacing: 7px;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 22px var(--primary-glow);
}
.footer-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
footer a { color: var(--text-sec); text-decoration: none; font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; }
footer a .icon { width: 1.1rem; height: 1.1rem; }
footer a:hover { color: var(--primary); }
.footer-copy { color: rgba(154, 163, 190, 0.35); font-size: 0.78rem; }

/* ═══════════════════════════════════════════
   SPARKLE
   ═══════════════════════════════════════════ */
.sparkle {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--primary), 0 0 14px var(--primary-glow);
  animation: sparkleAnim 0.75s linear forwards;
  pointer-events: none;
  z-index: 9990;
}

/* ═══════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════ */
@keyframes fadeDown  { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp    { from { opacity: 0; transform: translateY(24px);  } to { opacity: 1; transform: none; } }
@keyframes blink     { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes lineIn    { to { opacity: 1; } }
@keyframes bootFade  { to { opacity: 0; pointer-events: none; } }
@keyframes sparkleAnim { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }
@keyframes float1    { 0%,100% { transform: rotate(-90deg) translate(0,0); } 50% { transform: rotate(-90deg) translate(20px,20px); } }
@keyframes float2    { 0%,100% { transform: rotate(90deg) translate(0,0); } 50% { transform: rotate(90deg) translate(-20px,-20px); } }
@keyframes floatUpDown { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes scrollPulse {
  0%   { height: 0;    opacity: 0;   }
  40%  { height: 36px; opacity: 1;   }
  100% { height: 0;    opacity: 0; transform: translateY(18px); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 960px) {
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid  { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(11, 13, 27, 0.98);
    backdrop-filter: blur(24px);
    padding: 0.75rem 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
    gap: 0.2rem;
  }
  .nav-links.open .nav-link { padding: 0.6rem 1rem; font-size: 0.85rem; }
  .nav-links.open .nav-cta  { margin: 0.5rem 0 0 0; text-align: center; justify-content: center; }

  #hero { padding-top: calc(var(--nav-h) + 2rem); }
  .hero-name { font-size: clamp(2.8rem, 11vw, 5rem); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; }
  .timeline-item { gap: 1.2rem; }
  .marker-dot { width: 12px; height: 12px; margin-left: 1px; }
  .edu-card { flex-direction: column; text-align: center; }
  .edu-meta { justify-content: center; }
  .content-section { padding: 4rem 1.2rem; }
  .watermark { display: none; }
  #cursor-dot, #cursor-ring { display: none; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .stats-grid { gap: 0.75rem; }
  nav#main-nav { padding: 0 1rem; }
  .timeline-card { padding: 1.4rem; }
  /* keep the big hero name & tagline from overflowing narrow phones */
  .hero-name { font-size: clamp(1.9rem, 11.5vw, 2.9rem); gap: 0 2px; justify-content: center; }
  .name-space { width: 0.55rem; }
  .hero-tag { font-size: 0.58rem; letter-spacing: 1.5px; }
  #hero { padding-left: 1.1rem; padding-right: 1.1rem; }
}
/* global safety: decorative watermarks/ships must never create a horizontal scrollbar.
   overflow-x: clip contains the bleed without breaking sticky/scroll behaviour. */
html, body { overflow-x: clip; max-width: 100%; }

/* ═══════════════════════════════════════════════════════════
   v3.2 — GAME MENU · WARP · WORLDS · HORIZONTAL SKILLS
   ═══════════════════════════════════════════════════════════ */

/* === BRAND (OBEDPoP) === */
.nav-brand { letter-spacing: 2px; font-size: 1.15rem; }
.nav-right { display: flex; align-items: center; gap: 0.6rem; }

/* === BOOT: ./experience.sh === */
#boot-logo { letter-spacing: 6px; font-size: clamp(1.6rem, 5vw, 2.6rem); margin-bottom: 1.3rem; }
#boot-cmd {
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  color: var(--primary);
  margin-bottom: 0.6rem;
  min-height: 1.3em;
  white-space: pre-wrap;
  word-break: break-word;
}
#boot-cmd .prompt { color: var(--text-sec); }
#terminal-lines { line-height: 1.75; }

/* ═══════════ LEFT GAME MENU ═══════════ */
#game-menu {
  position: fixed;
  left: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.gm-list {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.7rem 0.6rem;
  border-radius: 0 14px 14px 0;
  background: transparent;
  border: 1px solid transparent;
  border-left: none;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
#game-menu:hover .gm-list,
#game-menu:focus-within .gm-list {
  background: rgba(11, 13, 27, 0.94);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.55);
  border-color: var(--border);
  backdrop-filter: blur(14px);
}
.gm-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text-sec);
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  font-size: 0.82rem;
  position: relative;
  transition: color 0.25s, background 0.25s, transform 0.2s;
}
.gm-marker {
  color: var(--primary);
  font-size: 0.55rem;
  width: 0.8em;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.25s, transform 0.25s;
}
.gm-num {
  font-family: 'Orbitron', monospace;
  font-size: 0.66rem;
  color: var(--text-sec);
  opacity: 0.65;
  width: 1.7em;
  flex-shrink: 0;
  transition: color 0.25s, opacity 0.25s;
}
.gm-label {
  white-space: nowrap;
  font-weight: 600;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.32s ease, opacity 0.32s ease;
}
#game-menu:hover .gm-label,
#game-menu:focus-within .gm-label {
  max-width: 170px;
  opacity: 1;
}
.gm-item:hover {
  color: var(--text);
  background: var(--primary-dim);
  transform: translateX(2px);
}
.gm-item.active { color: var(--primary); }
.gm-item.active .gm-marker { opacity: 1; transform: none; }
.gm-item.active .gm-num { color: var(--primary); opacity: 1; }
.gm-hint {
  font-size: 0.58rem;
  color: var(--text-sec);
  opacity: 0;
  letter-spacing: 1px;
  padding-left: 0.9rem;
  white-space: nowrap;
  transition: opacity 0.3s;
}
#game-menu:hover .gm-hint,
#game-menu:focus-within .gm-hint { opacity: 0.5; }

/* ═══════════ WARP / WORLD TRANSITION ═══════════ */
#warp {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(159, 216, 1, 0.06), rgba(7, 9, 20, 0.55) 70%);
}
#warp::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -10%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 22px var(--primary), 0 0 50px var(--primary-glow);
  opacity: 0;
}
#warp-label {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: clamp(1.4rem, 6vw, 3.4rem);
  color: var(--primary);
  text-shadow: 0 0 30px var(--primary-glow), 0 0 60px var(--primary-glow);
  letter-spacing: 6px;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.82);
}
#warp.warping { animation: warpFlash 0.7s ease forwards; }
#warp.warping::before { animation: warpSweep 0.7s ease forwards; }
#warp.warping #warp-label { animation: warpLabel 0.7s ease forwards; }

@keyframes warpFlash { 0% { opacity: 0; } 22% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes warpSweep { 0% { top: -10%; opacity: 0; } 28% { opacity: 1; } 100% { top: 110%; opacity: 0; } }
@keyframes warpLabel { 0% { opacity: 0; transform: scale(0.82); } 35% { opacity: 1; transform: scale(1); } 72% { opacity: 1; } 100% { opacity: 0; transform: scale(1.06); } }

/* ═══════════ WORLDS (full-screen sections) ═══════════ */
.content-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#skills, #experience, #projects {
  justify-content: flex-start;
  padding-top: 7rem;
}
.content-section > .section-inner { width: 100%; }

/* Per-world ambient tint */
.content-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 75% 15%, rgba(159, 216, 1, 0.05), transparent 55%);
}
#about::before     { background: radial-gradient(circle at 12% 25%, rgba(159, 216, 1, 0.07), transparent 55%); }
#skills::before    { background: radial-gradient(circle at 85% 25%, rgba(0, 170, 255, 0.06), transparent 55%); }
#experience::before{ background: radial-gradient(circle at 18% 80%, rgba(159, 216, 1, 0.06), transparent 55%); }
#education::before { background: radial-gradient(circle at 82% 70%, rgba(170, 120, 255, 0.06), transparent 55%); }
#projects::before  { background: radial-gradient(circle at 50% 12%, rgba(159, 216, 1, 0.05), transparent 55%); }
#hobbies::before   { background: radial-gradient(circle at 15% 55%, rgba(255, 170, 0, 0.05), transparent 55%); }
#games::before     { background: radial-gradient(circle at 85% 80%, rgba(0, 170, 255, 0.06), transparent 55%); }

/* === REVEAL VARIANTS === */
.reveal-zoom { opacity: 0; transform: scale(0.92); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-flip { opacity: 0; transform: perspective(900px) rotateX(10deg) translateY(34px); transform-origin: top center; transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-zoom.visible, .reveal-flip.visible { opacity: 1; transform: none; }

/* === SCROLL-SNAP WORLDS (desktop only) === */
@media (min-width: 1025px) {
  html { scroll-snap-type: y proximity; }
  /* NOTE: #hero is intentionally NOT a snap target — it slides over the blast
     video via a scroll-driven animation, and a snap area honours transforms, so
     snapping would yank the scroll mid-cinematic. It settles via normal flow. */
  .content-section { scroll-snap-align: start; }
}

/* ═══════════ HORIZONTAL SKILLS ═══════════ */
.scroll-hint {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--text-sec);
  opacity: 0.55;
  text-transform: uppercase;
}
.skills-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 0.5rem 0 1rem;
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.skills-scroll::-webkit-scrollbar { height: 6px; }
.skills-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 3px; }
.skills-scroll::-webkit-scrollbar-thumb { background: var(--primary-dim); border-radius: 3px; }
.skills-scroll:hover::-webkit-scrollbar-thumb { background: var(--primary); }
.skills-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.4rem;
  width: max-content;
  margin-bottom: 0;
}
.skill-category {
  flex: 0 0 clamp(250px, 80vw, 300px);
  scroll-snap-align: start;
}

/* mobile-only action buttons inside the ☰ overlay (hidden on desktop) */
.gm-actions { display: none; }
.gm-cta {
  display: block; width: 100%; text-align: center; text-decoration: none;
  font-family: 'Orbitron', monospace; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 1px; padding: 0.9rem 1rem; border-radius: 9px;
  text-transform: uppercase; cursor: pointer; box-sizing: border-box;
}
.gm-cta.gm-resume { background: var(--primary); color: #000; border: none; box-shadow: 0 0 18px var(--primary-glow); }
.gm-cta.gm-flight { background: rgba(11,13,27,0.9); color: var(--primary); border: 1px solid var(--primary); }

/* ═══════════ RESPONSIVE: MENU OVERLAY ≤1024 ═══════════ */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  /* top bar stays clean on phones/tablets — the two CTAs move into the ☰ overlay */
  #main-nav .nav-cta, #flight-toggle { display: none; }
  body.menu-open .gm-actions { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.4rem; }
  #game-menu {
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    transform: none;
    z-index: 1500;
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: rgba(7, 9, 20, 0.97);
    backdrop-filter: blur(20px);
    overflow-y: auto;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open #game-menu { display: flex; }
  .gm-list {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    padding: 0;
    gap: 0.3rem;
  }
  .gm-item {
    padding: 0.95rem 1rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .gm-marker { width: 0.9em; font-size: 0.7rem; }
  .gm-num { font-size: 0.85rem; }
  .gm-label { max-width: none !important; opacity: 1 !important; }
  .gm-hint { display: none; }
}

/* === ACCESSIBILITY: reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-snap-type: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   v4.0 CINEMATIC  —  editorial restraint pass
   Deeper canvas · quieter effects · big airy type · one strong
   closing CTA. Green becomes a disciplined accent, not a flood.
   ═══════════════════════════════════════════════════════════ */

/* ── deeper near-black canvas, softer secondary ink ── */
:root {
  --bg: #070810;
  --bg-card: rgba(16, 19, 34, 0.66);
  --border: rgba(159, 216, 1, 0.09);
  --text-sec: #8b93ac;
  --maxw: 1080px;
}
body { line-height: 1.65; }

/* quiet the particle network + aurora so content leads */
#canvas { opacity: 0.5; }
.flow-blob.b1 { opacity: 0.24; }
.flow-blob.b2 { opacity: 0.2; }
.flow-blob.b3 { opacity: 0.14; }
.watermark { opacity: 0.02 !important; }

/* ── more air around every section ── */
.content-section { padding: clamp(5.5rem, 11vh, 9rem) 2rem; }
.section-inner { max-width: var(--maxw); }

/* ── EDITORIAL SECTION HEADER — giant ghost index + tracked eyebrow + big thin title ── */
.section-header {
  position: relative;
  margin-bottom: clamp(2.6rem, 5vw, 4rem);
  padding-top: clamp(2.2rem, 5vw, 3.4rem);
}
.content-section .section-header[data-index]::before {
  content: attr(data-index);
  position: absolute;
  top: clamp(-1.2rem, -1vw, -0.4rem);
  left: -0.3rem;
  font-family: 'Orbitron', monospace;
  font-size: clamp(4.5rem, 13vw, 9.5rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -3px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(159, 216, 1, 0.11);
  text-stroke: 1px rgba(159, 216, 1, 0.11);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.section-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0 !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 1;
}
.section-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--primary);
  opacity: 0.6;
}
.section-title {
  position: relative;
  z-index: 1;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -1.4px;
  margin-top: 1rem;
  max-width: 20ch;
  color: #f3f6ff;
  text-shadow: none;
}

/* ── smoother, calmer reveals ── */
.reveal, .reveal-left, .reveal-right {
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal { transform: translateY(30px); }

/* ═══════════ SCROLL PROGRESS RAIL ═══════════ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
#scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #38e0ff);
  box-shadow: 0 0 12px var(--primary-glow);
  transition: width 0.12s linear;
}

/* ═══════════ BOOT — refined progress finish ═══════════ */
#boot-content { text-align: left; }
#boot-progress {
  margin-top: 1.6rem;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
#boot-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #38e0ff);
  box-shadow: 0 0 14px var(--primary-glow);
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
#boot-status {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.7rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-sec);
}
#boot-pct {
  font-family: 'Orbitron', monospace;
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: var(--primary);
}
#boot-screen.boot-out { animation: bootFade 0.8s ease forwards; }

/* ═══════════ CONTACT / CLOSING CTA ═══════════ */
#contact.content-section::before {
  background: radial-gradient(circle at 50% 30%, rgba(159, 216, 1, 0.07), transparent 60%);
}
.contact-section {
  padding-top: clamp(6rem, 12vh, 10rem);
  padding-bottom: clamp(5rem, 10vh, 8rem);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.contact-title {
  max-width: 18ch;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.02;
}
.contact-title em {
  font-style: normal;
  color: var(--primary);
  text-shadow: 0 0 40px rgba(159, 216, 1, 0.25);
}
.contact-lede {
  max-width: 620px;
  margin-top: 0.4rem;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.65;
  color: #c3cbdd;
}
.contact-lede strong { color: #fff; font-weight: 600; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.2rem;
  margin-top: 2.8rem;
}
.contact-primary {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 2rem;
  min-width: 320px;
  text-decoration: none;
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(159, 216, 1, 0.07), rgba(255, 255, 255, 0.015));
  transition: transform var(--speed), border-color var(--speed), box-shadow var(--speed);
}
.contact-primary:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 18px 50px rgba(159, 216, 1, 0.12);
}
.cp-label {
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-sec);
}
.cp-mail {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 600;
  color: #fff;
}
.cp-arrow { display: inline-block; color: var(--primary); transition: transform var(--speed); }
.contact-primary:hover .cp-arrow { transform: translateX(6px); }
.contact-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}
.contact-secondary a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  text-decoration: none;
  color: var(--text-sec);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  font-weight: 500;
  transition: color var(--speed), border-color var(--speed), transform var(--speed);
}
.contact-secondary a .icon { width: 1.05rem; height: 1.05rem; color: var(--primary); }
.contact-secondary a:hover { color: #fff; border-color: var(--primary); transform: translateY(-2px); }
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-sec);
}
.cm-item { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ═══════════ FOOTER — refined ═══════════ */
.footer-brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto 1.6rem;
  flex-wrap: wrap;
}
.footer-top {
  font-size: 0.76rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-sec);
  text-decoration: none;
  transition: color var(--speed);
}
.footer-top:hover { color: var(--primary); }

/* ═══════════ RESPONSIVE — cinematic bits ═══════════ */
@media (max-width: 768px) {
  .content-section .section-header[data-index]::before { font-size: 4rem; top: 0.2rem; opacity: 0.85; }
  .section-title { letter-spacing: -0.8px; }
  .contact-primary { min-width: 0; width: 100%; }
  .contact-actions { gap: 0.9rem; }
  .contact-meta { gap: 1rem 1.4rem; }
}

/* ═══════════════════════════════════════════════════════════
   BLAST INTRO  —  scroll-scrubbed cinematic clip (v4.5)
   The section is a tall scroll runway; the .blast-stage pins
   (sticky) and the OBEDPOP apocalypse clip (media/blast.mp4,
   encoded all-intra so every frame is seekable) is advanced
   frame-by-frame by scroll position via script.js — scroll down
   drives the explosion forward, stop and it holds.
   ═══════════════════════════════════════════════════════════ */
#blast-intro {
  position: relative;
  height: 420vh;                 /* scroll runway — longer = slower, more cinematic */
  z-index: 2;
  scroll-snap-align: none;
  background: #04050a;
}
.blast-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #04050a;
}
.blast-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  background: #04050a;
}
.blast-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 46%, transparent 50%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 22%, transparent 66%, rgba(4,5,10,0.92) 100%);
}
/* accessible heading — the visible title lives in the video */
.blast-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* scroll cue */
.blast-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 3.5vh;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  opacity: var(--cueop, 1);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.blast-cue-line { width: 1px; height: 34px; background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent); animation: scrollPulse 2s ease-in-out infinite; }

/* reduced motion: the scrub is user-driven (scroll-controlled), so we KEEP it —
   we only silence the ambient scroll-cue pulse. */
@media (prefers-reduced-motion: reduce) {
  .blast-cue-line { animation: none; }
}
/* mobile: shorter runway so the intro isn't an endless scroll on phones */
@media (max-width: 768px) {
  #blast-intro { height: 300vh; }
}

/* ═══════════════════════════════════════════════════════════
   SECTION FLOW  —  scroll-linked directional entrances (v5.5)
   Replaces the v4.8 .scroll-rise. Each section glides in from its
   own direction (data-flow="left|right|up|zoom"), scrubbed live by
   scroll (initFlow in script.js): already moving as it pokes into
   the viewport, settled by mid-screen, replayed in reverse when
   scrolling back — sections read as one continuous flow. Initial
   state hidden; JS owns opacity/transform from the first frame.
   Scroll-driven ⇒ deliberately NOT gated behind reduced motion.
   ═══════════════════════════════════════════════════════════ */
[data-flow] {
  opacity: 0;
  will-change: opacity, transform;
}
/* ghost section numerals drift a beat behind their section (parallax);
   initFlow feeds --secp 0→1 — the dock clones never get the numeral
   (rule is .content-section-scoped) and var() falls back to settled */
.content-section .section-header[data-index]::before {
  transform: translateY(calc((1 - var(--secp, 1)) * 7vh));
}

/* ═══════════════════════════════════════════════════════════
   MANIFESTO  —  scroll-scrubbed ethos scene (v4.7)
   The cinematic poster clip (media/manifesto.mp4, encoded
   all-intra so every frame is seekable) is pinned to the LEFT of
   the screen in a tall scroll runway and advanced frame-by-frame
   by scroll position (see script.js) — same feel as the blast
   intro. The ethos copy sits beside it, left-aligned.
   ═══════════════════════════════════════════════════════════ */
#manifesto {
  position: relative;
  z-index: 2;
  height: 300vh;                 /* scroll runway — longer = slower scrub */
  background: var(--bg);
}
.manifesto-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* left-aligned to the screen */
  gap: clamp(1.75rem, 4vw, 4.5rem);
  padding: 0 clamp(1.25rem, 5vw, 5.5rem);
  overflow: hidden;
}
.manifesto-stage {
  position: relative;
  flex: 0 1 auto;
  height: min(72vh, 40vw);       /* 4:3 panel, sized to leave room for copy */
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #05060c;
  box-shadow:
    0 34px 90px -34px rgba(0,0,0,0.85),
    0 0 80px -30px rgba(124,58,237,0.38);
}
.manifesto-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #05060c;
}
.manifesto-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 16px;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
}
.manifesto-copy {
  flex: 1 1 22ch;
  min-width: 0;
  max-width: 38ch;
  text-align: left;
}
#manifesto .section-tag { margin-bottom: 0.9rem; }
.manifesto-title {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  color: var(--text);
  margin: 0;
  text-align: left;
}
.manifesto-title em { font-style: normal; color: var(--primary); }
.manifesto-title::after {
  content: '';
  display: block;
  width: 64px; height: 3px;
  margin: 1.1rem 0 0;            /* left-aligned underline */
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.manifesto-sub {
  margin: 1.2rem 0 1.8rem;
  max-width: 40ch;
  color: var(--text-sec);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.6;
}
.manifesto-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.8rem;            /* row-gap column-gap when buttons wrap */
  margin-top: 0.2rem;
}
/* tablet / phone: stack the clip above the copy, still left-aligned;
   shorter runway so the scrub isn't an endless scroll on small screens */
@media (max-width: 900px) {
  #manifesto { height: 240vh; }
  .manifesto-pin {
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    padding: 0 clamp(1.1rem, 5vw, 2rem);
  }
  .manifesto-stage { height: auto; width: min(100%, 560px); }
  .manifesto-copy { max-width: min(100%, 560px); }
}

/* ═══════════════════════════════════════════════════════════
   SKILLS LAB — angled 3-D laptop · scroll-typed terminal (v5.4)
   A tall runway pins a 100vh stage; the laptop slides in from
   the left (driven by --labin), silhouette hands settle on the
   deck (--handsin) and the on-screen terminal session is typed
   character-by-character by scroll (script.js initSkillsLab sets
   the custom props + terminal text). Scroll-driven ⇒ deliberately
   NOT gated behind prefers-reduced-motion (site convention —
   only the ambient caret blink is silenced).
   ═══════════════════════════════════════════════════════════ */
/* the laptop IS the skills section now (v5.5) — the old bar-grid
   section stays in the DOM only for the flight-mode dock, which
   clones its .section-inner (flight.js:1926); display:none doesn't
   affect that clone */
#skills { display: none; }

#skills-lab {
  position: relative;
  height: 380vh;                 /* extra runway = zoom-park beat + hold */
  /* end-phase (--labend 0→1): how far right the laptop parks, how much
     closer it zooms, and how far down the copy settles — overridden
     per breakpoint below */
  --endx: 17vw;
  --endy: 2vh;
  --endscale: 0.30;
  --endcopyy: 22vh;
}
.lab-pin {
  position: sticky; top: 0; height: 100vh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.lab-copy {
  position: absolute;
  top: clamp(4.6rem, 10vh, 7.5rem);
  left: clamp(1.2rem, 6vw, 5.5rem);
  z-index: 4;
  /* wraps clear of the laptop while it types; widens as it parks right */
  max-width: calc(min(36vw, 380px) + var(--labend, 0) * 8vw);
  opacity: var(--labcopy, 0);
  transform-origin: left top;
  /* small label top-left during the session → settles into a real
     left-column heading as the laptop zooms right (--labend) */
  transform:
    translateY(calc((1 - var(--labcopy, 0)) * 26px + var(--labend, 0) * var(--endcopyy, 0vh)))
    scale(calc(1 + var(--labend, 0) * 0.12));
}
.lab-title {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  line-height: 1.15;
  color: var(--text);
  margin: 0.75rem 0 0;
}
.lab-title em { font-style: normal; color: #38e0ff; }
.lab-lede {
  margin: 1rem 0 0;
  max-width: 34ch;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 0.98rem);
  line-height: 1.65;
  color: var(--text-sec);
  opacity: var(--labend, 0);     /* the lede belongs to the parked scene */
  transform: translateY(calc((1 - var(--labend, 0)) * 18px));
}

.lab-viewport {
  width: 100%;
  display: flex; justify-content: center;
  perspective: 1500px;
  perspective-origin: 50% 36%;
  /* the fade lives HERE, not on .laptop: opacity < 1 is a grouping
     property that would force the 3-D subtree flat mid-slide in some
     engines (visible pop) while Blink keeps it flat forever */
  opacity: calc(var(--labin, 0) * 2.5);
  will-change: opacity;
}
.laptop {
  position: relative;
  width: min(58vw, 72vh, 780px);
  /* deliberately FLAT (no preserve-3d): children each get this
     perspective for their own rotateX trapezoids and paint in DOM
     order, so the hands always sit above the deck — no depth-sort
     plane slicing, identical in every engine */
  perspective: 1200px;
  /* slide in from the left (--labin), then zoom closer and park on the
     RIGHT half of the screen (--labend) while the copy holds the left.
     -75vw start: hidden at rest yet already poking in mid-approach, so
     the entrance overlaps the previous section's exit */
  transform:
    translateX(calc(-75vw * (1 - var(--labin, 0)) + var(--labend, 0) * var(--endx)))
    translateY(calc(var(--labend, 0) * var(--endy)))
    rotateY(calc(55deg - var(--labin, 0) * 67deg + var(--labend, 0) * 7deg))
    rotateX(calc(2deg + var(--labin, 0) * 4deg))
    scale(calc(0.86 + var(--labin, 0) * 0.14 + var(--labend, 0) * var(--endscale)));
  will-change: transform;
}

/* lid + screen */
.lap-lid {
  position: relative;
  transform-origin: 50% 100%;
  transform: rotateX(-10deg);
  border-radius: 14px 14px 5px 5px;
  background: linear-gradient(180deg, #1b2232, #0c1019);
  padding: clamp(8px, 1.1vw, 14px) clamp(8px, 1.1vw, 14px) clamp(11px, 1.5vw, 19px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 34px 90px rgba(0,0,0,0.55),
    0 0 110px rgba(56,224,255,0.06);
}
.lap-cam {
  position: absolute; top: 5px; left: 50%;
  width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%;
  background: #05070c;
  box-shadow: inset 0 0 2px rgba(255,255,255,0.35);
}
.lap-screen {
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column;
  border-radius: 8px; overflow: hidden;
  background: #04070b;
  box-shadow: inset 0 0 26px rgba(0,0,0,0.85), inset 0 0 70px rgba(0,170,255,0.05);
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: clamp(5px, 0.7vw, 9px) clamp(7px, 1vw, 12px);
  background: rgba(255,255,255,0.045);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.term-dot { width: 9px; height: 9px; border-radius: 50%; }
.td-r { background: #ff5f57; } .td-y { background: #febc2e; } .td-g { background: #28c840; }
.term-host {
  margin-left: 8px;
  font: 500 0.58rem 'Space Grotesk', sans-serif;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.45);
}
.term-body {
  position: relative;             /* offsetTop of .tl rows resolves against this */
  flex: 1;
  padding: clamp(8px, 1.2vw, 16px) clamp(10px, 1.4vw, 20px);
  overflow: hidden;
  text-align: left;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
  font-size: clamp(8.5px, 0.82vw, 12.5px);
  line-height: 1.78;
}
.term-body .tl { display: block; height: 1.78em; white-space: pre; overflow: hidden; }
.term-body .tp { color: var(--primary); }
.tl.cmd { color: #e9eef7; }
.tl.out { color: rgba(255,255,255,0.55); }
.tl.hl  { color: #38e0ff; }
.tl.ok  { color: var(--primary); }
.tl.typing::after { content: '▍'; color: var(--primary); animation: labBlink 1s steps(1) infinite; }
@keyframes labBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tl.typing::after { animation: none; }
}

/* base / keyboard deck */
.lap-base {
  position: relative;
  height: clamp(72px, 10vw, 138px);
  transform-origin: 50% 0%;
  transform: rotateX(74deg);
  border-radius: 5px 5px 18px 18px;
  background: linear-gradient(180deg, #171d2b, #0a0e16 72%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 26px 70px rgba(0,0,0,0.6);
}
.lap-keys {
  position: absolute; inset: 9% 6% 40% 6%;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, transparent 0 5.6%, #0a0e16 5.6% 6.8%),
    repeating-linear-gradient(0deg, transparent 0 24%, #0a0e16 24% 30%),
    #182031;
}
.lap-track {
  position: absolute; left: 40%; right: 40%; bottom: 7%;
  height: 26%;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.055);
}

/* typing hands — stylized silhouettes laid onto the deck plane.
   Anchored at the lid's bottom edge (100% − base height = lid
   height), tilted back so the fingers sit at the keyboard and
   the wrists lift toward the camera. --pl/--pr press alternately
   per typed character. */
.lab-hands {
  position: absolute;
  left: 4%; right: 4%;
  top: calc(100% - clamp(72px, 10vw, 138px) - 6px);
  height: clamp(84px, 11.5vw, 158px);
  pointer-events: none;
  transform-origin: 50% 0%;
  transform: rotateX(52deg);
}
.lab-hand {
  position: absolute; top: 0;
  width: 27%;
  transform: translateY(calc((1 - var(--handsin, 0)) * 170% + var(--pl, 0) * 3.5%));
}
.hand-l { left: 13%; }
.hand-r {
  right: 13%;
  transform: translateY(calc((1 - var(--handsin, 0)) * 170% + var(--pr, 0) * 3.5%));
}
.lab-hand svg {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.55)) drop-shadow(0 0 9px rgba(159,216,1,0.13));
}
.hand-l svg { transform: scaleX(-1) rotate(5deg); }
.hand-r svg { transform: rotate(-5deg); }

/* screen-reader fallback + scroll cue */
.lab-sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.lab-cue {
  position: absolute; bottom: 2.1rem; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.7rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  opacity: var(--cueop, 1);
  transition: opacity 0.3s ease;
}
.lab-cue .blast-cue-line {
  width: 34px; height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.7), transparent);
  animation: none;
}

/* tall-but-narrow desktop windows (half-snapped 1280×1440, 1280×1024
   iPad-Pro-landscape class): the height-based laptop cap never kicks in,
   so damp the park-right beat by width too or the lid clips off-screen */
@media (min-width: 901px) and (max-width: 1450px) and (min-height: 881px) {
  #skills-lab { --endx: 10vw; --endscale: 0.16; }
  .laptop { width: min(52vw, 72vh, 780px); }
}

/* short desktop viewports (1366×768-class): smaller laptop + tighter
   copy so the title never reaches the screen, gentler park-right */
@media (min-width: 901px) and (max-height: 880px) {
  #skills-lab { --endx: 14vw; --endscale: 0.24; --endcopyy: 18vh; }
  .laptop { width: min(58vw, 62vh, 780px); }
  .lab-copy { max-width: calc(min(32vw, 320px) + var(--labend, 0) * 8vw); }
  .lab-title { font-size: clamp(1rem, 1.6vw, 1.35rem); }
}

/* tablet / phone: copy stacks above a bigger-relative laptop,
   shorter runway so the typing isn't an endless scroll; no room to
   park sideways — the end beat is a straight zoom-in instead */
@media (max-width: 900px) {
  /* endscale 0.06: the end-beat rotateY ease (-12°→-5°) adds ~1.9%
     projected width, so 0.10 would push 90vw past the right edge */
  #skills-lab { height: 270vh; --endx: 0vw; --endy: 0vh; --endscale: 0.06; --endcopyy: 0vh; }
  .lab-pin { flex-direction: column; justify-content: center; gap: 1.5rem; padding: 0 1.1rem; }
  /* relative (not static): the ghost "02" ::before must anchor to the copy */
  .lab-copy { position: relative; top: auto; left: auto; text-align: center; max-width: none; transform: none; }
  .lab-viewport { perspective: 1100px; }
  .laptop { width: min(90vw, 560px); }
  .lab-lede { margin-left: auto; margin-right: auto; }
  .term-body { font-size: 8.5px; }
}

/* landscape phones: the stacked column would overflow the 100vh pin —
   size the laptop by height and drop the heading */
@media (max-width: 900px) and (max-height: 520px) {
  .laptop { width: min(66vh, 90vw, 560px); }
  .lab-copy { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   v5.7 — "PLAY MY RESUME" highlight + section number flow
   Flight mode is the site's differentiator but nobody knew what
   "Enter Flight" meant: every trigger is now a bright game CTA
   ("🎮 Play my resume"). The nav/manifesto buttons glow-pulse
   (ambient ⇒ silenced under reduced motion). Also gives the
   skills-lab its ghost "02" so the numerals flow 01→07 with
   Projects hidden.
   ═══════════════════════════════════════════════════════════ */
#flight-toggle {
  background: var(--primary);
  color: #05140a;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 0 18px rgba(159, 216, 1, 0.35);
}
#flight-toggle:hover {
  background: #b8f01a;
  color: #05140a;
  box-shadow: 0 0 28px rgba(159, 216, 1, 0.55);
}
.gm-cta.gm-flight {
  background: var(--primary);
  color: #05140a;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(159, 216, 1, 0.3);
}
.manifesto-cta .flight-trigger {
  background: var(--primary);
  color: #05140a;
  border: 1px solid var(--primary);
  font-weight: 700;
  box-shadow: 0 0 18px rgba(159, 216, 1, 0.35);
}
.manifesto-cta .flight-trigger:hover {
  background: #b8f01a;
  color: #05140a;
}
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(159, 216, 1, 0.3); }
  50%      { box-shadow: 0 0 30px rgba(159, 216, 1, 0.65); }
}
#flight-toggle,
.manifesto-cta .flight-trigger { animation: playPulse 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  #flight-toggle,
  .manifesto-cta .flight-trigger { animation: none; }
}

/* ghost "02" for the skills lab — same treatment as the
   .content-section numerals, sized for the smaller copy block;
   drifts in with the copy (--labcopy) like the others' parallax */
.lab-copy::before {
  content: '02';
  position: absolute;
  top: clamp(-1.2rem, -1vw, -0.4rem);
  left: -0.3rem;
  z-index: -1;
  font-family: 'Orbitron', monospace;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -3px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(159, 216, 1, 0.11);
  text-stroke: 1px rgba(159, 216, 1, 0.11);
  pointer-events: none;
  user-select: none;
  transform: translateY(calc((1 - var(--labcopy, 1)) * 7vh));
}
/* mobile: centered copy gets a smaller centered numeral (must sit after
   the base ::before rule — same specificity, cascade order decides) */
@media (max-width: 900px) {
  .lab-copy::before { font-size: 3.2rem; left: 50%; margin-left: -1.2em; }
}

/* ═══════════════════════════════════════════════════════════
   v5.8 — arcade retired to the footer · Beyond-the-Code flank
   layout · MBA updates
   ═══════════════════════════════════════════════════════════ */

/* the Arcade section left the page (footer links to snake.html /
   flappy.html) but its markup stays for the flight-mode ARCADE
   dock clone — same pattern as #skills */
#games { display: none; }

/* footer: play links instead of the contact-duplicate links */
.footer-games {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  margin: 1.1rem 0 1.4rem;
}
.fg-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-sec);
  opacity: 0.75;
}
.fg-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(159, 216, 1, 0.35);
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: rgba(159, 216, 1, 0.06);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.fg-link:hover {
  background: rgba(159, 216, 1, 0.14);
  box-shadow: 0 0 18px rgba(159, 216, 1, 0.25);
  transform: translateY(-2px);
}

/* two stacked education cards now (MBA + BE) */
.edu-card + .edu-card { margin-top: 1.3rem; }

/* ── BEYOND THE CODE: centered dark title flanked by the lists —
   hobbies slide in from the left, languages from the right
   (reveal-left/right: IO-driven and force-revealed in dock clones) ── */
.btc-flank {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.15fr) 1fr;
  gap: clamp(1.4rem, 3.2vw, 3rem);
  align-items: center;
}
.btc-head {
  margin: 0;                       /* section-header default spacing off */
  text-align: center;
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1rem, 2vw, 1.8rem);
  background: rgba(4, 6, 12, 0.62);          /* the dark tile behind the title */
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45), 0 0 60px rgba(159, 216, 1, 0.05);
}
.btc-head .section-tag { justify-content: center; }
.btc-head .section-title { text-align: center; }
/* center the ghost numeral over the tile (must out-cascade both the base
   numeral rule and the --secp parallax rule — same specificity, later wins) */
.content-section .btc-head[data-index]::before {
  left: 50%;
  transform: translateX(-50%) translateY(calc((1 - var(--secp, 1)) * 7vh));
}
.btc-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-sec);
  margin: 0 0 0.9rem;
}
.btc-list { display: flex; flex-direction: column; gap: 0.7rem; }
.btc-list .hobby-card { width: 100%; }
.btc-list .lang-item { width: 100%; }

@media (max-width: 900px) {
  .btc-flank { display: flex; flex-direction: column; align-items: stretch; gap: 1.6rem; }
  .btc-head { order: -1; }
  .btc-subtitle { text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   v5.9 — Beyond-the-Code flanks balanced + scroll-slide ·
   arcade footer cards · contact→footer flow
   ═══════════════════════════════════════════════════════════ */

/* flanks: scroll-LINKED slide from both sides like the laptop.
   Driven by --btcp (0→1) set inline on #hobbies by initFlow's var
   mode — the dock clone never carries it, so var() falls back to 1
   and the ARCADE/OFF-DUTY panels render settled. */
.btc-side {
  opacity: min(1, calc(var(--btcp, 1) * 1.4));
  will-change: opacity, transform;
}
.btc-l { transform: translateX(calc((var(--btcp, 1) - 1) * 10vw)); }
.btc-r { transform: translateX(calc((1 - var(--btcp, 1)) * 10vw)); }

/* compact rows so each flank ends up a little SHORTER than the title
   tile (was: tall centered cards that towered over it) */
.btc-list { gap: 0.55rem; }
.btc-list .hobby-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  text-align: left;
  min-width: 0;
  font-size: 0.85rem;
  border-radius: 10px;
}
.btc-list .hobby-icon { margin-bottom: 0; display: inline-flex; }
.btc-list .hobby-icon .icon { width: 1.15rem; height: 1.15rem; }
.btc-list .hobby-card:hover { transform: translateX(4px); }
.btc-list .lang-item { padding: 0.6rem 1rem; }
.btc-subtitle { margin-bottom: 0.7rem; }

/* the title tile: give it presence and stop the word-per-line wrap */
.btc-flank { grid-template-columns: 1fr 1.35fr 1fr; }
.btc-head {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.btc-head .section-title { font-size: clamp(1.5rem, 2.5vw, 2.2rem); max-width: 16ch; }
/* the ghost 05 sits quietly INSIDE the tile above the eyebrow now
   (it used to collide with the tag at the tile edge) */
.content-section .btc-head[data-index]::before {
  top: 0.8rem;
  left: 50%;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  opacity: 0.55;
  transform: translateX(-50%) translateY(calc((1 - var(--secp, 1)) * 7vh));
}

/* ── footer: arcade cards (mini CRT tiles) instead of plain pills ── */
.footer-arcade {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin: 1.4rem 0 1.9rem;
}
.fa-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-sec);
  opacity: 0.7;
}
.fa-row { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: center; }
.fa-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 215px;
  padding: 0.9rem 1.3rem;
  background: linear-gradient(180deg, #10141f, #0a0d16);
  border: 1px solid rgba(159, 216, 1, 0.35);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.fa-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.fa-ic { font-size: 1.5rem; line-height: 1; filter: drop-shadow(0 0 8px rgba(159, 216, 1, 0.45)); }
.fa-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.fa-txt b {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  color: var(--text);
}
.fa-txt i {
  font-style: normal;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--primary);
}
.fa-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(159, 216, 1, 0.18);
  border-color: rgba(159, 216, 1, 0.7);
}
.fa-flappy { border-color: rgba(56, 224, 255, 0.35); }
.fa-flappy .fa-ic { filter: drop-shadow(0 0 8px rgba(56, 224, 255, 0.45)); }
.fa-flappy .fa-txt i { color: #38e0ff; }
.fa-flappy:hover {
  box-shadow: 0 10px 32px rgba(56, 224, 255, 0.18);
  border-color: rgba(56, 224, 255, 0.7);
}

/* ── contact → footer: one continuous closing band ── */
.contact-section { padding-bottom: clamp(3rem, 6vh, 4.5rem); }
footer {
  border-top: 0;
  background: linear-gradient(180deg, rgba(11, 13, 27, 0.35), rgba(11, 13, 27, 0.96) 45%);
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(680px, 82%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(159, 216, 1, 0.45), transparent);
}

/* copy-email button matches the contact-secondary links */
.cs-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.7rem 1.15rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sec);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.cs-copy .icon { width: 1rem; height: 1rem; }
.cs-copy:hover { color: var(--text); border-color: rgba(159, 216, 1, 0.5); }
.cs-copy.copied { color: var(--primary); border-color: rgba(159, 216, 1, 0.7); background: rgba(159, 216, 1, 0.08); }

@media (max-width: 900px) {
  .btc-head { min-height: 0; }
  .fa-row { width: 100%; }
  .fa-card { flex: 1 1 100%; justify-content: center; }
}


/* ================================================================
   v6.0 - nav PDF button as a terminal "file chip" + pulse memory
   The nav had TWO competing green buttons; the PDF link now reads
   as the actual document (monospace chip) and the Play CTA owns
   the color. html.flight-played (set by initPlayPulseMemory once
   flight mode has been entered) silences the glow pulse.
   ================================================================ */
.nav-cta {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-sec);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.78rem;
  padding: 0.45rem 0.95rem;
}
.nav-cta:hover {
  color: var(--text);
  border-color: rgba(159, 216, 1, 0.6);
  background: rgba(159, 216, 1, 0.07);
  box-shadow: 0 0 18px rgba(159, 216, 1, 0.18);
  transform: translateY(-1px);
}
.gm-cta.gm-resume {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  box-shadow: none;
}
html.flight-played #flight-toggle,
html.flight-played .manifesto-cta .flight-trigger { animation: none; }


/* ================================================================
   v6.1 - Beyond-the-Code ghost 05 restored to FULL size (same clamp
   as every other section), centered over the tile and overlapping
   the title text. .btc-head becomes its own stacking context so the
   numeral can sit at z-index -1: behind the eyebrow/title but still
   ABOVE the tile background (painting order: bg -> negative-z
   children -> content). The flanks' slide is delayed via
   data-flowstart=0.55 on the section (starts once half-entered).
   ================================================================ */
.btc-head { z-index: 0; }
.content-section .btc-head[data-index]::before {
  top: 0.4rem;
  left: 50%;
  z-index: -1;
  font-size: clamp(4.5rem, 13vw, 9.5rem);
  opacity: 1;
  transform: translateX(-50%) translateY(calc((1 - var(--secp, 1)) * 7vh));
}


/* ================================================================
   v6.2 - boot skip hint
   ================================================================ */
#boot-skip {
  margin-top: 1.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(233, 238, 247, 0.4);
  opacity: 0;
  animation: bootSkipIn 0.5s ease 1.4s forwards;
  cursor: default;
  user-select: none;
}
@keyframes bootSkipIn { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #boot-skip { animation: none; opacity: 1; }
}
