/* ==========================================================================
   VYRN — Modern Dark Editorial & Tactile Liquid Glass Design System
   Inspired by Cinematic Editorial & Tactile Dark UI Glass Accents
   ========================================================================== */

/* --- Font Declarations --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/Fonts/inter-v20-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/Fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/Fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/Fonts/syne-v24-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/Fonts/syne-v24-latin-800.woff2') format('woff2');
}

/* --- Design Tokens --- */
:root {
  /* Color Canvas */
  --bg-deep: #090b0e;
  --bg-surface: #0f1218;
  --bg-surface-elevated: #151922;
  --bg-surface-hover: #1c222e;

  --text-pure: #ffffff;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #8b99aa;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.24);

  /* Liquid Glass Specular Shaders */
  --glass-bg: rgba(15, 18, 24, 0.7);
  --glass-highlight: rgba(255, 255, 255, 0.28);
  --glass-glow: 0 16px 40px rgba(0, 0, 0, 0.5);

  /* Core Disciplines Palette: Audio (Pink), Video (Cyan), Code (Amber) */
  --discipline-pink: #ff3b69;
  --discipline-cyan: #00f0ff;
  --discipline-amber: #f59e0b;

  /* Avatar DaVinci Palette (Electric Cyan, Acid Lime, Coral Crimson) */
  --avatar-cyan: #00e5ff;
  --avatar-lime: #a3e635;
  --avatar-coral: #ff385c;

  /* Typography */
  --font-display: 'Syne', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Sizing */
  --container-max: 1240px;
  --page-padding: clamp(1.25rem, 4vw, 4rem);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Micro Transitions */
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Sleek modern dark scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) var(--bg-deep);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* Accessibility: Focus visible outline for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--discipline-cyan);
  outline-offset: 3px;
}


body {
  line-height: 1.6;
  background-color: var(--bg-deep);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Ambient Light Meshes (Provides subtle backlight for optical glass) --- */
.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  background-color: var(--bg-deep);
  transform: translateZ(0);
  contain: strict;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.65;
  will-change: transform;
  transform: translateZ(0);
}

.ambient-glow--hero {
  top: 8vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 94vw);
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(255, 59, 105, 0.18) 0%, rgba(0, 240, 255, 0.14) 40%, rgba(245, 158, 11, 0.1) 70%, transparent 80%);
}

.ambient-glow--media {
  top: 105vh;
  left: 20%;
  width: min(800px, 85vw);
  height: 400px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.16) 0%, rgba(14, 165, 233, 0.08) 45%, transparent 70%);
}

.ambient-glow--community {
  top: 195vh;
  right: 15%;
  width: min(780px, 85vw);
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.14) 0%, rgba(255, 59, 105, 0.1) 50%, transparent 70%);
}

.ambient-noise {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 128 128' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  contain: strict;
  transform: translateZ(0);
}

/* --- Viewport Scroll Progress Bar (Hardware-Accelerated ScaleX) --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--text-secondary), var(--text-pure));
  z-index: 2000;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
}

/* --- Container Matrix --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* ==========================================================================
   Liquid Glass Navigation Pill (High Performance Hardware Layer)
   ========================================================================== */
.glass-nav-pill {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  backface-visibility: hidden;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  padding: 1.15rem clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(9, 11, 14, 0.75);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: 
    top 420ms cubic-bezier(0.16, 1, 0.3, 1),
    width 420ms cubic-bezier(0.16, 1, 0.3, 1),
    max-width 420ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 420ms cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 420ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 420ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 420ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

/* Luminous Specular Sheen Sweep when Morphing */
.glass-nav-pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(0, 240, 255, 0.2) 65%,
    transparent 80%
  );
  transform: translateX(-100%);
  pointer-events: none;
  opacity: 0;
}

