/* ════════════════════════════════════════════
   ekkoinc — Portfolio Stylesheet
   Aesthetic: Glassmorphism · Dark · Cinematic
   Palette : Deep teal / slate / mist
   ════════════════════════════════════════════ */

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

:root {
  /* ── Core palette (inspired by misty mountain mockup) ── */
  --abyss      : #0a1418;
  --deep       : #0f1d22;
  --slate      : #1a2c33;
  --teal       : #2a4a52;
  --mist       : #5b8a8a;
  --fog        : #a8c3c3;
  --pearl      : #e8efee;
  --cream      : #f4f1ea;

  /* ── Accents ── */
  --gold       : #d4b87a;
  --gold-soft  : #c9a96e;
  --sage       : #7ea69a;

  /* ── Glass tokens ── */
  --glass-bg   : rgba(255, 255, 255, 0.045);
  --glass-bg-2 : rgba(255, 255, 255, 0.075);
  --glass-bg-3 : rgba(255, 255, 255, 0.11);
  --glass-bd   : rgba(255, 255, 255, 0.12);
  --glass-bd-2 : rgba(255, 255, 255, 0.18);
  --glass-shadow : 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.07);

  /* ── Typography ── */
  --serif : 'Cormorant Garamond', 'Times New Roman', serif;
  --sans  : 'Outfit', -apple-system, sans-serif;
  --mono  : 'DM Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--abyss);
  color: var(--pearl);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  position: relative;
  min-height: 100vh;
}

/* Atmospheric background — misty mountain feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%,    rgba(91, 138, 138, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%,   rgba(42, 74, 82, 0.35)  0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 20% 70%,   rgba(26, 44, 51, 0.50)  0%, transparent 60%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(15, 29, 34, 0.7)   0%, transparent 70%),
    linear-gradient(180deg, #0a1418 0%, #0f1d22 50%, #0a1418 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* ════════════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════════════ */
#cur-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--pearl);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s;
  mix-blend-mode: difference;
}
#cur-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(232, 239, 238, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.05s;
  backdrop-filter: blur(2px);
}
body.hovering #cur-dot { width: 14px; height: 14px; background: var(--gold); }
body.hovering #cur-ring { width: 56px; height: 56px; border-color: var(--gold); }

@media (max-width: 900px) {
  body { cursor: auto; }
  #cur-dot, #cur-ring { display: none; }
}

/* ════════════════════════════════════════════
   LOADER
═══════════════════════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--abyss);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.9s ease, visibility 0.9s;
}
#loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--pearl);
  opacity: 0;
  animation: loaderFadeIn 0.8s 0.3s ease forwards;
}
.loader-logo em { color: var(--gold); font-style: italic; }

.loader-bar-wrap {
  width: 200px; height: 1px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.loader-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--mist), var(--gold));
  animation: loadFill 1.8s 0.4s ease forwards;
}
.loader-pct {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(168, 195, 195, 0.5);
  opacity: 0;
  animation: loaderFadeIn 0.5s 0.8s ease forwards;
}

@keyframes loaderFadeIn { to { opacity: 1; } }
@keyframes loadFill     { to { width: 100%; } }

/* ════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 0 3rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(10, 20, 24, 0.55);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--pearl);
  letter-spacing: 0.05em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.nav-brand .nb-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mist), var(--gold));
  position: relative;
  box-shadow: 0 0 18px rgba(212, 184, 122, 0.35);
}
.nav-brand .nb-mark::after {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--abyss);
}
.nav-brand em { color: var(--gold); font-style: italic; margin-left: 0.18em; }

.nav-links { display: flex; gap: 2.4rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 239, 238, 0.55);
  text-decoration: none;
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--pearl); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; background: var(--gold); }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pearl);
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-bd);
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.nav-cta:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 184, 122, 0.08);
  box-shadow: 0 0 24px rgba(212, 184, 122, 0.15);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 600;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pearl);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 199;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 29, 34, 0.75);
  border: 1px solid var(--glass-bd);
  backdrop-filter: blur(12px);
  color: var(--fog);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s, border-color 0.3s, color 0.3s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(15, 29, 34, 0.9);
}

/* Urgency badge */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 50px;
  animation: urgencyPulse 2.5s ease-in-out infinite;
}
@keyframes urgencyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.2); }
  50%      { box-shadow: 0 0 12px 4px rgba(251, 191, 36, 0.15); }
}

/* ════════════════════════════════════════════
   GLOBAL UTILITIES
═══════════════════════════════════════════════ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2.2rem;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 1.6rem; height: 1px;
  background: var(--gold);
  opacity: 0.55;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--pearl);
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title strong { font-weight: 600; }

/* Glass card base */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--glass-shadow);
  position: relative;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.04) 100%);
  pointer-events: none;
}

/* Buttons */
.btn-glass, .btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.btn-glass {
  color: var(--pearl);
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-bd-2);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: var(--glass-bg-3);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3), 0 0 24px rgba(212, 184, 122, 0.18);
}
.btn-solid {
  color: var(--abyss);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  border: 1px solid var(--gold);
  font-weight: 500;
}
.btn-solid:hover {
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 184, 122, 0.3);
}
.btn-glass .arrow, .btn-solid .arrow {
  display: inline-block;
  transition: transform 0.3s;
}
.btn-glass:hover .arrow, .btn-solid:hover .arrow { transform: translateX(4px); }

