/* ═══════════════════════════════════════════════════════════════
   JAMES GUEST — jamesguest.io
   Retrofuturism × Neumorphism Design System
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
  --bg:       #0b1e2a;
  --surface:  #0f2535;
  --raised:   #133040;
  --shd-d:    #06121a;
  --shd-l:    #183548;

  --cyan:     #00e5ff;
  --magenta:  #ff0066;
  --purple:   #9933ff;
  --gold:     #ffd700;
  --green:    #00ff88;

  --lcfc-blu: #003090;
  --lcfc-gld: #fdbe11;

  --text:     #dde6ff;
  --text-dim: #7a8aaa;
  --text-mid: #9aaac8;

  --font-h:   'Orbitron', sans-serif;
  --font-m:   'Share Tech Mono', monospace;
  --font-b:   'Exo 2', sans-serif;

  --r:        16px;
  --r-sm:     8px;
  --pad-sec:  100px;
  --max-w:    1200px;
}

/* ─── 2. RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 20% 10%, rgba(0,120,140,.18) 0%, transparent 55%),
                    radial-gradient(ellipse at 80% 80%, rgba(0,80,110,.14) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Scanlines — subtle CRT effect */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.018) 2px,
    rgba(0,0,0,.018) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* Vignette */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
  z-index: 9997;
}

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── 3. TYPOGRAPHY HELPERS ──────────────────────────────────────── */
.mono   { font-family: var(--font-m); font-size: .85em; letter-spacing: .05em; }
.cyan   { color: var(--cyan); }
.magenta{ color: var(--magenta); }
.purple { color: var(--purple); }
.gold   { color: var(--gold); }
.green  { color: var(--green); }

/* ─── 4. LAYOUT ─────────────────────────────────────────────────── */
.container    { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section      { padding: var(--pad-sec) 0; }
.section-header { margin-bottom: 56px; }

.section-num {
  font-size: .72rem;
  color: var(--cyan);
  opacity: .55;
  letter-spacing: .18em;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--text);
}

.dot { color: var(--cyan); }

.section-sub {
  font-size: .78rem;
  color: var(--text-dim);
  letter-spacing: .14em;
  margin-top: 10px;
}

.sub-label {
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: .18em;
  margin-bottom: 14px;
}

/* ─── 5. NEUMORPHIC COMPONENTS ───────────────────────────────────── */
.neu-card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: 8px 8px 20px var(--shd-d), -8px -8px 20px var(--shd-l);
}

.neu-inset {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: inset 8px 8px 20px var(--shd-d), inset -8px -8px 20px var(--shd-l);
}

.neu-btn {
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 10px 22px;
  color: var(--text);
  font-family: var(--font-m);
  font-size: .82rem;
  letter-spacing: .1em;
  box-shadow: 4px 4px 10px var(--shd-d), -4px -4px 10px var(--shd-l);
  transition: box-shadow .15s, color .15s;
}
.neu-btn:hover {
  color: var(--cyan);
  box-shadow: 5px 5px 14px var(--shd-d), -5px -5px 14px var(--shd-l), 0 0 16px rgba(0,229,255,.15);
}
.neu-btn:active {
  box-shadow: inset 3px 3px 8px var(--shd-d), inset -3px -3px 8px var(--shd-l);
}

/* ─── 6. NAVIGATION ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 44px;
  transition: all .3s;
}
.nav.scrolled {
  background: rgba(13,13,31,.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 44px;
  box-shadow: 0 2px 24px rgba(0,0,0,.5), 0 0 40px rgba(0,229,255,.04);
}

.nav-brand {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 900;
}
.brand-cursor {
  color: var(--cyan);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.nav-links { display: flex; gap: 36px; }
.nav-link {
  font-family: var(--font-m);
  font-size: .73rem;
  letter-spacing: .16em;
  color: var(--text-dim);
  transition: color .2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  transition: width .2s;
}
.nav-link:hover, .nav-link.active { color: var(--cyan); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; z-index: 1001; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: all .3s; border-radius: 1px; }

/* ─── 7. HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-init {
  font-size: .82rem;
  color: var(--cyan);
  letter-spacing: .18em;
  margin-bottom: 28px;
  min-height: 1.4em;
}

.hero-name {
  font-family: var(--font-h);
  font-size: clamp(2.8rem, 10vw, 7.5rem);
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 22px;
  position: relative;
}

.hero-name-inner { display: inline-block; position: relative; }

/* Glitch pseudo-elements */
.hero-name-inner::before,
.hero-name-inner::after {
  content: 'JAMES GUEST';
  position: absolute;
  top: 0; left: 0; right: 0;
}
.hero-name-inner::before {
  color: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%);
  animation: glitch-a 4s infinite steps(1);
}
.hero-name-inner::after {
  color: var(--magenta);
  clip-path: polygon(0 62%, 100% 62%, 100% 100%, 0 100%);
  animation: glitch-b 4s infinite steps(1);
}

