@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/jetbrains-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --surface: #f3f5f4;
  --card: #ffffff;
  --navy: #09243b;
  --ink: #102331;
  --muted: #4a5d69;
  --brand: #f2c800;
  --link: #064f7a;
  --line: #aeb9be;
  --radius: 4px;
  --radius-full: 999px;
  --max: 1280px;
  --read: 760px;
  --section-space: clamp(4rem, 8vw, 7rem);
  --spring-snappy: linear(
    0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%,
    0.938 16.7%, 1.017 19.4%, 1.067 22.5%, 1.089 26%,
    1.079 30.3%, 1.049 36%, 1.024 42.6%, 1.011 50.3%,
    1.004 59.2%, 1.001 69.3%, 1
  );
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--navy);
  font-weight: 800;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 20px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.brand-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 220px;
  max-height: 54px;
  object-fit: contain;
}

.brand-zone > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-header nav a,
.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: #49606e;
}

.kinetic-hero {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  min-height: max(680px, calc(100svh - 142px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: clamp(24px, 5vw, 72px);
  overflow: hidden;
  background: var(--surface);
}

.hero-copy {
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 11vh, 136px) 0;
}

.eyebrow,
.card-index {
  display: inline-flex;
  width: auto;
  align-items: center;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 16px;
  padding: 6px 10px;
}

.hero-copy h1,
.route-intro h1,
.article-shell h1 {
  max-width: 1024px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-copy h1 {
  max-width: 10.5ch;
  font-size: clamp(4rem, 8.2vw, 8.2rem);
  line-height: 0.82;
  letter-spacing: -0.085em;
}

.hero-copy p:not(.eyebrow) {
  max-width: 46ch;
  margin: clamp(28px, 5vh, 52px) 0 28px;
  font-size: clamp(16px, 1.5vw, 20px);
}

.action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.45s var(--ease-snap),
    box-shadow 0.45s var(--ease-snap),
    background-color 0.35s var(--ease-snap);
}

.action:hover {
  background: #d9b400;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(9 36 59 / 14%);
}

.action:active {
  transform: translateY(0) scale(0.97);
}

.orbit {
  position: relative;
  min-height: 460px;
  align-self: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  isolation: isolate;
  transition: transform 0.65s var(--spring-snappy);
}

.orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 55% 42%, rgb(242 200 0 / 12%), transparent 48%);
  pointer-events: none;
}

.orbit:hover {
  transform: translateY(-4px);
}

.orbit span {
  position: absolute;
  border: 4px solid var(--brand);
  border-radius: 50%;
  transition: transform 0.75s var(--spring-snappy);
}

.orbit:hover span:nth-child(1) {
  transform: translate3d(-6px, 3px, 0);
}

.orbit:hover span:nth-child(2) {
  transform: translate3d(8px, -5px, 0);
}

.orbit:hover span:nth-child(3) {
  transform: translate3d(-3px, -7px, 0);
}

.orbit span:nth-child(1) {
  width: 520px;
  height: 520px;
  top: -70px;
  left: 15%;
}

.orbit span:nth-child(2) {
  width: 350px;
  height: 350px;
  top: 10px;
  left: 32%;
  border-style: dashed;
}

.orbit span:nth-child(3) {
  width: 180px;
  height: 180px;
  top: 90px;
  left: 47%;
  background: var(--brand);
}