/* Reveal animations */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal-left  { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal.up, .reveal-left.up, .reveal-right.up {
  opacity: 1;
  transform: translate(0);
}
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.22s; }
.d3 { transition-delay: 0.34s; }
.d4 { transition-delay: 0.46s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════
   HERO — CINEMATIC FULL BLEED
═══════════════════════════════════════════════ */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 1.5rem 3rem;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(10, 20, 24, 0.55) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 0%,   rgba(10, 20, 24, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 50%,   rgba(10, 20, 24, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 50%, rgba(10, 20, 24, 0.25) 0%, transparent 55%);
}

.hero-mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom,
    transparent 30%,
    rgba(168, 195, 195, 0.08) 50%,
    transparent 75%);
  animation: mistDrift 9s ease-in-out infinite alternate;
}
@keyframes mistDrift {
  from { opacity: 0.5; transform: translateY(0); }
  to   { opacity: 1;   transform: translateY(-14px); }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(168, 195, 195, 0.7);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s ease forwards;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero-title {
  font-family: var(--serif);
  font-size: 6.5rem;
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--pearl);
  margin-bottom: 0.6rem;
  opacity: 0;
  animation: fadeUp 1s 0.55s ease forwards;
}
@media (min-width: 1600px) {
  .hero-title { font-size: 8rem; }
}
@media (max-width: 1100px) {
  .hero-title { font-size: 5rem; }
}
@media (max-width: 900px) {
  .hero-title { font-size: 4.2rem; }
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 100%;
  height: 0.04em;
  background: var(--gold);
  opacity: 0.3;
}
.hero-title .line2 {
  display: block;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.36em;
  color: rgba(168, 195, 195, 0.7);
  margin-top: 1.2rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(168, 195, 195, 0.7);
  letter-spacing: 0.06em;
  margin: 1.4rem 0 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s ease forwards;
  max-width: 540px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.95s ease forwards;
}
.hero-chip {
  padding: 0.55rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fog);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-bd);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  transition: all 0.3s;
}
.hero-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s ease forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  opacity: 0;
  animation: fadeUp 1s 1.4s ease forwards;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(to bottom, transparent, var(--pearl));
  animation: scrollDot 2.2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: -50%; }
  100% { top: 100%; }
}
.scroll-txt {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(168, 195, 195, 0.5);
}

/* Sponsor / trusted-stack bar */
.sponsor-bar {
  position: absolute;
  bottom: 1.2rem;
  left: 0; right: 0;
  z-index: 3;
  padding: 0 3rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(168, 195, 195, 0.4);
}

/* ════════════════════════════════════════════
   WHY SECTION (glass cards row)
═══════════════════════════════════════════════ */
#why {
  padding: 7rem 0 5rem;
  position: relative;
}
.why-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.why-head .section-label { padding-left: 0; }
.why-head .section-label::before { display: none; }
.why-head p {
  color: rgba(168, 195, 195, 0.7);
  font-size: 1rem;
  margin-top: 0.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.why-card {
  padding: 2rem 1.6rem;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease, border-color 0.4s, background 0.4s;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}
.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% -20%, rgba(212, 184, 122, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
}
.why-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 184, 122, 0.3);
  background: var(--glass-bg-2);
}
.why-card:hover::after { opacity: 1; }
.why-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mist), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--pearl);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 12px rgba(0,0,0,0.3);
}
.why-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--pearl);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.why-desc {
  font-size: 0.88rem;
  color: rgba(168, 195, 195, 0.65);
  line-height: 1.6;
}

/* ════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════ */
#about {
  padding: 6rem 0;
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}
.about-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow), 0 30px 60px rgba(0,0,0,0.4);
  aspect-ratio: 4 / 5.2;
}
.about-frame svg { width: 100%; height: 100%; display: block; }
.about-frame::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 184, 122, 0.15);
  border-radius: 8px;
  pointer-events: none;
}

/* ─── Real photo frame ─── */
.about-frame-photo { aspect-ratio: 4 / 5.2; }
.about-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: brightness(0.92) contrast(1.05) saturate(0.85);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter 0.5s;
}
.about-frame-photo:hover .about-photo {
  transform: scale(1.04);
  filter: brightness(1.0) contrast(1.05) saturate(0.95);
}
/* Top fade overlay (gold tint) */
.about-photo-overlay-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(180deg,
    rgba(10, 20, 24, 0.5) 0%,
    rgba(212, 184, 122, 0.05) 30%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}
/* Bottom fade overlay (deep teal) */
.about-photo-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(0deg,
    rgba(10, 20, 24, 0.92) 0%,
    rgba(10, 20, 24, 0.55) 35%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.about-photo-corners {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.about-float {
  position: absolute;
  bottom: -28px;
  right: -28px;
  padding: 1.4rem 1.6rem;
  background: rgba(15, 29, 34, 0.78);
  border: 1px solid var(--glass-bd-2);
  backdrop-filter: blur(16px);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  z-index: 2;
  text-align: center;
  min-width: 160px;
}
.about-float-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  font-style: italic;
  line-height: 1;
}
.about-float-txt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(168, 195, 195, 0.65);
  margin-top: 0.35rem;
}

.about-text p {
  color: rgba(232, 239, 238, 0.78);
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.75;
}
.about-text p strong { color: var(--gold); font-weight: 500; }

.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.skill-pill {
  padding: 0.55rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  transition: all 0.3s;
}
.skill-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 184, 122, 0.08);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════ */
#stats {
  padding: 4rem 0;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  backdrop-filter: blur(18px) saturate(150%);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}
