:root {
  color-scheme: dark;
  --bg: #071017;
  --bg-deep: #02060a;
  --surface: rgba(149, 242, 255, 0.08);
  --surface-strong: rgba(149, 242, 255, 0.14);
  --line: rgba(149, 242, 255, 0.22);
  --text: #edfaff;
  --muted: rgba(237, 250, 255, 0.68);
  --accent: #7cf7ff;
  --accent-rgb: 124, 247, 255;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --panel: rgba(3, 13, 18, 0.7);
  --scroll-depth: 0px;
}

body[data-theme="tunnel"] {
  --bg: #180908;
  --bg-deep: #090303;
  --surface: rgba(255, 148, 99, 0.08);
  --surface-strong: rgba(255, 148, 99, 0.16);
  --line: rgba(255, 148, 99, 0.22);
  --text: #fff1eb;
  --muted: rgba(255, 241, 235, 0.72);
  --accent: #ff8557;
  --accent-rgb: 255, 133, 87;
  --panel: rgba(18, 8, 7, 0.74);
}

body[data-theme="dawn"] {
  --bg: #10130a;
  --bg-deep: #050703;
  --surface: rgba(218, 255, 122, 0.08);
  --surface-strong: rgba(218, 255, 122, 0.16);
  --line: rgba(218, 255, 122, 0.22);
  --text: #fbffe7;
  --muted: rgba(251, 255, 231, 0.72);
  --accent: #d8ff67;
  --accent-rgb: 216, 255, 103;
  --panel: rgba(12, 15, 7, 0.76);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 14%, rgba(var(--accent-rgb), 0.18), transparent 0 24%),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.08), transparent 0 17%),
    linear-gradient(180deg, var(--bg), var(--bg-deep) 72%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.6;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 88%);
}

body::after {
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.04), transparent),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
  opacity: 0.22;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.backdrop {
  position: fixed;
  border-radius: 999px;
  filter: blur(42px);
  pointer-events: none;
  opacity: 0.58;
  transform: translate3d(0, calc(var(--scroll-depth) * -0.05), 0);
}

.backdrop-a {
  top: 8vh;
  left: -4vw;
  width: 28vw;
  height: 28vw;
  background: rgba(var(--accent-rgb), 0.3);
}

.backdrop-b {
  top: 46vh;
  right: 8vw;
  width: 18vw;
  height: 18vw;
  background: rgba(255, 255, 255, 0.16);
}

.backdrop-c {
  bottom: 8vh;
  left: 34vw;
  width: 16vw;
  height: 16vw;
  background: rgba(var(--accent-rgb), 0.18);
}

.topbar,
.frequencies,
.letters,
.schedule,
.closing {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.8);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-time,
.kicker,
.panel-label,
.stack-label,
.schedule-time,
.frequency-number {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-time {
  margin: 0;
  color: var(--muted);
}

main {
  display: grid;
  gap: 110px;
  padding-bottom: 110px;
}

.hero {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(340px, 540px);
  gap: 48px;
  align-items: center;
  padding:
    54px
    max(24px, calc((100vw - 1180px) / 2))
    30px;
}

.hero-copy {
  max-width: 640px;
}

.kicker,
.panel-label,
.stack-label,
.schedule-time,
.frequency-number {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
}

h1,
h2,
h3,
.signal-panel h2 {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
}

h1 {
  max-width: 9ch;
  font-size: clamp(4rem, 8vw, 8.2rem);
  letter-spacing: -0.05em;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.hero-lead,
.panel-copy,
.frequency-copy p,
.letter-stack p,
.schedule-grid p,
.closing p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-lead {
  max-width: 34rem;
  margin: 22px 0 0;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 34px;
}

.solid-button,
.ghost-button,
.text-link,
.inline-link,
.channel-button {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.solid-button,
.ghost-button,
.channel-button,
.inline-link {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--text);
}

.solid-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.96rem;
}

.solid-button {
  background: var(--accent);
  color: #040607;
  box-shadow: var(--shadow);
}

.ghost-button {
  border: 1px solid var(--line);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.inline-link,
.channel-button {
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
}

.inline-link {
  padding: 0;
  color: var(--accent);
  font-size: 0.92rem;
}

.solid-button:hover,
.ghost-button:hover,
.text-link:hover,
.inline-link:hover,
.channel-button:hover {
  transform: translateY(-2px);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 50px 0 0;
}

.hero-meta div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-meta dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-meta dd {
  margin: 10px 0 0;
  font-size: 1.06rem;
  font-weight: 700;
}

.channel-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.channel-button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.channel-button.is-active {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.46);
}

.hero-visual {
  position: relative;
  min-height: 660px;
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: var(--shadow);
}

.visual-grid,
.visual-sweep,
.visual-ring,
.visual-core,
.signal-panel {
  position: absolute;
}

.visual-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.34;
}