.orbit b {
  position: absolute;
  right: 7%;
  bottom: 2%;
  color: var(--brand);
  font-size: clamp(5rem, 14vw, 13rem);
  line-height: 0.68;
  letter-spacing: -0.12em;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-reveal {
  animation: hero-enter 0.62s var(--spring-snappy) both;
}

.hero-reveal-1 {
  animation-delay: 80ms;
}

.hero-reveal-2 {
  animation-delay: 180ms;
}

.hero-reveal-3 {
  animation-delay: 300ms;
}

.hero-reveal-4 {
  animation-delay: 420ms;
}

.ticker {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 var(--section-space);
  overflow: hidden;
  background: var(--surface);
}

.ticker span {
  flex: 0 1 auto;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-section,
.guide-band,
.article-shell,
.route-intro,
.site-footer {
  position: relative;
}

.signal-section,
.route-intro,
.article-shell {
  padding: var(--section-space) 24px;
}

.signal-section::before,
.guide-band::before,
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.signal-section > header,
.signal-grid,
.guide-band,
.route-intro,
.article-shell,
.breadcrumb,
.site-footer {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.signal-section > header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 768px;
  margin-right: auto;
  margin-bottom: 64px;
  margin-left: auto;
}

.signal-section h2,
.guide-band h2 {
  max-width: 768px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.signal-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
}

.card-index {
  align-self: start;
  justify-content: center;
  min-width: 36px;
  padding: 6px 8px;
}

.card-image {
  grid-column: 2;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.signal-card:hover .card-image img {
  transform: scale(1.025);
}

.signal-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.signal-card h3 a {
  color: var(--navy);
  text-decoration-thickness: 1px;
}

.signal-card p {
  margin: 16px 0 0;
}

.signal-card p:last-child {
  color: var(--muted);
}

.guide-band {
  display: grid;
  gap: 64px;
  padding: var(--section-space) 24px;
  background: var(--surface);
  color: var(--ink);
}

.guide-band > div {
  max-width: 768px;
}

.guide-band ol {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-band li {
  margin: 0;
}

.guide-band a {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
}

.guide-band a span {
  display: inline-flex;
  width: auto;
  padding: 6px 8px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--navy);
  font-size: 12px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  padding: 18px 24px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--navy);
}

.route-intro > p:not(.eyebrow) {
  max-width: 65ch;
  margin: 36px 0 0;
  font-size: 18px;
}

.route-intro aside {
  max-width: 760px;
  margin-top: 32px;
  padding: 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
}

.compact {
  padding-top: 0;
}

.compact::before {
  content: none;
}

.article-shell header {
  max-width: 1024px;
}

.article-shell h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
}

.lede {
  max-width: 70ch;
  margin: 36px 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
}

.article-lead {
  width: min(100%, 1100px);
  max-height: 660px;
  margin: 52px 0;
  border-radius: var(--radius);
  object-fit: cover;
}

.prose {
  max-width: var(--read);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

.prose a:has(i) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.prose h2,
.prose h3 {
  margin: 48px 0 16px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  line-height: 1.1;
}

.prose img {
  margin: 28px 0;
  border-radius: var(--radius);
}

.prose blockquote {
  margin: 32px 0;
  padding: 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  font-size: 20px;
}

.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

.prose td,
.prose th {
  padding: 10px;
  border: 1px solid var(--line);
}

.site-footer {
  display: grid;
  gap: 28px;
  padding: 64px 24px 32px;
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 4px solid var(--brand);
  outline-offset: 4px;
}

@media (min-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .kinetic-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  }

  .hero-copy {
    padding-block: clamp(88px, 12vh, 144px);
  }

  .orbit {
    min-height: min(68vh, 650px);
  }

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

  .guide-band {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 1200px) {
  .signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .brand-zone {
    align-items: flex-start;
    flex-direction: column;
  }

  .kinetic-hero,
  .ticker {
    width: min(100% - 32px, var(--max));
  }

  .kinetic-hero {
    min-height: auto;
    gap: 0;
  }

  .hero-copy {
    min-height: calc(100svh - 210px);
    padding: 56px 0 48px;
  }

  .hero-copy h1 {
    max-width: 9ch;
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .orbit {
    min-height: 310px;
  }

  .orbit span:nth-child(1) {
    left: -24%;
  }

  .orbit span:nth-child(2) {
    left: 0;
  }

  .orbit span:nth-child(3) {
    left: 24%;
  }

  .guide-band a {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .hero-reveal {
    animation: none;
  }
}