.stats-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 184, 122, 0.4), transparent);
}
.stat-item {
  text-align: center;
  padding: 0.8rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 300;
  color: var(--pearl);
  line-height: 1;
  font-style: italic;
}
.stat-num.gold { color: var(--gold); }
.stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(168, 195, 195, 0.6);
  margin-top: 0.7rem;
}

/* ════════════════════════════════════════════
   PROJECTS — drag scroll track
═══════════════════════════════════════════════ */
#projects {
  padding: 7rem 0 5rem;
}
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.projects-count {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
}

.projects-track-wrap {
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 2.5rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.projects-track-wrap::-webkit-scrollbar { height: 6px; }
.projects-track-wrap::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.projects-track-wrap::-webkit-scrollbar-thumb { background: rgba(212, 184, 122, 0.35); border-radius: 3px; }

.projects-track {
  display: flex;
  gap: 1.6rem;
  padding-bottom: 1rem;
  user-select: none;
  width: max-content;
}

.proj-card {
  width: 380px;
  flex: 0 0 380px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--glass-shadow);
  transition: transform 0.5s ease, border-color 0.4s, box-shadow 0.4s;
  position: relative;
}
.proj-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 184, 122, 0.35);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 30px rgba(212, 184, 122, 0.1);
}
.proj-thumb {
  position: relative;
  aspect-ratio: 380 / 240;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-bd);
}
.proj-thumb svg { width: 100%; height: 100%; display: block; }
.proj-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 20, 24, 0.6) 100%);
  pointer-events: none;
}
.proj-tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.32rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 20, 24, 0.7);
  border: 1px solid rgba(212, 184, 122, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 2px;
}
.proj-body { padding: 1.5rem 1.6rem 1.7rem; }
.proj-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--pearl);
  margin-bottom: 0.55rem;
  line-height: 1.2;
}
.proj-desc {
  font-size: 0.86rem;
  color: rgba(168, 195, 195, 0.65);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.proj-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s, color 0.3s;
}
.proj-link:hover { gap: 0.9rem; color: var(--pearl); }

/* Drag hint */
.drag-hint {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(168, 195, 195, 0.4);
  margin-top: 1rem;
}

/* ════════════════════════════════════════════
   SECTION DIVIDER — glowing code line
═══════════════════════════════════════════════ */
.section-divider {
  position: relative;
  width: 100%;
  padding: 4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Soft ambient glow behind the line */
.divider-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 120px;
  background: radial-gradient(ellipse,
    rgba(212, 184, 122, 0.12) 0%,
    rgba(91, 138, 138, 0.06) 50%,
    transparent 80%);
  filter: blur(30px);
  animation: dividerPulse 5s ease-in-out infinite;
}
@keyframes dividerPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scaleX(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scaleX(1.15); }
}

/* Horizontal line with gradient */
.divider-line {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 700px;
  z-index: 2;
}
.divider-line::before,
.divider-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 184, 122, 0.45), rgba(91, 138, 138, 0.3));
}
.divider-line::after {
  background: linear-gradient(90deg, rgba(91, 138, 138, 0.3), rgba(212, 184, 122, 0.45), transparent);
}

/* Code symbols on each side */
.divider-symbol {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(168, 195, 195, 0.35);
  transition: color 0.5s;
  flex-shrink: 0;
}
.section-divider:hover .divider-symbol { color: var(--gold); }

/* Center diamond ornament */
.divider-diamond {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--gold), var(--mist));
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow:
    0 0 12px rgba(212, 184, 122, 0.4),
    0 0 30px rgba(212, 184, 122, 0.15);
  animation: diamondGlow 4s ease-in-out infinite;
  position: relative;
}
.divider-diamond::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--abyss);
  transform: rotate(0deg);
}
@keyframes diamondGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(212,184,122,0.4), 0 0 30px rgba(212,184,122,0.15); }
  50%      { box-shadow: 0 0 20px rgba(212,184,122,0.6), 0 0 50px rgba(212,184,122,0.25); }
}

/* Floating particles */
.divider-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.divider-particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: divParticle 6s ease-in-out infinite;
}
.divider-particles span:nth-child(1) { left: 15%; top: 30%; animation-delay: 0s; }
.divider-particles span:nth-child(2) { left: 30%; top: 60%; animation-delay: 0.8s; }
.divider-particles span:nth-child(3) { left: 45%; top: 25%; animation-delay: 1.6s; }
.divider-particles span:nth-child(4) { left: 60%; top: 65%; animation-delay: 2.4s; }
.divider-particles span:nth-child(5) { left: 75%; top: 35%; animation-delay: 3.2s; }
.divider-particles span:nth-child(6) { left: 85%; top: 55%; animation-delay: 4.0s; }
.divider-particles span:nth-child(7) { left: 25%; top: 50%; animation-delay: 4.8s; }
.divider-particles span:nth-child(8) { left: 55%; top: 40%; animation-delay: 5.5s; }

@keyframes divParticle {
  0%        { opacity: 0; transform: translateY(0) scale(0.5); }
  20%       { opacity: 0.8; }
  50%       { opacity: 0.6; transform: translateY(-20px) scale(1); }
  80%       { opacity: 0.3; }
  100%      { opacity: 0; transform: translateY(-40px) scale(0.3); }
}

/* ════════════════════════════════════════════
   TEACHING SECTION
═══════════════════════════════════════════════ */
#teaching {
  padding: 6rem 0;
}
.teaching-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4.5rem;
  align-items: start;
}
.teaching-text > .reveal:first-child p {
  color: rgba(232, 239, 238, 0.72);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-top: 0.8rem;
  max-width: 500px;
}