/* Cool Optical Filter Transition during morph */
.glass-nav-pill.nav-morphing {
  animation: navFilterBloom 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-nav-pill.nav-morphing::after {
  animation: navSheenSweep 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes navFilterBloom {
  0% {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 rgba(0, 240, 255, 0);
  }
  45% {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 22px rgba(0, 240, 255, 0.5);
  }
  100% {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 rgba(0, 240, 255, 0);
  }
}

@keyframes navSheenSweep {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* --- Scrolled Collapsed State: Floating Glass Pill Capsule (Previous Expanded Design) --- */
.glass-nav-pill.is-scrolled {
  top: clamp(0.75rem, 1.5vw, 1.15rem);
  width: min(1100px, calc(100% - 2.5rem));
  max-width: 1100px;
  justify-content: space-between;
  padding: 0.65rem clamp(1.15rem, 2.5vw, 1.85rem);
  background: rgba(10, 13, 18, 0.85);
  backdrop-filter: blur(24px) saturate(160%) contrast(105%);
  -webkit-backdrop-filter: blur(24px) saturate(160%) contrast(105%);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    inset 1px 1px 0 rgba(255, 255, 255, 0.22),
    inset -1px -1px 0 rgba(0, 0, 0, 0.5),
    0 20px 48px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(0, 240, 255, 0.08);
}

.brand-signature {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: gap 380ms cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.brand-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-monogram {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-pure);
  text-transform: uppercase;
  transition: font-size 380ms cubic-bezier(0.16, 1, 0.3, 1), letter-spacing 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle proportional refinement when in scrolled floating pill */
.glass-nav-pill.is-scrolled .brand-signature {
  gap: 0.5rem;
}

.glass-nav-pill.is-scrolled .brand-monogram {
  font-size: 1.12rem;
  letter-spacing: 0.1em;
}

.glass-nav-pill.is-scrolled .brand-dots {
  transform: scale(0.9);
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  transition: gap 380ms cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.nav-item {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), font-size 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover {
  color: var(--text-pure);
}

.glass-nav-pill.is-scrolled .nav-cluster {
  gap: clamp(0.9rem, 1.8vw, 1.85rem);
}

.glass-nav-pill.is-scrolled .nav-item {
  font-size: 0.86rem;
}

.nav-utility {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: gap 380ms cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.glass-nav-pill.is-scrolled .nav-utility {
  gap: 0.55rem;
}

.nav-btn-icon {
  flex-shrink: 0;
  display: block;
  margin: 0;
  transition: transform 250ms ease;
}

.nav-btn-text {
  display: inline-block;
  opacity: 1;
  white-space: nowrap;
}

/* Compact pill button refinement in scrolled pill */
.glass-nav-pill.is-scrolled .nav-utility .pill-btn {
  padding: 0.38rem 0.95rem;
  font-size: 0.8rem;
}

/* Custom interactive hover glows */
.nav-utility .nav-btn--discord:hover {
  background: rgba(88, 101, 242, 0.22);
  color: #5865F2;
  border-color: rgba(88, 101, 242, 0.6);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.45);
}

.nav-utility .nav-btn--bmac:hover {
  background: rgba(255, 221, 0, 0.18);
  color: #FFDD00;
  border-color: rgba(255, 221, 0, 0.6);
  box-shadow: 0 0 16px rgba(255, 221, 0, 0.45);
}

/* Pill Buttons */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.46rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.pill-btn--solid {
  background-color: var(--text-pure);
  color: var(--bg-deep);
  border: 1px solid var(--text-pure);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.12);
}

.pill-btn--solid:hover {
  background-color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.pill-btn--glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.18);
}

.pill-btn--glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.pill-btn--lg {
  padding: 0.85rem 2.2rem;
  font-size: 1.02rem;
  font-weight: 600;
}

/* Mobile Toggle & Drawer */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--text-pure);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--glass-glow);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all var(--transition-smooth);
}

.mobile-nav-panel.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-item {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.mobile-nav-item:hover {
  color: var(--text-pure);
}

/* ==========================================================================
   Section Header Utility
   ========================================================================== */
section {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  position: relative;
}

.section-title-wrap {
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-tag-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.85rem;
}

.discipline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.16);
}

.discipline-badge.badge-video {
  border-color: rgba(0, 240, 255, 0.3);
  color: #c9f7ff;
}

.discipline-badge.badge-multi {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-pure);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  line-height: 1.15;
}

.section-subtext {
  margin-top: 0.5rem;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
}

