:root {
  --bg: #091018;
  --bg-strong: #0f1821;
  --surface: rgba(13, 20, 28, 0.76);
  --surface-solid: #101923;
  --surface-muted: #14202b;
  --surface-dark: #1d2a35;
  --border: rgba(191, 208, 219, 0.1);
  --text: #eff5fb;
  --muted: #90a0ad;
  --muted-strong: #c8d4de;
  --accent: #7aa2ff;
  --accent-strong: #a9c1ff;
  --accent-soft: rgba(122, 162, 255, 0.12);
  --sidebar: #0d141d;
  --sidebar-border: rgba(191, 208, 219, 0.08);
  --hero-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  --panel-shadow: 0 22px 56px rgba(0, 0, 0, 0.25);
  --image-scrim: linear-gradient(
    180deg,
    rgba(3, 7, 11, 0.16),
    rgba(3, 7, 11, 0.84)
  );
  --card-scrim: linear-gradient(
    180deg,
    rgba(4, 7, 10, 0.08),
    rgba(4, 7, 10, 0.82)
  );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background-image:
    radial-gradient(
      circle at top left,
      rgba(64, 104, 176, 0.4),
      transparent 40%
    ),
    url("./assets/archive-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 33, 38, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 33, 38, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.7;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff, rgba(255, 255, 255, 0)),
    radial-gradient(1px 1px at 150px 50px, #fff, rgba(255, 255, 255, 0)),
    radial-gradient(1.5px 1.5px at 80px 180px, #fff, rgba(255, 255, 255, 0)),
    radial-gradient(1px 1px at 240px 120px, #fff, rgba(255, 255, 255, 0));
  background-repeat: repeat;
  background-size: 320px 320px;
  animation: star-drift 100s linear infinite;
  opacity: 0.25;
  z-index: -1;
}

@keyframes star-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 320px 640px;
  }
}

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

button,
input,
select {
  font: inherit;
}

button,
input,
select,
a,
.body-card,
.signal-card,
.feature-panel {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

button,
select {
  cursor: pointer;
}

button,
input,
select {
  appearance: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-dark);
  border: 2px solid var(--bg);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

h1,
h2,
h3,
.section-kicker,
.hero-kicker,
.topbar-kicker,
.rail-mark,
.stat-label,
.signal-label,
.feature-stat-label,
.feature-stat-value,
.card-title-main,
.card-type,
label,
select,
.primary-cta,
.secondary-cta {
  font-family: "Space Grotesk", sans-serif;
}

.section-kicker,
.hero-kicker,
.topbar-kicker,
.rail-mark,
.stat-label,
.signal-label,
.feature-stat-label,
.card-type {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.app-shell {
  position: relative;
  background: rgba(9, 16, 24, 0.1);
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  min-height: 100vh;
}

.app-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  padding: 1.2rem 0.9rem;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
}

.side-nav a {
  display: block;
  text-decoration: none;
  position: relative;
}

.nav-point {
  display: block;
  width: 14px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.side-nav a.is-current .nav-point {
  background: var(--accent);
  width: 32px;
  box-shadow: 0 0 15px rgba(109, 114, 255, 0.6);
}

.side-nav a:hover .nav-point {
  background: rgba(255, 255, 255, 0.6);
  width: 24px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nav-label {
  display: none;
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(740px, 60%, 940px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 2.2rem;
  background: rgba(13, 20, 31, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar:hover {
  background: rgba(13, 20, 31, 0.8);
  border-color: rgba(109, 114, 255, 0.3);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(109, 114, 255, 0.1);
}

.topbar-branding {
  display: flex;
  align-items: center;
}

.topbar-title-block {
  display: grid;
}

.topbar-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fff;
  text-shadow: 0 0 20px rgba(109, 114, 255, 0.3);
  white-space: nowrap;
  background: linear-gradient(135deg, #fff 0%, #aab0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.topbar-kicker,
.topbar-links a,
label,
.section-kicker,
.hero-chip,
.hero-aside-label,
.stat-label,
.meta-label,
.signal-label,
.card-code,
.card-type,
.metric-label,
.status-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.topbar-kicker {
  font-size: 0.74rem;
  font-weight: 700;
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 380px;
  max-width: 40vw;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-search:focus-within {
  width: 460px;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow:
    0 0 25px rgba(109, 114, 255, 0.25),
    inset 0 0 10px rgba(109, 114, 255, 0.05);
}

.topbar-search .material-symbols-outlined {
  color: var(--muted);
}

.topbar-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
}

.topbar-search input::placeholder {
  color: var(--muted);
}

.content-shell {
  width: min(1860px, calc(100% - 8rem));
  margin: 0 auto;
  padding: 1.9rem 0 3rem;
}

.hero-banner {
  position: relative;
  height: 100vh;
  overflow: hidden;
  box-shadow: var(--hero-shadow);
  margin-bottom: 0;
}

.hero-image,
.hero-scrim,
.hero-glow {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("./assets/hero-saturn-nasa.jpg");
  background-size: cover;
  background-position: 58% center;
  transform: scale(1.03);
  animation: hero-magnify 12s ease-in-out infinite alternate;
}

@keyframes hero-magnify {
  from {
    transform: scale(1.03) translate(0, 0);
  }

  to {
    transform: scale(1.09) translate(-1%, 1%);
  }
}

.hero-scrim {
  background:
    linear-gradient(
      90deg,
      rgba(4, 8, 14, 0.9) 0%,
      rgba(4, 8, 14, 0.68) 28%,
      rgba(4, 8, 14, 0.2) 58%,
      rgba(4, 8, 14, 0.58) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 8, 14, 0.18) 0%,
      rgba(4, 8, 14, 0.1) 48%,
      rgba(4, 8, 14, 0.8) 100%
    );
}

.hero-glow {
  background:
    radial-gradient(
      circle at 18% 42%,
      rgba(122, 162, 255, 0.2),
      transparent 28%
    ),
    radial-gradient(
      circle at 86% 18%,
      rgba(255, 213, 151, 0.14),
      transparent 22%
    );
}

.hero-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.6fr);
  gap: 3rem;
  align-items: stretch;
  width: min(1860px, calc(100% - 4rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: 8rem 0 5rem;
}

.hero-content,
.hero-aside {
  position: relative;
}

.hero-content {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.8rem;
  max-width: 82rem;
  padding-left: 2.5rem;
}

.hero-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #cddbf8;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: -0.4rem;
  box-shadow: 0 0 20px rgba(122, 162, 255, 0.1);
  animation: chip-pulse 4s ease-in-out infinite;
}

@keyframes chip-pulse {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.14);
    opacity: 1;
  }

  50% {
    border-color: var(--accent);
    opacity: 0.8;
  }
}

.hero-kicker {
  margin: 1.25rem 0 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-banner h1 {
  margin: 0;
  max-width: 18ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.7rem, 7.2vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: #fff;
  background: linear-gradient(135deg, #fff 40%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.hero-banner h1 span {
  display: block;
}

.hero-copy {
  max-width: 54rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  padding: 0 3.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.primary-cta {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(122, 162, 255, 0.25);
}

.primary-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(122, 162, 255, 0.45);
  background: var(--accent-strong);
}

.secondary-cta {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-aside {
  align-self: flex-end;
  display: grid;
  gap: 1.2rem;
  max-width: 25rem;
  margin-left: auto;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-aside-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.68);
}

.hero-aside-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-total {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 5vw, 4rem);
  line-height: 0.85;
  letter-spacing: -0.08em;
  color: #fff;
}

.hero-total-label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-stats {
  display: grid;
  gap: 0.65rem;
}

.hero-stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.64rem;
  font-weight: 700;
}

.hero-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.55;
}

/* Full-screen feature section */
.feature-fullscreen {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-bottom: 0;
}

.feature-fullscreen .feature-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.feature-fullscreen-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(4, 8, 14, 1) 0%,
      rgba(4, 8, 14, 0.4) 35%,
      transparent 100%
    ),
    linear-gradient(to right, rgba(4, 8, 14, 0.7) 0%, transparent 40%);
}

.feature-fullscreen-content {
  position: absolute;
  bottom: 6rem;
  left: 5rem;
  right: 5rem;
  z-index: 2;
  display: grid;
  gap: 5rem;
  width: calc(100% - 10rem);
  max-width: 1860px;
  margin: 0 auto;
}

.feature-fullscreen-content h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #fff;
  line-height: 0.9;
}

.feature-focal-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feature-fullscreen-content .feature-subtitle {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.feature-fullscreen-content .feature-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  border-top: none;
  padding-top: 0;
}

.feature-fullscreen-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 80ch;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.feature-stats {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.feature-stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.feature-stat-value {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.feature-media--atmosphere {
  background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuBrd6AIZnR2xQJBgXRth3-hd_Q7vKmsSqD9XxF-Edni9ymp_FBI6pHOwyAkPAsRqeBy84ZZGeINLDQ8rEXNGb7ZI5QzixxFktkpC5lZTarvgjaBqYvUITk76j1o1HRIR0hcWXBYwgEqH-jHtoN3KeNdEg4T_9IBX7VcZoD-tPqNuUO8vCdivbMXqYapzdmyjv9pAEIDQGRJP5e9h3C5JnKnxvLd9TNjU4taX_b3IjdLojwWfHyre3TsD7f0RdZ5o92Mui-9RKmI1oqk");
}

.feature-panel,
.status-card,
.skeleton-card {
  border: 1px solid var(--border);
  background: rgba(13, 20, 28, 0.62);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(20px) saturate(140%);
  transition:
    transform 300ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.archive-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 3.8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: #fff;
  background: linear-gradient(135deg, #fff 60%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.card-title-main {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.feature-copy p,
.results-summary,
.status-card p,
.metric-value,
.card-summary {
  color: var(--muted);
}

.feature-copy p,
.status-card p,
.card-summary {
  margin: 0;
  line-height: 1.7;
}

.feature-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.meta-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.signal-stack {
  display: grid;
  gap: 1.35rem;
}

.signal-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 7rem;
  padding: 1.4rem;
  border-radius: 1rem;
  flex: 1;
}

.signal-icon {
  display: grid;
  place-items: center;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 1rem;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  flex-shrink: 0;
}

.signal-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.signal-value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 1.3vw, 1.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

.signal-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.archive-section {
  position: relative;
  padding: 6rem 0;
  margin-top: 2rem;
}

.archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.archive-summary {
  display: grid;
  justify-items: end;
  gap: 0.3rem;
}

.results-summary {
  margin: 0;
  line-height: 1.45;
}

.control-bar {
  display: flex;
  gap: 2rem;
  align-items: center;
  width: fit-content;
  padding: 0.8rem 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.control-group--compact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

select {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

select:hover,
select:focus {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.4);
  outline: none;
  box-shadow: 0 0 15px rgba(109, 114, 255, 0.15);
}

.status-region {
  margin-bottom: 1rem;
}

.status-card {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
}

.status-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

.status-card--error {
  border-color: rgba(175, 72, 72, 0.25);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.body-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.body-card:hover {
  transform: translateY(-6px);
}

.card-media {
  position: relative;
  min-height: 19rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
}

.card-media-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(8, 11, 18, 0.08) 0%,
      rgba(8, 11, 18, 0.28) 38%,
      rgba(8, 11, 18, 0.92) 100%
    ),
    linear-gradient(
      90deg,
      rgba(8, 11, 18, 0.58) 0%,
      rgba(8, 11, 18, 0.16) 44%,
      rgba(8, 11, 18, 0.64) 100%
    );
}

.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle at top left,
    rgba(109, 114, 255, 0.18),
    transparent 40%
  );
}

.card-media-top,
.card-overlay,
.card-body {
  position: relative;
  z-index: 1;
}

.card-media-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card-code {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  background: rgba(17, 22, 31, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.63rem;
  font-weight: 700;
}

.card-overlay {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 5.6rem 0 0.1rem;
}

.card-type {
  display: inline-flex;
  width: fit-content;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.62rem;
  font-weight: 700;
}

.card-title-main {
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 2.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.94;
  max-width: 10ch;
  text-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.25rem 1.15rem 1.2rem;
  background:
    linear-gradient(
      180deg,
      rgba(12, 16, 25, 0.1) 0%,
      rgba(12, 16, 25, 0.72) 18%
    ),
    rgba(11, 15, 23, 0.86);
}

.card-summary {
  margin: 0;
  color: rgba(227, 233, 242, 0.72);
  font-size: 0.98rem;
  line-height: 1.65;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric-pill {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  min-height: 5.45rem;
  padding: 0.9rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.42);
}

.metric-value {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.body-card:hover .card-media-image {
  transform: scale(1.06);
}

.body-card:hover .card-title-main {
  transform: translateY(-1px);
}

.skeleton-card {
  padding: 1.1rem;
  background: var(--surface);
}

.skeleton-block,
.skeleton-line {
  display: block;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(24, 33, 38, 0.04) 25%,
    rgba(24, 33, 38, 0.1) 50%,
    rgba(24, 33, 38, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.skeleton-block {
  height: 15rem;
  margin-bottom: 1rem;
  border-radius: 1.2rem;
}

.skeleton-line {
  height: 0.9rem;
}

.skeleton-line + .skeleton-line {
  margin-top: 0.7rem;
}

.skeleton-line--short {
  width: 38%;
}

.skeleton-line--title {
  width: 72%;
  height: 1.3rem;
}

.skeleton-copy {
  margin-top: 1rem;
  color: var(--muted);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@media (max-width: 1200px) {
  .hero-frame,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    min-height: 44rem;
  }

  .hero-aside {
    max-width: 32rem;
    margin-left: 0;
    align-self: end;
  }
}

@media (max-width: 980px) {
  .topbar,
  .content-shell {
    width: min(calc(100% - 1.25rem), 1600px);
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .topbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .topbar,
  .topbar-branding,
  .topbar-tools {
    flex-wrap: wrap;
  }

  .topbar-search {
    min-width: min(100%, 34rem);
  }

  .feature-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .content-shell {
    width: calc(100% - 1rem);
    padding-top: 1rem;
  }

  .hero-banner,
  .archive-section,
  .feature-copy,
  .signal-card {
    padding: 1.15rem;
  }

  .hero-banner {
    min-height: 38rem;
  }

  .hero-banner h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .hero-frame {
    width: calc(100% - 1rem);
    padding: 1.5rem 0 1.2rem;
    gap: 1.2rem;
    align-items: end;
  }

  .hero-content {
    padding-left: 0;
  }

  .hero-stats,
  .metric-strip,
  .feature-meta {
    grid-template-columns: 1fr;
  }

  .archive-header,
  .archive-summary,
  .control-bar {
    display: grid;
    justify-items: start;
  }

  .control-group--compact,
  .topbar-search {
    width: 100%;
  }
}