.course-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--glass-bd);
}
.course-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid var(--glass-bd);
  transition: padding 0.4s, background 0.4s;
  position: relative;
}
.course-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 100%;
  background: linear-gradient(90deg, rgba(212, 184, 122, 0.06), transparent);
  transition: width 0.5s ease;
  pointer-events: none;
}
.course-item:hover {
  padding-left: 1.5rem;
}
.course-item:hover::before { width: 100%; }
.course-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  font-style: italic;
  width: 2.4rem;
}
.course-item-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--pearl);
  line-height: 1.2;
}
.course-item-sub {
  font-size: 0.82rem;
  color: rgba(168, 195, 195, 0.6);
  margin-top: 0.25rem;
}
.course-price {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 400;
  white-space: nowrap;
}
.course-price.soon { color: rgba(168, 195, 195, 0.4); }

/* Sticky course card */
.teaching-card {
  position: sticky;
  top: 100px;
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-bd-2);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), var(--glass-shadow);
}
.teaching-card-hero {
  position: relative;
  aspect-ratio: 400 / 260;
  overflow: hidden;
}
.teaching-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75) saturate(0.85);
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter 0.5s;
}
.teaching-card:hover .teaching-card-img {
  transform: scale(1.06);
  filter: brightness(0.85) saturate(1);
}
.teaching-card-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 20, 24, 0.15) 0%,
    rgba(10, 20, 24, 0.6) 100%);
  pointer-events: none;
}
.teaching-card-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.35rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 20, 24, 0.7);
  border: 1px solid rgba(212, 184, 122, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  z-index: 2;
}
.teaching-card-body { padding: 1.8rem 2rem 2rem; }
.tc-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding: 0.32rem 0.85rem;
  border: 1px solid rgba(212, 184, 122, 0.35);
  border-radius: 50px;
  background: rgba(212, 184, 122, 0.05);
}
.tc-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1.05;
  color: var(--pearl);
  margin-bottom: 1.3rem;
}
.tc-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--glass-bd);
}
.tc-price {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
}
.tc-price-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(168, 195, 195, 0.55);
}
.tc-sessions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.tc-chip {
  padding: 0.4rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: 50px;
}
.tc-chip.gold {
  color: var(--gold);
  border-color: rgba(212, 184, 122, 0.4);
  background: rgba(212, 184, 122, 0.08);
}

/* ════════════════════════════════════════════
   PROCESS
═══════════════════════════════════════════════ */
#process {
  padding: 6rem 0;
}
#process .container > .reveal {
  text-align: center;
  margin-bottom: 4rem;
}
#process .section-label { padding-left: 0; }
#process .section-label::before { display: none; }

.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  position: relative;
}
.process-row::before {
  content: '';
  position: absolute;
  top: 70px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 184, 122, 0.25) 15%, rgba(212, 184, 122, 0.25) 85%, transparent);
  z-index: 0;
}
.process-step {
  padding: 2rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 1;
  text-align: center;
  transition: transform 0.5s, border-color 0.4s;
}
.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 184, 122, 0.3);
}
.step-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: rgba(168, 195, 195, 0.45);
  margin-bottom: 1rem;
}
.step-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mist), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--pearl);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 8px 20px rgba(0,0,0,0.35);
}
.step-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--pearl);
  margin-bottom: 0.5rem;
}
.step-desc {
  font-size: 0.86rem;
  color: rgba(168, 195, 195, 0.6);
  line-height: 1.55;
}

/* ════════════════════════════════════════════
   TESTIMONIALS — infinite ticker
═══════════════════════════════════════════════ */
#testimonials {
  padding: 6rem 0;
}
#testimonials .container { margin-bottom: 3rem; text-align: center; }
#testimonials .section-label { padding-left: 0; }
#testimonials .section-label::before { display: none; }

.testi-wrap {
  overflow: hidden;
  padding: 1.5rem 0;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.testi-track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  animation: testiScroll 38s linear infinite;
}
.testi-track:hover { animation-play-state: paused; }
@keyframes testiScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.testi-card {
  width: 380px;
  flex: 0 0 380px;
  padding: 2rem 1.8rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: 14px;
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--glass-shadow);
}
.testi-quote {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
  color: rgba(232, 239, 238, 0.85);
  margin-bottom: 1.4rem;
  position: relative;
  padding-left: 1.2rem;
}
.testi-quote::before {
  content: '“';
  position: absolute;
  left: -0.1rem;
  top: -0.5rem;
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.5;
  font-family: var(--serif);
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mist), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--pearl);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.testi-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--pearl);
  font-weight: 500;
}
.testi-role {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(168, 195, 195, 0.55);
  margin-top: 0.18rem;
}

/* ════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
#contact {
  padding: 7rem 0 5rem;
  position: relative;
}
.contact-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 3rem;
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-bd-2);
  border-radius: 20px;
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), var(--glass-shadow);
  position: relative;
  overflow: hidden;
}
.contact-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.contact-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(212, 184, 122, 0.08), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(91, 138, 138, 0.1),  transparent 50%);
  pointer-events: none;
}
.contact-inner > * { position: relative; z-index: 1; }
.contact-inner .section-label { padding-left: 0; }
.contact-inner .section-label::before { display: none; }
.contact-inner p {
  color: rgba(232, 239, 238, 0.72);
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}
.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* ════════════════════════════════════════════
   QUICK CONTACT CARDS (3-up grid)
═══════════════════════════════════════════════ */
.contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 920px;
  margin: 2rem auto 3rem;
  text-align: left;
}
.contact-quick-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  background: rgba(15, 29, 34, 0.55);
  border: 1px solid var(--glass-bd);
  border-radius: 14px;
  text-decoration: none;
  color: var(--pearl);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1),
              border-color 0.4s, background 0.4s;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.contact-quick-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.contact-quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 184, 122, 0.35);
  background: rgba(15, 29, 34, 0.78);
}
.contact-quick-card.zalo:hover     { border-color: rgba(0, 104, 255, 0.45); }
.contact-quick-card.email:hover    { border-color: rgba(212, 184, 122, 0.55); }
.contact-quick-card.facebook:hover { border-color: rgba(24, 119, 242, 0.45); }

