/* ════════════════════════════════════════════════════════════
   ABYNS STUDIO — Cinematic Immersive Website
   Premium dark-mode design system with glassmorphism,
   parallax, and cinematic transitions.
   Powered by GSAP ScrollTrigger + Lenis Smooth Scroll
   ════════════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES (DESIGN TOKENS) ─── */
:root {
  /* Palette */
  --clr-bg: #0a0a0f;
  --clr-surface: #12121a;
  --clr-glass: rgba(255, 255, 255, 0.04);
  --clr-glass-border: rgba(255, 255, 255, 0.08);
  --clr-text: #e8e6e3;
  --clr-text-dim: rgba(255, 255, 255, 0.5);
  --clr-accent: #c9a84c;
  --clr-accent-glow: rgba(201, 168, 76, 0.35);
  --clr-white: #ffffff;

  /* Neon Aurora Palette */
  --clr-neon-purple: rgba(147, 51, 234, 0.15);
  --clr-neon-green: rgba(34, 197, 94, 0.1);
  --clr-neon-blue: rgba(59, 130, 246, 0.15);
  --clr-neon-yellow: #facc15; /* Firefly core */

  /* Typography */
  --ff-display: "Playfair Display", Georgia, serif;
  --ff-body: "Outfit", "Inter", -apple-system, sans-serif;
  --ff-mono: "Inter", sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Easing tokens (CSS fallbacks — GSAP handles the real work) */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-slow: 1.4s;
  --duration-med: 0.8s;
  --duration-fast: 0.4s;

  /* Z-index layers */
  --z-video: 1;
  --z-overlay: 2;
  --z-content: 3;
  --z-nav: 100;
  --z-grain: 150;
  --z-loader: 500;
  --z-cursor: 9999;
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Lenis requires html to NOT have scroll-behavior: smooth */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--ff-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* custom cursor */
}

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

img,
video {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--clr-accent);
  color: var(--clr-bg);
}

/* ═══════════════════════════════════════════
   VIDEO LOADING SCREEN
   scene-loader.mp4 plays as cinematic intro.
   Auto-transitions with zoom + flash (kinclong).
   ═══════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: none !important;
}

.loader * {
  cursor: none !important;
}

.loader.is-hidden {
  pointer-events: none;
}

/* Zoom-in exit transition */
.loader.is-zooming {
  transition:
    transform 1.2s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.6s;
  transform: scale(1.8);
  opacity: 0;
}

.loader.is-zooming .loader__inner {
  display: none !important;
}

/* Fullscreen video background (plays once, no loop) */
.loader__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 1.5s var(--ease-smooth),
    transform 6s var(--ease-smooth);
}

.loader__video.is-playing {
  opacity: 1;
  transform: scale(1);
}

/* Dark gradient overlay for text readability */
.loader__video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center,
      rgba(10, 10, 15, 0.35) 0%,
      rgba(10, 10, 15, 0.7) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 15, 0.4) 0%,
      rgba(10, 10, 15, 0.2) 40%,
      rgba(10, 10, 15, 0.3) 70%,
      rgba(10, 10, 15, 0.65) 100%
    );
  z-index: 2;
  pointer-events: none;
}

.loader__inner {
  position: relative;
  z-index: 3;
  text-align: center;
}

/* ─── "WELCOME NEW ERA" TYPOGRAPHY ─── */
.loader__welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-md);
}

.loader__welcome-line {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--clr-white);
  opacity: 0;
  transform: translateY(40px);
  animation: welcomeReveal 1.4s var(--ease-out-expo) forwards;
  animation-delay: calc(var(--i) * 0.35s + 0.5s);
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
  letter-spacing: 0.04em;
}

.loader__welcome-line--accent {
  color: var(--clr-accent);
  font-style: italic;
  text-shadow:
    0 0 50px var(--clr-accent-glow),
    0 0 100px var(--clr-accent-glow);
  font-size: clamp(3rem, 9vw, 7rem);
}

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

/* ─── PROGRESS BAR ─── */
.loader__progress-area {
  transition: opacity 0.6s var(--ease-smooth);
}

.loader__wait-text {
  width: 200px;
  margin: 0 auto 6px;
  text-align: right;
  font-family: var(--ff-body);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--clr-accent);
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.loader__bar-track {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  margin: 0 auto var(--space-sm);
  overflow: hidden;
}

.loader__bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-white));
  border-radius: 2px;
  transition: width 0.3s var(--ease-smooth);
}

