/* ─── Jihadeen el-Eden — polished styles ─── */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');

:root {
  --depth-base: #060d18;
  --depth-mid:  #0a1828;
  --depth-glow: #4a7a9a;

  --pale:   #e8ecf0;
  --pale-2: #a8b4c0;
  --muted:  #6a7a8a;

  --gold:        #c9933a;
  --gold-bright: #f0c060;
  --gold-pale:   #e8d5a0;

  --slate:       #4a6a8a;
  --slate-bright:#6a9aba;
  --slate-pale:  #8aaaba;
  --navy:        #0f1a2a;
  --navy-soft:   #1a2a3a;

  --cream: #f5ead8;
  --abyss: #05080e;
  --text:  #c8bfa9;

  --serif:      "Cormorant Garamond", Georgia, serif;
  --display:    "Cinzel Decorative", "Cinzel", serif;
  --label:      "Cinzel", "Cormorant Garamond", serif;
  --name-last:  "Playfair Display", "Cormorant Garamond", Georgia, serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html, body {
  background: var(--abyss);
  color: var(--text);
  font-family: var(--serif);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 769px) {
  body.loading,
  html.loading {
    overflow: hidden;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PARALLAX — GPU acceleration
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Promote parallax layers to their own compositor layers */
.ocean-layer,
.caustics-layer,
.shafts-layer,
.particles,
.matrix-transition,
.depths-inner {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* Disable parallax will-change on mobile for battery & performance */
@media (max-width: 768px) {
  .ocean-layer,
  .caustics-layer,
  .shafts-layer {
    will-change: auto;
    -webkit-transform: none;
    transform: none;
  }
}

/* Persistent grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  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='0.05'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 999;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ── NAV — floating pill ── */
.nav {
  position: fixed;
  top: 0.7rem;
  left: 0.5rem;
  z-index: 500;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: background 0.5s var(--ease-out-expo),
              border-color 0.5s var(--ease-out-expo);
  transform: none;
  white-space: nowrap;
}
.nav.scrolled {
  background: rgba(4, 7, 15, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Light mode nav — over bright hero */
.nav.light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.nav.light .nav-sigil {
  color: var(--navy);
}
.nav.light .nav-divider {
  background: rgba(15, 26, 42, 0.12);
}
.nav.light .nav-links a {
  color: var(--navy-soft);
}
.nav.light .nav-links a:hover {
  color: var(--navy);
}

.nav-sigil {
  text-decoration: none;
  color: var(--gold);
  width: auto;
  height: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-sigil-icon {
  width: 3.3em;
  height: 3.3em;
  display: block;
}

.nav-divider {
  width: 1px;
  height: 14px;
  background: rgba(201, 147, 58, 0.2);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--label);
  font-size: 0.65rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--pale-2);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold-bright); }

/* ── LANGUAGE TOGGLE — Light Mode ── */
/* When nav is in light mode (hero section), language toggle also goes light */
.nav.light ~ .language-toggle-btn {
  color: var(--navy-soft);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(15, 26, 42, 0.25);
}
.nav.light ~ .language-toggle-btn:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.18);
}

/* ── DIVE STAGE ── */
.dive-wrap {
  position: relative;
  width: 100%;
}
.dive-stage {
  position: sticky;
  top: 0;
  height: 105dvh;
  width: 100%;
  overflow: hidden;
  background: var(--abyss);
  transform: translateZ(0);
}

.ocean-layer {
  position: absolute;
  inset: -10vh -5%;
  z-index: 1;
  pointer-events: none;
  transform-origin: 50% 60%;
  will-change: transform, filter;
}
.ocean-layer img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  user-select: none;
}

/* ── DEPTH VIGNETTE — creates the 3-D "looking into water" illusion ──
   Replaces the flat ocean-tint. Combines:
   · strong black rise from the bottom  → hides the image edge, simulates depth
   · radial edge darkening              → peripheral tunnel/underwater feel
   · gentle top shade                   → readability for hero text
   ──────────────────────────────────────────────────────────────────── */
.depth-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  will-change: opacity;
  background:
    /* depth rise from the bottom — softened for light hero image */
    linear-gradient(to top,
      rgba(0,0,0,0.95)  0%,
      rgba(0,0,0,0.72) 10%,
      rgba(0,0,0,0.35) 24%,
      rgba(0,0,0,0.08) 42%,
      transparent      62%
    ),
    /* radial edge vignette — lighter for ethereal surface */
    radial-gradient(ellipse 90% 80% at 50% 44%,
      transparent       42%,
      rgba(0,0,0,0.18)  65%,
      rgba(0,0,0,0.45) 100%
    ),
    /* very subtle cool top tint for atmosphere */
    linear-gradient(to bottom,
      rgba(180,200,220,0.08)  0%,
      transparent             22%,
      transparent             40%
    );
}

/* Hard guarantee: the bottom edge of the sticky stage is always black */
.dive-stage::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: calc(35vh + 2px);
  background: linear-gradient(to bottom, transparent 0%, var(--abyss) 100%);
  z-index: 9;
  pointer-events: none;
}

/* Underwater veil */
.veil-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse at 50% 0%,
      rgba(180,200,220,0.15) 0%,
      rgba(20,40,60,0.5) 40%,
      rgba(6,12,20,0.92) 100%);
  pointer-events: none;
  mix-blend-mode: multiply;
  will-change: opacity;
}

/* Caustics */
.caustics-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: opacity;
}
.caustics-svg {
  width: 100%; height: 100%;
  -webkit-animation: causticsDrift 14s ease-in-out infinite alternate;
  animation: causticsDrift 14s ease-in-out infinite alternate;
  will-change: transform;
}
@-webkit-keyframes causticsDrift {
  from { -webkit-transform: translate(-2%, -1%) scale(1.05); }
  to   { -webkit-transform: translate(2%, 1%) scale(1.1); }
}
@keyframes causticsDrift {
  from { -webkit-transform: translate(-2%, -1%) scale(1.05); transform: translate(-2%, -1%) scale(1.05); }
  to   { -webkit-transform: translate(2%, 1%) scale(1.1); transform: translate(2%, 1%) scale(1.1); }
}

