/* ═══════════════════════════════════════════════
   ANNA VANINA — WEBSITE, LOGO & BRANDING DESIGNER
   GSAP · Three.js · Anime.js · Lenis
   ═══════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg:          #090b10;
  --surface:     #0d1016;
  --surface-2:   #131720;
  --primary:     #00e5ff;
  --primary-dim: #00b8cc;
  --primary-glow:rgba(0,229,255,0.16);
  --secondary:   #7c6ef0;
  --text:        #e8ecf2;
  --muted:       #4a5568;
  --border:      rgba(0,229,255,0.07);
  --border-sub:  rgba(255,255,255,0.055);
  --r-pill:      9999px;
  --f-display:   'Playfair Display', serif;
  --f-mono:      'JetBrains Mono', monospace;
  --f-body:      'Sora', sans-serif;
}

html {
  font-size:16px; scroll-behavior:auto;
  background:var(--bg); /* bg lives on <html> so z-index:-1 children of body are visible */
}

body {
  background:transparent; /* transparent so aurora/neural layers bleed through */
  color:var(--text);
  font-family:var(--f-body);
  line-height:1.7;
  overflow-x:hidden;
  cursor:none;
}

a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }

::-webkit-scrollbar { width:2px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:var(--primary); border-radius:10px; }

/* ════════════════════════════════════════════
   GRAIN OVERLAY
════════════════════════════════════════════ */
.grain {
  position:fixed; inset:0;
  pointer-events:none; z-index:9998;
  opacity:0.038;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size:180px 180px;
  mix-blend-mode:overlay;
  animation:grainShift 0.5s steps(1) infinite;
}
@keyframes grainShift {
  0%  { background-position: 0 0; }
  20% { background-position: -40px 10px; }
  40% { background-position: 20px -30px; }
  60% { background-position: -10px 40px; }
  80% { background-position: 30px -10px; }
}

/* ════════════════════════════════════════════
   MOUSE BLOB
════════════════════════════════════════════ */
.mouse-blob {
  position:fixed;
  width:700px; height:700px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(0,229,255,0.055) 0%, rgba(124,110,240,0.025) 45%, transparent 70%);
  pointer-events:none; z-index:1;
  transform:translate(-50%,-50%);
  will-change:left,top;
  filter:blur(50px);
  transition:none;
}

/* ════════════════════════════════════════════
   LOADER
════════════════════════════════════════════ */
#loader {
  position:fixed; inset:0;
  z-index:9999;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}

/* The two black panels that do the split curtain */
.loader-panel {
  position:absolute; top:0; bottom:0;
  width:51%; background:#000; z-index:1;
}
.loader-panel-l { left:0; transform-origin:left center; }
.loader-panel-r { right:0; transform-origin:right center; }

.loader-inner {
  position:relative; z-index:2; text-align:center;
}

.loader-num {
  font-family:var(--f-mono);
  font-size:clamp(5rem,16vw,14rem);
  font-weight:500;
  color:var(--text);
  display:block; line-height:1; letter-spacing:-0.04em;
}

.loader-line-wrap {
  width:280px; height:1px;
  background:rgba(255,255,255,0.06);
  margin:2rem auto; overflow:hidden;
}
.loader-line { height:100%; width:0; background:var(--primary); box-shadow:0 0 24px var(--primary); }

.loader-label {
  font-family:var(--f-mono); font-size:0.58rem;
  letter-spacing:0.55em; color:var(--muted); text-transform:uppercase;
}

/* ════════════════════════════════════════════
   CURSOR
════════════════════════════════════════════ */
.cursor {
  position:fixed; width:5px; height:5px;
  background:var(--primary); border-radius:50%;
  pointer-events:none; z-index:9997;
  transform:translate(-50%,-50%);
}
.cursor-follower {
  position:fixed; width:44px; height:44px;
  border:1px solid rgba(0,229,255,0.4); border-radius:50%;
  pointer-events:none; z-index:9996;
  transform:translate(-50%,-50%);
  display:flex; align-items:center; justify-content:center;
  transition:width .25s, height .25s, background .25s, border-color .25s;
}
.cursor-text {
  font-family:var(--f-mono); font-size:0.45rem;
  letter-spacing:.18em; color:var(--primary); opacity:0; transition:opacity .2s;
}
body.cur-link .cursor-follower { width:54px; height:54px; }
body.cur-card .cursor-follower { width:80px; height:80px; background:rgba(0,229,255,0.05); }
body.cur-card .cursor-text { opacity:1; }

@media (max-width:768px) { .cursor,.cursor-follower { display:none; } body { cursor:auto; } }

/* ════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════ */
#navbar {
  position:fixed; top:1.1rem; left:50%; transform:translateX(-50%) translateY(-20px);
  width:86%; max-width:1100px;
  display:flex; align-items:center; justify-content:space-between;
  padding:.55rem .55rem .55rem 1.6rem;
  background:transparent;
  border:1px solid transparent; border-radius:9999px;
  z-index:100;
  opacity:0; pointer-events:none;
  transition:opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1),
             background .5s, backdrop-filter .5s, border-color .5s, box-shadow .5s;
}
#navbar.scrolled {
  opacity:1; pointer-events:auto;
  transform:translateX(-50%) translateY(0);
  background:rgba(9,11,18,0.8);
  backdrop-filter:blur(40px) saturate(180%); -webkit-backdrop-filter:blur(40px) saturate(180%);
  border-color:rgba(255,255,255,0.06);
  box-shadow:0 4px 6px rgba(0,0,0,0.15), 0 20px 60px rgba(0,0,0,0.55),
             inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Wordmark */
.nav-wordmark {
  font-family:'Outfit', sans-serif; font-weight:500; font-size:.95rem;
  letter-spacing:.02em; color:rgba(232,236,242,0.88);
  flex-shrink:0; white-space:nowrap;
  transition:color .3s;
}
.nav-wordmark:hover { color:#fff; }
.nav-dot { color:var(--primary); }

/* Links */
.nav-links { display:flex; gap:2rem; }
.nav-link {
  font-family:'Outfit', sans-serif; font-weight:400; font-size:.82rem;
  letter-spacing:.01em;
  color:rgba(180,192,210,0.55);
  transition:color .25s, letter-spacing .25s;
  position:relative;
}
/* Underline that expands from center */
.nav-link::after {
  content:''; position:absolute; bottom:-3px; left:50%;
  width:0; height:1px;
  background:linear-gradient(90deg, var(--primary), var(--secondary));
  transition:width .35s cubic-bezier(.16,1,.3,1), left .35s cubic-bezier(.16,1,.3,1);
}
.nav-link:hover { color:rgba(232,236,242,0.95); letter-spacing:.04em; }
.nav-link:hover::after { width:100%; left:0; }

/* Hire Me — animated gradient border + shimmer */
.nav-cta {
  display:flex; align-items:center; gap:.45rem;
  font-family:'Outfit', sans-serif; font-weight:500; font-size:.78rem;
  letter-spacing:.05em;
  padding:.58rem 1.3rem;
  position:relative; border-radius:9999px;
  color:var(--primary);
  background:rgba(9,11,18,0.9);
  border:1px solid transparent;
  background-clip:padding-box;
  overflow:hidden;
  white-space:nowrap;
  transition:color .3s, box-shadow .3s;
  animation:ctaBorderPulse 3s ease-in-out infinite;
}
/* Animated gradient border via box-shadow */
@keyframes ctaBorderPulse {
  0%,100% { box-shadow:0 0 0 1px rgba(0,229,255,0.35), 0 0 14px rgba(0,229,255,0.1); }
  50%      { box-shadow:0 0 0 1px rgba(124,110,240,0.5), 0 0 20px rgba(124,110,240,0.15); }
}
/* Shimmer sweep on hover */
.nav-cta::before {
  content:''; position:absolute;
  top:0; left:-80%; width:60%; height:100%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform:skewX(-20deg);
  transition:left 0s;
}
.nav-cta:hover::before { left:140%; transition:left .55s ease; }
.nav-cta:hover {
  color:#fff;
  box-shadow:0 0 0 1px rgba(0,229,255,0.7), 0 0 28px rgba(0,229,255,0.2);
  animation:none;
}
.nav-cta-arrow {
  display:inline-block;
  transition:transform .3s cubic-bezier(.16,1,.3,1);
  font-style:normal;
}
.nav-cta:hover .nav-cta-arrow { transform:translate(2px,-2px); }

@media (max-width:768px) { .nav-links { display:none; } }

/* ════════════════════════════════════════════
   HERO — CYBER CINEMATIC REEL SHOWCASE
   100vw × 100vh · Continuous Pull-Back Camera
   Instagram Reel Exact Match:
   Eyes Close-up → Shoulders Reveal → Full-Body Cyber Studio
════════════════════════════════════════════ */

#hero, .hero, .hero-cyber-reel {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: #020307;
  z-index: 2;
}

/* Viewport holding the video and depth layers */
.hero-cin-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  background: #020307;
  pointer-events: none;
  perspective: 1200px;
}

/* 60 FPS Cinematic Video Layer (Real Face, Full Body & Cyber Studio Pull-Back) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 2;
  pointer-events: none;
  display: block;
  background: transparent;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* High-performance GPU Camera Rig (Pure Image, 100% Real Face & Full Body) */
.hero-camera {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50.15% 13.02%; /* Calibrated to Anna's real eyes */
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  z-index: 1;
}

.hero-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-master-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Macro Eyes Layer for Crystal-Clear 0.0s Stage 01 Opening */
.hero-macro-eyes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  opacity: 1;
  pointer-events: none;
  will-change: opacity, transform;
}