.loader__text {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: var(--clr-text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.loader__hint {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  color: var(--clr-accent);
  letter-spacing: 0.1em;
  font-weight: 300;
  opacity: 0.6;
  animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* ─── FLASH / KINCLONG OVERLAY ─── */
.loader__flash {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: white;
  opacity: 0;
  pointer-events: none;
}

.loader__flash.is-flashing {
  animation: whiteFlash 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes whiteFlash {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════
   GRAIN OVERLAY — Cinematic texture
   ═══════════════════════════════════════════ */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* ═══════════════════════════════════════════
   NAVIGATION BAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  transition: background var(--duration-med) var(--ease-smooth);
  transform: translateY(-100%);
  opacity: 0;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.1); /* Light white glass */
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar__brand {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--clr-accent);
  text-shadow: 0 0 20px var(--clr-accent-glow);
  transition: text-shadow var(--duration-fast);
}

.navbar__brand:hover {
  text-shadow:
    0 0 40px var(--clr-accent-glow),
    0 0 80px var(--clr-accent-glow);
}

.navbar__links {
  display: flex;
  gap: var(--space-md);
}

.navbar__link {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--duration-fast);
}

.navbar__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-accent);
  transition: width var(--duration-med) var(--ease-out-expo);
}

.navbar__link:hover,
.navbar__link.is-active {
  color: var(--clr-white);
}

.navbar__link:hover::after,
.navbar__link.is-active::after {
  width: 100%;
}

/* Scroll progress bar */
.navbar__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
}

.navbar__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--clr-accent),
    rgba(201, 168, 76, 0.3)
  );
  /* Animated by GSAP */
}

/* ═══════════════════════════════════════════
   SCROLL INDICATOR
   ═══════════════════════════════════════════ */
.scroll-indicator {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 1;
  transition: opacity 1s var(--ease-smooth);
}

.scroll-indicator.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator__mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  position: relative;
}

.scroll-indicator__dot {
  width: 4px;
  height: 8px;
  background: var(--clr-accent);
  border-radius: 4px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2.5s var(--ease-in-out) infinite;
  box-shadow: 0 0 10px var(--clr-accent-glow);
}

@keyframes scrollDot {
  0%,
  100% {
    opacity: 1;
    top: 8px;
  }
  50% {
    opacity: 0.3;
    top: 22px;
  }
}

.scroll-indicator__text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  font-weight: 300;
}

/* ═══════════════════════════════════════════
   SCENE (SECTION) LAYOUT
   ═══════════════════════════════════════════ */
.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Video background wrapper — oversized for zoom headroom */
.scene__video-wrap {
  position: absolute;
  inset: -60px; /* Extra space for zoom effect */
  z-index: var(--z-video);
  will-change: transform;
}

.scene__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: auto;
  opacity: 0;
  transition: opacity 1s var(--ease-smooth);
}

.scene__video.is-loaded {
  opacity: 1;
}

/* ─── OVERLAYS ─── */
.scene__overlay {
  position: absolute;
  inset: 0;
  z-index: var(--z-overlay);
  pointer-events: none;
}

.scene__overlay--gradient {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.4) 0%,
    rgba(10, 10, 15, 0.15) 35%,
    rgba(10, 10, 15, 0.15) 65%,
    rgba(10, 10, 15, 0.75) 100%
  );
}

.scene__overlay--vignette {
  background:
    radial-gradient(
      ellipse at center,
      transparent 40%,
      rgba(10, 10, 15, 0.65) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 15, 0.3) 0%,
      transparent 20%,
      transparent 80%,
      rgba(10, 10, 15, 0.5) 100%
    );
}

.scene__overlay--dark {
  background:
    radial-gradient(
      ellipse at center,
      transparent 30%,
      rgba(10, 10, 15, 0.7) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 15, 0.5) 0%,
      rgba(10, 10, 15, 0.35) 50%,
      rgba(10, 10, 15, 0.6) 100%
    );
}

.scene__overlay--gradient-up {
  background: linear-gradient(
    0deg,
    rgba(10, 10, 15, 0.6) 0%,
    rgba(10, 10, 15, 0.2) 40%,
    rgba(10, 10, 15, 0.2) 60%,
    rgba(10, 10, 15, 0.55) 100%
  );
}

.global-curtain {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--clr-bg);
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

/* ─── CONTENT POSITIONING ─── */
.scene__content {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-lg);
  will-change: transform;
}