/* Light shafts */
.shafts-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: screen;
}
.shafts-svg {
  width: 100%; height: 100%;
  -webkit-animation: shaftSway 9s ease-in-out infinite alternate;
  animation: shaftSway 9s ease-in-out infinite alternate;
  will-change: transform;
}
@-webkit-keyframes shaftSway {
  from { -webkit-transform: skewX(-2deg) translateY(0); }
  to   { -webkit-transform: skewX(2deg) translateY(2%); }
}
@keyframes shaftSway {
  from { -webkit-transform: skewX(-2deg) translateY(0); transform: skewX(-2deg) translateY(0); }
  to   { -webkit-transform: skewX(2deg) translateY(2%); transform: skewX(2deg) translateY(2%); }
}

/* Abyss black */
.abyss-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  background:
    radial-gradient(ellipse at 50% 30%,
      rgba(0,0,0,0.42) 0%,
      rgba(0,0,0,0.92) 70%,
      rgba(0,0,0,1) 100%);
  pointer-events: none;
}

/* Bubbles */
.bubbles-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}
.bubble {
  position: absolute;
  bottom: -3vh;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(255,255,255,0.45),
    rgba(255,255,255,0.04) 60%,
    transparent 80%);
  box-shadow: 0 0 6px rgba(255,255,255,0.12);
  -webkit-animation: bubbleRise linear infinite;
  animation: bubbleRise linear infinite;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform, opacity;
}
@-webkit-keyframes bubbleRise {
  0%   { -webkit-transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.65; }
  90%  { opacity: 0.45; }
  100% { -webkit-transform: translateY(-110vh) translateX(var(--drift, 0px)); opacity: 0; }
}
@keyframes bubbleRise {
  0%   { -webkit-transform: translateY(0) translateX(0); transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.65; }
  90%  { opacity: 0.45; }
  100% { -webkit-transform: translateY(-110vh) translateX(var(--drift, 0px)); transform: translateY(-110vh) translateX(var(--drift, 0px)); opacity: 0; }
}

/* ── HERO CONTENT ── */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(3.5rem, 6.5vh, 5rem) 2rem 0;
  text-align: center;
  pointer-events: none;
  will-change: opacity, transform;
}

@media (min-width: 1400px) {
  .hero-content {
    padding-top: clamp(4rem, 9.5vh, 6.5rem);
  }
}

.hero-glyph {
  width: 96px;
  height: 96px;
  margin-bottom: 4.6rem;
  opacity: 0.85;
  filter: drop-shadow(0 0 20px rgba(74,106,138,0.35));
}
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }

.pretitle {
  font-family: var(--label);
  font-size: 0.65rem;
  letter-spacing: 0.62em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.6rem;
  opacity: 0.9;
}

.hero-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7.8vw, 7rem);
  line-height: 0.95;
  color: var(--navy);
  text-shadow:
    0 2px 40px rgba(255,255,255,0.5),
    0 0 80px rgba(74,106,138,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.02em;
  margin-bottom: 1.6rem;
}
.hero-name span { display: block; }
.hero-name .name-last {
  color: var(--slate);
  font-family: var(--name-last);
  font-style: italic;
  font-weight: 400;
  font-size: 0.82em;
  letter-spacing: 0.01em;
}

@-webkit-keyframes float {
  0%, 100% { -webkit-transform: translateY(0px); }
  50%      { -webkit-transform: translateY(-8px); }
}
@keyframes float {
  0%, 100% { -webkit-transform: translateY(0px); transform: translateY(0px); }
  50%      { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
}

.float {
  -webkit-animation: float 3s ease-in-out infinite;
  animation: float 3s ease-in-out infinite;
  display: inline-block;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

@-webkit-keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in-pleroma  { -webkit-animation: fadeIn 0.8s ease-in-out 0.6s both; animation: fadeIn 0.8s ease-in-out 0.6s both; }
.fade-in-jihadeen { -webkit-animation: fadeIn 0.8s ease-in-out 1.2s both; animation: fadeIn 0.8s ease-in-out 1.2s both; }
.fade-in-el-eden  { -webkit-animation: fadeIn 0.8s ease-in-out 1.8s both; animation: fadeIn 0.8s ease-in-out 1.8s both; }
.fade-in-tagline  { -webkit-animation: fadeIn 0.8s ease-in-out 2.4s both; animation: fadeIn 0.8s ease-in-out 2.4s both; }
.fade-in-symbol   { -webkit-animation: fadeIn 0.8s ease-in-out 3.0s both; animation: fadeIn 0.8s ease-in-out 3.0s both; }
.fade-in-descend  { -webkit-animation: fadeIn 0.8s ease-in-out 3.6s both; animation: fadeIn 0.8s ease-in-out 3.6s both; }
.fade-in-nav      { -webkit-animation: fadeIn 0.8s ease-in-out 4.2s both; animation: fadeIn 0.8s ease-in-out 4.2s both; }

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  color: var(--navy-soft);
  letter-spacing: 0.14em;
  margin-bottom: 2.4rem;
  text-shadow: 0 1px 12px rgba(255,255,255,0.4);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}
.divider-line {
  width: 72px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(74,106,138,0.5));
}
.divider-line.right {
  background: linear-gradient(to left, transparent, rgba(74,106,138,0.5));
}
.hero-aeon-symbol {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
}
.hero-aeon-symbol img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: brightness(0.85);
}

