:root {
  color-scheme: dark;
  --ink: #f1f4df;
  --muted: #aeb7a3;
  --paper: #10170f;
  --panel: #182116;
  --line: rgba(222, 236, 190, .18);
  --acid: #d8ff67;
  --orange: #ff8a4c;
  --blue: #70d7db;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 9%, rgba(111, 158, 60, .12), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
a { color: inherit; }
.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 23px; font-weight: 900; letter-spacing: -.05em; text-decoration: none; }
.wordmark span { color: var(--acid); }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.site-header nav a:hover { color: var(--ink); }
.site-header .nav-app { color: #10170f; background: var(--acid); padding: 10px 15px; border-radius: 3px; }

.hero { min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; padding: 72px 0 84px; }
.eyebrow { margin: 0 0 18px; color: var(--acid); font: 800 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
h1 { max-width: 720px; font-size: clamp(58px, 7.2vw, 104px); }
h1 em { color: var(--acid); font-weight: 400; }
.lede { max-width: 620px; margin: 30px 0; color: #ccd2c2; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 52px; padding: 0 22px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; font-weight: 850; }
.button.primary { border-color: var(--acid); background: var(--acid); color: #11170f; }
.button:hover { transform: translateY(-2px); }
.button.quiet:hover { border-color: var(--acid); }
.local-note { margin: 18px 0 0; color: var(--muted); font: 12px/1.5 var(--mono); }
.local-note span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); }

.hero-scene { position: relative; aspect-ratio: 1 / .9; overflow: hidden; border: 1px solid var(--line); background: #75a84d; clip-path: polygon(6% 0, 100% 0, 100% 92%, 88% 100%, 0 100%, 0 9%); }
.sun { position: absolute; width: 85px; height: 85px; border-radius: 50%; right: 12%; top: 10%; background: #f6d66b; opacity: .9; }
.hill { position: absolute; border-radius: 50% 50% 0 0; background: #426f31; }
.hill-a { width: 120%; height: 54%; left: -30%; bottom: 0; transform: rotate(7deg); }
.hill-b { width: 90%; height: 45%; right: -38%; bottom: -2%; background: #345c29; transform: rotate(-9deg); }
.path { position: absolute; width: 33%; height: 115%; left: 42%; top: -8%; background: #ad672e; transform: rotate(22deg); clip-path: polygon(30% 0, 74% 0, 100% 100%, 0 100%); }
.lamp { position: absolute; width: 5px; height: 25%; background: #171c14; box-shadow: 8px 8px 15px #0006; }
.lamp::before { content: ""; position: absolute; width: 22px; height: 22px; left: 50%; top: -8px; background: var(--blue); transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 17px #8efaff; }
.l1 { left: 48%; top: 20%; transform: scale(.55); }
.l2 { left: 42%; top: 42%; transform: scale(.75); }
.l3 { left: 34%; top: 68%; }
.hero-scene img { position: absolute; width: 95px; left: 53%; top: 28%; z-index: 3; filter: drop-shadow(8px 12px 7px #0005); }
.hero-geebr { position: absolute; left: 53%; top: 30%; width: 62px; height: 78px; z-index: 2; border-radius: 52% 48% 43% 45%; background: #a6dfc0; color: #224331; display: grid; place-items: center; font: 900 24px var(--mono); box-shadow: 8px 12px 7px #0004; }
.hero-scene img:not([style*="display: none"]) + .hero-geebr { display: none; }
.thought { position: absolute; top: 19%; left: 48%; z-index: 4; margin: 0; padding: 8px 12px; border-radius: 13px; background: #fff8dd; color: #272319; font-size: 12px; font-weight: 800; transform: translate(-75%, -100%) rotate(-2deg); }
.thought::after { content: ""; position: absolute; right: 10px; bottom: -7px; border: 8px solid transparent; border-top-color: #fff8dd; transform: rotate(-12deg); }

.strip { margin-bottom: 110px; padding: 30px 0; border-block: 1px solid var(--line); display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: center; }
.strip > p { margin: 0; font-family: var(--display); font-size: 25px; line-height: 1.35; }
.strip dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.strip dl div { padding-left: 20px; border-left: 1px solid var(--line); }
dt { color: var(--muted); font: 700 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
dd { margin: 7px 0 0; font-weight: 800; }

.incidents-section { padding: 20px 0 100px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 48px; }
h2 { font-size: clamp(42px, 5vw, 68px); }
.section-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 17px; }
.loading { color: var(--muted); font-family: var(--mono); }
.incident-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(350px, .7fr); border: 1px solid var(--line); background: var(--panel); }
.incident-media { position: relative; align-self: start; padding: 18px; border-right: 1px solid var(--line); }
.incident-media img { display: block; width: 100%; height: auto; background: #25301f; }
.incident-number { position: absolute; z-index: 2; top: 28px; left: 28px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--acid); color: #11170f; font: 900 13px var(--mono); }
.media-actions { display: flex; justify-content: space-between; gap: 20px; padding-top: 12px; color: var(--muted); font: 11px/1.4 var(--mono); text-transform: uppercase; }
.media-actions a { color: var(--ink); font-weight: 800; text-decoration: none; }
.incident-copy { padding: clamp(28px, 4vw, 54px); }
.incident-copy h3 { font-size: clamp(38px, 4vw, 58px); margin-bottom: 30px; }
.goal { padding: 16px 0; border-block: 1px solid var(--line); }
.goal span { color: var(--orange); font: 800 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.goal p { margin: 7px 0 0; font-size: 18px; font-weight: 750; }
.summary { margin: 24px 0 12px; font-size: 18px; line-height: 1.55; }
.result { display: inline-block; margin: 0 0 16px; padding: 6px 9px; background: #312216; color: #ffc390; border: 1px solid #704327; font: 800 10px/1.4 var(--mono); text-transform: uppercase; }
.interpretation { margin: 0 0 28px; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; }
.facts div { min-width: 0; }
.facts dd { font-size: 12px; overflow-wrap: anywhere; }
.facts code { margin-right: 4px; color: var(--acid); font: 11px var(--mono); }
.world-details { margin-top: 28px; border-top: 1px solid var(--line); }
.world-details summary { padding: 18px 0 0; cursor: pointer; color: var(--acid); font: 800 12px var(--mono); }
.details-body > p { color: var(--muted); font-size: 12px; }
.details-body h4 { margin: 22px 0 12px; font: 800 11px/1 var(--mono); color: var(--ink); letter-spacing: .12em; text-transform: uppercase; }
.customization { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 20px; margin: 0; padding: 15px; background: #0a0f09; border: 1px solid var(--line); }
.customization div { min-width: 0; }
.customization dd { color: #dce8d1; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.details-body pre { max-height: 320px; overflow: auto; padding: 14px; background: #0a0f09; color: #cbd9bf; border: 1px solid var(--line); font: 10px/1.35 var(--mono); }
.detail-actions { display: flex; gap: 18px; font-size: 12px; font-weight: 800; }
.incident-error { padding: 40px; border: 1px solid #6e382e; background: #2b1815; }

.portable { margin: 10px 0 110px; padding: 70px clamp(28px, 7vw, 90px); display: grid; grid-template-columns: 170px 1fr; gap: 60px; align-items: center; background: var(--acid); color: #12170f; }
.portable .eyebrow { color: #52621f; }
.portable p:not(.eyebrow) { max-width: 780px; font-size: 18px; }
.portable-mark { width: 150px; aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; place-items: center; border: 3px solid #12170f; border-radius: 50%; font: 500 58px/1 var(--sans); }
.text-link { display: inline-block; margin-top: 10px; font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.next-task { margin-bottom: 100px; padding: 100px 20px; text-align: center; border-block: 1px solid var(--line); }
.next-task h2 { max-width: 850px; margin-inline: auto; }
.next-task > p:not(.eyebrow) { color: var(--muted); font-size: 20px; }
.next-task .button { margin-top: 12px; }
footer { min-height: 130px; display: flex; align-items: center; gap: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer p { flex: 1; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-scene { max-width: 620px; width: 100%; justify-self: center; }
  .strip, .section-heading { grid-template-columns: 1fr; gap: 26px; }
  .incident-card { grid-template-columns: 1fr; }
  .incident-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .portable { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { height: 70px; }
  .site-header nav > a:first-child { display: none; }
  .hero { padding: 54px 0 65px; gap: 42px; }
  h1 { font-size: clamp(52px, 16vw, 74px); }
  .hero-scene { aspect-ratio: 1 / 1.05; }
  .strip dl { grid-template-columns: 1fr; gap: 18px; }
  .strip dl div { padding: 0 0 0 15px; }
  .section-heading { margin-bottom: 28px; }
  .incident-media { padding: 8px; }
  .incident-number { top: 15px; left: 15px; }
  .media-actions { padding: 10px 4px 2px; }
  .incident-copy { padding: 30px 22px; }
  .facts { grid-template-columns: 1fr; }
  .customization { grid-template-columns: 1fr; }
  .portable { padding: 50px 25px; gap: 35px; }
  .portable-mark { width: 105px; font-size: 38px; }
  footer { flex-wrap: wrap; padding: 30px 0; }
  footer p { flex-basis: 100%; order: 3; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}