.scene__content--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scene__content--split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* ─── CONTACT SECTION ─── */
.scene__overlay--contact {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 15, 0.7) 0%,
    rgba(10, 10, 15, 0.3) 50%,
    rgba(10, 10, 15, 0.5) 100%
  );
}

.scene__content--contact {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 5rem var(--space-lg) 3rem;
}

.contact-card {
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.1),
    rgba(34, 197, 94, 0.05),
    rgba(59, 130, 246, 0.1)
  );
  backdrop-filter: blur(25px) saturate(1.8);
  -webkit-backdrop-filter: blur(25px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  max-width: 800px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Neon border for contact card */
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(
    90deg,
    rgba(147, 51, 234, 0.5),
    rgba(34, 197, 94, 0.5),
    rgba(59, 130, 246, 0.5),
    rgba(147, 51, 234, 0.5)
  );
  background-size: 200% auto;
  animation: neonBorderShift 5s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes neonBorderShift {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.contact-card__header {
  margin-bottom: 2.5rem;
}

.contact-card__label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 0.8rem;
}

.contact-card__title {
  font-family: var(--ff-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-white);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Two-column body */
.contact-card__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.4s var(--ease-smooth);
  resize: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.08);
}

.form-textarea {
  min-height: 90px;
}

.form-submit {
  border: none;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.8rem 2rem;
}

/* Contact details column */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 2.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: center;
}

.contact-details__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact-details__icon {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.7;
}

.contact-details__label {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 0.2rem;
}

.contact-details__value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

a.contact-details__value:hover {
  color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .contact-card__body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-details {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
  }
  .scene__content--contact {
    align-items: center;
    justify-content: center;
  }
}

.scene__content--right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ─── TEXT ELEMENTS ─── */
.scene__label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-sm);
}

.scene__label--center {
  text-align: center;
}

.scene__heading {
  font-family: var(--ff-display);
  font-size: clamp(
    1.8rem,
    4vw,
    3.5rem
  ); /* Slightly smaller to fit long words comfortably */
  font-weight: 700;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
  white-space: normal;
  word-break: keep-all; /* Prevents breaking within words */
  overflow-wrap: normal;
}

.scene__heading--center {
  text-align: center;
}

.scene__text {
  font-family: var(--ff-body);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--clr-text-dim);
  max-width: 480px;
}

.scene__text--center {
  text-align: center;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   HERO SECTION — Special styling
   ═══════════════════════════════════════════ */
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.hero__title-line {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--clr-white);
  letter-spacing: -0.02em;
  /* Initial state — GSAP animates from here */
  opacity: 0;
  transform: translateY(100%);
}

.hero__title-line--accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--clr-accent);
  text-shadow: 0 0 60px var(--clr-accent-glow);
  font-style: italic;
}

.hero__subtitle {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 200;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  opacity: 0;
  transform: translateY(40px);
}

.hero__divider {
  width: 80px;
  height: 1px;
  background: var(--clr-accent);
  margin-top: var(--space-md);
  transform: scaleX(0);
  transform-origin: center;
  box-shadow: 0 0 15px var(--clr-accent-glow);
}

/* ═══════════════════════════════════════════
   GLASSMORPHISM PANELS
   ═══════════════════════════════════════════ */
.glass-panel {
  background: linear-gradient(
    135deg,
    var(--clr-neon-purple) 0%,
    var(--clr-neon-green) 50%,
    var(--clr-neon-blue) 100%
  );
  backdrop-filter: blur(25px) saturate(1.8);
  -webkit-backdrop-filter: blur(25px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: var(--space-lg);
  max-width: 600px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Glowing Neon Border using pseudo-element */
.glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(147, 51, 234, 0.5),
    rgba(34, 197, 94, 0.5),
    rgba(59, 130, 246, 0.5),
    transparent
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  background-size: 200% auto;
  animation: neonBorderShift 8s linear infinite;
}

/* White text inside light glass with shadow for readability */
.glass-panel .scene__heading {
  color: var(--clr-white);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.glass-panel .scene__text {
  color: var(--clr-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 300;
}

.glass-panel .scene__label {
  color: var(--clr-accent);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.glass-panel--wide {
  max-width: 640px;
}

/* ═══════════════════════════════════════════
   PORTFOLIO CARDS — 3D Tilt
   ═══════════════════════════════════════════ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  width: 100%;
  max-width: 1100px;
}

.portfolio-card {
  position: relative;
  perspective: 1000px;
  cursor: none;
}

.portfolio-card__inner {
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.08),
    rgba(59, 130, 246, 0.08)
  );
  backdrop-filter: blur(25px) saturate(1.8);
  -webkit-backdrop-filter: blur(25px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0;
  transition:
    transform 0.6s var(--ease-out-expo),
    box-shadow 0.6s var(--ease-out-expo),
    border-color 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Portfolio Hover Neon Glow */
.portfolio-card:hover .portfolio-card__inner {
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(147, 51, 234, 0.2);
}

/* ─── FIREFLIES (KUNANG-KUNANG) ─── */
.fireflies-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2; /* Between video and content */
  overflow: hidden;
}

.firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--clr-neon-yellow);
  border-radius: 50%;
  filter: blur(1px);
  box-shadow:
    0 0 10px 2px var(--clr-neon-yellow),
    0 0 20px 8px rgba(250, 204, 21, 0.4),
    0 0 40px 12px rgba(250, 204, 21, 0.1);
  opacity: 0;
  will-change: transform, opacity;
}

.portfolio-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--clr-glass-border);
}

