@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

:root {
  --bg-deep: #050508;
  --bg-primary: #0a0a12;
  --bg-secondary: #111118;
  --bg-elevated: #1a1a24;
  --accent-primary: #7c3aed;
  --accent-secondary: #a855f7;
  --accent-tertiary: #c084fc;
  --text-primary: #f0eef5;
  --text-secondary: #9896a8;
  --text-tertiary: #5c5a6e;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --mx: 50vw;
  --my: 50vh;
}

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

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  display: flex;
}

.loader-slice {
  flex: 1;
  height: 100%;
  background-color: #000000;
  will-change: transform;
}

/* ─── Iron Man HUD Overlay ─── */
.hud-overlay {
  position: absolute;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Command Caret with Typewriter (Absolute Minimalism) */
.typewriter-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.typewriter-text {
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 3s steps(22, end) forwards;
}

.command-caret {
  width: 2px;
  height: 16px;
  background-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
  border-radius: 1px;
  animation: caret-pulse 0.8s ease-in-out infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 22.5ch; } /* Exactly 22 chars of "INITIALIZING SYSTEM..." + padding */
}

@keyframes caret-pulse {
  0%, 100% { 
    opacity: 0.2; 
    transform: scaleY(0.8); 
  }
  50% { 
    opacity: 1; 
    transform: scaleY(1.2); 
  }
}

@keyframes reactor-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* (loader-text styles removed) */

/* (hud-status-bottom styles removed) */

/* Corner brackets */
.hud-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: rgba(124, 58, 237, 0.4);
  border-style: solid;
  border-width: 0;
}

.hud-tl { top: clamp(1rem, 3vh, 2rem); left: clamp(1rem, 3vw, 2rem); border-top-width: 1.5px; border-left-width: 1.5px; }
.hud-tr { top: clamp(1rem, 3vh, 2rem); right: clamp(1rem, 3vw, 2rem); border-top-width: 1.5px; border-right-width: 1.5px; }
.hud-bl { bottom: clamp(1rem, 3vh, 2rem); left: clamp(1rem, 3vw, 2rem); border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud-br { bottom: clamp(1rem, 3vh, 2rem); right: clamp(1rem, 3vw, 2rem); border-bottom-width: 1.5px; border-right-width: 1.5px; }

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: #000000;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.webgl-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  overflow: hidden;
  background-color: #000000;
  transform-origin: center center;
  will-change: transform, clip-path;
  pointer-events: none;
}

.inspired-header {
  position: absolute;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 6;
  /* Behind webgl, above marquee */
  pointer-events: none;
}

.inspired-text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.marquee-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5vh;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  opacity: 0.15;
  /* Subtle opacity so it stays in the background */
  transform: rotate(-2deg) scale(1.1);
  /* Slight rotation looks dynamic */
}

.marquee-track {
  display: flex;
  width: fit-content;
  white-space: nowrap;
  will-change: transform;
}

.marquee-track.dir-left {
  animation: marquee-left 40s linear infinite;
}

.marquee-track.dir-right {
  animation: marquee-right 40s linear infinite;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 7vh;
  font-weight: 900;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-primary);
  /* Bright purple stroke to contrast dark bg */
  padding-right: 0.5em;
  letter-spacing: 0.05em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}



.signature-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: auto;
  z-index: 50;
  pointer-events: none;
}

.signature-path {
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  will-change: stroke-dashoffset;
}

#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
}

#cursor-glow::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  transform: translate(calc(var(--mx) - 250px), calc(var(--my) - 250px));
  will-change: transform;
}

#content {
  position: relative;
  z-index: 2;
}

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  z-index: 100;
  mix-blend-mode: difference;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

#main-nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease-out-expo);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 3rem;
  position: relative;
}


.hero-content {
  position: absolute;
  top: 50%;
  left: 6vw;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 11;
  pointer-events: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-title {
  font-size: clamp(5rem, min(6vw, 8vh), 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

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

.hero-tagline {
  font-size: clamp(1rem, min(1.7vw, 3vh), 1.5rem);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  white-space: nowrap;
}



.scroll-text {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--text-tertiary);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  animation: scrollPulse 2s var(--ease-out-expo) infinite;
}

@keyframes scrollPulse {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(200%);
  }
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 2rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin-bottom: 3rem;
}

.about-layout-new {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 6rem 3rem;
  background-color: #000000;
  /* Matching contact section background */
}

.about-edge-img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: clamp(300px, 60vh, 800px);
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
  filter: drop-shadow(0 0 40px rgba(124, 58, 237, 0.5));
  /* purple glow */
}

.about-laptop {
  left: 0;
}

.about-gamepad {
  right: -3vw;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
  z-index: 2;
  width: 100%;
}

.about-left-col {
  max-width: 850px;
  justify-self: center;
}

.about-title-custom {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-right-col {
  display: flex;
  justify-content: center;
}

.about-stats {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
}



.work-scroll-section {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #0a0a12;
  overflow: hidden;
  padding: 4rem 0 0 0;
  width: 100%;
}

.work-header-container {
  padding: 0 4rem;
  margin-bottom: 3.5rem;
  width: 100%;
  text-align: center;
}

.work-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #7c3aed;
  display: block;
  margin-bottom: 0rem;
}