.cqc-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  overflow: hidden;
}
.cqc-icon svg { width: 100%; height: 100%; display: block; }

.cqc-body { flex: 1; min-width: 0; }
.cqc-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(168, 195, 195, 0.65);
  margin-bottom: 3px;
}
.cqc-value {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--pearl);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cqc-hint {
  font-size: 0.7rem;
  color: rgba(168, 195, 195, 0.45);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.cqc-arrow {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.contact-quick-card:hover .cqc-arrow { transform: translateX(4px); }

/* ════════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════════ */
.contact-form-wrap {
  max-width: 640px;
  margin: 2.5rem auto;
  text-align: left;
  background: rgba(15, 29, 34, 0.45);
  border: 1px solid var(--glass-bd);
  border-radius: 16px;
  padding: 2rem 2rem 2.2rem;
  backdrop-filter: blur(20px);
  position: relative;
}
.contact-form-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,184,122,0.4), transparent);
}
.contact-form-head {
  text-align: center;
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--glass-bd);
}
.cf-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.cf-sub {
  font-size: 0.82rem;
  color: rgba(168, 195, 195, 0.6);
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168, 195, 195, 0.7);
}
.cf-field input,
.cf-field select,
.cf-field textarea {
  background: rgba(10, 20, 24, 0.6);
  border: 1px solid var(--glass-bd);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  color: var(--pearl);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: var(--gold);
  background: rgba(10, 20, 24, 0.85);
}
.cf-field textarea {
  resize: vertical;
  min-height: 96px;
  font-family: var(--sans);
}
.cf-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23d4b87a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.cf-submit {
  align-self: flex-start;
  margin-top: 0.4rem;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
}
.cf-success, .cf-error {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cf-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
}
.cf-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #fca5a5;
}
.cf-success strong, .cf-error strong { font-size: 0.95rem; }
.cf-success span, .cf-error span {
  font-size: 0.84rem;
  color: inherit;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .contact-quick-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.4rem 1.2rem 1.6rem; }
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(168, 195, 195, 0.55);
  padding-top: 2rem;
  border-top: 1px solid var(--glass-bd);
}
.contact-details a {
  color: rgba(168, 195, 195, 0.55);
  text-decoration: none;
  transition: color 0.3s;
}
.contact-details a:hover { color: var(--gold); }

/* ════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  padding: 3rem 3rem 2rem;
  border-top: 1px solid var(--glass-bd);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: rgba(10, 20, 24, 0.5);
  backdrop-filter: blur(10px);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--pearl);
  letter-spacing: 0.04em;
}
.footer-logo em { color: var(--gold); font-style: italic; }
.footer-links {
  display: flex;
  gap: 1.8rem;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(168, 195, 195, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(168, 195, 195, 0.4);
}

/* ════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .why-grid       { grid-template-columns: repeat(2, 1fr); }
  .process-row    { grid-template-columns: repeat(2, 1fr); }
  .process-row::before { display: none; }
  .stats-inner    { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 1.5rem; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { padding-top: 1.5rem; }
  .about-grid, .teaching-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-float { right: 1rem; bottom: -20px; }
  .teaching-card { position: static; }
}

@media (max-width: 720px) {
  nav { padding: 0 1.5rem; height: 64px; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 20, 24, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--glass-bd);
    padding: 5rem 2rem 2rem;
    gap: 0;
    z-index: 550;
    transition: right 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  }
  .nav-links.open { right: 0; }
  .nav-links li { border-bottom: 1px solid var(--glass-bd); }
  .nav-links a {
    display: block;
    padding: 1.1rem 0;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
  }
  .nav-links a::after { display: none; }

  /* Mobile nav overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 540;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .nav-overlay.show { opacity: 1; visibility: visible; }

  /* Extra CTA in mobile menu */
  .nav-links::after {
    content: 'Hire me →';
    display: block;
    margin-top: 1.5rem;
    padding: 0.85rem 2rem;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--abyss);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    border-radius: 2px;
    font-weight: 500;
  }

  .container { padding: 0 1.5rem; }

  #hero { padding: 6rem 1rem 4rem; }
  .hero-eyebrow { font-size: 0.6rem; letter-spacing: 0.2em; }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 18px; }
  .hero-title { font-size: 3.4rem; }
  .hero-title .line2 { font-size: 0.7rem; letter-spacing: 0.24em; margin-top: 0.8rem; }
  .hero-subtitle { margin: 1rem 0 1.8rem; font-size: 0.85rem; }
  .scroll-hint { display: none; }

  #why, #about, #stats, #projects, #teaching, #process, #testimonials, #contact {
    padding: 4rem 0;
  }

  .why-grid       { grid-template-columns: 1fr; }
  .process-row    { grid-template-columns: 1fr; }

  .projects-track-wrap { padding: 0 1.2rem 2rem; }
  .proj-card, .testi-card { width: 300px; flex: 0 0 300px; }

  .contact-inner { padding: 3rem 1.5rem; }
  .contact-details { gap: 1rem; font-size: 0.66rem; }

  footer {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }

  .stats-inner { grid-template-columns: 1fr; }
  .stat-item   { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 1rem 0; }
  .stat-item:last-child { border-bottom: none; }

  .projects-header { flex-direction: column; align-items: flex-start; }
  .projects-count  { font-size: 3rem; }
}

