/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--selection-bg); color: var(--selection-color); }
::-moz-selection { background: var(--selection-bg); color: var(--selection-color); }

/* ── Theme Toggle ─────────────────────────────────── */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10001;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-family: 'Tomorrow', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: all 0.4s ease;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.theme-toggle:hover {
  border-color: rgba(255,87,90,0.3);
}
.theme-toggle-icon {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-right: 0.1rem;
}
.theme-toggle:hover .theme-toggle-icon { animation: togglePulse 1.5s ease-in-out infinite; }
@keyframes togglePulse {
  0%, 100% { transform: rotate(0deg); opacity: 0.7; }
  50% { transform: rotate(15deg); opacity: 1; }
}
.theme-toggle-label {
  transition: color 0.4s ease, opacity 0.4s ease;
  font-weight: 600;
  color: var(--accent-1);
}
.theme-toggle-divider {
  color: var(--text-muted);
  font-weight: 300;
  opacity: 0.3;
}
.theme-toggle-label-alt {
  transition: color 0.4s ease, opacity 0.4s ease;
  font-weight: 300;
  opacity: 0.35;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.theme-toggle:hover .theme-toggle-label-alt { opacity: 0.8; color: var(--accent-1); }

.theme-toggle-label-vida {
  transition: color 0.4s ease, opacity 0.4s ease;
  font-weight: 300;
  opacity: 0.35;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}
.theme-toggle:hover .theme-toggle-label-vida { opacity: 0.8; color: var(--accent-1); }

/* Swap active/inactive labels in habitat */
[data-theme="habitat"] .theme-toggle {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="habitat"] .theme-toggle:hover {
  background: rgba(255,87,90,0.08);
  border-color: rgba(255,87,90,0.35);
}
[data-theme="habitat"] .theme-toggle-label {
  font-weight: 300;
  opacity: 0.35;
  color: var(--text-dim);
}
[data-theme="habitat"] .theme-toggle:hover .theme-toggle-label { opacity: 0.8; }
[data-theme="habitat"] .theme-toggle-label-alt {
  font-weight: 600;
  opacity: 1;
  color: var(--accent-1);
}

/* ── Theme Transition Overlay ─────────────────────── */
.theme-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.theme-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Main Switching ───────────────────────────────── */
#main-midnight { display: block; }
#main-habitat { display: none; }
#bg-layer-habitat { display: none; }
[data-theme="habitat"] #main-midnight { display: none !important; }
[data-theme="habitat"] #main-habitat { display: block !important; }
[data-theme="habitat"] #bg-layer-habitat { display: block !important; }
[data-theme="habitat"] .bg-layer:not(#bg-layer-habitat) { display: none !important; }

/* ── Habitat: Hide HUD elements ───────────────────── */
[data-theme="habitat"] .hud,
[data-theme="habitat"] .coord-label,
[data-theme="habitat"] .micro-blink,
[data-theme="habitat"] .micro-text-static,
[data-theme="habitat"] .micro-accent-line,
[data-theme="habitat"] .crosshair,
[data-theme="habitat"] .crosshair-tr,
[data-theme="habitat"] .hud-ticker,
[data-theme="habitat"] .gradient-border-anim,
[data-theme="habitat"] .blur-vignette {
  display: none !important;
}

/* ── Habitat: Softer UI ───────────────────────────── */
[data-theme="habitat"] .menu-overlay {
  background: rgba(250, 250, 245, 0.97);
}
[data-theme="habitat"] .menu-link {
  color: rgba(26,26,26,0.5);
}
[data-theme="habitat"] .menu-link:hover {
  color: rgba(26,26,26,1);
}
[data-theme="habitat"] .menu-num {
  color: rgba(255,87,90,0.4);
}
[data-theme="habitat"] .menu-cta {
  color: rgba(26,26,26,0.7);
  border-color: rgba(26,26,26,0.15);
}
[data-theme="habitat"] .menu-cta:hover {
  color: #1A1A1A;
  border-color: rgba(255,87,90,0.5);
  background: rgba(255,87,90,0.08);
}
[data-theme="habitat"] .menu-footer a {
  color: rgba(26,26,26,0.2);
}
[data-theme="habitat"] .menu-footer a:hover {
  color: rgba(26,26,26,0.6);
}
[data-theme="habitat"] .hamburger-line {
  background: rgba(255,87,90,0.7);
}
[data-theme="habitat"] .hamburger:hover .hamburger-line {
  background: rgba(255,87,90,1);
}
[data-theme="habitat"] .hamburger {
  animation: none;
}

/* ── Habitat: Indicators + Numpad ─────────────────── */
[data-theme="habitat"] .indicator.active {
  background: var(--accent-1);
}
[data-theme="habitat"] .numpad-key.active {
  color: var(--accent-1);
  border-color: var(--accent-1);
}

/* ── Habitat: Scrollbar ───────────────────────────── */
[data-theme="habitat"] ::-webkit-scrollbar-thumb {
  background: rgba(255,87,90,0.3);
}

/* ── Habitat: Force dark text on all elements ─────── */
[data-theme="habitat"] {
  color: #1A1A1A;
}
[data-theme="habitat"] h1,
[data-theme="habitat"] h2,
[data-theme="habitat"] h3,
[data-theme="habitat"] p,
[data-theme="habitat"] span,
[data-theme="habitat"] a,
[data-theme="habitat"] div,
[data-theme="habitat"] label,
[data-theme="habitat"] li,
[data-theme="habitat"] .statement,
[data-theme="habitat"] .statement--accent,
[data-theme="habitat"] .statement--sub,
[data-theme="habitat"] .hero-name,
[data-theme="habitat"] .hero-sub,
[data-theme="habitat"] .meta-whisper,
[data-theme="habitat"] .section-heading,
[data-theme="habitat"] .section-num,
[data-theme="habitat"] .micro-label,
[data-theme="habitat"] .why-text,
[data-theme="habitat"] .aesthetic-content,
[data-theme="habitat"] .vertical-accent p,
[data-theme="habitat"] .tl-hud-label,
[data-theme="habitat"] .tl-hud-status,
[data-theme="habitat"] .tl-point-year,
[data-theme="habitat"] .tl-point-label,
[data-theme="habitat"] .about-text,
[data-theme="habitat"] .work-item-title,
[data-theme="habitat"] .work-item-sub,
[data-theme="habitat"] .contact-heading,
[data-theme="habitat"] .contact-sub,
[data-theme="habitat"] .contact-label,
[data-theme="habitat"] .ex-label,
[data-theme="habitat"] .ex-name,
[data-theme="habitat"] .ex-status,
[data-theme="habitat"] .pg-title,
[data-theme="habitat"] .pg-detail,
[data-theme="habitat"] .pg-num,
[data-theme="habitat"] .scroll-arrow-text,
[data-theme="habitat"] .tab-btn,
[data-theme="habitat"] .tab-item,
[data-theme="habitat"] .thinking-intro {
  color: rgba(26,26,26,0.75) !important;
}
[data-theme="habitat"] .hero-name,
[data-theme="habitat"] .section-heading,
[data-theme="habitat"] .statement--accent,
[data-theme="habitat"] .contact-heading {
  color: rgba(26,26,26,0.9) !important;
}
[data-theme="habitat"] .accent-word,
[data-theme="habitat"] .section-num,
[data-theme="habitat"] .pg-num,
[data-theme="habitat"] .menu-num {
  color: rgba(255,87,90,0.6) !important;
}
[data-theme="habitat"] .tl-point-dot {
  border-color: rgba(26,26,26,0.4) !important;
}
[data-theme="habitat"] .tl-point.active .tl-point-dot {
  border-color: rgba(255,87,90,0.7) !important;
  background: rgba(255,87,90,0.3) !important;
}

/* ── Habitat: No glitch reveals ───────────────────── */
[data-theme="habitat"] .reveal-glitch {
  animation: none !important;
}

/* ── Dual Video System ────────────────────────────── */
.bg-video-midnight { opacity: 1; transition: opacity 1s ease; }
.bg-video-habitat { opacity: 0; transition: opacity 1s ease; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-theme="habitat"] .bg-video-midnight { opacity: 0 !important; }
[data-theme="habitat"] .bg-video-habitat { opacity: 1; }

/* ── Hamburger ────────────────────────────────────── */
.hamburger {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10001;
  background: none;
  border: none;
  cursor: pointer;
  width: 22px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(0.77,0,0.18,1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: rgba(255,87,90,0.7);
  transition: transform 0.4s cubic-bezier(0.77,0,0.18,1), opacity 0.3s ease, width 0.4s cubic-bezier(0.77,0,0.18,1);
  transform-origin: center;
}
.hamburger-line:nth-child(2) { width: 60%; }
.hamburger:hover .hamburger-line { background: rgba(255,87,90,1); }
.hamburger:hover .hamburger-line:nth-child(2) { width: 100%; }
.hamburger.scrolled { transform: scale(0.8); }
.hamburger { animation: hamburger-glitch 6s infinite; }
@keyframes hamburger-glitch {
  0%, 88%, 96%, 100% { transform: translate(0); filter: none; }
  90% { transform: translate(-2px, 1px) skewX(-8deg); filter: drop-shadow(2px 0 rgba(255,87,90,0.6)) drop-shadow(-2px 0 rgba(123,140,255,0.6)); }
  91% { transform: translate(1px, -1px) skewX(5deg); filter: drop-shadow(-1px 0 rgba(52,10,34,0.8)) drop-shadow(1px 0 rgba(21,44,58,0.8)); }
  92% { transform: translate(-1px, 0) skewX(-3deg); filter: drop-shadow(1px 0 rgba(255,87,90,0.4)); }
  93% { transform: translate(0); filter: none; }
}
.hamburger.scrolled { animation-name: hamburger-glitch-small; }
@keyframes hamburger-glitch-small {
  0%, 88%, 96%, 100% { transform: scale(0.8) translate(0); filter: none; }
  90% { transform: scale(0.8) translate(-2px, 1px) skewX(-8deg); filter: drop-shadow(2px 0 rgba(255,87,90,0.6)) drop-shadow(-2px 0 rgba(123,140,255,0.6)); }
  91% { transform: scale(0.8) translate(1px, -1px) skewX(5deg); }
  92% { transform: scale(0.8) translate(-1px, 0) skewX(-3deg); }
  93% { transform: scale(0.8) translate(0); filter: none; }
}
.hamburger.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menu Overlay ─────────────────────────────────── */
.menu-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(10, 10, 10, 0.97);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.77,0,0.18,1), visibility 0.5s;
  display: flex; align-items: center; justify-content: center;
}
.menu-overlay.active { opacity: 1; visibility: visible; }
.menu-overlay.active .menu-overlay-inner { transform: translateY(0); opacity: 1; }
.menu-overlay-inner {
  text-align: left; max-width: 600px; width: 100%; padding: 2rem 3rem;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.6s cubic-bezier(0.77,0,0.18,1) 0.1s, opacity 0.5s ease 0.1s;
}
.menu-nav { display: flex; flex-direction: column; gap: 0; margin-bottom: 2rem; }
.menu-link {
  font-family: 'Geist', monospace; font-size: clamp(1rem, 2.5vw, 1.5rem); font-weight: 200;
  color: rgba(255,255,255,0.5); text-decoration: none; letter-spacing: 0.05em; padding: 0.35rem 0;
  transition: color 0.3s, transform 0.4s cubic-bezier(0.77,0,0.18,1), letter-spacing 0.4s;
  transform: translateY(20px); opacity: 0;
}
.menu-overlay.active .menu-link { transform: translateY(0); opacity: 1; }
.menu-overlay.active .menu-link:nth-child(1) { transition-delay: 0.05s; }
.menu-overlay.active .menu-link:nth-child(2) { transition-delay: 0.08s; }
.menu-overlay.active .menu-link:nth-child(3) { transition-delay: 0.11s; }
.menu-overlay.active .menu-link:nth-child(4) { transition-delay: 0.14s; }
.menu-overlay.active .menu-link:nth-child(5) { transition-delay: 0.17s; }
.menu-overlay.active .menu-link:nth-child(6) { transition-delay: 0.20s; }
.menu-overlay.active .menu-link:nth-child(7) { transition-delay: 0.23s; }
.menu-overlay.active .menu-link:nth-child(8) { transition-delay: 0.26s; }
.menu-overlay.active .menu-link:nth-child(9) { transition-delay: 0.29s; }
.menu-link:hover { color: rgba(255,255,255,1); letter-spacing: 0.12em; }
.menu-num { font-size: 0.5em; color: rgba(255,87,90,0.4); margin-right: 0.8rem; font-weight: 400; letter-spacing: 0.15em; }
.menu-ctas { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; margin-bottom: 2rem; }
.menu-cta {
  font-family: 'Geist', monospace; font-size: 0.7rem; font-weight: 400;
  color: rgba(255,255,255,0.7); text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.7rem 1.4rem; border: 1px solid rgba(255,255,255,0.15); border-radius: 2px;
  transition: all 0.3s ease; display: flex; align-items: center; gap: 0.5rem;
}
.menu-cta:hover { color: #fff; border-color: rgba(255,87,90,0.5); background: rgba(255,87,90,0.08); }
.menu-cta--wa:hover { border-color: rgba(37,211,102,0.5); background: rgba(37,211,102,0.08); }
.menu-cta--tg:hover { border-color: rgba(0,136,204,0.5); background: rgba(0,136,204,0.08); }
.menu-footer { display: flex; gap: 2rem; justify-content: flex-start; }
.menu-footer a {
  font-family: 'Geist', monospace; font-size: 0.55rem; color: rgba(255,255,255,0.2);
  text-decoration: none; letter-spacing: 0.15em; text-transform: uppercase; transition: color 0.3s;
}
.menu-footer a:hover { color: rgba(255,255,255,0.6); }
@media (max-width: 900px) {
  .menu-overlay-inner { padding: 1.5rem 2rem; }
  .menu-nav { margin-bottom: 1.5rem; }
  .menu-link { font-size: 0.95rem; padding: 0.35rem 0; }
  .menu-num { font-size: 0.5em; margin-right: 0.5rem; }
  .menu-ctas { margin-bottom: 1.5rem; gap: 0.4rem; }
  .menu-cta { font-size: 0.6rem; padding: 0.5rem 1rem; }
  .menu-footer a { font-size: 0.5rem; }
}
/* Mobile toggle — smaller at start, shrinks on scroll */
@media (max-width: 768px) {
  .theme-toggle {
    font-size: 0.6rem;
    padding: 0.45rem 0.9rem;
    gap: 0.35rem;
    transition: all 0.4s ease;
  }
  .theme-toggle-icon { font-size: 0.9rem; }
  .theme-toggle.scrolled {
    font-size: 0.45rem;
    padding: 0.3rem 0.6rem;
    gap: 0.25rem;
    opacity: 0.7;
    min-height: 30px;
    min-width: 30px;
  }
  .theme-toggle.scrolled .theme-toggle-icon { font-size: 0.65rem; }
}

/* ── Theme: Midnight (default) ─────────────────────── */
:root, [data-theme="midnight"] {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-surface: #1a1a1a;
  --text-primary: #F9F8F2;
  --text-dim: rgba(249, 248, 242, 0.45);
  --text-muted: rgba(249, 248, 242, 0.12);
  --accent-1: #FF575A;
  --accent-2: #7B8CFF;
  --accent-depth: #340A22;
  --accent-atmos: #152C3A;
  --border-accent: rgba(255,87,90,0.15);
  --selection-bg: rgba(255,87,90,0.35);
  --selection-color: #fff;
  /* Legacy aliases */
  --black: #0a0a0a;
  --white: #F9F8F2;
  --dim: rgba(249, 248, 242, 0.45);
  --muted: rgba(249, 248, 242, 0.12);
  --surface: #111111;
  --surface-2: #1a1a1a;
  --primary: #340A22;
  --secondary: #FF575A;
  --tertiary: #152C3A;
  --cream: #F9F8F2;
  --font: 'Geist', system-ui, -apple-system, sans-serif;
}

/* ── Theme: Habitat ───────────────────────────────── */
[data-theme="habitat"] {
  --bg-primary: #FAFAF5;
  --bg-secondary: #F0EDE4;
  --bg-surface: #E8E4DB;
  --text-primary: #1A1A1A;
  --text-dim: rgba(26, 26, 26, 0.45);
  --text-muted: rgba(26, 26, 26, 0.12);
  --accent-1: #FF575A;
  --accent-2: #D4A373;
  --accent-depth: #A3B18A;
  --accent-atmos: #588157;
  --border-accent: rgba(255,87,90,0.15);
  --selection-bg: rgba(255,87,90,0.2);
  --selection-color: #1A1A1A;
  /* Legacy aliases for habitat */
  --black: #FAFAF5;
  --white: #1A1A1A;
  --dim: rgba(26, 26, 26, 0.45);
  --muted: rgba(26, 26, 26, 0.12);
  --surface: #F0EDE4;
  --surface-2: #E8E4DB;
  --primary: #A3B18A;
  --secondary: #FF575A;
  --tertiary: #588157;
  --cream: #1A1A1A;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
  transition: background-color 1.5s cubic-bezier(0.4, 0, 0.2, 1), color 1.2s ease;
}

a, button, .tl-point, .indicator, .contact-link { cursor: none; }

/* ── Custom Cursor ────────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,87,90,0.4);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  animation: cursor-pulse 2s ease-in-out infinite;
}
@keyframes cursor-pulse {
  0%, 100% { width: 32px; height: 32px; border-color: rgba(255,87,90,0.4); }
  50% { width: 40px; height: 40px; border-color: rgba(255,87,90,0.2); }
}

/* Hover state - ring expands */
.cursor-ring.hover {
  width: 50px;
  height: 50px;
  border-color: rgba(255,87,90,0.6);
  animation: none;
}

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

/* ── Starfield Canvas ─────────────────────────────── */
#starfield-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Fading Section Dividers ──────────────────────── */
.scene::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.08) 70%, transparent);
  z-index: 5;
}