.hero-macro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Cyber Vignette & Depth Aura with Neon Pillars */
.hero-cyber-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 48%, rgba(2, 3, 7, 0.4) 80%, rgba(2, 3, 7, 0.88) 100%),
    linear-gradient(to top, rgba(2, 3, 7, 0.72) 0%, transparent 20%),
    linear-gradient(to bottom, rgba(2, 3, 7, 0.5) 0%, transparent 15%);
}

.neon-beam-left {
  position: absolute;
  left: 3.5%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #00e5ff;
  box-shadow: 0 0 15px #00e5ff, 0 0 35px #00e5ff, 0 0 70px rgba(0, 229, 255, 0.7);
  opacity: 0.85;
  animation: neonGlowL 3.5s ease-in-out infinite alternate;
}

.neon-beam-right {
  position: absolute;
  right: 3.5%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #d924ff;
  box-shadow: 0 0 15px #d924ff, 0 0 35px #d924ff, 0 0 70px rgba(217, 36, 255, 0.7);
  opacity: 0.85;
  animation: neonGlowR 3.8s ease-in-out infinite alternate-reverse;
}

@keyframes neonGlowL {
  0% { opacity: 0.75; filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.6)); }
  100% { opacity: 0.95; filter: drop-shadow(0 0 28px rgba(0, 229, 255, 0.95)); }
}

@keyframes neonGlowR {
  0% { opacity: 0.75; filter: drop-shadow(0 0 12px rgba(217, 36, 255, 0.6)); }
  100% { opacity: 0.95; filter: drop-shadow(0 0 28px rgba(217, 36, 255, 0.95)); }
}