.visual-sweep {
  inset: -10%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(var(--accent-rgb), 0.34) 60deg,
    transparent 120deg,
    transparent 360deg
  );
  animation: spin 14s linear infinite;
  opacity: 0.75;
}

.visual-ring {
  top: 50%;
  left: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-a {
  width: 74%;
  aspect-ratio: 1;
}

.ring-b {
  width: 52%;
  aspect-ratio: 1;
}

.ring-c {
  width: 28%;
  aspect-ratio: 1;
}

.visual-core {
  top: 50%;
  left: 50%;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(var(--accent-rgb), 0.94) 48%, rgba(var(--accent-rgb), 0.08) 74%, transparent 75%);
  box-shadow: 0 0 44px rgba(var(--accent-rgb), 0.72);
}

.signal-panel {
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), var(--panel));
  backdrop-filter: blur(18px);
}

.signal-panel h2 {
  max-width: 14ch;
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.panel-copy {
  margin: 16px 0 0;
  max-width: 34rem;
}

.meter-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  color: var(--muted);
}

.meter-row span {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.meter-bars {
  display: flex;
  align-items: end;
  gap: 7px;
  min-height: 36px;
}

.meter-bars i {
  display: block;
  width: 8px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.88);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.4);
  transform-origin: bottom;
}

.tag-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.tag-rail li {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  gap: 42px;
  width: max-content;
  padding: 16px 0;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  animation: ticker 18s linear infinite;
}

.ticker-track span::after {
  content: "+";
  display: inline-block;
  margin-left: 42px;
  color: var(--accent);
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.frequency-list {
  display: grid;
}

.frequency-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.frequency-item:last-child {
  border-bottom: 1px solid var(--line);
}

.frequency-number {
  color: var(--accent);
}

.frequency-copy p,
.letter-stack p,
.schedule-grid p,
.closing p {
  margin: 12px 0 0;
}

.letters-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  align-items: start;
}

.letter-quote {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.letter-stack {
  display: grid;
  gap: 24px;
}

.letter-stack > div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.schedule-grid article {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.schedule-time {
  color: var(--accent);
}

.closing {
  display: grid;
  gap: 16px;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
}

.hero-copy > *,
.hero-visual,
.ticker,
.frequencies,
.letters,
.schedule,
.closing {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-copy > *:nth-child(1) {
  animation-delay: 70ms;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 140ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 210ms;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 280ms;
}

.hero-copy > *:nth-child(5) {
  animation-delay: 350ms;
}

.hero-copy > *:nth-child(6) {
  animation-delay: 420ms;
}

.hero-visual {
  animation-delay: 240ms;
}

.ticker {
  animation-delay: 420ms;
}

.frequencies {
  animation-delay: 500ms;
}

.letters {
  animation-delay: 580ms;
}

.schedule {
  animation-delay: 660ms;
}

.closing {
  animation-delay: 740ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

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

@media (max-width: 1024px) {
  .hero,
  .letters-layout,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-visual {
    min-height: 520px;
  }
}

@media (max-width: 780px) {
  .topbar,
  .frequencies,
  .letters,
  .schedule,
  .closing {
    width: min(100vw - 32px, 1180px);
  }

  .topbar {
    padding: 16px 0;
    gap: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-meta,
  .hero-actions {
    width: 100%;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .topbar-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .solid-button,
  .ghost-button {
    width: 100%;
  }

  .frequency-item {
    grid-template-columns: 1fr;
  }

  .letter-quote {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .hero-visual {
    min-height: 460px;
  }

  .signal-panel {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
