/* ═══════════════════════════════════════════════════
   Starlifter Music Academy — style.css
   ═══════════════════════════════════════════════════ */

/* ── 0. Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Light theme — default */
:root {
  --bg:        #f5f1ec;
  --surface:   #ffffff;
  --surface-2: #ede9e3;
  --surface-3: #e4dfd7;

  --teal:    #007a68;
  --amber:   #965a00;
  --magenta: #8822cc;

  --teal-dim:    rgba(0,  122, 104, 0.1);
  --amber-dim:   rgba(150, 90,   0, 0.1);
  --magenta-dim: rgba(136, 34, 204, 0.1);

  --teal-glow:    rgba(0,  122, 104, 0.18);
  --amber-glow:   rgba(150, 90,   0, 0.18);
  --magenta-glow: rgba(136, 34, 204, 0.18);

  --text:       #1c1a24;
  --text-muted: #636078;
  --border:     rgba(0,0,0,0.08);
  --border-2:   rgba(0,0,0,0.16);

  --nav-scrolled-bg: rgba(245, 241, 236, 0.93);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'Share Tech Mono', 'Courier New', monospace;

  --radius:    0.75rem;
  --radius-lg: 1.25rem;

  --nav-h: 4.5rem;
}

/* Dark theme */
[data-theme="dark"] {
  --bg:        #0c0c11;
  --surface:   #13131d;
  --surface-2: #1b1b28;
  --surface-3: #22222f;

  --teal:    #00d4b0;
  --amber:   #ffb020;
  --magenta: #cc55ff;

  --teal-dim:    rgba(0,  212, 176, 0.14);
  --amber-dim:   rgba(255,176,  32, 0.14);
  --magenta-dim: rgba(204, 85, 255, 0.14);

  --teal-glow:    rgba(0,  212, 176, 0.22);
  --amber-glow:   rgba(255,176,  32, 0.22);
  --magenta-glow: rgba(204, 85, 255, 0.22);

  --text:       #ece8f6;
  --text-muted: #7e7b96;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);

  --nav-scrolled-bg: rgba(12, 12, 17, 0.92);
}

/* ── 1. Base & Typography ── */
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; height: auto; }

/* ── 2. Utilities ── */
.container {
  max-width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.section-title em { font-style: italic; }

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 55ch;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* ── 3. Grain Overlay ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── 4. Navigation ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 0.4rem;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-cta {
  background: var(--teal) !important;
  color: var(--bg) !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 999px !important;
  margin-left: 0.5rem;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; background: var(--teal) !important; }

.theme-toggle {
  background: none;
  border: 1.5px solid var(--border-2);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.3rem 0.6rem;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--teal); color: var(--teal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 5. Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -50deg,
    #f5f1ec 0%,
    #ede8f5 25%,
    #e8f5f0 50%,
    #f5ede8 75%,
    #f5f1ec 100%
  );
  background-size: 400% 400%;
  animation: gradShift 18s ease infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(0,122,104,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(136,34,204,0.08) 0%, transparent 60%);
}

[data-theme="dark"] .hero-bg {
  background: linear-gradient(
    -50deg,
    #0c0c11 0%,
    #0f0c1a 25%,
    #0c111a 50%,
    #0f0c1a 75%,
    #0c0c11 100%
  );
}

[data-theme="dark"] .hero-bg::after {
  background:
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(0,212,176,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(204,85,255,0.07) 0%, transparent 60%);
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 3rem;
  align-items: center;
}

.hero-crt-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-location {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-location::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 1.5px;
  background: var(--teal);
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title-academy {
  display: block;
  font-size: 0.55em;
  background: linear-gradient(90deg, var(--teal), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--bg);
  box-shadow: 0 0 28px var(--teal-glow);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; color: var(--bg); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn-ghost:hover { border-color: var(--text-muted); transform: translateY(-1px); text-decoration: none; }

/* Rotated decorative text */
.hero-rotated {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.4;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.scroll-hint svg { opacity: 0.5; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── 6. About ── */
.about-section { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid;
}

.badge-teal   { background: var(--teal-dim);    border-color: var(--teal);    color: var(--teal); }
.badge-amber  { background: var(--amber-dim);   border-color: var(--amber);   color: var(--amber); }
.badge-magenta{ background: var(--magenta-dim); border-color: var(--magenta); color: var(--magenta); }

.about-stat-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.about-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--amber-dim);
  border: 1px solid rgba(255,176,32,0.2);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--amber);
  line-height: 1.6;
}

/* ── 7. Services ── */
.services-section { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-accent, var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--card-accent, var(--teal));
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
  font-style: italic;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-detail {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--card-accent, var(--teal));
}