@keyframes glitch-a {
  0%,88%,100%   { transform: none; opacity: 0; }
  89%           { transform: translateX(-4px); opacity: .9; }
  90%           { transform: translateX(4px);  opacity: .7; }
  91%           { transform: none; opacity: 0; }
}
@keyframes glitch-b {
  0%,91%,100%   { transform: none; opacity: 0; }
  92%           { transform: translateX(4px); opacity: .9; }
  93%           { transform: translateX(-3px); opacity: .6; }
  94%           { transform: none; opacity: 0; }
}

.hero-rule {
  color: var(--cyan);
  font-size: .58rem;
  letter-spacing: .04em;
  margin-bottom: 22px;
  opacity: .35;
  overflow: hidden;
}

.hero-title {
  font-family: var(--font-h);
  font-size: clamp(.78rem, 2.2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0,229,255,.55);
  margin-bottom: 10px;
}

.hero-location {
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: .22em;
  margin-bottom: 50px;
}

.hero-btns { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

.btn {
  font-family: var(--font-m);
  font-size: .82rem;
  letter-spacing: .14em;
  padding: 14px 34px;
  border-radius: var(--r-sm);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bracket { opacity: .55; transition: opacity .2s; }
.btn:hover .bracket { opacity: 1; }

.btn-primary {
  background: var(--surface);
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,.2);
  box-shadow: 5px 5px 15px var(--shd-d), -5px -5px 15px var(--shd-l), 0 0 20px rgba(0,229,255,.08);
}
.btn-primary:hover {
  border-color: rgba(0,229,255,.5);
  box-shadow: 6px 6px 20px var(--shd-d), -6px -6px 20px var(--shd-l), 0 0 30px rgba(0,229,255,.22);
}
.btn-primary:active { box-shadow: inset 4px 4px 10px var(--shd-d), inset -4px -4px 10px var(--shd-l); }

.btn-secondary {
  background: var(--surface);
  color: var(--magenta);
  border: 1px solid rgba(255,0,102,.2);
  box-shadow: 5px 5px 15px var(--shd-d), -5px -5px 15px var(--shd-l), 0 0 20px rgba(255,0,102,.07);
}
.btn-secondary:hover {
  border-color: rgba(255,0,102,.5);
  box-shadow: 6px 6px 20px var(--shd-d), -6px -6px 20px var(--shd-l), 0 0 30px rgba(255,0,102,.22);
}
.btn-secondary:active { box-shadow: inset 4px 4px 10px var(--shd-d), inset -4px -4px 10px var(--shd-l); }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: scroll-pulse 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-grow 2s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%,100%{opacity:1} 50%{opacity:.25} }
@keyframes scroll-grow  {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-scroll span { font-size: .62rem; color: var(--text-dim); letter-spacing: .22em; }

/* ─── 8. ABOUT ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.about-bio {
  padding: 38px;
  position: relative;
  overflow: hidden;
}
.about-bio::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--cyan), var(--purple));
}
.bio-tag {
  font-size: .68rem;
  color: var(--cyan);
  letter-spacing: .2em;
  opacity: .65;
  margin-bottom: 18px;
}
.about-bio p { margin-bottom: 14px; color: var(--text); line-height: 1.85; }
.about-bio p:last-child { margin-bottom: 0; }
.about-bio strong { font-weight: 600; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card { padding: 26px 18px; text-align: center; }
.stat-num  { font-family: var(--font-h); font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.stat-label{ font-size: .65rem; color: var(--text-dim); letter-spacing: .16em; }

/* ─── 9. SKILLS ─────────────────────────────────────────────────── */
.skills-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: start;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag {
  font-family: var(--font-m);
  font-size: .73rem;
  letter-spacing: .07em;
  padding: 6px 14px;
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 3px 3px 8px var(--shd-d), -3px -3px 8px var(--shd-l);
  transition: transform .18s;
  cursor: default;
}
.skill-tag:hover { transform: translateY(-2px); }
.skill-tag.primary   { color: var(--cyan);     border-left: 2px solid var(--cyan); }
.skill-tag.secondary { color: var(--text-mid); border-left: 2px solid var(--text-dim); }

.radar-wrap { display: flex; justify-content: center; }

/* ─── 10. EXPERIENCE ────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; }
.tl-item  { display: grid; grid-template-columns: 40px 1fr; gap: 0 24px; }

.tl-marker { display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.tl-dot    { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--cyan); box-shadow: 0 0 10px var(--cyan); flex-shrink: 0; }
.tl-line   { flex: 1; width: 2px; background: linear-gradient(to bottom, var(--cyan), rgba(0,229,255,.08)); margin-top: 4px; }

.tl-card { padding: 28px 32px; margin-bottom: 30px; }
.tl-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; flex-wrap: wrap; gap: 8px;
}
.tl-date  { color: var(--text-dim); font-size: .72rem; letter-spacing: .1em; }
.tl-badge { color: var(--text-dim); font-size: .68rem; background: rgba(255,255,255,.04); padding: 2px 9px; border-radius: 4px; }
.tl-company { font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; letter-spacing: .05em; margin-bottom: 4px; }
.tl-role    { color: var(--text-dim); font-size: .88rem; margin-bottom: 16px; }

.tl-bullets { display: flex; flex-direction: column; gap: 8px; }
.tl-bullets li { font-size: .88rem; color: var(--text); padding-left: 16px; position: relative; line-height: 1.65; }
.tl-bullets li::before { content: '▸'; position: absolute; left: 0; color: var(--cyan); opacity: .65; }

.chip {
  display: inline-block;
  font-family: var(--font-m);
  font-size: .68rem;
  padding: 2px 9px;
  background: rgba(0,229,255,.07);
  border: 1px solid rgba(0,229,255,.2);
  border-radius: 4px;
  color: var(--cyan);
  margin: 2px 2px;
}

/* ─── 11. PROJECTS ──────────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.proj-card     { padding: 28px; transition: transform .2s; }
.proj-card:hover{ transform: translateY(-4px); }
.proj-label { font-size: .65rem; color: var(--text-dim); letter-spacing: .2em; margin-bottom: 10px; font-family: var(--font-m); }
.proj-name  { font-family: var(--font-h); font-size: 1.08rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 12px; }
.proj-desc  { font-size: .88rem; color: var(--text); line-height: 1.72; margin-bottom: 14px; }
.proj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.proj-link  { font-family: var(--font-m); font-size: .78rem; color: var(--text-dim); transition: color .2s; }
.proj-link:hover { color: var(--cyan); }
.arrow { display: inline-block; transition: transform .2s; }
.proj-link:hover .arrow { transform: translateX(4px); }

/* ─── 12. HOBBIES — SHARED ──────────────────────────────────────── */
.hobby-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.tab-btn {
  font-family: var(--font-m);
  font-size: .73rem;
  letter-spacing: .1em;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  color: var(--text-dim);
  background: var(--surface);
  box-shadow: 4px 4px 10px var(--shd-d), -4px -4px 10px var(--shd-l);
  transition: all .2s;
  display: flex; align-items: center; gap: 8px;
}
.tab-icon  { font-size: .95rem; }
.tab-btn:hover { color: var(--cyan); box-shadow: 5px 5px 13px var(--shd-d), -5px -5px 13px var(--shd-l), 0 0 14px rgba(0,229,255,.1); }
.tab-btn.active { color: var(--cyan); box-shadow: inset 4px 4px 10px var(--shd-d), inset -4px -4px 10px var(--shd-l); }

.hobby-panel { display: none; }
.hobby-panel.active { display: block; }

/* ─── 12a. SYNTH SEQUENCER ─────────────────────────────────────── */
.synth-wrap { padding: 32px; }
.synth-brand {
  font-size: .68rem; color: var(--text-dim); letter-spacing: .22em;
}

.lcd {
  display: inline-flex; align-items: center; gap: 12px;
  background: #040804; border: 1px solid #142014;
  border-radius: 6px; padding: 8px 18px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,.9);
}
.lcd-lbl { font-family: var(--font-m); font-size: .62rem; color: #1e4a1e; letter-spacing: .14em; }
.lcd-val { font-family: var(--font-m); font-size: 1.7rem; color: #00ff41; text-shadow: 0 0 10px #00ff41; letter-spacing: .04em; min-width: 3ch; text-align: right; }

.synth-play-btn { color: var(--text) !important; }
.synth-play-btn.playing { color: var(--cyan) !important; box-shadow: inset 3px 3px 8px var(--shd-d), inset -3px -3px 8px var(--shd-l), 0 0 16px rgba(0,229,255,.2) !important; }

.neu-slider {
  -webkit-appearance: none; appearance: none;
  width: 140px; height: 4px; border-radius: 2px;
  background: var(--shd-d); box-shadow: inset 2px 2px 5px var(--shd-d), inset -2px -2px 5px var(--shd-l);
  outline: none;
}
.neu-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface);
  box-shadow: 2px 2px 6px var(--shd-d), -2px -2px 6px var(--shd-l);
  cursor: pointer;
  border: 2px solid var(--cyan);
}

