:root {
  --bg: #050607;
  --ink: #f6f4ee;
  --muted: rgba(246, 244, 238, .72);
  --quiet: rgba(246, 244, 238, .48);
  --line: rgba(246, 244, 238, .18);
  --line-strong: rgba(246, 244, 238, .34);
  --panel: rgba(13, 16, 18, .78);
  --panel-strong: rgba(246, 244, 238, .09);
  --green: #b9ff5a;
  --red: #ff4f35;
  --amber: #ffcc67;
  --blue: #89c8ff;
  --shadow: 0 32px 90px rgba(0, 0, 0, .52);
  --max: 1180px;
  --header-h: 66px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font: 600 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(900px 620px at 14% -12%, rgba(185, 255, 90, .14), transparent 60%),
    radial-gradient(740px 620px at 92% 18%, rgba(137, 200, 255, .14), transparent 58%),
    linear-gradient(180deg, #050607 0%, #090b0d 42%, #040405 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .26;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(#000, transparent 92%);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

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

code {
  color: rgba(255, 255, 255, .84);
  font: 700 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 12px;
  color: #061005;
  background: var(--green);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 7, .82);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.brand {
  width: max-content;
  text-decoration: none;
  line-height: 1;
}

.brand strong {
  display: block;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.brand span {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.nav-links span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--green);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(88px, 13vw, 150px) clamp(22px, 5vw, 72px) clamp(30px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 4, 5, .90) 0%, rgba(3, 4, 5, .70) 42%, rgba(3, 4, 5, .35) 100%),
    linear-gradient(180deg, rgba(3, 4, 5, .50) 0%, rgba(3, 4, 5, .22) 44%, rgba(3, 4, 5, .90) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 110px 110px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.2;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: clamp(46px, 7vw, 102px);
  line-height: .9;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-deck {
  width: min(760px, 100%);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(19px, 2.4vw, 30px);
  line-height: 1.32;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.button.primary {
  color: #071005;
  border-color: var(--green);
  background: var(--green);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, .08);
}

.hero-metrics {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 54px;
}

.metric {
  min-height: 108px;
  display: grid;
  align-content: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(0, 0, 0, .28);
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.metric strong {
  margin-top: 8px;
  color: var(--green);
  font-size: clamp(32px, 5vw, 58px);
  line-height: .9;
}

.band {
  padding: clamp(68px, 9vw, 116px) clamp(22px, 5vw, 72px);
}

.section-head {
  width: min(var(--max), 100%);
  margin: 0 auto 34px;
}

.section-head h2 {
  width: min(900px, 100%);
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 76px);
  line-height: .94;
  font-weight: 950;
  text-transform: uppercase;
}

.section-head p:not(.eyebrow) {
  width: min(760px, 100%);
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.executive-band {
  background:
    radial-gradient(760px 420px at 86% 18%, rgba(255, 79, 53, .16), transparent 64%),
    radial-gradient(780px 460px at 10% 68%, rgba(185, 255, 90, .12), transparent 60%),
    linear-gradient(180deg, #050607 0%, #090c0e 100%);
}

.executive-grid,
.pattern-grid,
.memory-layout,
.related-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.executive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.executive-card,
.timeline-step,
.pattern-card {
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .035)),
    rgba(5, 6, 7, .78);
  cursor: pointer;
}

.executive-card {
  min-height: 340px;
  display: grid;
  align-content: space-between;
  padding: 24px;
}

.executive-card:hover,
.executive-card:focus-visible,
.timeline-step:hover,
.timeline-step:focus-visible,
.pattern-card:hover,
.pattern-card:focus-visible {
  border-color: rgba(185, 255, 90, .74);
  background:
    linear-gradient(180deg, rgba(185, 255, 90, .12), rgba(255, 255, 255, .04)),
    rgba(5, 6, 7, .82);
}

.executive-card span,
.timeline-step span,
.pattern-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.executive-card h3,
.timeline-step h3,
.pattern-card h3 {
  margin: 34px 0 14px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: .96;
  font-weight: 950;
  text-transform: uppercase;
}

.executive-card p,
.timeline-step p,
.pattern-card p {
  color: var(--muted);
  font-weight: 780;
}

.executive-card b,
.pattern-card b {
  width: max-content;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  border-bottom: 2px solid currentColor;
}

.failure-story-band {
  background: #f4efe6;
  color: #14120f;
}

.failure-story-band .eyebrow,
.why-band .eyebrow,
.pattern-band .eyebrow,
.memory-band .eyebrow,
.related-band .eyebrow {
  color: #c6331f;
}

.failure-story-band .section-head p:not(.eyebrow),
.why-band .section-head p:not(.eyebrow),
.related-band .section-head p:not(.eyebrow) {
  color: rgba(20, 18, 15, .70);
}

.timeline-flow {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 auto;
  border: 1px solid rgba(20, 18, 15, .18);
  background: rgba(20, 18, 15, .18);
}

.timeline-step {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #14120f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .36)),
    #f4efe6;
  box-shadow: none;
  padding: 24px;
}

.timeline-step:hover,
.timeline-step:focus-visible {
  color: #14120f;
  border-color: rgba(198, 51, 31, .60);
  background: #fff7eb;
}

.timeline-step span,
.timeline-step h3 {
  color: #c6331f;
}

.timeline-step p {
  color: rgba(20, 18, 15, .75);
}

.why-band {
  background:
    linear-gradient(180deg, #e8dfd0 0%, #f4efe6 100%);
  color: #14120f;
}

.why-layout {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  margin: 0 auto;
}

.why-copy {
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid rgba(20, 18, 15, .16);
  background: rgba(255, 255, 255, .54);
}

.why-copy p {
  margin-bottom: 20px;
  color: rgba(20, 18, 15, .78);
  font-size: clamp(21px, 2.5vw, 32px);
  line-height: 1.22;
  font-weight: 900;
}

.why-copy p:last-child {
  margin-bottom: 0;
}

.why-counters {
  display: grid;
  gap: 12px;
}

.why-counters .metric {
  color: var(--ink);
  background: #090b0d;
}

.lead-band {
  background: linear-gradient(180deg, #f4efe6 0%, #e9e0d2 100%);
  color: #171410;
}

.lead-band .eyebrow {
  color: #c6331f;
}

.finding-layout {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 22px;
  margin: 0 auto;
}

.finding-copy,
.finding-rule {
  border: 1px solid rgba(10, 10, 10, .18);
  background: rgba(255, 255, 255, .45);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .10);
}

.finding-copy {
  padding: clamp(28px, 4vw, 46px);
  font-size: clamp(21px, 2.7vw, 34px);
  line-height: 1.22;
  font-weight: 900;
}

.finding-copy p:last-child,
.finding-rule ul {
  margin-bottom: 0;
}

.finding-rule {
  padding: clamp(24px, 3vw, 36px);
}

.finding-rule h3 {
  margin-bottom: 18px;
  font-size: 22px;
  text-transform: uppercase;
}

.finding-rule li {
  margin: 10px 0;
  font-weight: 850;
}

.theory-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(680px 420px at 82% 20%, rgba(255, 79, 53, .20), transparent 64%),
    radial-gradient(720px 420px at 8% 62%, rgba(185, 255, 90, .14), transparent 62%),
    linear-gradient(180deg, #060709 0%, #0c0f10 100%);
}

.theory-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  pointer-events: none;
  background-image:
    linear-gradient(120deg, transparent 0 44%, rgba(255, 255, 255, .20) 45%, transparent 46% 100%),
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 180px 180px, 64px 64px;
}

.state-grid {
  position: relative;
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto;
}

.state-card {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  background: #111;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.state-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease, filter .5s ease;
}

.state-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .42) 42%, rgba(0, 0, 0, .82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .64) 0%, rgba(0, 0, 0, .16) 100%);
}