.work-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #f0eef5;
}

.projects-track {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  padding: 0 4rem;
  padding-left: calc(50vw - 250px);
  width: max-content;
  will-change: transform;
}

.project-card:nth-child(even) {
  margin-top: 21rem;
}

.project-card {
  position: relative;
  width: 500px;
  background-color: #111118;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.1s ease-out, background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.project-card:hover {
  background-color: #1a1a24;
  transform: scale(1.05);
}

.project-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #0c0c0e;
  overflow: hidden;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.04);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 1.2s var(--ease-out-expo), filter 1.2s var(--ease-out-expo);
  will-change: transform, filter;
  filter: grayscale(1) brightness(0.6);
}

.project-card:hover .project-img {
  transform: scale(1.08);
  filter: grayscale(0) brightness(1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 18, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
  z-index: 5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.overlay-meta {
  color: #5c5a6e;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.overlay-action {
  color: #f0eef5;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-info {
  padding: 1.5rem 2rem;
}

.project-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f0eef5;
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 1rem;
  color: #9896a8;
}

#contact {
  height: 100vh;
  height: 100dvh;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.contact-link {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--accent-secondary);
  display: inline-block;
  margin-bottom: 3rem;
  position: relative;
  transition: color 0.3s var(--ease-out-expo);
}

.contact-link:hover {
  color: var(--accent-tertiary);
}

.social-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color 0.3s var(--ease-out-expo);
}

.social-link:hover {
  color: var(--text-primary);
}

.overflow-hidden {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.word {
  display: inline-flex;
}

.word-space {
  display: inline-block;
  width: 0.3em;
}

.char {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.45s var(--ease-out-expo);
  will-change: transform;
}

.char.revealed {
  transform: translateY(0);
}

.footer-bar {
  padding: 2rem 3rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}

@media (max-width: 1600px) {

  /* Hero Section tweaks for tablet */
  .hero-content {
    left: 10vw;
    top: 45%;
    transform-origin: center;
    transform: translate(-50%, -50%);
    align-items: flex-start;
  }

  .hero-title {
    font-size: clamp(3.5rem, min(6vh, 8vw), 6rem);
    margin-bottom: 1rem;
  }

  .hero-tagline {
    font-size: clamp(0.9rem, min(2.5vh, 3vw), 1rem);
    max-width: 500px;
    white-space: normal;
    text-align: left;
  }

  /* About Layout for tablet — same as mobile */
  .about-layout-new {
    padding: clamp(4rem, 8vh, 5rem) 1.5rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    text-align: center;
    padding: 0 5%;
  }

  .about-left-col {
    justify-self: center;
    max-width: 1100px;
  }

  .about-images {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 60%;
    margin-bottom: 1rem;
  }

  .about-edge-img {
    position: relative;
    opacity: 1;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    height: auto;
    width: 48%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background-color: rgba(25, 25, 35, 0.5);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.1);
    z-index: 2;
  }

  .about-laptop {
    left: auto;
  }

  .about-gamepad {
    right: auto;
  }

  .about-right-col {
    justify-content: center;
  }

  .about-stats {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 101;
}

.mobile-menu-btn .bar {
  width: 30px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  #main-header {
    padding: 1.5rem;
  }

  .mobile-menu-btn {
    display: flex !important;
  }

  #main-header {
    transition: mix-blend-mode 0.3s ease;
  }

  #main-header.menu-open {
    mix-blend-mode: normal;
  }

  #main-header.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-secondary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
  }

  #main-header.menu-open::before {
    opacity: 1;
  }

  #main-nav {
    display: flex;
    /* Always flex but invisible */
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
  }

  #main-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #main-nav .nav-link {
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(30px);
    transition: none;
    /* Let GSAP handle it */
  }

  #main-nav.active .nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-content {
    left: 5%;
    top: auto;
    bottom: clamp(40px, 14svh, 160px);
    transform: none;
    transform-origin: left center;
    align-items: flex-start;
    text-align: left;
    width: 90%;
  }

  .hero-title {
    font-size: clamp(1.5rem, calc(-4.25rem + 24.6vw), 3rem);
    margin-bottom: 0.5rem;
  }

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

  .hero-tagline {
    font-size: clamp(0.6rem, calc(-1.4rem + 8.6vw), 1.1rem);
    max-width: 90%;
    white-space: normal;
    text-align: left;
    margin: 0;
  }

  .scroll-indicator {
    scale: clamp(0.5, calc(-0.65 + 0.31vw), 0.8);
    left: 48%;
    bottom: 1.5rem;
  }

  .webgl-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 20%, transparent 35%);
    pointer-events: none;
    z-index: 11;
  }

  .section,
  #work,
  .work-scroll-section {
    padding: clamp(3rem, 6vh, 4rem) 1.5rem;
    align-items: center;
  }

  .about-layout-new {
    padding: clamp(4rem, 8vh, 5rem) 1.5rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: clamp(2.1rem, 6vw, 4rem);
    text-align: left;
    /* Image has left-aligned text */
  }

  .about-left-col {
    justify-self: flex-start;
    max-width: 100%;
  }

  .about-images {
    display: none;
  }

  .about-edge-img {
    position: relative;
    opacity: 1;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    height: auto;
    width: 48%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background-color: rgba(25, 25, 35, 0.5);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.1);
    z-index: 2;
  }

  .about-laptop {
    left: auto;
  }

  .about-gamepad {
    right: auto;
  }

  .about-right-col {
    justify-content: center;
  }

  .about-stats {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
  }

  .work-scroll-section {
    height: auto;
  }

  .work-header-container {
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
  }

  .projects-track {
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
    gap: 2rem;
  }

  .project-card:nth-child(even) {
    margin-top: 0;
  }

  .project-card {
    width: calc(100% - 2rem);
    max-width: none;
    margin: 0 auto;
  }
}