.scene:last-child::after { display: none; }

/* ── Vertical Accent Lines ────────────────────────── */
.vertical-accent {
  position: relative;
  padding-left: 1.5rem;
}
.vertical-accent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
}

/* ── Pull Quotes ──────────────────────────────────── */
.pull-quote {
  position: relative;
  padding-left: 1.5rem;
}
.pull-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--secondary), transparent);
}

/* ── Micro Labels ─────────────────────────────────── */
.micro-label {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── Section Background Gradients — transparent, fixed bg shines through ── */
#hero { background: radial-gradient(ellipse at 50% 30%, rgba(52,10,34,0.2) 0%, transparent 70%); }
#signal { background: transparent; }
#about { background: transparent; }
#work { background: transparent; }
#gravity { background: transparent; }
#thinking { background: transparent; }
#aesthetic { background: transparent; }
#why { background: transparent; }
#contact { background: radial-gradient(ellipse at 50% 60%, rgba(52,10,34,0.15) 0%, transparent 70%); }

/* ── Letter Animation ─────────────────────────────── */
.letter-animate .letter {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.8s ease, filter 0.8s ease;
}
.letter-animate.visible .letter {
  opacity: 1;
  filter: blur(0);
}

/* ── Typewriter Effect ────────────────────────────── */
.typewriter {
  border-right: 1px solid rgba(255,255,255,0.4);
  animation: blink-caret 0.8s step-end infinite;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
}
.typewriter.typing {
  animation: blink-caret 0.8s step-end infinite;
  transition: none;
}
@keyframes blink-caret {
  50% { border-color: transparent; }
}

/* ── Reveal Variants ──────────────────────────────── */
.reveal-left {
  transform: translateX(-40px) !important;
}
.reveal-left.visible {
  transform: translateX(0) !important;
}
.reveal-scale {
  transform: scale(0.95) !important;
}
.reveal-scale.visible {
  transform: scale(1) !important;
}
.reveal-right {
  transform: translateX(40px) !important;
}
.reveal-right.visible {
  transform: translateX(0) !important;
}

/* ── Text Glow on Hover ───────────────────────────── */

/* ── Corner Brackets on Image Placeholders ────────── */
.image-placeholder::before,
.image-placeholder::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 2;
}
.image-placeholder::before {
  top: 12px;
  left: 12px;
  border-top: 1px solid rgba(255,87,90,0.2);
  border-left: 1px solid rgba(255,87,90,0.2);
}
.image-placeholder::after {
  bottom: 12px;
  right: 12px;
  border-bottom: 1px solid rgba(255,87,90,0.2);
  border-right: 1px solid rgba(255,87,90,0.2);
}