/* ════════════════════════════════════════════
   HERO EDITORIAL OVERLAY (Instagram Reel Same-to-Same)
════════════════════════════════════════════ */
.hero-editorial-overlay {
  position: absolute;
  left: clamp(2rem, 7vw, 7.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  max-width: clamp(340px, 48vw, 680px);
  pointer-events: auto;
  will-change: transform, opacity;
}

/* 1. Open for commissions pill badge */
.hero-pill-commission {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  background: rgba(9, 11, 20, 0.72);
  border: 1px solid rgba(0, 229, 255, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #00e5ff;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 229, 255, 0.15);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
  animation: blink 1.8s ease infinite;
}

/* 2. Main Name Typography: ANNA / VANINA. */
.hero-name-title {
  display: flex;
  flex-direction: column;
  margin: 0.2rem 0;
  line-height: 0.92;
  user-select: none;
}

.name-first {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.6rem, 7.6vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
  display: block;
}

.name-last {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(3.6rem, 7.6vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #00e5ff;
  text-shadow: 0 4px 35px rgba(0, 229, 255, 0.45);
  display: block;
}

.name-dot {
  color: #00e5ff;
}

/* 3. Roles / Currently Cycler */
.hero-roles-cycler {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-role-label {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: rgba(232, 236, 242, 0.45);
  text-transform: uppercase;
}

.hero-role-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  color: rgba(232, 236, 242, 0.92);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* 4. Action Buttons */
.hero-actions-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.6rem;
}

.btn-reel-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.85rem;
  border-radius: 9999px;
  background: #00e5ff;
  color: #050811;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-reel-primary:hover {
  background: #ffffff;
  color: #050811;
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.7);
  transform: translateY(-2px) scale(1.02);
}

.btn-reel-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.65rem;
  border-radius: 9999px;
  background: rgba(9, 11, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-reel-secondary:hover {
  border-color: #00e5ff;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════
   RIGHT FLOATING HUD (3D Rotating Wireframe Cube)
════════════════════════════════════════════ */
.hero-floating-hud {
  position: absolute;
  right: clamp(2rem, 6vw, 7.5rem);
  top: 24%;
  z-index: 10;
  pointer-events: auto;
  will-change: transform, opacity;
}

.hud-cube-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1.5rem;
  border-radius: 18px;
  background: rgba(9, 11, 20, 0.75);
  border: 1px solid rgba(0, 229, 255, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(124, 110, 240, 0.22);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hud-cube-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 36px rgba(0, 229, 255, 0.4);
}

.hud-card-label {
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: #00e5ff;
  text-transform: uppercase;
}

.hud-cube-wrap {
  width: 90px;
  height: 90px;
  perspective: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.2rem 0;
}

.wire-cube {
  width: 44px;
  height: 44px;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeSpin 12s linear infinite;
}

.cube-face {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(0, 229, 255, 0.85);
  background: rgba(124, 110, 240, 0.16);
  box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.28);
}

.cube-face.front  { transform: translateZ(22px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(22px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(22px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(22px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(22px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(22px); }

@keyframes cubeSpin {
  0%   { transform: rotateX(24deg) rotateY(0deg) rotateZ(12deg); }
  100% { transform: rotateX(24deg) rotateY(360deg) rotateZ(12deg); }
}

.hud-cube-sub {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(232, 236, 242, 0.6);
  text-align: center;
}

@media (max-width: 900px) {
  .hero-floating-hud {
    display: none;
  }
  .hero-editorial-overlay {
    left: 1.5rem;
    right: 1.5rem;
    max-width: calc(100% - 3rem);
    top: auto;
    bottom: 2.5rem;
    transform: none;
  }
  .name-first, .name-last {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }
}

/* ════════════════════════════════════════════
   HERO TIMELINE BAR & STAGE PILLS (Instagram Reel Same-to-Same)
════════════════════════════════════════════ */
.hero-timeline-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 25;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.hero-stages-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.6rem 1.5rem;
  pointer-events: auto;
}

.stage-pill-btn {
  background: rgba(9, 11, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  color: rgba(232, 236, 242, 0.65);
  font-family: var(--f-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 0.35rem 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.stage-pill-btn:hover {
  border-color: rgba(0, 229, 255, 0.55);
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.08);
  transform: translateY(-2px);
}

.stage-pill-btn.active {
  border-color: #00e5ff;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.16);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
  font-weight: 700;
}

/* Thin Reel Progress Scrubber at bottom edge */
.cin-progress-wrap {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  pointer-events: auto;
  transition: height 0.2s ease;
}

.cin-progress-wrap:hover {
  height: 8px;
}

.cin-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00e5ff 0%, #7c6ef0 50%, #d924ff 100%);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.9);
  border-radius: 0 2px 2px 0;
  transition: width 0.04s linear;
}

/* Scroll indicator on the right edge */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  color: rgba(232, 236, 242, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  width: 100%;
  height: 12px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  position: absolute;
  top: 0;
  animation: scrollDrop 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollDrop {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(36px); opacity: 0; }
}

@media (max-width: 768px) {
  .hero-cyber-actions {
    bottom: clamp(1.8rem, 4.5vh, 2.8rem);
  }
  .btn-cyber-work {
    padding: 0.78rem 2rem;
    font-size: 0.65rem;
  }
  .scroll-indicator {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-layer {
    transition: none !important;
  }
  .hero-layer-eyes,
  .hero-layer-shoulders {
    display: none !important;
  }
  .hero-layer-final {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-cyber-eyebrow,
  .hero-cyber-actions,
  .scroll-indicator {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ════════════════════════════════════════════
   MARQUEE
════════════════════════════════════════════ */
.marquee-section {
  padding:2rem 0;
  border-top:1px solid var(--border-sub); border-bottom:1px solid var(--border-sub);
  background:var(--surface); overflow:hidden;
}
.marquee-track { display:flex; overflow:hidden; }
.marquee-inner {
  display:flex; align-items:center; gap:2.5rem;
  white-space:nowrap;
  font-family:var(--f-mono); font-size:.65rem; letter-spacing:.28em;
  color:var(--primary); text-transform:uppercase;
  animation:marqueeScroll 30s linear infinite;
}
.marquee-dot { color:var(--muted); }
@keyframes marqueeScroll {
  0%   { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}

/* ════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════ */
#about {
  padding:clamp(6rem,12vw,12rem) clamp(1.5rem,6vw,8rem);
  position:relative;
}

/* ── Ambient orbs ── */
.about-orb {
  position:absolute; border-radius:50%;
  pointer-events:none; z-index:0;
}
.about-orb-1 {
  width:580px; height:580px; top:0; left:0;
  background:radial-gradient(circle, rgba(0,229,255,.055) 0%, transparent 65%);
  animation:orbDrift 18s ease-in-out infinite;
}
.about-orb-2 {
  width:480px; height:480px; bottom:5%; right:0;
  background:radial-gradient(circle, rgba(124,110,240,.072) 0%, transparent 65%);
  animation:orbDrift 14s ease-in-out infinite reverse;
  animation-delay:-7s;
}
@keyframes orbDrift {
  0%,100%{transform:translate(0,0) scale(1)}
  40%{transform:translate(40px,-25px) scale(1.06)}
  70%{transform:translate(-25px,35px) scale(.94)}
}

.about-container {
  max-width:1400px; margin:0 auto;
  display:grid; grid-template-columns:1fr 1fr; gap:6rem; align-items:center;
  position:relative; z-index:1;
}

.section-label {
  font-family:var(--f-mono); font-size:.6rem; letter-spacing:.44em;
  color:var(--muted); text-transform:uppercase; margin-bottom:2rem;
  clip-path:inset(0 100% 0 0);
}

.about-heading {
  font-family:var(--f-display); font-size:clamp(2.4rem,4.5vw,5.5rem);
  font-weight:700; line-height:1.1; letter-spacing:-.02em; margin-bottom:2.5rem;
}
.about-heading .italic { font-style:italic; }
.text-cyan { color:var(--primary); }

.reveal-line { display:block; overflow:hidden; line-height:1.25; }

.about-body {
  font-size:1.02rem; color:var(--muted); line-height:1.88; margin-bottom:1.5rem;
  opacity:0; transform:translateY(28px);
}

.about-stats {
  display:grid; grid-template-columns:repeat(4,1fr); gap:1.8rem;
  margin-top:3rem; padding-top:3rem; border-top:1px solid var(--border-sub);
}
.stat-item { opacity:0; transform:translateY(28px); }
.stat-num  { font-family:var(--f-display); font-size:clamp(2rem,3.2vw,3.8rem); font-weight:900; color:var(--primary); line-height:1; display:inline; }
.stat-unit { font-family:var(--f-display); font-size:clamp(1.1rem,1.8vw,2.2rem); font-weight:700; color:var(--primary); display:inline; }
.stat-label { font-family:var(--f-mono); font-size:.56rem; letter-spacing:.2em; color:var(--muted); text-transform:uppercase; margin-top:.5rem; }

.about-right { position:relative; }

.about-image-wrap {
  border-radius:32px; overflow:hidden; aspect-ratio:4/5;
  background:var(--surface-2); position:relative; transform-style:preserve-3d;
}
.about-img-glow-wrap { position:relative; }

.about-img-glow {
  position:absolute; inset:-3px; border-radius:35px; z-index:0;
  background:conic-gradient(from 0deg, var(--primary) 0%, var(--secondary) 40%, transparent 60%, var(--primary) 100%);
  animation:rotateBorder 7s linear infinite; opacity:.4;
}
@keyframes rotateBorder { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }

.about-image-wrap { position:relative; z-index:1; }
.about-img-bg { position:absolute; inset:0; z-index:0; background:linear-gradient(135deg,#0d1b35,#1a0540); }
.about-img { position:relative; z-index:1; width:100%; height:100%; object-fit:cover; filter:grayscale(12%); }

/* ── Role cycler ── */
.about-role-strip {
  display:flex; align-items:center; gap:.7rem;
  margin-bottom:1.8rem;
  font-family:var(--f-mono); font-size:.62rem;
  letter-spacing:.28em; text-transform:uppercase;
  opacity:0; transform:translateY(16px);
}
.role-prefix { color:var(--muted); }
.role-cycler {
  position:relative; overflow:hidden;
  height:1.1em; min-width:190px;
}
.about-role {
  position:absolute; top:0; left:0;
  color:var(--primary); opacity:0;
  transform:translateY(120%);
  white-space:nowrap;
  font-family:var(--f-mono); font-size:.62rem;
  letter-spacing:.28em; text-transform:uppercase;
}

/* ── Journey timeline ── */
.about-journey {
  margin-top:2.4rem; padding-top:2rem;
  border-top:1px solid rgba(255,255,255,.06);
  opacity:0; transform:translateY(24px);
}
.journey-track { display:flex; align-items:flex-start; }
.journey-node {
  display:flex; flex-direction:column;
  align-items:center; min-width:78px; text-align:center;
}
.jn-dot {
  width:7px; height:7px; border-radius:50%;
  background:var(--border-sub);
  border:1.5px solid rgba(255,255,255,.12);
  margin-bottom:.55rem; position:relative; z-index:1;
  transition:all .4s;
}
.journey-node.active .jn-dot {
  background:var(--primary); border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(0,229,255,.14), 0 0 14px rgba(0,229,255,.45);
}
.jn-year {
  font-family:var(--f-mono); font-size:.58rem;
  letter-spacing:.18em; color:var(--muted); margin-bottom:.22rem;
}
.journey-node.active .jn-year { color:var(--primary); }
.jn-label {
  font-family:var(--f-mono); font-size:.48rem;
  letter-spacing:.1em; color:rgba(232,236,242,.35);
  white-space:nowrap;
}
.journey-node.active .jn-label { color:var(--text); }
.journey-line {
  flex:1; height:1px; margin-top:3px; min-width:30px;
  background:linear-gradient(90deg,rgba(0,229,255,.18),rgba(124,110,240,.12));
}

/* ── Corner accents ── */
.about-corner {
  position:absolute; width:30px; height:30px;
  z-index:3; pointer-events:none; opacity:.55;
}
.about-corner-tl { top:-6px; left:-6px; border-top:1.5px solid var(--primary); border-left:1.5px solid var(--primary); }
.about-corner-br { bottom:-6px; right:-6px; border-bottom:1.5px solid var(--primary); border-right:1.5px solid var(--primary); }

/* ── Image overlay ── */
.about-img-overlay {
  position:absolute; inset:0; z-index:2; pointer-events:none;
  background:linear-gradient(180deg,
    rgba(0,229,255,.04) 0%,
    transparent 45%,
    rgba(9,11,16,.38) 100%
  );
}

/* ── Tags ── */
.about-tag {
  position:absolute; display:flex; align-items:center; gap:.5rem;
  font-family:var(--f-mono); font-size:.6rem; letter-spacing:.15em;
  padding:.6rem 1.15rem; background:rgba(9,11,16,.95);
  backdrop-filter:blur(16px); border:1px solid var(--border-sub);
  border-radius:var(--r-pill); white-space:nowrap;
  z-index:5;
}
/* Left-side tags hang into the inter-column gap — right-side tags stay inside the image */
.tag-1 { bottom:14%; left:-6%; animation:floatTag 5s ease-in-out infinite; }
.tag-2 { top:10%;  right:5%;  animation:floatTag 5s ease-in-out infinite reverse; animation-delay:-2.5s; }
.tag-3 { top:43%;  left:-6%; animation:floatTag 6.5s ease-in-out infinite; animation-delay:-1.2s; }
.tag-4 { bottom:36%; right:5%; animation:floatTag 5.8s ease-in-out infinite reverse; animation-delay:-3.5s; }
@keyframes floatTag { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

@media (max-width:900px) {
  .about-container { grid-template-columns:1fr; }
  .about-right { display:none; }
  .about-stats { grid-template-columns:repeat(2,1fr); }
  .about-role-strip { display:none; }
  .about-journey { display:none; }
}

/* ════════════════════════════════════════════
   PROJECTS — scroll-driven 3D cards
════════════════════════════════════════════ */
#projects { background:var(--bg); }

.projects-header {
  padding:clamp(5rem,10vw,10rem) clamp(1.5rem,6vw,8rem) 3rem;
  max-width:1400px; margin:0 auto;
}
.projects-heading {
  font-family:var(--f-display);
  font-size:clamp(3rem,5.5vw,8rem);
  font-weight:900; line-height:.92; letter-spacing:-.025em;
}
.projects-heading .italic { font-style:italic; color:var(--primary); }

/* ── Fan section — no scroll zone needed ── */
.projects-scroll-zone { padding:1rem 0 5rem; overflow:hidden; }

.projects-sticky {
  width:100%; overflow:visible;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:1.4rem;
}

/* Counter */
.proj-counter {
  font-family:var(--f-mono); font-size:.58rem; letter-spacing:.28em;
  text-transform:uppercase; color:var(--muted);
}
.proj-counter-cur { color:var(--primary); }

/* Card stage — full-width fan layout */
.proj-stage {
  perspective:680px; perspective-origin:50% 42%;
  position:relative;
  width:100%; height:520px;
  overflow:visible;
}

/* Ambient spotlight in stage center */
.proj-stage::before {
  content:''; position:absolute; pointer-events:none;
  top:50%; left:50%; transform:translate(-50%,-50%);
  width:540px; height:540px;
  background:radial-gradient(circle, rgba(0,229,255,.038) 0%, transparent 65%);
  z-index:0;
}

/* Portrait cards — centered via GSAP xPercent/yPercent */
.pc-card {
  position:absolute; top:50%; left:50%;
  width:300px; height:460px;
  display:flex; flex-direction:column;
  border-radius:22px; overflow:hidden;
  background:var(--surface-2);
  border:1px solid rgba(255,255,255,.06);
  will-change:transform,opacity;
  box-shadow:0 28px 70px rgba(0,0,0,.5);
  cursor:none;
  transition:box-shadow .4s, border-color .4s;
}

/* ── Art ── */
.pc-art { position:relative; height:210px; flex-shrink:0; overflow:hidden; }
.pc-art--1 { background:linear-gradient(135deg,#10002b 0%,#6b21a8 55%,#a855f7 90%); }
.pc-art--2 { background:linear-gradient(135deg,#001223 0%,#0c4a6e 55%,#0ea5e9 90%); }
.pc-art--3 { background:linear-gradient(135deg,#0c0500 0%,#431407 55%,#9a3412 90%); }
.pc-art--4 { background:linear-gradient(135deg,#030d08 0%,#052e16 55%,#14532d 90%); }
.pc-art--5 { background:linear-gradient(135deg,#1a0011 0%,#7f1d4d 55%,#db2777 90%); }
.pc-art--6 { background:linear-gradient(135deg,#110d00 0%,#78350f 55%,#d97706 90%); }
.pc-art--7 { background:linear-gradient(135deg,#001a1a 0%,#0f4b4b 55%,#0d9488 90%); }

.pc-art-svg { position:absolute; inset:0; }

.pc-art-shimmer {
  position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.07) 50%,transparent 62%);
  transform:translateX(-120%); transition:transform .7s ease;
}
.pc-card:hover .pc-art-shimmer { transform:translateX(160%); }

.pc-ghost-num {
  position:absolute; bottom:-4px; right:16px;
  font-family:var(--f-display); font-size:8rem; font-weight:900;
  color:rgba(255,255,255,.05); line-height:1;
  pointer-events:none; user-select:none; transition:color .4s;
}
.pc-card:hover .pc-ghost-num { color:rgba(255,255,255,.1); }

.pc-live-badge {
  position:absolute; top:14px; right:14px;
  display:flex; align-items:center; gap:5px;
  font-family:var(--f-mono); font-size:.48rem; letter-spacing:.2em;
  padding:4px 11px; background:rgba(0,0,0,.55);
  backdrop-filter:blur(8px); border:1px solid rgba(0,229,255,.3);
  border-radius:999px; color:var(--primary); text-transform:uppercase;
}
.pc-live-dot {
  width:5px; height:5px; border-radius:50%; background:var(--primary);
  animation:livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:.25} }

.pc-soon-overlay {
  position:absolute; inset:0;
  background:rgba(9,11,16,.45); backdrop-filter:blur(.5px);
}
.pc-soon-badge {
  position:absolute; top:14px; right:14px;
  font-family:var(--f-mono); font-size:.48rem; letter-spacing:.2em; text-transform:uppercase;
  padding:4px 11px; background:rgba(0,0,0,.65);
  border:1px solid rgba(255,255,255,.09); border-radius:999px;
  color:rgba(255,255,255,.38);
}

/* ── Body ── */
.pc-body {
  padding:.85rem 1.3rem 1rem;
  display:flex; flex-direction:column; gap:.4rem; flex:1; overflow:hidden;
}
.pc-meta { display:flex; justify-content:space-between; align-items:center; }
.pc-num  { font-family:var(--f-mono); font-size:.54rem; letter-spacing:.28em; color:var(--muted); }
.pc-year { font-family:var(--f-mono); font-size:.52rem; letter-spacing:.14em; color:rgba(255,255,255,.18); }

.pc-title {
  font-family:var(--f-display); font-size:clamp(1.35rem,2vw,1.9rem);
  font-weight:900; font-style:italic; line-height:1.05; color:var(--text);
  transition:color .35s;
}
.pc-card:hover .pc-title { color:var(--primary); }
.pc-title--dim { color:rgba(232,236,242,.35); }

.pc-desc {
  font-size:.82rem; line-height:1.65; color:var(--muted);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.pc-desc--dim { color:rgba(232,236,242,.22); }

.pc-foot {
  display:flex; justify-content:space-between; align-items:center;
  margin-top:auto; padding-top:.8rem;
  border-top:1px solid rgba(255,255,255,.05);
}
.pc-tags { display:flex; gap:.45rem; flex-wrap:wrap; }
.pc-tag {
  font-family:var(--f-mono); font-size:.46rem; letter-spacing:.14em;
  padding:3px 9px; border:1px solid rgba(0,229,255,.22);
  border-radius:999px; color:rgba(0,229,255,.72); text-transform:uppercase;
}
.pc-tag--dim { border-color:rgba(255,255,255,.07); color:rgba(255,255,255,.22); }

.pc-links { display:flex; gap:.5rem; }
.pc-btn {
  font-family:var(--f-mono); font-size:.5rem; letter-spacing:.16em; text-transform:uppercase;
  padding:5px 14px; border-radius:999px; white-space:nowrap;
  background:rgba(0,229,255,.12); border:1px solid rgba(0,229,255,.3);
  color:var(--primary); transition:background .3s, border-color .3s;
}
.pc-btn:hover { background:rgba(0,229,255,.22); border-color:var(--primary); }
.pc-btn--ghost {
  background:transparent; border-color:rgba(255,255,255,.1); color:var(--muted);
}
.pc-btn--ghost:hover { background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.2); color:var(--text); }

/* ── Live Project Card Styles ── */
.pc-art--dorsus {
  background: #000000;
}
.pc-art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  z-index: 1;
}
.pc-card:hover .pc-art-img {
  transform: scale(1.06);
}
.pc-btn--live {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(217, 36, 255, 0.15));
  border: 1px solid #00e5ff;
  color: #00e5ff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
  text-decoration: none;
}
.pc-btn--live:hover {
  background: #00e5ff;
  color: #050811;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.8);
  transform: translateY(-2px);
}

/* ── Project Showcase Modal ── */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #090b14;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 229, 255, 0.2);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-modal.active .modal-dialog {
  transform: translateY(0) scale(1);
}
.modal-close-btn {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.modal-close-btn:hover {
  background: #00e5ff;
  color: #020307;
  border-color: #00e5ff;
  transform: rotate(90deg);
}
.modal-header {
  margin-bottom: 1.5rem;
}
.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: #00e5ff;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.modal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  animation: livePulse 1.6s ease-in-out infinite;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.1;
}
.modal-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(232, 236, 242, 0.75);
}
.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}
.modal-preview-card, .preview-mini-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #020307;
}
.modal-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.modal-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.preview-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--f-mono);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  padding: 3px 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  z-index: 2;
}
.modal-details {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.8rem;
  margin-bottom: 2rem;
  padding: 1.4rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.modal-info-col h3 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #00e5ff;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.modal-info-col p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(232, 236, 242, 0.78);
}
.modal-specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(232, 236, 242, 0.85);
}
.modal-specs-list span {
  color: rgba(232, 236, 242, 0.45);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  margin-right: 0.4rem;
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .modal-preview-grid, .modal-details {
    grid-template-columns: 1fr;
  }
  .modal-dialog {
    padding: 1.4rem;
  }
}

.pc-coming {
  font-family:var(--f-mono); font-size:.5rem; letter-spacing:.16em;
  color:rgba(255,255,255,.2); text-transform:uppercase;
}

/* ── Progress dots + nav controls ── */
.proj-controls { display:flex; align-items:center; gap:1.2rem; }

.proj-dots { display:flex; gap:7px; align-items:center; }
.proj-dot {
  height:5px; width:5px; border-radius:999px;
  background:rgba(255,255,255,.14);
  transition:width .35s cubic-bezier(.16,1,.3,1), background .35s;
}
.proj-dot.active { width:22px; background:var(--primary); }

/* Prev / Next arrow buttons */
.proj-nav-btn {
  width:40px; height:40px; border-radius:50%; border:none;
  background:rgba(255,255,255,.06);
  outline:1px solid rgba(255,255,255,.1);
  color:var(--text); font-size:.95rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .3s, outline-color .3s, transform .2s;
  flex-shrink:0;
}
.proj-nav-btn:hover {
  background:rgba(0,229,255,.12);
  outline-color:rgba(0,229,255,.45);
  transform:scale(1.08);
}
.proj-nav-btn:active { transform:scale(.94); }
.proj-nav-btn:disabled {
  opacity:.22; pointer-events:none;
}

/* Footer */
.projects-footer {
  padding:4rem clamp(1.5rem,6vw,8rem);
  text-align:right; max-width:1400px; margin:0 auto;
}
.view-all {
  font-family:var(--f-mono); font-size:.62rem; letter-spacing:.28em; color:var(--muted);
  transition:color .3s, letter-spacing .35s;
}
.view-all:hover { color:var(--primary); letter-spacing:.38em; }

@media (max-width:700px) {
  .proj-stage { height:500px; }
  .pc-card { width:260px; height:400px; }
  .pc-art { height:210px; }
}

/* ════════════════════════════════════════════
   SKILLS — particle snap
════════════════════════════════════════════ */
#skills {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(3rem,6vw,5rem) clamp(1.5rem,6vw,8rem) 0;
  overflow: hidden;
  background: var(--bg);
}

#skills::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* section label & heading sit in flex flow at top */
#skills > .section-label { position: relative; z-index: 2; }

.skills-heading {
  font-family: var(--f-display);
  font-size: clamp(2.8rem,5vw,7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.025em;
  margin: .8rem 0 0;
  position: relative;
  z-index: 2;
}

/* canvas covers the whole stage */
#skills-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* category overlays — bottom-left */
.skills-cats {
  position: absolute;
  bottom: 4.5rem;
  left: clamp(1.5rem,6vw,8rem);
  z-index: 10;
  min-height: 9rem;
}

.skills-cat {
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s cubic-bezier(.22,1,.36,1),
              transform .5s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}

.skills-cat.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* header row: index + category title */
.cat-header {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin-bottom: .9rem;
}

.cat-num {
  font-family: var(--f-mono);
  font-size: .65rem;
  letter-spacing: .22em;
  color: var(--primary);
  flex-shrink: 0;
}

.cat-title {
  font-family: var(--f-display);
  font-size: clamp(1.4rem,2vw,2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

/* pill tag grid */
.cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  max-width: 560px;
}

.cat-tag {
  padding: .38rem 1rem;
  border-radius: 9999px;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .04em;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  opacity: 0;
  transform: translateY(10px);
  /* staggered transition via CSS custom property --i */
  transition:
    opacity  .4s ease        calc(var(--i,0) * 75ms + 140ms),
    transform .4s cubic-bezier(.22,1,.36,1) calc(var(--i,0) * 75ms + 140ms),
    border-color .25s ease,
    background   .25s ease,
    color        .25s ease;
  cursor: default;
}

/* per-category colour theming */
.skills-cat[data-cat="0"] .cat-tag {
  border-color: rgba(0,229,255,.22);
  background:   rgba(0,229,255,.06);
  color:        rgba(0,229,255,.85);
}
.skills-cat[data-cat="1"] .cat-tag {
  border-color: rgba(124,110,240,.28);
  background:   rgba(124,110,240,.07);
  color:        rgba(180,174,248,.9);
}
.skills-cat[data-cat="2"] .cat-tag {
  border-color: rgba(232,236,242,.2);
  background:   rgba(232,236,242,.05);
  color:        rgba(232,236,242,.8);
}

/* tag hover — subtle glow */
.skills-cat[data-cat="0"] .cat-tag:hover { background: rgba(0,229,255,.14); color: #00e5ff; }
.skills-cat[data-cat="1"] .cat-tag:hover { background: rgba(124,110,240,.16); color: #b4aef8; }
.skills-cat[data-cat="2"] .cat-tag:hover { background: rgba(232,236,242,.1);  color: #e8ecf2; }

/* reveal tags when parent is active */
.skills-cat.active .cat-tag {
  opacity: 1;
  transform: translateY(0);
}

/* pill-style progress bar — bottom-right */
.skills-dots {
  position: absolute;
  bottom: 2.2rem;
  right: clamp(1.5rem,6vw,8rem);
  display: flex;
  gap: .55rem;
  z-index: 10;
  align-items: center;
}

.sk-dot {
  height: 5px;
  width: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,.18);
  transition: background .4s ease, width .4s ease;
  flex-shrink: 0;
}

.sk-dot.active {
  background: var(--primary);
  width: 22px;
}

@media (max-width:768px) {
  .skills-cats { left: 1.5rem; bottom: 5.5rem; }
  .cat-desc    { max-width: 90vw; }
  .skills-dots { right: 1.5rem; }
}

/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
/* ════════════════════════════════════════════
   CONTACT — ORBITAL PORTAL SPLIT
════════════════════════════════════════════ */
#contact {
  display:grid; grid-template-columns:1fr 1fr;
  min-height:100vh; overflow:hidden; position:relative;
}

/* Subtle dot-grid background */
.ct-grid {
  position:absolute; inset:0; pointer-events:none; z-index:0;
  background-image:radial-gradient(rgba(0,229,255,.08) 1px, transparent 1px);
  background-size:36px 36px;
  mask-image:radial-gradient(ellipse 80% 80% at 70% 50%, black 30%, transparent 100%);
}

/* ── LEFT COLUMN ── */
.ct-left {
  display:flex; flex-direction:column; justify-content:center;
  padding:clamp(3rem,5vw,5rem) clamp(2.5rem,6vw,7rem);
  position:relative; z-index:2;
}

/* Availability pill */
.ct-avail {
  display:inline-flex; align-items:center; gap:.65rem;
  font-family:var(--f-mono); font-size:.62rem; letter-spacing:.22em;
  color:rgba(0,229,255,.75); margin-bottom:1.2rem;
  opacity:0; transform:translateY(28px);
}

/* Main heading */
.ct-heading {
  font-family:var(--f-display); font-weight:900;
  font-size:clamp(3.5rem,6vw,8rem); line-height:.9;
  letter-spacing:-.03em; margin:0 0 1.8rem;
}
.ct-h-thin {
  display:block; font-weight:300; letter-spacing:.01em;
  color:rgba(232,236,242,.5);
}
.ct-accent {
  display:block; font-style:italic; font-weight:900;
  color:#00e5ff;
  filter:drop-shadow(0 0 22px rgba(0,229,255,.75)) drop-shadow(0 0 60px rgba(0,229,255,.3));
  animation:ctNeonPulse 3.5s ease-in-out infinite;
}
@keyframes ctNeonPulse {
  0%,100% { filter:drop-shadow(0 0 22px rgba(0,229,255,.75)) drop-shadow(0 0 60px rgba(0,229,255,.3)); }
  50%      { filter:drop-shadow(0 0 35px rgba(0,229,255,1))   drop-shadow(0 0 90px rgba(0,229,255,.5)); }
}

/* Signal bars (avail indicator) */
.ct-signal {
  display:inline-flex; align-items:flex-end; gap:2.5px;
}
.ct-bar {
  width:3px; border-radius:2px; background:#00e5ff;
  animation:ctBar 1.4s ease-in-out infinite;
}
.ct-bar:nth-child(1) { height:4px;  animation-delay:0s; }
.ct-bar:nth-child(2) { height:7px;  animation-delay:.2s; }
.ct-bar:nth-child(3) { height:10px; animation-delay:.4s; }
@keyframes ctBar {
  0%,100% { opacity:.25; }
  50%      { opacity:1; }
}

/* Sub copy */
.ct-sub {
  font-size:.95rem; color:var(--muted); line-height:1.9;
  margin-bottom:1.6rem; max-width:400px;
  opacity:0; transform:translateY(28px);
}

/* Email link */
.ct-email {
  display:inline-flex; align-items:center; gap:.6rem;
  font-family:var(--f-mono); font-size:clamp(.65rem,1.1vw,.85rem);
  letter-spacing:.08em; color:var(--text);
  margin-bottom:1.8rem; position:relative;
  opacity:0; transform:translateY(28px); transition:color .3s;
}
.ct-email::after {
  content:''; position:absolute; bottom:-5px; left:0;
  width:0; height:1px;
  background:linear-gradient(90deg,#00e5ff,#7c6ef0);
  transition:width .55s cubic-bezier(.22,1,.36,1);
}
.ct-email:hover { color:var(--primary); }
.ct-email:hover::after { width:100%; }
.ct-email-arrow { font-size:1.15rem; color:var(--primary); }

/* Horizontal rule */
.ct-rule {
  width:100%; height:1px; margin-bottom:1.8rem;
  background:linear-gradient(90deg,var(--border-sub) 0%,transparent 80%);
  opacity:0; transform:translateY(28px);
}

/* Mini stats */
.ct-stats {
  display:flex; gap:2rem; margin-bottom:1.2rem;
  opacity:0; transform:translateY(28px);
}
.ct-stat { display:flex; flex-direction:column; gap:.2rem; }
.ct-stat-n {
  font-family:var(--f-display); font-size:1.7rem; font-weight:900;
  line-height:1; color:var(--text);
}
.ct-stat-l {
  font-family:var(--f-mono); font-size:.52rem; letter-spacing:.24em; color:var(--muted);
}

/* Coordinates line */
.ct-coords {
  font-family:var(--f-mono); font-size:.58rem; letter-spacing:.18em;
  color:rgba(232,236,242,.25);
  opacity:0; transform:translateY(28px);
}

/* ── RIGHT COLUMN — FORM + SOLAR SYSTEM ── */
.ct-right {
  display:flex; flex-direction:column; align-items:flex-start;
  justify-content:center;
  position:relative; padding:2rem 0;
}

/* (portal, rings, core removed — replaced by solar system below) */

/* ── MOBILE ── */
@media (max-width:768px) {
  #contact    { grid-template-columns:1fr; padding:4rem 1.5rem 5rem; min-height:auto; }
  .ct-left    { padding:2rem 0 2.5rem; }
  .ct-right   { display:flex; padding:0; width:100%; align-items:flex-start; }
  .ct-solar-wrap { display:none; }
  .ct-form    { max-width:100%; }
  .ct-heading { font-size:clamp(3.2rem,13vw,7rem); }
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
#footer { padding:2.5rem clamp(1.5rem,6vw,8rem); }
.footer-line {
  height:1px;
  background:linear-gradient(to right,transparent,var(--border-sub),transparent);
  margin-bottom:2.5rem;
}
.footer-content { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
.footer-logo { font-family:var(--f-display); font-size:1.35rem; font-weight:900; font-style:italic; color:var(--primary); }
.footer-copy { font-family:var(--f-mono); font-size:.56rem; letter-spacing:.2em; color:var(--muted); }
.back-to-top {
  font-family:var(--f-mono); font-size:.56rem; letter-spacing:.2em; color:var(--muted);
  background:none; border:1px solid var(--border-sub); padding:.48rem 1rem;
  border-radius:var(--r-pill); cursor:pointer; transition:color .3s, border-color .3s;
}
.back-to-top:hover { color:var(--primary); border-color:var(--primary); }

@media (max-width:600px) { .footer-content { flex-direction:column; align-items:center; text-align:center; } }

/* ════════════════════════════════════════════
   FINALE — MOVIE POSTER
════════════════════════════════════════════ */
/* ════════════════════════════════════════════
   FINALE — Live HUD Dashboard + Glitch Reveal
════════════════════════════════════════════ */
#finale {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.finale-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

/* subtle grid bg (same as other sections) */
.finale-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.010) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.010) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── Letterbox bars ──────────────────────── */
.fl-bar {
  position: absolute;
  left: 0; right: 0;
  height: clamp(36px,5.5vh,72px);
  background: var(--bg);
  z-index: 30;
  transform: scaleY(0);
}
.fl-bar-top { top: 0;    transform-origin: top center;    }
.fl-bar-bot { bottom: 0; transform-origin: bottom center; }

/* ── Watermark name ──────────────────────── */
.fl-name {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  gap: .1em;
}
.fl-name-left,
.fl-name-right {
  font-family: var(--f-display);
  font-size: clamp(3.5rem,10vw,13rem);
  font-weight: 900;
  line-height: .93;
  letter-spacing: -.035em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.08);
  opacity: 0;
}

/* ── Portrait ────────────────────────────── */
.fl-portrait-wrap {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: clamp(180px,24vw,380px);
  aspect-ratio: 3/4;
  z-index: 10;
}

.fl-portrait-fallback {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg,
    rgba(0,229,255,.08), rgba(124,110,240,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: clamp(3rem,5vw,6rem);
  font-weight: 900;
  color: rgba(255,255,255,.15);
}

.fl-portrait-main {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  opacity: 0;
  z-index: 2;
}

.fl-scanlines {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,.07) 3px, rgba(0,0,0,.07) 4px
  );
  pointer-events: none;
  z-index: 5;
}

/* Glow ring: extends outside portrait (no overflow:hidden on wrap) */
.fl-glow-ring {
  position: absolute;
  inset: -18px;
  border-radius: 26px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    #00e5ff   80deg,
    transparent 160deg,
    #7c6ef0   240deg,
    transparent 320deg,
    #00e5ff   360deg
  );
  filter: blur(14px);
  opacity: 0;
  z-index: 0;
}

/* Float + glow animation once revealed */
@keyframes fl-float {
  0%,100% { transform: translate(-50%,-50%) translateY(0);    }
  50%      { transform: translate(-50%,-50%) translateY(-12px);}
}
@keyframes fl-ring-spin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}
@keyframes fl-ring-pulse {
  0%,100% { opacity: .45; }
  50%      { opacity: .80; }
}
.fl-portrait-wrap.fl-revealed {
  animation: fl-float 4s ease-in-out infinite;
  box-shadow: 0 0 50px rgba(0,229,255,.18), 0 0 100px rgba(124,110,240,.1);
}
.fl-glow-ring.fl-revealed {
  animation: fl-ring-spin 6s linear infinite, fl-ring-pulse 3s ease-in-out infinite;
}

/* ── Subtitle typewriter ─────────────────── */
.fl-subtitle-wrap {
  position: absolute;
  bottom: clamp(5rem,9vh,8rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  z-index: 20;
  opacity: 0;
}
#fl-typewriter {
  font-family: var(--f-mono);
  font-size: clamp(.65rem,1vw,.88rem);
  letter-spacing: .28em;
  color: rgba(255,255,255,.48);
}
.fl-cursor {
  font-family: var(--f-mono);
  font-size: clamp(.65rem,1vw,.88rem);
  color: var(--primary);
  animation: blink .85s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── HUD Cards ───────────────────────────── */
.fl-card {
  position: absolute;
  width: clamp(170px,18vw,270px);
  background: rgba(9,11,16,.80);
  border: 1px solid rgba(0,229,255,.10);
  border-radius: 10px;
  padding: .8rem .95rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 20;
  opacity: 0;
  transition: border-color .3s, box-shadow .3s;
}
.fl-card:hover {
  border-color: rgba(0,229,255,.25);
  box-shadow: 0 0 24px rgba(0,229,255,.06);
}

/* Corner positions */
.fl-card-tl { top: clamp(3.5rem,8vh,7rem);  left:  clamp(1rem,4vw,4.5rem); }
.fl-card-bl { bottom: clamp(3.5rem,8vh,7rem); left:  clamp(1rem,4vw,4.5rem); }
.fl-card-tr { top: clamp(3.5rem,8vh,7rem);  right: clamp(1rem,4vw,4.5rem); }
.fl-card-br { bottom: clamp(3.5rem,8vh,7rem); right: clamp(1rem,4vw,4.5rem); }

/* Card header */
.fl-card-hd {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .65rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.fl-dots { display: flex; gap: .22rem; }
.fl-dots i {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.fl-dots i:nth-child(1) { background: rgba(255,95,87,.6);  }
.fl-dots i:nth-child(2) { background: rgba(255,189,46,.5); }
.fl-dots i:nth-child(3) { background: rgba(40,201,64,.45); }

.fl-card-label {
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--primary);
}

/* ── Code card ───────────────────────────── */
.fl-code-pre {
  font-family: var(--f-mono);
  font-size: .62rem;
  line-height: 1.68;
  color: rgba(255,255,255,.58);
  white-space: pre;
  margin: 0;
  min-height: 8rem;
}

/* ── Projects card ───────────────────────── */
.fl-proj-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.fl-proj-item {
  font-family: var(--f-mono);
  font-size: .67rem;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  gap: .38rem;
  opacity: 0;
  transform: translateX(-10px);
}
.fl-proj-item::before {
  content: '▹';
  color: var(--primary);
  font-size: .52rem;
  flex-shrink: 0;
}

/* ── Building card ───────────────────────── */
.fl-build-name {
  font-family: var(--f-mono);
  font-size: .68rem;
  color: var(--text);
  margin-bottom: .55rem;
}
.fl-prog-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .65rem;
}
.fl-prog-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.07);
  border-radius: 9999px;
  overflow: hidden;
}
.fl-prog-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00e5ff, #7c6ef0);
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(0,229,255,.45);
}
.fl-pct {
  font-family: var(--f-mono);
  font-size: .62rem;
  color: var(--primary);
  flex-shrink: 0;
}
.fl-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .28rem;
}
.fl-check {
  font-family: var(--f-mono);
  font-size: .62rem;
  color: rgba(255,255,255,.42);
  display: flex;
  align-items: center;
  gap: .32rem;
  opacity: 0;
}
.fl-check::before {
  content: '✓';
  color: #00e5ff;
  font-size: .58rem;
}

/* ── Growth card ─────────────────────────── */
.fl-chart-title {
  font-family: var(--f-mono);
  font-size: .6rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .06em;
  margin-bottom: .45rem;
}
.fl-chart {
  width: 100%;
  height: 58px;
  overflow: visible;
  margin-bottom: .45rem;
  display: block;
}
.fl-chart-line {
  fill: none;
  stroke: #00e5ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 270;
  stroke-dashoffset: 270;
  filter: drop-shadow(0 0 4px rgba(0,229,255,.55));
}
.fl-chart-stat {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}
.fl-chart-stat span {
  font-family: var(--f-mono);
  font-size: .62rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: .22rem;
  vertical-align: middle;
}

/* ── Mobile ──────────────────────────────── */
@media (max-width: 900px) {
  .fl-card { width: clamp(140px,38vw,210px); padding: .6rem .75rem; }
  .fl-card-tl,.fl-card-bl { left: .75rem; }
  .fl-card-tr,.fl-card-br { right: .75rem; }
  .fl-card-tl,.fl-card-tr { top: 3.5rem; }
  .fl-card-bl,.fl-card-br { bottom: 4.5rem; }
  .fl-name-left,.fl-name-right { font-size: clamp(2.5rem,8vw,7rem); }
  .fl-portrait-wrap { width: clamp(130px,36vw,240px); }
  .fl-badge { display: none; }
  .fl-sidebar { display: none; }
}

/* ── Drifting dot-grid background ──────────── */
.finale-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,229,255,.055) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
  animation: dotDrift 22s linear infinite;
}
@keyframes dotDrift {
  from { background-position: 0 0; }
  to   { background-position: 36px 36px; }
}

/* ── Corner targeting brackets ─────────────── */
.fl-corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--primary);
  border-style: solid;
  opacity: 0;
  z-index: 20;
  transition: opacity .4s;
}
.fl-c-tl { top: -2px;    left: -2px;   border-width: 2px 0 0 2px; }
.fl-c-tr { top: -2px;    right: -2px;  border-width: 2px 2px 0 0; }
.fl-c-bl { bottom: -2px; left: -2px;   border-width: 0 0 2px 2px; }
.fl-c-br { bottom: -2px; right: -2px;  border-width: 0 2px 2px 0; }

/* ── Animated scan line ─────────────────────── */
.fl-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg, transparent 0%, rgba(0,229,255,.9) 40%, rgba(0,229,255,.9) 60%, transparent 100%
  );
  box-shadow: 0 0 10px rgba(0,229,255,.6), 0 0 20px rgba(0,229,255,.2);
  z-index: 15;
  opacity: 0;
  pointer-events: none;
}
@keyframes fl-scan {
  0%   { top: -1%; opacity: 0; }
  4%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { top: 101%; opacity: 0; }
}

/* ── Status badge ─────────────────────────────── */
.fl-status-badge {
  position: absolute;
  bottom: clamp(7rem,11vh,9rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .9rem;
  border: 1px solid rgba(40,201,64,.28);
  border-radius: 9999px;
  background: rgba(40,201,64,.06);
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  color: rgba(100,220,120,.9);
  z-index: 25;
  opacity: 0;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.fl-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4cdb7a;
  flex-shrink: 0;
  animation: statusPing 1.8s ease-in-out infinite;
}
@keyframes statusPing {
  0%,100% { box-shadow: 0 0 0 0 rgba(76,219,122,.5); }
  50%      { box-shadow: 0 0 0 5px rgba(76,219,122,0); }
}

/* ── Floating achievement badges ──────────────── */
.fl-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border: 1px solid rgba(0,229,255,.16);
  border-radius: 9999px;
  background: rgba(9,11,16,.82);
  font-family: var(--f-mono);
  font-size: .62rem;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  z-index: 22;
  opacity: 0;
  backdrop-filter: blur(10px);
}
.fl-badge-icon { font-style: normal; font-size: .75rem; }

/* Positions: left mid-zone, between left cards and portrait */
.fl-badge-l1 { left: 23%; top: 36%; animation: badgeFloat1 4s ease-in-out infinite; }
.fl-badge-l2 { left: 21%; top: 55%; animation: badgeFloat2 4.5s ease-in-out infinite; }
/* Right mid-zone, between portrait and right cards */
.fl-badge-r1 { right: 23%; top: 33%; animation: badgeFloat2 5s ease-in-out infinite; }
.fl-badge-r2 { right: 22%; top: 54%; animation: badgeFloat1 4.2s ease-in-out infinite; }

@keyframes badgeFloat1 {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-7px); }
}
@keyframes badgeFloat2 {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(7px); }
}

/* ── Sidebar icon strip ───────────────────────── */
.fl-sidebar {
  position: absolute;
  right: clamp(.6rem,1.8vw,2.2rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  z-index: 25;
  opacity: 0;
}
.fl-icon-tile {
  width: 44px; height: 44px;
  border: 1px solid rgba(0,229,255,.14);
  border-radius: 10px;
  background: rgba(9,11,16,.78);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.38);
  transition: border-color .3s, background .3s, color .3s, transform .25s;
}
.fl-icon-tile:hover {
  border-color: rgba(0,229,255,.4);
  background: rgba(0,229,255,.09);
  color: var(--primary);
  transform: scale(1.1) translateX(-3px);
}
.fl-icon-tile svg {
  width: 16px; height: 16px;
}

/* ════════════════════════════════════════════
   SHARED UTILITIES
════════════════════════════════════════════ */
.reveal-up { opacity:0; transform:translateY(36px); }
[data-clip]  { clip-path:inset(0 100% 0 0); }

/* ════════════════════════════════════════════
   GLOBAL BACKGROUND SYSTEM — BEAST MODE
   Layer order (bottom → top):
   -3  warp shader canvas
   -2  neural field canvas
   -1  aurora orbs
    0+ section content
════════════════════════════════════════════ */

/* Background canvases */
#warp-canvas,
#neural-canvas {
  position:fixed; inset:0;
  width:100%; height:100%;
  pointer-events:none; display:block;
}
#warp-canvas   { z-index:-3; }
#neural-canvas { z-index:-2; }

/* Aurora Dreamscape */
#aurora-bg {
  position:fixed; inset:0;
  z-index:-1; overflow:hidden;
  pointer-events:none;
}
.orb {
  position:absolute; border-radius:50%;
  filter:blur(90px); will-change:transform;
  mix-blend-mode:screen;
}

/* Orb 1 — large cyan, top-left */
.orb-1 {
  width:70vw; height:70vw;
  top:-20%; left:-18%;
  background:radial-gradient(circle, rgba(0,229,255,.14) 0%, rgba(0,180,220,.06) 50%, transparent 70%);
  animation:oDrift1 30s ease-in-out infinite;
}
/* Orb 2 — violet, mid-right */
.orb-2 {
  width:58vw; height:58vw;
  top:10%; right:-22%;
  background:radial-gradient(circle, rgba(124,110,240,.19) 0%, rgba(80,60,200,.07) 50%, transparent 70%);
  animation:oDrift2 38s ease-in-out infinite;
}
/* Orb 3 — cyan-violet mix, bottom-left */
.orb-3 {
  width:50vw; height:50vw;
  bottom:0%; left:10%;
  background:radial-gradient(circle, rgba(0,220,255,.1) 0%, rgba(100,80,220,.08) 45%, transparent 70%);
  animation:oDrift3 24s ease-in-out infinite;
}
/* Orb 4 — deep indigo, center */
.orb-4 {
  width:45vw; height:45vw;
  top:35%; left:30%;
  background:radial-gradient(circle, rgba(90,50,220,.13) 0%, transparent 65%);
  animation:oDrift4 50s ease-in-out infinite;
}
/* Orb 5 — small cyan accent, bottom-right */
.orb-5 {
  width:28vw; height:28vw;
  bottom:-8%; right:5%;
  background:radial-gradient(circle, rgba(0,229,255,.11) 0%, transparent 65%);
  animation:oDrift5 33s ease-in-out infinite;
}

@keyframes oDrift1 {
  0%,100% { transform:translate(0,0) scale(1); }
  33%      { transform:translate(5vw,9vh) scale(1.1); }
  66%      { transform:translate(-3vw,4vh) scale(0.94); }
}
@keyframes oDrift2 {
  0%,100% { transform:translate(0,0) scale(1); }
  40%      { transform:translate(-8vw,-6vh) scale(1.14); }
  70%      { transform:translate(4vw,11vh) scale(0.9); }
}
@keyframes oDrift3 {
  0%,100% { transform:translate(0,0) scale(1); }
  30%      { transform:translate(9vw,-7vh) scale(1.18); }
  65%      { transform:translate(-5vw,-3vh) scale(0.87); }
}
@keyframes oDrift4 {
  0%,100% { transform:translate(0,0) scale(1); }
  50%      { transform:translate(-6vw,-9vh) scale(1.22); }
}
@keyframes oDrift5 {
  0%,100% { transform:translate(0,0); }
  40%      { transform:translate(-7vw,-13vh); }
  70%      { transform:translate(5vw,-6vh); }
}

/* Upgrade existing mouse blob for beast mode */
.mouse-blob {
  width:900px !important; height:900px !important;
  background:radial-gradient(circle,
    rgba(0,229,255,.07) 0%,
    rgba(124,110,240,.04) 35%,
    transparent 70%
  ) !important;
}

/* Upgrade grain for beast mode — faster, slightly more visible */
.grain {
  animation-duration:0.2s !important;
  opacity:0.055 !important;
}

/* ════════════════════════════════════════════
   CONTACT FORM
════════════════════════════════════════════ */
.ct-form {
  display:flex; flex-direction:column; gap:20px;
  width:100%; max-width:520px;
}
.ct-form-row {
  display:grid; grid-template-columns:1fr 1fr; gap:16px;
}
.ct-form-group { display:flex; flex-direction:column; gap:8px; }
.ct-label {
  font-family:var(--f-mono); font-size:0.65rem; letter-spacing:0.1em;
  color:var(--primary); text-transform:uppercase;
}
.ct-input {
  background:rgba(0,229,255,0.04);
  border:1px solid rgba(0,229,255,0.12);
  border-radius:12px;
  padding:14px 18px;
  color:var(--text);
  font-family:var(--f-body); font-size:0.9rem;
  outline:none;
  transition:border-color 0.25s, background 0.25s;
  width:100%;
}
.ct-input::placeholder { color:var(--muted); }
.ct-input:focus {
  border-color:rgba(0,229,255,0.45);
  background:rgba(0,229,255,0.07);
}
.ct-textarea { resize:vertical; min-height:130px; }
.ct-form-submit {
  display:inline-flex; align-items:center; gap:10px;
  padding:16px 32px;
  background:var(--primary); color:#090b10;
  border:none; border-radius:var(--r-pill);
  font-family:var(--f-mono); font-size:0.78rem; font-weight:700;
  letter-spacing:0.1em; cursor:pointer;
  transition:opacity 0.2s, transform 0.2s;
  align-self:flex-start;
}
.ct-form-submit:hover { opacity:0.88; }
.ct-form-success {
  font-family:var(--f-mono); font-size:0.8rem; letter-spacing:0.05em;
  color:var(--primary); padding:12px 18px;
  border:1px solid rgba(0,229,255,0.25); border-radius:10px;
  background:rgba(0,229,255,0.05);
}
/* ── SOLAR SYSTEM SOCIAL ICONS ── */
.ct-solar-wrap { margin-top:36px; }

.ct-solar-label {
  font-family:var(--f-mono); font-size:0.58rem; letter-spacing:0.18em;
  color:var(--muted); text-transform:uppercase; margin-bottom:18px;
}

/* The 160×160 stage */
.ct-solar {
  position:relative; width:160px; height:160px;
}

/* Outer ambient glow */
.ct-solar::before {
  content:''; position:absolute; inset:-30px; border-radius:50%;
  background:radial-gradient(circle,
    rgba(0,229,255,0.07) 0%,
    rgba(124,110,240,0.04) 40%,
    transparent 70%
  );
  pointer-events:none;
}

/* Orbit ring — rotates to carry the glinting dot */
.ct-solar-orbit-ring {
  position:absolute; inset:12px;
  border-radius:50%;
  border:1px solid rgba(0,229,255,0.18);
  animation:solarRingRotate 14s linear infinite;
}
/* Glinting dot rides the ring */
.ct-solar-orbit-ring::before {
  content:''; position:absolute;
  top:-5px; left:50%;
  width:9px; height:9px; border-radius:50%;
  transform:translateX(-50%);
  background:var(--primary);
  box-shadow:0 0 10px var(--primary), 0 0 22px rgba(0,229,255,0.55);
}
/* Second faint ring */
.ct-solar-orbit-ring::after {
  content:''; position:absolute; inset:-22px; border-radius:50%;
  border:1px solid rgba(124,110,240,0.1);
}
@keyframes solarRingRotate {
  from { transform:rotate(0deg); }
  to   { transform:rotate(360deg); }
}

/* Central pulsing sun */
.ct-solar-sun {
  position:absolute; top:50%; left:50%;
  width:16px; height:16px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,0.95) 0%, var(--primary) 55%, transparent 100%);
  box-shadow:0 0 14px var(--primary), 0 0 30px rgba(0,229,255,0.45), 0 0 60px rgba(0,229,255,0.15);
  animation:sunPulse 3s ease-in-out infinite;
  z-index:4;
  pointer-events:none;
}
@keyframes sunPulse {
  0%,100% { transform:translate(-50%,-50%) scale(1);   box-shadow:0 0 14px var(--primary), 0 0 30px rgba(0,229,255,0.45); }
  50%     { transform:translate(-50%,-50%) scale(1.35); box-shadow:0 0 24px var(--primary), 0 0 50px rgba(0,229,255,0.65), 0 0 80px rgba(0,229,255,0.2); }
}