/* Descent cue */
.descend-cue {
  position: absolute;
  bottom: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  pointer-events: none;
}
.descend-cue span:first-child {
  font-family: var(--label);
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--slate-bright);
  opacity: 0.95;
  text-shadow: 0 0 12px rgba(74,106,138,0.6), 0 1px 4px rgba(0,0,0,0.8);
}
.descend-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(74,106,138,0.6), transparent);
  -webkit-animation: descendPulse 2.4s ease-in-out infinite;
  animation: descendPulse 2.4s ease-in-out infinite;
}
@-webkit-keyframes descendPulse {
  0%, 100% { opacity: 0.25; -webkit-transform: scaleY(0.75); }
  50%      { opacity: 1;    -webkit-transform: scaleY(1.15); }
}
@keyframes descendPulse {
  0%, 100% { opacity: 0.25; -webkit-transform: scaleY(0.75); transform: scaleY(0.75); }
  50%      { opacity: 1;    -webkit-transform: scaleY(1.15); transform: scaleY(1.15); }
}

/* Submerged caption */
.depths-caption {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-bottom: none !important;
  border-top: none !important;
}
.depths-line {
  font-family: var(--display);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--slate-pale);
  text-shadow: 0 0 20px rgba(90,138,170,0.4);
  display: block !important;
}

/* ── MATRIX TRANSITION ── */
.matrix-transition {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: visible;      /* canvas mask handles the fade, not clip */
  cursor: crosshair;
  z-index: 5;
  margin-top: -1px;
}

/* fade top edge into the dive abyss */
.matrix-transition::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12%;
  background: linear-gradient(to bottom, var(--abyss) 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

/* no ::after — the canvas mask dissolves the bottom */

.matrix-canvas {
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  /* bottom half of canvas fades to transparent, revealing gnosis title through the rain */
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 80%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 80%);
}

/* label hidden — gnosis section title is the "label" revealed through rain */
.matrix-label { display: none; }
.matrix-label-text { display: none; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.32s; }
.reveal-delay-4 { transition-delay: 0.46s; }

/* ── DIVE TRANSITION ── */
.dive-transition {
  position: relative;
  height: 48vh;
  overflow: hidden;
  background: var(--abyss);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Depth fog fades in/out at edges */
.dive-transition::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--abyss) 0%, transparent 30%),
    linear-gradient(to top,    var(--abyss) 0%, transparent 30%);
  z-index: 4;
  pointer-events: none;
}

.dive-tunnel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
  perspective-origin: 50% 50%;
}

.dive-rings {
  position: relative;
  width: 700px;
  height: 700px;
  transform-style: preserve-3d;
  -webkit-animation: tunnelDive 3.2s linear infinite;
  animation: tunnelDive 3.2s linear infinite;
  will-change: transform;
}

@-webkit-keyframes tunnelDive {
  from { -webkit-transform: rotateX(78deg) translateZ(0px) scale(0.55); }
  to   { -webkit-transform: rotateX(78deg) translateZ(800px) scale(0.55); }
}
@keyframes tunnelDive {
  from { -webkit-transform: rotateX(78deg) translateZ(0px) scale(0.55); transform: rotateX(78deg) translateZ(0px) scale(0.55); }
  to   { -webkit-transform: rotateX(78deg) translateZ(800px) scale(0.55); transform: rotateX(78deg) translateZ(800px) scale(0.55); }
}

.dive-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(74,122,154,0.0);
  box-shadow: 0 0 0 1px rgba(74,122,154,0.16);
  transform: translateZ(calc(var(--z) * 1px));
}

/* Floating abyss motes in the transition */
.dive-mote {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90,138,170,0.5) 0%, transparent 70%);
  -webkit-animation: moteDrift linear infinite;
  animation: moteDrift linear infinite;
  z-index: 2;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform, opacity;
}
@-webkit-keyframes moteDrift {
  0%   { -webkit-transform: translateY(100%) translateX(0) scale(0.6); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 0.6; }
  100% { -webkit-transform: translateY(-30%) translateX(var(--mx, 0px)) scale(1.1); opacity: 0; }
}
@keyframes moteDrift {
  0%   { -webkit-transform: translateY(100%) translateX(0) scale(0.6); transform: translateY(100%) translateX(0) scale(0.6); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 0.6; }
  100% { -webkit-transform: translateY(-30%) translateX(var(--mx, 0px)) scale(1.1); transform: translateY(-30%) translateX(var(--mx, 0px)) scale(1.1); opacity: 0; }
}

/* Center vanishing glow */
.dive-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(74,122,154,0.22) 0%,
    rgba(20,50,70,0.12)   40%,
    transparent 70%);
  z-index: 3;
  -webkit-animation: glowPulse 4s ease-in-out infinite alternate;
  animation: glowPulse 4s ease-in-out infinite alternate;
  will-change: opacity, transform;
}
@-webkit-keyframes glowPulse {
  from { opacity: 0.5; -webkit-transform: scale(0.9); }
  to   { opacity: 1.0; -webkit-transform: scale(1.1); }
}
@keyframes glowPulse {
  from { opacity: 0.5; -webkit-transform: scale(0.9); transform: scale(0.9); }
  to   { opacity: 1.0; -webkit-transform: scale(1.1); transform: scale(1.1); }
}

/* ── GNOSIS SECTION ── */
.depths-section {
  position: relative;
  padding: 3rem 2rem 8rem;
  margin-top: -30vh;      /* original value before stretching experiments */
  /* starts and ends at pure black so edges are invisible */
  background:
    radial-gradient(ellipse at 50% 28%, rgba(74,122,154,0.13), transparent 34%),
    linear-gradient(to bottom,
      var(--abyss)                    0%,
      var(--depth-base)      18%,
      var(--depth-mid)       55%,
      var(--depth-base)      82%,
      var(--abyss)                  100%
    );
  overflow: hidden;
}

/* same curtain at the bottom, blending into the sound section */
.depths-section::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--abyss) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.depths-inner {
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
  z-index: 2;        /* sits below the matrix canvas (z-index 5) in the overlap zone */
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--label);
  font-size: 0.6rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 1.4rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(201,147,58,0.2);
  border-radius: 999px;
}
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--cream);
  letter-spacing: 0.02em;
  max-width: none;
  white-space: nowrap;
  line-height: 1.2;
}
.section-title em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 400;
}
.mobile-break {
  display: none;
}
@media (max-width: 900px) {
  .section-title {
    white-space: normal;
  }
  .mobile-break {
    display: block;
  }
}

