/* ================================================================
   TheLegatoFox — Signal & After Hours
   Emerald + white · dark/light themes
   ================================================================ */

/* ---------- theme tokens ---------- */
:root {
  /* Brand accent (bright for dark theme) */
  --emerald:       #34d399;
  --emerald-soft:  #10b981;
  --emerald-deep:  #059669;
  --emerald-glow:  rgba(52, 211, 153, 0.28);
  --emerald-wash:  rgba(52, 211, 153, 0.08);

  /* Surfaces — dark theme defaults */
  --bg:    #05070a;
  --bg-2:  #0a0e13;
  --bg-3:  #0e141b;
  --ink:       #eaeef3;
  --ink-soft:  #a8b2bd;
  --ink-dim:   #6b7785;
  --line:      rgba(255, 255, 255, 0.06);
  --line-2:    rgba(255, 255, 255, 0.10);
  --glass:     rgba(255, 255, 255, 0.035);
  --glass-2:   rgba(255, 255, 255, 0.01);
  --shadow-strong: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  --shadow-lift:   0 30px 50px -20px rgba(0, 0, 0, 0.5);

  /* Atmosphere */
  --grain-opacity: 0.35;
  --grain-blend:   overlay;
  --wash-1: rgba(16, 185, 129, 0.08);
  --wash-2: rgba(52, 211, 153, 0.06);

  /* Type */
  --f-display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --f-body:    'Manrope', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Rhythm */
  --maxw: 1240px;
  --pad: clamp(1.25rem, 3vw, 2.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- light theme ---------- */
[data-theme="light"] {
  /* Deeper emerald reads better on light surfaces */
  --emerald:       #059669;
  --emerald-soft:  #10b981;
  --emerald-deep:  #047857;
  --emerald-glow:  rgba(5, 150, 105, 0.22);
  --emerald-wash:  rgba(5, 150, 105, 0.07);

  --bg:    #f5f6f4;
  --bg-2:  #ffffff;
  --bg-3:  #ebece8;
  --ink:       #0a0f14;
  --ink-soft:  #3b434e;
  --ink-dim:   #6b7583;
  --line:      rgba(10, 15, 20, 0.08);
  --line-2:    rgba(10, 15, 20, 0.14);
  --glass:     rgba(255, 255, 255, 0.65);
  --glass-2:   rgba(255, 255, 255, 0.35);
  --shadow-strong: 0 24px 50px -24px rgba(10, 15, 20, 0.18);
  --shadow-lift:   0 20px 40px -20px rgba(10, 15, 20, 0.14);

  --grain-opacity: 0.12;
  --grain-blend:   multiply;
  --wash-1: rgba(5, 150, 105, 0.05);
  --wash-2: rgba(52, 211, 153, 0.04);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.mono { font-family: var(--f-mono); letter-spacing: 0.05em; }
.accent { color: var(--emerald); }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px;
  transition: opacity .4s var(--ease);
}

/* ---------- ambient background ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(60% 40% at 20% 10%, var(--wash-1), transparent 60%),
    radial-gradient(50% 35% at 80% 30%, var(--wash-2), transparent 60%),
    radial-gradient(70% 50% at 50% 100%, var(--wash-1), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  transition: opacity .4s var(--ease);
}

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: padding .4s var(--ease), background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: .7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav__mark {
  color: var(--emerald);
  font-size: 1.1rem;
  text-shadow: 0 0 12px var(--emerald-glow);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.nav__links {
  display: flex;
  gap: 2rem;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav__links a {
  position: relative;
  color: var(--ink-soft);
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink-soft);
  border: 1px solid var(--line-2);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
  position: relative;
}
.theme-toggle:hover {
  color: var(--emerald);
  border-color: var(--emerald);
  background: var(--emerald-wash);
  transform: translateY(-1px);
}
.theme-toggle .icon { position: absolute; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.theme-toggle .icon--sun  { opacity: 0; transform: scale(.6) rotate(-40deg); }
.theme-toggle .icon--moon { opacity: 1; transform: scale(1)  rotate(0); }
[data-theme="light"] .theme-toggle .icon--sun  { opacity: 1; transform: scale(1)  rotate(0); }
[data-theme="light"] .theme-toggle .icon--moon { opacity: 0; transform: scale(.6) rotate(40deg); }

/* Mobile hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 1rem;
  cursor: pointer;
  /* Larger touch target for mobile */
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.nav__toggle span {
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* ---------- ambient canvas (fixed, full-page backdrop) ---------- */
.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity .4s var(--ease);
  /* Performance hint for mobile */
  will-change: auto;
}
[data-theme="light"] .ambient-canvas {
  /* Softer in light mode so it doesn't fight the bright bg */
  opacity: .5;
}

/* Content sits above the ambient canvas */
main,
.nav,
.footer { position: relative; z-index: 1; }
.nav { z-index: 100; }
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, var(--bg) 90%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding-top: 8rem;
  padding-bottom: 6rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 2rem;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.15em;
}

/* "The" and "Legato" — subtle vertical gradient from ink to ink-soft */
.hero__word {
  display: inline-block;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* "Fox" — emerald accent with soft glow */
.hero__word--accent {
  background: linear-gradient(180deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero__word--accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
  opacity: .7;
  filter: blur(1px);
}

.hero__tagline {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.hero__tagline .amp {
  color: var(--emerald);
  font-style: italic;
  font-family: 'Manrope', serif;
  font-weight: 300;
  padding: 0 .1em;
}

.hero__identity {
  font-size: clamp(0.92rem, 1.6vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--emerald);
  margin: 0 0 1.5rem;
  opacity: 0.95;
}

.hero__sub {
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--ink-dim);
  margin: 0 0 2.5rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.hero__meta em {
  font-style: normal;
  color: var(--emerald);
  font-weight: 500;
}
.meta__sep { color: var(--line-2); }

.hero__quick-access {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.quick-link:hover {
  color: var(--emerald);
  transform: translateX(2px);
}
.quick-link__mark {
  font-size: .7rem;
  color: var(--emerald);
  opacity: 0.6;
  transition: opacity .3s var(--ease);
}
.quick-link:hover .quick-link__mark {
  opacity: 1;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--ink-dim), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--emerald), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ================================================================
   LATEST DROP / FEATURED RELEASE
   ================================================================ */
.drop-feature {
  position: relative;
  padding: 0 var(--pad);
  margin: 4rem auto;
  max-width: var(--maxw);
}
.drop-feature__inner {
  position: relative;
  padding: 3rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 1rem;
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.drop-feature__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
  opacity: 0.3;
}
.drop-feature__label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 1.5rem;
}
.drop-feature__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}
.drop-feature__content {
  margin-bottom: 2rem;
}
.drop-feature__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.drop-feature__type {
  display: inline-block;
  font-size: .7em;
  font-weight: 500;
  color: var(--emerald);
  background: var(--emerald-wash);
  padding: .2em .6em;
  border-radius: .3em;
  vertical-align: middle;
  margin-left: .4em;
  letter-spacing: 0.08em;
}
.drop-feature__desc {
  font-size: 1.1rem;
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 40rem;
  margin-bottom: 2rem;
}
.drop-feature__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.drop-feature__meta {
  display: flex;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  text-transform: uppercase;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.drop-feature__sep {
  color: var(--line-2);
}

/* ================================================================
   SECTION SHELL
   ================================================================ */
.section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}

.section__head {
  max-width: 48rem;
  margin-bottom: 4rem;
}
.section__subhead {
  max-width: 48rem;
  margin: 5rem 0 2.5rem;
}

.section__label {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: 0.22em;
  color: var(--emerald);
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}
.section__title,
.section__subtitle {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.section__title    { font-size: clamp(2rem, 5vw, 3.8rem); }
.section__subtitle { font-size: clamp(1.4rem, 3vw, 2rem); }

.section__lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0;
}
.section__lede em { color: var(--ink); font-style: italic; }

/* After Hours — same palette, slightly dimmer atmosphere for "off signal" feel */
.section--after-hours {
  background:
    radial-gradient(80% 60% at 50% 0%, var(--emerald-wash), transparent 60%);
}
.section--after-hours .section__title {
  color: var(--ink-soft);
}
.section--after-hours .section__lede {
  color: var(--ink-dim);
}

/* Centered CTA beneath a section */
.section__cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 1.6rem;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform .4s var(--ease); }

.btn--primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-soft) 100%);
  color: #052e22;
  box-shadow:
    0 0 0 1px rgba(52,211,153,0.3),
    0 10px 32px -10px var(--emerald-glow),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(52,211,153,0.5),
    0 16px 40px -10px var(--emerald-glow),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn--ghost {
  background: var(--glass);
  border: 1px solid var(--line-2);
  color: var(--ink-soft);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  color: var(--emerald);
  border-color: var(--emerald);
  background: var(--emerald-wash);
  transform: translateY(-2px);
}