/* ── Blur-Type Heading ────────────────────────────── */
.blur-type .letter {
  filter: blur(12px);
  opacity: 0;
  transition: filter 0.8s ease, opacity 0.6s ease, transform 0.6s ease;
}
.blur-type.visible .letter {
  filter: blur(0px);
  opacity: 1;
  transform: translateY(0);
}

/* ── Outline Text for Thinking Section ────────────── */
.thinking-word:last-child h3 {
  -webkit-text-stroke: 1px rgba(255,87,90,0.5);
  -webkit-text-fill-color: transparent;
}

/* ── Section Number Accent ────────────────────────── */
.section-num {
  color: var(--secondary) !important;
  opacity: 0.4;
}

/* ── Gravity Item Heading Accent ──────────────────── */
.gravity-item h3 {
  color: var(--cream) !important;
}
.gravity-item h3::before {
  content: '◆ ';
  color: var(--secondary);
  font-size: 0.5em;
  vertical-align: middle;
  margin-right: 0.3em;
}

/* ── Navigation — thin, nearly invisible ──────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2.5rem;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.6s, transform 0.6s;
  pointer-events: none;
}

.nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-logo {
  display: none;
}

.ex-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}
.ex-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(249,248,242,0.04);
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Geist', monospace;
}
.ex-row:first-child { border-top: 1px solid rgba(249,248,242,0.04); }
.ex-row--live { cursor: pointer; }
.ex-row--live:hover { background: rgba(255,87,90,0.02); padding-left: 0.5rem; padding-right: 0.5rem; }
.ex-row--empty { opacity: 0.2; }
.ex-row--soon { opacity: 0.35; cursor: default; }
.ex-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(249,248,242,0.1);
  flex-shrink: 0;
}
.ex-indicator--live {
  background: rgba(255,87,90,0.6);
  box-shadow: 0 0 6px rgba(255,87,90,0.3);
  animation: pulse 2s ease-in-out infinite;
}
.ex-num {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(255,87,90,0.35);
  flex-shrink: 0;
  width: 1.2rem;
}
.ex-line {
  flex: 1;
  height: 1px;
  background: rgba(249,248,242,0.04);
  min-width: 10px;
}
.ex-name {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: rgba(249,248,242,0.5);
  white-space: nowrap;
  flex-shrink: 0;
}
.ex-row--live:hover .ex-name { color: rgba(249,248,242,0.9); }
.ex-tag {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: rgba(249,248,242,0.15);
  white-space: nowrap;
  flex-shrink: 0;
}
.ex-status {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: rgba(249,248,242,0.12);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.ex-status--live {
  color: rgba(255,87,90,0.5);
}
/* Dim video on hover */
.ex-list:hover ~ .ex-dim-trigger,
body:has(.ex-list:hover) .bg-layer {
  filter: blur(3px) brightness(0.25);
  transition: filter 0.5s ease;
}
.bg-layer {
  transition: filter 0.5s ease;
}

@media (max-width: 600px) {
  .ex-row { gap: 0.5rem; }
  .ex-tag { display: none; }
  .ex-line:nth-of-type(2) { display: none; }
}

