/* ============================================
   SHASHI KANTH G S — PORTFOLIO
   Flight Deck / Glass Cockpit
   ============================================ */

/* ---- TOKENS ---- */
:root {
  --amber: #ffb000;
  --amber-light: #ffcb52;
  --amber-dim: rgba(255,176,0,0.12);
  --amber-border: rgba(255,176,0,0.28);
  --cyan: #4dd0e1;
  --cyan-light: #8be9f2;
  --cyan-dim: rgba(77,208,225,0.12);
  --cyan-border: rgba(77,208,225,0.3);
  --green: #4ade80;
  --bg: #05070a;
  --bg-2: #090c11;
  --bg-3: #0d1218;
  --bg-card: rgba(255,255,255,0.025);
  --text: #e6ecf2;
  --text-muted: #7c8896;
  --text-dim: #64707c;
  --font-sans: "Space Grotesk", sans-serif;
  --font-display: "Orbitron", "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 10px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
  --nav-h: 76px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: none; border: none; background: none; font-family: inherit; }
.ext-icon {
  display: inline-block; width: 0.7em; height: 0.7em;
  margin-left: 0.28em; vertical-align: 0.02em;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.gh-icon {
  display: inline-block; width: 0.85em; height: 0.85em;
  margin-right: 0.35em; vertical-align: -0.12em;
  fill: currentColor; flex-shrink: 0;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 3px; }

/* ---- CRT / SCANLINE OVERLAY ---- */
.crt-overlay {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 3px),
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.45) 100%);
  mix-blend-mode: normal;
}

/* ---- CURSOR ---- */
.cursor {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 4px; height: 4px;
  background: var(--amber);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  top: 0; left: 0;
}
.cursor-ring {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 26px; height: 26px;
  transform: translate(-50%, -50%);
  top: 0; left: 0;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s, opacity 0.2s;
  border: 1px solid var(--amber-border);
  border-radius: 50%;
}
.cursor-ring::before, .cursor-ring::after {
  content: ""; position: absolute; background: var(--amber-border);
}
.cursor-ring::before { top: 50%; left: -6px; width: 4px; height: 1px; transform: translateY(-50%); }
.cursor-ring::after { top: -6px; left: 50%; width: 1px; height: 4px; transform: translateX(-50%); }
body.cursor-hover .cursor { background: var(--cyan); width: 5px; height: 5px; }
body.cursor-hover .cursor-ring { width: 42px; height: 42px; border-color: var(--cyan); }

/* ---- HUD CORNER READOUTS ---- */
.hud-corner {
  position: fixed; bottom: 1.6rem; z-index: 500; pointer-events: none;
  display: flex; align-items: baseline; gap: 0.35rem;
  font-family: var(--font-mono); letter-spacing: 0.08em;
  color: var(--text-dim); opacity: 0.85;
  padding: 0.4rem 0.7rem; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px; background: rgba(5,7,10,0.5); backdrop-filter: blur(6px);
}
.hud-corner-left { left: 1.6rem; }
.hud-corner-right { right: 1.6rem; }
.hud-corner-label { font-size: 0.6rem; color: var(--amber); }
.hud-corner-val { font-size: 0.78rem; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 3.2em; display: inline-block; }
.hud-corner-right .hud-corner-val { min-width: 2.2em; }
.hud-corner-unit { font-size: 0.6rem; color: var(--text-dim); }

/* ---- LOADER ---- */
.loader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.loader.hidden { opacity: 0; pointer-events: none; transform: translateY(-8px); }
.loader-inner { text-align: center; width: 260px; }
.loader-tag {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800;
  color: var(--amber); letter-spacing: 0.15em;
  margin-bottom: 1.4rem;
  animation: ldpulse 1.4s ease-in-out infinite;
}
@keyframes ldpulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.loader-line {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  color: var(--text-muted); margin-bottom: 1rem; text-transform: uppercase;
}
.loader-bar { width: 100%; height: 2px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.loader-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--amber), var(--cyan)); transition: width 0.1s linear; }
.loader-pct { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); margin-top: 0.6rem; letter-spacing: 0.1em; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled { background: rgba(5,7,10,0.88); backdrop-filter: blur(16px); border-color: rgba(255,255,255,0.06); }
.nav-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.nav-logo-tag {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  letter-spacing: 0.08em; color: var(--text); transition: color 0.3s;
  border: 1px solid var(--amber-border); border-radius: 4px; padding: 0.15rem 0.5rem;
}
.nav-logo:hover .nav-logo-tag { color: var(--amber); border-color: var(--amber); }
.nav-links { display: flex; gap: 2rem; }
.nav-link {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted); position: relative; transition: color 0.3s;
}
.nav-wpt { font-family: var(--font-mono); font-size: 0.65rem; color: var(--amber); }
.nav-link::after {
  content: ""; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: var(--amber);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--amber); }