/* ── 8. Devices ── */
.devices-section { background: var(--surface); }

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.device-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.device-card:hover { border-color: var(--border-2); transform: translateY(-4px); }

.device-visual {
  aspect-ratio: 16 / 9;
  background: var(--device-bg, #1a1a28);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.device-visual svg { width: 70%; max-height: 80%; }

.device-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.4) 100%);
}

.device-info {
  padding: 1.25rem 1.4rem 1.4rem;
}

.device-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.device-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.device-chip {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--device-dim, var(--teal-dim));
  border: 1px solid var(--device-border, var(--teal));
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--device-color, var(--teal));
}

/* TIME badge */
.device-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0.7rem;
  background: rgba(255,176,32,0.12);
  border: 1px solid rgba(255,176,32,0.3);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--amber);
}

/* ── 9. Wellbeing / Health & Safety ── */
.wellbeing-section { background: var(--bg); }

.wellbeing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.wellbeing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.wellbeing-card:hover { border-color: var(--border-2); }

.wellbeing-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.wellbeing-card h3 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.wellbeing-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── 10. Gallery ── */
.gallery-section { background: var(--surface); }

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-filter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.gallery-empty strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.photo-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.photo-card:hover { transform: translateY(-3px); border-color: var(--border-2); }

.photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  overflow: hidden;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-card:hover .photo-wrap img { transform: scale(1.03); }

/* Missing image placeholder */
.photo-wrap.img-error img { display: none; }
.photo-placeholder-overlay {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: center;
  padding: 1rem;
}
.photo-wrap.img-error .photo-placeholder-overlay { display: flex; }
.photo-placeholder-overlay span:first-child { font-size: 2rem; }

.photo-meta {
  padding: 0.9rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
}

.photo-venue {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  width: 100%;
}

.photo-date, .photo-age {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Approval badges */
.approval-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 2;
}

.badge-approved-photo {
  background: rgba(0, 212, 176, 0.85);
  color: #0c0c11;
}

.badge-pending-photo {
  background: rgba(220, 60, 60, 0.9);
  color: #fff;
}

/* Admin mode */
.admin-card { cursor: pointer; }
.admin-card:hover .photo-wrap::after {
  content: 'Click to toggle approval';
  position: absolute;
  inset: 0;
  background: rgba(12,12,17,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
  font-family: var(--font-body);
}

/* ── 11. Holiday Programmes ── */
.holidays-section { background: var(--bg); }

.holidays-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.holidays-callout {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--amber-dim);
  border: 1px solid rgba(255,176,32,0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--amber);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.interest-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.interest-form label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
}

.interest-form input,
.interest-form select,
.interest-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  transition: border-color 0.2s;
  appearance: none;
}

.interest-form input:focus,
.interest-form select:focus,
.interest-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.interest-form select option { background: var(--surface-2); }

.interest-form textarea { min-height: 100px; resize: vertical; }

.form-field { display: flex; flex-direction: column; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

/* ── 12. Stats Bar ── */
.stats-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem;
}

.stats-inner {
  max-width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-stars {
  font-size: 1rem;
  color: var(--amber);
  letter-spacing: 0.1em;
}

/* ── 13. Founder ── */
.founder-section { background: var(--bg); }

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.founder-visual-col {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.founder-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-photo-frame svg { width: 75%; opacity: 0.3; }

.founder-placeholder-label {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  font-family: var(--font-body);
}

.founder-photo-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--magenta) 0%, transparent 55%, var(--teal) 100%);
  z-index: -1;
  opacity: 0.4;
}

.founder-alias {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

.founder-alias strong {
  display: block;
  color: var(--magenta);
  font-size: 0.92rem;
  margin-bottom: 0.1rem;
}

.founder-prose p {
  color: var(--text);
  margin-bottom: 1.3rem;
  line-height: 1.8;
}

.founder-prose p:last-of-type { margin-bottom: 0; }

.pull-quote {
  position: relative;
  margin: 2rem 0;
  padding: 1.4rem 1.5rem 1.4rem 2rem;
  background: var(--surface-2);
  border-left: 3px solid var(--magenta);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 0 40px var(--magenta-glow);
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.6rem;
  left: 1.2rem;
  font-size: 4rem;
  color: var(--magenta);
  opacity: 0.35;
  font-family: Georgia, serif;
  line-height: 1;
}

.pull-quote p {
  font-size: 1.05rem !important;
  font-style: italic;
  color: var(--text) !important;
  margin: 0 !important;
  line-height: 1.6;
}

.pull-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta);
}

