/* ============================================================
   Ashwin Kulkarni — Personal Website
   Dark executive theme · Navy + Cyan accent
   ============================================================ */

/* ============================================================
   Ashwin Kulkarni — Personal Website
   TRON Lightcycle theme · Deep void + Cyan grid + Orange rivalry
   ============================================================ */

:root {
  /* Core palette — TRON Lightcycle / The Grid */
  --bg:            #02040a;          /* near-black void */
  --bg-elev:       #050a14;
  --bg-card:       #07101e;
  --bg-card-2:     #0a1726;
  --border:        rgba(0, 240, 255, 0.10);
  --border-strong: rgba(0, 240, 255, 0.28);
  --text:          #e9f6ff;
  --text-dim:      #8aa3b8;
  --text-soft:     #4a5c70;

  /* Neon accents */
  --cyan:          #00f0ff;          /* User / Sam Flynn cyan */
  --cyan-deep:     #0ad4e8;
  --cyan-glow:     rgba(0, 240, 255, 0.35);
  --cyan-glow-2:   rgba(0, 240, 255, 0.12);
  --orange:        #ff7a00;          /* CLU / antagonist orange */
  --orange-glow:   rgba(255, 122, 0, 0.35);
  --white-hot:     #d8feff;          /* hot-white core of light trails */

  /* Aliases (kept so existing rules using --accent still work) */
  --accent:        var(--cyan);
  --accent-2:      var(--cyan-deep);
  --accent-3:      var(--orange);
  --accent-glow:   var(--cyan-glow);
  --navy:          #0b4c8c;

  --max:           1200px;
  --radius:        4px;              /* TRON = sharp, not rounded */
  --radius-lg:     6px;

  /* Motion / Framer-style easings */
  --ease-out-expo:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring-soft: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-quart:   cubic-bezier(0.25, 1, 0.5, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ========== TRON background world ========== */

/* Deep void with two atmospheric "horizon" glows */
.tron-bg {
  position: fixed; inset: 0; z-index: -5;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 240, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 0%,   rgba(0, 240, 255, 0.06), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 50%,  rgba(255, 122, 0, 0.08), transparent 70%),
    var(--bg);
  pointer-events: none;
}

/* The Grid floor — perspective-tilted neon grid receding to horizon */
.tron-floor {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 60vh;
  z-index: -4;
  perspective: 700px;
  perspective-origin: 50% 0%;
  pointer-events: none;
  overflow: hidden;
}
.tron-floor__grid {
  position: absolute;
  inset: 0;
  transform-origin: 50% 0%;
  transform: rotateX(72deg) translateZ(0);
  background-image:
    linear-gradient(to right,  rgba(0, 240, 255, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.45) 1px, transparent 1px);
  background-size: 64px 64px;
  /* Fade out toward horizon */
  mask-image: linear-gradient(to top, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 100%);
  animation: tron-grid-pan 14s linear infinite;
  filter: drop-shadow(0 0 6px var(--cyan-glow));
}
@keyframes tron-grid-pan {
  from { background-position: 0 0; }
  to   { background-position: 0 64px; }
}
/* Bright neon horizon line */
.tron-floor__horizon {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--cyan) 20%,
    var(--white-hot) 50%,
    var(--cyan) 80%,
    transparent 100%);
  box-shadow:
    0 0  10px var(--cyan),
    0 0  24px var(--cyan-glow),
    0 0  60px var(--cyan-glow);
  opacity: 0.85;
}

/* Animated horizontal light trails (light-cycles) */
.tron-trails {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
  opacity: 0.55;
}
.trail {
  stroke-dasharray: 280 1660;
  animation: trail-zoom 5s linear infinite;
}
.trail--cyan   { animation-duration: 4.5s; animation-delay: 0s;    }
.trail--orange { animation-duration: 6.2s; animation-delay: -1.4s; }
.trail--cyan-2 { animation-duration: 7.8s; animation-delay: -3s;   }
@keyframes trail-zoom {
  from { stroke-dashoffset: 1940; }
  to   { stroke-dashoffset: 0;    }
}

/* CRT scanline overlay (very subtle) */
.tron-scanline {
  position: fixed; inset: 0; z-index: -2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 240, 255, 0.0) 0px,
    rgba(0, 240, 255, 0.0) 2px,
    rgba(0, 240, 255, 0.025) 3px,
    rgba(0, 240, 255, 0.0) 4px
  );
  mix-blend-mode: screen;
}