/* ================================================================
   MEDIA STACK (Spotify + YouTube embed wrapper)
   ================================================================ */
.media-stack { margin-bottom: 4rem; }
.media-stack__glass {
  padding: 1.25rem;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-strong), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.media-stack__glass::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald-glow), transparent);
}
.media-stack__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .5rem .5rem 1rem;
}
.media-stack__eyebrow {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin: 0;
}
.media-stack__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1rem;
  margin: 0;
  color: var(--ink);
}
.media-stack__embed {
  border-radius: 12px;
  overflow: hidden;
  background: #05070a; /* always dark for embed shell — content inside is always dark */
}
.media-stack__embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
}

/* Spotify Iframe API container — API mounts its own iframe inside this div */
.spotify-embed {
  width: 100%;
  height: 380px;
  min-height: 380px;
  background: #05070a; /* prevents flash while API mounts */
}
.spotify-embed iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
}

/* Video embeds use 16:9 instead of fixed height */
.media-stack__embed--video {
  aspect-ratio: 16 / 9;
  position: relative;
}
.media-stack__embed--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ================================================================
   GRIDS
   ================================================================ */
.grid { display: grid; gap: 1.25rem; }
.grid--videos {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ================================================================
   VIDEO FACADE (performance-aware YouTube embed)
   ================================================================ */
.video {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease), background .3s var(--ease);
}
.video:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
  box-shadow: var(--shadow-lift), 0 0 40px -10px var(--emerald-glow);
}

