/* ═══════════════════════════════════════════
   JAMES DAVIES PORTFOLIO
   Built with DESIGN.md from awesome-design-md
   https://github.com/voltagent/awesome-design-md
   ═══════════════════════════════════════════ */

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

:root {
  /* Lamborghini */
  --lambo-black: #000000;
  --lambo-gold: #FFC000;
  --lambo-gold-hover: #917300;
  --lambo-white: #FFFFFF;
  --lambo-charcoal: #202020;

  /* SpaceX */
  --spx-black: #000000;
  --spx-white: #ffffff;
  --spx-mute: #f0f0fa;
  --spx-hairline: #3a3a3f;

  /* VoltAgent */
  --volt-canvas: #101010;
  --volt-soft: #1a1a1a;
  --volt-green: #00d992;
  --volt-ink: #f2f2f2;
  --volt-body: #bdbdbd;
  --volt-mute: #8b949e;
  --volt-hairline: #3d3a39;

  /* The Verge */
  --verge-canvas: #131313;
  --verge-mint: #3cffd0;
  --verge-purple: #5200ff;
  --verge-slate: #2d2d2d;
  --verge-muted: #949494;

  /* Approach */
  --approach-accent: #533afd;
  --approach-accent-soft: #665efd;

  /* PlayStation */
  --ps-blue: #0070d1;
  --ps-blue-pressed: #0064b7;
  --ps-black: #000000;
  --ps-white: #ffffff;
  --ps-soft: #f3f3f3;

  --nav-h: 0px;
  --cursor-x: 50%;
  --cursor-y: 50%;
  --ring-x: 0px;
  --ring-y: 0px;
  --accent: #FFC000;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--lambo-black);
  color: var(--lambo-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* ─── Custom cursor ─── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10001;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s, width 0.25s, height 0.25s, background 0.25s, border-color 0.25s;
}

html.has-custom-cursor .cursor-dot,
html.has-custom-cursor .cursor-ring { opacity: 1; }

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: translate(calc(var(--cursor-x) - 3px), calc(var(--cursor-y) - 3px));
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  transform: translate(calc(var(--ring-x) - 20px), calc(var(--ring-y) - 20px));
  transition: width 0.25s, height 0.25s, border-color 0.25s, opacity 0.3s, box-shadow 0.25s;
}

.cursor-ring.hover {
  width: 64px;
  height: 64px;
  transform: translate(calc(var(--ring-x) - 32px), calc(var(--ring-y) - 32px));
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

.cursor-ring.clicking {
  width: 28px;
  height: 28px;
  transform: translate(calc(var(--ring-x) - 14px), calc(var(--ring-y) - 14px));
}

/* ─── Film grain ─── */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.5s steps(2) infinite;
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, -3%); }
}

/* ─── Scroll progress ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 10002;
  background: linear-gradient(90deg, var(--accent), var(--lambo-gold));
  box-shadow: 0 0 12px var(--accent);
  transition: background 0.4s;
}

/* ─── Loader ─── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lambo-black);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  width: 320px;
}

.loader-boot {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  min-height: 14px;
  text-align: left;
}

.loader-label {
  font-family: Oswald, 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--lambo-gold);
  display: block;
  margin-bottom: 24px;
}

.loader-bar {
  height: 2px;
  background: var(--lambo-charcoal);
  margin-bottom: 12px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--lambo-gold);
  transition: width 0.1s linear;
}

.loader-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 600;
  color: var(--lambo-white);
  letter-spacing: -2px;
}

/* ─── Floating navigation ─── */
.nav-mark {
  position: fixed;
  top: clamp(20px, 3vw, 32px);
  left: clamp(20px, 4vw, 48px);
  z-index: 1000;
  font-family: Oswald, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--lambo-white);
  mix-blend-mode: difference;
  transition: opacity 0.3s, transform 0.3s;
}

.nav-mark:hover { transform: scale(1.05); }

.nav-contact {
  position: fixed;
  top: clamp(20px, 3vw, 32px);
  right: clamp(20px, 4vw, 48px);
  z-index: 1000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--lambo-white);
  mix-blend-mode: difference;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, opacity 0.3s;
}

.nav-contact:hover {
  border-bottom-color: currentColor;
  opacity: 0.8;
}

/* Vertical section rail */
.nav-rail {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.rail-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 20px 16px 20px 24px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.4s, border-color 0.4s, padding 0.4s, box-shadow 0.4s;
}

.nav-rail:hover .rail-panel,
.nav-rail.expanded .rail-panel {
  background: rgba(0, 0, 0, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  padding-right: 20px;
}

.rail-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  position: relative;
  padding-right: 2px;
}

.rail-track {
  position: absolute;
  right: 4px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  pointer-events: none;
}

.rail-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent);
  transition: height 0.12s ease-out, background 0.4s;
}