.bio-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 5rem;
  align-items: start;
}

.bio-glyphs {
  color: var(--gold);
  display: flex;
  justify-content: center;
  opacity: 0.65;
}
.bio-glyphs-svg {
  width: 130px;
  height: auto;
  animation: floatSlow 12s ease-in-out infinite;
}
@-webkit-keyframes floatSlow {
  0%, 100% { -webkit-transform: translateY(0); }
  50%      { -webkit-transform: translateY(-10px); }
}
@keyframes floatSlow {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50%      { -webkit-transform: translateY(-10px); transform: translateY(-10px); }
}

.bio-body {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.95;
  color: var(--pale-2);
  font-weight: 300;
}
.bio-body p + p { margin-top: 1.5rem; }
.bio-body em {
  font-style: italic;
  color: var(--gold-pale);
}
.bio-lead {
  font-size: clamp(1.18rem, 1.75vw, 1.45rem);
  line-height: 1.72;
  color: var(--cream);
  margin-bottom: 2.4rem !important;
}

.bio-tags {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.bio-tag {
  font-family: var(--label);
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(201,147,58,0.22);
  border-radius: 2px;
  background: rgba(201,147,58,0.04);
  transition: all 0.3s var(--ease-out-expo);
  text-decoration: none;
  cursor: pointer;
}
.bio-tag:hover {
  background: rgba(201,147,58,0.1);
  border-color: rgba(201,147,58,0.5);
  color: var(--gold-bright);
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(220, 200, 150, 0.45);
  box-shadow: 0 0 4px rgba(220, 200, 150, 0.35);
  -webkit-animation: particleDrift ease-in-out infinite alternate;
  animation: particleDrift ease-in-out infinite alternate;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform, opacity;
}
@-webkit-keyframes particleDrift {
  from { -webkit-transform: translate(0, 0) scale(0.8); opacity: 0.15; }
  to   { -webkit-transform: translate(18px, -28px) scale(1.2); opacity: 0.85; }
}
@keyframes particleDrift {
  from { -webkit-transform: translate(0, 0) scale(0.8); transform: translate(0, 0) scale(0.8); opacity: 0.15; }
  to   { -webkit-transform: translate(18px, -28px) scale(1.2); transform: translate(18px, -28px) scale(1.2); opacity: 0.85; }
}

/* ── SOUND SECTION ── */
.sound-section {
  position: relative;
  padding: 8rem 0 12rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 22%, rgba(50,80,110,0.18), transparent 50%),
    linear-gradient(to bottom,
      var(--abyss)                    0%,
      var(--depth-mid)       16%,
      var(--depth-mid)       60%,
      var(--depth-base)      82%,
      var(--abyss)                  100%
    );
}

.sound-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, var(--abyss) 0%, transparent 100%);
  pointer-events: none;
  z-index: 4;
}

.sound-section::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--abyss) 0%, transparent 100%);
  pointer-events: none;
  z-index: 4;
}

.sound-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 5.5rem;
  padding: 0 2rem;
  position: relative;
  z-index: 4;
}
.sound-section .section-title {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .sound-section .section-title {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}
.section-sub {
  margin-top: 1.1rem;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}
.section-sub em { color: var(--gold-pale); }

/* 3D carousel */
.carousel-stage {
  position: relative;
  height: 600px;
  width: 100%;
  perspective: 1600px;
  z-index: 3;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.car-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  /* double-bezel */
  background: rgba(4, 7, 15, 0.7);
  border: 1px solid rgba(201,147,58,0.3);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 8px 24px rgba(0,0,0,0.6);
  color: var(--gold-bright);
  cursor: pointer;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s var(--ease-out-expo);
}
.car-nav:hover {
  background: rgba(12, 20, 40, 0.9);
  border-color: var(--gold-bright);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.07) inset,
    0 0 28px rgba(201,147,58,0.35),
    0 8px 24px rgba(0,0,0,0.7);
  transform: translateY(-50%) scale(1.06);
}
.car-nav:active { transform: translateY(-50%) scale(0.97); }
.car-nav.prev { left: 3vw; }
.car-nav.next { right: 3vw; }
.car-nav span { line-height: 1; margin-top: -3px; }

/* Cards — double-bezel */
.car-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 520px;
  margin-top: -260px;
  cursor: pointer;
  transition:
    transform 0.75s var(--ease-in-out-quart),
    opacity   0.75s var(--ease-out-expo),
    filter    0.75s var(--ease-out-expo);
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}
.car-card.active {
  opacity: 1 !important;
  filter: none !important;
}

/* Outer shell */
.car-card-outer {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  border: none;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.75),
    0 4px 16px rgba(0,0,0,0.5),
    0 0 40px rgba(201,147,58,0.08);
  transition: box-shadow 0.5s;
  overflow: hidden;
}
.car-card.active .car-card-outer {
  box-shadow:
    0 40px 100px rgba(0,0,0,0.85),
    0 0 70px rgba(var(--accent-r,201),var(--accent-g,147),var(--accent-b,58),0.3);
}

/* Inner core */
.car-card-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(175deg, rgba(8,13,24,0.97) 0%, rgba(2,4,12,0.99) 100%);
  border-radius: 18px;
  border: none;
  box-shadow: none;
  padding: 1.4rem 1.3rem 1.3rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Accent corner brackets — hidden on rounded cards */
.card-corner { display: none; }

.card-num {
  display: none;
}
.card-num span {
  /* clean numeral — no box */
}

.card-iframe-wrap {
  position: relative;
  flex: 1;
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
}
.card-iframe {
  flex: 1;
  border: 0;
  background: var(--depth-base);
  border-radius: 1px;
}