body.webgl-loaded {
  background-image: none !important;
}

body.webgl-loaded .webgl-wrapper {
  background-image: none !important;
}

body.webgl-loaded .webgl-wrapper::before,
body.webgl-loaded .webgl-wrapper::after {
  display: none !important;
}

/* ─── Reveal Rectangle Button ─── */
.reveal-btn {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  border: 1.5px solid rgba(124, 58, 237, 0.7);
  border-radius: 6px;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.35s var(--ease-out-expo),
    transform 0.3s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 0 rgba(124, 58, 237, 0);
}

.reveal-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(124, 58, 237, 0.15) 0%,
      rgba(168, 85, 247, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out-expo);
}

.reveal-btn-text {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  transition: color 0.3s var(--ease-out-expo);
  white-space: nowrap;
}

/* Reveal button labels */
.reveal-btn-text.desktop      { display: inline; }
.reveal-btn-text.touch        { display: none; }
.reveal-btn-text.touch-active { display: none; }

/* Hover state */
.reveal-btn:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.4),
    0 0 40px rgba(124, 58, 237, 0.15);
  transform: translateY(-2px);
}

.reveal-btn:hover::before {
  opacity: 1;
}

.reveal-btn:hover .reveal-btn-text {
  color: var(--accent-tertiary);
}

/* Active / toggled state */
.reveal-btn.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.6),
    0 0 60px rgba(124, 58, 237, 0.2);
}

.reveal-btn.active::before {
  opacity: 1;
  background: linear-gradient(135deg,
      rgba(124, 58, 237, 0.25) 0%,
      rgba(168, 85, 247, 0.15) 100%);
}

.reveal-btn.active .reveal-btn-text {
  color: var(--text-primary);
}

/* ── Responsive sizing ── */

/* Tablet (≤ 1024px) — switch label to TAP TO LOCK */
@media (max-width: 1024px) {
  .reveal-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.6rem 1.3rem;
  }

  .reveal-btn-text {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  /* Swap labels on tablet/mobile */
  .reveal-btn-text.desktop { display: none; }
  .reveal-btn-text.touch   { display: inline; }
  
  .reveal-btn.active .reveal-btn-text.touch        { display: none; }
  .reveal-btn.active .reveal-btn-text.touch-active { display: inline; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .reveal-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.55rem 1.1rem;
    border-radius: 5px;
  }

  .reveal-btn-text {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
  }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
  .reveal-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
  }

  .reveal-btn-text {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }
}

/* ─── Landscape Orientation Splash (TVA) ─── */
.landscape-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #050508;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.landscape-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 480px;
}

.tva-badge {
  width: 64px;
  height: 64px;
  border: 1.5px solid #7c3aed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tva-pulse 2.5s ease-in-out infinite;
}

.tva-title {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a855f7;
  animation: tva-glitch 4s ease-in-out infinite;
}

.tva-message {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tva-highlight {
  color: #a855f7;
  font-weight: 700;
}

.tva-sub {
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.tva-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
  margin-top: 0.5rem;
  animation: tva-line-pulse 2s ease-in-out infinite;
}

@keyframes tva-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 107, 53, 0); }
  50% { box-shadow: 0 0 30px rgba(255, 107, 53, 0.3), 0 0 60px rgba(255, 107, 53, 0.1); }
}

@keyframes tva-glitch {
  0%, 92%, 100% { transform: none; opacity: 1; }
  93% { transform: translateX(-3px) skewX(-1deg); opacity: 0.8; }
  94% { transform: translateX(3px) skewX(1deg); opacity: 0.9; }
  95% { transform: translateX(-1px); opacity: 1; }
}

@keyframes tva-line-pulse {
  0%, 100% { opacity: 0.4; width: 40px; }
  50% { opacity: 1; width: 80px; }
}

/* Show splash on mobile/tablet landscape (up to iPad Pro 12.9") */
@media (max-width: 1366px) and (orientation: landscape) {
  .landscape-splash {
    display: flex;
  }
}