:root {
  color-scheme: dark;
  --bg: #030507;
  --bg-raised: #090d11;
  --bg-panel: #0d1318;
  --line: rgba(148, 163, 184, 0.2);
  --line-strong: rgba(94, 234, 212, 0.46);
  --text: #f8fafc;
  --muted: #9aa8b6;
  --soft: #cbd5e1;
  --teal: #5eead4;
  --orange: #d34d2a;
  --orange-line: rgba(211, 77, 42, 0.52);
  --orange-soft: rgba(211, 77, 42, 0.12);
  --green: #86efac;
  --blue: #93c5fd;
  --shadow: rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(94, 234, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 5, 7, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 84px;
  height: 42px;
  object-fit: contain;
  object-position: center;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  color: #fafaf7;
  font-size: 28px;
  font-weight: 820;
  line-height: 1;
}

.brand-name span:last-child {
  color: var(--orange);
}

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

.nav-links a {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--soft);
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  outline: none;
}

.mobile-menu-button {
  display: none;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.github-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(540px, 1.08fr) minmax(390px, 0.78fr);
  gap: 38px;
  align-items: center;
  min-height: 690px;
  padding: 64px 40px 84px;
}

.hero-copy,
.section,
.footer {
  width: min(1180px, calc(100vw - 80px));
  margin: 0 auto;
}

.hero-copy {
  width: auto;
  max-width: 720px;
  margin: 0 0 0 max(0px, calc((100vw - 1180px) / 2));
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 700px;
  color: var(--text);
  font-size: 66px;
  line-height: 1.03;
  font-weight: 780;
}

.hero h1 {
  max-width: 840px;
  font-size: 54px;
  line-height: 1.08;
}

.hero h1,
.section-heading h2,
.truth-card h3 {
  overflow-wrap: normal;
}

h2 {
  margin: 0;
  color: var(--text);
  font-size: 38px;
  line-height: 1.14;
  font-weight: 760;
}

h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 740;
}

.hero-lede {
  max-width: 630px;
  margin: 28px 0 0;
  color: var(--soft);
  font-size: 20px;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 680px;
  margin-top: 24px;
}

.hero-proof span,
.hero-proof a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(13, 19, 24, 0.58);
  color: rgba(203, 213, 225, 0.86);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
}

.hero-proof a {
  border-color: rgba(94, 234, 212, 0.26);
  color: rgba(94, 234, 212, 0.9);
}

.hero-proof a:hover,
.hero-proof a:focus-visible {
  border-color: rgba(94, 234, 212, 0.5);
  color: #99f6e4;
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
}

.button-primary {
  background: var(--teal);
  color: #031110;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #99f6e4;
  outline: none;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(15, 23, 32, 0.7);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--orange-line);
  background: var(--orange-soft);
  outline: none;
}

.hero-visual {
  position: relative;
  width: min(720px, 100%);
  height: clamp(520px, 42vw, 620px);
  margin-right: max(0px, calc((100vw - 1180px) / 2));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 19, 24, 0.92), rgba(5, 8, 11, 0.96));
  box-shadow: 0 32px 90px var(--shadow);
  overflow: hidden;
}

.upgrade-control {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 2;
  padding: 12px 14px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 5, 7, 0.78);
  backdrop-filter: blur(12px);
}

.upgrade-meta,
.upgrade-scale,
.upgrade-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upgrade-meta span,
.upgrade-scale {
  color: var(--muted);
  font-size: 12px;
}

.upgrade-meta strong {
  color: var(--text);
  font-size: 13px;
}

.upgrade-control:has(.upgrade-switch input:checked) .upgrade-meta span {
  color: rgba(94, 234, 212, 0.86);
}

.upgrade-control:has(.upgrade-switch input:checked) .upgrade-meta strong {
  color: var(--teal);
}

.upgrade-switch {
  justify-content: flex-start;
  margin: 9px 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}

.upgrade-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(94, 234, 212, 0.72);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.upgrade-hint::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px rgba(94, 234, 212, 0.48);
}

.upgrade-touched .upgrade-hint,
.upgrade-switch input:checked ~ .upgrade-hint {
  display: none;
}

.upgrade-report-link {
  margin-left: auto;
  color: rgba(94, 234, 212, 0.9);
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
}

.upgrade-report-link:hover,
.upgrade-report-link:focus-visible {
  color: #99f6e4;
  outline: none;
}

