@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('/assets/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0b0d0a;
  --panel: #131711;
  --lime: #b9f661;
  --paper: #f3f5ec;
  --muted: #aab2a5;
  --line: #2e382a;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: Manrope, system-ui, sans-serif;
  --gutter: clamp(18px, 5.1vw, 84px);
  --ease: cubic-bezier(.21, .7, .27, 1);
  --header-height: 74px;
  --header-offset: calc(var(--header-height) + 1px);
  --scene-padding: clamp(68px, 8.6vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-offset) + 14px); }
body { margin: 0; background: var(--ink); color: var(--paper); font: 1rem/1.65 var(--body); }
img { display: block; max-width: 100%; }
input, select, textarea, button { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #95c94d; outline-offset: 4px; }
::selection { color: var(--ink); background: var(--lime); }
.container { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip-link, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip-path: none;
  inset: 10px auto auto 10px;
  padding: 12px 18px;
  z-index: 30;
  background: var(--lime);
  color: var(--ink);
}

.site-header {
  position: sticky;
  z-index: 20;
  inset-block-start: 0;
  background: #0b0e0bf5;
  border-bottom: 1px solid #293227;
  backdrop-filter: blur(12px);
}
.header-row, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-row { min-height: var(--header-height); }
.brand { display: inline-flex; gap: 10px; align-items: center; flex: none; text-decoration: none; }
.brand > span { display: grid; gap: 4px; font: 700 1.47rem/.96 var(--display); letter-spacing: -.07em; }
.brand small { font: 800 .54rem/1.25 var(--body); text-transform: uppercase; letter-spacing: .13em; color: #bdc8b8; }
.chapters { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(13px, 2.4vw, 34px); }
.chapters a, .header-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: #c8d1c2;
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}
.chapters a:hover, .chapters a[aria-current], .header-action:hover { color: var(--lime); }
.header-action { padding-inline: 14px; border: 1px solid #3a4933; border-radius: 5px; }
.header-action span { color: var(--lime); }
.menu-toggle { display: none; }

.intro {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 68% 52%, #152016 0, #10150f 29%, var(--ink) 71%);
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  grid-template-areas: 'copy artwork';
  align-items: center;
  gap: clamp(30px, 4vw, 54px);
  min-height: min(740px, calc(100svh - var(--header-height)));
  padding-block: clamp(55px, 7.5vw, 108px);
}
.intro-copy { grid-area: copy; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--lime);
  font: 800 .72rem/1.45 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow > span { flex: none; width: 7px; height: 7px; background: var(--lime); transform: rotate(45deg); }
.intro h1 {
  margin-top: 24px;
  font: 650 clamp(3.55rem, 6.38vw, 6.75rem)/.93 var(--display);
  letter-spacing: -.077em;
}
.intro h1 em { display: block; }
h1 em, h2 em { font-style: normal; color: var(--lime); }
.intro-description { margin-top: 27px; color: #cbd3c6; max-width: 41ch; font-size: clamp(1rem, 1.24vw, 1.1rem); line-height: 1.72; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 20px; margin-top: 29px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 5px;
  font: 800 .87rem/1.32 var(--body);
  text-align: center;
  text-decoration: none;
  transition: color 170ms, background 170ms, border-color 170ms;
}
.button--primary { background: var(--lime); color: #111a08; }
.button--primary:hover { background: #d0ff93; }
.button--outline { border-color: #52604e; color: var(--paper); background: transparent; }
.button--outline:hover { border-color: var(--lime); color: var(--lime); }
.quiet-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: #c8d1c2; font-size: .82rem; font-weight: 750; text-underline-offset: 4px; }
.quiet-link:hover { color: var(--lime); }
.intro-art {
  grid-area: artwork;
  position: relative;
  padding: 7px;
  border: 1px solid #394334;
  border-radius: 4px;
  background: #121611;
  box-shadow: 0 38px 80px #03060285;
}
.intro-art::before, .intro-art::after { content: ''; position: absolute; width: 38px; height: 38px; pointer-events: none; z-index: 1; }
.intro-art::before { left: -1px; top: -1px; border-left: 1px solid var(--lime); border-top: 1px solid var(--lime); border-top-left-radius: inherit; }
.intro-art::after { right: -1px; bottom: -1px; border-right: 1px solid var(--lime); border-bottom: 1px solid var(--lime); border-bottom-right-radius: inherit; }
.intro-art img { width: 100%; height: auto; background: #10150f; }

.scene {
  padding-block: var(--scene-padding);
  /* Align the padded heading, rather than the section edge, below the sticky header. */
  scroll-margin-top: calc(14px - var(--scene-padding));
}
.scene:focus:not(:focus-visible), main:focus:not(:focus-visible) { outline: none; }
.scene:focus-visible, main:focus-visible { outline-offset: -4px; }
.scene-lab { background: #111610; }
.scene-plans { background: #0e110d; border-top: 1px solid var(--line); }
.scene-advisor { background: radial-gradient(ellipse at 80% 25%, #1b2517, #10150f 52%); border-block: 1px solid var(--line); }
.scene-terms { background: #10140f; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr);
  align-items: end;
  gap: clamp(20px, 6vw, 90px);
  margin-bottom: clamp(28px, 4vw, 49px);
}
.scene h2 { margin-top: 13px; font: 650 clamp(2.65rem, 5.2vw, 5.1rem)/.96 var(--display); letter-spacing: -.07em; }
.section-heading > p { color: #c1cbbd; font-size: .97rem; max-width: 34ch; padding-bottom: 4px; }
.chapter-next {
  display: inline-flex;
  min-height: 44px;
  gap: 10px;
  align-items: center;
  color: #dfe9d9;
  font-size: .86rem;
  font-weight: 800;
  text-underline-offset: 5px;
  margin-top: clamp(22px, 4vw, 45px);
}
.chapter-next span, .chapter-next:hover { color: var(--lime); }
.noscript-note { padding: 16px; border: 1px solid var(--line); color: #e2eedb; }
.terms-layout { display: grid; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); gap: clamp(34px, 7vw, 95px); }
.terms-list { margin: 0; border-top: 1px solid #41503a; }
.terms-list > div { display: grid; grid-template-columns: minmax(0,.77fr) minmax(0,1.23fr); gap: 12px 25px; padding-block: 19px; border-bottom: 1px solid #303b2d; }
.terms-list dt { font: 600 1.2rem/1.26 var(--display); letter-spacing: -.028em; }
.terms-list dd { margin: 0; color: #bbc5b7; font-size: .91rem; }
.terms-list strong { color: var(--lime); }
.site-footer { background: #090d09; border-top: 1px solid #293227; padding-block: 28px; }
.site-footer p { color: #b2c0ab; font-size: .84rem; }
.missing-page main { min-height: 90svh; display: grid; place-content: center; justify-items: start; gap: 22px; }
.missing-page h1 { font: 650 clamp(2.5rem, 6vw, 5.5rem)/1 var(--display); letter-spacing: -.06em; }
.missing-page main > p:not(.eyebrow) { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .intro-copy { animation: intro-rise .68s var(--ease) both; }
  .intro-art { animation: intro-rise .95s var(--ease) .08s both; }
  .site-header .brand img { animation: mark-enter .68s var(--ease) both; }
  @keyframes intro-rise { from { opacity: .45; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes mark-enter { from { opacity: .35; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }
}

@media (max-width: 980px) {
  .header-action { display: none; }
  .intro-grid { min-height: 0; }
  .intro h1 { font-size: clamp(3.15rem, 7.1vw, 5.1rem); }
  .scene-lab .section-heading { align-items: start; }
  .terms-layout { grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); }
}

@media (761px <= width <= 980px) {
  .scene-lab .section-heading {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 24px;
  }
}

@media (max-width: 760px) {
  :root { --header-height: 62px; }
  .header-row { flex-wrap: wrap; gap: 4px 14px; }
  .brand img { width: 33px; height: 33px; }
  .brand > span { font-size: 1.27rem; }
  .brand small { font-size: .49rem; }
  .chapters { flex: 1 0 100%; gap: 2px 18px; }
  .menu-ready .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 10px;
    color: var(--paper);
    background: transparent;
    border: 1px solid #3d4a36;
    border-radius: 4px;
    font-size: .84rem;
    font-weight: 800;
  }
  .menu-toggle span { width: 14px; height: 7px; border-block: 1px solid var(--lime); }
  .menu-ready .chapters { display: none; }
  .menu-ready .menu-toggle[aria-expanded='true'] + .chapters {
    display: grid;
    position: absolute;
    inset: 100% 0 auto;
    background: #141a13;
    border-block: 1px solid #384432;
    padding: 10px var(--gutter);
    box-shadow: 0 16px 30px #0007;
  }
  .chapters a + a { border-top: 1px solid #283425; }
  .intro-grid { grid-template-columns: 1fr; grid-template-areas: 'copy' 'artwork'; gap: 29px; padding-block: 50px 34px; }
  .intro h1 { font-size: clamp(3.15rem, 11vw, 5.25rem); margin-top: 18px; }
  .intro-description { margin-top: 19px; }
  .intro-actions { margin-top: 21px; }
  .intro-art { width: min(100%, 600px); justify-self: center; padding: 5px; }
  .section-heading, .terms-layout { grid-template-columns: 1fr; }
  .section-heading { gap: 15px; }
  .scene-lab .section-heading { margin-bottom: 22px; }
  .section-heading > p { max-width: 44ch; }
  .scene h2 { font-size: clamp(2.45rem, 8.2vw, 4.8rem); }
  .footer-row { flex-wrap: wrap; gap: 14px 22px; }
  .site-footer p { order: 2; flex-basis: 100%; }
}

@media (max-width: 380px) {
  .intro h1 { font-size: clamp(2.85rem, 11vw, 3.15rem); }
}

@media (max-width: 350px) {
  .scene-lab h2 { font-size: 2.1rem; }
}

@media (max-width: 480px) {
  .terms-list > div { grid-template-columns: 1fr; }
}

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