:root {
  --bg: #05070a;
  --surface: rgba(11, 15, 22, 0.72);
  --surface-elevated: rgba(16, 22, 32, 0.88);
  --border: rgba(168, 195, 220, 0.13);
  --border-hover: rgba(0, 240, 255, 0.45);
  --text: #eef3f8;
  --text-dim: #8b9bb0;
  --text-faint: #516072;
  --accent: #00f0ff;
  --accent-soft: rgba(0, 240, 255, 0.1);
  --accent-glow: rgba(0, 240, 255, 0.22);

  --max-width: 999px;
  --radius-sm: 4px;
  --radius-md: 8px;

  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

/* Subtle cybernetic coordinate grid */
.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(168, 195, 220, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 195, 220, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 35%, transparent 100%);
}

.ambient-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 240, 255, 0.08), transparent 45%),
    radial-gradient(circle at 50% 110%, rgba(0, 240, 255, 0.04), transparent 45%);
}

/* Constrained 999px Shell */
.shell {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* =========================================================
   NO TOP NAVIGATION BAR — Floating Overlay Trigger Only
   ========================================================= */
.menu-trigger {
  position: fixed;
  top: clamp(14px, 3vw, 24px);
  right: clamp(14px, 3vw, 24px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(8, 11, 16, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition:
    border-color 0.3s var(--ease-expo),
    background-color 0.3s var(--ease-expo),
    transform 0.3s var(--ease-expo),
    box-shadow 0.3s var(--ease-expo);
}

.menu-trigger:hover,
.menu-trigger:focus-visible {
  border-color: var(--border-hover);
  background: rgba(12, 18, 26, 0.86);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.14);
  outline: none;
}

.menu-trigger:active {
  transform: scale(0.97);
}

.menu-trigger__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.menu-trigger__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--accent);
  transition: transform 0.3s var(--ease-expo), width 0.3s var(--ease-expo);
}

.menu-trigger__bars span:last-child {
  width: 70%;
  margin-left: auto;
}

.menu-trigger:hover .menu-trigger__bars span:last-child {
  width: 100%;
}

/* =========================================================
   Overlay Menu with Blurry Backdrop
   ========================================================= */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.4s var(--ease-expo),
    visibility 0.4s var(--ease-expo);
}

.overlay-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.overlay-menu__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: min(82vh, 660px);
  padding-block: clamp(24px, 5vh, 48px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.45s var(--ease-expo);
}

.overlay-menu.is-open .overlay-menu__panel {
  transform: translateY(0) scale(1);
}

.overlay-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.overlay-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(14, 19, 28, 0.65);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.overlay-close:hover,
.overlay-close:focus-visible {
  border-color: var(--border-hover);
  color: var(--text);
  outline: none;
}

.overlay-close__x {
  position: relative;
  width: 12px;
  height: 12px;
}

.overlay-close__x::before,
.overlay-close__x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
}

.overlay-close__x::before {
  transform: rotate(45deg);
}

.overlay-close__x::after {
  transform: rotate(-45deg);
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  margin-block: 32px;
}

.overlay-nav__item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: clamp(16px, 2.8vh, 26px) 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  opacity: 0;
  transform: translateX(-16px);
  transition:
    opacity 0.45s var(--ease-expo),
    transform 0.45s var(--ease-expo),
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.overlay-menu.is-open .overlay-nav__item {
  opacity: 1;
  transform: translateX(0);
}

.overlay-menu.is-open .overlay-nav__item:nth-child(1) { transition-delay: 0.06s; }
.overlay-menu.is-open .overlay-nav__item:nth-child(2) { transition-delay: 0.12s; }
.overlay-menu.is-open .overlay-nav__item:nth-child(3) { transition-delay: 0.18s; }

.overlay-nav__item:first-child {
  border-top: 1px solid var(--border);
}

.overlay-nav__item:hover,
.overlay-nav__item:focus-visible {
  background: rgba(0, 240, 255, 0.04);
  border-bottom-color: var(--border-hover);
  outline: none;
}

.overlay-nav__idx {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.overlay-nav__title {
  font-size: clamp(1.35rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform 0.3s var(--ease-expo), color 0.25s ease;
}

.overlay-nav__item:hover .overlay-nav__title {
  transform: translateX(8px);
  color: var(--accent);
}

.overlay-nav__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.overlay-menu__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.overlay-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overlay-stat__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.overlay-stat__val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* =========================================================
   Shared Telemetry & Cybernetics Primitives
   ========================================================= */
.telemetry-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-beacon 2.4s ease-in-out infinite;
}

.cyber-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.cyber-btn:hover,
.cyber-btn:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

/* =========================================================
   1. Big Hero Branding
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: min(78vh, 660px);
  padding-top: clamp(56px, 9vh, 96px);
  padding-bottom: clamp(40px, 7vh, 72px);
  border-bottom: 1px solid var(--border);
}

.hero__visual {
  position: absolute;
  top: 50%;
  right: -4%;
  width: clamp(260px, 44vw, 430px);
  height: clamp(260px, 44vw, 430px);
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.42;
  z-index: 0;
}

.hero__rings {
  width: 100%;
  height: 100%;
}

.hero__rings .ring {
  stroke: rgba(0, 240, 255, 0.22);
  stroke-width: 1;
  transform-origin: 210px 210px;
}

.hero__rings .ring--outer {
  stroke-dasharray: 8 10;
  animation: spin-slow 64s linear infinite;
}

.hero__rings .ring--mid {
  stroke: rgba(168, 195, 220, 0.18);
  stroke-dasharray: 42 14 4 14;
  animation: spin-reverse 42s linear infinite;
}

.hero__rings .ring--inner {
  stroke: rgba(0, 240, 255, 0.35);
  stroke-dasharray: 2 8;
  animation: spin-slow 28s linear infinite;
}

.hero__rings .axis {
  stroke: rgba(168, 195, 220, 0.08);
  stroke-width: 1;
}

.hero__meta,
.hero__title,
.hero__bottom {
  position: relative;
  z-index: 1;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 84px; /* keeps clear of floating menu trigger on small viewports */
}