/* Film-grain noise for texture */
.tron-noise {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Legacy back-compat (the old .bg-gradient / .bg-grid are no longer in HTML) */
.bg-gradient, .bg-grid { display: none; }

/* ========== Nav (TRON HUD bar) ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(2, 4, 10, 0.85), rgba(2, 4, 10, 0.4));
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 1px 0 0 var(--cyan-glow-2), 0 8px 32px -16px var(--cyan-glow);
}
/* Bright HUD hairline at the very top */
.nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--white-hot) 50%, var(--cyan) 80%, transparent);
  box-shadow: 0 0 10px var(--cyan), 0 0 24px var(--cyan-glow);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}
.nav__dot {
  width: 8px; height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan), 0 0 28px var(--cyan-glow);
  /* Sharp diamond for TRON identity-disc feel */
  transform: rotate(45deg);
  border-radius: 0;
}
.nav__links {
  display: flex;
  gap: 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: color 180ms ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--ease-out-expo);
}
.nav__links a:hover { color: var(--cyan); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.06), rgba(0, 240, 255, 0));
  transition: all 220ms var(--ease-out-quart);
  position: relative;
  overflow: hidden;
}
.nav__cta:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow:
    inset 0 0 0 1px var(--cyan-glow-2),
    0 0 0 4px var(--cyan-glow-2),
    0 0 24px var(--cyan-glow);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav__links { display: none; }
}

/* ========== Nav right cluster (audio toggle + CTA) ========== */
.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.04), rgba(0, 240, 255, 0));
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 220ms var(--ease-out-quart);
}
.audio-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 24px -8px var(--cyan-glow);
}
.audio-toggle[aria-pressed="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--cyan-glow-2), 0 0 24px -8px var(--cyan-glow);
}
.audio-toggle__icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.audio-bar {
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
  transition: height 200ms ease;
}
.audio-toggle[aria-pressed="true"] .audio-bar {
  animation: audio-bar-pulse 900ms ease-in-out infinite;
}
.audio-toggle[aria-pressed="true"] .audio-bar:nth-child(1) { animation-delay: 0ms;   }
.audio-toggle[aria-pressed="true"] .audio-bar:nth-child(2) { animation-delay: 120ms; }
.audio-toggle[aria-pressed="true"] .audio-bar:nth-child(3) { animation-delay: 240ms; }
.audio-toggle[aria-pressed="true"] .audio-bar:nth-child(4) { animation-delay: 360ms; }
@keyframes audio-bar-pulse {
  0%, 100% { height: 3px;  }
  50%      { height: 12px; }
}
@media (max-width: 720px) {
  .audio-toggle__label { display: none; }
  .audio-toggle { padding: 9px 10px; }
}

/* ========== Scroll progress neon bar ========== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: rgba(0, 240, 255, 0.05);
}
.scroll-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--white-hot), var(--cyan));
  box-shadow: 0 0 10px var(--cyan), 0 0 24px var(--cyan-glow);
  transition: width 80ms linear;
}

/* ========== TRON light cursor ========== */
.tron-cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform;
  transform: translate3d(-100px, -100px, 0);
}
.tron-cursor__dot,
.tron-cursor__ring {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.tron-cursor__dot {
  width: 6px; height: 6px;
  background: var(--white-hot);
  box-shadow: 0 0 10px var(--cyan), 0 0 22px var(--cyan-glow);
}
.tron-cursor__ring {
  width: 36px; height: 36px;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 14px var(--cyan-glow), inset 0 0 14px var(--cyan-glow-2);
  transition: width 220ms var(--ease-spring-soft), height 220ms var(--ease-spring-soft), border-color 220ms ease;
}
.tron-cursor.is-active .tron-cursor__ring {
  width: 56px; height: 56px;
  border-color: var(--white-hot);
}
/* Hide custom cursor on touch devices */
@media (hover: none) {
  .tron-cursor { display: none; }
}

/* ========== Shared section ========== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 36px;
  position: relative;
}
/* Cyan hairline divider above each section title */
.section__header { margin-bottom: 64px; position: relative; }
.section__header::before {
  content: '';
  position: absolute;
  top: -28px;
  left: 0;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 8px var(--cyan-glow);
}

.section__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
  text-shadow: 0 0 8px var(--cyan-glow);
}

.section__title {
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 860px;
}

.gradient-text {
  /* Redefined later with animated gradient pan */
}

@media (max-width: 720px) { .section { padding: 80px 20px; } }