.upgrade-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 26px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 999px;
  background: rgba(15, 23, 32, 0.94);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: border-color 160ms ease, background 160ms ease;
}

.upgrade-switch input:not(:checked) + .switch-track::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(94, 234, 212, 0.26);
  border-radius: inherit;
  opacity: 0;
}

html:not(.upgrade-touched) .upgrade-switch input:not(:checked) + .switch-track::after {
  animation: switch-hint 2.8s ease-out infinite;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
  transition: transform 160ms ease, background 160ms ease;
}

.upgrade-switch input:checked + .switch-track {
  border-color: rgba(68, 230, 205, 0.72);
  background: rgba(68, 230, 205, 0.18);
}

.upgrade-switch input:checked + .switch-track .switch-thumb {
  transform: translateX(22px);
  background: var(--teal);
}

.upgrade-switch input:checked ~ #upgrade-label {
  color: var(--muted);
}

.upgrade-switch input:focus-visible + .switch-track {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.upgrade-scale {
  font-size: 11px;
}

@keyframes switch-hint {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  24% {
    opacity: 1;
  }
  78%,
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

#tx-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.visual-overlay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
}

.visual-overlay > div {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 5, 7, 0.78);
  text-align: center;
}

.metric-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.visual-overlay strong {
  display: block;
  color: var(--text);
  font-size: 28px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

#frontier-count {
  display: inline-block;
  min-width: 13ch;
  padding: 2px 0;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow),
.replay-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.origin-section {
  padding-top: 78px;
}

.origin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.6fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 14px;
}

.origin-layout .section-heading {
  margin-bottom: 0;
}

.origin-quote {
  max-width: 820px;
  margin: 28px 0 0;
  padding: 22px 24px;
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  background:
    linear-gradient(135deg, rgba(211, 77, 42, 0.12), transparent 54%),
    rgba(13, 19, 24, 0.66);
}

.origin-quote p {
  margin: 0;
  color: var(--soft);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 680;
}

.origin-quote cite {
  display: block;
  margin-top: 14px;
  color: var(--teal);
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
  text-transform: uppercase;
}

.founder-card,
.proof-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(94, 234, 212, 0.04), transparent 76%),
    rgba(13, 19, 24, 0.78);
}

.founder-card {
  padding: 24px;
}

.founder-card span,
.proof-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.founder-card h3 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.1;
}

.founder-card p,
.proof-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.founder-timeline {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
}

.founder-timeline div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  min-height: 48px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.founder-timeline dt {
  color: var(--teal);
  font-size: 12px;
  font-weight: 820;
}

.founder-timeline dd {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.35;
}

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

.proof-card {
  display: flex;
  min-height: 286px;
  flex-direction: column;
  padding: 24px;
}

.proof-card h3 {
  max-width: 320px;
}

.proof-card p {
  flex: 1;
}

.benefit-grid,
.scope-grid,
.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.scope-grid,
.doc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 19, 24, 0.78);
}

.panel:hover {
  border-color: rgba(94, 234, 212, 0.36);
  background: rgba(15, 24, 30, 0.88);
}

.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.panel-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 740;
  text-decoration: none;
}

.panel-link:hover,
.panel-link:focus-visible {
  color: #99f6e4;
  outline: none;
}

.model-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 12, 16, 0.72);
}

.model-step {
  position: relative;
  min-height: 150px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(94, 234, 212, 0.045), transparent 76%),
    rgba(13, 19, 24, 0.48);
}

.model-step:last-child {
  border-right: 0;
}

.model-step::after {
  content: "->";
  position: absolute;
  top: 24px;
  right: 18px;
  color: rgba(94, 234, 212, 0.46);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.model-step:last-child::after {
  display: none;
}

.model-step span,
.content-card span,
.tooling-placeholder span {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.model-step strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.model-step.accent {
  background: var(--orange-soft);
}

.audit-player {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(94, 234, 212, 0.035), transparent 70%),
    rgba(5, 8, 11, 0.86);
  box-shadow: 0 30px 100px var(--shadow);
}

#audit-canvas {
  display: block;
  width: 100%;
  height: 540px;
}