/* Planet icons — each orbits from its start angle */
.ct-planet {
  position:absolute; top:50%; left:50%;
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(9,11,16,0.88); backdrop-filter:blur(14px);
  border:1px solid rgba(0,229,255,0.14);
  color:rgba(232,236,242,0.6);
  z-index:3; cursor:pointer;
  transition:border-color .3s, color .3s, box-shadow .3s;
}
/* Hover glow ring */
.ct-planet::after {
  content:''; position:absolute; inset:-5px; border-radius:50%;
  border:1px solid transparent;
  transition:border-color .3s, box-shadow .3s;
}
.ct-planet:hover { animation-play-state:paused; color:var(--primary); border-color:rgba(0,229,255,0.5); }
.ct-planet:hover::after {
  border-color:rgba(0,229,255,0.3);
  box-shadow:0 0 14px rgba(0,229,255,0.18);
}

/* 3-planet orbit animations — each 120° apart, icons counter-rotate to stay upright */
.ct-planet[data-planet="0"] { animation:planet0 14s linear infinite; }
.ct-planet[data-planet="1"] { animation:planet1 14s linear infinite; }
.ct-planet[data-planet="2"] { animation:planet2 14s linear infinite; }

@keyframes planet0 {
  from { transform:translate(-50%,-50%) rotate(0deg)   translateX(62px) rotate(0deg);   }
  to   { transform:translate(-50%,-50%) rotate(360deg) translateX(62px) rotate(-360deg); }
}
@keyframes planet1 {
  from { transform:translate(-50%,-50%) rotate(120deg)  translateX(62px) rotate(-120deg); }
  to   { transform:translate(-50%,-50%) rotate(480deg)  translateX(62px) rotate(-480deg); }
}
@keyframes planet2 {
  from { transform:translate(-50%,-50%) rotate(240deg)  translateX(62px) rotate(-240deg); }
  to   { transform:translate(-50%,-50%) rotate(600deg)  translateX(62px) rotate(-600deg); }
}