.seq-grid   { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; }
.seq-row    { display: flex; align-items: center; gap: 8px; }
.row-label  { font-family: var(--font-m); font-size: .63rem; letter-spacing: .1em; color: var(--text-dim); width: 46px; text-align: right; flex-shrink: 0; }
.seq-steps  { display: flex; gap: 5px; }

.seq-step {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 3px 3px 7px var(--shd-d), -3px -3px 7px var(--shd-l);
  transition: all .1s;
  flex-shrink: 0;
  border: 1px solid transparent;
}
/* Beat-group spacing every 4 steps */
.seq-steps .seq-step:nth-child(4n+1) { margin-left: 7px; }
.seq-step:first-child { margin-left: 0 !important; }

.seq-step.on-kick  { background: rgba(0,229,255,.18); border-color: rgba(0,229,255,.45); box-shadow: inset 2px 2px 5px rgba(0,0,0,.5), 0 0 10px rgba(0,229,255,.4); }
.seq-step.on-snare { background: rgba(255,0,102,.18); border-color: rgba(255,0,102,.45); box-shadow: inset 2px 2px 5px rgba(0,0,0,.5), 0 0 10px rgba(255,0,102,.4); }
.seq-step.on-hat   { background: rgba(255,215,0,.18);  border-color: rgba(255,215,0,.45);  box-shadow: inset 2px 2px 5px rgba(0,0,0,.5), 0 0 10px rgba(255,215,0,.4); }
.seq-step.on-synth { background: rgba(153,51,255,.18); border-color: rgba(153,51,255,.45); box-shadow: inset 2px 2px 5px rgba(0,0,0,.5), 0 0 10px rgba(153,51,255,.4); }
.seq-step.current  { outline: 2px solid rgba(255,255,255,.6); outline-offset: -2px; }