/* ── Principles Grid (Liquid) ─────────────────────── */
.principles-grid {
  margin-top: 2rem;
  display: flex;
  gap: 2px;
  width: 90vw;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.pg-card {
  position: relative;
  padding: 1.5rem 1.3rem;
  border: 1px solid rgba(249,248,242,0.04);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  min-width: 0;
}
.pg-card:hover {
  flex: 3;
  border-color: rgba(255,87,90,0.15);
  background: rgba(255,87,90,0.02);
}
.pg-num {
  font-family: 'Geist', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  color: rgba(255,87,90,0.3);
}
.pg-title {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(249,248,242,0.45);
  transition: color 0.3s;
  white-space: nowrap;
}
.pg-card:hover .pg-title { color: rgba(249,248,242,0.9); }
.pg-hover {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.pg-card:hover .pg-hover {
  max-height: 300px;
  opacity: 1;
}
.pg-detail {
  font-family: 'Geist', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  line-height: 2;
  color: rgba(249,248,242,0.35);
  padding-top: 0.5rem;
}
@media (max-width: 700px) {
  .principles-grid { flex-direction: column; width: 95vw; }
  .pg-card:hover { flex: 1; }
}

/* ── Heading Bump Animation ───────────────────────── */
.heading-bump {
  animation: heading-bump 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes heading-bump {
  0% { transform: translateY(8px) scale(0.98); opacity: 0.7; }
  40% { transform: translateY(-3px) scale(1.01); opacity: 1; }
  70% { transform: translateY(1px) scale(1); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ── Section Indicators — fixed left ──────────────── */
.section-indicators {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0;
  animation: nav-fade-in 1.5s ease 0.8s forwards;
}
@keyframes nav-fade-in {
  to { opacity: 1; }
}
.mobile-br { display: none; }
@media (max-width: 900px) {
  .mobile-br { display: block; }
}

.nav-numpad {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 42px;
  z-index: 200;
}
.numpad-key {
  font-family: 'Geist', monospace;
  font-size: 0.45rem;
  font-weight: 300;
  color: rgba(249,248,242,0.15);
  text-align: center;
  line-height: 14px;
  height: 14px;
  border: 1px solid rgba(249,248,242,0.06);
  border-radius: 1px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  cursor: pointer;
}
.numpad-key:hover {
  color: rgba(249,248,242,0.5);
  border-color: rgba(249,248,242,0.15);
}
.numpad-key.active {
  color: rgba(255,87,90,0.9);
  border-color: rgba(255,87,90,0.3);
  background: rgba(255,87,90,0.05);
}
.numpad-label {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Geist', monospace;
  font-size: 0.4rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(249,248,242,0.25);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.numpad-key {
  position: relative;
}
.numpad-key:hover .numpad-label {
  opacity: 1;
}

.indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.2rem 0;
  opacity: 0.25;
  transition: opacity 0.4s;
  cursor: pointer;
  z-index: 200;
  position: relative;
}

.indicator.active {
  opacity: 1;
}

.section-indicators:hover .indicator {
  opacity: 0.4;
  transition: opacity 0.3s;
}
.section-indicators:hover .indicator.active {
  opacity: 1;
}
.section-indicators:hover .indicator:hover {
  opacity: 0.7;
}

.indicator-num {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(249,248,242,0.08);
  padding: 0.2rem 0.25rem;
  min-width: 1.4rem;
  text-align: center;
  transition: padding 0.4s ease, min-width 0.4s ease, border-color 0.3s;
}
.indicator:hover .indicator-num {
  padding: 0.2rem 0.8rem;
  min-width: 2.4rem;
  border-color: rgba(255,87,90,0.2);
}

.indicator-label {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.4s, opacity 0.3s;
  white-space: nowrap;
}

.indicator.active .indicator-label {
  max-width: 80px;
  opacity: 1;
}

/* EX indicator special */
.indicator[href="#experiments"]:hover .indicator-num {
  color: #FF575A;
  border-color: rgba(255,87,90,0.4);
}
.indicator[href="#experiments"]:hover .indicator-label {
  color: rgba(255,87,90,0.6);
}
/* EX menu link special */
.menu-link[href="#experiments"]:hover { color: rgba(255,87,90,0.9); }
.menu-link[href="#experiments"]:hover .menu-num { color: rgba(255,87,90,0.7); }
.menu-link[href="#experiments"]:hover { animation: ex-glitch 0.4s ease; }

@keyframes ex-glitch {
  0% { transform: translate(0); text-shadow: none; }
  20% { transform: translate(-2px, 1px) skewX(-5deg); text-shadow: -2px 0 #FF575A, 2px 0 #7B8CFF; }
  40% { transform: translate(2px, -1px) skewX(3deg); text-shadow: 2px 0 #FF575A, -1px 0 #7B8CFF; }
  60% { transform: translate(-1px, 0) skewX(-2deg); text-shadow: -1px 0 #FF575A; }
  80% { transform: translate(1px, 0); text-shadow: none; }
  100% { transform: translate(0); text-shadow: none; }
}

/* ── HUD Elements — Sci-Fi Micro-Typography ───────── */
.hud {
  position: absolute;
  z-index: 10;
  font-family: 'Geist', monospace;
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 87, 90, 0.25);
  pointer-events: none;
}
.hud-tl {
  top: 2rem;
  left: 6rem;
}
.hud-br {
  bottom: 2rem;
  right: 3rem;
}
.hud::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 87, 90, 0.3);
  border-radius: 50%;
  margin-right: 0.5em;
  vertical-align: middle;
  animation: hud-pulse 3s ease-in-out infinite;
}
@keyframes hud-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; border-color: var(--secondary); }
}

/* ── Meta Whisper — Narrative Layer ───────────────── */
.meta-whisper {
  font-family: 'Geist', monospace;
  font-size: 0.6rem;
  font-weight: 200;
  font-style: italic;
  letter-spacing: 0.25em;
  color: rgba(249, 248, 242, 0.15);
  margin-bottom: 2rem;
  text-transform: lowercase;
}

/* ── Scanning Line Animation (removed) ──────────── */

/* ── HUD Data Ticker ──────────────────────────────── */
.hud-ticker {
  position: absolute;
  bottom: 2rem;
  left: 6rem;
  z-index: 10;
  font-family: 'Geist', monospace;
  font-size: 0.45rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(249,248,242,0.1);
  overflow: hidden;
  white-space: nowrap;
  width: 180px;
  pointer-events: none;
}
.hud-ticker span {
  display: inline-block;
  animation: ticker-scroll 12s linear infinite;
}
@keyframes ticker-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── Glassmorphism Micro-Panels ───────────────────── */
.glass-panel {
  background: rgba(255,255,255,0.03);
  /* backdrop-filter removed */
  -webkit-/* backdrop-filter removed */
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 2px;
  padding: 2rem 2.5rem;
}

/* ── Floating Micro-Badges ────────────────────────── */
.micro-badge {
  display: inline-block;
  font-family: 'Geist', monospace;
  font-size: 0.4rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,87,90,0.35);
  border: 1px solid rgba(255,87,90,0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 1px;
  margin-right: 0.5rem;
  animation: badge-float 6s ease-in-out infinite;
}
.micro-badge:nth-child(2) { animation-delay: -2s; }
.micro-badge:nth-child(3) { animation-delay: -4s; }
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ── Breathing Glow on Sections ───────────────────── */
.scene {
  --glow-color: rgba(255,87,90,0.03);
}
#hero { --glow-color: rgba(52,10,34,0.15); }
#signal { --glow-color: rgba(21,44,58,0.15); }
#gravity { --glow-color: rgba(52,10,34,0.12); }
#contact { --glow-color: rgba(255,87,90,0.05); }

/* ── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,87,90,0.3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,87,90,0.6); }
html { scrollbar-width: thin; scrollbar-color: rgba(255,87,90,0.3) transparent; }

/* ── Animated Corner Crosshairs ───────────────────── */
.crosshair {
  position: absolute;
  z-index: 10;
  pointer-events: none;
}
.crosshair::before, .crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255,87,90,0.15);
}
.crosshair::before {
  width: 16px;
  height: 1px;
  top: 0;
  left: -8px;
}
.crosshair::after {
  width: 1px;
  height: 16px;
  top: -8px;
  left: 0;
}
.crosshair-tl { top: 3rem; left: 3rem; }
.crosshair-tr { top: 3rem; right: 3rem; }
.crosshair-bl { bottom: 3rem; left: 3rem; }

/* ── Animated Dashed Border Segments ──────────────── */
.dash-border-top {
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  z-index: 5;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,87,90,0.08) 0px,
    rgba(255,87,90,0.08) 4px,
    transparent 4px,
    transparent 12px
  );
  animation: dash-shift 4s linear infinite;
  pointer-events: none;
}
@keyframes dash-shift {
  0% { background-position: 0 0; }
  100% { background-position: 12px 0; }
}

/* ── Blur Vignette Edges ──────────────────────────── */
.blur-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 120px 60px rgba(10,10,10,0.5);
}

/* ── Pulsing Ring (for specific sections) ─────────── */
.pulse-ring {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255,87,90,0.06);
  border-radius: 50%;
  animation: ring-expand 6s ease-out infinite;
}
.pulse-ring-1 {
  width: 300px; height: 300px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.pulse-ring-2 {
  width: 500px; height: 500px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -2s;
}
.pulse-ring-3 {
  width: 700px; height: 700px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -4s;
}
@keyframes ring-expand {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}

/* ── Micro Coordinate Labels ──────────────────────── */
.coord-label {
  font-family: 'Geist', monospace;
  font-size: 0.4rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: rgba(249,248,242,0.06);
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

/* ── Animated Gradient Border Bottom ──────────────── */
.gradient-border-anim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 5;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  background-size: 200% 100%;
  animation: gradient-slide 4s ease-in-out infinite;
  opacity: 0.08;
  pointer-events: none;
}
@keyframes gradient-slide {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Scenes — fullscreen sections ─────────────────── */
.scene {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  
}

.scene-content {
  position: relative;
  z-index: 2;
  padding: 2rem 6rem;
  width: 100%;
  max-width: 1400px;
}

/* ── Image Placeholders ───────────────────────────── */
.image-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder span {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.08);
}

.hero-image-placeholder {
  opacity: 0.4;
}

.signal-image-placeholder {
  opacity: 0.3;
}

.gravity-image-placeholder {
  opacity: 0.35;
}

.contact-image-placeholder {
  opacity: 0.3;
}

/* ── 01 HERO ──────────────────────────────────────── */
.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
}

.hero-name {
  font-family: 'Tomorrow', var(--font);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
}

.hero-name span {
  display: block;
  position: relative;
}

/* Glitch burst — triggered by JS on word swap */
.glitch-on-reveal.visible {
  animation: glitch-burst 0.5s linear forwards;
}

.hero-name.glitching {
  animation: glitch-burst 0.5s linear forwards;
}
@keyframes glitch-burst {
  0% { transform: translate(0); opacity: 1; text-shadow: none; }
  8% { transform: translate(-4px, 2px) skewX(-8deg) scaleY(1.1); opacity: 0.8; text-shadow: 4px 0 rgba(255,87,90,0.9), -4px 0 rgba(123,140,255,0.9); }
  16% { transform: translate(5px, -2px) skewX(6deg) scaleX(1.05); opacity: 0.5; text-shadow: -5px 0 rgba(52,10,34,1), 3px 0 rgba(21,44,58,1); color: rgba(255,87,90,0.8); }
  24% { transform: translate(-3px, 3px) skewX(-4deg) scaleY(0.95); opacity: 0.3; text-shadow: 3px 2px rgba(123,140,255,1), -2px -1px rgba(255,87,90,0.7); }
  32% { transform: translate(2px, -1px) skewX(10deg); opacity: 0.1; color: rgba(123,140,255,0.9); }
  42% { transform: translate(0) skewX(0); opacity: 0; }
  55% { transform: translate(-3px, 1px) skewX(-6deg); opacity: 0; }
  62% { transform: translate(4px, -2px) skewX(5deg) scaleY(1.08); opacity: 0.3; text-shadow: -4px 0 rgba(255,87,90,0.8), 4px 0 rgba(123,140,255,0.8); color: rgba(255,87,90,0.6); }
  72% { transform: translate(-2px, 1px) skewX(-3deg); opacity: 0.6; text-shadow: 2px 0 rgba(52,10,34,0.6), -3px 0 rgba(21,44,58,0.6); }
  82% { transform: translate(1px, 0) skewX(2deg); opacity: 0.85; text-shadow: 2px 0 rgba(255,87,90,0.3), -1px 0 rgba(123,140,255,0.3); }
  92% { transform: translate(-1px, 0); opacity: 0.95; text-shadow: 1px 0 rgba(255,87,90,0.1); }
  100% { transform: translate(0); opacity: 1; text-shadow: none; color: inherit; }
}