.audit-player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 63%, rgba(94, 234, 212, 0.13), transparent 22%),
    radial-gradient(circle at 50% 50%, transparent 34%, rgba(0, 0, 0, 0.52) 82%),
    rgba(3, 5, 7, 0.78);
  backdrop-filter: blur(11px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.audit-player-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(94, 234, 212, 0.5) 0 1px, transparent 1.2px);
  background-position: 0 0, 19px 13px;
  background-size: 42px 42px, 58px 58px;
  pointer-events: none;
}

.audit-player-overlay > * {
  position: relative;
  z-index: 1;
}

.audit-player.is-running .audit-player-overlay {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.audit-pause-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(94, 234, 212, 0.42);
  border-radius: 50%;
  background: rgba(8, 12, 16, 0.78);
  color: var(--teal);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.audit-player.is-running:hover .audit-pause-button,
.audit-player.is-paused .audit-pause-button,
.audit-pause-button:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.audit-pause-button:hover,
.audit-pause-button:focus-visible {
  background: rgba(94, 234, 212, 0.12);
  outline: none;
}

.audit-narration {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: min(560px, calc(100% - 120px));
  border: 1px solid rgba(94, 234, 212, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.1), transparent 48%),
    rgba(8, 12, 16, 0.9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
  padding: 14px 16px;
  text-align: center;
}

.audit-player.is-running .audit-narration,
.audit-player.is-paused .audit-narration {
  opacity: 1;
  transform: translate(-50%, 0);
}

.audit-narration span {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.audit-narration p {
  margin: 0;
  color: rgba(203, 213, 225, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.pause-icon {
  position: relative;
  width: 22px;
  height: 24px;
}

.pause-icon::before,
.pause-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 7px;
  height: 24px;
  border-radius: 2px;
  background: currentColor;
}

.pause-icon::before {
  left: 2px;
}

.pause-icon::after {
  right: 2px;
}

.audit-player.is-paused .pause-icon {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid currentColor;
}

.audit-player.is-paused .pause-icon::before,
.audit-player.is-paused .pause-icon::after {
  display: none;
}

.audit-player-intro span {
  display: block;
  margin-bottom: 10px;
  color: rgba(94, 234, 212, 0.7);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.audit-player-intro strong {
  display: block;
  max-width: 760px;
  color: rgba(248, 250, 252, 0.86);
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.14;
  white-space: nowrap;
}

.audit-control-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(720px, 100%);
  padding: 18px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 48% 100%, rgba(94, 234, 212, 0.12), transparent 50%),
    rgba(8, 12, 16, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.04),
    0 24px 70px rgba(0, 0, 0, 0.36);
}

.audit-input-grid {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) repeat(2, minmax(92px, 0.7fr));
  gap: 10px;
  width: min(560px, 100%);
}

.audit-field {
  position: relative;
  display: grid;
  gap: 6px;
  text-align: left;
}

.audit-field span {
  margin: 0;
  color: rgba(154, 168, 182, 0.78);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.audit-field input,
.audit-symbol-button {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(8, 12, 16, 0.9);
  color: var(--text);
  font: 760 13px "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  outline: none;
  padding: 0 11px;
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.03);
}

.audit-symbol-picker {
  position: relative;
}

.audit-symbol-button {
  cursor: pointer;
  padding-right: 32px;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.1), transparent 46%),
    rgba(8, 12, 16, 0.94);
  text-align: left;
}

.audit-symbol-button::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(94, 234, 212, 0.72);
  border-bottom: 2px solid rgba(94, 234, 212, 0.72);
  pointer-events: none;
  transform: rotate(45deg);
}

.audit-symbol-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(94, 234, 212, 0.32);
  border-radius: 8px;
  background: rgba(8, 12, 16, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.audit-symbol-picker.is-open .audit-symbol-menu {
  display: grid;
}

.audit-symbol-menu button {
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
  color: rgba(203, 213, 225, 0.92);
  cursor: pointer;
  font: 760 13px "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  padding: 0 11px;
  text-align: left;
}

.audit-symbol-menu button:last-child {
  border-bottom: 0;
}

.audit-symbol-menu button:hover,
.audit-symbol-menu button:focus-visible,
.audit-symbol-menu button[aria-selected="true"] {
  background: rgba(94, 234, 212, 0.12);
  color: var(--teal);
  outline: none;
}

.audit-field input:focus,
.audit-symbol-button:focus {
  border-color: rgba(94, 234, 212, 0.54);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.08);
}