.rail-indicator {
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 16px var(--accent), inset 0 0 6px var(--accent);
  transition: top 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
  pointer-events: none;
  z-index: 2;
}

.rail-link {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-direction: row-reverse;
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
  position: relative;
  z-index: 1;
}

.rail-link:hover {
  opacity: 1;
  transform: translateX(-4px);
}

.rail-link.active {
  opacity: 1;
}

.rail-link.active .rail-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--rail-accent, var(--accent));
}

.rail-link.active .rail-num {
  opacity: 1;
  color: var(--rail-accent, var(--accent));
}

.rail-link.active .rail-dot {
  background: var(--rail-accent, var(--accent));
  border-color: var(--rail-accent, var(--accent));
  box-shadow: 0 0 14px var(--rail-accent, var(--accent));
  transform: scale(0);
  opacity: 0;
}

.nav-rail:hover .rail-label,
.nav-rail.expanded .rail-label {
  opacity: 0.55;
  transform: translateX(0);
}

.nav-rail:hover .rail-link:hover .rail-label,
.nav-rail:hover .rail-link.active .rail-label,
.nav-rail.expanded .rail-link.active .rail-label {
  opacity: 1;
  color: var(--rail-accent, var(--accent));
}

.nav-rail:hover .rail-num,
.nav-rail.expanded .rail-num {
  opacity: 0.35;
}

.nav-rail:hover .rail-link:hover .rail-num,
.nav-rail:hover .rail-link.active .rail-num,
.nav-rail.expanded .rail-link.active .rail-num {
  opacity: 0.8;
}

.rail-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.3s, color 0.3s;
  min-width: 14px;
  text-align: right;
}

.rail-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.35s, transform 0.35s, color 0.3s;
  white-space: nowrap;
}

.rail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s, border-color 0.3s, opacity 0.3s;
}

.rail-link:hover .rail-dot {
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

.rail-pct {
  display: block;
  margin-top: 16px;
  padding-right: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.25);
  text-align: right;
  transition: color 0.4s;
}

.nav-rail:hover .rail-pct {
  color: var(--accent);
}

/* Mobile menu */
.nav-menu-btn {
  display: none;
  position: fixed;
  top: clamp(20px, 3vw, 32px);
  right: clamp(20px, 4vw, 48px);
  z-index: 1002;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.menu-line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--lambo-white);
  mix-blend-mode: difference;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-menu-btn.open .menu-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-menu-btn.open .menu-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px, 8vw, 80px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overlay-link {
  font-family: Oswald, sans-serif;
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s, color 0.2s;
}

.nav-overlay.open .overlay-link {
  opacity: 0.7;
  transform: translateY(0);
}

.nav-overlay.open .overlay-link:nth-child(1) { transition-delay: 0.05s; }
.nav-overlay.open .overlay-link:nth-child(2) { transition-delay: 0.1s; }
.nav-overlay.open .overlay-link:nth-child(3) { transition-delay: 0.15s; }
.nav-overlay.open .overlay-link:nth-child(4) { transition-delay: 0.2s; }
.nav-overlay.open .overlay-link:nth-child(5) { transition-delay: 0.25s; }
.nav-overlay.open .overlay-link:nth-child(6) { transition-delay: 0.3s; }

.overlay-link:hover,
.overlay-link.active { opacity: 1; color: var(--accent); }

.overlay-link span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  margin-right: 16px;
  vertical-align: middle;
}

.overlay-email {
  margin-top: 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--lambo-gold);
  opacity: 0;
  transition: opacity 0.4s 0.35s;
}

.nav-overlay.open .overlay-email { opacity: 1; }

/* ─── Sections base ─── */
.section {
  position: relative;
  min-height: 100vh;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.6;
}

.section-eyebrow.mono {
  font-family: 'JetBrains Mono', monospace;
  color: var(--volt-green);
  opacity: 1;
}

.section-title {
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 32px;
}

.section-desc {
  max-width: 520px;
  line-height: 1.7;
  opacity: 0.7;
}

/* ═══ LAMBORGHINI HERO ═══ */
.theme-lambo { background: var(--lambo-black); color: var(--lambo-white); }

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.7;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 192, 0, 0.12) 0%,
    transparent 60%
  );
  transition: background 0.1s;
  z-index: 1;
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 2;
  opacity: 0.4;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 192, 0, 0.15);
  top: 10%;
  right: -10%;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(41, 171, 226, 0.1);
  bottom: 20%;
  left: -5%;
  animation-delay: -4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.05); }
  66% { transform: translate(20px, -15px) scale(0.95); }
}

.hero-video-bg {
  position: absolute;
  inset: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 192, 0, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(41, 171, 226, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #000 0%, #0a0a0a 50%, #000 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 92vw);
  padding: 80px 0 120px;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--lambo-gold);
  margin-bottom: 32px;
}