.state-card:hover img,
.state-card:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.12) contrast(1.05);
}

.state-card > *:not(img) {
  position: relative;
  z-index: 2;
}

.state-number {
  width: max-content;
  margin-bottom: auto;
  color: var(--red);
  font-size: 17px;
  font-weight: 950;
}

.state-card h3 {
  max-width: 560px;
  margin: 110px 0 12px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: .94;
  font-weight: 950;
  text-transform: uppercase;
}

.state-card p {
  max-width: 560px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.35;
}

.expand-affordance {
  width: max-content;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  border-bottom: 2px solid currentColor;
}

.diagnostics-band {
  background: #f4efe6;
  color: #14120f;
}

.diagnostics-band .eyebrow {
  color: #c6331f;
}

.diagnostic-list,
.evidence-accordion-list {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.diagnostic-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.diagnostic-list article {
  min-height: 280px;
  padding: 24px;
  border: 1px solid rgba(20, 18, 15, .18);
  background: rgba(255, 255, 255, .48);
}

.diagnostic-list span,
.story-grid span {
  color: var(--red);
  font-size: 15px;
  font-weight: 950;
}

.diagnostic-list h3 {
  margin: 34px 0 12px;
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
}

.diagnostic-list p {
  margin-bottom: 0;
  color: rgba(20, 18, 15, .76);
  font-weight: 800;
}

.evidence-accordion-list {
  display: grid;
  gap: 10px;
}

.evidence-accordion {
  border: 1px solid rgba(20, 18, 15, .18);
  background: rgba(255, 255, 255, .50);
}

.evidence-accordion summary {
  min-height: 78px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
}

.evidence-accordion summary::-webkit-details-marker {
  display: none;
}

.evidence-accordion summary::after {
  content: "Open evidence ->";
  justify-self: end;
  color: #c6331f;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.evidence-accordion[open] summary::after {
  content: "Close evidence";
}

.evidence-accordion summary span {
  color: #c6331f;
  font-size: 16px;
  font-weight: 950;
}

.evidence-accordion summary strong {
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1;
  text-transform: uppercase;
}

.evidence-accordion p {
  margin: 0;
  padding: 0 24px 26px 96px;
  color: rgba(20, 18, 15, .78);
  font-size: 18px;
  font-weight: 820;
}

.architecture-band {
  background:
    radial-gradient(700px 520px at 72% 20%, rgba(137, 200, 255, .18), transparent 62%),
    linear-gradient(180deg, #080a0c 0%, #050607 100%);
}

.architecture-map {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--line);
}

.architecture-map div {
  min-height: 300px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035)),
    #080a0c;
}