.audit-player-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(8, 12, 16, 0.9);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
}

.audit-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 136px;
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(94, 234, 212, 0.46);
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.1);
  color: var(--teal);
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.08);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.audit-play-button.secondary {
  border-color: rgba(196, 181, 253, 0.42);
  background: rgba(196, 181, 253, 0.08);
  color: #c4b5fd;
}

.audit-play-button.secondary .play-icon,
.audit-play-button.secondary span:last-child {
  transform: translateY(4px);
}

.play-icon {
  display: block;
  flex: 0 0 auto;
  width: 0;
  height: 0;
  margin: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
  transform: translateY(3px);
}

.audit-play-button span:last-child {
  display: block;
  flex: 0 0 auto;
  color: currentColor;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(3px);
}

.audit-play-button:hover,
.audit-play-button:focus-visible {
  border-color: rgba(94, 234, 212, 0.72);
  background: rgba(94, 234, 212, 0.16);
  transform: translateY(-1px);
  outline: none;
}

.audit-play-button.secondary:hover,
.audit-play-button.secondary:focus-visible {
  border-color: rgba(196, 181, 253, 0.72);
  background: rgba(196, 181, 253, 0.14);
}

.audit-play-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.boundary-grid,
.content-grid,
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.content-grid,
.docs-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.docs-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.boundary-column,
.content-card,
.tooling-panel,
.tooling-placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 19, 24, 0.78);
}

.boundary-column {
  padding: 26px;
}

.boundary-column.primary {
  border-color: rgba(94, 234, 212, 0.36);
  background: rgba(94, 234, 212, 0.06);
}

.boundary-column ul,
.tooling-placeholder ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary-column li {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 15px;
  font-weight: 650;
}

.boundary-column li:first-child {
  border-top: 0;
}

.primitive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 7, 10, 0.6);
  overflow: hidden;
}

.primitive-cell {
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(94, 234, 212, 0.035), transparent 78%),
    rgba(13, 19, 24, 0.42);
}

.primitive-cell:nth-child(3n) {
  border-right: 0;
}

.primitive-cell:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.primitive-cell p,
.content-card p,
.tooling-panel p,
.tooling-placeholder li,
.contact-section p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.contact-section p {
  max-width: 560px;
  margin-top: 14px;
  font-size: 17px;
}

.primitive-cell.planned {
  background: rgba(148, 163, 184, 0.05);
}

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

.cost-case-card {
  display: flex;
  min-height: 430px;
  padding: 28px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 19, 24, 0.78);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.cost-case-card:hover,
.cost-case-card:focus-visible {
  border-color: rgba(94, 234, 212, 0.42);
  background: rgba(13, 19, 24, 0.9);
  outline: none;
  transform: translateY(-2px);
}

.cost-case-card.primary {
  border-color: rgba(94, 234, 212, 0.36);
  background:
    linear-gradient(180deg, rgba(94, 234, 212, 0.07), transparent 74%),
    rgba(13, 19, 24, 0.82);
}

.cost-case-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.cost-case-card h3 {
  max-width: 560px;
  margin-bottom: 18px;
  font-size: 30px;
  line-height: 1.12;
}

.cost-case-card p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.cost-case-card .cost-note {
  margin-top: 12px;
  color: rgba(148, 163, 184, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.cost-case-card .cost-card-cta {
  margin: 24px 0 0;
  color: rgba(94, 234, 212, 0.76);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.cost-metrics {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
}

.cost-metrics div {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.cost-metrics dt {
  color: var(--muted);
  font-size: 15px;
}

.cost-metrics dd {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
}

.truth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
}

.truth-card {
  min-height: 460px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.035), transparent 74%),
    rgba(13, 19, 24, 0.76);
}

.truth-card.primary {
  border-color: rgba(94, 234, 212, 0.34);
  background:
    radial-gradient(circle at 78% 18%, rgba(94, 234, 212, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(94, 234, 212, 0.07), transparent 74%),
    rgba(13, 19, 24, 0.82);
}

.truth-card > span {
  display: block;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.truth-card h3 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: 28px;
  line-height: 1.14;
}

.truth-stack {
  display: grid;
  gap: 12px;
}

.truth-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(3, 5, 7, 0.3);
}

.truth-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
}

.truth-item p,
.truth-checklist li {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.truth-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.08), transparent),
    rgba(8, 12, 16, 0.8);
}