/* ========== Hero ========== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 170px 36px 100px;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero__name-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.hero__name-tag-line {
  width: 28px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.08), rgba(0, 240, 255, 0.02));
  backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 32px;
  box-shadow:
    inset 0 0 0 1px var(--cyan-glow-2),
    0 0 24px -8px var(--cyan-glow);
}

.pulse {
  width: 8px; height: 8px;
  background: var(--cyan);
  transform: rotate(45deg);
  box-shadow: 0 0 0 0 var(--cyan-glow);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(0, 240, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);   }
}

.hero__title {
  font-size: clamp(44px, 6.8vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  max-width: 760px;
  /* Slight glow so titles read like illuminated lightbar text */
  text-shadow: 0 0 24px rgba(0, 240, 255, 0.08);
}
.hero__title-line { display: block; }
/* Each character of the kinetic title gets staggered in via JS */
.hero__title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity 700ms var(--ease-out-expo),
    transform 800ms var(--ease-out-expo),
    filter 700ms var(--ease-out-expo);
  transition-delay: var(--ch-delay, 0ms);
}
.hero__title.is-lit .ch {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Gradient text reveals as one atomic slot — never splits, so
   background-clip: text keeps painting "AI" correctly. The
   underlying .gradient-text rules (background, clip, transparent
   fill, gradient-pan) still apply because we only added classes. */
.hero__title .ch--gradient {
  display: inline-block;
  /* Allow the drop-shadow / glow to render outside the box */
  padding: 0 0.04em;
  margin: 0 -0.04em;
}

.hero__subtitle {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.65;
}
.hero__subtitle strong { color: var(--text); font-weight: 600; }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 720px;
  margin-bottom: 44px;
  padding: 22px 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(7, 16, 30, 0.85), rgba(7, 16, 30, 0.45));
  backdrop-filter: blur(10px);
  position: relative;
  box-shadow:
    inset 0 0 0 1px var(--cyan-glow-2),
    0 0 30px -10px var(--cyan-glow);
}
/* HUD corner brackets on the meta panel */
.hero__meta::before,
.hero__meta::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 6px var(--cyan-glow);
}
.hero__meta::before { top: -1px; left: -1px;   border-right: 0; border-bottom: 0; }
.hero__meta::after  { bottom: -1px; right: -1px; border-left: 0;  border-top: 0;    }
.meta-item { text-align: left; padding: 0 16px; }
.meta-item + .meta-item { border-left: 1px solid var(--border); }
.meta-item__value {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.meta-item__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

@media (max-width: 720px) {
  .hero { padding: 130px 20px 60px; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 16px 0; padding: 20px; }
  .meta-item + .meta-item { border-left: none; }
  .meta-item:nth-child(3), .meta-item:nth-child(4) { border-top: 1px solid var(--border); padding-top: 16px; }
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 220ms var(--ease-spring-soft),
    box-shadow 240ms var(--ease-out-quart),
    background  200ms var(--ease-out-quart),
    border-color 200ms var(--ease-out-quart),
    color 200ms var(--ease-out-quart);
}
/* TRON sweep highlight that runs across the button on hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 700ms var(--ease-out-expo);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(100%); }

.btn--primary {
  background: linear-gradient(180deg, var(--cyan) 0%, var(--cyan-deep) 100%);
  color: #02040a;
  border-color: var(--cyan);
  box-shadow:
    0 0 0 1px var(--cyan),
    0 0 22px var(--cyan-glow),
    0 0 60px -10px var(--cyan-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px var(--white-hot),
    0 0 32px var(--cyan-glow),
    0 0 80px -10px var(--cyan-glow);
}
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.05), rgba(0, 240, 255, 0));
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px var(--cyan-glow-2),
    0 0 24px -8px var(--cyan-glow);
}

/* ========== About ========== */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.about__text p { color: var(--text-dim); font-size: 16px; margin-bottom: 18px; line-height: 1.7; }
.about__text p strong { color: var(--text); font-weight: 600; }

.about__tags { display: flex; flex-direction: column; gap: 28px; }
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-group__label {
  width: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.04), rgba(0, 240, 255, 0));
  color: var(--text);
  font-weight: 500;
  transition: all 200ms ease;
  text-transform: uppercase;
}
.tag:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 16px -6px var(--cyan-glow), inset 0 0 0 1px var(--cyan-glow-2);
}

@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } }

/* ========== Experience / Timeline ========== */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
/* Vertical neon rail running through the timeline.
   Positioned at left: 168px so the date column has clear
   breathing room before the rail (gap of ~24-32px between
   the end of the longest date string and the rail). */
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 168px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--cyan-glow-2) 8%, var(--cyan-glow-2) 92%, transparent);
}
.role {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  transition: background 280ms ease, padding-left 280ms var(--ease-out-quart);
  position: relative;
}
.role::before {
  /* Identity-disc node centered on the timeline rail.
     Diamond is 12px wide; rail is at left: 168px; so diamond
     left: 162px centers it on the rail (168 - 12/2 = 162). */
  content: '';
  position: absolute;
  left: 162px;
  top: 44px;
  width: 12px; height: 12px;
  background: var(--bg);
  border: 1.5px solid var(--cyan);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--cyan-glow);
  transition: box-shadow 280ms ease, background 280ms ease;
}
.role:last-child { border-bottom: 1px solid var(--border); }
.role:hover {
  background:
    linear-gradient(90deg, rgba(0, 240, 255, 0.04), transparent 50%);
}
.role:hover::before {
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan), 0 0 30px var(--cyan-glow);
}

.role__meta { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.role__when {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 8px var(--cyan-glow);
}
.role__where {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.4px;
}

.role__title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.role__body p { color: var(--text-dim); font-size: 15px; line-height: 1.65; }
.role__body p strong { color: var(--text); font-weight: 600; }

@media (max-width: 720px) {
  .role { grid-template-columns: 1fr; gap: 12px; }
  .timeline::before, .role::before { display: none; }
}

/* ========== Work / Cards ========== */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(7, 16, 30, 0.85), rgba(7, 16, 30, 0.45));
  backdrop-filter: blur(10px);
  transition:
    transform 320ms var(--ease-out-expo),
    border-color 280ms var(--ease-out-quart),
    box-shadow 320ms var(--ease-out-quart);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.04);
}
/* Light-trail sweep on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: translateX(-100%);
  transition: transform 700ms var(--ease-out-expo);
  pointer-events: none;
  box-shadow: 0 0 8px var(--cyan-glow);
}
/* HUD corner brackets */
.card::after {
  content: '';
  position: absolute;
  top: 10px; right: 10px;
  width: 14px; height: 14px;
  border: 1px solid var(--cyan-glow-2);
  border-left: 0;
  border-bottom: 0;
  transition: border-color 280ms ease;
}
.card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px var(--cyan-glow-2),
    0 18px 48px -22px rgba(0, 240, 255, 0.4),
    inset 0 0 28px rgba(0, 240, 255, 0.08);
}
.card:hover::before { transform: translateX(100%); }
.card:hover::after  { border-color: var(--cyan); }

.card__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
  text-shadow: 0 0 6px var(--cyan-glow);
}
.card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.card__desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.card__arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cyan);
  transition: transform 200ms ease, text-shadow 200ms ease;
}
.card:hover .card__arrow { transform: translateX(6px); text-shadow: 0 0 8px var(--cyan-glow); }

@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

/* ========== Press ========== */
.press { display: flex; flex-wrap: wrap; gap: 12px; }
.press__item {
  font-family: 'JetBrains Mono', monospace;
  padding: 12px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.03), transparent);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 220ms ease;
}
.press__item:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
  box-shadow: 0 0 16px -6px var(--cyan-glow);
}

/* ========== Contact ========== */
.section--contact { padding-bottom: 60px; }
.contact { max-width: 720px; }
.contact__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 12px 0 20px;
}
.contact__subtitle {
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact__links { display: flex; flex-direction: column; gap: 2px; }
.contact__link {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  transition: padding 220ms ease;
}
.contact__link:last-child { border-bottom: 1px solid var(--border); }
.contact__link:hover { padding-left: 8px; }
.contact__link-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.contact__link-value {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  transition: color 200ms ease;
}
.contact__link:hover .contact__link-value { color: var(--accent); }

@media (max-width: 600px) {
  .contact__link { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
}

/* ========== Footer ========== */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 36px 36px;
  border-top: 1px solid var(--border-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-soft);
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}

/* Soundtrack credit — gets its own full-width row at the bottom */
.footer__credit {
  flex-basis: 100%;
  text-transform: none;
  letter-spacing: 0.5px;
  font-size: 10.5px;
  color: var(--text-mute, var(--text-soft));
  opacity: 0.75;
  padding-top: 14px;
  border-top: 1px dashed var(--border, rgba(255,255,255,0.06));
  line-height: 1.7;
}
.footer__credit a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out-expo);
}
.footer__credit a:hover { border-color: var(--cyan); }
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 80px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}
.footer__name { color: var(--text-dim); font-weight: 500; }
.footer__dot { color: var(--text-soft); opacity: 0.5; }
@media (max-width: 600px) { .footer { flex-direction: column; align-items: flex-start; padding: 24px 20px 32px; } }

/* ========== Reveal on scroll (overridden below with stagger) ========== */