/* ==========================================================================
   Hero Section: Expansive Centerpiece with Floating Mini Liquid Glass Pills
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: clamp(7.5rem, 13vh, 11rem);
  padding-bottom: clamp(3.5rem, 6vh, 5.5rem);
  overflow: visible;
}

.hero-centerpiece {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  position: relative;
}

.hero-title-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
}

/* Multi-Spectral Backlight Halo (Pink, Cyan, Amber Disciplines) */
.hero-flame-halo {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: min(1050px, 96vw);
  height: clamp(300px, 44vw, 540px);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 59, 105, 0.3) 0%, rgba(0, 240, 255, 0.25) 35%, rgba(245, 158, 11, 0.22) 65%, transparent 76%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  contain: paint;
  animation: flamePulse 8s ease-in-out infinite alternate;
}

@keyframes flamePulse {
  0% { transform: translate3d(-50%, -50%, 0) scale(0.96); }
  50% { transform: translate3d(-51%, -49%, 0) scale(1.05); }
  100% { transform: translate3d(-49%, -51%, 0) scale(1.01); }
}

.hero-eyebrow {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.15vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: clamp(1rem, 2.2vh, 1.8rem);
}

.eyebrow-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.color-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

/* Core Disciplines Dots: Pink (Audio), Cyan (Video), Amber (Code) */
.dot-pink {
  background-color: var(--discipline-pink);
  box-shadow: 0 0 8px var(--discipline-pink);
}

.dot-cyan {
  background-color: var(--discipline-cyan);
  box-shadow: 0 0 8px var(--discipline-cyan);
}

.dot-amber {
  background-color: var(--discipline-amber);
  box-shadow: 0 0 8px var(--discipline-amber);
}

/* Backward-compatible aliases */
.dot-coral {
  background-color: var(--discipline-pink);
  box-shadow: 0 0 8px var(--discipline-pink);
}

.dot-lime {
  background-color: var(--discipline-amber);
  box-shadow: 0 0 8px var(--discipline-amber);
}

/* Hero Title Container & Autonomous Watercolor WebGL Canvas */
.hero-title-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-vyrn-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  display: block;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 35px rgba(0, 234, 255, 0.35));
}

.hero-title-stage.has-webgl-vyrn .hero-vyrn-canvas {
  opacity: 1;
}

.hero-title-stage.has-webgl-vyrn .hero-title-giant {
  opacity: 0;
  pointer-events: none;
  animation: none;
  filter: none;
}

/* Monumental VYRN Title with Letter-Level Smooth Organic Wave Distortion & Luminous Multi-Spectrum Glow */
.hero-title-giant {
  position: relative;
  z-index: 3;
  font-family: var(--font-display);
  font-size: clamp(7rem, 23vw, 20rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  background: linear-gradient(125deg, #ff3b69 0%, #00f0ff 26%, #ffffff 48%, #f59e0b 72%, #ff3b69 100%);
  background-size: 260% 260%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: avatarColorShift 12s ease-in-out infinite alternate;
  filter: url(#vyrn-organic-wave) drop-shadow(0 0 35px rgba(0, 234, 255, 0.35));
  user-select: none;
  margin: 0;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes avatarColorShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating Liquid Glass Distortion Pills (Interfering directly over the letters) */
.hero-glass-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.96vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-pure);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px) saturate(220%) contrast(1.25) brightness(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(220%) contrast(1.25) brightness(1.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.8),
    inset -1.5px -1.5px 0 rgba(0, 0, 0, 0.5),
    0 0 14px rgba(255, 255, 255, 0.08) inset,
    0 16px 36px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  z-index: 8;
  user-select: none;
  white-space: nowrap;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-glass-pill:hover {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.95),
    inset -1.5px -1.5px 0 rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 229, 255, 0.25),
    0 20px 45px rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

.hero-glass-pill--audio:hover {
  border-color: rgba(255, 59, 105, 0.65);
  box-shadow: 
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.95),
    inset -1.5px -1.5px 0 rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 59, 105, 0.35),
    0 20px 45px rgba(0, 0, 0, 0.7);
}

.hero-glass-pill--video:hover {
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: 
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.95),
    inset -1.5px -1.5px 0 rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 240, 255, 0.35),
    0 20px 45px rgba(0, 0, 0, 0.7);
}