.founder-tags {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.founder-tags-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-family: var(--font-body);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-pill {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  background: var(--magenta-dim);
  border: 1px solid rgba(204,85,255,0.3);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--magenta);
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
  cursor: default;
}

.tag-pill:hover { background: rgba(204,85,255,0.22); color: #fff; }

/* ── 14. Contact & Footer ── */
.contact-section { background: var(--surface); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text);
}

.contact-item-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-form label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--teal); }

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

footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-wwc {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── 15. Admin Bar ── */
.admin-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(220,60,60,0.92);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  gap: 1rem;
}

.admin-bar[hidden] { display: none; }

.admin-bar-actions { display: flex; gap: 0.75rem; align-items: center; }

#copy-json-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
#copy-json-btn:hover { background: rgba(255,255,255,0.3); }

.admin-bar ~ .header { top: 2.5rem; }

/* ── 16. Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.revealed { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── 16b. CRT TV ── */

.crt-tv {
  position: relative;
  width: 510px;
  padding-top: 52px; /* antenna headroom */
  transform: perspective(900px) rotateY(-9deg) rotateX(4deg);
  transition: transform 0.55s ease;
}

.crt-tv:hover {
  transform: perspective(900px) rotateY(-3deg) rotateX(2deg);
}

/* Antennae */
.crt-antennas {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  height: 52px;
  pointer-events: none;
}

.crt-antenna {
  position: absolute;
  bottom: 0;
  width: 5px;
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(to top, #555048, #8a8478);
}

.crt-antenna::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 9px;
  background: #3d3830;
  border-radius: 3px;
}

.crt-antenna-l {
  left: 30px;
  height: 50px;
  transform: rotate(-22deg);
  transform-origin: bottom center;
}

.crt-antenna-r {
  right: 30px;
  height: 44px;
  transform: rotate(18deg);
  transform-origin: bottom center;
}

/* TV body */
.crt-body {
  position: relative;
  background: linear-gradient(150deg, #3e3930 0%, #2e2920 50%, #201c15 100%);
  border-radius: 22px 22px 16px 16px;
  padding: 18px 18px 22px;
  box-shadow:
    0 0 0 2px #4d4740,
    0 0 0 4px #181410,
    inset 0 2px 5px rgba(255,255,255,0.07),
    inset 0 -3px 8px rgba(0,0,0,0.55),
    0 30px 70px rgba(0,0,0,0.55),
    0 10px 24px rgba(0,0,0,0.35);
}

/* Inner bezel */
.crt-bezel {
  background: #0d0b09;
  border-radius: 13px 13px 9px 9px;
  padding: 10px;
  box-shadow:
    inset 0 0 18px rgba(0,0,0,0.95),
    inset 0 2px 2px rgba(255,255,255,0.02);
}

/* The screen */
.crt-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #020202;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 35px rgba(0, 212, 176, 0.18),
    0 0 70px rgba(0, 212, 176, 0.06),
    inset 0 0 24px rgba(0,0,0,0.9);
}

/* Image slides */
.crt-display {
  position: absolute;
  inset: 0;
}

.crt-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.88) saturate(1.25) contrast(1.08);
  transition: opacity 0.25s ease;
}

.crt-slide.active { opacity: 1; }

.crt-slide.glitch-out {
  animation: crtGlitchOut 0.4s ease-out forwards;
}

@keyframes crtGlitchOut {
  0%   { opacity: 1; filter: brightness(0.88) saturate(1.25) contrast(1.08); transform: translate(0,0); }
  25%  { opacity: 0.8; filter: brightness(2.2) saturate(4) hue-rotate(90deg) contrast(2.5); transform: translate(-9px, 5px); }
  50%  { opacity: 0.5; filter: brightness(0.25) saturate(0) contrast(4); transform: translate(9px, -5px); }
  75%  { opacity: 0.3; filter: brightness(1.6) saturate(3.5) hue-rotate(180deg); transform: translate(-5px, 4px); }
  100% { opacity: 0; filter: brightness(1) saturate(1); transform: translate(0,0); }
}

/* Boot/static state */
.crt-boot-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(0, 212, 176, 0.55);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 0;
}

.crt-boot-cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: rgba(0, 212, 176, 0.55);
  animation: crtCursorBlink 1s step-end infinite;
}