@media (max-width:600px) {
  .ct-form-row { grid-template-columns:1fr; }
  .ct-form { max-width:100%; }
}

/* ════════════════════════════════════════════
   NAV ACTIONS WRAPPER (resume + hire me)
════════════════════════════════════════════ */
.nav-actions {
  display:flex; align-items:center; gap:.5rem; flex-shrink:0;
}

/* ── Resume download button ── */
.nav-resume {
  display:flex; align-items:center; gap:.4rem;
  font-family:var(--f-mono); font-size:.72rem; font-weight:500;
  letter-spacing:.05em; color:var(--muted);
  border:1px solid var(--border-sub); border-radius:9999px;
  padding:.46rem 1.05rem; white-space:nowrap;
  transition:color .3s, border-color .3s;
}
.nav-resume:hover { color:var(--primary); border-color:rgba(0,229,255,.4); }
@media (max-width:900px) { .nav-resume { display:none; } }

/* ════════════════════════════════════════════
   MOBILE HAMBURGER — fixed, always on top
════════════════════════════════════════════ */
.nav-hamburger {
  display:none;
  position:fixed; top:1.1rem; right:1.3rem;
  z-index:150;
  background:rgba(9,11,16,.82); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.08); border-radius:10px;
  padding:.55rem .6rem; cursor:pointer;
  flex-direction:column; gap:5px; align-items:center; justify-content:center;
  transition:border-color .3s, background .3s;
}
.nav-hamburger:hover { border-color:rgba(0,229,255,.35); background:rgba(9,11,16,.95); }
.nav-hamburger span {
  display:block; width:20px; height:1.5px;
  background:var(--text); border-radius:2px;
  transition:transform .32s cubic-bezier(.16,1,.3,1), opacity .28s;
}
.nav-hamburger.open span:nth-child(1) { transform:translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity:0; transform:scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform:translateY(-6.5px) rotate(-45deg); }