.hero-glass-pill--code:hover {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.95),
    inset -1.5px -1.5px 0 rgba(0, 0, 0, 0.5),
    0 0 20px rgba(245, 158, 11, 0.35),
    0 20px 45px rgba(0, 0, 0, 0.7);
}

.glass-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Slicing right across the letter strokes */
.hero-glass-pill--top-left {
  top: 20%;
  left: clamp(16%, 22%, 26%);
  animation: floatPill1 6s ease-in-out infinite alternate;
}

.hero-glass-pill--bottom-right {
  bottom: 8%;
  right: clamp(26%, 33%, 38%);
  animation: floatPill2 7s ease-in-out infinite alternate;
}

.hero-glass-pill--top-right {
  top: 14%;
  right: clamp(14%, 18%, 22%);
  animation: floatPill3 6.5s ease-in-out infinite alternate;
}

@keyframes floatPill1 {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes floatPill2 {
  0% { transform: translateY(0) rotate(1deg); }
  100% { transform: translateY(10px) rotate(-2deg); }
}

@keyframes floatPill3 {
  0% { transform: translateY(0) rotate(2deg); }
  100% { transform: translateY(-8px) rotate(-1deg); }
}

/* Floating Sparkles */
.sparkle {
  position: absolute;
  width: clamp(15px, 1.8vw, 22px);
  height: clamp(15px, 1.8vw, 22px);
  color: #fff5ea;
  filter: drop-shadow(0 0 8px rgba(255, 200, 140, 0.9));
  pointer-events: none;
  z-index: 6;
  animation: sparkleTwinkle 3.2s ease-in-out infinite;
}

.sparkle--1 {
  top: 18%;
  left: 22%;
  animation-delay: 0s;
}

.sparkle--2 {
  top: 28%;
  right: 18%;
  animation-delay: 1.2s;
  width: 16px;
  height: 16px;
}

.sparkle--3 {
  bottom: 24%;
  left: 14%;
  animation-delay: 2.1s;
  width: 14px;
  height: 14px;
}

.sparkle--4 {
  bottom: 12%;
  right: 24%;
  animation-delay: 0.6s;
}

@keyframes sparkleTwinkle {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.65) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(45deg);
  }
}

.hero-tagline {
  position: relative;
  z-index: 3;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 760px;
  margin-bottom: clamp(2.25rem, 4.5vh, 3.5rem);
}

.hero-cta-group {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}


/* ==========================================================================
   Featured Video Section: Clean 2-Column Creator Showcase
   ========================================================================== */
.video-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 650px;
}

.video-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 3.5vw, 3.25rem);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 
    inset 1px 1px 0 rgba(255, 255, 255, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.video-showcase-grid:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    inset 1px 1px 0 rgba(255, 255, 255, 0.22),
    0 30px 70px rgba(0, 0, 0, 0.6);
}

/* Left Column: Channel Stats & Video Details */
.video-info-card {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.video-stat-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.video-stat-block .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-pure);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #ffffff 40%, var(--discipline-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.video-stat-block .stat-label {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.video-meta-block .video-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
}

.video-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

/* Right Column: 16:9 Video Player */
.video-player-frame {
  width: 100%;
}

.media-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #040507;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.media-player-wrapper:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.12);
}

.player-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #040507;
  overflow: hidden;
}

.player-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform var(--transition-smooth), opacity var(--transition-fast);
}

.player-trigger:hover .player-poster-img {
  transform: scale(1.03);
  opacity: 0.96;
}

.player-poster-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