.hero-verb {
  font-family: var(--font);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 200;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--secondary);
  opacity: 0.6;
  margin-bottom: 1.5rem;
  height: 2.5rem;
  overflow: hidden;
}
.hero-verb-cycle {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-verb-cycle.out {
  opacity: 0;
  transform: translateY(-100%);
}

.hero-tagline {
  font-size: clamp(0.65rem, 1.1vw, 0.85rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: none;
  color: var(--dim);
}

.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-hint-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--secondary));
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Scroll Arrow ─────────────────────────────────── */
.scroll-arrow {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: arrow-bounce 2.5s ease-in-out infinite;
  cursor: pointer;
}
.scroll-arrow-text {
  font-family: 'Geist', monospace;
  font-size: 0.35rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: rgba(255,87,90,0.15);
}
.scroll-arrow-icon {
  animation: arrow-fade 2.5s ease-in-out infinite;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes arrow-fade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── Micro Blink Text ─────────────────────────────── */
.micro-blink {
  position: absolute;
  z-index: 10;
  font-family: 'Geist', monospace;
  font-size: 0.4rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--secondary);
  opacity: 0.3;
  animation: micro-blink 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes micro-blink {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.4; }
}

/* ── Micro Static Text ────────────────────────────── */
.micro-text-static {
  position: absolute;
  z-index: 10;
  font-family: 'Geist', monospace;
  font-size: 0.38rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(249,248,242,0.06);
  pointer-events: none;
}

/* ── Micro Accent Lines ───────────────────────────── */
.micro-accent-line {
  position: absolute;
  z-index: 5;
  height: 1px;
  background: linear-gradient(90deg, var(--secondary), transparent);
  opacity: 0.1;
  pointer-events: none;
  animation: accent-line-pulse 4s ease-in-out infinite;
}
@keyframes accent-line-pulse {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.15; }
}

/* ── Noise Canvas ─────────────────────────────────── */
#noise-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.4;
}

/* ── Accent Words ─────────────────────────────────── */
#word-direction {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid transparent;
  vertical-align: bottom;
}
#word-direction.typing {
  border-right-color: rgba(255,87,90,0.6);
  animation: direction-cursor 0.5s step-end infinite;
}
@keyframes direction-cursor {
  50% { border-color: transparent; }
}

.accent-word {
  transition: all 0.8s ease;
  position: relative;
  display: inline;
}
.accent-word::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: width 0.8s ease;
}
.accent-word.active::after {
  width: 100%;
}

/* ── 02 SIGNAL — big statement ────────────────────── */
.signal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

.statement.reveal {
  transition: opacity 2.5s ease, transform 2.5s ease;
}
.statement {
  font-family: 'Tomorrow', var(--font);
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  font-weight: 200;
  line-height: 1.35;
  letter-spacing: 0.01em;
  max-width: 1000px;
}

.statement--accent span {
  display: block;
  line-height: 1.1;
}
.statement--accent {
  font-family: 'Tomorrow', var(--font);
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 2rem;
}

.statement--sub {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 200;
  color: var(--dim);
}

/* ── 02 SIGNAL — HUD Timeline ─────────────────────── */
.signal-content--expanded {
  min-height: auto;
  padding-top: 15vh;
  padding-bottom: 8vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100% !important;
  padding-left: 2rem;
  padding-right: 2rem;
}

#signal {
  min-height: auto;
  scroll-snap-align: none;
}

.tl-hud {
  margin-top: 2rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  border: none;
  padding: 2rem 4rem;
  background: transparent;
}

/* Corner brackets on HUD */
.tl-hud::before, .tl-hud::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
}
.tl-hud::before {
  display: none;
}
.tl-hud::after {
  display: none;
}

.tl-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.tl-hud-label {
  font-family: 'Geist', monospace;
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--secondary);
  opacity: 0.6;
}

.tl-hud-status {
  font-family: 'Geist', monospace;
  font-size: 0.4rem;
  letter-spacing: 0.3em;
  position: static;
}

/* Mountain Canvas */
.tl-mountain {
  width: 100%;
  height: 200px;
  display: block;
  margin-bottom: 0.5rem;
}

/* Timeline Track */
.tl-track {
  position: relative;
  height: 60px;
  margin-bottom: 1.5rem;
}

.tl-line {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,248,242,0.7) 5%, rgba(249,248,242,0.7) 95%, transparent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 3s ease-out;
}
.tl-track.visible .tl-line {
  transform: scaleX(1);
}

.tl-point {
  position: absolute;
  top: 30%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.tl-track.visible .tl-point {
  opacity: 1;
  transition: all 0.3s ease;
  /* Big invisible hit area */
  padding: 16px 12px;
  margin: -16px -12px;
  -webkit-tap-highlight-color: transparent;
}

/* Expanded touch zone via ::after pseudo-element */
.tl-point::after {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -8px;
  right: -8px;
  min-width: 30px;
  min-height: 60px;
  z-index: 1;
}

.tl-point-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.7);
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.tl-point:hover .tl-point-dot {
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 0 8px rgba(255,255,255,0.15);
  transform: scale(1.2);
}

.tl-point.active .tl-point-dot {
  border-color: rgba(255,255,255,0.8);
  box-shadow: 0 0 12px rgba(255,255,255,0.2);
  animation: tl-dot-pulse 2s ease-in-out infinite;
}

@keyframes tl-dot-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255,255,255,0.2); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(255,255,255,0.3); transform: scale(1.2); }
}

.tl-point-year {
  font-family: 'Geist', monospace;
  font-size: 0.45rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s, transform 0.3s;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.tl-point:hover .tl-point-year {
  color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

.tl-point.active .tl-point-year {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.tl-point-label {
  font-family: 'Geist', monospace;
  font-size: 0.35rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  max-width: 60px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.3s, opacity 0.3s;
  position: relative;
  z-index: 2;
}

.tl-point.active .tl-point-label {
  color: rgba(255,255,255,0.5);
}

/* Vertical tick - removed, using ::after for hit area now */
.tl-point::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 10px;
  background: rgba(255,255,255,0.06);
  z-index: 2;
}

/* Major points are bigger */
.tl-point.major .tl-point-dot {
  width: 12px;
  height: 12px;
  border-color: rgba(255,255,255,0.85);
}
.tl-point.major .tl-point-year {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* Scrubber: make the track itself clickable */
.tl-track {
  cursor: pointer;
}

/* Detail Panel */
.tl-interactive {
  position: relative;
  padding-top: 60px;
  margin-top: -60px;
}

/* Big background year */
#tl-bg-year {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Geist', monospace;
  font-size: clamp(15rem, 30vw, 35rem);
  font-weight: 100;
  color: rgba(255,255,255,0.02);
  z-index: 0;
  pointer-events: none;
  display: none;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: opacity 0.6s ease;
}
#tl-bg-year.visible {
  display: block;
}

/* Global milestones */
#tl-milestones {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
  overflow: hidden;
}
#tl-milestones.visible {
  display: block;
}
.tl-milestone {
  position: absolute;
  font-family: 'Geist', monospace;
  font-weight: 200;
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tl-milestone.visible {
  opacity: 1;
  animation: milestone-pulse 6s ease-in-out infinite;
  animation-delay: var(--pulse-delay, 0s);
}
@keyframes milestone-pulse {
  0%, 100% { opacity: 0.02; }
  50% { opacity: 0.05; }
}

/* Detail panel + tooltip: body-level, cursor-following */
#tl-detail, #tl-hover-tooltip {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  display: none;
  max-width: 260px;
  text-align: left;
}
#tl-detail.visible, #tl-hover-tooltip.visible {
  display: block;
}

.tl-detail-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.tl-detail-panel.updating {
  opacity: 0;
  transform: translateY(8px);
}

/* Focus outline for keyboard nav */
.tl-hud:focus {
  outline: 1px solid rgba(255,87,90,0.3);
  outline-offset: 4px;
}
.tl-hud:focus:not(:focus-visible) {
  outline: none;
}

#tl-detail-year {
  font-family: 'Geist', monospace;
  font-size: 1.3rem;
  font-weight: 200;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
}
#tl-detail-tag {
  font-family: 'Geist', monospace;
  font-size: 0.4rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
#tl-detail-text {
  font-family: 'Geist', monospace;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin: 0.3rem 0 0;
}
#tl-detail-meta {
  font-family: 'Geist', monospace;
  font-size: 0.35rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.12);
  text-transform: uppercase;
  margin-top: 0.3rem;
  display: block;
}
#tl-hover-text {
  font-family: 'Geist', monospace;
  font-size: 0.5rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.45);
}

/* Side Data */
.tl-side-data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.tl-side-item {
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.tl-side-item:last-child { border-right: none; }

.tl-side-item {
  cursor: default;
}

.tl-side-label {
  display: block;
  font-family: 'Geist', monospace;
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--secondary);
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.tl-side-value {
  display: block;
  font-family: 'Geist', sans-serif;
  font-size: 1.4rem;
  font-weight: 200;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.tl-degree {
  font-size: 0.75rem;
  line-height: 1.6;
  opacity: 0.7;
}

/* Enterprise cycling animation */
.tl-enterprise {
  transition: opacity 0.4s ease;
}

/* HUD Hover Tooltip — text at cursor */
/* old tooltip styles removed — now in #tl-hover-tooltip above */

/* Sub Tracks */
.tl-sub-tracks {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
}

.tl-sub-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.tl-sub-label {
  font-family: 'Geist', monospace;
  font-size: 0.4rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--secondary);
  opacity: 0.4;
  min-width: 60px;
  text-transform: uppercase;
}

.tl-sub-data {
  font-family: 'Geist', monospace;
  font-size: 0.4rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.15);
}

