:root {
  color-scheme: light;
  --ink: #17211c;
  --ink-2: #24352c;
  --muted: #637066;
  --line: #d9dfd7;
  --paper: #f6f7f3;
  --white: #ffffff;
  --green: #1f6d4b;
  --green-dark: #174f37;
  --blue: #245f9b;
  --rust: #a9582d;
  --red: #b63b35;
  --gold: #b8872d;
  --shadow: 0 18px 40px rgba(24, 35, 29, 0.08);
  --radius: 6px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: var(--radius);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(23, 33, 28, 0.12);
  background: rgba(246, 247, 243, 0.96);
  backdrop-filter: blur(14px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--green-dark);
  border: 1px solid rgba(23, 33, 28, 0.25);
  border-radius: var(--radius);
  font-weight: 700;
}

.brand strong {
  display: block;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--ink-2);
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--green-dark);
  background: rgba(31, 109, 75, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  padding: 72px 0 42px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 42px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--rust);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.65rem;
  line-height: 0.98;
  font-weight: 700;
}

.hero-lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: 1.16rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: 0.78fr 0.84fr 1.35fr;
  gap: 1px;
  margin: 34px 0 0;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-meta div {
  padding: 18px;
  background: var(--paper);
}

.hero-meta dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.hero-actions,
.download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.download-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  color: var(--white);
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.button-secondary,
.download-list a {
  color: var(--ink);
  background: var(--white);
}

.button:hover,
.download-list a:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.hero-figure,
.wide-figure,
.figure-panel,
.prototype-shot {
  margin: 0;
}

.hero-figure {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 8.2;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(23, 33, 28, 0.08);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.metrics-band {
  background: var(--green-dark);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--white);
}

.metric {
  min-height: 126px;
  padding: 26px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.65rem;
  line-height: 1;
}

.metric span {
  display: block;
  max-width: 180px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: 86px 0;
}

.section-ruled {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.7fr);
  align-items: start;
  gap: 48px;
  margin-bottom: 38px;
}

.section-heading.compact {
  display: block;
  margin-bottom: 0;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.75rem;
  line-height: 1.08;
}

.section-heading p,
.feature-card p,
.finding p,
.findings-list p,
.scope-card li,
.clean-list li,
.point span,
.audit-strip span,
.footer-grid p {
  color: var(--muted);
}

.section-heading p {
  margin: 0;
  font-size: 1.06rem;
}

.overview-grid,
.evidence-grid,
.scope-grid,
.process-grid {
  display: grid;
  gap: 16px;
}

.overview-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.finding,
.scope-card,
.process-grid article,
.point,
.audit-strip div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-ruled .feature-card,
.section-ruled .finding,
.section-ruled .scope-card,
.section-ruled .process-grid article,
.section-ruled .point,
.section-ruled .audit-strip div {
  background: var(--paper);
}

.feature-card {
  min-height: 270px;
  padding: 24px;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 36px;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
}

.feature-card:nth-child(2) .card-index {
  background: var(--green);
}

.feature-card:nth-child(3) .card-index {
  background: var(--rust);
}

.feature-card:nth-child(4) .card-index {
  background: var(--red);
}

.feature-card h3,
.process-grid h3,
.scope-card h3,
.findings-list h3,
.gallery-header h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.feature-card p {
  margin: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.95fr);
  gap: 52px;
  margin-bottom: 38px;
}

.align-center {
  align-items: center;
}

.system-points {
  display: grid;
  gap: 12px;
}

.point {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px;
}

.point strong {
  color: var(--ink-2);
}

.wide-figure {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-ruled .wide-figure {
  background: var(--paper);
}

.wide-figure img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(23, 33, 28, 0.08);
}

.process-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.process-grid article,
.scope-card {
  padding: 24px;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.data-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.figure-panel {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.figure-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--white);
}

.table-wrap {
  margin-top: 32px;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 760px;
}

caption {
  padding: 18px 20px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

th {
  color: var(--ink-2);
  background: #eef2ee;
  font-size: 0.9rem;
}

td {
  color: var(--muted);
}

td:first-child {
  color: var(--ink);
  font-weight: 700;
}

.evidence-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

.finding {
  padding: 22px;
}

.finding span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.finding strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.05rem;
  line-height: 1;
}

.finding p {
  margin: 0;
}

.findings-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 18px 0 44px;
}

.findings-list div {
  padding: 22px 0;
  border-top: 2px solid var(--line);
}

.findings-list p {
  margin: 0;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.gallery-header h3 {
  margin: 0;
}

.filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-button {
  min-height: 36px;
  padding: 6px 12px;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
}

.filter-button.is-active {
  color: var(--white);
  background: var(--ink-2);
}

.figure-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #f3f5f1;
  border-bottom: 1px solid var(--line);
}

.gallery-card span {
  display: block;
  padding: 14px 16px 16px;
  font-weight: 700;
}

.prototype-shot {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.demos-intro {
  max-width: 820px;
  margin-bottom: 28px;
}

.demo-note {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prototype-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid rgba(23, 33, 28, 0.08);
}

.prototype-shot-compact {
  max-width: 860px;
  margin: 18px auto 16px;
}

.walkthrough-embed {
  margin: 22px 0 16px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: var(--white);
  background: #111a16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.embed-header .section-kicker {
  margin-bottom: 4px;
  color: #d7a56a;
}

.embed-header h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.embed-header a {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 12px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.walkthrough-embed iframe {
  display: block;
  width: 100%;
  height: min(720px, 82vh);
  background: #0a0e1a;
  border: 0;
}

.audit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.audit-strip div {
  padding: 20px;
  border-top: 4px solid var(--green);
}

.audit-strip div:nth-child(2) {
  border-top-color: var(--blue);
}

.audit-strip div:nth-child(3) {
  border-top-color: var(--rust);
}

.audit-strip strong,
.audit-strip span {
  display: block;
}

.audit-strip span {
  margin-top: 8px;
}

.scope-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 18px;
}

.scope-card {
  border-top: 4px solid var(--green);
}

.scope-card.future {
  border-top-color: var(--rust);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(15, 22, 18, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(1120px, 100%);
  max-height: 88vh;
  margin: 0;
  padding: 16px;
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius);
}

.lightbox img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: var(--white);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--green-dark);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  font-weight: 700;
}

.site-footer {
  padding: 34px 0;
  color: var(--white);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 30px;
}

.footer-grid strong,
.footer-grid span {
  display: block;
  color: var(--white);
  font-weight: 700;
}

.footer-grid p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

:focus-visible {
  outline: 3px solid rgba(36, 95, 155, 0.45);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .section-heading,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

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

  .data-layout,
  .figure-gallery,
  .audit-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body.nav-open .site-header {
    background: var(--paper);
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 35px rgba(23, 33, 28, 0.12);
  }

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

  .site-nav a {
    padding: 14px;
  }

  .hero {
    padding-top: 46px;
  }

  .hero h1 {
    font-size: 2.7rem;
    line-height: 1.05;
  }

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

  .metrics-grid,
  .process-grid,
  .findings-list,
  .scope-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading h2 {
    font-size: 2.2rem;
  }

  .overview-grid,
  .evidence-grid,
  .data-layout,
  .figure-gallery,
  .audit-strip {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 20px;
  }

  .point {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .gallery-header {
    display: block;
  }

  .filter-group {
    margin-top: 12px;
  }

  .embed-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .walkthrough-embed iframe {
    height: 680px;
  }

  .lightbox {
    padding: 18px;
  }
}

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

  .button:hover,
  .download-list a:hover,
  .filter-button:hover {
    transform: none;
  }
}
