:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-deep: #09111b;
  --pane: rgba(9, 15, 24, 0.86);
  --pane-strong: rgba(11, 18, 29, 0.96);
  --pane-soft: rgba(14, 23, 37, 0.82);
  --line: rgba(122, 143, 168, 0.28);
  --line-strong: rgba(242, 235, 221, 0.14);
  --text: #f2ebdd;
  --muted: #a8b2c3;
  --subtle: #7f8ca1;
  --cyan: #67d6ff;
  --cyan-soft: rgba(103, 214, 255, 0.16);
  --ember: #ff6b39;
  --ember-soft: rgba(255, 107, 57, 0.18);
  --max-width: 1240px;
  --shadow: 0 26px 100px rgba(0, 0, 0, 0.42);
  --heading: "Avenir Next Condensed", "Avenir Next", "Arial Narrow", sans-serif;
  --body: "STIX Two Text", "Iowan Old Style", "Palatino Linotype", serif;
  --ui: "Avenir", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: var(--body);
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 107, 57, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(103, 214, 255, 0.15), transparent 30%),
    linear-gradient(140deg, #04070d 0%, #09111b 42%, #05070b 100%);
}

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

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 84%);
}

body::after {
  background:
    linear-gradient(122deg, transparent 0%, transparent 47%, rgba(255, 255, 255, 0.05) 47.4%, transparent 48%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 32%),
    radial-gradient(circle at 22% 76%, rgba(103, 214, 255, 0.07), transparent 28%);
  z-index: -1;
}

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

a {
  color: inherit;
}

button,
a {
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-family: var(--ui);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.section {
  margin-top: 4.5rem;
}

.pane {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 18, 28, 0.96), rgba(8, 12, 20, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pane::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 650ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0 0.9rem;
  backdrop-filter: blur(0);
}

.topbar.is-scrolled {
  backdrop-filter: blur(18px);
}

.topbar.is-scrolled::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  background: rgba(5, 8, 13, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: 27rem;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.nav a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 22, 0.62);
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 214, 255, 0.34);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  border-radius: 2rem;
}

.hero-copy {
  padding: clamp(2rem, 4vw, 3rem);
}

.hero-copy::before {
  content: "";
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 57, 0.25), transparent 68%);
  pointer-events: none;
}

.hero-panel {
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(11, 17, 27, 0.98), rgba(8, 12, 20, 0.95)),
    url("assets/brand/logo-mark.svg") right 1.5rem bottom 1.5rem / 12rem auto no-repeat;
}

.panel-head,
.cards-header,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.panel-label {
  align-self: flex-start;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.84rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--cyan);
  font-family: var(--ui);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3,
summary {
  margin: 0;
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.7rem, 7vw, 6.2rem);
  line-height: 0.88;
}

h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 0.93;
}

h3 {
  font-size: 1.7rem;
  line-height: 0.98;
}

p,
li {
  color: var(--muted);
  line-height: 1.66;
}

em {
  color: var(--text);
}

.hero-dek {
  max-width: 58ch;
  margin-top: 1.15rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(90deg, rgba(103, 214, 255, 0.18), rgba(255, 107, 57, 0.22));
  border-color: rgba(103, 214, 255, 0.34);
  color: var(--text);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.hero-note {
  max-width: 64ch;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.signal-stack {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.6rem;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-row span {
  color: var(--subtle);
  font-family: var(--ui);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.signal-row strong {
  color: var(--text);
  font-family: var(--heading);
  font-size: 1.2rem;
  text-align: right;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.pulse-card,
.snapshot-card,
.card-entry,
.overview-panel,
.source-panel,
.disclaimer {
  border-radius: 1.4rem;
}

.pulse-card {
  position: relative;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(9, 14, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pulse-card span,
.snapshot-kicker {
  display: inline-flex;
  color: var(--subtle);
  font-family: var(--ui);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.pulse-card strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--text);
  font-family: var(--heading);
  font-size: 2.3rem;
}

.pulse-card p {
  margin: 0.5rem 0 0;
  font-size: 0.94rem;
}

.section-heading {
  align-items: end;
}

.section-heading p {
  max-width: 64ch;
}

.snapshot-grid,
.overview-grid,
.sources-grid,
.faq-list {
  display: grid;
  gap: 1rem;
}

.snapshot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.snapshot-card {
  padding: 1.35rem;
}

.snapshot-card h3 {
  margin-top: 0.65rem;
  font-size: 1.55rem;
}

.cards-header {
  align-items: end;
}

.cards-header-meta {
  display: grid;
  justify-items: end;
  gap: 0.5rem;
  text-align: right;
}

.cards-header-meta p {
  margin: 0;
  color: var(--text);
  font-family: var(--ui);
  font-weight: 600;
}

.cards-header-meta a {
  color: var(--cyan);
  font-family: var(--ui);
  text-decoration: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.filter-button {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 23, 0.75);
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--text);
  border-color: rgba(103, 214, 255, 0.35);
  background: linear-gradient(90deg, rgba(103, 214, 255, 0.12), rgba(255, 107, 57, 0.13));
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card-entry {
  padding: 1.35rem;
}

.card-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(103, 214, 255, 0.08), transparent 28%),
    linear-gradient(315deg, rgba(255, 107, 57, 0.08), transparent 26%);
  pointer-events: none;
}

.card-entry:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 214, 255, 0.28);
}

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

.card-number {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--heading);
  font-size: 1.15rem;
}

.card-rarity {
  color: var(--cyan);
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-entry h3 {
  margin-top: 1rem;
}

.card-type {
  margin: 0.45rem 0 0;
  color: var(--text);
  font-family: var(--ui);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.card-note {
  margin-top: 0.8rem;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.card-links a {
  color: var(--text);
  font-family: var(--ui);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.card-links a:hover,
.cards-header-meta a:hover {
  color: var(--cyan);
}

.cards-footnote,
.empty-state {
  margin-top: 1rem;
}

.empty-state {
  padding: 1rem 1.2rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  font-family: var(--ui);
}

.overview-grid {
  grid-template-columns: 1fr 1.15fr 1fr;
  margin-top: 1.5rem;
}

.overview-panel {
  padding: 1.4rem;
}

.fact-list,
.source-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.fact-list li,
.source-list li {
  margin-top: 0.6rem;
}

.highlight-panel {
  background:
    radial-gradient(circle at 85% 14%, rgba(255, 107, 57, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(13, 21, 32, 0.98), rgba(8, 12, 20, 0.94));
}

blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(103, 214, 255, 0.3);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.1rem;
  line-height: 1.6;
}

.faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.faq-list details {
  padding: 1.2rem 1.3rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.45rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0.9rem 0 0;
}

.sources-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.source-panel,
.disclaimer {
  padding: 1.3rem;
}

.source-list a {
  color: var(--text);
  text-decoration: none;
}

.source-list a:hover {
  color: var(--cyan);
}

.disclaimer {
  margin-top: 1rem;
  border-color: rgba(255, 107, 57, 0.16);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  margin: 0;
  font-family: var(--ui);
  font-size: 0.92rem;
}

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

  .snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar,
  .section-heading,
  .cards-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards-header-meta {
    justify-items: start;
    text-align: left;
  }

  .cards-grid,
  .faq-list,
  .sources-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(var(--max-width), calc(100% - 1rem));
  }

  .section {
    margin-top: 3.5rem;
  }

  .hero-copy,
  .hero-panel {
    border-radius: 1.5rem;
  }

  .pulse-grid,
  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 0.55rem;
  }

  .nav a,
  .filter-button {
    width: auto;
  }
}

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

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

  button,
  a {
    transition: none;
  }
}
