:root {
  color-scheme: dark;
  --page: #111612;
  --surface: #171e18;
  --surface-hover: #1c251d;
  --line: #303b31;
  --ink: #f0f2e8;
  --muted: #aab3a6;
  --green: #c4e695;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Manrope', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 500 1rem/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
button { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, iframe:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
section[id], footer[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(100% - 96px, 1232px); margin-inline: auto; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .085em; }
.skip { position: fixed; z-index: 2; top: .75rem; left: .75rem; padding: .5rem 1rem; background: var(--green); color: var(--page); transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: .65rem; font-size: 1rem; font-weight: 800; white-space: nowrap; }
.brand span { margin-left: -.4rem; color: var(--green); }
nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.7rem); color: var(--muted); font-size: .86rem; font-weight: 700; }
nav a:hover, .footer-base a:hover { color: var(--green); }
.edition { justify-self: end; color: var(--green); border: 1px solid #43523b; padding: .43rem .75rem; font-size: .69rem; white-space: nowrap; }
.edition:hover { background: var(--surface-hover); }
.edition span { margin-left: .4rem; }

.hero { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 77% 46%, #222d20 0%, #161d16 39%, var(--page) 74%); }
.hero-inner { display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; column-gap: clamp(22px, 4.1vw, 64px); padding-block: clamp(66px, 7vw, 111px); }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: clamp(.62rem, 1.1vw, .75rem); font-weight: 500; color: var(--green); }
.signal { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #c4e6951c; margin-left: 4px; flex: none; }
h1 { margin-block: .48rem .25rem; font-size: clamp(2.85rem, 6.08vw, 6.25rem); line-height: 1.05; font-weight: 800; letter-spacing: -.077em; }
h1 span { color: var(--green); }
.subtitle { color: var(--green); font-size: clamp(1.26rem, 2.1vw, 1.9rem); line-height: 1.25; font-weight: 700; letter-spacing: -.035em; }
.intro { max-width: 49ch; margin-block: 1.42rem 1.8rem; color: var(--muted); font-size: clamp(.93rem, 1.24vw, 1.06rem); line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .62rem; min-height: 46px; padding: .55rem .95rem; border: 1px solid transparent; border-radius: 5px; font-size: .84rem; font-weight: 800; transition: background-color .18s, border-color .18s; }
.primary { background: var(--green); color: #182014; }
.primary:hover { background: #d4f4aa; }
.secondary { border-color: #53624e; color: var(--ink); }
.secondary:hover { border-color: var(--green); background: var(--surface-hover); }
.play-glyph { display: inline-block; width: .63em; height: .75em; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.terrain { min-width: 0; }
.terrain-plane { position: relative; border: 1px solid #4c6347; border-radius: 5px; background: #19261b; }
.terrain-plane::after { position: absolute; inset: -1px; content: ''; pointer-events: none; background: linear-gradient(var(--green), var(--green)) left top/13px 1px, linear-gradient(var(--green), var(--green)) left top/1px 13px, linear-gradient(var(--green), var(--green)) right bottom/13px 1px, linear-gradient(var(--green), var(--green)) right bottom/1px 13px; background-repeat: no-repeat; }
.terrain img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 460; }
.terrain figcaption { display: flex; justify-content: space-between; gap: .5rem; margin-top: .7rem; color: var(--muted); font-size: .66rem; }

.section { padding-block: clamp(57px, 6vw, 86px); }
.section-kicker { margin-bottom: .48rem; font-size: .74rem; font-weight: 500; color: var(--muted); }
.section-kicker span { color: var(--green); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .65rem 2rem; margin-bottom: 1.65rem; }
h2 { font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.15; font-weight: 800; letter-spacing: -.055em; }
.section-head > p { max-width: 39ch; color: var(--muted); font-size: .91rem; }
.briefing-grid { display: grid; grid-template-columns: 1.23fr 1fr; gap: .95rem; }
.video-card { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.video-card:focus-within, .video-card:hover { border-color: #596d50; }
.featured { grid-row: span 2; grid-template-rows: 1fr auto; }
.compact { grid-template-columns: 38% 1fr; align-content: stretch; }
.screen { position: relative; min-height: 100%; display: grid; place-items: center; isolation: isolate; background-color: #233322; background-position: center; background-size: cover; }
.featured .screen { min-height: 240px; }
.screen-topo { background-image: linear-gradient(90deg, #14201780, #17211825), url('/assets/terrain.svg'); background-position: center 54%; }
.screen-network { background-image: url('/assets/network.svg'); }
.screen-orbit { background-image: url('/assets/orbit.svg'); }
.screen-label { position: absolute; top: .85rem; left: .85rem; border: 1px solid #68795d; background: #172118e8; padding: .2rem .44rem; font-size: .62rem; color: var(--green); }
.play { display: grid; place-items: center; width: 58px; aspect-ratio: 1; border: 1px solid #d1e8b5; border-radius: 50%; background: #172118df; color: var(--green); font-size: 1.3rem; transition: background-color .18s, color .18s, transform .18s; }
.play:hover { background: var(--green); color: var(--page); transform: scale(1.07); }
.play-glyph { margin-left: .12em; }
.compact .play { width: 46px; font-size: 1rem; }
.video-meta { padding: 1.1rem 1.2rem; }
.video-tag { color: var(--green); font-size: .67rem; }
.video-meta h3 { margin-block: .2rem .35rem; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.25; letter-spacing: -.025em; }
.featured h3 { font-size: clamp(1.28rem, 2.15vw, 1.85rem); }
.video-description { color: var(--muted); font-size: .87rem; }
.text-link { display: inline-flex; align-items: center; gap: .38rem; color: var(--green); font-size: .79rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #84986f; }
.text-link:hover { text-decoration-color: currentColor; }
.video-meta .text-link { margin-top: .62rem; }
.compact.is-playing { grid-template-columns: 1fr; }
.screen.is-playing { display: block; min-height: auto; background: #181e19; }
.screen iframe { display: block; width: 100%; aspect-ratio: 16/9; border: none; }
.close-player { display: block; margin: .55rem .65rem .7rem auto; padding: .35rem .6rem; border: 1px solid #53624e; border-radius: 4px; background: var(--surface); font-size: .77rem; cursor: pointer; }
.close-player:hover { background: var(--surface-hover); border-color: var(--green); }

.corpus-section { border-top: 1px solid var(--line); }
.corpus-box { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.corpus-summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: clamp(1rem, 2.5vw, 1.65rem); cursor: pointer; list-style: none; border-radius: 8px; }
.corpus-summary:hover { background: var(--surface-hover); }
.corpus-summary::-webkit-details-marker { display: none; }
.corpus-tag { display: block; margin-bottom: .25rem; color: var(--green); font-size: .68rem; }
.corpus-summary strong { display: block; line-height: 1.25; font-size: clamp(1.12rem, 2.4vw, 1.55rem); }
.corpus-caption { display: block; margin-top: .2rem; color: var(--muted); font-size: .87rem; }
.disclosure { position: relative; display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid #53624e; border-radius: 4px; color: var(--green); }
.disclosure::before, .disclosure::after { content: ''; position: absolute; width: 12px; height: 1px; background: currentColor; }
.disclosure::after { transform: rotate(90deg); }
details[open] .disclosure::after { transform: none; }
.corpus-content { padding: clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--line); color: var(--muted); overflow-wrap: anywhere; }
.corpus-content h3 { margin-block: 1.35rem .38rem; color: var(--ink); font-size: 1rem; line-height: 1.45; }
.corpus-content ul { margin: .4rem 0; padding-left: 1.3rem; }
.corpus-content li { margin-block: .28rem; }
.corpus-note { max-width: 82ch; padding: .75rem 1rem; border-left: 2px solid var(--green); background: #202a20; font-size: .88rem; }
.download { margin-top: .9rem; padding-block: .4rem; }

.site-footer { padding-top: 3rem; background: #151c16; border-top: 1px solid var(--line); }
.footer-main { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1.2rem 2rem; padding-bottom: 2.5rem; }
.footer-main p:not(.section-kicker) { max-width: 55ch; margin-top: .75rem; color: var(--muted); font-size: .91rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; padding-block: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .65rem; }

@media (max-width: 960px) {
  .wrap { width: min(100% - 56px, 1232px); }
  .hero-inner { grid-template-columns: 1fr .86fr; }
  .briefing-grid { grid-template-columns: 1fr 1fr; }
  .compact { grid-template-columns: 32% 1fr; }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 36px, 570px); }
  .header-inner { min-height: auto; grid-template-columns: 1fr auto; gap: .6rem; padding-block: .85rem .7rem; }
  nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; }
  nav a { padding-block: .25rem; }
  .edition { grid-row: 1; grid-column: 2; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding-block: 3.25rem 2.2rem; }
  h1 { font-size: clamp(2.65rem, 10.5vw, 4.8rem); }
  .briefing-grid { grid-template-columns: 1fr; }
  .featured { grid-row: auto; }
  .featured .screen:not(.is-playing) { min-height: auto; aspect-ratio: 16/9; }
}

@media (max-width: 365px) {
  .brand { font-size: .87rem; }
  .edition { padding-inline: .45rem; font-size: .61rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
