:root {
  color-scheme: dark;
  --bg: #071016;
  --bg-deep: #040a0f;
  --surface: #0a151c;
  --surface-soft: #0d1a22;
  --text: #f4f7f8;
  --muted: #aab6bd;
  --faint: #718089;
  --line: #2b3a43;
  --line-strong: #50616b;
  --cyan: #42d9ee;
  --cyan-dark: #0f8ea1;
  --coral: #ff7164;
  --max-width: 1600px;
  --gutter: clamp(1.25rem, 2.5vw, 2.5rem);
  --section-space: clamp(3rem, 4vw, 3.75rem);
  --radius: 0.75rem;
  --transition: 180ms ease;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

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

.section-shell,
.site-header {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 760;
  letter-spacing: -0.035em;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.7rem);
}

.site-header nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 590;
  transition: color var(--transition);
}

.site-header nav a:hover,
.site-footer nav a:hover,
.nav-github {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(38rem, 1.1fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  min-height: calc(100vh - 6.5rem);
  padding-block: 5rem;
}

.hero-copy {
  padding-top: 2.55rem;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 20ch;
  margin-bottom: 1.8rem;
  font-size: clamp(3rem, 4.2vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.062em;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 4.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.052em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-lede,
.section-heading > p:last-child,
.demo-copy > p,
.pilot > div > p {
  max-width: 43rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
}

.hero-lede {
  max-width: 37rem;
  margin-bottom: 1.1rem;
}

.hero-support {
  max-width: 38rem;
  margin-bottom: 2.15rem;
  color: var(--faint);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 3.55rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--cyan);
  border-radius: 0.45rem;
  font-size: 0.98rem;
  font-weight: 720;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--cyan);
  color: var(--bg-deep);
}

.button-primary:hover {
  border-color: #86ecf7;
  background: #86ecf7;
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(66, 217, 238, 0.08);
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-line span {
  position: relative;
}

.status-line span:not(:last-child)::after {
  position: absolute;
  right: -0.85rem;
  color: var(--coral);
  content: "•";
}

.boundary-note {
  margin-bottom: 0;
  color: var(--faint);
  font-size: 0.83rem;
}

.memory-system {
  position: relative;
  display: grid;
  min-width: 0;
  margin: 0;
  gap: 2.35rem;
}

.tier {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 11.25rem;
  grid-template-columns: minmax(11.5rem, 0.34fr) minmax(0, 0.66fr);
  align-items: center;
  gap: clamp(1.15rem, 2vw, 2rem);
  padding: 1.4rem 1.45rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(8, 19, 26, 0.9);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.12);
}

.tier-vram {
  border-color: var(--cyan);
  box-shadow:
    0 0 0 1px rgba(66, 217, 238, 0.06),
    0 1rem 2.5rem rgba(0, 0, 0, 0.12);
}

.tier-identity,
.tier-content {
  position: relative;
  z-index: 2;
}

.tier-identity {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  align-items: center;
  gap: 1.6rem;
}

.tier-icon {
  display: block;
  width: 4rem;
  height: 4rem;
  opacity: 1;
}

.tier-name {
  display: grid;
  gap: 0.15rem;
}

.tier-name strong {
  color: var(--text);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.tier-vram .tier-name strong {
  color: var(--cyan);
}

.tier-name span,
.tier-content-label {
  color: var(--muted);
  font-size: 1rem;
}

.tier-content-label {
  display: block;
  margin-bottom: 0.78rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.expert-row {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 1rem);
}

.expert {
  position: relative;
  display: grid;
  width: clamp(2.7rem, 4vw, 3.6rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 0.34rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
}

.expert-active {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--bg-deep);
}

.expert-warm {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--bg-deep);
}

.expert-dashed {
  border-style: dashed;
}

.expert-row .expert-dashed:last-child {
  margin-left: auto;
}

.expert-path-source {
  animation: expert-source-pulse 4.6s ease-in-out 0.2s 1 both;
}

.expert-path-cache {
  animation: expert-cache-pulse 4.6s ease-in-out 0.2s 1 both;
}

.expert-path-active {
  animation: expert-active-pulse 4.6s ease-in-out 0.2s 1 both;
}

.ellipsis {
  color: var(--faint);
  font-size: 1rem;
  letter-spacing: 0.2em;
}

.route {
  position: absolute;
  z-index: 4;
  color: var(--cyan);
  pointer-events: none;
}

.route-promote {
  top: 8.6rem;
  left: 42%;
  width: 19%;
  height: 9.15rem;
}

.route-prefetch {
  top: 22rem;
  left: 60.5%;
  width: 12.3%;
  height: 9.2rem;
  color: var(--coral);
}

.route-segment,
.route-arrow,
.route-packet {
  position: absolute;
}

.route-target,
.route-source {
  width: 0;
  border-left: 3px solid currentColor;
}

.route-target {
  top: 0;
  left: 0;
  height: 50%;
}

.route-bridge {
  top: 50%;
  right: 0;
  left: 0;
  height: 0;
  border-top: 3px solid currentColor;
}

.route-source {
  top: 50%;
  right: 0;
  height: 50%;
}

.route-promote .route-segment {
  border-style: dashed;
}

.route-arrow {
  top: -0.2rem;
  left: -0.68rem;
  width: 1.35rem;
  height: 1.35rem;
  background: currentColor;
  mask: url("assets/icons/arrow-up.svg") center / contain no-repeat;
}

.route-packet {
  bottom: -0.22rem;
  left: calc(100% - 0.22rem);
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0.9rem currentColor;
  opacity: 0;
}

.route-promote .route-segment,
.route-promote .route-arrow {
  animation: upper-link-pulse 4.6s ease-in-out 0.2s 1 both;
}

.route-promote .route-packet {
  animation: upper-packet 4.6s ease-in-out 0.2s 1 both;
}

.route-prefetch .route-segment,
.route-prefetch .route-arrow {
  animation: lower-link-pulse 4.6s ease-in-out 0.2s 1 both;
}

.route-prefetch .route-packet {
  animation: lower-packet 4.6s ease-in-out 0.2s 1 both;
}

.memory-legend {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  margin-top: -0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.memory-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

.legend-line {
  display: block;
  width: 2rem;
  border-top: 2px solid;
}

.legend-promote {
  color: var(--cyan);
}

.legend-prefetch {
  color: var(--coral);
}

.legend-background {
  border-top-style: dashed;
  color: var(--muted);
}

.section-heading {
  max-width: 80rem;
  margin-bottom: clamp(2.5rem, 3vw, 3.25rem);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--cyan);
  font-size: 0.82rem !important;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-label::after {
  width: min(14rem, 35vw);
  height: 1px;
  background: var(--cyan-dark);
  content: "";
}

.evidence,
.workflow {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

.evidence-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2.4rem;
}

.evidence-rail > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.3rem;
  min-width: 0;
  padding-inline: clamp(1rem, 3vw, 3rem);
  text-align: center;
}

.evidence-rail > div:first-child {
  padding-left: 0;
}

.evidence-rail > div:last-child {
  padding-right: 0;
}

.evidence-rail > div + div {
  border-left: 1px solid var(--line-strong);
}

.evidence-rail dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.evidence-rail dd {
  color: var(--text);
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-weight: 590;
  line-height: 1;
  letter-spacing: -0.055em;
}

.study-scope {
  margin-bottom: 3.25rem;
  padding: 1rem 0 1rem 1.25rem;
  border-block: 1px solid var(--line-strong);
  border-left: 3px solid var(--cyan);
  color: var(--text);
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 650;
}

.study-scope span {
  margin-inline: 0.55rem;
  color: var(--faint);
}

.wall-time-chart {
  margin-bottom: 3.25rem;
}

.wall-time-chart figcaption {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.45rem;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wall-time-chart figcaption span {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr 6rem;
  gap: 1.2rem;
  align-items: center;
  margin-block: 0.95rem;
}

.bar-label,
.bar-row strong {
  font-size: 0.92rem;
}

.bar-row strong {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bar-track {
  height: 2rem;
  background: rgba(255, 255, 255, 0.035);
}

.bar {
  display: block;
  height: 100%;
  transform-origin: left center;
  animation: reveal-bar 850ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bar-baseline {
  width: 100%;
  background: #87959d;
}

.bar-empty {
  width: 74.73%;
  background: var(--cyan);
}

.bar-retained {
  width: 52.63%;
  background: var(--coral);
}

.evidence-boundary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
}

.evidence-boundary p {
  max-width: 55rem;
  margin-bottom: 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--coral);
  color: var(--muted);
}

.evidence-boundary strong,
.pilot-action strong {
  color: var(--coral);
}

.text-link {
  color: var(--cyan);
  font-weight: 700;
  white-space: nowrap;
}

.text-link:hover {
  color: #86ecf7;
}

.workflow-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-rail li {
  position: relative;
  min-width: 0;
  padding-right: clamp(1.4rem, 4vw, 4rem);
}

.workflow-rail li:not(:last-child)::after {
  position: absolute;
  top: 1.23rem;
  right: 0.7rem;
  left: 3.5rem;
  height: 1px;
  background: var(--cyan-dark);
  content: "";
}

.workflow-index {
  position: relative;
  z-index: 1;
  display: block;
  width: 2.5rem;
  margin-bottom: 1.25rem;
  background: var(--bg);
  color: var(--cyan);
  font-size: 2rem;
  font-weight: 630;
  line-height: 1;
}

.workflow-rail p,
.workflow-note {
  color: var(--muted);
}

.workflow-note {
  max-width: 55rem;
  margin: 3rem 0 0;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 3px solid var(--line-strong);
}

.demo,
.pilot {
  display: grid;
  grid-template-columns: 1fr minmax(22rem, 0.72fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  padding-block: clamp(4rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.demo h2,
.pilot h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.requirements {
  margin-bottom: 0;
  color: var(--text) !important;
  font-size: 0.9rem !important;
  font-weight: 650;
}

.demo-command {
  display: grid;
  gap: 1rem;
}

.demo-command code {
  display: block;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.demo-command small {
  color: var(--faint);
  line-height: 1.5;
}

.pilot {
  border-bottom: 1px solid var(--line);
}

.pilot-boundary {
  color: var(--faint) !important;
  font-size: 0.88rem !important;
}

.pilot-action {
  display: grid;
  gap: 1.2rem;
  justify-items: start;
}

.pilot-action p {
  margin-bottom: 0;
  padding-left: 1.15rem;
  border-left: 3px solid var(--coral);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  padding-block: 3rem 4rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-strong);
}

.footer-row .brand {
  color: var(--cyan);
}

.legal-copy {
  max-width: 82rem;
  margin: 1.8rem 0 0;
  color: var(--faint);
  font-size: 0.78rem;
}

@keyframes reveal-bar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes expert-source-pulse {
  0%,
  4%,
  26%,
  100% {
    filter: none;
    transform: scale(1);
  }
  10%,
  18% {
    filter: drop-shadow(0 0 0.65rem rgba(255, 111, 103, 0.72));
    transform: scale(1.08);
  }
}

@keyframes lower-packet {
  0%,
  13% {
    top: calc(100% - 0.24rem);
    left: calc(100% - 0.24rem);
    opacity: 0;
  }
  17% {
    top: calc(100% - 0.24rem);
    left: calc(100% - 0.24rem);
    opacity: 1;
  }
  24% {
    top: calc(50% - 0.24rem);
    left: calc(100% - 0.24rem);
    opacity: 1;
  }
  28% {
    top: calc(50% - 0.24rem);
    left: -0.24rem;
    opacity: 1;
  }
  32% {
    top: -0.24rem;
    left: -0.24rem;
    opacity: 1;
  }
  36%,
  100% {
    top: -0.24rem;
    left: -0.24rem;
    opacity: 0;
  }
}

@keyframes lower-link-pulse {
  0%,
  12%,
  38%,
  100% {
    filter: none;
    opacity: 0.68;
  }
  17%,
  32% {
    filter: drop-shadow(0 0 0.45rem rgba(255, 111, 103, 0.8));
    opacity: 1;
  }
}

@keyframes expert-cache-pulse {
  0%,
  29%,
  55%,
  100% {
    filter: none;
    transform: scale(1);
  }
  37%,
  47% {
    filter: drop-shadow(0 0 0.65rem rgba(255, 111, 103, 0.72));
    transform: scale(1.08);
  }
}

@keyframes upper-packet {
  0%,
  45% {
    top: calc(100% - 0.24rem);
    left: calc(100% - 0.24rem);
    opacity: 0;
  }
  49% {
    top: calc(100% - 0.24rem);
    left: calc(100% - 0.24rem);
    opacity: 1;
  }
  56% {
    top: calc(50% - 0.24rem);
    left: calc(100% - 0.24rem);
    opacity: 1;
  }
  60% {
    top: calc(50% - 0.24rem);
    left: -0.24rem;
    opacity: 1;
  }
  65% {
    top: -0.24rem;
    left: -0.24rem;
    opacity: 1;
  }
  69%,
  100% {
    top: -0.24rem;
    left: -0.24rem;
    opacity: 0;
  }
}

@keyframes upper-link-pulse {
  0%,
  44%,
  71%,
  100% {
    filter: none;
    opacity: 0.68;
  }
  49%,
  65% {
    filter: drop-shadow(0 0 0.45rem rgba(69, 211, 232, 0.8));
    opacity: 1;
  }
}

@keyframes expert-active-pulse {
  0%,
  62%,
  91%,
  100% {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--muted);
    filter: none;
    transform: scale(1);
  }
  71%,
  83% {
    border-color: var(--cyan);
    background: var(--cyan);
    color: var(--bg-deep);
    filter: drop-shadow(0 0 0.72rem rgba(69, 211, 232, 0.78));
    transform: scale(1.08);
  }
}

@keyframes lower-packet-mobile {
  0%,
  13% {
    top: calc(100% - 0.24rem);
    left: calc(50% - 0.24rem);
    opacity: 0;
  }
  17% {
    top: calc(100% - 0.24rem);
    left: calc(50% - 0.24rem);
    opacity: 1;
  }
  32% {
    top: -0.24rem;
    left: calc(50% - 0.24rem);
    opacity: 1;
  }
  36%,
  100% {
    top: -0.24rem;
    left: calc(50% - 0.24rem);
    opacity: 0;
  }
}

@keyframes upper-packet-mobile {
  0%,
  45% {
    top: calc(100% - 0.24rem);
    left: calc(50% - 0.24rem);
    opacity: 0;
  }
  49% {
    top: calc(100% - 0.24rem);
    left: calc(50% - 0.24rem);
    opacity: 1;
  }
  65% {
    top: -0.24rem;
    left: calc(50% - 0.24rem);
    opacity: 1;
  }
  69%,
  100% {
    top: -0.24rem;
    left: calc(50% - 0.24rem);
    opacity: 0;
  }
}

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

  .hero-copy {
    padding-top: 0;
  }

  h1 {
    max-width: 14ch;
  }

  .memory-system {
    width: min(100%, 48rem);
    margin-inline: auto;
  }

  .site-header nav {
    gap: 1.25rem;
  }

  .workflow-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 0;
  }

  .workflow-rail li:nth-child(2)::after,
  .workflow-rail li:last-child::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.1rem;
    padding-block: 1.4rem;
  }

  .site-header nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }

  .site-header nav a {
    flex: 0 0 auto;
    font-size: 0.84rem;
  }

  .nav-github {
    margin-left: 0;
  }

  h1 {
    font-size: clamp(2.85rem, 13vw, 4.6rem);
  }

  .hero {
    gap: 3.75rem;
    padding-block: 4.5rem;
  }

  .memory-system {
    width: min(100%, 34rem);
    gap: 0;
  }

  .tier {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.2rem;
  }

  .tier-identity {
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 0.85rem;
  }

  .tier-icon {
    width: 3rem;
    height: 3rem;
  }

  .tier-name strong {
    font-size: 1.55rem;
  }

  .expert-row {
    overflow: hidden;
  }

  .route,
  .route-promote,
  .route-prefetch {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 3.1rem;
    justify-self: center;
  }

  .route-target {
    top: 0;
    left: 50%;
    height: 100%;
  }

  .route-bridge,
  .route-source {
    display: none;
  }

  .route-arrow {
    top: -0.1rem;
    left: calc(50% - 0.68rem);
  }

  .route-prefetch .route-packet {
    animation-name: lower-packet-mobile;
  }

  .route-promote .route-packet {
    animation-name: upper-packet-mobile;
  }

  .memory-legend {
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
    margin-top: 1.25rem;
  }

  .evidence-rail {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .evidence-rail > div,
  .evidence-rail > div:first-child,
  .evidence-rail > div:last-child {
    align-items: baseline;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0 1.35rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .evidence-rail > div + div {
    border-left: 0;
  }

  .evidence-rail dd {
    flex: 0 0 auto;
    font-size: 2.7rem;
  }

  .study-scope {
    line-height: 1.9;
  }

  .study-scope span {
    margin-inline: 0.25rem;
  }

  .bar-row {
    grid-template-columns: 1fr 5.5rem;
    gap: 0.55rem 1rem;
    margin-block: 1.25rem;
  }

  .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 1.35rem;
  }

  .evidence-boundary,
  .demo,
  .pilot {
    grid-template-columns: 1fr;
  }

  .evidence-boundary {
    justify-items: start;
  }

  .workflow-rail {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0.2rem;
  }

  .workflow-rail li {
    min-height: 9rem;
    padding: 0 0 2.3rem 4rem;
  }

  .workflow-rail li:not(:last-child)::after,
  .workflow-rail li:nth-child(2)::after {
    display: block;
    top: 2.4rem;
    right: auto;
    bottom: 0;
    left: 1.05rem;
    width: 1px;
    height: auto;
  }

  .workflow-index {
    position: absolute;
    top: 0;
    left: 0;
    width: 2.1rem;
  }

  .workflow-note {
    margin-top: 1.5rem;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 1rem 1.35rem;
  }
}

@media (max-width: 450px) {
  .hero-actions,
  .hero-actions .button,
  .demo-command .button,
  .pilot-action .button {
    width: 100%;
  }

  .status-line {
    display: grid;
  }

  .status-line span::after {
    display: none;
  }

  .expert-secondary {
    display: none;
  }

  .memory-legend > span {
    white-space: normal;
  }
}

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

  .memory-system .expert-path-source,
  .memory-system .expert-path-cache,
  .memory-system .expert-path-active,
  .memory-system .route-segment,
  .memory-system .route-arrow,
  .memory-system .route-packet {
    animation: none !important;
    filter: none !important;
    transform: none !important;
  }

  .memory-system .route-packet {
    display: none;
  }
}