.video__thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  background:
    radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--emerald) 22%, transparent), transparent 55%),
    radial-gradient(circle at 70% 60%, color-mix(in srgb, var(--emerald) 10%, transparent), transparent 55%),
    linear-gradient(135deg, var(--bg-3), var(--bg));
  overflow: hidden;
}
.video__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 49%, color-mix(in srgb, var(--emerald) 18%, transparent) 50%, transparent 51%),
    linear-gradient(0deg,  transparent 49%, color-mix(in srgb, var(--emerald) 10%, transparent) 50%, transparent 51%);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  transition: transform .4s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.video__play::before {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border: 10px solid transparent;
  border-left-color: var(--emerald);
  transition: border-left-color .3s var(--ease);
}
.video:hover .video__play {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: var(--emerald);
  background: var(--emerald-wash);
}

.video.is-playing iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 4;
}
.video.is-playing .video__play,
.video.is-playing .video__thumb { display: none; }

/* Placeholder state — shown when data-yt is not yet filled in */
.video.is-placeholder { cursor: default; pointer-events: none; opacity: .85; }
.video.is-placeholder .video__play {
  background: color-mix(in srgb, var(--bg) 35%, transparent);
  border-style: dashed;
  border-color: var(--line-2);
}
.video.is-placeholder .video__play::before {
  border: 0;
  content: "soon";
  font-family: var(--f-mono);
  font-size: .55rem;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
  position: static;
  transform: none;
}

.video__meta {
  padding: 1.1rem 1.4rem 1.3rem;
}
.video__badge {
  font-size: .64rem;
  letter-spacing: 0.2em;
  color: var(--emerald);
  margin: 0 0 .4rem;
  text-transform: uppercase;
}
.video__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 .35rem;
  color: var(--ink);
}
.video__desc {
  color: var(--ink-soft);
  font-size: .88rem;
  margin: 0;
}

/* ================================================================
   DIVIDER
   ================================================================ */
.divider {
  max-width: var(--maxw);
  margin: 2rem auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.divider__label {
  font-size: .7rem;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* ================================================================
   INSTAGRAM GRID
   ================================================================ */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .6rem;
  margin-bottom: 2rem;
}
.ig {
  position: relative;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--emerald-wash), transparent),
    var(--bg-2);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
  cursor: pointer;
  display: block;
}
.ig::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, color-mix(in srgb, var(--ink) 4%, transparent) 25%, transparent 25%),
    linear-gradient(-45deg, color-mix(in srgb, var(--ink) 4%, transparent) 25%, transparent 25%);
  background-size: 16px 16px;
  opacity: .6;
}
.ig::after {
  content: "◌";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  color: var(--ink-dim);
  font-size: 1.4rem;
  opacity: .4;
  transition: opacity .3s var(--ease), color .3s var(--ease), transform .4s var(--ease);
}
.ig:hover {
  transform: scale(1.02);
  border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
  box-shadow: 0 20px 40px -20px var(--emerald-glow);
}
.ig:hover::after {
  color: var(--emerald);
  opacity: .9;
  transform: translate(-50%,-50%) rotate(180deg);
}