@media (max-width:768px) { .nav-hamburger { display:flex; } }

/* ════════════════════════════════════════════
   MOBILE NAV OVERLAY
════════════════════════════════════════════ */
.nav-mobile {
  position:fixed; inset:0; z-index:140;
  background:rgba(9,11,16,.97);
  backdrop-filter:blur(28px); -webkit-backdrop-filter:blur(28px);
  display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:1.8rem;
  opacity:0; pointer-events:none;
  transition:opacity .38s cubic-bezier(.16,1,.3,1);
}
.nav-mobile.open { opacity:1; pointer-events:auto; }

.nav-mobile-link {
  font-family:var(--f-display);
  font-size:clamp(2.2rem,10vw,4.5rem);
  font-weight:700; letter-spacing:-.025em; color:rgba(232,236,242,.75);
  opacity:0; transform:translateY(22px);
  transition:color .25s, letter-spacing .25s,
             opacity .42s cubic-bezier(.16,1,.3,1),
             transform .42s cubic-bezier(.16,1,.3,1);
}
/* stagger each link when open */
.nav-mobile.open .nav-mobile-link:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:.04s; }
.nav-mobile.open .nav-mobile-link:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:.09s; }
.nav-mobile.open .nav-mobile-link:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:.14s; }
.nav-mobile.open .nav-mobile-link:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:.19s; }
.nav-mobile.open .nav-mobile-link:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:.24s; }