.nav-link.active .nav-wpt { color: var(--cyan); }
.nav-right { display: flex; align-items: center; gap: 1.2rem; }
.nav-clock {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--text-dim); font-variant-numeric: tabular-nums;
}
.nav-github {
  font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.3s;
}
.nav-github:hover { color: var(--amber); }
.nav-cta {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--amber-border);
  border-radius: 4px;
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--amber);
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--amber); color: var(--bg); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 22px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.2rem; opacity: 0; pointer-events: none;
  transform: translateY(-16px); transition: all 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; transform: none; }
.mobile-link { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-muted); transition: color 0.3s; }
.mobile-link:hover { color: var(--amber); }

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
#radar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 55% at 72% 38%, rgba(255,176,0,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 28% 72%, rgba(77,208,225,0.05) 0%, transparent 70%);
}
.hero-rings { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 560px; height: 560px; z-index: 1; opacity: 0.5; }
.hero-ring { position: absolute; border: 1px solid rgba(255,176,0,0.12); border-radius: 50%; }
.hero-ring.r1 { inset: 22%; }
.hero-ring.r2 { inset: 11%; border-color: rgba(255,176,0,0.08); }
.hero-ring.r3 { inset: 0%; border-color: rgba(255,176,0,0.05); }
.hero-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(77,208,225,0.22), transparent 22%, transparent 100%);
  animation: sweep 5s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.hero-content { position: relative; z-index: 2; padding: 0 clamp(1.5rem, 6vw, 3.2rem) 10rem; margin-left: clamp(1rem, 4vw, 6rem); max-width: 960px; }
.hero-location {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 2.2rem;
}
.location-dot {
  width: 6px; height: 6px; background: var(--amber); border-radius: 50%;
  animation: ldot 2s ease-in-out infinite;
}
@keyframes ldot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.3;transform:scale(0.6)} }
.overflow-clip { overflow: hidden; }
.hero-eyebrow {
  display: block; font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.1vw, 0.9rem);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber); padding-bottom: 0.8rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1; font-weight: 800;
  letter-spacing: -0.01em; margin-bottom: 0.15em;
  text-transform: uppercase; color: var(--text);
  overflow-wrap: normal; white-space: nowrap;
}
.hero-surname {
  display: block; font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: 700; line-height: 1;
  color: var(--amber); letter-spacing: -0.01em;
  text-transform: uppercase;
}
.amber-text { color: var(--amber); }
.hero-desc { margin: 1.6rem 0 2.5rem; }
.hero-desc p {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.85; color: var(--text-muted); max-width: 540px;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute; bottom: 3rem; left: 10%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim);
}
.scroll-line { width: 1px; height: 52px; background: linear-gradient(to bottom, var(--amber), transparent); animation: scrollpulse 2s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100%{opacity:0.25;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.15)} }
.hero-stats {
  position: absolute; bottom: 3rem; right: 10%; z-index: 2;
  display: flex; gap: 1.4rem;
}
.hero-stat { text-align: center; padding: 0.9rem 1.3rem; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--amber); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-plus { font-size: 1rem; color: var(--amber); }
.stat-label { display: block; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-top: 0.4rem; }