/* ================================================================
   ABOUT
   ================================================================ */
.section--about {
  text-align: center;
  max-width: var(--maxw);
}
.about__inner {
  max-width: 44rem;
  margin: 0 auto;
}
.about__body {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  margin: 1rem 0 2rem;
}
.about__accent {
  color: var(--emerald);
  font-style: italic;
}
.about__meta {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin: 0;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: 4rem var(--pad) 3rem;
  text-align: center;
  position: relative;
}
.footer__line {
  max-width: var(--maxw);
  margin: 0 auto 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.footer__about {
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  font-size: .95rem;
  color: var(--ink-dim);
  line-height: 1.6;
}

/* Hero email capture */
.hero__signal-join {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  max-width: 32rem;
}
.hero__signal-join-label {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 1rem;
}
.hero__signal-join-form {
  display: flex;
  gap: .5rem;
  margin-bottom: .8rem;
}
.hero__signal-join-input {
  flex: 1;
  padding: .85rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  font-size: .92rem;
  font-family: var(--f-body);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  backdrop-filter: blur(10px);
}
.hero__signal-join-input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-wash);
}
.hero__signal-join-input::placeholder {
  color: var(--ink-dim);
  opacity: 0.6;
}
.hero__signal-join-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  background: var(--emerald);
  color: #052e22;
  font-size: .88rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.hero__signal-join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px var(--emerald-glow);
}
.hero__signal-join-note {
  font-size: .8rem;
  color: var(--ink-dim);
  opacity: 0.7;
}

.footer__signal {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.footer__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.social {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.social:hover {
  color: var(--emerald);
  border-color: var(--emerald);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px var(--emerald-glow);
  background: var(--emerald-wash);
}

/* Platform-name tooltip on hover */
.social[data-label]::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: .35rem .6rem;
  border-radius: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 2;
}
.social[data-label]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border: 4px solid transparent;
  border-top-color: var(--line);
  opacity: 0;
  transition: opacity .25s var(--ease);
  z-index: 2;
}
.social:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.social:hover::before { opacity: 1; }
.footer__sig {
  font-size: .7rem;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin: 0;
}

/* ================================================================
   REVEAL ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .9s var(--ease-out),
    transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ================================================================
   STILLS TEASER (homepage Presence replacement)
   ================================================================ */
.stills-teaser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .6rem;
  margin-bottom: 2rem;
}
.still {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--emerald-wash), transparent),
    var(--bg-2);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
  cursor: pointer;
  display: block;
}
.still::before {
  /* placeholder skyline silhouette */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, transparent 65%, color-mix(in srgb, var(--ink) 10%, transparent) 68%, transparent 70%),
    linear-gradient(180deg, transparent 75%, color-mix(in srgb, var(--ink) 15%, transparent) 78%, transparent 85%);
  opacity: .7;
}
.still::after {
  content: "◌";
  position: absolute;
  bottom: 10%;
  right: 10%;
  color: var(--ink-dim);
  font-size: 1rem;
  opacity: .4;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.still:hover {
  transform: scale(1.02);
  border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
  box-shadow: 0 20px 40px -20px var(--emerald-glow);
}
.still:hover::after {
  color: var(--emerald);
  opacity: .9;
}
/* When a real <img> is dropped in, let it fill the tile */
.still img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Hide placeholder silhouette + dot when a real photo is present */
.still:has(img)::before,
.still:has(img)::after {
  display: none;
}
.still:has(img) {
  background: var(--bg-2);
}

/* ================================================================
   GALLERY PAGE — HERO
   ================================================================ */
.gallery-hero {
  padding: 8rem var(--pad) 4rem;
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.gallery-hero__content {
  max-width: 46rem;
}
.gallery-hero__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 1.5rem 0 1.5rem;
  color: var(--ink);
}
.gallery-hero__lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 2.5rem;
}
.gallery-hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ================================================================
   GALLERY — ALBUM FILTER
   ================================================================ */