.blink {
  animation: blink 1.2s step-end infinite;
  margin-right: 6px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-title {
  font-family: Oswald, 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 14vw, 140px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 24px;
  perspective: 800px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotateX(-40deg);
  animation: charReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--char-i) * 0.04s + 0.6s);
}

.hero-title .gold .char { color: var(--lambo-gold); }

@keyframes charReveal {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.hero-title.loaded .line.gold {
  animation: goldGlitch 4s ease-in-out 2s infinite;
}

@keyframes goldGlitch {
  0%, 92%, 100% { text-shadow: none; }
  93% { text-shadow: 3px 0 var(--lambo-gold), -3px 0 cyan; transform: translateX(-1px); }
  94% { text-shadow: -2px 0 var(--lambo-gold), 2px 0 magenta; transform: translateX(1px); }
  95% { text-shadow: none; transform: none; }
}

.hero-sub {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 32px;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn-gold {
  background: var(--lambo-gold);
  color: var(--lambo-black);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.5s;
}

.btn-gold:hover::before { transform: translateX(120%); }

.btn-gold:hover { background: var(--lambo-gold-hover); color: var(--lambo-white); }

.btn-ghost {
  background: transparent;
  color: var(--lambo-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
}

.btn-ghost:hover {
  border-color: var(--lambo-white);
  background: rgba(255, 255, 255, 0.05);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags span,
.hero-tags .tag-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.tag-pill:hover {
  border-color: var(--lambo-gold);
  color: var(--lambo-gold);
  box-shadow: 0 0 20px rgba(255, 192, 0, 0.15);
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 5vw, 56px);
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-num {
  font-family: Oswald, sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--lambo-gold);
  display: block;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
  display: block;
}

/* ─── Marquee ─── */
.marquee-wrap {
  background: var(--lambo-gold);
  color: var(--lambo-black);
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.marquee {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: Oswald, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
}

.marquee span:nth-child(even) { opacity: 0.4; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 3px;
  opacity: 0.4;
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: var(--lambo-white);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.4; }
  50% { transform: scaleX(1.5); opacity: 1; }
}

/* ═══ SPACEX ABOUT ═══ */
.theme-spacex { background: var(--spx-black); color: var(--spx-white); }

.about {
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.about-bg {
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80') center/cover no-repeat;
  opacity: 0.25;
  will-change: transform;
}

.about-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.95) 100%);
}

.about .container { position: relative; z-index: 1; }

.about .section-title {
  font-family: Oswald, 'Arial Narrow', sans-serif;
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 0.95;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  margin-top: 48px;
}

.about-lead p {
  font-size: 20px;
  line-height: 1.7;
  letter-spacing: 0.3px;
  margin-bottom: 32px;
}

.about-body p {
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.about-body strong { color: var(--spx-white); font-weight: 600; }

.btn-outline-pill {
  display: inline-flex;
  font-family: Oswald, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  border: 1px solid var(--spx-white);
  border-radius: 32px;
  transition: background 0.2s;
}

.btn-outline-pill:hover {
  background: var(--spx-white);
  color: var(--spx-black);
}

/* ═══ VOLTAGENT EXPERTISE ═══ */
.theme-voltagent { background: var(--volt-canvas); color: var(--volt-ink); }

.expertise {
  padding: 100px 0 120px;
  overflow: hidden;
}

.expertise-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 217, 146, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.terminal-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #0d0d0d;
  border: 1px solid var(--volt-hairline);
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
  width: fit-content;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--volt-mute);
  margin-left: 8px;
}

.expertise .section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -1px;
  padding: 16px 20px;
  background: #0d0d0d;
  border: 1px solid var(--volt-hairline);
  border-top: none;
  border-radius: 0 0 8px 8px;
  width: fit-content;
  min-width: 280px;
  margin-bottom: 8px;
}

.type-cursor {
  color: var(--volt-green);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}

.expertise .section-desc {
  color: var(--volt-body);
  margin-top: 16px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  background: var(--volt-hairline);
  border: 1px solid var(--volt-hairline);
}

.expertise-header {
  margin-bottom: 64px;
}

.expertise-card {
  background: var(--volt-soft);
  padding: 36px;
  transition: background 0.25s, box-shadow 0.25s;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}

.expertise-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 217, 146, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.expertise-card:hover::before { opacity: 1; }

.expertise-card:hover {
  background: #1e1e1e;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.expertise-card .card-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(0,217,146,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.expertise-card:hover .card-shine { opacity: 1; }

.card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--volt-green);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 16px;
}

.expertise-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.expertise-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--volt-body);
  margin-bottom: 20px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  background: var(--volt-canvas);
  border: 1px solid var(--volt-hairline);
  color: var(--volt-mute);
  border-radius: 4px;
}