.card-placeholder {
  flex: 1;
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  color: var(--muted);
}
.card-placeholder-disc {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      var(--accent, #c9933a) 0%,
      rgba(0,0,0,0.7) 58%,
      rgba(0,0,0,0.88) 68%,
      var(--accent, #c9933a) 70%,
      transparent 72%),
    conic-gradient(from 0deg, rgba(255,255,255,0.04), rgba(0,0,0,0.4),
                             rgba(255,255,255,0.04), rgba(0,0,0,0.4));
  opacity: 0.55;
  -webkit-animation: spin 24s linear infinite;
  animation: spin 24s linear infinite;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}
.card-placeholder-title {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: #f0c060;
  text-transform: uppercase;
  opacity: 1;
  filter: brightness(1.2);
  text-shadow: 0 0 30px rgba(240,192,96,0.6), 0 0 12px rgba(240,192,96,0.4);
}

.card-footer {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(201,147,58,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-title-line {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(240,192,96,0.4);
}

/* Pill "open" button */
.card-permalink {
  font-family: var(--label);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 0.32rem 0.8rem;
  border: 1px solid rgba(201,147,58,0.28);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.3s var(--ease-out-expo);
  background: rgba(0,0,0,0.3);
}
.card-permalink:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  background: rgba(201,147,58,0.08);
  box-shadow: 0 0 14px rgba(201,147,58,0.2);
}

/* Dots */
.car-dots {
  position: absolute;
  bottom: -3.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.7rem;
  z-index: 40;
}
.car-dot {
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.car-dot span {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(201,147,58,0.2);
  border: 1px solid rgba(201,147,58,0.35);
  transition: all 0.35s var(--ease-out-expo);
}
.car-dot.on span {
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(240,192,96,0.7);
  transform: scale(1.5);
}
.car-dot:hover span { border-color: var(--gold-bright); }

/* Meta */
.car-meta {
  margin: 3rem auto 0;
  max-width: 680px;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  z-index: 4;
}
.car-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 0.9rem;
}
.car-meta-num {
  display: none;
}
.car-meta-rule {
  width: 50px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.car-meta-count {
  font-family: var(--label);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
}
.car-meta-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: #f0c060;
  margin-bottom: 0.35rem;
  text-shadow:
    0 0 60px rgba(240,192,96,0.8),
    0 0 40px rgba(240,192,96,0.6),
    0 0 20px rgba(240,192,96,0.4),
    0 2px 8px rgba(0,0,0,0.8);
  opacity: 1;
  filter: brightness(1.2);
}
.car-meta-artist {
  font-style: italic;
  color: var(--pale-2);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

/* ── CONTACT ── */
.depths-section,
.sound-section,
.contact-section {
  scroll-margin-top: 6rem;
}

.contact-section {
  position: relative;
  padding: 10rem 2rem 6rem;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(60,90,120,0.1), transparent 50%),
    linear-gradient(to bottom,
      var(--abyss)                    0%,
      var(--depth-base)      18%,
      var(--depth-base)     100%
    );
  overflow: hidden;
  text-align: center;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, var(--abyss) 0%, transparent 100%);
  pointer-events: none;
  z-index: 4;
}

.contact-inner {
  position: relative;
  z-index: 3;
  max-width: 580px;
  margin: 0 auto;
}

.contact-symbol {
  width: 60px; height: 60px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.9;
  -webkit-animation: floatSlow 10s ease-in-out infinite;
  animation: floatSlow 10s ease-in-out infinite;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}
.contact-symbol img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: brightness(1.2);
}

.contact-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  color: var(--cream);
  margin: 0.8rem 0 1.4rem;
}
.contact-body {
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 3.5rem;
}

/* ── CONTACT ICONS ── */
.contact-icons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.contact-icon-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  border: none;
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.contact-icon-btn:hover {
  transform: translateY(-6px) scale(1.12);
  filter: drop-shadow(0 10px 30px rgba(201,147,58,0.4));
}

.contact-icon-btn:active {
  transform: translateY(-3px) scale(1.08);
}

.contact-icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 3;
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,147,58,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--label);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}
.footer-name {
  font-family: var(--display);
  color: var(--gold);
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  text-transform: none;
  opacity: 1;
}
.footer-mark { color: var(--gold); opacity: 0.6; }

/* Desktop — center contact footer */
@media (min-width: 901px) {
  .site-footer {
    justify-content: center;
    text-align: center;
  }
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger:hover { background: rgba(201,147,58,0.08); }
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.2s;
}
.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); }

/* ── MOBILE NAV MENU ── */
.nav-mobile-menu {
  position: fixed;
  top: 4.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 490;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: rgba(4, 7, 15, 0.96);
  border: 1px solid rgba(201,147,58,0.22);
  border-radius: 12px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  min-width: 220px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.65);
}
.nav-mobile-link {
  font-family: var(--label);
  font-size: 0.65rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--pale-2);
  text-decoration: none;
  padding: 1.1rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(201,147,58,0.08);
  transition: color 0.25s, background 0.25s;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-mobile-link:last-child { border-bottom: none; }

@keyframes menuOpen {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-mobile-link:hover { color: var(--gold-bright); background: rgba(201,147,58,0.05); }

/* ── FOCUS STATES ── */
.nav-links a:focus-visible,
.car-nav:focus-visible,
.car-dot:focus-visible,
.card-permalink:focus-visible,
.contact-link:focus-visible {
  outline: none;
}
.nav-links a:focus-visible {
  box-shadow: 0 0 0 2px var(--gold-bright);
  border-radius: 2px;
}
.car-nav:focus-visible {
  box-shadow: 0 0 0 3px var(--gold-bright);
}
.car-dot:focus-visible {
  box-shadow: 0 0 0 2px var(--gold-bright);
  border-radius: 50%;
}
.card-permalink:focus-visible {
  box-shadow: 0 0 0 2px var(--gold-bright), 0 0 14px rgba(201,147,58,0.2);
}


/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .car-nav.prev { left: 1vw; }
  .car-nav.next { right: 1vw; }
  .car-card { width: 360px; height: 480px; margin-top: -240px; }
  .carousel-stage { height: 560px; }
}

/* ── 1024px — tablets ── */
@media (max-width: 1024px) {
  .nav {
    left: 2rem;
    transform: translateX(0);
  }
}