.database-icon svg {
  position: absolute;
  inset: 4px;
  fill: rgba(147, 197, 253, 0.1);
  stroke: rgba(147, 197, 253, 0.92);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.memory-icon::before,
.memory-icon::after {
  content: "";
  position: absolute;
}

.memory-icon::before {
  inset: 9px 8px;
  border: 2px solid rgba(94, 234, 212, 0.86);
  border-radius: 4px;
  background: rgba(94, 234, 212, 0.12);
}

.memory-icon::after {
  top: 12px;
  right: 5px;
  bottom: 12px;
  left: 5px;
  border-right: 2px solid rgba(94, 234, 212, 0.62);
  border-left: 2px solid rgba(94, 234, 212, 0.62);
}

.redis-icon::before,
.redis-icon::after {
  content: "";
  position: absolute;
}

.redis-icon::before {
  inset: 7px 9px 12px;
  border-radius: 3px;
  background: rgba(196, 181, 253, 0.72);
  transform: skewY(-18deg);
}

.redis-icon::after {
  right: 9px;
  bottom: 7px;
  left: 9px;
  height: 9px;
  border-radius: 3px;
  background: rgba(196, 181, 253, 0.28);
  transform: skewY(-18deg);
}

.log-icon::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 8px;
  left: 8px;
  height: 2px;
  border-radius: 2px;
  background: rgba(211, 77, 42, 0.82);
  box-shadow:
    0 6px 0 rgba(211, 77, 42, 0.62),
    0 12px 0 rgba(211, 77, 42, 0.42);
}

.queue-icon::before,
.queue-icon::after {
  content: "";
  position: absolute;
  right: 8px;
  left: 8px;
  height: 4px;
  border-radius: 999px;
  background: rgba(134, 239, 172, 0.74);
}

.queue-icon::before {
  top: 9px;
  box-shadow:
    0 7px 0 rgba(134, 239, 172, 0.54),
    0 14px 0 rgba(134, 239, 172, 0.34);
}

.queue-icon::after {
  top: 23px;
  right: 14px;
}

.partner-icon::before {
  content: "😬";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.truth-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 30px 0;
}

.truth-path span {
  position: relative;
  min-height: 48px;
  padding: 14px 10px;
  border: 1px solid rgba(94, 234, 212, 0.24);
  border-radius: 8px;
  background: rgba(3, 5, 7, 0.34);
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
  text-align: center;
}

.truth-path span:not(:last-child)::after {
  content: "->";
  position: absolute;
  top: 50%;
  right: -14px;
  z-index: 1;
  color: rgba(94, 234, 212, 0.7);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  transform: translateY(-50%);
}

.truth-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.truth-checklist li {
  position: relative;
  min-height: 122px;
  padding: 18px 16px 15px;
  border: 1px solid rgba(94, 234, 212, 0.16);
  border-radius: 8px;
  background: rgba(3, 5, 7, 0.28);
}

.truth-checklist li::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  background: var(--teal);
  opacity: 0.92;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 28px 28px;
}

.truth-checklist strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.truth-checklist span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.truth-checklist .audit-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 32 32%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M7 7h18v18H7z%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27/%3E%3Cpath d=%27M11 12h10M11 17h10M11 22h6%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27/%3E%3C/svg%3E");
}

.truth-checklist .logic-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 32 32%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M7 10h10M17 10l4-4M17 10l4 4M25 6v8M7 22h10M17 22l4-4M17 22l4 4M25 18v8%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
}

.truth-checklist .result-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 32 32%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M8 8h16v16H8z%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27/%3E%3Cpath d=%27M12 16h8M16 12v8%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27/%3E%3C/svg%3E");
}

.truth-checklist .replay-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 32 32%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M24 10a9 9 0 1 0 1 11%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27/%3E%3Cpath d=%27M24 5v7h-7%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
}

.truth-checklist .event-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 32 32%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M8 8h6v6H8zM18 8h6v6h-6zM13 22h6v6h-6zM14 11h4M16 14v8%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
}

.truth-checklist .verify-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 32 32%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M16 5l10 4v7c0 6-4 10-10 12C10 26 6 22 6 16V9z%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linejoin=%27round%27/%3E%3Cpath d=%27M11 16l4 4 7-8%27 fill=%27none%27 stroke=%27black%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 16px;
  padding: 4px 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
}