/* ═══ THE VERGE STREAM ═══ */
.theme-verge { background: var(--verge-canvas); color: var(--verge-canvas); }

.stream {
  padding: 80px 0 0;
  min-height: auto;
}

.verge-wordmark {
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 700;
  line-height: 0.85;
  text-transform: uppercase;
  color: var(--verge-mint);
  letter-spacing: -2px;
  margin-bottom: 48px;
}

.story-stream {
  position: relative;
  padding: 0 clamp(20px, 4vw, 48px) 80px;
  max-width: 800px;
  margin: 0 auto;
}

.story-stream::before {
  content: '';
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  top: 0;
  bottom: 80px;
  width: 1px;
  border-left: 1px dashed var(--verge-purple);
  opacity: 0.5;
}

.story-tile {
  position: relative;
  margin-left: 32px;
  margin-bottom: 24px;
  padding: 32px 36px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.story-tile:hover {
  transform: translateX(12px) scale(1.02);
  box-shadow: -8px 8px 0 rgba(0, 0, 0, 0.3);
}

.story-tile::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--verge-purple);
  transform: translateY(-50%) scale(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px var(--verge-purple);
}

.story-tile.visible::before,
.story-tile:hover::before { transform: translateY(-50%) scale(1); }

.story-tile time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.7;
}

.story-tile h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}

.story-tile p {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.85;
}

.story-tile.mint { background: var(--verge-mint); color: #000; }
.story-tile.purple { background: var(--verge-purple); color: #fff; }
.story-tile.yellow { background: #ffe066; color: #000; }
.story-tile.white { background: #fff; color: #000; }
.story-tile.pink { background: #ff6eb4; color: #000; }
.story-tile.blue { background: #4d9fff; color: #000; }

/* ═══ APPROACH ═══ */
.theme-approach {
  background: var(--volt-canvas);
  color: var(--volt-ink);
}

.approach {
  padding: 100px 0 120px;
  overflow: hidden;
}

.approach-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(83, 58, 253, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.approach-header {
  margin-bottom: 48px;
}

.approach .section-eyebrow.mono {
  color: var(--approach-accent-soft);
}

.approach .section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -1px;
}

.approach .section-desc {
  color: var(--volt-body);
  margin-top: 16px;
  max-width: 560px;
}

.approach-flow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.approach-flow span:not(.flow-line) {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--approach-accent-soft);
}

.flow-line {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--approach-accent), rgba(83, 58, 253, 0.2));
  max-width: 80px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--volt-hairline);
  border: 1px solid var(--volt-hairline);
}

.approach-card {
  background: var(--volt-soft);
  padding: 36px;
  transition: background 0.25s, box-shadow 0.25s;
  transform-style: preserve-3d;
  position: relative;
}

.approach-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(83, 58, 253, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.approach-card:hover::before { opacity: 1; }

.approach-card:hover {
  background: #1e1e1e;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.approach-card .card-num {
  color: var(--approach-accent-soft);
}

.approach-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.approach-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--volt-body);
}

.approach-card .card-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(83, 58, 253, 0.14) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.approach-card:hover .card-shine { opacity: 1; }

@media (max-width: 768px) {
  .approach-grid { grid-template-columns: 1fr; }
  .approach-flow { display: none; }
}

/* ═══ PLAYSTATION CONTACT ═══ */
.theme-playstation { background: var(--ps-black); }

.contact { min-height: auto; padding-top: 0; }

.contact-dark {
  background: var(--ps-black);
  color: var(--ps-white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.contact-dark::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 112, 209, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.contact .section-title {
  font-family: 'Space Grotesk', Helvetica, sans-serif;
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1px;
}

.contact .section-eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.contact-lead {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 24px 0 40px;
}

.btn-ps {
  display: inline-flex;
  position: relative;
  background: var(--ps-blue);
  color: var(--ps-white);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 40px;
  border-radius: 9999px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  overflow: hidden;
}

.btn-ps:hover {
  background: var(--ps-blue-pressed);
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(0, 112, 209, 0.4);
}

.btn-ps-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.25) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0%, 70%, 100% { transform: translateX(-120%); }
  85% { transform: translateX(120%); }
}

.contact-light {
  background: var(--ps-white);
  color: var(--ps-black);
  padding: 48px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-rows: auto auto;
  gap: 16px 48px;
  align-items: center;
}

.footer-logo {
  font-family: Oswald, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  display: block;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 1; }

.footer-copy {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.4);
}

.back-top {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.back-top:hover { opacity: 1; }

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Section dividers ─── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .nav-rail,
  .nav-contact { display: none; }

  .nav-menu-btn { display: flex; }
}

@media (max-width: 768px) {
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .cursor-dot, .cursor-ring { display: none; }
  html.has-custom-cursor, html.has-custom-cursor * { cursor: auto !important; }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