/* ── 768px — tablets & large phones landscape ── */
@media (max-width: 768px) {
  /* Nav */
  .nav { height: 48px; display: flex; align-items: center; gap: 1.2rem; padding: 0 2rem; top: 2rem; left: 2rem; transform: translateX(0); background: rgba(255, 255, 255, 0.12) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; color: var(--navy) !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; transition: all 0.3s ease !important; }
  .language-toggle-btn { height: 48px; display: flex; align-items: center; top: 0.7rem; right: 0.5rem; padding: 0 2rem; font-size: 0.65rem; letter-spacing: 0.34em; background: rgba(255, 255, 255, 0.12) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; color: var(--navy) !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; transition: all 0.3s ease !important; }
  .nav-mobile-menu {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  }
  .nav-mobile-link {
    color: var(--navy-soft);
  }
  .nav-mobile-link:hover {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.12);
  }
  .nav-mobile-menu.scrolled {
    background: rgba(4, 7, 15, 0.45);
    border-color: rgba(255, 255, 255, 0.12);
  }
  .nav-mobile-menu.scrolled .nav-mobile-link {
    color: var(--pale-2);
  }
  .nav-mobile-menu.scrolled .nav-mobile-link:hover {
    color: var(--gold-bright);
    background: transparent;
  }
  .nav-sigil { font-size: 0.68rem; }
  .nav-divider { display: none; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.56rem; letter-spacing: 0.3em; }

  /* Hero */
  .hero-content { padding: clamp(3.5rem, 6vh, 4.5rem) 1.5rem 0; }
  .hero-glyph { width: 84px; height: 84px; margin-bottom: 3rem; }
  .pretitle { font-size: 0.56rem; letter-spacing: 0.42em; margin-bottom: 1.2rem; }
  .hero-tagline { font-size: clamp(0.88rem, 2vw, 1rem); margin-bottom: 2rem; }
  .hero-divider { gap: 0.8rem; }
  .divider-line { width: 44px; }
  .hero-aeon-symbol { width: 60px; height: 60px; }

  .descend-cue { bottom: 2rem; }
  .descend-line { height: 36px; }

  /* Sections */
  .depths-section { padding: clamp(4rem, 8vh, 6rem) 1.4rem clamp(3rem, 6vh, 5rem); }
  .sound-section  { padding: clamp(3.5rem, 6vh, 5rem) 0 clamp(5rem, 9vh, 8rem); }
  .contact-section { padding: clamp(4rem, 8vh, 6rem) 1.4rem clamp(3rem, 5vh, 4rem); }
  .section-header { margin-bottom: 3.5rem; }
  .matrix-transition { height: 75vh; }

  /* Bio */
  .bio-grid { grid-template-columns: 1fr; gap: 2rem; }
  .bio-glyphs { display: none; }
  .bio-tags { margin-top: 2rem; }

  /* Carousel */
  .car-card {
    width: 86vw; height: 480px; margin-top: -240px;
    transition-duration: 0.45s;
  }
  .carousel-stage { height: 540px; }
  .car-nav { width: 44px; height: 44px; font-size: 1.3rem; }
  .car-nav.prev { left: 0.5vw; }
  .car-nav.next { right: 0.5vw; }
  .car-meta { margin-top: 5rem; }
  .car-card:not(.active) {
    filter: none !important;
    opacity: 0.3 !important;
  }

  /* Contact */
  .contact-icons-container {
    gap: 2.5rem;
  }
  .contact-icon-btn {
    width: 85px;
    height: 85px;
  }

  /* Footer */
  .site-footer { flex-direction: column; text-align: center; }
}

/* ── 600px — small phones landscape / mid phones portrait ── */
@media (max-width: 600px) {
  /* Nav — hamburger kicks in */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav { gap: 0.6rem; padding: 0.6rem 1.1rem; }

  /* Hero */
  .hero-content { padding: 4rem 1.2rem 0; }
  .hero-glyph { width: 80px; height: 80px; margin-bottom: 2.5rem; }
  .pretitle { margin-bottom: 1rem; }
  .hero-name { margin-bottom: 1.1rem; }
  .hero-tagline { margin-bottom: 1.6rem; font-size: clamp(0.82rem, 3vw, 0.96rem); letter-spacing: 0.1em; }
  .descend-cue {
    position: absolute;
    bottom: 2rem;
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
  }
  .descend-cue span:first-child {
    writing-mode: initial;
    transform: none;
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    opacity: 0.7;
  }
  .descend-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(74,106,138,0.6), transparent);
    -webkit-animation: descendPulse 2.4s ease-in-out infinite;
    animation: descendPulse 2.4s ease-in-out infinite;
  }

  /* Sections */
  .depths-section { padding: 4.5rem 1.2rem 3.5rem; }
  .sound-section  { padding: 3rem 0 5.5rem; }
  .contact-section { padding: 4.5rem 1.2rem 3rem; }
  .section-header { margin-bottom: 2.5rem; }
  .sound-header { margin-bottom: 3.5rem; padding: 0 1.2rem; }
  .matrix-transition { height: 70vh; }

  /* Bio body */
  .bio-body { font-size: clamp(0.98rem, 2.8vw, 1.1rem); line-height: 1.88; }
  .bio-lead { font-size: clamp(1.04rem, 3vw, 1.18rem) !important; line-height: 1.68 !important; margin-bottom: 1.8rem !important; }
  .bio-tags { gap: 0.5rem; }

  /* Carousel */
  .car-card { width: 90vw; height: 440px; margin-top: -220px; }
  .carousel-stage { height: 500px; }
  .car-nav { width: 40px; height: 40px; font-size: 1.2rem; }
  .car-meta { margin-top: 2rem; }
  .car-meta-title { font-size: clamp(1.3rem, 5.5vw, 1.9rem); }

  /* Contact */
  .contact-title { font-size: clamp(1.7rem, 6.5vw, 2.2rem); }
  .contact-body { font-size: 1rem; margin-bottom: 2.5rem; }
}