.architecture-map h3 {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.architecture-map p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.pattern-band {
  background:
    radial-gradient(680px 420px at 14% 14%, rgba(255, 79, 53, .18), transparent 62%),
    radial-gradient(700px 460px at 88% 70%, rgba(185, 255, 90, .11), transparent 64%),
    linear-gradient(180deg, #07090b 0%, #050607 100%);
}

.pattern-band .eyebrow,
.memory-band .eyebrow,
.related-band .eyebrow {
  color: var(--green);
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pattern-card {
  min-height: 360px;
  display: grid;
  align-content: space-between;
  padding: 26px;
}

.memory-band {
  background: #f4efe6;
  color: #14120f;
}

.memory-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(20, 18, 15, .18);
  background: rgba(20, 18, 15, .18);
}

.memory-layout article {
  min-height: 280px;
  padding: 28px;
  background: rgba(255, 255, 255, .58);
}

.memory-layout h3 {
  margin-bottom: 18px;
  color: #c6331f;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}

.memory-layout p {
  color: rgba(20, 18, 15, .76);
  font-size: 18px;
  font-weight: 820;
}

.stories-band {
  background: linear-gradient(180deg, #d84328 0%, #26100a 100%);
}

.story-grid {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
}

.story-grid button {
  min-height: 164px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--ink);
  text-align: left;
  background: rgba(0, 0, 0, .36);
  cursor: pointer;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.08;
  font-weight: 950;
}

.story-grid button:hover,
.story-grid button:focus-visible {
  border-color: var(--green);
  background: rgba(0, 0, 0, .52);
}

.story-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
}

.related-band {
  background:
    linear-gradient(180deg, #e9e0d2 0%, #f4efe6 100%);
  color: #14120f;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(20, 18, 15, .18);
  background: rgba(20, 18, 15, .18);
}

.related-grid a {
  min-height: 150px;
  display: flex;
  align-items: end;
  padding: 22px;
  color: #14120f;
  text-decoration: none;
  background: rgba(255, 255, 255, .58);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.05;
  font-weight: 950;
  text-transform: uppercase;
}

.related-grid a:hover,
.related-grid a:focus-visible {
  color: #071005;
  background: var(--green);
}

.evidence-band {
  background: #050607;
}

.evidence-rail {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .055);
}

.evidence-rail p {
  margin-bottom: 16px;
}

.evidence-rail p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: grid;
  gap: 14px;
  padding: 28px clamp(22px, 5vw, 72px) 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #030404;
}

.footer-line,
.footer-links,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 17px;
}

.footer-line {
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(246, 244, 238, .1);
}

.footer-line strong,
.footer-links span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.footer-line span,
.footer-meta span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 650;
}