.step-dots { display: flex; gap: 5px; padding-left: 54px; padding-bottom: 4px; }
.step-dot  { width: 36px; height: 4px; border-radius: 2px; background: var(--shd-d); transition: background .05s, box-shadow .05s; flex-shrink: 0; }
.step-dots .step-dot:nth-child(4n+1) { margin-left: 7px; }
.step-dots .step-dot:first-child { margin-left: 0 !important; }
.step-dot.current { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ─── 12b. TENNIS ───────────────────────────────────────────────── */
.tennis-wrap { padding: 24px; }
.tennis-hud { display: flex; gap: 28px; align-items: center; margin-bottom: 14px; font-size: .78rem; color: var(--text-dim); }
.tennis-hint { margin-left: auto; opacity: .6; }
#tennis-canvas { width: 100%; border-radius: 8px; cursor: crosshair; display: block; background: #081408; }

/* ─── 12c. LCFC ─────────────────────────────────────────────────── */
.lcfc-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
}

.lcfc-fox-area { display: flex; justify-content: center; }
.lcfc-fox { position: relative; max-width: 240px; width: 100%; }
.fox-svg {
  width: 100%;
  animation: fox-float 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(0,48,144,.6));
}
@keyframes fox-float {
  0%,100% { transform: scale(1) translateY(0); }
  50%     { transform: scale(1.03) translateY(-6px); }
}
.lcfc-particles { position: absolute; inset: 0; pointer-events: none; width: 100%; height: 100%; }