/* ── 480px — portrait phones (375–414px sweet spot) ── */
@media (max-width: 480px) {
  /* Nav — hidden on hero, shown when gnosis section is reached */
  .nav,
  .nav.light { top: 0.75rem; padding: 0.55rem 1rem; left: 0.5rem; color: var(--navy) !important; background: rgba(255, 255, 255, 0.12) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; opacity: 0; pointer-events: none; transition: opacity 0.3s ease !important; }
  .nav.nav-visible,
  .nav.scrolled { top: 0.75rem; padding: 0.55rem 1rem; left: 0.5rem; color: var(--gold) !important; background: rgba(15, 26, 42, 0.4) !important; border: 1px solid rgba(201, 147, 58, 0.3) !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; opacity: 1 !important; pointer-events: auto !important; }
  .language-toggle-btn {
    top: 0.75rem !important;
    right: 0.5rem !important;
    height: 48px !important;
    padding: 0.55rem 1rem !important;
    font-size: 0.65rem !important;
    color: var(--navy) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: none !important;
  }
  .language-toggle-btn.scrolled {
    color: var(--gold) !important;
    background: rgba(15, 26, 42, 0.4) !important;
    border: 1px solid rgba(201, 147, 58, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
  .nav-sigil { font-size: 0.63rem; letter-spacing: 0.22em; color: var(--navy) !important; }
  .nav-hamburger span { background: var(--navy) !important; }
  .nav.scrolled .nav-sigil { color: var(--gold) !important; }
  .nav.scrolled .nav-hamburger span { background: var(--gold) !important; }
  .nav-sigil-icon { width: 3.9em; height: 3.9em; }
  .nav-mobile-menu { min-width: 88vw; top: 3.8rem; border-radius: 24px !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; animation: menuOpen 0.3s ease both; }
  @supports (padding: max(0px)) {
    .nav-mobile-menu { background: rgba(255, 255, 255, 0.12) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; }
    .nav-mobile-link { color: var(--navy) !important; }
    .nav-mobile-menu.scrolled { background: rgba(4, 7, 15, 0.45) !important; border-color: rgb(68, 57, 39) !important; }
    .nav-mobile-menu.scrolled .nav-mobile-link { color: var(--gold) !important; }
  }

  /* Hero */
  .hero-content { padding: 4rem 1rem 0; }
  .hero-glyph { width: 80px; height: 80px; margin-bottom: 2rem; }
  .pretitle { font-size: 0.52rem; letter-spacing: 0.36em; }
  .hero-tagline { font-size: clamp(0.78rem, 3.5vw, 0.9rem); margin-bottom: 1.4rem; }
  .divider-line { width: 32px; }
  .hero-aeon-symbol { width: 50px; height: 50px; }

  .descend-cue { bottom: 1.5rem; }
  .descend-line { height: 28px; }

  /* Sections */
  .depths-section { padding: 4rem 1rem 3rem; margin-top: -18vh; }
  .sound-section  { padding: 2.5rem 0 5rem; }
  .contact-section { padding: 4rem 1rem 2.5rem; }
  .section-header { margin-bottom: 2rem; }
  .section-eyebrow { font-size: 0.54rem; padding: 0.28rem 0.8rem; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .sound-header { margin-bottom: 2.8rem; }
  .matrix-transition { height: 64vh; }

  /* Bio */
  .bio-body { font-size: 1rem; line-height: 1.85; }
  .bio-lead { font-size: 1.02rem !important; line-height: 1.65 !important; margin-bottom: 1.5rem !important; }
  .bio-tag { font-size: 0.52rem; padding: 0.35rem 0.75rem; }

  /* Carousel */
  .car-card { width: 92vw; height: 400px; margin-top: -200px; }
  .carousel-stage { height: 460px; }
  .car-nav { display: none; }
  .car-dots { bottom: -2.8rem; }
  .car-meta { margin-top: 1rem; padding: 0 1rem; }
  .car-meta-title { font-size: clamp(1.2rem, 5vw, 1.7rem); }
  .car-meta-artist { font-size: 0.82rem; }

  /* Contact */
  .contact-symbol { width: 50px; height: 50px; }

  .contact-title { font-size: clamp(1.55rem, 7vw, 2rem); }
  .contact-body { font-size: 0.95rem; line-height: 1.8; }
  .contact-icons-container {
    gap: 2rem;
  }
  .contact-icon-btn {
    width: 70px;
    height: 70px;
  }

  /* Footer */
  .site-footer { margin-top: 3.5rem; padding: 0 1rem 1.5rem; font-size: 0.54rem; }
}

@media (max-width: 480px) and (pointer: coarse) {
  .nav-mobile-menu {
    background: rgba(4, 7, 15, 0.45) !important;
    border-color: rgb(68, 57, 39) !important;
  }
  .nav-mobile-link {
    color: var(--gold) !important;
  }
}




/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .car-nav:hover {
    transform: translateY(-50%) scale(1);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.05) inset,
      0 8px 24px rgba(0,0,0,0.6);
  }
  .bio-tag:hover {
    background: rgba(201,147,58,0.04);
    border-color: rgba(201,147,58,0.22);
    color: var(--gold);
  }
  .nav-mobile-link:hover {
    color: var(--pale-2);
    background: transparent;
  }
}

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


/* ═══════════════════════════════════════════════════════════════════════════════
   iOS-SPECIFIC STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── iOS App shell ── */
.ios-app {
  background: var(--abyss);
  min-height: 100dvh;
}

/* ── iOS Hero (simplified, no sticky scroll, no ocean layers) ── */
.ios-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(74,122,154,0.12), transparent 60%),
    linear-gradient(to bottom, var(--abyss) 0%, var(--depth-base) 40%, var(--abyss) 100%);
  overflow: hidden;
}
.ios-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  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='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.ios-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ios-hero .hero-glyph {
  width: 84px;
  height: 84px;
  margin-bottom: 2.5rem;
}
.ios-hero .hero-name {
  color: var(--cream);
  text-shadow:
    0 2px 30px rgba(255,255,255,0.25),
    0 0 60px rgba(74,106,138,0.06);
}
.ios-hero .hero-tagline {
  color: var(--pale-2);
  text-shadow: none;
}
.ios-hero .descend-cue {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  margin-top: 3rem;
}