/* ========== Thinking section ========== */
.thinking {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.thinking__item {
  padding: 30px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(7, 16, 30, 0.85), rgba(7, 16, 30, 0.4));
  transition: all 320ms var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.04);
}
.thinking__item::before {
  /* Top neon hairline */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
  box-shadow: 0 0 8px var(--cyan-glow);
}
.thinking__item::after {
  /* HUD bottom-left bracket */
  content: '';
  position: absolute;
  bottom: 10px; left: 10px;
  width: 14px; height: 14px;
  border: 1px solid var(--cyan-glow-2);
  border-right: 0;
  border-top: 0;
  transition: border-color 280ms ease;
}
.thinking__item:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px var(--cyan-glow-2),
    0 18px 48px -22px rgba(0, 240, 255, 0.4),
    inset 0 0 28px rgba(0, 240, 255, 0.06);
}
.thinking__item:hover::after { border-color: var(--cyan); }

.thinking__number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 3px;
  margin-bottom: 18px;
  text-shadow: 0 0 8px var(--cyan-glow);
}
.thinking__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.thinking__item p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.65;
}
@media (max-width: 900px) { .thinking { grid-template-columns: 1fr; } }

/* ========== Compact role (for Tech Mahindra "started here") ========== */
.role--compact { padding: 22px 0; opacity: 0.78; }
.role--compact:hover { opacity: 1; }
.role--compact .role__title { font-size: 16px; }
.role--compact .role__body p { font-size: 14px; }

/* Role path subline */
.role__path {
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 10px;
}

/* ============================================================
   TRON Identity Disc — Portrait card
   Wide framed photo with neon corner brackets, scan sweep, and
   data-readout label. Replaces the old circular .headshot.
   ============================================================ */
.hero__portrait {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  align-self: start;
  margin-top: 8px;
}
@media (max-width: 1000px) {
  .hero__portrait { justify-self: start; max-width: 100%; }
}

.portrait__frame {
  position: relative;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow:
    inset 0 0 0 1px rgba(0, 240, 255, 0.18),
    0 0 0 1px rgba(0, 240, 255, 0.06),
    0 30px 80px -30px rgba(0, 240, 255, 0.5),
    0 0 60px -20px var(--cyan-glow);
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transition: transform 600ms var(--ease-out-expo), box-shadow 600ms var(--ease-out-expo);
}
.hero__portrait:hover .portrait__frame {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
  box-shadow:
    inset 0 0 0 1px rgba(0, 240, 255, 0.28),
    0 0 0 1px rgba(0, 240, 255, 0.12),
    0 40px 100px -30px rgba(0, 240, 255, 0.65),
    0 0 80px -20px var(--cyan-glow);
}

.portrait__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  /* Slight cyan grade so the photo lives in the TRON world */
  filter: contrast(1.05) saturate(0.85) brightness(0.95) hue-rotate(-3deg);
  transition: filter 600ms var(--ease-out-expo), transform 800ms var(--ease-out-expo);
}
.hero__portrait:hover .portrait__frame img {
  filter: contrast(1.08) saturate(1) brightness(1) hue-rotate(0deg);
  transform: scale(1.02);
}

/* Scan line that periodically sweeps down across the photo */
.portrait__sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 45%,
    rgba(0, 240, 255, 0.35) 50%,
    transparent 55%,
    transparent 100%
  );
  mix-blend-mode: screen;
  transform: translateY(-100%);
  animation: portrait-scan 5.5s ease-in-out infinite;
}
@keyframes portrait-scan {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* HUD corner brackets */
.portrait__corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  pointer-events: none;
}
.portrait__corner--tl { top: -1px;    left: -1px;    border-right: 0; border-bottom: 0; }
.portrait__corner--tr { top: -1px;    right: -1px;   border-left: 0;  border-bottom: 0; }
.portrait__corner--bl { bottom: -1px; left: -1px;    border-right: 0; border-top: 0;    }
.portrait__corner--br { bottom: -1px; right: -1px;   border-left: 0;  border-top: 0;    }

/* Data-readout label across the bottom */
.portrait__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--cyan);
  background: linear-gradient(180deg, transparent, rgba(2, 4, 10, 0.9) 60%);
  text-shadow: 0 0 8px var(--cyan-glow);
}
.portrait__loc { color: var(--text-dim); }

/* Hero vignette: now mostly decorative; let portrait/text breathe */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 30% 30%, rgba(0, 240, 255, 0.06), transparent 70%);
}
.hero > *:not(.hero__vignette) { position: relative; z-index: 1; }