.portfolio-card__content {
  padding: 1.5rem 1.5rem 2rem; /* Reduced padding to bring button up and fix "stretched" look */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-card:hover .portfolio-card__inner {
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(201, 168, 76, 0.08);
}

.portfolio-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(201, 168, 76, 0.12),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: -1;
}

.portfolio-card:hover .portfolio-card__glow {
  opacity: 1;
}

.portfolio-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(201, 168, 76, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}

.portfolio-card__title {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: var(--space-xs);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-card__desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--clr-white);
  line-height: 1.7;
  opacity: 0.85;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--space-md);
}

.portfolio-card__btn {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(147, 51, 234, 0.4);
  border-radius: 50px;
  cursor: none; /* Cursor follows custom cursor */
  transition: all 0.4s var(--ease-out-expo);
  opacity: 0.15; /* Semi-visible by default for discoverability */
  transform: translateY(5px);
  text-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.1);
}

.portfolio-card:hover .portfolio-card__btn {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card__btn:hover {
  background: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 1);
  box-shadow: 0 0 25px rgba(147, 51, 234, 0.4);
  letter-spacing: 0.15em;
}

/* ═══════════════════════════════════════════
   CTA BUTTON
   ═══════════════════════════════════════════ */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: var(--space-lg);
  padding: 18px 52px;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-bg);
  background: var(--clr-accent);
  border: none;
  border-radius: 60px;
  cursor: none;
  overflow: hidden;
  transition:
    transform 0.6s var(--ease-out-expo),
    box-shadow 0.6s var(--ease-out-expo);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 15px 40px rgba(201, 168, 76, 0.25),
    0 0 60px rgba(201, 168, 76, 0.15);
}

.cta-button__text {
  position: relative;
  z-index: 2;
}

.cta-button__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.cta-button:hover .cta-button__glow {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════ */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20000; /* Above everything including modals */
  pointer-events: none;
}

.custom-cursor__dot {
  width: 6px;
  height: 6px;
  background: var(--clr-white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-smooth);
}

.custom-cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s var(--ease-out-expo),
    height 0.4s var(--ease-out-expo),
    border-color 0.3s;
}

.custom-cursor.is-hover .custom-cursor__ring {
  width: 64px;
  height: 64px;
  border-color: var(--clr-accent);
}

.custom-cursor.is-hover .custom-cursor__dot {
  transform: translate(-50%, -50%) scale(2);
  background: var(--clr-accent);
}

/* ═══════════════════════════════════════════
   GSAP ANIMATION INITIAL STATES
   GSAP will animate TO the final values.
   We set initial hidden states here via CSS,
   then GSAP animates them into view.
   ═══════════════════════════════════════════ */