/* ---- HUD FRAME (corner-bracket chrome) ---- */
.hud-frame { position: relative; }
.hud-frame::before, .hud-frame::after,
.hud-frame > .hf-tl, .hud-frame > .hf-tr, .hud-frame > .hf-bl, .hud-frame > .hf-br { content: ""; }
.hud-frame { --hf-size: 14px; }
.hud-frame::before {
  position: absolute; top: -1px; left: -1px; width: var(--hf-size); height: var(--hf-size);
  border-top: 1.5px solid var(--amber-border); border-left: 1.5px solid var(--amber-border);
}
.hud-frame::after {
  position: absolute; bottom: -1px; right: -1px; width: var(--hf-size); height: var(--hf-size);
  border-bottom: 1.5px solid var(--amber-border); border-right: 1.5px solid var(--amber-border);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center;
  padding: 0.8rem 1.8rem;
  background: var(--amber); color: var(--bg);
  border-radius: 4px; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; position: relative; overflow: hidden;
  transition: all 0.3s var(--ease);
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,176,0,0.25); }
.btn-shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.28) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform 0.5s var(--ease);
}
.btn-primary:hover .btn-shine { transform: translateX(100%); }
.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--amber-border);
  border-radius: 4px; font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); transition: all 0.3s;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

/* ---- MARQUEE ---- */
.marquee-section {
  overflow: hidden; padding: 1.2rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: var(--bg-2);
}
.marquee-track { display: flex; overflow: hidden; width: 100%; }
.marquee-content {
  display: flex; align-items: center; gap: 1.8rem;
  white-space: nowrap; flex-shrink: 0;
  animation: marquee 32s linear infinite;
  font-family: var(--font-mono); font-size: 0.72rem;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  padding-right: 1.8rem;
}
.marquee-dot { color: var(--amber); font-size: 0.45rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-lg .marquee-content {
  font-family: var(--font-display); font-size: clamp(2rem, 5.5vw, 4.5rem);
  color: rgba(255,255,255,0.035); font-weight: 700; gap: 2.5rem; text-transform: uppercase;
}

/* ---- SECTIONS ---- */
.section { padding: 8rem 0; position: relative; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 5%; }
.section-label {
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: 2rem; min-height: 1.6rem;
}
.label-line { flex: 0 0 36px; height: 1px; background: var(--amber); }

/* ---- SPLIT-FLAP BOARD ---- */
.flap-label { display: inline-flex; gap: 2px; flex-wrap: wrap; }
.flap-cell {
  display: inline-flex; align-items: center; justify-content: center;
  width: 0.95em; height: 1.35em;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0; text-transform: uppercase; color: var(--amber);
  background: var(--bg-3); border: 1px solid rgba(255,176,0,0.14); border-radius: 2px;
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
}
.flap-cell::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(0,0,0,0.5); transform: translateY(-50%);
}
.flap-cell.flap-space { background: transparent; border-color: transparent; }
.flap-cell.flip { animation: flapflip 0.12s linear; }
@keyframes flapflip { 0% { transform: rotateX(0deg); } 50% { transform: rotateX(70deg); opacity: 0.4; } 100% { transform: rotateX(0deg); } }

/* ---- REVEAL ANIMATIONS ---- */
.section-heading {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 3rem;
  letter-spacing: -0.01em;
  opacity: 0; transform: translateY(36px);
  transition: all 0.8s var(--ease);
}
.section-heading.visible { opacity: 1; transform: none; }
.section-heading em { font-style: normal; color: var(--amber); }
.reveal-up { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-up.visible { opacity: 1; transform: none; }
.reveal-fade { opacity: 0; transition: opacity 0.8s var(--ease) 0.15s; }
.reveal-fade.visible { opacity: 1; }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: all 0.6s var(--ease); }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: all 0.8s var(--ease); }
.reveal-scale.visible { opacity: 1; transform: none; }