/* ============================================================
   Legacy CSS classes that are no longer used in HTML.
   Hidden so any cached pages don't show ghost elements.
   ============================================================ */
.headshot, .headshot img, .headshot__fallback,
.shapes, .shape, .shape__inner,
.hero__top, .hero__top--photo,
.monogram, .hero__top-text, .hero__location { display: none !important; }

/* ============================================================
   Gradient text (TRON light-trail pan)
   ============================================================ */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--cyan) 0%,
    var(--white-hot) 50%,
    var(--cyan) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-pan 5s ease-in-out infinite;
  filter: drop-shadow(0 0 16px var(--cyan-glow));
}
@keyframes gradient-pan {
  0%, 100% { background-position:   0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ============================================================
   Reveal on scroll — staggered (Framer-Motion style)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 720ms var(--ease-out-expo),
    transform 820ms var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Accessibility
   ============================================================ */
.btn, .card, .tag, .nav__cta, .contact__link, .press__item,
.hero__portrait { cursor: pointer; }

.btn:focus-visible,
.nav__cta:focus-visible,
.card:focus-visible,
.contact__link:focus-visible,
.nav__links a:focus-visible,
.nav__brand:focus-visible,
.hero__portrait:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .tron-floor, .tron-trails, .tron-scanline, .portrait__sweep { display: none; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .ch { opacity: 1; transform: none; filter: none; }
}

/* ============================================================
   Extra motion flourish (TRON $10K polish)
   ============================================================ */

/* Section title gets a scan-pass shimmer the first time it
   reveals (Motion-style "appear" animation). */
.section__title { position: relative; overflow: hidden; }
.section__title::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.5), transparent);
  pointer-events: none;
  transform: skewX(-18deg);
  opacity: 0;
}
.reveal.is-visible .section__title::after,
.section__header.reveal.is-visible .section__title::after {
  animation: title-scan 1100ms 200ms var(--ease-out-expo) 1 forwards;
}
@keyframes title-scan {
  0%   { left: -30%; opacity: 0; }
  20%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* Hero gets a giant identity-disc ring decoration behind the
   text (purely cosmetic — the kind of detail a $10K agency
   would add to break the rectangle grid). */
.hero::after {
  content: '';
  position: absolute;
  right: -160px;
  top: 60px;
  width: 520px;
  height: 520px;
  border: 1px solid var(--cyan-glow-2);
  border-radius: 50%;
  box-shadow:
    inset 0 0 60px var(--cyan-glow-2),
    0 0 80px -40px var(--cyan-glow);
  pointer-events: none;
  z-index: 0;
  animation: disc-spin 90s linear infinite;
}
.hero::before {
  content: '';
  position: absolute;
  right: -60px;
  top: 160px;
  width: 320px;
  height: 320px;
  border: 1px solid var(--cyan-glow-2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: disc-spin 60s linear infinite reverse;
}
@keyframes disc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (max-width: 1000px) {
  .hero::after, .hero::before { display: none; }
}

/* Tag-group wave: tags lift sequentially when their group is hovered */
.tag-group:hover .tag {
  animation: tag-wave 1.4s var(--ease-out-expo) both;
}
.tag-group .tag:nth-child(1)  { animation-delay: 30ms; }
.tag-group .tag:nth-child(2)  { animation-delay: 60ms; }
.tag-group .tag:nth-child(3)  { animation-delay: 90ms; }
.tag-group .tag:nth-child(4)  { animation-delay: 120ms; }
.tag-group .tag:nth-child(5)  { animation-delay: 150ms; }
.tag-group .tag:nth-child(6)  { animation-delay: 180ms; }
.tag-group .tag:nth-child(7)  { animation-delay: 210ms; }
.tag-group .tag:nth-child(8)  { animation-delay: 240ms; }
.tag-group .tag:nth-child(9)  { animation-delay: 270ms; }
.tag-group .tag:nth-child(10) { animation-delay: 300ms; }
.tag-group .tag:nth-child(11) { animation-delay: 330ms; }
.tag-group .tag:nth-child(12) { animation-delay: 360ms; }
@keyframes tag-wave {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-3px); border-color: var(--cyan); }
  100% { transform: translateY(0); }
}

/* Press chip enter animation when the wave reveals */
.press__item.reveal { transform: translateY(20px) scale(0.96); }
.press__item.reveal.is-visible { transform: translateY(0) scale(1); }

/* Smooth text-shadow glow pulse on .pulse */
.pulse {
  position: relative;
}

