/* ============================================================
   VOGTOV — V3 "Aurora"
   The signal in the dark. A live aurora field, channels you tune into.
   ============================================================ */

:root {
  --obsidian: #070b0f;
  --surface: #0e141b;
  --glassbg: rgba(20, 30, 36, 0.55);
  --mint: #63f2be;
  --violet: #a78bfa;
  --pink: #ff9be0;
  --text: #ecf2f1;
  --muted: #8ca3a0;
  --line: rgba(140, 163, 160, 0.18);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, monospace;
}

[hidden] { display: none !important; }

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

body {
  background: var(--obsidian);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.66;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(167, 139, 250, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.mono { font-family: var(--font-mono); }

/* ---------- fixed layers ---------- */

#aurora {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  background:
    radial-gradient(120% 80% at 50% -10%, #101c26 0%, var(--obsidian) 60%);
}

.static-veil {
  position: fixed;
  inset: -50%;
  z-index: 30;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- topbar ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 44px);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.topbar.scrolled {
  background: rgba(7, 11, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.ident {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.ident-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  background: linear-gradient(100deg, var(--mint), var(--violet), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ident-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: blink 2.6s ease-in-out infinite;
}

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

.ident-sub {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 760px) { .ident-sub { display: none; } }

.topbar-nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); }

.topbar-nav a {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s ease;
}

.topbar-nav a:hover { color: var(--text); }

.tune-btn {
  color: var(--obsidian) !important;
  background: linear-gradient(100deg, var(--mint), var(--violet));
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700 !important;
  transition: filter 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}

.tune-btn:hover {
  filter: brightness(1.14);
  box-shadow: 0 0 26px rgba(99, 242, 190, 0.35), 0 0 50px rgba(167, 139, 250, 0.2);
}

.tune-btn:active { transform: scale(0.96); }

.ident .ident-dot { transition: box-shadow 0.35s ease; }
.ident:hover .ident-dot { box-shadow: 0 0 16px var(--mint), 0 0 30px rgba(99, 242, 190, 0.6); }
.ident .ident-sub { transition: color 0.35s ease; }
.ident:hover .ident-sub { color: var(--text); }

@media (max-width: 640px) {
  .topbar-nav { gap: 12px; }
  .topbar-nav a { font-size: 0.68rem; letter-spacing: 0.06em; }
  .tune-btn { padding: 7px 13px; }
}

/* ---------- shared ---------- */

main { position: relative; z-index: 10; }

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 16px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.glass {
  background: var(--glassbg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.magnetic { will-change: transform; }

/* ---------- hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 20px 90px;
  gap: 22px;
}

.onair {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.onair-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5470;
  box-shadow: 0 0 12px rgba(255, 84, 112, 0.9);
  animation: blink 1.8s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 11.5vw, 11rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  max-width: 100%;
  background: linear-gradient(105deg, #ffffff 5%, var(--mint) 35%, var(--violet) 65%, var(--pink) 92%);
  background-size: 160% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 44px rgba(167, 139, 250, 0.3));
  animation: hue-drift 14s ease-in-out infinite alternate;
}

@keyframes hue-drift {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}

.typedline {
  min-height: 1.6em;
  font-size: clamp(0.95rem, 2.4vw, 1.35rem);
  letter-spacing: 0.12em;
  color: var(--text);
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: var(--mint);
  animation: blink 1s steps(2) infinite;
}

.hero-sub {
  max-width: 460px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.88rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(99, 242, 190, 0.16), rgba(167, 139, 250, 0.16));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-cta:hover { border-color: rgba(99, 242, 190, 0.5); box-shadow: 0 0 30px rgba(99, 242, 190, 0.18); }
.hero-cta:hover::before { opacity: 1; }

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: rgba(7, 11, 15, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- statement ---------- */

.statement {
  display: flex;
  justify-content: center;
  padding: clamp(110px, 16vh, 170px) clamp(20px, 5vw, 60px);
}

.statement-panel {
  max-width: 660px;
  padding: clamp(32px, 5vw, 54px);
}

.statement-panel h2 { margin-bottom: 24px; }

.statement-panel p { color: var(--muted); margin-bottom: 18px; }
.statement-panel p:last-child { margin-bottom: 0; }

.statement-panel em {
  font-style: normal;
  color: var(--mint);
}

/* ---------- channels ---------- */

.channels { padding: clamp(60px, 10vh, 110px) clamp(20px, 4vw, 52px); }

.channels-head { text-align: center; margin-bottom: clamp(44px, 7vh, 70px); }

.channel-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
  max-width: 1380px;
  margin: 0 auto;
}

@media (max-width: 1120px) { .channel-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .channel-row { grid-template-columns: 1fr; max-width: 420px; } }

.channel { position: relative; border-radius: 24px; perspective: 900px; }

.channel.tilting::before { opacity: 1; }
.channel.tilting .ch-glyph { text-shadow: 0 0 50px color-mix(in srgb, var(--ch-a, #fff) 90%, transparent); }

/* animated gradient border for live channels */
.channel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  padding: 1px;
  background: conic-gradient(from var(--spin, 0deg), var(--mint), var(--violet), var(--pink), var(--mint));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.live-ch::before { opacity: 0.65; animation: spin-border 7s linear infinite; }
.offair::before { background: conic-gradient(from var(--spin, 0deg), #33413f, #1c2422, #33413f); opacity: 0.8; }

@property --spin {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spin-border { to { --spin: 360deg; } }

.ch-frame {
  position: relative;
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.channel:hover .ch-frame {
  transform: translateY(-8px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}

/* while the JS tilt drives the frame, track the pointer tightly */
.channel.tilting .ch-frame {
  transition: transform 0.12s ease-out, box-shadow 0.5s ease;
}

.ch-screen {
  position: relative;
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 90% at 30% 20%, color-mix(in srgb, var(--ch-a, #22302c) 32%, transparent), transparent 70%),
    radial-gradient(90% 90% at 75% 80%, color-mix(in srgb, var(--ch-b, #17211f) 40%, transparent), transparent 70%),
    #0a0f13;
  border-bottom: 1px solid var(--line);
}

.ch-glyph {
  font-size: 3.2rem;
  color: var(--ch-a, var(--muted));
  text-shadow: 0 0 34px color-mix(in srgb, var(--ch-a, #fff) 60%, transparent);
  animation: glyph-float 5s ease-in-out infinite;
}

@keyframes glyph-float {
  0%, 100% { transform: translateY(4px); }
  50% { transform: translateY(-6px); }
}

.static-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.offair-tag {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: rgba(236, 242, 241, 0.75);
  border: 1px solid rgba(236, 242, 241, 0.3);
  padding: 8px 16px 8px 20px;
  background: rgba(7, 11, 15, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.ch-meta { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.ch-num {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ch-live { color: var(--mint); }
.ch-dormant { color: rgba(140, 163, 160, 0.7); }

.ch-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}

.offair .ch-name { color: rgba(236, 242, 241, 0.72); }

.ch-desc { color: var(--muted); font-size: 0.95rem; flex: 1; }

.ch-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.live-ch .ch-link:hover { border-color: var(--mint); box-shadow: 0 0 22px rgba(99, 242, 190, 0.2); }
.offair .ch-link:hover { border-color: var(--pink); box-shadow: 0 0 22px rgba(255, 155, 224, 0.18); }

.revive.requested { border-color: var(--pink); color: var(--pink); }

/* ---------- program guide ---------- */

.guide { padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 60px); }

.guide-head { text-align: center; max-width: 720px; margin: 0 auto clamp(44px, 7vh, 70px); }

.guide-head h2 { margin-bottom: 18px; }

.guide-sub {
  color: rgba(236, 242, 241, 0.82);
  text-shadow: 0 1px 24px rgba(7, 11, 15, 0.85), 0 0 8px rgba(7, 11, 15, 0.6);
}

.guide-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}

.guide-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(24px, 3.4vw, 36px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease;
}

.guide-row:hover { transform: translateX(8px); border-color: rgba(167, 139, 250, 0.4); }

@media (max-width: 640px) {
  .guide-row { grid-template-columns: auto 1fr; }
  .guide-badge { display: none; }
}

.guide-num {
  font-size: 1.5rem;
  color: var(--violet);
  opacity: 0.85;
}

.guide-copy h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  margin-bottom: 8px;
}

.guide-copy p { color: var(--muted); font-size: 0.98rem; max-width: 56ch; }

.guide-badge {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid rgba(99, 242, 190, 0.3);
  border-radius: 999px;
  padding: 7px 14px;
}

/* data meter */
.meter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.meter-label, .meter-value { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.meter-value { color: var(--mint); }

.meter-track {
  flex: 1;
  min-width: 120px;
  max-width: 260px;
  height: 6px;
  border-radius: 999px;
  background: rgba(140, 163, 160, 0.18);
  overflow: hidden;
}

.meter-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--violet));
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.meter.filled .meter-fill { width: 32%; }

/* ---------- footer ---------- */

.tunein {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 70px;
  gap: 14px;
}

.tunein-title {
  font-size: clamp(2.4rem, 8vw, 5rem);
}

.tunein-mail {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.8vw, 1.5rem);
  letter-spacing: 0.06em;
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 242, 190, 0.35);
  padding-bottom: 5px;
  transition: border-color 0.35s ease, text-shadow 0.35s ease;
}

.tunein-mail:hover { border-color: var(--mint); text-shadow: 0 0 24px rgba(99, 242, 190, 0.5); }

.foot-meta {
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(140, 163, 160, 0.6);
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .caret { animation: none; }
  .marquee-track { animation: none; }
  .meter .meter-fill { width: 32%; }
}