.nav-mobile-link:hover { color:var(--primary); letter-spacing:.01em; }

.nav-mobile-resume {
  font-family:var(--f-mono) !important;
  font-size:clamp(.75rem,3vw,1rem) !important;
  letter-spacing:.18em !important;
  color:var(--muted) !important;
  border:1px solid var(--border-sub);
  border-radius:9999px;
  padding:.6rem 1.8rem;
  margin-top:.8rem;
  transition:color .3s, border-color .3s !important;
}
.nav-mobile-resume:hover { color:var(--primary) !important; border-color:rgba(0,229,255,.4); }

/* ════════════════════════════════════════════
   HUD CHECKLIST — pending item style
════════════════════════════════════════════ */
.fl-check.fl-check--pending {
  color:rgba(255,255,255,.28);
}
.fl-check.fl-check--pending::before {
  content:'○';
  color:rgba(255,255,255,.2);
}

/* ════════════════════════════════════════════
   COMPREHENSIVE MOBILE / RESPONSIVE OVERRIDES
   iPhone 16 Pro Max · tablets · all phones
════════════════════════════════════════════ */

/* ── iOS/Android: prevent font auto-inflation ── */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }

/* ── Remove tap highlight on touch devices ── */
@media (hover:none) {
  * { -webkit-tap-highlight-color:transparent; }
}