/* Clean Minimal Frosted Glass Play Button */
.video-play-btn {
  position: relative;
  z-index: 3;
  width: clamp(58px, 6vw, 74px);
  height: clamp(58px, 6vw, 74px);
  border-radius: 50%;
  background: rgba(10, 13, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 
    inset 1px 1px 0 rgba(255, 255, 255, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.video-play-btn svg {
  margin-left: 3px; /* Optically center triangle */
  transition: transform var(--transition-fast);
}

.player-trigger:hover .video-play-btn {
  transform: scale(1.1);
  background: rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.6);
  color: #00f0ff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   Call to Action Section: Direct Creator Support (Lighter Dark Accent)
   ========================================================================== */
.cta-support-section {
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 0 150px;
  background-color: #141824; /* Distinctly lighter dark tone */
  background-image: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 65%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: clamp(1.6rem, 3.2vw, 2.35rem) 0;
  overflow: hidden;
}

.cta-support-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-support-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.2vw, 1.6rem);
  padding: 0.55rem 1.4rem 0.55rem 1.65rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 
    inset 1px 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 24px rgba(0, 0, 0, 0.35);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.cta-support-bar:hover {
  border-color: rgba(255, 221, 0, 0.35);
  box-shadow: 
    inset 1px 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(255, 221, 0, 0.08);
}

.cta-support-label {
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-pure);
  white-space: nowrap;
}

.cta-bmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 9999px;
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
  touch-action: manipulation;
}

.cta-bmc-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 22px rgba(255, 221, 0, 0.32);
}

.cta-bmc-btn img {
  height: 44px;
  width: auto;
  border-radius: 9999px;
  display: block;
}

/* ==========================================================================
   Projects Section: Interactive WebGL Liquid Glass Block
   ========================================================================== */
.projects-empty-block {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(9, 12, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.22),
    inset -1.5px -1.5px 0 rgba(0, 0, 0, 0.6),
    0 24px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  cursor: crosshair;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.projects-empty-block:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.35),
    inset -1.5px -1.5px 0 rgba(0, 0, 0, 0.6),
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(0, 240, 255, 0.12);
}

.projects-gl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.projects-glass-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 35%, rgba(6, 8, 12, 0.45) 100%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
}

.projects-empty-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 3rem);
  pointer-events: none;
  user-select: none;
}

.empty-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-pure);
  line-height: 1.15;
  margin: 0;
  text-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.9),
    0 0 35px rgba(0, 240, 255, 0.25);
  transition: transform var(--transition-fast);
}

.projects-empty-block:hover .empty-title {
  transform: scale(1.02);
}

.empty-desc {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 1rem auto 0;
  line-height: 1.6;
}

/* ==========================================================================
   Community & Support: Two Cool Liquid Glass Pills
   ========================================================================== */
.community-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

.community-pills-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.liquid-glass-pill-card {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 3.5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  box-shadow: 
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.25),
    inset -1.5px -1.5px 0 rgba(0, 0, 0, 0.5),
    0 20px 45px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
  overflow: hidden;
}

.liquid-glass-pill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0.4) 70%, transparent 100%);
  opacity: 0.6;
  pointer-events: none;
}

.liquid-glass-pill-card:first-child:hover {
  transform: translateY(-3px);
  border-color: rgba(88, 101, 242, 0.45);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.45),
    inset -1.5px -1.5px 0 rgba(0, 0, 0, 0.6),
    0 28px 60px rgba(0, 0, 0, 0.65),
    0 0 45px rgba(88, 101, 242, 0.25);
}

.liquid-glass-pill-card:last-child:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.45),
    inset -1.5px -1.5px 0 rgba(0, 0, 0, 0.6),
    0 28px 60px rgba(0, 0, 0, 0.65),
    0 0 45px rgba(245, 158, 11, 0.22);
}

.pill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.pill-card-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.5),
    inset -1px -1px 0 rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-pure);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.liquid-glass-pill-card:first-child:hover .pill-card-icon-box {
  transform: scale(1.08);
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.6);
  color: #8da0ff;
}

.liquid-glass-pill-card:last-child:hover .pill-card-icon-box {
  transform: scale(1.08);
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fbbf24;
}

.pill-card-tag {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.pill-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-pure);
  margin-bottom: 1rem;
}

.pill-card-desc {
  font-size: clamp(0.94rem, 1.1vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.pill-card-action {
  align-self: flex-start;
}

/* ==========================================================================
   Clean Editorial Footer
   ========================================================================== */
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
  padding: clamp(4rem, 6vw, 6.5rem) 0 3rem;
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand-signature {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-pure);
}

.footer-social-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  flex-wrap: wrap;
}

.footer-social-link {
  font-size: 0.94rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.2rem;
  transition: color var(--transition-fast);
  touch-action: manipulation;
}

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

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-copy {
  color: var(--text-muted);
}