.lcfc-content { display: flex; flex-direction: column; gap: 18px; }
.lcfc-motto {
  font-family: var(--font-h);
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--lcfc-gld);
  text-shadow: 0 0 24px rgba(253,190,17,.5);
  line-height: 1.2;
}
.lcfc-tag { font-size: .65rem; color: var(--text-dim); letter-spacing: .2em; }
.lcfc-quote {
  font-style: italic;
  color: var(--text-dim);
  font-size: .88rem;
  border-left: 3px solid var(--lcfc-gld);
  padding-left: 16px;
  line-height: 1.65;
}
.lcfc-goal-btn {
  align-self: flex-start;
  font-size: .95rem !important;
  padding: 12px 26px !important;
  color: var(--lcfc-gld) !important;
  border: 1px solid rgba(253,190,17,.3);
}
.lcfc-goal-btn:hover { box-shadow: 5px 5px 13px var(--shd-d), -5px -5px 13px var(--shd-l), 0 0 20px rgba(253,190,17,.3) !important; border-color: rgba(253,190,17,.7) !important; }

/* ─── 12d. SNAKE GAME ───────────────────────────────────────────── */
.gaming-wrap { padding: 24px; }
.snake-hud { display: flex; gap: 32px; margin-bottom: 14px; font-size: .78rem; color: var(--text-dim); }
.snake-container { position: relative; display: flex; justify-content: center; }
#snake-canvas { border-radius: 8px; display: block; max-width: 100%; }
.snake-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,13,31,.88);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.snake-overlay.hidden { display: none; }
.snake-overlay-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.game-title   { font-family: var(--font-h); font-size: 1.8rem; color: var(--green); text-shadow: 0 0 20px var(--green); letter-spacing: .1em; }
.game-sub     { font-size: .78rem; color: var(--text-dim); letter-spacing: .1em; }
.snake-start-btn { color: var(--green) !important; border: 1px solid rgba(0,255,136,.3); }
.game-controls{ font-size: .68rem; color: var(--text-dim); letter-spacing: .1em; }