.content-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 24px;
}

.content-card h3 {
  max-width: 340px;
}

.content-card p {
  flex: 1;
}

.content-card.pending {
  opacity: 0.78;
}

.tooling-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 28px;
  padding: 30px;
}

.tooling-panel h2 {
  max-width: 680px;
}

.tooling-panel p {
  max-width: 720px;
  margin-top: 18px;
  font-size: 18px;
}

.tooling-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.tooling-actions .panel-link,
.tooling-actions .status-pill {
  margin: 0;
}

.tooling-placeholder {
  min-height: 240px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(211, 77, 42, 0.1), transparent 48%),
    rgba(3, 5, 7, 0.64);
}

.tooling-placeholder span {
  color: var(--teal);
}

.tooling-placeholder li {
  display: flex;
  min-height: 38px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.tooling-placeholder li:first-child {
  border-top: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.7fr);
  gap: 48px;
  align-items: start;
}

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

.case-list a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 13, 17, 0.82);
  color: var(--soft);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.case-list a:hover,
.case-list a:focus-visible {
  border-color: var(--orange-line);
  color: var(--text);
  outline: none;
}

.replay-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1fr);
  gap: 42px;
  align-items: center;
}

.flow {
  display: grid;
  gap: 10px;
}

.flow-step {
  position: relative;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c10;
  color: var(--soft);
  font-weight: 700;
}

.flow-step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -28px;
  width: 18px;
  height: 1px;
  background: var(--line);
}

.flow-step:first-child::before {
  display: none;
}

.flow-step.accent {
  border-color: var(--orange-line);
  background: var(--orange-soft);
  color: var(--text);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 112px;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-link,
.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(94, 234, 212, 0.1);
  color: var(--text);
  font-weight: 740;
  text-decoration: none;
}

.contact-email {
  border-color: var(--line);
  background: rgba(13, 19, 24, 0.7);
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.story-list-hero,
.story-list,
.story-article {
  width: min(980px, calc(100vw - 80px));
  margin: 0 auto;
}

.story-list-hero {
  padding: 86px 0 44px;
}

.story-list-hero h1,
.story-article header h1 {
  margin: 0;
  max-width: 900px;
  color: var(--text);
  font-size: 54px;
  line-height: 1.06;
  font-weight: 780;
}

.story-list-hero p:not(.eyebrow),
.story-article header p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 18px;
}

.story-list {
  display: grid;
  gap: 14px;
  padding: 0 0 100px;
}

.story-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 19, 24, 0.78);
}

.story-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.story-card-meta span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.story-card-meta strong {
  padding: 4px 8px;
  border: 1px solid rgba(94, 234, 212, 0.34);
  border-radius: 999px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.story-card h2 {
  max-width: 760px;
  font-size: 26px;
}

.story-card h2 a {
  text-decoration: none;
}

.story-card h2 a:hover,
.story-card h2 a:focus-visible {
  color: var(--teal);
  outline: none;
}

.story-card p {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--muted);
}

.story-article {
  padding: 74px 0 104px;
}

.story-article header {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 740;
  text-decoration: none;
}

.back-link::before {
  content: "<-";
  margin-right: 8px;
}

.article-body {
  max-width: 780px;
  padding-top: 42px;
}

.article-body h2 {
  margin: 48px 0 18px;
  font-size: 30px;
}

.article-body h3 {
  margin: 36px 0 14px;
  font-size: 22px;
}

.article-body p,
.article-body li {
  color: var(--soft);
  font-size: 17px;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
}

.article-body blockquote p {
  margin: 0 0 10px;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body pre {
  margin: 28px 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #05080b;
}

.article-table {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 11, 0.72);
}