.footer-legal-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.footer-legal-link {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.2rem;
  transition: color var(--transition-fast);
  touch-action: manipulation;
}

.footer-legal-link:hover {
  color: var(--text-pure);
}

.footer-divider {
  color: var(--text-muted);
}

/* ==========================================================================
   Minimalist Back to Top Floating Glass Orb Trigger
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
  right: max(1.25rem, env(safe-area-inset-right, 1.25rem));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.6),
    inset -1px -1px 0 rgba(0, 0, 0, 0.5),
    0 14px 32px rgba(0, 0, 0, 0.55);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-fast);
  z-index: 950;
  cursor: pointer;
  touch-action: manipulation;
}

.back-to-top:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.8),
    inset -1px -1px 0 rgba(0, 0, 0, 0.5),
    0 18px 38px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(255, 255, 255, 0.2);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .video-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: clamp(1.75rem, 4vw, 2.5rem);
  }

  .video-player-frame {
    order: -1;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .community-pills-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Performance: Disable heavy composite layers, SVG noise, and drop-shadows on mobile */
  .ambient-noise {
    display: none;
  }

  .hero-vyrn-canvas {
    filter: none;
  }

  .hero-title-giant {
    filter: none;
  }

  .hero-flame-halo {
    filter: blur(35px);
    animation: none;
    opacity: 0.65;
    width: 90vw;
    height: 280px;
  }

  .sparkle {
    display: none;
  }

  .glass-nav-pill.nav-morphing,
  .glass-nav-pill.nav-morphing::after {
    animation: none;
  }

  .nav-cluster {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  /* Performance: Soften fixed blur radius on mobile to prevent GPU fill-rate throttling */
  .ambient-glow {
    filter: blur(45px);
  }

  /* Universal touch latency elimination */
  button, a, .pill-btn, .mobile-toggle, .player-trigger, .back-to-top {
    touch-action: manipulation;
  }

  /* Header & Navigation: Declutter compact bar, elevate drawer */
  .nav-utility .nav-btn--discord,
  .nav-utility .nav-btn--bmac {
    display: none;
  }

  .glass-nav-pill {
    padding: 0.65rem 0.95rem;
  }

  .glass-nav-pill.is-scrolled {
    width: min(calc(100% - 1.25rem), 520px);
    padding: 0.52rem 0.85rem;
  }

  .mobile-nav-panel {
    top: calc(100% + 0.65rem);
    padding: 1.25rem 1.15rem;
    border-radius: var(--radius-xl);
    background: rgba(12, 15, 20, 0.97);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), inset 1px 1px 0 rgba(255, 255, 255, 0.15);
  }

  .mobile-nav-links {
    gap: 0.45rem;
  }

  .mobile-nav-item {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--text-primary);
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast), color var(--transition-fast);
  }

  .mobile-nav-item:active {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-pure);
  }

  .mobile-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
  }

  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .mobile-drawer-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.94rem;
    border-radius: var(--radius-full);
  }

  /* Hero Section: Clean bounds & frame title without badge collision */
  .hero-section {
    padding-top: clamp(6.25rem, 14vh, 8.5rem);
    padding-bottom: 3.5rem;
    overflow-x: hidden;
  }

  .hero-eyebrow {
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    margin-bottom: 1.35rem;
  }

  .hero-eyebrow .color-dot {
    width: 7px;
    height: 7px;
  }

  .hero-title-stage {
    margin-bottom: 1.5rem;
  }

  .hero-title-giant {
    font-size: clamp(4.4rem, 20vw, 7.8rem);
    letter-spacing: -0.04em;
  }

  .hero-glass-pill {
    padding: 0.42rem 1.05rem;
    font-size: 0.84rem;
    font-weight: 600;
    gap: 0.5rem;
    letter-spacing: 0.1em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 
      inset 1px 1px 0 rgba(255, 255, 255, 0.8),
      inset -1px -1px 0 rgba(0, 0, 0, 0.5),
      0 8px 24px rgba(0, 0, 0, 0.55);
  }

  .hero-glass-pill .glass-pill-dot {
    width: 7px;
    height: 7px;
  }

  .hero-glass-pill--top-left {
    top: 42px;
    left: 2%;
    animation: none;
    transform: rotate(-3deg);
  }

  .hero-glass-pill--top-right {
    top: 42px;
    right: 2%;
    animation: none;
    transform: rotate(3deg);
  }

  .hero-glass-pill--bottom-right {
    bottom: -22px;
    left: 50%;
    right: auto;
    animation: none;
    transform: translateX(-50%);
  }

  .sparkle--1 { top: 4%; left: 8%; }
  .sparkle--2 { top: 8%; right: 6%; }
  .sparkle--3,
  .sparkle--4 { display: none; }

  .hero-tagline {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 440px;
    padding: 0 0.5rem;
    margin-bottom: 2rem;
  }

  /* Discipline Badges on Mobile */
  .discipline-badge {
    font-size: 0.84rem;
    padding: 0.38rem 1.05rem;
    gap: 0.55rem;
  }

  /* Video Section Responsive Refinements */
  .video-stat-block .stat-label {
    font-size: 0.86rem;
  }

  .video-meta-block .video-title {
    font-size: clamp(1.18rem, 4.2vw, 1.4rem);
    line-height: 1.4;
  }

  .video-actions .pill-btn {
    min-height: 46px;
    padding: 0.72rem 1.25rem;
    font-size: 0.92rem;
  }

  /* CTA Support Bar Mobile Adaptations */
  .cta-support-bar {
    width: 100%;
    max-width: 360px;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .cta-support-label {
    text-align: center;
  }

  .cta-bmc-btn {
    width: 100%;
    justify-content: center;
  }

  /* Projects Section: Proportional tactile empty block */
  .projects-empty-block {
    min-height: 280px;
    height: 320px;
    padding: 1.25rem;
  }

  .empty-title {
    font-size: clamp(1.45rem, 5.5vw, 1.95rem);
  }

  /* Community Section Responsive Refinements */
  .pill-card-tag {
    font-size: 0.84rem;
  }

  .pill-card-desc {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .pill-card-action {
    min-height: 46px;
    font-size: 0.92rem;
    padding: 0.72rem 1.25rem;
  }

  /* Back to Top Floating Orb with Safe Area Inset */
  .back-to-top {
    bottom: max(1.15rem, env(safe-area-inset-bottom, 1.15rem));
    right: max(1.15rem, env(safe-area-inset-right, 1.15rem));
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-cta-group .pill-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.98rem;
  }


  .video-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .video-actions .pill-btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  .liquid-glass-pill-card {
    padding: 1.5rem 1.25rem;
    min-height: auto;
  }

  .pill-card-action {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  .site-footer {
    padding: 3.5rem 0 2.5rem;
  }

  .footer-bottom-row {
    gap: 1.25rem;
  }
}

/* Legal Pages Mobile Responsive Refinements */
@media (max-width: 640px) {
  .legal-nav-container {
    padding: 0 1rem;
  }

  .legal-back-link {
    font-size: 0.84rem;
    padding: 0.42rem 0.85rem;
    min-height: 40px;
  }

  .legal-document-container {
    padding: 2rem 1.15rem 4rem 1.15rem;
  }

  .legal-doc-title {
    font-size: clamp(1.9rem, 7vw, 2.5rem);
  }

  .legal-doc-meta {
    font-size: 0.88rem;
    gap: 0.65rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-toc {
    padding: 1.15rem 1.25rem;
    margin-bottom: 2.25rem;
  }

  .legal-toc-heading {
    font-size: 0.84rem;
    margin-bottom: 0.95rem;
  }

  .legal-toc-list {
    gap: 0.55rem;
  }

  .legal-toc-list a {
    font-size: 0.94rem;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
  }

  .legal-section-title {
    font-size: 1.22rem;
  }

  .legal-text {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .legal-list {
    font-size: 0.96rem;
    line-height: 1.75;
    margin-left: 1.25rem;
  }

  .legal-address-card {
    font-size: 0.92rem;
    padding: 1.15rem 1.25rem;
  }

  .legal-footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.88rem;
    padding: 0 1.15rem;
  }
}

/* ==========================================================================
   Legal Pages (Impressum & Datenschutzerklärung) — Clean, Focused, Professional
   ========================================================================== */
.legal-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-deep);
  color: var(--text-primary);
}

.legal-nav-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.95rem 0;
}