/* Content reveal elements — GSAP animates from these */
[data-anim] {
  will-change: transform, opacity;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .scene__content {
    padding: var(--space-md);
  }
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar {
    padding: var(--space-sm) var(--space-md);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .glass-panel {
    padding: var(--space-md);
    max-width: 100%;
  }

  .scene__content--left,
  .scene__content--right {
    justify-content: center;
  }

  .hero__title-line {
    font-size: clamp(3rem, 14vw, 6rem);
  }

  .scene__heading {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }

  /* Hide custom cursor on touch devices */
  .custom-cursor {
    display: none !important;
  }

  body {
    cursor: auto;
  }

  .cta-button,
  .portfolio-card,
  .navbar__brand,
  .navbar__link {
    cursor: pointer;
  }

  .scroll-indicator {
    bottom: var(--space-md);
  }
}

@media (max-width: 480px) {
  .scene__content {
    padding: var(--space-sm);
  }

  .glass-panel {
    padding: var(--space-md) var(--space-sm);
    border-radius: 14px;
  }

  .cta-button {
    padding: 15px 36px;
    font-size: 0.78rem;
  }
}

/* ─── SOUND TOGGLE ─── */
.sound-toggle {
  position: fixed;
  bottom: 2rem;
  left: 3rem;
  z-index: var(--z-ui);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  color: var(--clr-white);
  opacity: 0.7;
  transition: all 0.3s var(--ease-smooth);
}

.sound-toggle:hover {
  opacity: 1;
  background: rgba(10, 10, 15, 0.6);
  border-color: rgba(212, 175, 55, 0.5);
}

.sound-toggle__text {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--clr-white);
  text-transform: uppercase;
}

.sound-toggle.is-playing .sound-toggle__text {
  color: var(--clr-accent);
}

.sound-toggle__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 12px;
  width: 14px;
}

.sound-toggle__bar {
  width: 2px;
  background-color: var(--clr-white);
  height: 20%;
  transition:
    height 0.3s ease,
    background-color 0.3s ease;
}

.sound-toggle.is-playing .sound-toggle__bar {
  background-color: var(--clr-gold);
}

/* Animated state */
.sound-toggle.is-playing .sound-toggle__bar:nth-child(1) {
  animation: soundBar 0.8s ease 0.1s infinite alternate;
}
.sound-toggle.is-playing .sound-toggle__bar:nth-child(2) {
  animation: soundBar 0.8s ease 0.3s infinite alternate;
}
.sound-toggle.is-playing .sound-toggle__bar:nth-child(3) {
  animation: soundBar 0.8s ease 0s infinite alternate;
}
.sound-toggle.is-playing .sound-toggle__bar:nth-child(4) {
  animation: soundBar 0.8s ease 0.4s infinite alternate;
}

@keyframes soundBar {
  0% {
    height: 20%;
  }
  100% {
    height: 100%;
  }
}

@media (max-width: 480px) {
  .sound-toggle {
    left: 1.5rem;
    bottom: 1.5rem;
  }
}

/* ─── CONTACT SECTION Redesign ─── */
.scene--contact {
  background: var(--clr-bg);
}

.scene__content--contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 5%;
}

.contact-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.contact-label {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-accent);
  display: block;
  margin-bottom: var(--space-xs);
}

.contact-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--clr-white);
  font-weight: 700;
}

.contact-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: var(--space-md);
  width: 100%;
  max-width: 1000px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: var(--space-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  flex: 1;
  position: relative;
  overflow: hidden;
}

.contact-card--info {
  max-width: 380px;
}

.contact-card--form {
  max-width: 520px;
}

/* Compact Details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-details__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease-out-expo);
}

.contact-details__item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.contact-details__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-details__label {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-text-dim);
}

.contact-details__value {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--clr-white);
  transition: color 0.3s;
}

.contact-details__value:hover {
  color: var(--clr-accent);
}

/* Compact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--clr-white);
  font-family: var(--ff-body);
  font-size: 0.85rem;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 256, 0.06);
  border-color: var(--clr-accent);
}

.form-textarea {
  resize: none;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  padding: 14px 0;
  margin-top: 10px;
}

@media (max-width: 850px) {
  .contact-grid {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
  .contact-card--info,
  .contact-card--form {
    max-width: 100%;
    width: 100%;
  }
  .contact-title {
    font-size: 2.2rem;
  }
}

/* Ensure the Contact scene has a consistent overlay to prevent color jumps */
.scene__overlay--contact {
  background:
    radial-gradient(
      ellipse at center,
      transparent 30%,
      rgba(10, 10, 15, 0.7) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 15, 0.2) 0%,
      transparent 40%,
      transparent 60%,
      rgba(10, 10, 15, 0.4) 100%
    );
  z-index: 2;
}

/* ═══════════════════════════════════════════
   REDUCED MOTION — Accessibility
   ═══════════════════════════════════════════ */