/* ════════════════════════════════════════════
   FLOATING ZALO BUTTON
═══════════════════════════════════════════════ */
.floating-zalo {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  background: linear-gradient(135deg, #0068ff, #0052cc);
  color: #fff;
  text-decoration: none;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 104, 255, 0.45),
              0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.86rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.floating-zalo:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 104, 255, 0.6),
              0 6px 16px rgba(0, 0, 0, 0.35);
}
.fz-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.fz-icon svg { width: 100%; height: 100%; }
.fz-text {
  white-space: nowrap;
  position: relative;
  z-index: 2;
  letter-spacing: 0.02em;
}
.fz-pulse {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: rgba(0, 104, 255, 0.5);
  animation: fzPulse 2s ease-out infinite;
  z-index: 1;
}
.fz-pulse-2 { animation-delay: 1s; }
@keyframes fzPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
@media (max-width: 600px) {
  .floating-zalo { padding: 8px 14px 8px 8px; font-size: 0.78rem; }
  .fz-icon { width: 30px; height: 30px; }
}

/* ════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
#services {
  padding: 8rem 0;
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background: rgba(15, 29, 34, 0.55);
  border: 1px solid var(--glass-bd);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1),
              border-color 0.4s, background 0.4s;
}
.service-card::before {
  content:'';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,184,122,0.35), transparent);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 184, 122, 0.4);
  background: rgba(15, 29, 34, 0.85);
}
.svc-icon {
  font-size: 2rem;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(212, 184, 122, 0.1);
  border: 1px solid rgba(212, 184, 122, 0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.svc-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--pearl);
  font-weight: 500;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.svc-desc {
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(232, 239, 238, 0.65);
  margin-bottom: 1.4rem;
  flex: 1;
}
.svc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-bd);
}
.svc-price {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.svc-cta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168, 195, 195, 0.7);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.3s, gap 0.3s;
}
.svc-cta:hover { color: var(--gold); gap: 10px; }

@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  #services { padding: 5rem 0; }
}

/* ════════════════════════════════════════════════════════════
   HERO — GALAXY AURORA BACKGROUND
   Pure CSS · No assets · No SVG dependencies
═══════════════════════════════════════════════════════════════ */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0a1418;
}

/* ── Deep space base với gradient sâu ── */
.hero-bg-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, #0f1d22 0%, transparent 70%),
    radial-gradient(ellipse 90% 50% at 50% 0%, #0f1d22 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #0a1418 30%, #0a1418 100%);
}

/* ── NEBULA CLOUDS (giant gradient blobs trôi nhẹ) ── */
.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.nebula-1 {
  width: 800px; height: 700px;
  top: -150px; left: -100px;
  background: radial-gradient(circle,
    rgba(91, 138, 138, 0.45) 0%,
    rgba(42, 74, 82, 0.30) 40%,
    transparent 75%);
  opacity: 0.6;
  animation: nebulaFloat1 30s ease-in-out infinite;
}
.nebula-2 {
  width: 700px; height: 800px;
  top: 10%; right: -150px;
  background: radial-gradient(circle,
    rgba(212, 184, 122, 0.25) 0%,
    rgba(168, 195, 195, 0.18) 40%,
    transparent 75%);
  opacity: 0.55;
  animation: nebulaFloat2 35s ease-in-out infinite;
}
.nebula-3 {
  width: 900px; height: 600px;
  bottom: -100px; left: 15%;
  background: radial-gradient(ellipse,
    rgba(42, 74, 82, 0.45) 0%,
    rgba(91, 138, 138, 0.22) 45%,
    transparent 75%);
  opacity: 0.5;
  animation: nebulaFloat3 40s ease-in-out infinite;
}
.nebula-4 {
  width: 600px; height: 600px;
  top: 35%; left: 38%;
  background: radial-gradient(circle,
    rgba(212, 184, 122, 0.20) 0%,
    rgba(201, 169, 110, 0.12) 50%,
    transparent 75%);
  opacity: 0.7;
  animation: nebulaFloat4 25s ease-in-out infinite;
}

@keyframes nebulaFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%      { transform: translate(80px, 60px) scale(1.15) rotate(2deg); }
  66%      { transform: translate(40px, 100px) scale(0.95) rotate(-2deg); }
}
@keyframes nebulaFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%      { transform: translate(-120px, 70px) scale(1.18) rotate(-3deg); }
}
@keyframes nebulaFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(60px, -80px) scale(1.1); }
  70%      { transform: translate(-40px, -50px) scale(1.05); }
}
@keyframes nebulaFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50%      { transform: translate(50px, -40px) scale(1.2); opacity: 0.8; }
}

