:root {
  color-scheme: dark;
  --bg: #070807;
  --surface: #0d0f0d;
  --surface-raised: #121512;
  --line: rgba(232, 230, 224, 0.11);
  --line-strong: rgba(232, 230, 224, 0.22);
  --text: #e8e6e0;
  --muted: #8b8e87;
  --faint: #555a54;
  --acid: #b9f36b;
  --warning: #e6b36b;
  --serif: "Playfair Display", "Iowan Old Style", "Baskerville", Georgia, serif;
  --sans: "Neue Montreal", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "Azeret Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --shell: min(1360px, calc(100vw - 96px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 83% 7%, rgba(185, 243, 107, 0.07), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--acid);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
}

.skip-link:focus {
  top: 18px;
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.case-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  min-height: 68px;
  padding-inline: max(48px, calc((100vw - 1360px) / 2));
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 7, 0.86);
  backdrop-filter: blur(18px);
  grid-template-columns: 1fr auto 1fr;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.brand span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(185, 243, 107, 0.7);
}

.header-meta {
  display: flex;
  gap: 32px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.header-action {
  justify-self: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-action:hover,
.header-action:focus-visible {
  color: var(--acid);
}

.case-hero {
  display: grid;
  min-height: calc(100svh - 68px);
  padding-top: clamp(88px, 11vh, 148px);
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  column-gap: 64px;
}

.hero-index {
  display: flex;
  align-self: start;
  justify-content: space-between;
  grid-column: 1 / -1;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.case-hero h1 {
  margin: clamp(62px, 9vh, 120px) 0 0;
  font-family: var(--serif);
  font-size: clamp(82px, 12.5vw, 184px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.75;
}

.case-hero h1 em {
  color: var(--acid);
  font-weight: 400;
}

.hero-deck {
  max-width: 460px;
  margin: clamp(72px, 12vh, 150px) 0 0;
  align-self: start;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  margin-top: 64px;
  align-items: center;
  gap: 30px;
  grid-column: 1 / -1;
}

.primary-link {
  display: flex;
  min-width: 280px;
  min-height: 58px;
  padding-inline: 18px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(185, 243, 107, 0.45);
  background: rgba(185, 243, 107, 0.06);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--acid);
  color: var(--bg);
}

.text-link {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-plate {
  margin-top: clamp(90px, 14vh, 170px);
  border: 1px solid var(--line-strong);
  grid-column: 1 / -1;
  background: linear-gradient(145deg, rgba(20, 24, 20, 0.8), rgba(7, 8, 7, 0.95));
}

.hero-plate svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--text);
}

.plate-plan rect:first-child {
  fill: none;
  stroke: rgba(232, 230, 224, 0.28);
  stroke-width: 2;
}

.plate-plan path:not(.trace) {
  fill: rgba(232, 230, 224, 0.08);
  fill-rule: evenodd;
}

.plate-plan circle {
  fill: var(--acid);
  filter: url(#hero-glow);
}

.plate-plan .trace {
  fill: none;
  stroke: var(--warning);
  stroke-dasharray: 5 7;
  stroke-linecap: round;
  stroke-width: 3;
}

.plate-plan-b .trace {
  stroke: var(--acid);
}

.comparison-line {
  fill: none;
  stroke: rgba(232, 230, 224, 0.22);
  stroke-width: 1;
}

.comparison-node {
  fill: var(--bg);
  stroke: var(--acid);
  stroke-width: 1.5;
}

.hero-plate text {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hero-plate .plate-caption {
  fill: var(--faint);
  font-size: 10px;
}

.project-facts {
  display: grid;
  margin: 0 0 140px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
}

.project-facts div {
  min-height: 104px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.project-facts div:last-child {
  border-right: 0;
}

.project-facts dt,
.project-facts dd {
  margin: 0;
}

.project-facts dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-facts dd {
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

.case-section {
  display: grid;
  padding-block: 150px;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(180px, 0.33fr) minmax(0, 1fr);
  gap: 72px;
}

.section-label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.section-copy h2,
.section-heading h2,
.evidence-heading h2,
.interface-copy h2,
.case-cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6.5vw, 96px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-copy h2 em,
.evidence-heading h2 em {
  color: var(--acid);
  font-weight: 400;
}

.copy-columns {
  display: grid;
  margin-top: 70px;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.copy-columns p,
.section-heading p,
.interface-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.comparison-section {
  padding-block: 150px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 21, 18, 0.72), rgba(7, 8, 7, 0));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.33fr) minmax(0, 1fr);
  gap: 72px;
}

.section-heading p {
  max-width: 650px;
  margin-top: 42px;
}

.condition-grid {
  display: grid;
  margin-top: 96px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  grid-template-columns: 1fr 1fr;
}

.condition-card {
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.condition-head {
  min-height: 184px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.condition-head span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.13em;
}

.condition-fragmented .condition-head span {
  color: var(--warning);
}

.condition-head strong {
  display: block;
  margin-top: 42px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

.condition-head p {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.condition-card svg {
  display: block;
  width: 100%;
  padding: 36px;
  background:
    linear-gradient(rgba(232, 230, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 230, 224, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

.plan-boundary {
  fill: none;
  stroke: rgba(232, 230, 224, 0.35);
  stroke-width: 3;
}

.plan-walls rect {
  fill: rgba(232, 230, 224, 0.12);
}

.plan-points circle {
  fill: var(--text);
}

.plan-route {
  fill: none;
  stroke: var(--acid);
  stroke-dasharray: 4 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.condition-fragmented .plan-route {
  stroke: var(--warning);
}

.risk-points circle {
  fill: rgba(230, 179, 107, 0.13);
  stroke: var(--warning);
  stroke-width: 1;
}

.condition-legible .risk-points circle {
  fill: rgba(185, 243, 107, 0.08);
  stroke: var(--acid);
}

.condition-card dl {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
}

.condition-card dl div {
  min-height: 94px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.condition-card dl div:last-child {
  border-right: 0;
}

.condition-card dt,
.condition-card dd {
  margin: 0;
}

.condition-card dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.condition-card dd {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 24px;
}

.control-strip {
  display: grid;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  grid-template-columns: repeat(4, 1fr);
}

.control-strip span {
  padding: 20px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-strip span:last-child {
  border-right: 0;
}

.system-flow {
  display: grid;
  margin: 92px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
}

.system-flow li {
  min-height: 270px;
  padding: 20px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.system-flow li > span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
}

.system-flow strong {
  display: block;
  margin-top: 78px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
}

.system-flow p {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.7;
}

.evidence-section {
  padding-block: 150px;
  border-top: 1px solid var(--line);
  background: var(--text);
  color: var(--bg);
}

.evidence-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.33fr) minmax(0, 1fr);
  gap: 72px;
}

.evidence-heading .section-label {
  color: #74776f;
}

.evidence-heading h2 em {
  color: #426900;
}

.evidence-grid {
  display: grid;
  margin-top: 90px;
  border-top: 1px solid rgba(7, 8, 7, 0.22);
  border-left: 1px solid rgba(7, 8, 7, 0.22);
  grid-template-columns: repeat(3, 1fr);
}

.evidence-grid article {
  min-height: 240px;
  padding: 22px;
  border-right: 1px solid rgba(7, 8, 7, 0.22);
  border-bottom: 1px solid rgba(7, 8, 7, 0.22);
}

.evidence-grid article > span {
  color: #70736c;
  font-family: var(--mono);
  font-size: 8px;
}

.evidence-grid strong {
  display: block;
  margin-top: 76px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.evidence-grid p {
  max-width: 280px;
  margin: 13px 0 0;
  color: #666a63;
  font-size: 11px;
  line-height: 1.7;
}

.interface-section {
  display: grid;
  padding-block: 150px;
  grid-template-columns: minmax(180px, 0.33fr) minmax(0, 1fr);
  gap: 72px;
}

.interface-copy p {
  max-width: 650px;
  margin-top: 42px;
}

.interface-preview {
  margin-top: 92px;
  border: 1px solid var(--line-strong);
  grid-column: 1 / -1;
  background: #090b09;
}

.preview-bar {
  display: flex;
  min-height: 54px;
  padding-inline: 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.preview-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
}

.preview-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.preview-options > div {
  display: grid;
  min-height: 350px;
  padding: 34px;
  align-content: end;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(rgba(232, 230, 224, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 230, 224, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
}

.preview-options > div:last-child {
  border-right: 0;
}

.preview-options small {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.preview-options strong {
  max-width: 480px;
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(31px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.preview-options span {
  margin-top: 24px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-grid {
  display: grid;
  margin-top: 90px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  grid-template-columns: 1fr 1fr;
}

.status-grid article {
  min-height: 360px;
  padding: 28px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.status-grid article > span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-grid .pending > span {
  color: var(--warning);
}

.status-grid ul {
  margin: 110px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
  list-style: none;
}

.status-grid li::before {
  margin-right: 10px;
  content: "—";
  color: var(--faint);
}

.case-cta {
  padding-block: 150px 170px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.case-cta > span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.case-cta h2 {
  margin-top: 42px;
  font-size: clamp(68px, 10vw, 150px);
  line-height: 0.82;
}

.case-cta a {
  display: inline-flex;
  min-width: 330px;
  min-height: 64px;
  margin-top: 74px;
  padding-inline: 20px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--acid);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.case-cta a:hover,
.case-cta a:focus-visible {
  background: var(--acid);
  color: var(--bg);
}

.case-cta i {
  font-style: normal;
}

.case-footer {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.case-footer a {
  text-decoration: none;
}

.case-footer a:hover,
.case-footer a:focus-visible {
  color: var(--acid);
}

@media (max-width: 1000px) {
  :root {
    --shell: calc(100vw - 48px);
  }

  .case-header {
    padding-inline: 24px;
  }

  .header-meta {
    display: none;
  }

  .case-header {
    grid-template-columns: 1fr 1fr;
  }

  .case-hero {
    grid-template-columns: 1fr;
  }

  .hero-deck {
    max-width: 660px;
    margin-top: 56px;
  }

  .system-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-flow li:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  .case-header {
    min-height: 58px;
    padding-inline: 16px;
  }

  .header-action {
    font-size: 7px;
  }

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

  .case-hero h1 {
    margin-top: 60px;
    font-size: clamp(68px, 25vw, 110px);
    line-height: 0.8;
  }

  .hero-deck {
    margin-top: 54px;
    font-size: 19px;
  }

  .hero-actions {
    margin-top: 42px;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .primary-link {
    width: 100%;
    min-width: 0;
  }

  .hero-plate {
    margin-top: 80px;
    overflow: hidden;
  }

  .hero-plate svg {
    width: 150%;
    transform: translateX(-17%);
  }

  .project-facts {
    margin-bottom: 90px;
    grid-template-columns: 1fr 1fr;
  }

  .project-facts div:nth-child(2) {
    border-right: 0;
  }

  .project-facts div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .case-section,
  .section-heading,
  .evidence-heading,
  .interface-section {
    padding-block: 94px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-copy h2,
  .section-heading h2,
  .evidence-heading h2,
  .interface-copy h2 {
    font-size: clamp(44px, 14vw, 68px);
  }

  .copy-columns,
  .condition-grid,
  .status-grid,
  .preview-options {
    grid-template-columns: 1fr;
  }

  .copy-columns {
    margin-top: 50px;
    gap: 26px;
  }

  .comparison-section,
  .evidence-section {
    padding-block: 94px;
  }

  .condition-grid,
  .evidence-grid,
  .interface-preview,
  .status-grid {
    margin-top: 58px;
  }

  .condition-card svg {
    padding: 20px;
  }

  .control-strip {
    grid-template-columns: 1fr 1fr;
  }

  .control-strip span:nth-child(2) {
    border-right: 0;
  }

  .control-strip span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .system-flow,
  .evidence-grid {
    margin-top: 58px;
    grid-template-columns: 1fr;
  }

  .system-flow li:last-child {
    grid-column: auto;
  }

  .system-flow li,
  .evidence-grid article {
    min-height: 210px;
  }

  .system-flow strong,
  .evidence-grid strong {
    margin-top: 54px;
  }

  .interface-preview {
    grid-column: 1;
  }

  .preview-options > div {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-grid article {
    min-height: 310px;
  }

  .status-grid ul {
    margin-top: 74px;
  }

  .case-cta {
    padding-block: 100px 120px;
  }

  .case-cta h2 {
    font-size: clamp(60px, 19vw, 92px);
  }

  .case-cta a {
    width: 100%;
    min-width: 0;
    margin-top: 54px;
  }

  .case-footer {
    padding-block: 28px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