/* ── iOS Music Section ── */
.ios-music-section {
  position: relative;
  padding: 5rem 1.25rem 7rem;
  background:
    radial-gradient(ellipse at 50% 22%, rgba(50,80,110,0.12), transparent 50%),
    linear-gradient(to bottom,
      var(--abyss)           0%,
      var(--depth-mid)      16%,
      var(--depth-mid)      60%,
      var(--depth-base)     82%,
      var(--abyss)         100%
    );
}
.ios-music-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--abyss) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.ios-music-section .sound-header {
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
}

/* Accordion track list */
.ios-music-list {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ios-music-item {
  background: rgba(8,13,24,0.7);
  border: 1px solid rgba(201,147,58,0.18);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ios-music-item:active {
  transform: scale(0.992);
}
.ios-music-item.open {
  border-color: rgba(var(--accent-r,201),var(--accent-g,147),var(--accent-b,58),0.55);
  box-shadow:
    0 0 0 1px rgba(var(--accent-r,201),var(--accent-g,147),var(--accent-b,58),0.15),
    0 8px 32px rgba(0,0,0,0.4);
}

.ios-music-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
}
.ios-music-num {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  min-width: 32px;
  text-align: center;
  padding: 0.2rem 0;
  border: 1px solid rgba(201,147,58,0.3);
  background: rgba(0,0,0,0.35);
  border-radius: 4px;
}
.ios-music-title {
  flex: 1;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
}
.ios-music-arrow {
  font-family: var(--label);
  font-size: 1.1rem;
  color: var(--gold);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201,147,58,0.08);
  transition: transform 0.3s var(--ease-out-expo), background 0.3s;
}
.ios-music-item.open .ios-music-arrow {
  background: rgba(201,147,58,0.18);
  transform: rotate(180deg);
}

.ios-music-body {
  padding: 0 1.2rem 1.2rem;
  animation: iosExpand 0.3s var(--ease-out-expo) both;
}
@-webkit-keyframes iosExpand {
  from { opacity: 0; -webkit-transform: translateY(-6px); }
  to   { opacity: 1; -webkit-transform: translateY(0); }
}
@keyframes iosExpand {
  from { opacity: 0; -webkit-transform: translateY(-6px); transform: translateY(-6px); }
  to   { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

.ios-music-iframe {
  width: 100%;
  height: 166px;
  border: 0;
  border-radius: 8px;
  background: var(--depth-base);
  display: block;
}
.ios-music-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  font-family: var(--label);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(201,147,58,0.25);
  border-radius: 999px;
  background: rgba(0,0,0,0.3);
  transition: all 0.3s var(--ease-out-expo);
}
.ios-music-link:hover,
.ios-music-link:active {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  background: rgba(201,147,58,0.08);
}

/* ── iOS: disable heavy ambient effects ── */
.ios-app .particles,
.ios-app .bubbles-layer,
.ios-app .caustics-layer,
.ios-app .shafts-layer,
.ios-app .veil-layer,
.ios-app .abyss-layer {
  display: none !important;
}

/* Tone down float animation on iOS hero (keep it subtle) */
.ios-app .float {
  -webkit-animation-duration: 4s;
  animation-duration: 4s;
}

/* iOS nav: always dark since hero is dark */
.ios-app .nav,
.ios-app .nav.light,
.ios-app .nav.scrolled {
  background: rgba(15, 26, 42, 0.6) !important;
  border: 1px solid rgba(201, 147, 58, 0.3) !important;
  color: var(--gold) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: none !important;
}
.ios-app .nav.light .nav-sigil {
  color: #b18237 !important;
}
.ios-app .nav .nav-hamburger span,
.ios-app .nav.scrolled .nav-hamburger span {
  background: var(--gold) !important;
}
.ios-app .language-toggle-btn,
.ios-app .language-toggle-btn.scrolled {
  background: rgba(15, 26, 42, 0.6) !important;
  border: 1px solid rgba(201, 147, 58, 0.3) !important;
  color: var(--gold) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: none !important;
}
.ios-app .nav-mobile-menu {
  animation: menuOpen 0.3s ease both;
}
.ios-app .nav-mobile-menu,
.ios-app .nav-mobile-menu.scrolled {
  background: rgba(4, 7, 15, 0.45) !important;
  border-color: rgb(68, 57, 39) !important;
}
.ios-app .nav-mobile-link,
.ios-app .nav-mobile-menu.scrolled .nav-mobile-link {
  color: var(--gold) !important;
}

/* ── iOS responsive tweaks ── */
@media (max-width: 480px) {
  .ios-hero {
    padding: 5rem 1rem 3rem;
  }
  .ios-hero .hero-glyph {
    width: 72px;
    height: 72px;
    margin-bottom: 2rem;
  }
  .ios-music-section {
    padding: 3.5rem 1rem 5rem;
  }
  .ios-music-header {
    padding: 0.85rem 1rem;
    gap: 0.7rem;
  }
  .ios-music-num {
    font-size: 0.65rem;
    min-width: 28px;
  }
  .ios-music-title {
    font-size: 0.78rem;
  }
  .ios-music-iframe {
    height: 140px;
  }
}

/* ── LANGUAGE TOGGLE ── */
.language-toggle-btn {
  position: fixed;
  top: 0.7rem;
  right: .5rem;
  z-index: 1000;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(15, 26, 42, 0.2);
  border-radius: 999px;
  color: var(--navy-soft);
  font-family: var(--label);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.5s var(--ease-out-expo),
              border-color 0.5s var(--ease-out-expo),
              color 0.5s var(--ease-out-expo);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.language-toggle-btn:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.22);
  transition: color 0.3s, background 0.3s;
}

.language-toggle-btn.scrolled {
  background: rgba(4, 7, 15, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--pale-2);
}

.language-toggle-btn.scrolled:hover {
  color: var(--gold-bright);
}