/* ── AURORA WAVES (ribbons of color flowing) ── */
.aurora-wave {
  position: absolute;
  width: 200%;
  height: 250px;
  left: -50%;
  filter: blur(60px);
  opacity: 0.45;
  mix-blend-mode: screen;
}
.aurora-wave-1 {
  top: 25%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(91, 138, 138, 0.30) 20%,
    rgba(42, 74, 82, 0.40) 40%,
    rgba(168, 195, 195, 0.25) 60%,
    rgba(26, 44, 51, 0.35) 80%,
    transparent 100%);
  animation: auroraSlide1 20s linear infinite;
  transform-origin: center;
}
.aurora-wave-2 {
  top: 55%;
  height: 180px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 184, 122, 0.25) 25%,
    rgba(91, 138, 138, 0.30) 50%,
    rgba(42, 74, 82, 0.28) 75%,
    transparent 100%);
  animation: auroraSlide2 28s linear infinite;
}

@keyframes auroraSlide1 {
  0%   { transform: translateX(-25%) skewY(-2deg); }
  100% { transform: translateX(25%)  skewY(-2deg); }
}
@keyframes auroraSlide2 {
  0%   { transform: translateX(25%)  skewY(1.5deg); }
  100% { transform: translateX(-25%) skewY(1.5deg); }
}

/* ── GALAXY CORE (center bright glow with soft pulse) ── */
.galaxy-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1100px;
  height: 700px;
  background:
    radial-gradient(ellipse,
      rgba(212, 184, 122, 0.10) 0%,
      rgba(91, 138, 138, 0.08) 30%,
      transparent 65%);
  filter: blur(50px);
  animation: galaxyPulse 8s ease-in-out infinite;
}
@keyframes galaxyPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}

/* ── STAR FIELD (3 layers — far, mid, near with parallax) ── */
.starfield {
  position: absolute;
  inset: 0;
}
.starfield span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: #fff;
  animation: twinkle 3s ease-in-out infinite;
}

/* FAR layer — small dim stars (25 stars, slow drift) */
.starfield-far span {
  width: 1px; height: 1px;
  opacity: 0.4;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}
.starfield-far span:nth-child(1)  { top:  4%; left:  8%; animation-delay: 0.0s; }
.starfield-far span:nth-child(2)  { top:  9%; left: 22%; animation-delay: 0.4s; }
.starfield-far span:nth-child(3)  { top:  3%; left: 38%; animation-delay: 0.8s; }
.starfield-far span:nth-child(4)  { top: 12%; left: 52%; animation-delay: 1.2s; }
.starfield-far span:nth-child(5)  { top:  6%; left: 68%; animation-delay: 1.6s; }
.starfield-far span:nth-child(6)  { top: 16%; left: 82%; animation-delay: 2.0s; }
.starfield-far span:nth-child(7)  { top:  8%; left: 95%; animation-delay: 2.4s; }
.starfield-far span:nth-child(8)  { top: 24%; left:  4%; animation-delay: 0.2s; }
.starfield-far span:nth-child(9)  { top: 30%; left: 18%; animation-delay: 0.6s; }
.starfield-far span:nth-child(10) { top: 22%; left: 32%; animation-delay: 1.0s; }
.starfield-far span:nth-child(11) { top: 36%; left: 48%; animation-delay: 1.4s; }
.starfield-far span:nth-child(12) { top: 28%; left: 62%; animation-delay: 1.8s; }
.starfield-far span:nth-child(13) { top: 40%; left: 78%; animation-delay: 2.2s; }
.starfield-far span:nth-child(14) { top: 32%; left: 92%; animation-delay: 2.6s; }
.starfield-far span:nth-child(15) { top: 50%; left: 12%; animation-delay: 0.5s; }
.starfield-far span:nth-child(16) { top: 56%; left: 28%; animation-delay: 0.9s; }
.starfield-far span:nth-child(17) { top: 48%; left: 56%; animation-delay: 1.3s; }
.starfield-far span:nth-child(18) { top: 60%; left: 72%; animation-delay: 1.7s; }
.starfield-far span:nth-child(19) { top: 54%; left: 88%; animation-delay: 2.1s; }
.starfield-far span:nth-child(20) { top: 72%; left:  6%; animation-delay: 0.3s; }
.starfield-far span:nth-child(21) { top: 78%; left: 24%; animation-delay: 0.7s; }
.starfield-far span:nth-child(22) { top: 70%; left: 44%; animation-delay: 1.1s; }
.starfield-far span:nth-child(23) { top: 84%; left: 60%; animation-delay: 1.5s; }
.starfield-far span:nth-child(24) { top: 76%; left: 80%; animation-delay: 1.9s; }
.starfield-far span:nth-child(25) { top: 88%; left: 96%; animation-delay: 2.3s; }

/* MID layer — medium stars (15 stars, medium drift) */
.starfield-mid span {
  width: 2px; height: 2px;
  opacity: 0.7;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.7);
  animation-duration: 4s;
}
.starfield-mid span:nth-child(1)  { top:  7%; left: 15%; animation-delay: 0.2s; }
.starfield-mid span:nth-child(2)  { top: 14%; left: 35%; animation-delay: 0.7s; }
.starfield-mid span:nth-child(3)  { top: 11%; left: 60%; animation-delay: 1.2s; }
.starfield-mid span:nth-child(4)  { top: 19%; left: 78%; animation-delay: 1.7s; }
.starfield-mid span:nth-child(5)  { top: 25%; left: 25%; animation-delay: 2.2s; }
.starfield-mid span:nth-child(6)  { top: 35%; left: 55%; animation-delay: 0.4s; }
.starfield-mid span:nth-child(7)  { top: 33%; left: 84%; animation-delay: 0.9s; }
.starfield-mid span:nth-child(8)  { top: 45%; left: 18%; animation-delay: 1.4s; }
.starfield-mid span:nth-child(9)  { top: 58%; left: 42%; animation-delay: 1.9s; }
.starfield-mid span:nth-child(10) { top: 62%; left: 70%; animation-delay: 2.4s; }
.starfield-mid span:nth-child(11) { top: 68%; left: 30%; animation-delay: 0.6s; }
.starfield-mid span:nth-child(12) { top: 75%; left: 52%; animation-delay: 1.1s; }
.starfield-mid span:nth-child(13) { top: 82%; left: 14%; animation-delay: 1.6s; }
.starfield-mid span:nth-child(14) { top: 86%; left: 68%; animation-delay: 2.1s; }
.starfield-mid span:nth-child(15) { top: 90%; left: 88%; animation-delay: 2.6s; }

