:root {
  --hud-green: #b7ff35;
  --hud-ink: #0b2027;
  --hud-rim: #828b7c;
  --metal-surface: linear-gradient(135deg, #d1d0b7 0%, #a4ad97 5%, #5c6b62 16%, #899383 29%, #b0b29a 46%, #6b7a6d 52%, #3d514b 74%, #9ca48d 96%, #c5c7ad 100%);
  --metal-cut: 16px;
}

/* The bevels and screen surfaces connect the secondary pages to the cockpit. */
.masthead {
  isolation: isolate;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.masthead-inner { min-height: 4.8rem; }
.menu summary, .button {
  position: relative;
  isolation: isolate;
  color: var(--hud-green);
  background: linear-gradient(180deg, #1a3532, #081c23 40%, #071820);
  border: 2px solid var(--hud-green);
  border-radius: 3px;
  padding: .75rem 1.1rem;
  box-shadow: inset 0 0 0 3px #a9ef4224, inset 0 1px 5px #b7ff3540, 0 0 7px #b7ff3540;
  text-shadow: 0 0 7px #b7ff353d;
}
.menu summary { font-size: .875rem; }
.menu nav {
  background: #0c2029;
  border: 2px solid #84937d;
  box-shadow: inset 0 0 0 3px #d2e0c41c, 0 8px 25px #0007;
}
.menu nav a { font-size: 1rem; }
.menu nav a[aria-current="page"] { color: var(--hud-green); background: #b0ed6815; }
.button:hover, .daybreak-copy .button:hover, .pathfinder-page .panel .button:hover {
  color: #0a1d24;
  background: var(--hud-green);
}
.daybreak-copy .button, .pathfinder-page .panel .button { color: var(--hud-green); }
.hero .eyebrow {
  position: relative;
  isolation: isolate;
  display: table;
  max-width: 100%;
  margin-bottom: 1.7rem;
  padding: .9rem 1.6rem;
  border: 0;
  border-radius: 0;
  color: var(--hud-green);
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 3px 3px #07151d55);
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: .08em;
}
/* The halo sits behind the heading and subtitle, with the sky visible at its edges. */
.hero-display {
  position: relative;
  isolation: isolate;
  color: #fff2d9;
  max-width: 61rem;
  margin-inline: auto;
  padding-block: .4rem .7rem;
}
.hero-display::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.1rem -1rem -1.2rem;
  background: radial-gradient(ellipse at center, #101e2df0 5%, #172634df 47%, #1a293982 70%, transparent 94%);
  filter: blur(12px);
  pointer-events: none;
}
.daybreak .hero-copy h1, .landing-sky .hero-copy h1 {
  position: relative;
  padding: .18em .4em;
  color: #fff2d9;
  text-shadow: 0 2px 3px #0005;
}
.hero-display .deck {
  color: #fff7e7;
  margin: 1rem auto 0;
  padding-inline: .8rem;
  text-shadow: 0 1px 3px #0009;
}
.hero-copy h1::before, .hero-copy h1::after {
  content: "";
  position: absolute;
  top: .12em;
  bottom: .12em;
  width: 30px;
  border: 0;
  border-radius: 0;
  opacity: 1;
  filter: drop-shadow(0 0 3px #9aff2a70);
}
.hero-copy h1::before {
  left: 0;
  background:
    linear-gradient(var(--hud-green), var(--hud-green)) left top / 30px 4px no-repeat,
    linear-gradient(var(--hud-green), var(--hud-green)) left top / 4px 26px no-repeat,
    linear-gradient(var(--hud-green), var(--hud-green)) left bottom / 30px 4px no-repeat,
    linear-gradient(var(--hud-green), var(--hud-green)) left bottom / 4px 26px no-repeat;
}
.hero-copy h1::after {
  right: 0;
  background:
    linear-gradient(var(--hud-green), var(--hud-green)) right top / 30px 4px no-repeat,
    linear-gradient(var(--hud-green), var(--hud-green)) right top / 4px 26px no-repeat,
    linear-gradient(var(--hud-green), var(--hud-green)) right bottom / 30px 4px no-repeat,
    linear-gradient(var(--hud-green), var(--hud-green)) right bottom / 4px 26px no-repeat;
}
.section > h2, .chart-section h2 {
  position: relative;
  isolation: isolate;
  display: table;
  max-width: 100%;
  padding: 1rem 1.8rem 1.1rem;
  border: 0;
  border-radius: 0;
  color: #fff5df;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 3px 3px #07151d55);
  font-size: clamp(1.8rem, 3.3vw, 2.75rem);
  line-height: 1.17;
}
.hero .eyebrow::before, .section > h2::before, .chart-section h2::before,
.masthead::before, .site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  clip-path: polygon(var(--metal-cut) 0, calc(100% - var(--metal-cut)) 0, 100% var(--metal-cut), 100% calc(100% - var(--metal-cut)), calc(100% - var(--metal-cut)) 100%, var(--metal-cut) 100%, 0 calc(100% - var(--metal-cut)), 0 var(--metal-cut));
  background:
    radial-gradient(circle at 8px 50%, #263c35 0 1px, #b8bda5 1.5px 2.5px, #405149 3px 3.7px, transparent 4px),
    radial-gradient(circle at calc(100% - 8px) 50%, #263c35 0 1px, #b8bda5 1.5px 2.5px, #405149 3px 3.7px, transparent 4px),
    linear-gradient(180deg, #ffffff80 0, transparent 3px, transparent calc(100% - 3px), #071e2480),
    var(--metal-surface);
}
.hero .eyebrow::after, .section > h2::after, .chart-section h2::after,
.masthead::after, .site-footer::after {
  content: "";
  position: absolute;
  inset: 8px 14px;
  z-index: -1;
  pointer-events: none;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  border: 1px solid #b8c7b370;
  background:
    radial-gradient(ellipse at 10% 35%, #35744c35, transparent 65%),
    linear-gradient(150deg, #183437, #0b212a 45%, #071920);
  box-shadow: inset 0 2px 4px #000b, inset 0 0 0 2px #07151a99;
}
/* The shell continues the sky behind the cut-out corners of both metal frames. */
.site-shell {
  background: linear-gradient(180deg, #e7a775 0, #101f36 75%, #101f36 100%);
  min-height: 100vh;
}
.retailers-page .site-shell, .pathfinder-page .site-shell {
  background: linear-gradient(180deg, #0a1b35 0, #e9aa76 75%, #e9aa76 100%);
}
.masthead { --metal-cut: 22px; }
.masthead::before {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px));
}
.masthead::after { inset: 5px 20px 9px; }
.masthead-inner { padding-block: .6rem .8rem; }
.site-footer { --metal-cut: 22px; }
.site-footer::before { inset: 0; }
.site-footer::after { inset: 9px 20px; }
.site-footer .footer-grid { padding-block: .5rem; }
.button::before, .menu > summary::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 3px;
  border: 1px solid #b7ff3573;
  border-radius: 1px;
  background:
    linear-gradient(var(--hud-green), var(--hud-green)) left top / 11px 2px no-repeat,
    linear-gradient(var(--hud-green), var(--hud-green)) right bottom / 11px 2px no-repeat;
}
.button:focus-visible, .menu > summary:focus-visible {
  outline: 3px solid #e4ffb5;
  outline-offset: 4px;
}
.chapter > h2 { margin-inline: auto; }
.section > h2::first-letter { color: #d5efa9; }
.section + .section, .story-sky .editorial .section + .section, .chart-section {
  border-top-color: #b3dd7450;
}
.beyond-page .daybreak-copy .section { margin-inline: auto; max-width: 49rem; }
.beyond-page .hero-flight { top: 73%; width: min(30vw, 24rem); }
.beyond-page .editorial { padding-top: 2rem; }
.beyond-page .category-guide { margin-top: 0; }
.beyond-page .personal-exploration .scene-moon { left: 100%; }
.grouped-categories {
  padding: .7rem;
  background: linear-gradient(150deg, #193b4c, #071e2c);
  border: 2px solid #8a987d;
  border-radius: 8px 20px 8px 20px;
  box-shadow: inset 0 0 0 4px #e0dfb51a;
}
.category-group + .category-group { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid #9cba8555; }
.group-description > summary, .compass-guide > summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: .75rem;
  padding: .8rem 1rem;
  font: 700 1rem/1.5 var(--mono);
  color: var(--hud-green);
  list-style: none;
}
.group-description > summary::-webkit-details-marker, .compass-guide > summary::-webkit-details-marker { display: none; }
.group-description[open] > summary .expand::before, .compass-guide[open] > summary .expand::before { content: "−"; }
.group-copy { padding: .25rem 1rem .5rem; }
.category-children { margin-left: 1.5rem; border-left: 1px solid #bed99f6b; padding-left: .6rem; }
.category summary { font-size: 1rem; padding: .8rem; }
.category summary .swatch { width: .7rem; height: .7rem; }
.category-content { padding: 1rem; }
.category-content p { margin-bottom: 1rem; }
.category-content img { width: min(100%, 28rem); }
.grouped-categories .category-content { background: #23445a; border-radius: 5px; }
.compass-guide {
  margin-top: 1.7rem;
  background: #0b2332;
  border: 1px solid var(--hud-rim);
  border-radius: 6px;
}
.compass-guide-content { padding: 1rem; }
.compass-examples { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; margin-top: 1.2rem; }
.compass-examples figure { background: white; border-radius: 3px; overflow: hidden; }
.compass-examples img { width: 100%; height: auto; }
.overlap-figure { max-width: 32rem; margin: 2rem auto; text-align: left; }
.overlap-figure img { width: 100%; height: auto; background: white; border: 2px solid #9ba989; border-radius: 4px; }
.overlap-figure figcaption { margin-block: .7rem; font-size: 1rem; }
.site-footer {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-top: clamp(4rem, 8vw, 7rem);
}
.footer-grid h2 { color: var(--hud-green); }
.footer-grid nav + nav { border-left: 1px solid #b5f56c6b; padding-left: 1.5rem; }
@media (max-width: 48rem) {
  .masthead-inner { min-height: 4.4rem; }
  .hero .eyebrow { margin-bottom: 1.4rem; padding: .85rem 1.45rem; }
  .hero-copy h1::before, .hero-copy h1::after { width: 24px; }
  .section > h2, .chart-section h2 { font-size: clamp(1.6rem, 6.7vw, 2.2rem); padding: .9rem 1.35rem 1rem; }
  .beyond-page .hero-flight { width: 11rem; top: auto; bottom: .7rem; right: -2rem; }
  .beyond-page .personal-exploration .scene-moon { width: 3rem; left: auto; right: 0; top: auto; bottom: 0; }
  .beyond-page .personal-exploration { padding-bottom: 5rem; }
  .compass-examples { grid-template-columns: 1fr; }
  .category-children { margin-left: .6rem; padding-left: .4rem; }
  .footer-grid nav + nav { padding-left: .8rem; }
}

@media (max-width: 48rem) {
  .hero-display { margin-inline: 0; }
  .hero-display::before { inset: -.7rem -.45rem -1rem; filter: blur(8px); }
  .hero-display .deck { margin-left: 0; padding-inline: .8rem; }
  .daybreak .hero-copy h1, .landing-sky .hero-copy h1 { padding-inline: .4em; }
  .section > h2::after, .chart-section h2::after { inset: 7px 11px; }
  .masthead::after { inset-inline: 12px; }
  .masthead-inner { width: calc(100% - 3rem); }
  .site-footer::after { inset: 9px 20px; }
  .site-footer .footer-grid { width: calc(100% - 3rem); }
}

/* The fixed header reserves space in normal page flow and above anchor targets. */
:root { --header-height: 5.25rem; }
html { scroll-padding-top: calc(var(--header-height) + 1rem); }
.site-shell { padding-top: var(--header-height); }
.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
}
.masthead-inner { height: var(--header-height); min-height: 0; }
.masthead .brand img { max-height: 2.5rem; width: auto; }
.skip-link { z-index: 30; }
.menu nav {
  max-height: 70vh;
  max-height: calc(100dvh - var(--header-height) - 1rem);
  overflow-y: auto;
}
/* Both large frames use equal side margins around the same recessed corners. */
.site-footer::after { inset: 9px 20px; }
.masthead::before, .site-footer::before {
  background:
    radial-gradient(circle at 10px 50%, #263c35 0 1px, #b8bda5 1.5px 2.5px, #405149 3px 3.7px, transparent 4px),
    radial-gradient(circle at calc(100% - 10px) 50%, #263c35 0 1px, #b8bda5 1.5px 2.5px, #405149 3px 3.7px, transparent 4px),
    linear-gradient(180deg, #ffffff80 0, transparent 3px, transparent calc(100% - 3px), #071e2480),
    var(--metal-surface);
}
/* Recessed green terminal frames hold the original chart pixels intact. */
.research-page .chart-section figure { background: transparent; padding: 0; }
.terminal-frame {
  --terminal-cut: 12px;
  position: relative;
  isolation: isolate;
  padding: 14px;
  background: transparent;
  filter: drop-shadow(0 3px 6px #071a2c66);
}
.terminal-frame::before, .terminal-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -2;
  inset: 0;
  clip-path: polygon(var(--terminal-cut) 0, calc(100% - var(--terminal-cut)) 0, 100% var(--terminal-cut), 100% calc(100% - var(--terminal-cut)), calc(100% - var(--terminal-cut)) 100%, var(--terminal-cut) 100%, 0 calc(100% - var(--terminal-cut)), 0 var(--terminal-cut));
}
.terminal-frame::before {
  background: linear-gradient(140deg, #c9ff83, #83da35 35%, #406c29 60%, #b7ff35);
}
.terminal-frame::after {
  inset: 2px;
  z-index: -1;
  --terminal-cut: 10px;
  background:
    linear-gradient(var(--hud-green), var(--hud-green)) 14px 4px / 15px 1px no-repeat,
    linear-gradient(var(--hud-green), var(--hud-green)) calc(100% - 14px) 4px / 15px 1px no-repeat,
    linear-gradient(var(--hud-green), var(--hud-green)) 14px calc(100% - 4px) / 15px 1px no-repeat,
    linear-gradient(var(--hud-green), var(--hud-green)) calc(100% - 14px) calc(100% - 4px) / 15px 1px no-repeat,
    repeating-linear-gradient(0deg, #8be03e0b 0 1px, transparent 1px 3px),
    #07160e;
}
.terminal-frame > img, .terminal-frame > picture { display: block; width: 100%; }
.terminal-frame img { width: 100%; height: auto; border: 1px solid #739943; border-radius: 0; }
@media (max-width: 48rem) {
  :root { --header-height: 4.75rem; }
  .masthead::after { inset: 5px 20px 9px; }
  .terminal-frame { padding: 12px; }
}

/* Keep the footer open at the bottom, with the metal frame along its top and sides. */
.site-footer::before {
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 22px);
}
.site-footer::after {
  inset: 9px 20px 0;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%, 0 9px);
  border-bottom: 0;
  box-shadow: inset 0 2px 4px #000b;
}
.research-page .section.key-findings {
  max-width: 62rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  grid-template-rows: min-content 1fr;
  gap: 1.25rem 2rem;
  align-items: start;
}
.key-findings > h2 { grid-column: 1; grid-row: 1; margin-bottom: 0; justify-self: start; }
.findings-copy { grid-column: 1; grid-row: 2; min-width: 0; }
.key-findings > .overlap-figure {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  max-width: 32rem;
  margin: 0;
}
@media (max-width: 48rem) {
  .research-page .section.key-findings { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 1.25rem; }
  .key-findings > h2, .findings-copy, .key-findings > .overlap-figure {
    grid-column: 1;
    grid-row: auto;
  }
  .key-findings > .overlap-figure { margin-inline: auto; }
}

/* Category icons replace the summary dots and stay visible when collapsed. */
.grey { --category: #c3c5c8; }
.category > summary > .category-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  object-fit: contain;
}
.standalone-category > summary { font-size: 1.05rem; font-weight: 700; padding: .9rem 1rem; }