@keyframes crtCursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── CRT overlay layers ── */
.crt-scanlines,
.crt-flicker,
.crt-vignette,
.crt-glare,
.crt-noise,
.crt-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Scanlines — scroll downward */
.crt-scanlines {
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 3px
  );
  animation: crtScanScroll 6s linear infinite;
  z-index: 3;
}

@keyframes crtScanScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(3px); }
}

/* Flicker — adapted directly from stream.starlifter.fm */
.crt-flicker {
  background: rgba(18, 16, 14, 0.1);
  animation: crtFlicker 0.15s infinite;
  z-index: 4;
}

@keyframes crtFlicker {
  0%   { opacity: 0.27861; }
  5%   { opacity: 0.34769; }
  10%  { opacity: 0.23604; }
  15%  { opacity: 0.10626; }
  20%  { opacity: 0.18128; }
  25%  { opacity: 0.13891; }
  30%  { opacity: 0.05583; }
  35%  { opacity: 0.07807; }
  40%  { opacity: 0.06559; }
  45%  { opacity: 0.14693; }
  50%  { opacity: 0.06019; }
  55%  { opacity: 0.08594; }
  60%  { opacity: 0.10313; }
  65%  { opacity: 0.11988; }
  70%  { opacity: 0.13455; }
  75%  { opacity: 0.07288; }
  80%  { opacity: 0.11428; }
  85%  { opacity: 0.10419; }
  90%  { opacity: 0.10030; }
  95%  { opacity: 0.06108; }
  100% { opacity: 0.04387; }
}

/* Vignette — dark at edges */
.crt-vignette {
  background: radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,0.72) 100%);
  z-index: 2;
}

/* Glare — highlight top-left like curved glass */
.crt-glare {
  background:
    radial-gradient(ellipse 55% 38% at 36% 27%, rgba(255,255,255,0.07) 0%, transparent 75%),
    radial-gradient(ellipse 18% 12% at 70% 13%, rgba(255,255,255,0.04) 0%, transparent 80%);
  z-index: 5;
}

/* Noise — animated static */
.crt-noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 130px 130px;
  opacity: 0.055;
  animation: crtNoise 0.08s steps(1) infinite;
  z-index: 6;
}

@keyframes crtNoise {
  0%   { background-position:   0px   0px; }
  14%  { background-position: -28px  20px; }
  28%  { background-position:  20px -12px; }
  42%  { background-position: -12px  28px; }
  57%  { background-position:  32px   6px; }
  71%  { background-position: -20px -22px; }
  85%  { background-position:  10px  32px; }
  100% { background-position:   0px   0px; }
}

/* Phosphor tint — green-teal warmth */
.crt-tint {
  background: linear-gradient(
    180deg,
    rgba(0, 45, 25, 0.2) 0%,
    rgba(0, 35, 18, 0.12) 45%,
    rgba(0, 55, 28, 0.18) 100%
  );
  mix-blend-mode: color;
  z-index: 1;
}

/* TV base strip */
.crt-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 2px;
}

.crt-brand-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

.crt-knobs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crt-knob {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #5d5850 0%, #28231a 70%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.07);
  position: relative;
}

.crt-knob::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 5px;
  background: rgba(255,255,255,0.25);
  border-radius: 1px;
}

.crt-knob-sm { width: 13px; height: 13px; }
.crt-knob-sm::after { height: 3px; top: 2px; }

/* Power LED */
.crt-led {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff7a;
  box-shadow: 0 0 6px #00ff7a, 0 0 14px rgba(0, 255, 122, 0.45);
  animation: crtLedPulse 2.5s ease-in-out infinite;
}

@keyframes crtLedPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #00ff7a, 0 0 14px rgba(0,255,122,0.45); }
  50%       { opacity: 0.45; box-shadow: 0 0 3px #00ff7a; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .crt-scanlines,
  .crt-flicker,
  .crt-noise,
  .crt-led,
  .crt-boot-cursor { animation: none !important; }
  .crt-tv { transform: none !important; }
  .crt-slide.glitch-out { animation: none !important; opacity: 0 !important; }
}

/* ── 17. Responsive ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-crt-col { order: -1; }
  .crt-tv { transform: none; width: 420px; }
  .about-grid, .founder-grid, .holidays-inner, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .founder-visual-col { position: static; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-crt-col { display: none; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(12,12,17,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 2rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; font-size: 1rem; }
  .nav-cta { text-align: center; margin-left: 0 !important; margin-top: 0.5rem; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero-rotated { display: none; }
}

@media (max-width: 600px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .founder-photo-frame { aspect-ratio: 4 / 3; }
}

@media (max-width: 400px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
}

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