.hero__coords {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.hero__title {
  margin: clamp(32px, 6vh, 56px) 0;
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

.hero__kicker {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.3vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero__brand {
  font-size: clamp(2.8rem, 10.6vw, 6.7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--text);
}

.hero__subbrand {
  font-size: clamp(2.4rem, 8.8vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 243, 248, 0.48);
}

.accent-dot {
  color: var(--accent);
  -webkit-text-stroke: 0;
}

.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero__lead {
  margin: 0;
  max-width: 44ch;
  color: var(--text-dim);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

.hero__telemetry {
  display: flex;
  gap: 28px;
}

.telemetry-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.telemetry-cell__label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.telemetry-cell__value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.hero__scroll-cue {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  overflow: hidden;
}

.scroll-line {
  display: block;
  width: 140px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: horizon-scan 4.5s var(--ease-expo) infinite;
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding-block: clamp(44px, 7vh, 76px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section__label {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.section__index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.section__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

/* =========================================================
   2. Top 3 Showcase Grid (sorted by playedCounter desc)
   ========================================================= */
.top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.top-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 310px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-expo),
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.4s var(--ease-expo);
}

/* Subtle cybernetic corner ticks */
.top-card::before,
.top-card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.3s ease, transform 0.35s var(--ease-expo);
}

.top-card::before {
  top: 7px;
  left: 7px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.top-card::after {
  bottom: 7px;
  right: 7px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.top-card--leader {
  border-color: rgba(0, 240, 255, 0.28);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.055), var(--surface) 45%);
}

.top-card:hover,
.top-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--surface-elevated);
  box-shadow: 0 18px 38px -18px rgba(0, 240, 255, 0.25);
  outline: none;
}

.top-card:hover::before,
.top-card:hover::after {
  opacity: 1;
}

/* Hover scan sweep */
.top-card__beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(0, 240, 255, 0.07) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease-expo);
}

.top-card:hover .top-card__beam {
  transform: translateX(120%);
}

.top-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.rank-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.plays-readout {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text);
}

.plays-readout__unit {
  font-size: 0.62rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

.top-card__media {
  position: relative;
  height: 112px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 30%, rgba(0, 240, 255, 0.14), transparent 55%),
    linear-gradient(135deg, rgba(16, 24, 36, 0.9), rgba(7, 10, 15, 0.95));
}

.top-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.06);
  transition: transform 0.6s var(--ease-expo), filter 0.4s ease;
}

.top-card:hover .top-card__media img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.1);
}

.top-card__fallback-glyph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: rgba(0, 240, 255, 0.55);
  background-image:
    linear-gradient(to right, rgba(0, 240, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}

.top-card__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.top-card__desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.87rem;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.genre-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.launch-cue {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  transition: transform 0.3s var(--ease-expo);
}

.top-card:hover .launch-cue {
  transform: translateX(3px);
}

/* =========================================================
   3. Extended Archive Grid (10 Other Items Below)
   ========================================================= */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.archive-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.28s ease,
    background-color 0.28s ease,
    transform 0.32s var(--ease-expo);
}

.archive-item:hover,
.archive-item:focus-visible {
  border-color: var(--border-hover);
  background: var(--surface-elevated);
  transform: translateY(-2px);
  outline: none;
}

.archive-item__idx {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
  transition: color 0.25s ease;
}

.archive-item:hover .archive-item__idx {
  color: var(--accent);
}

.archive-item__main {
  min-width: 0;
}

.archive-item__title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.archive-item__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-item__genre {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
  flex-shrink: 0;
}

.archive-item__desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.archive-item__plays {
  font-size: 0.76rem;
  color: var(--text);
}

.archive-item__arrow {
  font-size: 0.68rem;
  color: var(--text-faint);
  transition: color 0.25s ease, transform 0.25s var(--ease-expo);
}

.archive-item:hover .archive-item__arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* =========================================================
   Skeleton Loading & Empty States
   ========================================================= */
.skeleton-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(11, 15, 22, 0.5);
}

.skeleton-card--top {
  min-height: 310px;
}

.skeleton-card--archive {
  height: 70px;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.06), transparent);
  transform: translateX(-100%);
  animation: skeleton-sweep 1.5s infinite;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding-bottom: 40px;
}

.footer__rule {
  height: 1px;
  background: var(--border);
  margin-bottom: 18px;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

/* =========================================================
   Scroll Reveal & Keyframe Animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s var(--ease-expo),
    transform 0.65s var(--ease-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulse-beacon {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

@keyframes horizon-scan {
  0% { transform: translateX(-160px); }
  100% { transform: translateX(1020px); }
}

@keyframes skeleton-sweep {
  100% { transform: translateX(100%); }
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 820px) {
  .top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-card--leader {
    grid-column: 1 / -1;
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .hero__visual {
    opacity: 0.24;
    right: -18%;
  }

  .top-grid {
    grid-template-columns: 1fr;
  }

  .top-card--leader {
    grid-column: auto;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .overlay-nav__item {
    grid-template-columns: 32px 1fr;
  }

  .overlay-nav__meta {
    display: none;
  }
}

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

  .hero__rings .ring,
  .pulse-dot,
  .scroll-line,
  .skeleton-card::after {
    animation: none;
  }

  .reveal,
  .top-card,
  .archive-item,
  .overlay-menu,
  .overlay-menu__panel,
  .overlay-nav__item {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