/* ─── 12e. AVIATION RADAR ───────────────────────────────────────── */
.aviation-wrap { padding: 24px; }
.radar-layout  { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
#aviation-radar {
  border-radius: 50%;
  background: #020a02;
  box-shadow: 0 0 0 2px #0a1f0a, 0 0 0 4px #050f05, 0 0 30px rgba(0,255,60,.14), inset 0 0 40px rgba(0,0,0,.7);
}
.radar-readout  { padding-top: 10px; }
.readout-lbl    { font-size: .65rem; color: var(--text-dim); letter-spacing: .2em; margin-bottom: 12px; font-family: var(--font-m); }
.readout-block  { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.rr { display: grid; grid-template-columns: 86px 1fr; gap: 10px; font-size: .78rem; }
.rk { color: var(--text-dim); letter-spacing: .1em; }
.rv { color: var(--text); font-size: .88rem; }
.radar-hint { font-size: .65rem; color: var(--text-dim); letter-spacing: .1em; margin-top: 12px; opacity: .55; font-family: var(--font-m); }

/* ─── 13. CONTACT ───────────────────────────────────────────────── */
.contact-intro { font-size: 1.08rem; line-height: 1.82; margin-bottom: 40px; max-width: 640px; }
.contact-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.contact-card  { padding: 28px; display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: 10px 10px 25px var(--shd-d), -10px -10px 25px var(--shd-l), 0 0 20px rgba(0,229,255,.08); }
.cc-icon  { font-size: 1.4rem; line-height: 1; }
.cc-label { font-size: .64rem; color: var(--text-dim); letter-spacing: .16em; font-family: var(--font-m); }
.cc-val   { font-size: .88rem; color: var(--text); word-break: break-all; }

/* ─── 14. FOOTER ────────────────────────────────────────────────── */
.footer { padding: 40px; border-top: 1px solid rgba(255,255,255,.04); text-align: center; }
.footer-line {
  font-size: .68rem; color: var(--text-dim); letter-spacing: .16em;
  display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-sep    { color: var(--cyan); opacity: .35; }
.footer-cursor { margin-top: 12px; font-size: .8rem; color: var(--cyan); opacity: .35; }

/* ─── 15. SCROLL REVEAL ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ─── 16. THEME TOGGLE ──────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: .72rem;
  letter-spacing: .12em;
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--gold);
  background: var(--surface);
  border: 1px solid rgba(255,215,0,.25);
  box-shadow: 4px 4px 12px var(--shd-d), -4px -4px 12px var(--shd-l), 0 0 14px rgba(255,215,0,.1);
  transition: all .2s;
  margin-right: 4px;
  white-space: nowrap;
}
.theme-toggle .t-icon { font-size: 1rem; line-height: 1; }
.theme-toggle .t-label { display: none; }
@media (min-width: 900px) { .theme-toggle .t-label { display: inline; } }
.theme-toggle:hover {
  border-color: rgba(255,215,0,.6);
  box-shadow: 5px 5px 15px var(--shd-d), -5px -5px 15px var(--shd-l), 0 0 20px rgba(255,215,0,.25);
}
.theme-toggle:active { box-shadow: inset 3px 3px 8px var(--shd-d), inset -3px -3px 8px var(--shd-l); }

/* Light-mode nav scrolled fix — don't go dark */
[data-theme="light"] .nav.scrolled {
  background: rgba(219,227,236,.95);
  box-shadow: 0 2px 24px rgba(0,0,0,.10), 0 0 40px rgba(0,80,140,.06);
}

/* LCFC score board */
.lcfc-score {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-h);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.score-team { font-size: .75rem; color: var(--text-dim); font-family: var(--font-m); letter-spacing: .12em; margin-bottom: 8px; }
.score-home { color: var(--lcfc-gld); text-shadow: 0 0 14px rgba(253,190,17,.5); min-width: 2ch; text-align: right; }
.score-sep  { color: var(--text-dim); padding: 0 10px; font-weight: 400; }
.score-away { color: var(--text-mid); min-width: 2ch; }

/* ─── 17. OPEN SOURCE CONTRIB CARD ─────────────────────────────── */
.proj-card--os { grid-column: span 1; }

.os-contribs { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

.os-contrib-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--bg);
  box-shadow: inset 3px 3px 8px var(--shd-d), inset -3px -3px 8px var(--shd-l);
  transition: all .2s;
  text-decoration: none;
}
.os-contrib-link:hover { box-shadow: inset 4px 4px 10px var(--shd-d), inset -4px -4px 10px var(--shd-l), 0 0 14px rgba(0,229,255,.1); }
.os-contrib-link:hover .arrow { transform: translateX(4px); color: var(--cyan); }

.os-icon { font-size: 1rem; color: var(--cyan); flex-shrink: 0; }
.os-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.os-name { font-size: .88rem; color: var(--text); font-family: var(--font-m); letter-spacing: .04em; }
.os-desc { font-size: .7rem; color: var(--text-dim); }
.os-contrib-link .arrow { color: var(--text-dim); transition: all .2s; flex-shrink: 0; }

/* ─── 18. SYNTH HEADER RESTRUCTURE ─────────────────────────────── */
.synth-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.synth-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── 19. LIGHT MODE ────────────────────────────────────────────── */
/* Shadows derived from bg hue (#dbe3ec), not pure white/grey,
   so neumorphism blends rather than jarring.                       */
[data-theme="light"] {
  --bg:       #dbe3ec;
  --surface:  #e1e9f1;
  --raised:   #e7eff7;
  --shd-d:    #b4bcc6;
  --shd-l:    #eef5fc;
  --text:     #182030;
  --text-dim: #546070;
  --text-mid: #3e5060;
  --cyan:     #006e9e;
  --magenta:  #bb003d;
  --purple:   #6a1fb8;
  --gold:     #a07800;
  --green:    #006638;
}

[data-theme="light"] body {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 20% 10%, rgba(0,110,150,.10) 0%, transparent 55%),
                    radial-gradient(ellipse at 80% 80%, rgba(0,80,130,.08) 0%, transparent 50%);
}

[data-theme="light"] body::after {
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,50,.01) 2px, rgba(0,0,50,.01) 4px
  );
}

[data-theme="light"] body::before {
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,30,.08) 100%);
}

