:root {
  --dm-ink: #05070d;
  --dm-space: #080c14;
  --dm-deep: #101624;
  --dm-text: #e2ddce;
  --dm-muted: #b9c4cf;
  --dm-cyan: #4cc9c9;
  --dm-gold: #ffc845;
  --dm-rose: #f26d7d;
  --dm-line: rgba(245, 242, 233, 0.18);
  --dm-band: rgba(5, 7, 13, 0.82);
  --dm-band-light: rgba(16, 22, 36, 0.9);

}

html {
  background: var(--dm-ink);
  scroll-behavior: smooth;
}

body.dark-matter-page {
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--dm-ink);
  color: var(--dm-text);
  font-family: var(--bs-font-sans-serif);
}

.dark-matter-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: var(--dm-ink);
  opacity: 0;
  pointer-events: none;
}

.cosmos-page {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.cosmos-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.18) 0%, rgba(5, 7, 13, 0.8) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0, rgba(255, 255, 255, 0.028) 1px, transparent 1px, transparent 72px);
  pointer-events: none;
}

.cosmos-hero {
  display: grid;
  align-items: end;
  min-height: 96svh;
  padding: 9rem 0 7rem;
}

.cosmos-hero__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.cosmos-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  color: var(--dm-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.cosmos-kicker::before {
  width: 2.7rem;
  height: 1px;
  content: "";
  background: var(--dm-cyan);
}

.cosmos-hero h1 {
  max-width: 980px;
  margin: 0;
  color: var(--dm-text);
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 5.5vw, 6.25rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
}
h2 {
  font-family: var(--font-serif);
}

.cosmos-hero__dek {
  max-width: 760px;
  margin: 1.5rem 0 0;
  color: var(--dm-muted);
  font-size: 1.35rem;
  line-height: 1.45;
}

.cosmos-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin-top: 2rem;
  color: var(--dm-text);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cosmos-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

/* .cosmos-hero__meta span::before {
  width: 0.45rem;
  height: 0.45rem;
  content: "";
  border-radius: 50%;
  background: var(--dm-gold);
  box-shadow: 0 0 16px rgba(255, 200, 69, 0.8);
} */

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 4rem;
  color: var(--dm-muted);
  font-size: 0.82rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-cue::after {
  width: 4.8rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--dm-muted), transparent);
}

.article-band {
  width: 100%;
  background: var(--dm-band);
  backdrop-filter: blur(10px);
}

.article-band--light {
  background: var(--dm-band-light);
}

.article-copy {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
}

.article-copy--wide {
  width: min(1040px, calc(100% - 2rem));
}

.article-copy p,
.article-copy li {
  color: rgba(245, 242, 233, 0.88);
  font-family: var(--dm-serif);
  font-size: 1.22rem;
  line-height: 1.75;
}

.article-copy p {
  margin: 0 0 1.5rem;
}

.article-copy a {
  color: var(--dm-cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.article-copy h2 {
  margin: 0 0 1.4rem;
  color: var(--dm-text);
  font-family: var(--dm-serif);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.article-copy .lead {
  color: var(--dm-text);
  font-size: 1.55rem;
  line-height: 1.52;
}

.article-band--intro {
  background: rgba(5, 7, 13, 0.62);
  backdrop-filter: none;
}

.intro-feature {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 820px;
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.intro-feature__copy {
  position: relative;
  z-index: 2;
  margin: 0 0 0 max(1rem, calc((100vw - 1180px) / 2));
  border-left: 3px solid rgba(76, 201, 201, 0.7);
  background: rgba(0, 0, 0, 0.30);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(5px);
}

.intro-feature__copy.article-copy {
  padding: clamp(1.6rem, 3vw, 3rem);
}

.intro-feature__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: calc(50vw + 200px);
  margin: 0;
}

.intro-feature__media::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.8) 0%, rgba(5, 7, 13, 0.18) 28%, rgba(5, 7, 13, 0) 58%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.16), rgba(5, 7, 13, 0.46));
  pointer-events: none;
}

.intro-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Wide-screen experiment: remove this block to restore the right-edge image. */
@media (min-width: 1900px) {
  .intro-feature {
    width: min(1680px, calc(100% - 4rem));
    margin: 0 auto;
  }

  .intro-feature__copy {
    margin-left: 0;
  }

  .intro-feature__media {
    width: calc(50% + 280px);
  }
}

.simulation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 3rem;
  align-items: center;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.simulation-panel__visual {
  position: relative;
  min-height: 440px;
  border-top: 1px solid var(--dm-line);
  border-bottom: 1px solid var(--dm-line);
  background:
    linear-gradient(90deg, rgba(76, 201, 201, 0.16), transparent 52%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 42px);
}