/* Eyebrow pill gets a continuous border-shimmer */
.hero__eyebrow {
  background-image:
    linear-gradient(180deg, rgba(0, 240, 255, 0.08), rgba(0, 240, 255, 0.02));
  position: relative;
  overflow: hidden;
}
.hero__eyebrow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(0, 240, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: eyebrow-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes eyebrow-shimmer {
  0%, 60% { transform: translateX(-100%); }
  100%    { transform: translateX(100%); }
}

/* Buttons get an outward neon ripple on click */
.btn, .nav__cta { position: relative; }
.btn.is-rippling::after, .nav__cta.is-rippling::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
  animation: btn-ripple 700ms var(--ease-out-expo) forwards;
  pointer-events: none;
}
@keyframes btn-ripple {
  from { transform: scale(1);   opacity: 1; }
  to   { transform: scale(1.4); opacity: 0; }
}

/* Hide system cursor when our custom cursor is active (desktop only) */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .btn, .card, .thinking__item, .tag,
  .role, .press__item, .audio-toggle, .hero__portrait { cursor: none; }
}

/* ============================================================
   LIGHTCYCLE POWER RUN — Ride-inspired modules
   ============================================================ */

/* ---------- 1. Launch sequence ---------- */
.launch {
  position: fixed; inset: 0;
  z-index: 1000;
  background:
    radial-gradient(ellipse at center, rgba(0,30,60,0.6) 0%, var(--bg) 70%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
  transition: opacity 700ms var(--ease-out-expo), transform 900ms var(--ease-out-expo);
}
.launch.is-done {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
.launch__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--cyan-glow-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--cyan-glow-2) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(800px) rotateX(60deg) translateY(120px);
  transform-origin: center;
  animation: launch-grid-pan 6s linear infinite;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes launch-grid-pan {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}
.launch__scan {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.18) 49.5%, rgba(0, 240, 255, 0.18) 50.5%, transparent 100%);
  animation: launch-scan 1.6s linear infinite;
  pointer-events: none;
}
@keyframes launch-scan {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100%); }
}
.launch__center {
  position: relative;
  text-align: center;
  z-index: 2;
}
.launch__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.85;
  margin-bottom: 36px;
  text-shadow: 0 0 16px var(--cyan-glow);
}
.launch__count {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(120px, 22vw, 280px);
  line-height: 1;
  color: var(--white-hot, #fff);
  text-shadow:
    0 0 30px var(--cyan),
    0 0 60px var(--cyan-glow),
    0 0 120px var(--cyan-glow-2);
  letter-spacing: -0.04em;
  animation: launch-pulse 800ms var(--ease-out-expo);
}
.launch__count.is-go {
  font-size: clamp(40px, 8vw, 96px);
  letter-spacing: 8px;
}
@keyframes launch-pulse {
  0%   { transform: scale(0.6); opacity: 0; filter: blur(12px); }
  60%  { transform: scale(1.08); opacity: 1; filter: blur(0); }
  100% { transform: scale(1);    opacity: 1; }
}
.launch__hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 28px;
}
.launch__skip {
  position: absolute;
  bottom: 32px; right: 32px;
  background: transparent;
  border: 1px solid var(--cyan-glow-2);
  color: var(--cyan);
  padding: 10px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms var(--ease-out-expo), border-color 200ms;
  z-index: 3;
}
.launch__skip:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--cyan);
}

/* ---------- 2. Color-shifting canopy (hero rings) ----------
   The hero already has two ::before / ::after identity-disc
   rings. We layer a slow filter-hue-rotate so they cycle through
   cyan → orange → magenta → cyan over 30s, like the ride's
   color-shifting canopy roof. */
@keyframes canopy-shift {
  0%   { filter: hue-rotate(0deg); }
  33%  { filter: hue-rotate(-50deg); }   /* toward orange */
  66%  { filter: hue-rotate(60deg); }    /* toward magenta */
  100% { filter: hue-rotate(0deg); }
}
.hero::before, .hero::after {
  animation-name: disc-spin, canopy-shift;
  animation-duration: 90s, 30s;
  animation-iteration-count: infinite, infinite;
  animation-timing-function: linear, ease-in-out;
}
.hero::before {
  animation-duration: 60s, 30s;
  animation-direction: reverse, normal;
}

/* ---------- 3. Glass illuminated rails ----------
   Each section gets a glowing light-beam at the very bottom edge,
   echoing the ride's illuminated glass rails. */