/* ── Safe-area for Dynamic Island / notch ── */
#navbar {
  top:max(1.1rem, calc(env(safe-area-inset-top) + .4rem));
}
.nav-hamburger {
  top:max(1.1rem, calc(env(safe-area-inset-top) + .4rem));
  right:max(1.3rem, calc(env(safe-area-inset-right) + 1.3rem));
}

/* ── Nav: hide desktop actions on mobile (hamburger handles navigation) ── */
@media (max-width:768px) {
  .nav-actions { display:none; }
}

/* ── Hero: tighter, cleaner text overlay on phones ── */
@media (max-width:768px) {
  .hero-index   { display:none; }
  .cin-text     { padding:0 1.5rem 5rem; }
  .hero-eyebrow { margin-bottom:1.2rem; }
  .hero-heading { font-size:clamp(2.4rem,11vw,4.5rem) !important; }
  .hero-bottom  { margin-top:1.5rem; padding-top:1.2rem; gap:1rem; }
  .btn-primary,
  .btn-ghost    { padding:.8rem 1.4rem; }
}

/* ── About: tighter on small phones ── */
@media (max-width:600px) {
  #about { padding:4rem 1.25rem 5rem; }
  .about-heading { font-size:clamp(2rem,9vw,3.2rem) !important; }
  .about-stats   { gap:1.1rem; margin-top:2rem; padding-top:2rem; }
}

/* ── Projects: tinier cards on small phones ── */
@media (max-width:480px) {
  .proj-stage { height:440px; }
  .pc-card    { width:240px; height:370px; }
  .pc-art     { height:170px; }
  .projects-header { padding:4rem 1.5rem 2rem; }
  .projects-footer { padding:2rem 1.5rem; text-align:center; }
}

/* ── Skills: cap tag overflow + fix iOS viewport height ── */
@media (max-width:768px) {
  .cat-tags { max-width:calc(100vw - 3rem); }
}
/* svh = "small viewport height" — excludes Safari URL bar, prevents clipping */
#skills { height:100vh; height:100svh; }

/* ── Finale: fix iOS height + hide cards that overlap portrait on phones ── */
#finale { height:100vh; height:100svh; }

@media (max-width:600px) {
  /* Cards are 38vw ≈ 163px; portrait is 36vw ≈ 155px; they collide — hide cards */
  .fl-card          { display:none; }
  .fl-portrait-wrap { width:clamp(170px,52vw,240px); }
  .fl-subtitle-wrap { bottom:7.5rem; }
  .fl-status-badge  { bottom:4.5rem; }
}

/* ── Footer on very small phones ── */
@media (max-width:480px) {
  #footer { padding:2rem 1.25rem; }
  .footer-copy { font-size:.5rem; letter-spacing:.12em; }
}

/* ── Tablet (769–1024px): minor tweaks ── */
@media (min-width:769px) and (max-width:1024px) {
  .about-container { gap:3rem; }
  .about-stats     { grid-template-columns:repeat(2,1fr); }
  .hero-heading    { font-size:clamp(3rem,8vw,6rem); }
}