/* Hero: light gradient instead of dark star field */
[data-theme="light"] .hero {
  background: linear-gradient(155deg, #cdd8e4 0%, #dbe3ec 50%, #c9d4e2 100%);
}
[data-theme="light"] #hero-canvas { opacity: .18; filter: invert(1) hue-rotate(180deg); }
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0,40,160,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,40,160,.04) 1px, transparent 1px);
}
[data-theme="light"] .hero-name { color: var(--text); }
[data-theme="light"] .hero-name-inner::before { color: rgba(0,100,180,.55); }
[data-theme="light"] .hero-name-inner::after  { color: rgba(180,0,70,.45); }
[data-theme="light"] .hero-title { text-shadow: 0 0 20px rgba(0,100,180,.35); }

/* LCD always stays dark — it's hardware */
[data-theme="light"] .lcd { background: #040804; border-color: #142014; }
[data-theme="light"] .lcd-lbl { color: #1e4a1e; }

/* Snake and gaming overlay */
[data-theme="light"] .snake-overlay { background: rgba(200,204,230,.92); }
[data-theme="light"] .game-title { color: #007744; text-shadow: 0 0 16px rgba(0,120,68,.4); }
[data-theme="light"] .snake-start-btn { color: #007744 !important; border-color: rgba(0,120,68,.3); }

/* LCFC fox: keep brand colours */
[data-theme="light"] .lcfc-wrap { background: var(--surface); }

/* ─── 20. PHOSPHOR ICON SIZING ──────────────────────────────────── */
.stat-num .ph       { font-size: 2rem; }
.lcfc-goal-btn .ph  { font-size: 1em; vertical-align: middle; margin-right: 4px; }
.t-icon .ph         { font-size: 1.05rem; vertical-align: middle; }

/* ─── 20b. SNAKE D-PAD (touch) ─────────────────────────────────── */
.snake-dpad {
  display: none;
  grid-template-columns: repeat(3, 52px);
  grid-template-rows:    repeat(3, 52px);
  gap: 6px;
  margin: 18px auto 0;
  width: fit-content;
}
/* Show on touch-primary devices */
@media (hover: none), (max-width: 600px) {
  .snake-dpad { display: grid; }
}
.dpad-btn {
  background: var(--surface);
  box-shadow: 3px 3px 8px var(--shd-d), -3px -3px 8px var(--shd-l);
  border: none; border-radius: 8px;
  color: var(--text); font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .1s;
  -webkit-tap-highlight-color: transparent;
}
.dpad-btn:active {
  box-shadow: inset 2px 2px 6px var(--shd-d), inset -2px -2px 6px var(--shd-l);
}
.dpad-btn[data-dir="up"]    { grid-column: 2; grid-row: 1; }
.dpad-btn[data-dir="left"]  { grid-column: 1; grid-row: 2; }
.dpad-btn[data-dir="right"] { grid-column: 3; grid-row: 2; }
.dpad-btn[data-dir="down"]  { grid-column: 2; grid-row: 3; }

/* ─── 21. RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid   { grid-template-columns: 1fr; }
  .skills-layout{ grid-template-columns: 1fr; }
  .lcfc-wrap    { grid-template-columns: 1fr; text-align: center; }
  .lcfc-goal-btn{ align-self: center !important; }
}

@media (max-width: 768px) {
  :root { --pad-sec: 64px; }

  .nav { padding: 16px 22px; }
  .nav.scrolled { padding: 12px 22px; }

  .nav-links {
    display: none;
    position: fixed; inset: 0;
    background: rgba(13,13,31,.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 42px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: .95rem; letter-spacing: .2em; }
  .nav-toggle { display: flex; }

  .container  { padding: 0 20px; }
  .hero-btns  { flex-direction: column; align-items: center; }
  .tl-item    { grid-template-columns: 22px 1fr; gap: 0 14px; }
  .tl-card    { padding: 20px; }
  .radar-layout { grid-template-columns: 1fr; justify-items: center; }
  .about-stats  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .seq-step { width: 26px; height: 26px; border-radius: 4px; }
  .step-dot  { width: 26px; }
  .seq-steps .seq-step:nth-child(4n+1) { margin-left: 5px; }
  .step-dots .step-dot:nth-child(4n+1) { margin-left: 5px; }
  .synth-wrap { padding: 16px; }
  .about-stats { grid-template-columns: 1fr; }
}