/* NEAR layer — bright sparkle stars (10 stars with glow) */
.starfield-near span {
  width: 3px; height: 3px;
  opacity: 0.9;
  background: #fffacd;
  box-shadow:
    0 0 6px rgba(255, 250, 205, 0.9),
    0 0 12px rgba(255, 250, 205, 0.5);
  animation-duration: 2.5s;
}
.starfield-near span:nth-child(1)  { top: 12%; left: 42%; animation-delay: 0.0s; }
.starfield-near span:nth-child(2)  { top:  9%; left: 72%; animation-delay: 0.5s; }
.starfield-near span:nth-child(3)  { top: 28%; left: 14%; animation-delay: 1.0s; }
.starfield-near span:nth-child(4)  { top: 38%; left: 88%; animation-delay: 1.5s; }
.starfield-near span:nth-child(5)  { top: 52%; left: 38%; animation-delay: 2.0s; }
.starfield-near span:nth-child(6)  { top: 66%; left: 76%; animation-delay: 0.3s; }
.starfield-near span:nth-child(7)  { top: 78%; left: 22%; animation-delay: 0.8s; }
.starfield-near span:nth-child(8)  { top: 82%; left: 48%; animation-delay: 1.3s; }
.starfield-near span:nth-child(9)  { top: 24%; left: 56%; animation-delay: 1.8s; }
.starfield-near span:nth-child(10) { top: 56%; left: 92%; animation-delay: 2.3s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.6); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

/* ── SHOOTING STARS (rare, magical effect) ── */
.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: linear-gradient(45deg, #fff, transparent);
  border-radius: 50%;
  box-shadow: 0 0 8px #fff;
  opacity: 0;
}
.shooting-star::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.9),
    rgba(212, 184, 122, 0.5),
    transparent);
  transform: translateX(-80px) translateY(-1px);
}
.shooting-star-1 {
  top: 15%; left: 60%;
  animation: shootStar 8s ease-in 2s infinite;
}
.shooting-star-2 {
  top: 35%; left: 80%;
  animation: shootStar 11s ease-in 5s infinite;
}
.shooting-star-3 {
  top: 8%; left: 25%;
  animation: shootStar 14s ease-in 9s infinite;
}
@keyframes shootStar {
  0%        { opacity: 0; transform: translate(0, 0) rotate(-25deg); }
  3%        { opacity: 1; }
  10%       { opacity: 1; transform: translate(-300px, 140px) rotate(-25deg); }
  12%, 100% { opacity: 0; transform: translate(-300px, 140px) rotate(-25deg); }
}

/* ── DOT GRID OVERLAY (techy texture, very subtle) ── */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(168, 195, 195, 0.06) 1px, transparent 0);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 80%);
  opacity: 0.35;
}

/* ── REDUCE MOTION SUPPORT ── */
@media (prefers-reduced-motion: reduce) {
  .nebula, .aurora-wave, .galaxy-core,
  .starfield span, .shooting-star {
    animation: none !important;
  }
}

/* ════════════════════════════════════════════
   MUSIC PLAYER PILL
═══════════════════════════════════════════════ */
.music-player-pill {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  background: rgba(10, 20, 24, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-bd);
  border-radius: 100px;
  color: var(--pearl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  max-width: 52px; /* Collapsed state */
}
.music-player-pill:hover,
.music-player-pill.playing {
  max-width: 280px; /* Expanded state */
  background: rgba(20, 30, 35, 0.95);
  border-color: rgba(255,255,255,0.15);
}
.music-player-pill.playing {
  border-color: rgba(212, 184, 122, 0.4);
  box-shadow: 0 8px 32px rgba(212, 184, 122, 0.15);
}
.mp-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}
.mp-icon {
  width: 20px; height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}
.mp-icon svg { width: 100%; height: 100%; }
.music-player-pill.playing .mp-icon {
  animation: music-beat 2s infinite ease-in-out alternate;
}
.mp-track-marquee {
  width: 90px;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.8);
  position: relative;
  mask-image: linear-gradient(90deg, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
}
.mp-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.music-player-pill:hover .mp-controls,
.music-player-pill.playing .mp-controls {
  opacity: 1;
  pointer-events: auto;
}
.mp-btn {
  background: none; border: none;
  color: var(--pearl);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.mp-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--gold);
}
.mp-btn svg { width: 16px; height: 16px; }

@keyframes music-beat {
  0% { transform: scale(0.9); }
  100% { transform: scale(1.1); }
}

@media (max-width: 720px) {
  .music-player-pill {
    bottom: 20px;
    left: 20px;
    height: 44px;
    padding: 0 12px;
    max-width: 44px;
  }
  .music-player-pill:hover,
  .music-player-pill.playing {
    max-width: 250px;
  }
  .mp-track-marquee { width: 80px; }
}