.footer-line a,
.footer-links a {
  color: rgba(246, 244, 238, .82);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.footer-line a:hover,
.footer-links a:hover,
.footer-line a:focus-visible,
.footer-links a:focus-visible {
  color: var(--green);
  outline: 0;
}

.button,
.metric,
.executive-card,
.timeline-step,
.state-card,
.diagnostic-list article,
.architecture-map div,
.pattern-card,
.memory-layout article,
.story-grid button,
.evidence-rail,
.modal-panel,
.modal-content-grid article {
  border-radius: var(--radius-lg);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(0, 0, 0, .78);
}

.modal-shell.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
}

.modal-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(320px, 46svh) minmax(0, 1fr);
  overflow: hidden;
  color: var(--ink);
  background: #050607;
  animation: modalIn .22s ease both;
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(0, 0, 0, .48);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #061005;
  background: var(--green);
}

.modal-hero {
  position: relative;
  overflow: hidden;
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .48) 58%, rgba(0, 0, 0, .18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .84) 100%);
}

.modal-hero-copy {
  position: absolute;
  left: clamp(22px, 5vw, 72px);
  right: clamp(22px, 5vw, 72px);
  bottom: clamp(24px, 5vw, 56px);
  width: min(920px, calc(100% - 44px));
}

.modal-hero-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 90px);
  line-height: .92;
  font-weight: 950;
  text-transform: uppercase;
}

.modal-hero-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, .84);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 800;
}

.modal-content {
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 5vw, 72px);
  background:
    radial-gradient(640px 360px at 12% 0%, rgba(185, 255, 90, .10), transparent 64%),
    #050607;
}

.modal-content-grid {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 26px;
  margin: 0 auto;
}

.modal-block {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .055);
}

.modal-block h3 {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 20px;
  text-transform: uppercase;
}

.modal-block p,
.modal-block li {
  color: var(--muted);
  font-weight: 750;
}

.modal-block p:last-child,
.modal-block ul:last-child {
  margin-bottom: 0;
}

.modal-block.feature {
  background: rgba(255, 79, 53, .12);
  border-color: rgba(255, 79, 53, .34);
}

body.modal-open {
  overflow: hidden;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 60px;
  }

  .site-header {
    grid-template-columns: 44px 1fr;
    height: 60px;
    padding: 0 16px;
  }

  .menu-button {
    display: block;
  }

  .brand {
    justify-self: center;
    transform: translateX(-22px);
  }

  .brand strong {
    font-size: 12px;
  }

  .brand span {
    font-size: 14px;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 6, 7, .95);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 4, 5, .80) 0%, rgba(3, 4, 5, .54) 52%, rgba(3, 4, 5, .22) 100%),
      linear-gradient(180deg, rgba(3, 4, 5, .46) 0%, rgba(3, 4, 5, .22) 42%, rgba(3, 4, 5, .88) 100%);
  }

  h1 {
    font-size: clamp(43px, 13vw, 76px);
  }

  .hero-metrics,
  .executive-grid,
  .timeline-flow,
  .why-layout,
  .finding-layout,
  .diagnostic-list,
  .architecture-map,
  .pattern-grid,
  .memory-layout,
  .story-grid,
  .related-grid,
  .site-footer,
  .modal-content-grid {
    grid-template-columns: 1fr;
  }

  .state-grid {
    grid-template-columns: 1fr;
  }

  .state-card {
    min-height: 390px;
  }

  .diagnostic-list article,
  .architecture-map div,
  .memory-layout article {
    min-height: auto;
  }

  .executive-card,
  .timeline-step,
  .pattern-card {
    min-height: 260px;
  }

  .site-footer {
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-inline: 18px;
    padding-bottom: 24px;
  }

  .hero-deck {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .metric {
    min-height: 96px;
  }

  .band {
    padding-inline: 18px;
  }

  .executive-card,
  .timeline-step,
  .pattern-card {
    padding: 22px;
  }

  .evidence-accordion summary {
    grid-template-columns: 42px 1fr;
    padding: 17px 18px;
  }

  .evidence-accordion summary::after {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }

  .evidence-accordion p {
    padding: 0 18px 22px 60px;
  }

  .state-card {
    min-height: 360px;
    padding: 22px;
  }

  .state-card h3 {
    margin-top: 86px;
  }

  .modal-panel {
    grid-template-rows: minmax(290px, 40svh) minmax(0, 1fr);
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .modal-hero img {
    object-position: 58% center;
  }

  .modal-hero-copy {
    bottom: 22px;
  }

  .modal-content {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