.legal-nav-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-brand-link {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-pure);
  text-decoration: none;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-fast);
}

.legal-back-link:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
  transform: translateX(-2px);
}

.legal-document-container {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vh, 4rem) 1.5rem clamp(4rem, 8vh, 6rem) 1.5rem;
  flex-grow: 1;
}

.legal-doc-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-doc-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  line-height: 1.15;
  margin: 0 0 0.75rem 0;
}

.legal-doc-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.legal-doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Minimal Table of Contents */
.legal-toc {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
}

.legal-toc-heading {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.legal-toc-list a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-toc-list a:hover {
  color: var(--text-pure);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legal Content Sections */
.legal-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 5rem;
}

.legal-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-pure);
  margin: 0 0 1rem 0;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-subheading {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.4rem 0 0.5rem 0;
}

.legal-text {
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legal-text:last-child {
  margin-bottom: 0;
}

.legal-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-text a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.legal-text a:hover {
  color: var(--text-pure);
}

.legal-list {
  margin: 0.75rem 0 1.25rem 1.5rem;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.8;
}

.legal-list li {
  margin-bottom: 0.4rem;
}

.legal-list li strong {
  color: var(--text-primary);
}

.legal-address-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-primary);
}

/* Minimal Legal Footer */
.legal-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  padding: 2rem 0;
  margin-top: auto;
}