.section--gallery {
  padding-top: 3rem;
}
.gallery-header {
  max-width: var(--maxw);
  margin: 0 auto 2rem;
}
.gallery__license-note {
  font-size: .88rem;
  color: var(--ink-dim);
  margin-top: 1rem;
  font-style: italic;
}
.album-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.album-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-soft);
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}
.album-chip:hover {
  color: var(--emerald);
  border-color: color-mix(in srgb, var(--emerald) 60%, transparent);
  transform: translateY(-1px);
}
.album-chip.is-active {
  background: var(--emerald);
  color: #052e22;
  border-color: var(--emerald);
  box-shadow: 0 8px 24px -8px var(--emerald-glow);
}
.album-chip.is-active:hover { color: #052e22; }
.album-chip__count {
  font-size: .65rem;
  padding: .15rem .4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}
.album-chip.is-active .album-chip__count {
  background: rgba(5, 46, 34, 0.25);
  color: #052e22;
}

/* ================================================================
   PHOTO GRID (CSS masonry via columns)
   ================================================================ */
.photo-grid {
  column-count: 3;
  column-gap: 1rem;
}
@media (max-width: 960px) { .photo-grid { column-count: 2; } }
@media (max-width: 560px) { .photo-grid { column-count: 1; } }

.photo {
  break-inside: avoid;
  margin: 0 0 1rem;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    opacity .4s var(--ease),
    transform .5s var(--ease),
    border-color .4s var(--ease),
    box-shadow .5s var(--ease);
  -webkit-user-select: none;
  user-select: none;
}
.photo:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
  box-shadow: var(--shadow-lift), 0 0 40px -10px var(--emerald-glow);
}

/* When filtered out */
.photo.is-hidden {
  display: none;
}

/* Photo media — placeholder treatments before real images drop in */
.photo__media {
  width: 100%;
  background:
    radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--emerald) 22%, transparent), transparent 55%),
    radial-gradient(circle at 70% 60%, color-mix(in srgb, var(--emerald) 10%, transparent), transparent 55%),
    linear-gradient(135deg, var(--bg-3), var(--bg));
  position: relative;
  overflow: hidden;
}
.photo__media::before {
  /* skyline silhouette placeholder */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, transparent 65%, color-mix(in srgb, var(--ink) 12%, transparent) 68%, transparent 100%);
}
.photo__media--tall    { aspect-ratio: 3/4; }
.photo__media--wide    { aspect-ratio: 4/3; }
.photo__media--square  { aspect-ratio: 1/1; }

/* When the .photo__media class is on an <img> itself, let the image's
   intrinsic ratio win (our images are already 3:4 or 4:3 natively).
   This prevents stretching on any rounding mismatch. */
img.photo__media {
  display: block;
  object-fit: cover;
}

/* Real image overrides placeholder */
.photo img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
}

/* Overlay — slides up on hover with badge + caption */
.photo__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1rem .9rem;
  background: linear-gradient(180deg, transparent, rgba(5,7,10,0.85) 60%);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transform: translateY(50%);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.photo:hover .photo__overlay {
  transform: translateY(0);
  opacity: 1;
}
[data-theme="light"] .photo__overlay {
  background: linear-gradient(180deg, transparent, rgba(10,15,20,0.78) 60%);
}
.photo__badge {
  align-self: flex-start;
  font-size: .6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  backdrop-filter: blur(6px);
}
.photo__caption {
  font-family: var(--f-display);
  font-size: .95rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

/* Empty state */
.gallery-empty {
  padding: 4rem 0;
  text-align: center;
  color: var(--ink-dim);
}
.gallery-empty[hidden] { display: none; }

/* ================================================================
   LICENSING SECTION
   ================================================================ */
.section--license {
  max-width: var(--maxw);
}
.license-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 820px) {
  .license-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

.license-copy {
  padding-top: .5rem;
}
.license-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 2.5rem;
}

.license-points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.license-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.license-point__mark {
  color: var(--emerald);
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}
.license-point__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0 0 .2rem;
  color: var(--ink);
}
.license-point__desc {
  color: var(--ink-soft);
  font-size: .95rem;
  margin: 0;
}