/* ---- ABOUT / APPROACH BRIEFING ---- */
.about-section { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 6rem; align-items: center; }
.about-visual { position: relative; }
.about-avatar-frame {
  position: relative; width: 240px; height: 280px;
  border: 1px solid var(--amber-border); border-radius: var(--radius-lg);
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.avatar-scope { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.avatar-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 20%;
  border-radius: calc(var(--radius-lg) - 1px);
  display: block;
}
.avatar-letters {
  font-family: var(--font-display); font-size: 4rem; font-weight: 800;
  color: var(--amber); position: relative; z-index: 2;
}
.about-badge {
  position: absolute; z-index: 2; bottom: -2.6rem; right: -1rem; max-width: 200px;
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: var(--bg-3); border: 1px solid var(--amber-border);
  border-radius: 6px; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.02em; color: var(--amber);
  line-height: 1.5;
}
.badge-dot { width: 6px; height: 6px; margin-top: 0.4rem; background: var(--amber); border-radius: 50%; animation: ldot 2s ease-in-out infinite; flex-shrink: 0; }
.about-body { margin: 0.5rem 0 2rem; }
.about-body p { font-size: 1rem; line-height: 1.85; color: var(--text-muted); }
.about-airlines-label { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.7rem; }
.about-airlines-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.about-airlines-list span { padding: 0.3rem 0.75rem; border: 1px solid rgba(255,255,255,0.07); border-radius: 4px; font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.about-airlines-list .airline-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding-left: 0.5rem; }
.airline-logo { height: 15px; width: auto; max-width: 42px; display: block; flex-shrink: 0; border-radius: 2px; }

/* ---- EXPERIENCE / FLIGHT LOG ---- */
.experience-section { background: var(--bg); }
.timeline { position: relative; padding-left: 1.5rem; margin-top: 1rem; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--amber) 0%, rgba(255,176,0,0.08) 100%); }
.timeline-item { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 2rem; padding: 2rem 0 2rem 2rem; }
.timeline-period { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.8rem; }
.timeline-dot { position: absolute; left: -1.5rem; top: 2.4rem; width: 8px; height: 8px; background: var(--text-dim); border-radius: 50%; border: 2px solid var(--bg); transition: all 0.3s; }
.timeline-dot.active { background: var(--amber); box-shadow: 0 0 14px rgba(255,176,0,0.6); width: 10px; height: 10px; left: calc(-1.5rem - 1px); }

.exp-card {
  padding: 1.8rem 2rem; background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius-lg);
  margin-bottom: 2.5rem; transition: border-color 0.3s;
}
.exp-card:hover { border-color: var(--amber-border); }
.exp-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.exp-company { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.exp-company-legal { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0.01em; }
.exp-role { font-family: var(--font-mono); font-size: 0.8rem; color: var(--amber); letter-spacing: 0.02em; }
.exp-status { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); border: 1px solid rgba(255,255,255,0.1); border-radius: 100px; padding: 0.25rem 0.7rem; flex-shrink: 0; }
.exp-status-current { color: var(--green); border-color: rgba(74,222,128,0.35); background: rgba(74,222,128,0.08); }
.timeline-desc { font-size: 0.9rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 1.1rem; }
.timeline-skills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.timeline-skills span { padding: 0.2rem 0.65rem; border: 1px solid rgba(255,255,255,0.07); border-radius: 4px; font-size: 0.7rem; color: var(--text-dim); font-family: var(--font-mono); }

/* ---- FOCUS AREAS / SYSTEMS PANEL ---- */
.focus-section { background: var(--bg-2); }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.focus-card {
  position: relative; padding: 1.8rem 2rem 2rem;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); transition: all 0.4s var(--ease);
}
.focus-card:hover { transform: translateY(-5px); border-color: var(--amber-border); }
.focus-card.featured { border-color: var(--amber-border); background: linear-gradient(140deg, rgba(255,176,0,0.06), transparent); }
.focus-index { display: block; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.focus-badge { position: absolute; top: 1.3rem; right: 1.3rem; padding: 0.2rem 0.65rem; background: var(--amber); color: var(--bg); border-radius: 100px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.focus-badge-ip { background: var(--cyan); }
.focus-card.featured .focus-title { padding-right: 4.5rem; }
.focus-title { font-size: 1.02rem; font-weight: 600; color: var(--text); margin-bottom: 0.7rem; line-height: 1.4; }
.focus-desc { font-size: 0.865rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 1.3rem; }
.focus-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.focus-tags span { padding: 0.2rem 0.6rem; background: rgba(255,255,255,0.04); border-radius: 4px; font-size: 0.66rem; color: var(--text-dim); font-family: var(--font-mono); }

/* ---- OPEN SOURCE / MISSION LOG ---- */
.oss-section { background: var(--bg); }
.oss-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; }
.oss-header .section-heading { margin-bottom: 0; }
/* Compact expandable list — six one-line rows instead of six
   paragraph-heavy cards; tap/click a row for the full problem
   statement, tags and links. */
.oss-list { display: flex; flex-direction: column; gap: 0.6rem; }
.oss-row {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.3s;
}
.oss-row:hover, .oss-row.open { border-color: var(--amber-border); }

.oss-row-head {
  width: 100%; display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.5rem; text-align: left; color: inherit; cursor: pointer;
}
.oss-row-id { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-dim); flex-shrink: 0; }
.oss-row-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 1rem; }
.oss-row-name { font-family: var(--font-mono); font-size: 0.94rem; font-weight: 600; color: var(--text); flex-shrink: 0; }
.oss-row-hint { font-size: 0.83rem; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.oss-row-tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.03em; color: var(--amber); border: 1px solid var(--amber-border); border-radius: 100px; padding: 0.2rem 0.65rem; flex-shrink: 0; white-space: nowrap; }
.oss-row-chevron { font-size: 1.3rem; line-height: 1; color: var(--text-dim); transition: transform 0.35s var(--ease), color 0.3s; flex-shrink: 0; }
.oss-row.open .oss-row-chevron { transform: rotate(90deg); color: var(--amber); }

