:root {
  color-scheme: light dark;
  --bg: #f2f2ec;
  --bg-elevated: #e8e9e1;
  --surface: #dedfd6;
  --text: #161916;
  --text-soft: #525a52;
  --line: #c7cbc1;
  --accent: #55735c;
  --accent-strong: #38513e;
  --accent-ink: #f5f6f1;
  --photo-filter: saturate(0.84) contrast(1.04);
  --radius: 4px;
  --shell: min(1240px, calc(100vw - 48px));
  --nav-height: 72px;
  font-family: "Segoe UI Variable", "Aptos", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101310;
    --bg-elevated: #171b17;
    --surface: #202620;
    --text: #eceee8;
    --text-soft: #aab2a9;
    --line: #303830;
    --accent: #87ae90;
    --accent-strong: #a2c6aa;
    --accent-ink: #101310;
    --photo-filter: saturate(0.7) contrast(1.08) brightness(0.88);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f2ec;
  --bg-elevated: #e8e9e1;
  --surface: #dedfd6;
  --text: #161916;
  --text-soft: #525a52;
  --line: #c7cbc1;
  --accent: #55735c;
  --accent-strong: #38513e;
  --accent-ink: #f5f6f1;
  --photo-filter: saturate(0.84) contrast(1.04);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101310;
  --bg-elevated: #171b17;
  --surface: #202620;
  --text: #eceee8;
  --text-soft: #aab2a9;
  --line: #303830;
  --accent: #87ae90;
  --accent-strong: #a2c6aa;
  --accent-ink: #101310;
  --photo-filter: saturate(0.7) contrast(1.08) brightness(0.88);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

body,
button {
  font-family: inherit;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--nav-height);
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 11px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 680;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 25px;
  height: 25px;
}

.brand-mark i {
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
}

.brand-mark i:nth-child(1) {
  top: 0;
  left: 0;
  background: var(--text);
}

.brand-mark i:nth-child(2) {
  right: 0;
  bottom: 0;
  border-color: var(--accent);
  background: var(--accent);
}

.brand-mark i:nth-child(3) {
  top: 5px;
  left: 5px;
  background: var(--bg);
}

.desktop-nav,
.nav-actions,
.button-row,
.footer-links {
  display: flex;
  align-items: center;
}

.desktop-nav {
  gap: 28px;
  font-size: 0.84rem;
}

.desktop-nav a,
.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.desktop-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.nav-actions {
  justify-content: flex-end;
  gap: 12px;
}

.theme-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  place-items: center;
}