.article-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.article-table th,
.article-table td {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.article-table th {
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  white-space: nowrap;
}

.article-table th:last-child,
.article-table td:last-child {
  border-right: 0;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-image {
  margin: 32px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 11, 0.72);
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-image figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.article-body code {
  color: #cbd5df;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94em;
}

.article-body pre code {
  display: block;
  color: #d5e2ed;
  line-height: 1.45;
}

.article-body hr {
  margin: 44px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-body strong {
  color: var(--text);
}

.article-body mark {
  padding: 0 0.16em;
  border-radius: 4px;
  background: rgba(94, 234, 212, 0.12);
  color: #99f6e4;
  font-weight: 780;
}

.article-body .diagram {
  margin: 32px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  text-align: center;
}

.article-body .diagram svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.article-body .diagram figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.article-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  max-width: 780px;
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-pagination-card {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 13, 18, 0.72);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.article-pagination-card:hover,
.article-pagination-card:focus-visible {
  border-color: rgba(94, 234, 212, 0.48);
  background: rgba(11, 20, 26, 0.9);
  transform: translateY(-1px);
}

.article-pagination-card span {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.article-pagination-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.article-pagination-card.next {
  text-align: right;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 34px;
    padding: 54px 22px 64px;
  }

  .hero-copy,
  .hero-visual {
    width: 100%;
    margin: 0;
  }

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

  .hero-visual {
    max-width: 820px;
    height: clamp(500px, 68vw, 620px);
    aspect-ratio: auto;
    margin: 0 auto;
  }

  .upgrade-switch {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
  }

  .upgrade-hint {
    justify-self: start;
  }

  .upgrade-report-link {
    grid-column: 2 / -1;
    justify-self: start;
    margin-left: 0;
  }

  .nav {
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 12px 22px;
  }

  .nav-links {
    justify-content: flex-end;
    gap: 2px;
    min-width: 0;
  }

  .nav-links a {
    padding: 8px 9px;
  }

  .hero-copy,
  .section,
  .footer,
  .story-list-hero,
  .story-list,
  .story-article {
    width: calc(100vw - 44px);
  }

  h1 {
    font-size: 46px;
  }

  .story-list-hero h1,
  .story-article header h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .benefit-grid,
  .scope-grid,
  .doc-grid,
  .model-strip,
  .origin-layout,
  .proof-grid,
  .boundary-grid,
  .primitive-grid,
  .cost-case-grid,
  .truth-grid,
  .content-grid,
  .docs-grid,
  .tooling-panel,
  .split-section,
  .replay-section {
    grid-template-columns: 1fr;
  }

  .model-step,
  .model-step:last-child {
    min-height: 118px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .model-step:last-child {
    border-bottom: 0;
  }

  .model-step::after {
    content: "v";
    top: auto;
    right: 20px;
    bottom: 18px;
  }

  .audit-player,
  #audit-canvas {
    min-height: 840px;
    height: 840px;
  }

  .audit-narration {
    top: 52px;
    width: calc(100% - 36px);
  }

  .primitive-grid {
    gap: 10px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .primitive-cell,
  .primitive-cell:nth-child(3n),
  .primitive-cell:nth-last-child(-n + 3) {
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .tooling-panel {
    padding: 24px;
  }

  .panel {
    min-height: 0;
  }

  .flow-step::before {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    background-size: 52px 52px, 52px 52px, auto;
  }

  html.mobile-menu-open,
  html.mobile-menu-open body {
    overflow: hidden;
  }

  .nav {
    position: sticky;
    align-items: center;
    flex-direction: row;
    min-height: 68px;
    padding: 12px 18px;
  }

  .nav.is-open {
    position: fixed;
    inset: 0;
    z-index: 100;
    min-height: 100dvh;
    align-items: flex-start;
    padding: 18px 24px;
    border-bottom: 0;
    background:
      radial-gradient(circle at 72% 22%, rgba(94, 234, 212, 0.12), transparent 30%),
      radial-gradient(circle at 36% 72%, rgba(211, 77, 42, 0.14), transparent 32%),
      #030507;
    backdrop-filter: none;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-logo {
    width: 64px;
    height: 32px;
  }

  .mobile-menu-button {
    position: relative;
    z-index: 22;
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
  }

  .nav.is-open .mobile-menu-button {
    position: absolute;
    top: 18px;
    right: 18px;
  }

  .nav.is-open .brand {
    position: relative;
    z-index: 22;
  }

  .mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: rgba(203, 213, 225, 0.86);
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .nav.is-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.is-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  .nav.is-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    width: auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 92px 36px 36px;
    background:
      radial-gradient(circle at 72% 22%, rgba(94, 234, 212, 0.12), transparent 28%),
      radial-gradient(circle at 36% 72%, rgba(211, 77, 42, 0.13), transparent 30%),
      #030507;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav.is-open .nav-links {
    position: absolute;
    top: 96px;
    right: 0;
    bottom: 0;
    left: 0;
    justify-content: flex-start;
    padding: 30px 42px 42px;
    background: transparent;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 58px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 28px;
    font-weight: 650;
  }

  .nav-links .github-link {
    gap: 12px;
  }

  .nav-links .github-link svg {
    width: 24px;
    height: 24px;
  }

  .nav.is-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    display: grid;
    gap: 34px;
    padding: 42px 18px 58px;
  }

  .hero-copy,
  .section,
  .footer,
  .story-list-hero,
  .story-list,
  .story-article {
    width: calc(100vw - 36px);
  }

  .hero-visual {
    display: block;
    width: 100%;
    height: 520px;
    margin: 0;
  }

  .upgrade-control {
    top: 12px;
    right: 12px;
    left: 12px;
    padding: 10px 11px 9px;
  }

  .upgrade-switch {
    flex-wrap: wrap;
    display: flex;
    gap: 9px;
    font-size: 12px;
  }

  .upgrade-report-link {
    display: inline-flex;
    flex: 0 0 calc(100% - 58px);
    margin-left: 58px;
    font-size: 11px;
  }

  .visual-overlay {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .visual-overlay strong {
    font-size: 24px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 12px;
  }

  h1 {
    max-width: none;
    font-size: 38px;
    line-height: 1.08;
  }

  h2 {
    font-size: 28px;
    line-height: 1.16;
  }

  h3 {
    font-size: 17px;
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 17px;
  }

  .audit-player-intro strong {
    white-space: normal;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .hero-proof span,
  .hero-proof a {
    width: 100%;
    border-radius: 8px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .auditability-section .section-heading {
    margin-bottom: 0;
  }

  .audit-player {
    display: none;
  }

  .section-heading p:not(.eyebrow),
  .replay-copy p {
    font-size: 16px;
  }

  .benefit-grid,
  .scope-grid,
  .doc-grid,
  .content-grid,
  .docs-grid,
  .primitive-grid,
  .boundary-grid,
  .origin-layout,
  .proof-grid,
  .cost-case-grid,
  .truth-grid {
    gap: 10px;
  }

  .truth-checklist {
    grid-template-columns: 1fr;
  }

  .truth-checklist li {
    min-height: 0;
  }

  .panel {
    padding: 18px;
  }

  .model-step,
  .boundary-column,
  .primitive-cell,
  .founder-card,
  .proof-card,
  .cost-case-card,
  .content-card,
  .tooling-panel,
  .tooling-placeholder {
    padding: 18px;
  }

  .model-step strong {
    font-size: 18px;
  }

  .content-card {
    min-height: 0;
  }

  .tooling-panel p {
    font-size: 16px;
  }

  .case-list a,
  .flow-step {
    min-height: 50px;
    padding: 13px 15px;
  }

  .contact-section {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: 72px;
  }

  .contact-actions,
  .contact-link,
  .contact-email {
    width: 100%;
  }

  .story-list-hero {
    padding: 54px 0 30px;
  }

  .story-list-hero h1,
  .story-article header h1 {
    font-size: 34px;
  }

  .story-list-hero p:not(.eyebrow),
  .story-article header p:not(.eyebrow) {
    font-size: 16px;
  }

  .story-card {
    padding: 18px;
  }

  .story-card h2 {
    font-size: 22px;
  }

  .story-article {
    padding: 50px 0 72px;
  }

  .article-body {
    padding-top: 30px;
  }

  .article-body p,
  .article-body li {
    font-size: 16px;
  }

  .article-body pre {
    margin-right: -18px;
    margin-left: -18px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .article-table {
    margin-right: -18px;
    margin-left: -18px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .article-table th,
  .article-table td {
    padding: 10px 12px;
  }

  .article-pagination {
    grid-template-columns: 1fr;
  }

  .article-pagination > span {
    display: none;
  }

  .article-pagination-card.next {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .nav-links a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .nav.is-open .nav-links a {
    min-height: 58px;
    padding: 0;
    font-size: 28px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-lede,
  .section-heading p:not(.eyebrow),
  .replay-copy p {
    font-size: 16px;
  }

  .contact-section,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-list-hero h1,
  .story-article header h1 {
    font-size: 34px;
  }

  .article-body h2 {
    font-size: 26px;
  }
}


/*# sourceMappingURL=main.css.map*/