.simulation-panel__visual::before,
.simulation-panel__visual::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(76, 201, 201, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.simulation-panel__visual::before {
  top: 46%;
  left: 48%;
  width: 18rem;
  height: 18rem;
}

.simulation-panel__visual::after {
  top: 46%;
  left: 48%;
  width: 7rem;
  height: 7rem;
  border-color: rgba(255, 200, 69, 0.72);
  box-shadow: 0 0 38px rgba(255, 200, 69, 0.12);
}

.simulation-panel__trace {
  position: absolute;
  height: 1px;
  background: rgba(242, 109, 125, 0.7);
  transform-origin: left center;
}

.simulation-panel__trace:nth-child(1) {
  top: 24%;
  left: 15%;
  width: 60%;
  transform: rotate(21deg);
}

.simulation-panel__trace:nth-child(2) {
  top: 51%;
  left: 8%;
  width: 76%;
  transform: rotate(-9deg);
}

.simulation-panel__trace:nth-child(3) {
  top: 72%;
  left: 23%;
  width: 58%;
  transform: rotate(14deg);
}

.simulation-panel__node {
  position: absolute;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--dm-cyan);
  box-shadow: 0 0 24px rgba(76, 201, 201, 0.9);
}

.simulation-panel__node:nth-child(4) {
  top: 22%;
  left: 16%;
}

.simulation-panel__node:nth-child(5) {
  top: 48%;
  left: 49%;
  background: var(--dm-gold);
  box-shadow: 0 0 24px rgba(255, 200, 69, 0.9);
}

.simulation-panel__node:nth-child(6) {
  top: 72%;
  left: 82%;
  background: var(--dm-rose);
  box-shadow: 0 0 24px rgba(242, 109, 125, 0.9);
}

.simulation-panel__copy p {
  color: rgba(245, 242, 233, 0.88);
  font-family: var(--dm-serif);
  font-size: 1.18rem;
  line-height: 1.7;
}

.data-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 5.5rem;
}

.data-strip__item {
  min-height: 11rem;
  padding: 1.3rem;
  border-top: 1px solid var(--dm-line);
  border-bottom: 1px solid var(--dm-line);
  background: rgba(255, 255, 255, 0.035);
}

.data-strip__label {
  margin: 0 0 1.2rem;
  color: var(--dm-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.data-strip__value {
  margin: 0;
  color: var(--dm-text);
  font-family: var(--dm-serif);
  font-size: 2.25rem;
  line-height: 1;
}

.data-strip__note {
  margin: 1rem 0 0;
  color: var(--dm-muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.quote-band {
  display: grid;
  align-items: center;
  border-top: 1px solid var(--dm-line);
  border-bottom: 1px solid var(--dm-line);
  background: rgba(5, 7, 13, 0.56);
}

.quote-band blockquote {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  color: var(--dm-text);
  font-family: var(--dm-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.quote-band cite {
  display: block;
  margin-top: 1.4rem;
  color: var(--dm-cyan);
  font-family: var(--dm-sans);
  font-size: 0.85rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.toc {
  width: 100%;
  padding: 3rem 1rem 4rem;
  background: var(--dm-ink);
  text-align: center;
}

.toc .btn {
  border-color: var(--dm-cyan);
  background: var(--dm-cyan);
  color: #031014;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 1rem;
  border-top: 1px solid var(--dm-line);
  background: #03050a;
  color: var(--dm-muted);
}

.footer a {
  color: var(--dm-text);
}

.footer ul {
  gap: 1.2rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.footer .copyright {
  text-align: center;
}

@media (max-width: 900px) {

  .intro-feature {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0 0 4.5rem;
  }

  .intro-feature__media {
    position: relative;
    order: 0;
    width: 100%;
    height: clamp(320px, 76vw, 560px);
  }

  .intro-feature__copy {
    order: 1;
    width: min(620px, calc(100% - 2rem));
    margin: -4.5rem auto 0;
  }

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

  .data-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {

  .cosmos-hero {
    min-height: 100svh;
    padding: 10rem 0 4rem;
  }


  .cosmos-hero__dek,
  .article-copy .lead {
    font-size: 1.2rem;
  }

  .intro-feature__copy.article-copy {
    padding: 1.5rem;
  }

  .article-copy p,
  .article-copy li {
    font-size: 1.08rem;
  }

  .article-copy h2 {
    font-size: 2.15rem;
  }

  .simulation-panel {
    padding: 4rem 0;
  }

  .simulation-panel__visual {
    min-height: 320px;
  }

}
blockquote small {
  font-size: 2rem;
}

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

  .dark-matter-canvas {
    opacity: 0.85;
  }
}
figcaption {
    font-size: 1.125rem;
    line-height: 1.2;
}