.legal-footer-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.legal-footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.legal-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.legal-footer-links a:hover,
.legal-footer-links a.is-active {
  color: var(--text-pure);
}

/* ==========================================================================
   Modular Projects Grid (Audio, Video, Code & Engineering)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  position: relative;
  background: rgba(15, 18, 24, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.08);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-status-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.project-status-badge.status--in-dev {
  color: var(--discipline-amber);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-pure);
  line-height: 1.25;
  margin: 0.35rem 0 0.5rem 0;
}

.project-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.5rem;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Discord Launch Notification Card & Form
   ========================================================================== */
.discord-waitlist-box {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.waitlist-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.waitlist-input {
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.15rem;
  color: var(--text-pure);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color var(--transition-fast);
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--discipline-cyan);
}

.waitlist-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.86rem;
  white-space: nowrap;
}

.waitlist-status {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--discipline-cyan);
  display: none;
  margin-top: 0.25rem;
}

.waitlist-status.is-visible {
  display: block;
}

/* ==========================================================================
   2-Click YouTube Privacy Consent Facade
   ========================================================================== */
.privacy-consent-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 11, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem;
  z-index: 5;
  transition: opacity var(--transition-smooth);
}

.privacy-consent-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.privacy-consent-text a {
  color: var(--discipline-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Self-Hosted Buy Me A Coffee Button
   ========================================================================== */
.bmac-selfhosted-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffdd00;
  color: #000000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(255, 221, 0, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.bmac-selfhosted-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 221, 0, 0.4);
  color: #000000;
}

/* ==========================================================================
   Direct Contact & Inquiries Section
   ========================================================================== */
.contact-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 750px;
  padding: clamp(4rem, 8vh, 7rem) 0;
  position: relative;
}

.contact-card {
  background: rgba(15, 18, 24, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (max-width: 640px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-pure);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--discipline-cyan);
  background: rgba(255, 255, 255, 0.07);
}

.contact-select option {
  background: #0f1218;
  color: var(--text-pure);
}

.contact-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.5rem 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-checkbox-row input {
  margin-top: 0.2rem;
  accent-color: var(--discipline-cyan);
}

.contact-checkbox-row a {
  color: var(--discipline-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.form-feedback-msg {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--discipline-cyan);
  display: none;
}

.form-feedback-msg.is-visible {
  display: block;
}

/* ==========================================================================
   Motion Accessibility (prefers-reduced-motion)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ambient-glow,
  .ambient-noise,
  .sparkle,
  .hero-flame-halo {
    animation: none !important;
    display: none !important;
  }
  .projects-empty-block:hover {
    transform: none !important;
  }
  .project-card:hover {
    transform: none !important;
  }
}