/* HUD Footer */
.tl-hud-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.tl-hud-coord {
  font-family: 'Geist', monospace;
  font-size: 0.38rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.1);
}

/* Mobile detail panel (static, above timeline) */
.tl-mobile-detail {
  display: none;
  padding: 1rem 0 1.5rem;
  min-height: 100px;
}
#tl-mobile-year {
  font-family: 'Geist', monospace;
  font-size: 1.3rem;
  font-weight: 200;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.05em;
}
#tl-mobile-tag {
  font-family: 'Geist', monospace;
  font-size: 0.4rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-left: 0.5rem;
}
#tl-mobile-text {
  font-family: 'Geist', monospace;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin: 0.5rem 0 0;
}
#tl-mobile-meta {
  font-family: 'Geist', monospace;
  font-size: 0.35rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.12);
  text-transform: uppercase;
  margin-top: 0.3rem;
  display: block;
}
@media (max-width: 900px) {
  .tl-mobile-detail { display: block; }
  #tl-detail { display: none !important; }
}
@media (max-width: 900px) {
  .tl-side-data { grid-template-columns: repeat(2, 1fr); }
  .tl-hud-footer { flex-direction: column; gap: 0.3rem; }
  .tl-hud { padding: 1rem; }
  .tl-sub-track { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .tl-track { height: 80px; }
  .tl-point { padding: 20px 16px; margin: -20px -16px; }
  .tl-point::after { top: -14px; bottom: -14px; left: -12px; right: -12px; min-width: 40px; min-height: 70px; }
  .tl-point-dot { width: 12px; height: 12px; }
  .tl-point.major .tl-point-dot { width: 14px; height: 14px; }
  .tl-point-year { font-size: 0.5rem; }
}
@media (max-width: 600px) {
  .tl-side-data { grid-template-columns: 1fr; }
  .tl-mountain { height: 120px; }
  .tl-track { height: 90px; }
  .tl-point { padding: 24px 18px; margin: -24px -18px; }
  .tl-point::after { top: -16px; bottom: -16px; left: -14px; right: -14px; min-width: 48px; min-height: 80px; }
  .tl-point-dot { width: 14px; height: 14px; }
  .tl-point.major .tl-point-dot { width: 16px; height: 16px; }
  .tl-point-year { font-size: 0.55rem; }
  .tl-point-label { display: none; }
}

/* ── 03 ABOUT — split layout ─────────────────────── */
.scene--split {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.split-image {
  position: relative;
  overflow: hidden;
}

.split-image .image-placeholder {
  position: absolute;
  inset: 0;
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem;
  max-width: 800px;
  text-align: center;
}

.section-num {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--dim);
  margin-bottom: 2rem;
  display: block;
}

.section-heading {
  font-family: 'Tomorrow', var(--font);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 200;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  line-height: 1.1;
}

.section-heading--large {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
}

.split-text p {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 300;
  color: rgba(249,248,242,0.75);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

/* ── Video Background ─────────────────────────────── */
/* ── Fixed Background Layer ────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-layer-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bg-layer-item.active {
  opacity: 1;
  transition: opacity 1.5s ease;
}
.bg-layer-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  transform: scale(1.2);
  transition: transform 12s ease-out;
}
.bg-layer-item.active video {
  transform: scale(1.0);
}
.bg-layer-item--bright video {
  opacity: 0.4;
}
.bg-layer-item--dark video {
  opacity: 0.08;
}
.bg-layer-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.6) 100%);
}
.video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* ── 04 WHAT HE DOES ─────────────────────────────── */
.work-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.work-items {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-item {
  font-family: var(--font);
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  font-weight: 200;
  letter-spacing: 0.01em;
  color: var(--white);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.4;
}

.work-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.work-coda {
  font-family: var(--font);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 3rem;
}

/* ── 05 GRAVITY ───────────────────────────────────── */
.gravity-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.cosmos-layout { align-items: center; position: relative; padding: 0 !important; width: 100vw !important; max-width: none !important; height: 100vh; margin-left: calc(-50vw + 50%); }
#cosmos-heading-big { transition: opacity 1s ease, transform 1s ease; }
#cosmos-heading-big.fade-scroll { opacity: 0 !important; transform: translateY(-30px) !important; pointer-events: none; }
.cosmos-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#cosmos-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.cosmos-heading-small {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Geist', monospace;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(249,248,242,1);
  z-index: 5;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.8s ease, filter 0.8s ease;
}
.cosmos-heading-small.visible {
  opacity: 1;
  filter: blur(0);
}
@keyframes cosmos-cursor {
  50% { border-color: transparent; }
}

#cosmos-heading-big {
  transition: opacity 0.6s ease;
}
#cosmos-heading-big.hidden { opacity: 0 !important; pointer-events: none; }

.cosmos-tooltip {
  position: absolute;
  pointer-events: none;
  font-family: 'Geist', monospace;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--white);
  background: rgba(10,10,10,0.85);
  border: 1px solid rgba(123,140,255,0.2);
  padding: 0.6rem 1rem;
  max-width: 220px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}
.cosmos-tooltip.visible { opacity: 1; }
.cosmos-tooltip strong {
  display: block;
  font-weight: 500;
  color: var(--secondary);
  font-size: 0.7rem;
  margin-bottom: 0.3rem;
}

/* cosmos is fullscreen, no mobile override needed */

.gravity-items {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.gravity-item {
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition-delay: var(--delay, 0s);
}
.gravity-item:nth-child(1) { --delay: 0s; }
.gravity-item:nth-child(2) { --delay: 0.2s; }
.gravity-item:nth-child(3) { --delay: 0.4s; }
.gravity-item:nth-child(4) { --delay: 0.6s; }

.gravity-item:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding-right: 2.5rem;
}

.gravity-item:nth-child(even) {
  padding-left: 2.5rem;
}