/* Contact card */
.license-card {
  padding: 2rem;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
  position: sticky;
  top: 6rem;
}
.license-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald-glow), transparent);
}
.license-card__eyebrow {
  font-size: .68rem;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin: 0 0 .5rem;
}
.license-card__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.8rem;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.license-card__body {
  color: var(--ink-soft);
  font-size: .95rem;
  margin: 0 0 1.5rem;
}
.license-card__cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 1rem;
}
.license-card__footnote {
  font-size: .65rem;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin: 0;
  text-align: center;
}

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox[hidden] {
  display: none;
}
[data-theme="light"] .lightbox {
  background: rgba(10, 15, 20, 0.88);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  z-index: 3;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--emerald-wash);
  border-color: var(--emerald);
  color: var(--emerald);
  transform: scale(1.05);
}
.lightbox__close {
  top: 1.5rem;
  right: 1.5rem;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }
.lightbox__nav:hover {
  transform: translateY(-50%) scale(1.05);
}

.lightbox__stage {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin: 0;
}
.lightbox__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__img {
  display: block;
  max-width: 90vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox__img[src=""] { display: none; }

.lightbox__caption {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: .9rem;
}
.lightbox__badge {
  font-size: .6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.lightbox__title {
  font-family: var(--f-display);
  font-weight: 500;
}
.lightbox__counter {
  font-size: .72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* Lock body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}

/* Current nav item indicator */
.nav__links a.is-current {
  color: var(--ink);
}
.nav__links a.is-current::after {
  transform: scaleX(1);
}

/* Gallery-page body stylistic — slightly different atmosphere */
body.is-gallery::before {
  background:
    radial-gradient(60% 40% at 20% 10%, var(--wash-1), transparent 60%),
    radial-gradient(70% 50% at 80% 100%, var(--wash-2), transparent 70%);
}
@media (max-width: 820px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 72%;
    max-width: 320px;
    padding: 6rem 2rem;
    flex-direction: column;
    gap: 1.75rem;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .5s var(--ease);
    font-size: 1.1rem;
  }
  .nav.is-open .nav__links { transform: translateX(0); }
  .nav__toggle { display: flex; }
  .section__head, .section__subhead { margin-bottom: 2.5rem; }
  .media-stack__embed iframe { height: 320px; }
  .stills-teaser { grid-template-columns: repeat(3, 1fr); }

  /* Drop feature */
  .drop-feature__inner {
    padding: 2rem 1.5rem;
  }
  .drop-feature__title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }
  .drop-feature__actions {
    flex-direction: column;
  }
  .drop-feature__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Gallery page */
  .gallery-hero { padding: 6rem var(--pad) 3rem; }
  .lightbox { padding: 1rem; }
  .lightbox__close { top: 1rem; right: 1rem; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
  .lightbox__nav,
  .lightbox__close {
    width: 40px; height: 40px;
  }
  .license-card { position: static; }
}

@media (max-width: 520px) {
  .stills-teaser { grid-template-columns: repeat(2, 1fr); }
  .media-stack__embed iframe { height: 280px; }
  .album-filter { gap: .4rem; }
  .album-chip {
    padding: .45rem .8rem;
    font-size: .68rem;
  }
  .hero__quick-access {
    gap: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__about {
    font-size: .88rem;
  }
  .hero__signal-join-form {
    flex-direction: column;
  }
  .hero__signal-join-btn {
    width: 100%;
    justify-content: center;
  }
  .drop-feature__inner {
    padding: 1.5rem 1.2rem;
  }
  .drop-feature__meta {
    flex-direction: column;
    gap: .5rem;
  }
  .drop-feature__sep {
    display: none;
  }
}

/* Very small screens (iPhone SE, small Androids) */
@media (max-width: 380px) {
  :root {
    --pad: 1.25rem;
  }
  
  .hero__title {
    font-size: clamp(2.2rem, 12vw, 3rem);
    letter-spacing: -0.03em;
  }
  
  .section__title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  
  .stills-teaser {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
  
  .album-filter {
    gap: .3rem;
  }
  
  .album-chip {
    padding: .4rem .7rem;
    font-size: .64rem;
  }
  
  .btn {
    padding: .85rem 1.3rem;
    font-size: .88rem;
  }
  
  .nav__brand {
    font-size: .9rem;
  }
  
  .footer__socials {
    gap: 1.2rem;
  }
  
  .lightbox__img {
    max-width: 95vw;
    max-height: 70vh;
  }
  
  .media-stack__embed iframe {
    height: 220px;
  }
}