.oss-row-body-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.oss-row.open .oss-row-body-wrap { grid-template-rows: 1fr; }
.oss-row-body { overflow: hidden; min-height: 0; padding: 0 1.5rem; }
.oss-row-body p { font-size: 0.86rem; line-height: 1.72; color: var(--text-muted); padding-bottom: 1.2rem; }
.problem-label {
  display: inline-block; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bg); background: var(--amber); padding: 0.1rem 0.4rem;
  border-radius: 3px; margin-right: 0.5rem; vertical-align: middle;
  font-weight: 700;
}
.oss-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.oss-tags span { padding: 0.18rem 0.55rem; border: 1px solid rgba(255,255,255,0.07); border-radius: 4px; font-size: 0.67rem; color: var(--text-dim); font-family: var(--font-mono); }
.oss-links { display: flex; gap: 1.2rem; padding-bottom: 1.5rem; }
.oss-links a { font-size: 0.76rem; color: var(--text-dim); transition: color 0.2s; letter-spacing: 0.03em; font-family: var(--font-mono); }
.oss-links a:hover { color: var(--amber); }

/* ---- WRITING / TRANSMISSIONS ---- */
.writing-section { background: var(--bg-2); }
.writing-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; }
.writing-header .section-heading { margin-bottom: 0; }
.writing-list { display: flex; flex-direction: column; gap: 0; }
.writing-item {
  display: block; padding: 2.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
}
.writing-item:first-child { border-top: 1px solid rgba(255,255,255,0.05); }
.writing-item:hover { padding-left: 1rem; }
.writing-item-inner { display: grid; grid-template-columns: 340px 1fr auto; gap: 1.5rem; align-items: center; }
.writing-title { font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 600; color: var(--text); transition: color 0.3s; }
.writing-item:hover .writing-title { color: var(--amber); }
.writing-desc { font-size: 0.85rem; line-height: 1.65; color: var(--text-muted); }
.writing-arrow { font-size: 1.4rem; color: var(--text-dim); transition: all 0.3s; }
.writing-item:hover .writing-arrow { color: var(--amber); transform: translate(3px, -3px); }