.gravity-item:nth-child(1),
.gravity-item:nth-child(2) {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gravity-item h3 {
  font-family: var(--font);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.gravity-item p {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.7;
}

/* ── 06 HOW HE THINKS ────────────────────────────── */
.tab-nav-wrapper { display: contents; }
.tab-arrow { display: none; }
.thinking-tabs {
  display: flex;
  gap: 0;
  margin: 2rem 0 2.5rem;
  border-bottom: 1px solid rgba(249,248,242,0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.thinking-tabs::-webkit-scrollbar { display: none; }
.thinking-tab {
  background: none;
  border: none;
  color: rgba(249,248,242,0.25);
  font-family: 'Geist', monospace;
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
}
.thinking-tab:hover { color: rgba(249,248,242,0.5); }
.thinking-tab.active {
  color: rgba(255,87,90,0.9);
  border-bottom-color: rgba(255,87,90,0.4);
}

.thinking-stream {
  max-width: 700px;
}
.thinking-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.thinking-item {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(249,248,242,0.04);
  opacity: 0;
  transform: translateY(12px);
  animation: thinking-fade-in 0.5s ease forwards;
}
.thinking-item:nth-child(2) { animation-delay: 0.08s; }
.thinking-item:nth-child(3) { animation-delay: 0.16s; }
.thinking-item:nth-child(4) { animation-delay: 0.24s; }
@keyframes thinking-fade-in {
  to { opacity: 1; transform: translateY(0); }
}
.thinking-num {
  font-family: 'Geist', monospace;
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255,87,90,0.35);
  display: block;
  margin-bottom: 0.5rem;
}
.thinking-item h3 {
  font-family: 'Geist', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(249,248,242,0.85);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.thinking-item p {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(249,248,242,0.5);
  line-height: 1.8;
}
.thinking-wiki {
  display: inline-block;
  font-family: 'Geist', monospace;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255,87,90,0.4);
  text-decoration: none;
  border: 1px solid rgba(255,87,90,0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  margin-left: 0.6rem;
  transition: color 0.3s, border-color 0.3s;
  vertical-align: middle;
}
.thinking-wiki:hover {
  color: rgba(255,87,90,0.8);
  border-color: rgba(255,87,90,0.4);
}

.contact-icon {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0 auto 0.4rem;
  opacity: 0.6;
  transition: opacity 0.3s;
  filter: brightness(0) saturate(100%) invert(48%) sepia(83%) saturate(1057%) hue-rotate(325deg) brightness(101%) contrast(101%);
}
.contact-link:hover .contact-icon {
  opacity: 1;
}

.thinking-books-toggle {
  display: inline-block;
  font-family: 'Geist', monospace;
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(249,248,242,0.2);
  border: 1px solid rgba(249,248,242,0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  margin-top: 0.8rem;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.thinking-books-toggle:hover {
  color: rgba(249,248,242,0.5);
  border-color: rgba(249,248,242,0.15);
}
.thinking-books-toggle.open {
  color: rgba(255,87,90,0.6);
  border-color: rgba(255,87,90,0.2);
}
.thinking-books {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
}
.thinking-books.open {
  max-height: 300px;
  opacity: 1;
}
.thinking-books-inner {
  padding: 1rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.thinking-book {
  font-family: 'Geist', monospace;
  font-size: 0.65rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(249,248,242,0.4);
  padding-left: 1rem;
  border-left: 1px solid rgba(255,87,90,0.15);
}
.thinking-book em {
  color: rgba(249,248,242,0.6);
  font-style: normal;
  font-weight: 400;
}
.thinking-book span {
  color: rgba(249,248,242,0.25);
}

/* ── Audio Toggle Button ──────────────────────────── */
.audio-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99999;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s;
  opacity: 0.7;
}
.audio-toggle:hover {
  opacity: 1;
}

/* ── Audio HUD Widget ─────────────────────────────── */
.audio-hud {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 99998;
  pointer-events: none;
  height: 55vh;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.audio-toggle:hover + .audio-hud,
.audio-hud:hover {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.audio-hud-inner {
  position: relative;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 0;
  padding: 1.8rem 1.8rem 2rem;
  width: 240px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
}
/* Rows */
.audio-hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.audio-hud-row--header {
  padding-bottom: 0.35rem;
}
.audio-hud-row--footer {
  justify-content: flex-start;
}
.audio-toggle:hover + .audio-hud .audio-hud-row,
.audio-hud:hover .audio-hud-row {
  opacity: 1;
  transform: translateX(0);
}
.audio-toggle:hover + .audio-hud .audio-hud-row:nth-child(1),
.audio-hud:hover .audio-hud-row:nth-child(1) { transition-delay: 0.15s; }
.audio-toggle:hover + .audio-hud .audio-hud-row:nth-child(3),
.audio-hud:hover .audio-hud-row:nth-child(3) { transition-delay: 0.2s; }
.audio-toggle:hover + .audio-hud .audio-hud-row:nth-child(4),
.audio-hud:hover .audio-hud-row:nth-child(4) { transition-delay: 0.25s; }
.audio-toggle:hover + .audio-hud .audio-hud-row:nth-child(5),
.audio-hud:hover .audio-hud-row:nth-child(5) { transition-delay: 0.3s; }
.audio-toggle:hover + .audio-hud .audio-hud-row:nth-child(6),
.audio-hud:hover .audio-hud-row:nth-child(6) { transition-delay: 0.35s; }
.audio-toggle:hover + .audio-hud .audio-hud-row:nth-child(7),
.audio-hud:hover .audio-hud-row:nth-child(7) { transition-delay: 0.4s; }
.audio-toggle:hover + .audio-hud .audio-hud-row:nth-child(8),
.audio-hud:hover .audio-hud-row:nth-child(8) { transition-delay: 0.45s; }
.audio-toggle:hover + .audio-hud .audio-hud-row:nth-child(10),
.audio-hud:hover .audio-hud-row:nth-child(10) { transition-delay: 0.5s; }
/* Dividers */
.audio-hud-divider {
  height: 1px;
  background: rgba(255, 87, 90, 0.1);
  margin: 0.2rem 0;
}
/* Tag + Status */
.audio-hud-tag {
  font-family: 'Geist', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  color: rgba(255, 87, 90, 0.4);
  text-transform: uppercase;
}
.audio-hud-status {
  font-family: 'Geist', monospace;
  font-size: 0.45rem;
  letter-spacing: 0.15em;
  color: rgba(255, 87, 90, 0.6);
  animation: hud-blink 2.5s ease infinite;
}
@keyframes hud-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
/* Label + Value */
.audio-hud-label {
  font-family: 'Geist', monospace;
  font-size: 0.45rem;
  letter-spacing: 0.12em;
  color: rgba(249, 248, 242, 0.2);
  text-transform: uppercase;
  flex-shrink: 0;
}
.audio-hud-value {
  font-family: 'Geist', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  color: rgba(249, 248, 242, 0.55);
  text-align: right;
}
/* Footer note */
.audio-hud-note {
  font-family: 'Geist', monospace;
  font-size: 0.4rem;
  letter-spacing: 0.05em;
  color: rgba(255, 87, 90, 0.25);
  font-style: italic;
}
/* Bottom bar */
.audio-hud-bar {
  height: 1px;
  background: rgba(255, 87, 90, 0.06);
  margin-top: 0.4rem;
  overflow: hidden;
}
.audio-hud-bar-fill {
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, rgba(255, 87, 90, 0.3), transparent);
  animation: hud-bar 4s ease-in-out infinite alternate;
}
@keyframes hud-bar {
  0% { width: 20%; }
  100% { width: 90%; }
}
#eq-canvas {
  width: 36px;
  height: 36px;
  display: block;
}

.thinking-counter {
  font-family: 'Geist', monospace;
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(249,248,242,0.15);
  margin-top: 1.5rem;
}

.thinking-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

/* Horizontal heading: 06 + How He Thinks */
.thinking-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}
.thinking-header .section-num {
  margin-bottom: 0;
  font-size: 1.2rem;
  font-weight: 200;
  letter-spacing: 0.15em;
}
.thinking-header .section-heading {
  margin-bottom: 1.5rem;
}

/* Brighter HUD elements for Section 06 */
#thinking .hud {
  color: rgba(255, 87, 90, 0.45);
}
#thinking .hud-ticker {
  color: rgba(249,248,242,0.25);
}
#thinking .micro-blink {
  opacity: 0.5;
}
#thinking .coord-label {
  color: rgba(249,248,242,0.15);
}
#thinking .micro-text-static {
  color: rgba(249,248,242,0.15);
}
#thinking .crosshair::before,
#thinking .crosshair::after {
  background: rgba(255,87,90,0.3);
}

.thinking-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 900px;
}

.thinking-word {
  display: flex;
  align-items: baseline;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.thinking-word:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.thinking-word h3 {
  font-family: var(--font);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 200;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  min-width: 50%;
}

.thinking-word p {
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  font-weight: 300;
  color: var(--dim);
  line-height: 1.6;
}

/* ── 07 AESTHETIC ─────────────────────────────────── */
.aesthetic-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

/* ── Work Detail Text ─────────────────────────────── */
.work-detail {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  font-weight: 300;
  color: var(--dim);
  line-height: 1.9;
  max-width: 700px;
  margin-top: 1.5rem;
}

/* ── Aesthetic Detail Text ────────────────────────── */
.aesthetic-detail {
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 300;
  color: var(--dim);
  line-height: 1.9;
  max-width: 600px;
  margin-top: 2rem;
  text-align: center;
}

/* ── Contact Detail Text ──────────────────────────── */
.contact-detail {
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 300;
  color: var(--dim);
  line-height: 1.9;
  max-width: 550px;
  text-align: center;
  margin-bottom: 3rem;
}

/* ── 08 WHY ───────────────────────────────────────── */
.why-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  max-width: 800px;
}

.why-text {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 300;
  color: var(--dim);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

/* ── 09 CONTACT ───────────────────────────────────── */
.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

.contact-heading span { display: block; margin-bottom: 0.1em; }
.contact-heading {
  font-family: 'Tomorrow', var(--font);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 200;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 4rem;
}

.contact-links {
  display: flex;
  gap: 3rem;
}

.contact-link {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0.75rem 0;
  border-bottom: none;
  transition: color 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-link:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  text-shadow: 0 0 20px rgba(255,87,90,0.2), 0 0 40px rgba(255,87,90,0.08);
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
}

/* ── Reveal Animation ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .section-indicators {
    display: none;
  }

  .scene-content {
    padding: 2rem 2rem;
  }

  .scene--split {
    grid-template-columns: 1fr;
  }

  .split-image {
    height: 40vh;
    min-height: 300px;
  }

  .split-text {
    padding: 3rem 2rem;
  }

  .gravity-items {
    grid-template-columns: 1fr;
  }

  .gravity-item:nth-child(odd) {
    border-right: none;
    padding-right: 0;
  }

  .gravity-item:nth-child(even) {
    padding-left: 0;
  }

  .gravity-item:nth-child(2) {
    border-top: none;
  }

  .thinking-word {
    flex-direction: column;
    gap: 0.75rem;
  }

  .thinking-word h3 {
    min-width: unset;
  }
}

@media (max-width: 600px) {
  html {
    
  }

  .nav {
    padding: 1rem 1.25rem;
  }

  .scene-content {
    padding: 2rem 1.5rem;
  }

  .split-text {
    padding: 2.5rem 1.5rem;
  }

.hero-label {
  font-size: clamp(0.5rem, 0.8vw, 0.65rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,87,90,0.5);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-family: 'Tomorrow', var(--font);
  font-size: clamp(0.5rem, 0.9vw, 0.7rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-top: 0.8rem;
  font-style: normal;
}
.hero-sub .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: word-in 0.6s ease forwards;
}
@keyframes word-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-sub { font-size: 0.5rem; }
}

  .hero-name {
    font-size: clamp(1.4rem, 7vw, 2.5rem);
  }
  .hero-verb {
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
    height: 1.8rem;
  }
  .hero-tagline {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
  }

  .contact-heading {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }

  .contact-links {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
}

/* ── Mobile Bottom Nav ─────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(0,0,0,0.85);
  /* backdrop-filter removed */
  -webkit-/* backdrop-filter removed */
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0.4rem 0 env(safe-area-inset-bottom, 0.3rem);
  justify-content: space-around;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.visible {
  transform: translateY(0);
}
.mobile-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-decoration: none;
  color: rgba(255,255,255,0.25);
  transition: color 0.3s, opacity 0.4s ease, transform 0.4s ease;
  padding: 0.2rem 0;
  flex: 1;
  opacity: 0;
  transform: translateY(10px);
}
.mobile-nav.visible .mobile-nav-item {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav.visible .mobile-nav-item:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.visible .mobile-nav-item:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.visible .mobile-nav-item:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.visible .mobile-nav-item:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.visible .mobile-nav-item:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.visible .mobile-nav-item:nth-child(6) { transition-delay: 0.3s; }
.mobile-nav.visible .mobile-nav-item:nth-child(7) { transition-delay: 0.35s; }
.mobile-nav.visible .mobile-nav-item:nth-child(8) { transition-delay: 0.4s; }
.mobile-nav.visible .mobile-nav-item:nth-child(9) { transition-delay: 0.45s; }
.mobile-nav-item svg {
  width: 18px;
  height: 18px;
}
.mobile-nav-item span {
  font-family: 'Geist', monospace;
  font-size: 0.45rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.mobile-nav-item.active {
  color: var(--secondary);
}
.mobile-nav-item.active span {
  color: var(--secondary);
}
.mobile-nav-item::before {
  content: '';
  position: absolute;
  top: -0.4rem;
  left: 20%;
  right: 20%;
  height: 1px;
  background: var(--secondary);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav-hide { display: none; }
.mobile-nav-item.active::before {
  opacity: 0.4;
}

@media (max-width: 900px) {
  .mobile-nav {
    display: flex;
  }
}

/* ── Swipe Cards (Section 6) ───────────────────────── */
.swipe-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0 2rem;
  margin: 1rem -2rem 0;
  padding-left: 2rem;
  padding-right: 2rem;
}
.swipe-track::-webkit-scrollbar { display: none; }

.swipe-card {
  flex: 0 0 min(280px, 75vw);
  scroll-snap-align: center;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transform: scale(0.85);
  opacity: 0.3;
  filter: blur(1px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, filter 0.4s ease;
}
.swipe-card.active {
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
}
@media (min-width: 900px) {
  .swipe-card {
    flex: 0 0 400px;
  }
}
.swipe-num {
  font-family: 'Geist', monospace;
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.4);
}
.swipe-card h3 {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 200;
  letter-spacing: 0.03em;
  color: var(--cream);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}
.swipe-card.active h3 {
  opacity: 1;
  transform: translateY(0);
}
.swipe-card p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}
.swipe-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
/* Swipe Nav Bar */
.swipe-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(255,255,255,0.03);
  /* backdrop-filter removed */
  -webkit-/* backdrop-filter removed */
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
}
.swipe-arrow {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
  font-family: var(--font);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 2px;
  flex-shrink: 0;
}
.swipe-arrow:hover {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.04);
}