.section {
  position: relative;
}
.section::after {
  content: '';
  position: absolute;
  left: 5%; right: 5%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--cyan-glow-2) 20%,
    var(--cyan) 50%,
    var(--cyan-glow-2) 80%,
    transparent 100%);
  box-shadow: 0 0 12px var(--cyan-glow), 0 0 24px var(--cyan-glow-2);
  opacity: 0.55;
  pointer-events: none;
}
.section.is-active::after {
  animation: rail-pulse 2.4s ease-in-out infinite;
}
@keyframes rail-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* ---------- 4. Energy Gates rail ---------- */
.gates {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0; padding: 0;
  z-index: 30;
  pointer-events: none;
}
.gate {
  width: 22px;
  height: 22px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.gate::before {
  content: '';
  width: 10px; height: 10px;
  border: 1px solid var(--cyan-glow-2);
  background: transparent;
  transform: rotate(45deg);
  transition: all 350ms var(--ease-out-expo);
}
.gate::after {
  content: attr(data-label);
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
  background: rgba(2, 8, 16, 0.85);
  padding: 4px 10px;
  border: 1px solid var(--cyan-glow-2);
  opacity: 0;
  transition: all 250ms var(--ease-out-expo);
  pointer-events: none;
}
.gate:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.gate.is-passed::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow:
    0 0 8px var(--cyan),
    0 0 16px var(--cyan-glow);
}
.gate.is-current::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow:
    0 0 12px var(--cyan),
    0 0 24px var(--cyan-glow),
    0 0 48px var(--cyan-glow-2);
  animation: gate-current 1.6s ease-in-out infinite;
}
@keyframes gate-current {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50%      { transform: rotate(45deg) scale(1.4); }
}
@media (max-width: 720px) {
  .gates { display: none; }
}

/* ---------- 5. Team Blue badge ---------- */
.portrait__team {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(2, 8, 16, 0.7);
  border: 1px solid var(--cyan-glow-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  z-index: 2;
  backdrop-filter: blur(6px);
}
.team-disc {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px var(--cyan-glow);
  animation: team-disc-pulse 1.8s ease-in-out infinite;
  position: relative;
}
.team-disc::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  opacity: 0.6;
  animation: team-disc-ring 1.8s ease-out infinite;
}
@keyframes team-disc-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
@keyframes team-disc-ring {
  0%   { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ---------- 5b. Volume slider (TRON light-rail style) ---------- */
.volume {
  position: relative;
  width: 80px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.volume input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  z-index: 2;
  opacity: 0;   /* native control hidden — we paint our own track */
}
.volume input[type="range"]:focus-visible + .volume__track {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}
.volume__track {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: var(--border-strong);
  pointer-events: none;
}
.volume__track::before {
  /* Filled portion (0 → current value) — driven by --vol CSS var. */
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--vol, 55%);
  background: linear-gradient(90deg, var(--cyan-glow-2), var(--cyan));
  box-shadow: 0 0 6px var(--cyan-glow), 0 0 12px var(--cyan-glow-2);
}
.volume__track::after {
  /* Thumb diamond at the end of the filled portion */
  content: '';
  position: absolute;
  top: 50%;
  left: var(--vol, 55%);
  width: 8px; height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px var(--cyan-glow);
  transition: transform 200ms var(--ease-out-expo);
}
.volume:hover .volume__track::after {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.3);
}
@media (max-width: 720px) {
  .volume { display: none; }
}

/* ---------- 6. Ares overlay (red Tron: Ares mode) ---------- */
.ares-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 250ms var(--ease-out-expo);
}
.ares-toggle__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan-glow);
  transition: all 250ms var(--ease-out-expo);
}
.ares-toggle:hover {
  border-color: var(--cyan);
}
.ares-toggle[aria-pressed="true"] {
  border-color: #ff2a2a;
}
.ares-toggle[aria-pressed="true"] .ares-toggle__dot {
  background: #ff2a2a;
  box-shadow: 0 0 8px #ff2a2a, 0 0 16px rgba(255, 42, 42, 0.4);
}

/* When the body has .ares-mode, swap the cyan palette to red.
   We override only the variables that drive accent/glow color
   so layout/spacing/typography stay identical. */
body.ares-mode {
  --cyan:        #ff2a2a;
  --cyan-glow:   rgba(255, 42, 42, 0.45);
  --cyan-glow-2: rgba(255, 42, 42, 0.18);
  --orange:      #ff7a00;   /* untouched but reads as warm */
}
body.ares-mode .gradient-text {
  background: linear-gradient(
    135deg,
    #ff2a2a 0%,
    #ffa37a 50%,
    #ff2a2a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(255, 42, 42, 0.45));
}
body.ares-mode .tron-floor__horizon {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 42, 42, 0.55) 100%);
}