/* ---- ALLSRC.DEV BRAND CHIP (matches allsrc.dev's own mark/palette) ---- */
.allsrc-chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.9rem 0.5rem 0.5rem;
  background: #201f1c; border: 1px solid rgba(140,143,255,0.32);
  border-radius: 8px;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: #aeb0ff; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s;
}
.allsrc-chip:hover { border-color: #8c8fff; background: #26241f; transform: translateY(-2px); color: #c7c9ff; }
.allsrc-chip img { width: 22px; height: 22px; border-radius: 5px; display: block; flex-shrink: 0; }
.allsrc-chip-arrow { color: #ff6b4a; font-size: 0.85rem; margin-left: 0.1rem; }
.contact-pill-val.allsrc-brand-text { font-family: var(--font-mono); color: #aeb0ff; }
.contact-pill:hover .contact-pill-val.allsrc-brand-text { color: #c7c9ff; }
.allsrc-chip-sm { padding: 0.35rem 0.7rem 0.35rem 0.35rem; font-size: 0.74rem; }
.allsrc-chip-sm img { width: 18px; height: 18px; }
.hero-credential { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin: -0.6rem 0 1.9rem; }
.hero-credential-text { font-size: 0.85rem; color: var(--text-muted); }
.hero-credential-sep { color: var(--text-dim); }
.hero-credential-link { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.85rem; color: var(--text-muted); border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s; }
.hero-credential-link:hover { color: var(--amber); border-color: var(--amber-border); }
.gh-icon-inline { margin-right: 0; }

/* ---- CONTACT / FINAL APPROACH ---- */
.contact-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 70vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.runway {
  position: absolute; left: 50%; bottom: -10%; width: 240%; height: 120%;
  transform: translateX(-50%) perspective(600px) rotateX(62deg);
  background:
    repeating-linear-gradient(to right, transparent 0 9.5%, rgba(255,176,0,0.1) 9.5% 10%, transparent 10% 19.5%),
    linear-gradient(to bottom, transparent, rgba(255,176,0,0.03));
  opacity: 0.5; pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: center; }
.contact-pre { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.8rem; }
.contact-heading {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
}
.contact-heading em { font-style: normal; color: var(--amber); }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-pill {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.1rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius-lg);
  transition: all 0.3s; background: var(--bg-card);
}
.contact-pill:hover { border-color: var(--amber-border); background: var(--amber-dim); transform: translateX(6px); }
.contact-pill-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border-radius: 8px;
  font-size: 1rem; color: var(--amber);
}
.contact-pill-icon-img { background: none; padding: 0; }
.contact-pill-icon-img img { width: 26px; height: 26px; border-radius: 6px; display: block; }
.contact-pill-label { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-family: var(--font-mono); }
.contact-pill-val { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-top: 0.15rem; }
.contact-pill:hover .contact-pill-val { color: var(--amber); }

/* ---- FOOTER ---- */
.footer { background: var(--bg); overflow: hidden; }
.footer-marquee { padding: 4rem 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding: 1.5rem 5%; border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.78rem; color: var(--text-dim);
}
.footer-name { color: var(--text); font-weight: 500; }
.footer-loc { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { display: flex; justify-content: center; }
  .timeline-item { grid-template-columns: 100px 1fr; gap: 1.5rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .writing-item-inner { grid-template-columns: 1fr auto; }
  .writing-desc { display: none; }
  .hero-rings { display: none; }
  .hud-corner { display: none; }
  .hero { flex-direction: column; align-items: stretch; padding-bottom: 2rem; }
  .hero-content { margin-left: 0; padding: 0 6% 3rem; max-width: none; width: 100%; min-width: 0; }
  .hero-stats { position: static; justify-content: flex-start; padding: 0 6% 0; gap: 1.2rem; flex-wrap: wrap; min-width: 0; margin-top: 4rem; }
  .stats-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .stats-reveal.visible { opacity: 1; transform: none; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links, .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .hero-stat { padding: 0.7rem 0.9rem; }
  .hero-scroll-hint { display: none; }
  .focus-grid { grid-template-columns: 1fr; }
  .oss-header, .writing-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .section { padding: 5rem 0; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.6rem; padding-left: 2rem; }
  .timeline-dot, .timeline-dot.active { left: -1.75rem; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
  .contact-inner { gap: 2.5rem; }
  .about-avatar-frame { width: 180px; height: auto; flex-direction: column; }
  .avatar-scope { width: 180px; height: 220px; flex-shrink: 0; }
  .about-badge { position: static; width: 100%; max-width: 220px; margin: 1.2rem 0 0; box-sizing: border-box; }

  .oss-row-hint { display: none; }
  .oss-row-head { padding: 1rem 1.1rem; gap: 0.7rem; }
  .oss-row-tag { font-size: 0.58rem; padding: 0.18rem 0.55rem; }
  .oss-row-body { padding: 0 1.1rem; }
}
@media (max-width: 480px) {
  .hero-name { font-size: clamp(2.8rem, 16vw, 4.2rem); }
  .hero-surname { font-size: clamp(2rem, 12vw, 3.2rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sweep, .badge-dot, .location-dot, .scroll-line { animation: none; }
}
@media (hover: none), (pointer: coarse) {
  body, button { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}