/* Swipe Dot Navigation */
.swipe-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}
.swipe-dots::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
  transform: translateY(-50%);
}
.swipe-dot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  z-index: 1;
}
.swipe-dot-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  transition: all 0.3s ease;
}
.swipe-dot.active .swipe-dot-circle {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 10px rgba(255,255,255,0.3), 0 0 20px rgba(255,255,255,0.1);
}
.swipe-dot-label {
  font-family: 'Geist', monospace;
  font-size: 0.38rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.15);
  transition: color 0.3s;
}
.swipe-dot.active .swipe-dot-label {
  color: rgba(255,255,255,0.6);
}

/* Hide custom cursor on touch/mobile */
@media (pointer: coarse) {
  body, a, button, .tl-point, .indicator, .contact-link { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .nav-numpad { display: none !important; }
  .tl-hud-label { margin-left: 4px; }
  .tl-point-year, .tl-point-dot, .tl-line, .tl-point::before { display: none !important; }
  #word-direction { display: block; min-width: 100%; }
  .statement.reveal.reveal-scale { min-height: 6em; }
  #cosmos-heading-big { font-size: clamp(1.5rem, 8vw, 3rem); }
  #cosmos-heading-big > span { display: block; }
  #cosmos-heading-big > span > .letter { display: inline-block; }
  .thinking-header .section-heading > span { display: block; }
  .thinking-header .section-heading > span > .letter { display: inline-block; }
  .thinking-header .micro-label { display: none !important; }
  .contact-links { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.5rem !important; flex-direction: unset !important; }
  .tab-nav-wrapper { display: flex; align-items: center; gap: 0; }
  .tab-arrow {
    background: none; border: none; color: rgba(255,87,90,0.7);
    font-size: 1.8rem; padding: 0 0.3rem; cursor: pointer;
    flex-shrink: 0; line-height: 1;
  }
  .tab-arrow:active { color: rgba(255,87,90,1); }
  .thinking-tabs { flex: 1; min-width: 0; }
  .cosmos-heading-small {
    top: auto !important;
    bottom: 2rem !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.15em !important;
    color: rgba(249,248,242,0.5) !important;
  }
}

/* ── Interstitials ─────────────────────────────────── */
.interstitial {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.interstitial-text {
  font-family: 'Tomorrow', var(--font);
  font-size: clamp(1rem, 3vw, 2.2rem);
  font-weight: 200;
  letter-spacing: 0.15em;
  color: rgba(249,248,242,0);
  text-align: center;
  transition: color 1.2s ease, transform 1.2s ease;
  transform: translateY(20px);
  padding: 0 2rem;
}
.interstitial.visible .interstitial-text {
  color: rgba(249,248,242,0.6);
  transform: translateY(0);
}

/* ── Section Number Overlay ────────────────────────── */
.section-number-overlay {
  display: none;
}

/* ── Currently Widget ──────────────────────────────── */
.currently-widget {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}
.currently-widget.visible { opacity: 1; }
.currently-widget.visible .currently-item:nth-child(1) { animation: currently-in 0.8s ease 0.3s both; }
.currently-widget.visible .currently-sep { animation: currently-in 0.8s ease 0.5s both; }
.currently-widget.visible .currently-item:nth-child(3) { animation: currently-in 0.8s ease 0.7s both; }
@keyframes currently-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.currently-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(249,248,242,0.06);
  opacity: 0;
}
.currently-label {
  font-family: 'Geist', monospace;
  font-size: 0.45rem;
  letter-spacing: 0.25em;
  color: rgba(255,87,90,0.4);
  text-transform: uppercase;
}
.currently-sep {
  color: rgba(249,248,242,0.08);
  font-size: 0.5rem;
  align-self: center;
  padding: 0 0.3rem;
  opacity: 0;
}
.currently-value {
  font-family: 'Geist', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(249,248,242,0.5);
  line-height: 1.2;
  white-space: nowrap;
}

/* ── RGB Glitch Reveal ─────────────────────────────── */
@keyframes rgb-glitch {
  0% { text-shadow: -2px 0 #FF575A, 2px 0 #7B8CFF; transform: translate(0); }
  10% { text-shadow: 2px 0 #FF575A, -2px 0 #7B8CFF; transform: translate(-1px, 1px); }
  20% { text-shadow: -1px 1px #FF575A, 1px -1px #7B8CFF; transform: translate(1px, -1px); }
  30% { text-shadow: 1px -1px #FF575A, -1px 1px #7B8CFF; transform: translate(0); }
  40% { text-shadow: none; transform: translate(0); }
  100% { text-shadow: none; transform: translate(0); }
}
.rgb-glitch-reveal.glitching {
  animation: rgb-glitch 0.4s ease-out;
}

@media (pointer: coarse) {
  .section-number-overlay { right: 1rem; font-size: clamp(4rem, 20vw, 8rem); }
  .currently-widget { display: none; }
}

/* ── Ambient Mode ──────────────────────────────────── */
.ambient-toggle {
  position: fixed;
  bottom: 2rem;
  right: 5rem;
  z-index: 60;
  background: none;
  border: 1px solid rgba(249,248,242,0.08);
  color: rgba(249,248,242,0.25);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
  border-radius: 0;
}
.ambient-toggle:hover {
  color: #FF575A;
  border-color: rgba(255,87,90,0.3);
}
.ambient-toggle.active {
  color: #FF575A;
  border-color: rgba(255,87,90,0.4);
  box-shadow: 0 0 12px rgba(255,87,90,0.1);
}
.ambient-overlay {
  position: fixed;
  inset: 0;
  background: #0A0A0A;
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease;
}
.ambient-overlay.active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

/* Hide all UI in ambient mode */
body.ambient-mode .nav,
body.ambient-mode .hamburger,
body.ambient-mode .nav-numpad,
body.ambient-mode .side-data,
body.ambient-mode .currently-widget,
body.ambient-mode .nav-indicators,
body.ambient-mode main,
body.ambient-mode .cursor-dot,
body.ambient-mode .cursor-ring {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 1.5s ease;
}
body.ambient-mode .bg-layer {
  z-index: 56;
}
body.ambient-mode .bg-layer-item {
  opacity: 1 !important;
}
body.ambient-mode .bg-layer-item video {
  opacity: 0.6 !important;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
}
body.ambient-mode #starfield-canvas {
  z-index: 57;
  opacity: 0.6;
}
body.ambient-mode .ambient-toggle {
  z-index: 60;
}

/* Ambient hint */
.ambient-hint {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  font-family: 'Tomorrow', var(--font);
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(249,248,242,0);
  z-index: 58;
  pointer-events: none;
  transition: color 2s ease;
}
body.ambient-mode .ambient-hint {
  color: rgba(249,248,242,0.12);
  animation: ambient-breathe 6s ease-in-out infinite;
}
@keyframes ambient-breathe {
  0%,100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@media (pointer: coarse) {
  .ambient-toggle { bottom: 5rem; right: 1rem; }
}
