:root {
  --ink: #101417;
  --muted: #69737d;
  --line: rgba(16, 20, 23, 0.12);
  --paper: #f5f2ec;
  --chalk: #fffdf8;
  --teal: #0e7c86;
  --amber: #d48a2f;
  --violet: #6050a8;
  --graphite: #171b20;
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
}

body::before {
  background-image: url("assets/paradox-logo-full.png");
  background-position: right clamp(18px, 6vw, 96px) top 104px;
  background-repeat: no-repeat;
  background-size: min(72vw, 820px);
  content: "";
  inset: 0;
  opacity: 0.055;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.site-header {
  align-items: center;
  background: rgba(245, 242, 236, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  gap: 10px;
}

.brand-mark {
  background: var(--ink);
  border: 1px solid rgba(16, 20, 23, 0.16);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 20, 23, 0.16);
  display: block;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
}

nav a {
  color: rgba(16, 20, 23, 0.7);
  font-size: 0.88rem;
  font-weight: 600;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  min-height: 94vh;
  padding: 96px clamp(18px, 4vw, 56px) 40px;
}

.hero-copy {
  align-self: end;
  max-width: 740px;
  padding: 0 28px 8vh 0;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2,
h3,
blockquote {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.82;
  margin: 0;
  max-width: 780px;
}

.lede {
  color: rgba(16, 20, 23, 0.74);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.55;
  margin: 34px 0 0;
  max-width: 660px;
}

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

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.button.primary {
  background: var(--ink);
  color: var(--chalk);
}

.button.secondary {
  background: rgba(255, 253, 248, 0.58);
}

.hero-visual {
  background:
    radial-gradient(circle at 52% 48%, rgba(14, 124, 134, 0.34), transparent 23%),
    radial-gradient(circle at 30% 25%, rgba(212, 138, 47, 0.24), transparent 28%),
    linear-gradient(140deg, #11161b, #26212b 48%, #e7e0d4);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(16, 20, 23, 0.24);
  min-height: 620px;
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease;
}

.hero-visual::before {
  background:
    linear-gradient(90deg, rgba(17, 22, 27, 0.24), rgba(17, 22, 27, 0.02) 45%, rgba(245, 242, 236, 0.18)),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-visual img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.reactor {
  aspect-ratio: 1;
  left: 50%;
  max-width: 590px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76%;
  z-index: 2;
}

.ring,
.core,
.beam {
  position: absolute;
}

.ring {
  border: 1px solid rgba(255, 253, 248, 0.55);
  border-radius: 50%;
  inset: 8%;
}

.ring-one {
  animation: spin 22s linear infinite;
  border-color: rgba(255, 253, 248, 0.7);
  box-shadow: inset 0 0 42px rgba(14, 124, 134, 0.24);
}

.ring-two {
  animation: spin 18s linear infinite reverse;
  border-color: rgba(212, 138, 47, 0.72);
  inset: 20%;
  transform: rotateX(62deg) rotateZ(25deg);
}

.ring-three {
  animation: spin 28s linear infinite;
  border-color: rgba(151, 215, 214, 0.7);
  inset: 31%;
  transform: rotateY(64deg) rotateZ(-20deg);
}

.core {
  background: radial-gradient(circle, #fffdf8 0 9%, #d48a2f 10% 22%, #0e7c86 23% 42%, transparent 43%);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(14, 124, 134, 0.78);
  inset: 39%;
}

.beam {
  background: linear-gradient(90deg, transparent, rgba(255, 253, 248, 0.74), transparent);
  height: 1px;
  left: 12%;
  right: 12%;
  top: 50%;
}

.beam-a {
  transform: rotate(27deg);
}

.beam-b {
  transform: rotate(-42deg);
}

.beam-c {
  transform: rotate(88deg);
}

.lattice {
  bottom: 34px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, 12px);
  position: absolute;
  right: 34px;
  z-index: 2;
}

.lattice span {
  background: rgba(255, 253, 248, 0.78);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(151, 215, 214, 0.75);
  height: 8px;
  width: 8px;
}

.metrics,
.section {
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
}

.metrics {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.metrics article {
  border-right: 1px solid var(--line);
  padding: 28px 30px 30px 0;
}

.metrics article:last-child {
  border-right: 0;
}

.metrics span,
.timeline span,
.tag {
  color: var(--amber);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.12rem;
}

.metrics p,
.program-card p,
.panel p,
.timeline p {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding-bottom: clamp(72px, 10vw, 128px);
  padding-top: clamp(72px, 10vw, 128px);
}

.split {
  display: grid;
  gap: clamp(34px, 5vw, 72px);
  grid-template-columns: 0.78fr 1.22fr;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 5rem);
  line-height: 0.96;
  margin: 0;
}

.program-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-card,
.panel,
.timeline article {
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.program-card {
  min-height: 260px;
  padding: 26px;
}

.project-card-link {
  display: block;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.project-card-link:hover {
  background: var(--chalk);
  border-color: rgba(14, 124, 134, 0.42);
  transform: translateY(-3px);
}

.image-card {
  overflow: hidden;
  padding: 0;
}

.image-card img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.image-card .tag,
.image-card h3,
.image-card p {
  margin-left: 26px;
  margin-right: 26px;
}

.image-card .tag {
  margin-top: 24px;
}

.image-card p:last-child {
  margin-bottom: 26px;
}

h3 {
  font-size: 1.38rem;
  line-height: 1.08;
  margin: 0 0 18px;
}

.section-heading {
  margin-bottom: 38px;
  max-width: 970px;
}

.platform {
  background: var(--graphite);
  color: var(--chalk);
}

.platform .eyebrow {
  color: #8fcfca;
}

.platform h2 {
  max-width: 980px;
}

.platform-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
}

.panel {
  min-height: 330px;
  padding: 28px;
}

.dark-panel {
  background: #101417;
  border-color: rgba(255, 255, 255, 0.12);
}

.dark-panel ul {
  color: rgba(255, 253, 248, 0.76);
  line-height: 1.9;
  margin: 0;
  padding-left: 18px;
}

.signal-panel {
  background:
    radial-gradient(circle at 82% 20%, rgba(212, 138, 47, 0.28), transparent 26%),
    linear-gradient(140deg, rgba(14, 124, 134, 0.32), rgba(255, 253, 248, 0.08));
  border-color: rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.signal-line {
  background: linear-gradient(90deg, #8fcfca, transparent);
  display: block;
  height: 1px;
  margin-bottom: 18px;
  width: 100%;
}

.signal-line.short {
  width: 46%;
}

.signal-line.mid {
  width: 72%;
}

.light-panel {
  background: var(--chalk);
  color: var(--ink);
}

.timeline {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.timeline article {
  min-height: 245px;
  padding: 24px;
}

.manifesto {
  background: var(--chalk);
}

blockquote {
  font-size: clamp(2.6rem, 6vw, 7.2rem);
  line-height: 0.94;
  margin: 0;
  max-width: 1200px;
}

.contact {
  align-items: end;
  background: var(--ink);
  color: var(--chalk);
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr auto;
}

.contact .eyebrow {
  color: #8fcfca;
}

.contact h2 {
  max-width: 880px;
}

.contact-link {
  align-items: center;
  border-bottom: 1px solid rgba(255, 253, 248, 0.55);
  display: inline-flex;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  font-weight: 700;
  gap: 14px;
  padding-bottom: 8px;
  white-space: nowrap;
}

.project-hero {
  align-items: end;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  min-height: 88vh;
  padding: 112px clamp(18px, 4vw, 56px) clamp(34px, 5vw, 72px);
}

.project-hero h1 {
  font-size: clamp(3.4rem, 7.4vw, 8rem);
}

.project-hero img {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(16, 20, 23, 0.22);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.fusion-hero img {
  aspect-ratio: 16 / 10;
}

.copy-stack {
  color: rgba(16, 20, 23, 0.76);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.7;
}

.copy-stack p {
  margin: 0 0 22px;
}

.source-link {
  border-bottom: 1px solid rgba(14, 124, 134, 0.42);
  color: var(--teal);
  display: inline-flex;
  font-weight: 800;
  padding-bottom: 4px;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@media (max-width: 980px) {
  .hero,
  .project-hero,
  .split,
  .platform-grid,
  .timeline,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding: 70px 0 44px;
  }

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

  .project-hero {
    min-height: auto;
  }

  .metrics,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .metrics article {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding-left: 0;
  }

  .metrics article:last-child {
    border-bottom: 0;
  }

  .contact {
    align-items: start;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    gap: 16px;
    position: static;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    padding-top: 20px;
  }

  .project-hero {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(3.4rem, 19vw, 5.2rem);
  }

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

  .button {
    width: 100%;
  }

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

  .program-card,
  .panel,
  .timeline article {
    min-height: auto;
  }

  .contact-link {
    white-space: normal;
  }
}