.theme-toggle span {
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.theme-toggle:hover {
  border-color: var(--text-soft);
}

.menu-toggle {
  display: none;
  min-height: 42px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

.mobile-nav {
  width: var(--shell);
  margin: 0 auto;
  padding: 8px 0 22px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.button:active {
  transform: translateY(1px);
}

.button-small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 0.8rem;
}

.button-inverse {
  border-color: var(--accent-ink);
  background: var(--accent-ink);
  color: var(--accent-strong);
}

.button-inverse:hover {
  border-color: var(--bg);
  background: var(--bg);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.text-link:hover {
  color: var(--accent-strong);
}

.hero {
  min-height: calc(100dvh - var(--nav-height));
  display: grid;
  align-items: center;
  padding: clamp(48px, 8vh, 92px) 0;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.eyebrow,
.map-label,
.audience-index {
  margin: 0;
  color: var(--accent-strong);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(2.7rem, 3.55vw, 3.45rem);
  font-weight: 520;
  letter-spacing: -0.064em;
  line-height: 0.95;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-value {
  max-width: 24ch;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.45rem, 2.25vw, 2.2rem);
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-lede {
  max-width: 48ch;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.button-row {
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  aspect-ratio: 1.04 / 1;
}

.hero-visual::after,
.evidence-visual::after {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  content: "";
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  filter: var(--photo-filter);
  object-fit: cover;
  object-position: 61% center;
}

.proof-strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

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

.proof-grid p {
  display: grid;
  min-height: 116px;
  margin: 0;
  padding: 24px 24px 22px;
  border-left: 1px solid var(--line);
  align-content: center;
}

.proof-grid p:last-child {
  border-right: 1px solid var(--line);
}

.proof-grid strong {
  font-size: 0.88rem;
}

.proof-grid span {
  margin-top: 7px;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.section {
  padding: clamp(88px, 11vw, 164px) 0;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.evidence-copy h2,
.roadmap h2,
.closing h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4.35rem);
  font-weight: 540;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.section-heading p,
.evidence-copy > p,
.roadmap-copy > p,
.closing p {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.section-heading.compact {
  max-width: 820px;
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(64px, 12vw, 180px);
}

.problem .section-heading h2 {
  max-width: 12ch;
}

.problem-statement {
  padding-top: 14px;
}

.problem-statement > p {
  margin: 0;
  color: var(--text-soft);
}

.problem-statement .display-copy {
  max-width: 18ch;
  margin: 22px 0 52px;
  color: var(--text);
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.system-section {
  background: var(--bg-elevated);
}

.system-map {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr 1.15fr 0.82fr;
  margin: 72px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  list-style: none;
}

.system-map > li {
  position: relative;
  min-height: 310px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.system-map > li:last-child {
  border-right: 0;
}

.system-map > li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -14px;
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-soft);
  content: ">";
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.76rem;
  place-items: center;
  transform: translateY(-50%);
}

.system-map strong {
  display: block;
  max-width: 15ch;
  margin-top: 94px;
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.system-map p {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.source-list {
  display: grid;
  gap: 11px;
  margin-top: 54px;
}

.source-list span {
  width: max-content;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent);
  color: var(--text-soft);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.8rem;
}

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
}

.evidence-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.evidence-visual img {
  width: 100%;
  filter: var(--photo-filter);
}

.evidence-list {
  margin: 48px 0 0;
}

.evidence-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.evidence-list dt {
  font-size: 0.82rem;
  font-weight: 700;
}

.evidence-list dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.audience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(320px, 0.64fr);
  gap: 1px;
  margin-top: 72px;
  background: var(--line);
  border: 1px solid var(--line);
}

.audience-layout article {
  min-width: 0;
  background: var(--bg);
}

.audience-primary {
  grid-row: span 2;
  min-height: 660px;
  padding: clamp(32px, 5vw, 68px);
}

.audience-team {
  min-height: 330px;
  padding: 34px;
}

.audience-partner {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: clamp(32px, 5vw, 68px);
  background: var(--accent) !important;
  color: var(--accent-ink);
}

.audience-partner .audience-index,
.audience-partner p {
  color: color-mix(in srgb, var(--accent-ink) 82%, transparent);
}

.audience-layout h3 {
  max-width: 18ch;
  margin: 28px 0 0;
  font-size: clamp(1.6rem, 3vw, 3.1rem);
  font-weight: 540;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.audience-team h3 {
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
}

.audience-layout article > p:not(.audience-index),
.audience-partner > div > p {
  max-width: 56ch;
  margin: 22px 0 0;
  color: var(--text-soft);
}

.audience-layout .audience-partner > div > p {
  color: color-mix(in srgb, var(--accent-ink) 82%, transparent);
}

.audience-layout .text-link {
  margin-top: 30px;
}

.code-block {
  position: relative;
  max-width: 650px;
  margin: 58px 0 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
}

.code-block pre {
  margin: 0;
  overflow-x: auto;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: clamp(0.74rem, 1.4vw, 0.9rem);
  line-height: 1.8;
}

.code-block button {
  margin-top: 22px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.roadmap {
  background: var(--bg-elevated);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1.18fr);
  gap: clamp(64px, 10vw, 146px);
}

.roadmap-copy .eyebrow {
  margin-bottom: 24px;
}

.roadmap-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.roadmap-status h3 {
  max-width: 18ch;
  margin: 0 0 28px;
  font-size: 0.86rem;
  font-weight: 700;
}

.roadmap-status ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-status li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.roadmap-status strong {
  color: var(--accent-strong);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.76rem;
}

.roadmap-status span {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(64px, 10vw, 148px);
  align-items: end;
}

.closing h2 {
  max-width: 14ch;
}

.site-footer {
  padding: 64px 0;
  background: var(--text);
  color: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
}

.site-footer .brand {
  color: var(--bg);
}

.site-footer .brand-mark i:nth-child(1) {
  background: var(--bg);
}

.site-footer .brand-mark i:nth-child(2) {
  border-color: var(--accent);
  background: var(--accent);
}

.site-footer .brand-mark i:nth-child(3) {
  background: var(--text);
}

.site-footer p {
  margin: 16px 0 0;
  color: color-mix(in srgb, var(--bg) 64%, transparent);
  font-size: 0.8rem;
}

.footer-links {
  align-items: flex-start;
  gap: 24px;
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--bg);
}

.footer-note {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent);
}

.copy-status {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 20px;
  max-width: calc(100vw - 40px);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.not-found-page {
  min-height: 100dvh;
}

.not-found {
  display: grid;
  min-height: 100dvh;
  padding-block: 48px;
  align-content: space-between;
}

.not-found > div {
  max-width: 820px;
  padding: 80px 0;
}

.not-found h1 {
  margin: 24px 0 0;
  font-size: clamp(2.8rem, 8vw, 7.8rem);
  font-weight: 520;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.not-found p:not(.eyebrow) {
  margin: 24px 0 34px;
  color: var(--text-soft);
}

@media (max-width: 1080px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.8fr);
    gap: 42px;
  }

  .system-map {
    grid-template-columns: 1fr 1fr;
  }

  .system-map > li {
    min-height: 260px;
    border-bottom: 1px solid var(--line);
  }

  .system-map > li:nth-child(2) {
    border-right: 0;
  }

  .system-map > li:nth-child(3),
  .system-map > li:nth-child(4) {
    border-bottom: 0;
  }

  .system-map > li::after {
    display: none !important;
  }

  .system-map strong {
    margin-top: 62px;
  }

  .audience-layout {
    grid-template-columns: 1fr 1fr;
  }

  .audience-primary {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: auto;
  }

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

@media (max-width: 780px) {
  :root {
    --shell: min(100% - 32px, 680px);
    --nav-height: 64px;
  }

  .desktop-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 64px;
  }

  .hero-grid,
  .problem-grid,
  .evidence-grid,
  .closing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.8rem);
  }

  .hero h1 span {
    white-space: normal;
  }

  .hero-visual {
    aspect-ratio: 4 / 3;
  }

  .hero-visual img {
    object-position: 64% center;
  }

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

  .proof-grid p {
    min-height: 104px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }

  .proof-grid p:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .proof-grid p:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section {
    padding: 84px 0;
  }

  .problem-grid {
    gap: 54px;
  }

  .problem .section-heading h2 {
    max-width: 16ch;
  }

  .system-map {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .system-map > li {
    min-height: auto;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line) !important;
  }

  .system-map > li:last-child {
    border-bottom: 0 !important;
  }

  .system-map strong {
    max-width: none;
    margin-top: 38px;
  }

  .source-list {
    margin-top: 34px;
  }

  .evidence-grid {
    gap: 52px;
  }

  .evidence-visual {
    order: 2;
  }

  .audience-layout,
  .audience-partner,
  .roadmap-status {
    grid-template-columns: 1fr;
  }

  .audience-primary,
  .audience-team,
  .audience-partner {
    grid-column: auto;
    min-height: auto;
    padding: 30px;
  }

  .audience-partner {
    gap: 22px;
  }

  .code-block {
    margin-top: 42px;
    padding: 22px;
  }

  .closing-grid {
    gap: 30px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 440px) {
  .brand {
    font-size: 0.82rem;
  }

  .nav-actions {
    gap: 6px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.45rem);
  }

  .hero-value {
    font-size: clamp(1.35rem, 6.4vw, 1.8rem);
  }

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

  .proof-grid p,
  .proof-grid p:nth-child(2n) {
    min-height: auto;
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .proof-grid p:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .evidence-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .roadmap-status li {
    grid-template-columns: 52px 1fr;
  }
}

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

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

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
  }
}