/* ─── MODAL SYSTEM ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: linear-gradient(
    135deg,
    rgba(30, 30, 45, 0.6),
    rgba(15, 15, 20, 0.8)
  );
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.6s var(--ease-out-expo);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(147, 51, 234, 0.1);
}

.modal-overlay.is-active .modal-card {
  transform: scale(1) translateY(0);
}

/* Neon glow for modal */
.modal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 2px;
  background: linear-gradient(
    45deg,
    rgba(147, 51, 234, 0.5),
    rgba(34, 197, 94, 0.5),
    rgba(59, 130, 246, 0.5),
    rgba(147, 51, 234, 0.5)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--clr-white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s var(--ease-smooth);
}

.modal-close:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.4);
  transform: rotate(90deg);
}

.modal-body {
  overflow-y: auto;
  padding: 3rem;
  display: flex;
  gap: 3rem;
  scrollbar-width: none;
}

.modal-body::-webkit-scrollbar {
  display: none;
}

.modal-image-wrap {
  flex: 1.2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-tag {
  color: var(--clr-accent);
  font-family: var(--ff-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.modal-title {
  font-family: var(--ff-display);
  font-size: 3rem;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.modal-desc {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--clr-text-dim);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
  }
  .modal-title {
    font-size: 2rem;
  }
}

/* ─── FOUNDER SECTION ─── */
.scene--founder {
  background: var(--clr-bg);
}

.scene__overlay--founder {
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(10, 10, 15, 0.4) 40%,
    rgba(10, 10, 15, 0.9) 100%
  );
  z-index: 2;
}

.scene__content--founder {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 10% 12vh;
  pointer-events: none;
}

.founder-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 320px;
  pointer-events: auto; /* Re-enable for hover/links */
}

/* Organic Bubble Mask */
.founder-bubble {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: bubbleMorph 10s ease-in-out infinite alternate;
  box-shadow:
    inset 0 0 40px rgba(59, 130, 246, 0.4),
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(59, 130, 246, 0.2);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  will-change: transform, opacity, border-radius;
  transition: box-shadow 0.6s ease;
}

.founder-wrap:hover .founder-bubble {
  box-shadow:
    inset 0 0 60px rgba(59, 130, 246, 0.6),
    0 30px 60px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(59, 130, 246, 0.4);
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.9);
  transition: all 0.8s var(--ease-out-expo);
  transform: scale(1.02);
}

.founder-wrap:hover .founder-img {
  filter: saturate(1.1) brightness(1.1);
  transform: scale(1.08);
}

.founder-bubble-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 20px rgba(167, 243, 208, 0.2);
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes bubbleMorph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  50% {
    border-radius: 60% 40% 30% 70% / 60% 40% 50% 50%;
  }
  100% {
    border-radius: 50% 50% 40% 60% / 50% 60% 40% 50%;
  }
}

/* Typography elements */
.founder-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.founder-name {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--clr-white);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.founder-role {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(15px);
  will-change: opacity, transform;
}

.founder-desc {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--clr-text-dim);
  line-height: 1.5;
  max-width: 280px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
  will-change: opacity, transform;
}

.founder-link {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-white);
  position: relative;
  padding-bottom: 4px;
  opacity: 0;
  transform: translateY(10px);
  will-change: opacity, transform;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

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

.founder-link:hover {
  color: var(--clr-accent);
  text-shadow: 0 0 10px var(--clr-accent-glow);
}

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

/* Floating Animations */
.founder-wrap--left {
  animation: founderFloat 6s ease-in-out infinite alternate;
}

.founder-wrap--right {
  animation: founderFloat 7s ease-in-out -3s infinite alternate;
}

@keyframes founderFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-15px);
  }
}

/* Particles */
.underwater-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: -50px;
  left: var(--x);
  width: calc(6px * var(--s));
  height: calc(6px * var(--s));
  background: rgba(167, 243, 208, 0.4);
  border-radius: 50%;
  filter: blur(1px);
  box-shadow: 0 0 10px rgba(167, 243, 208, 0.6);
  animation: floatParticle 8s ease-in-out infinite alternate;
  animation-delay: var(--d);
  transform: translateY(0);
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(var(--dy)) translateX(15px) scale(1.2);
    opacity: 0.1;
  }
}

@media (max-width: 1024px) {
  .founder-wrap {
    width: 280px;
  }
  .scene__content--founder {
    padding: 0 5% 10vh;
  }
}

@media (max-width: 768px) {
  .scene__content--founder {
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    padding-top: 15vh;
  }
  .founder-wrap {
    width: 260px;
    margin: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .grain-overlay {
    display: none;
  }
}
