.subpage .site-header {
  background: rgba(250, 246, 238, 0.93);
  border-bottom-color: rgba(30, 88, 117, 0.38);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.subpage .primary-nav a[aria-current="page"] {
  color: var(--tech-blue-900);
}

.subpage .primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.page-hero {
  position: relative;
  padding: 94px 0 112px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(233, 120, 54, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.18), rgba(250, 241, 228, 0));
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  position: absolute;
  top: 0;
  left: calc(50% + 250px);
  width: 1px;
  height: 100%;
  content: "";
  background: linear-gradient(transparent, rgba(40, 108, 139, 0.45), transparent);
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  align-items: center;
  gap: 84px;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--orange-800);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-kicker::before {
  width: 24px;
  height: 1px;
  content: "";
  background: var(--orange-500);
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(62px, 6.1vw, 94px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.page-hero h1 em {
  color: var(--orange-800);
  font-weight: 400;
}

.page-hero-lede {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.page-hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.page-spec-card {
  position: relative;
  padding: 24px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-edge);
  box-shadow: var(--shadow-lg);
}

.page-spec-card::before {
  position: absolute;
  top: -12px;
  right: 12px;
  width: 34px;
  height: 34px;
  content: "";
  border-top: 1px solid var(--orange-500);
  border-right: 1px solid var(--orange-500);
}

.spec-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.spec-heading h2 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.spec-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: var(--radius-edge);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.spec-status::before {
  width: 6px;
  height: 6px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.spec-list {
  display: grid;
  margin-top: 8px;
}

.spec-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row dt {
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.spec-row dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 580;
}

.spec-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  padding: 13px 14px;
  color: var(--orange-800);
  background: var(--orange-100);
  border: 1px solid var(--orange-200);
  border-radius: var(--radius-edge);
  font-size: 10px;
  font-weight: 620;
}

.page-content {
  padding: 100px 0 125px;
}

.page-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  align-items: start;
  gap: 92px;
}

.page-index {
  position: sticky;
  top: 120px;
}

.page-index-label {
  display: block;
  margin-bottom: 17px;
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-index nav {
  display: grid;
  border-top: 1px solid var(--line);
}

.page-index a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 13px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.45;
}

.page-index a span {
  color: var(--orange-500);
  font-family: var(--font-mono);
  font-size: 8px;
}

.page-index a:hover {
  color: var(--orange-800);
}

.page-index-note {
  margin: 24px 0 0;
  padding: 16px;
  color: var(--ink-soft);
  background: var(--orange-100);
  border: 1px solid var(--orange-200);
  border-radius: var(--radius-edge);
  font-size: 10px;
  line-height: 1.65;
}

.page-sections {
  display: grid;
  gap: 124px;
}

.content-block {
  scroll-margin-top: 120px;
}

.content-block h2 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(46px, 4.1vw, 66px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.content-block h2 em {
  color: var(--orange-800);
  font-weight: 400;
}

.content-lead {
  max-width: 720px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.76;
}

.content-block .section-label {
  margin-bottom: 24px;
}

.content-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-edge);
}

.content-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 630;
  letter-spacing: -0.02em;
}

.content-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.68;
}

.object-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.object-card {
  position: relative;
  grid-column: span 4;
  min-height: 210px;
  padding: 25px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius-edge);
}

.object-card:nth-child(1),
.object-card:nth-child(2) {
  grid-column: span 6;
}

.object-card::after {
  position: absolute;
  right: -32px;
  bottom: -44px;
  width: 120px;
  height: 120px;
  content: "";
  border: 1px solid rgba(40, 108, 139, 0.2);
  border-radius: 50%;
}

.object-code {
  display: inline-flex;
  padding: 5px 7px;
  color: var(--orange-800);
  background: var(--orange-100);
  border: 1px solid var(--orange-200);
  border-radius: var(--radius-edge);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.object-card h3 {
  margin: 28px 0 9px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 630;
  letter-spacing: -0.025em;
}

.object-card p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.68;
}

.object-meta {
  position: absolute;
  right: 20px;
  bottom: 17px;
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.contract-blueprint {
  margin-top: 42px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(251, 231, 210, 0.62), rgba(255, 253, 248, 0.94));
  border: 1px solid var(--orange-200);
  border-radius: var(--radius-edge);
}

.blueprint-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(163, 190, 203, 0.85);
}

.blueprint-header h3 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 630;
}

.blueprint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 6px;
}

.blueprint-item {
  padding: 21px 20px 21px 0;
  border-bottom: 1px solid rgba(163, 190, 203, 0.85);
}

.blueprint-item:nth-child(even) {
  padding-right: 0;
  padding-left: 20px;
  border-left: 1px solid rgba(163, 190, 203, 0.85);
}

.blueprint-item span {
  display: block;
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.blueprint-item strong {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.55;
}

.blueprint-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--orange-800);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.blueprint-rule::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--orange-500);
}

.process-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-edge);
}

.process-step {
  position: relative;
  min-height: 245px;
  padding: 24px 20px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-radius: 0;
}

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

.process-step::before {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 35px;
  content: "";
  background: var(--orange-100);
  border: 1px solid var(--orange-500);
  border-radius: 50%;
}

.process-step::after {
  position: absolute;
  top: 29px;
  right: 0;
  left: 34px;
  height: 1px;
  content: "";
  background: var(--line-strong);
}

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

.process-step > span {
  color: var(--orange-600);
  font-family: var(--font-mono);
  font-size: 8px;
}

.process-step h3 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 630;
  letter-spacing: -0.02em;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.62;
}

.signal-panel {
  margin-top: 24px;
  padding: 25px;
  background: var(--orange-800);
  border: 1px solid var(--orange-800);
  border-radius: var(--radius-edge);
  color: var(--paper);
}

.signal-panel-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: center;
}

.signal-panel .micro-label {
  color: var(--orange-200);
}

.signal-panel h3 {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
}

.signal-panel p {
  margin: 0;
  color: rgba(255, 248, 238, 0.75);
  font-size: 12px;
  line-height: 1.7;
}

.signal-code {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.signal-code span {
  padding: 5px 7px;
  color: var(--orange-100);
  border: 1px solid rgba(255, 248, 238, 0.24);
  border-radius: var(--radius-edge);
  font-family: var(--font-mono);
  font-size: 8px;
}

.failure-table,
.field-table,
.risk-table {
  width: 100%;
  margin-top: 38px;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-edge);
  overflow: hidden;
  text-align: left;
}

.failure-table th,
.field-table th,
.risk-table th {
  padding: 13px 16px;
  color: var(--orange-800);
  background: var(--orange-100);
  border-bottom: 1px solid var(--orange-200);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.failure-table td,
.field-table td,
.risk-table td {
  padding: 16px;
  color: var(--ink-soft);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.62;
  vertical-align: top;
}

.failure-table tr:last-child td,
.field-table tr:last-child td,
.risk-table tr:last-child td {
  border-bottom: 0;
}

.failure-table td:first-child,
.field-table td:first-child {
  width: 28%;
  color: var(--ink);
  font-weight: 620;
}

.field-table td:nth-child(2) {
  width: 27%;
  color: var(--orange-800);
  font-family: var(--font-mono);
  font-size: 9px;
}

.control-grid,
.port-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.control-card,
.port-card,
.metric-card {
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-edge);
}

.control-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--orange-700);
  background: var(--orange-100);
  border: 1px solid var(--orange-200);
  border-radius: var(--radius-edge);
}

.control-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.control-card h3,
.port-card h3,
.metric-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 630;
}

.control-card p,
.port-card p,
.metric-card p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.68;
}

.control-path {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.control-path::before {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--green);
  border-radius: 50%;
}

.port-card {
  position: relative;
  overflow: hidden;
}

.port-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  content: "";
  background:
    linear-gradient(135deg, transparent 49%, var(--orange-200) 50%, transparent 52%);
}

.port-number {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--orange-600);
  font-family: var(--font-mono);
  font-size: 9px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid var(--line-strong);
}

.pipeline-step {
  position: relative;
  padding: 25px 14px 0 0;
}

.pipeline-step::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--orange-500);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--orange-100);
}

.pipeline-step span {
  color: var(--orange-600);
  font-family: var(--font-mono);
  font-size: 8px;
}

.pipeline-step h3 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 630;
}

.pipeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.capability-card {
  margin-top: 38px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-edge);
  box-shadow: var(--shadow-md);
}

.capability-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.capability-card-header h3 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 630;
}

.capability-state {
  padding: 6px 9px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: var(--radius-edge);
  font-family: var(--font-mono);
  font-size: 8px;
}

.capability-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.capability-field {
  min-height: 90px;
  padding: 16px;
  background: var(--paper);
}

.capability-field span {
  display: block;
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.capability-field strong {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.45;
}

.layer-stack {
  display: grid;
  gap: 7px;
  margin-top: 40px;
}

.layer-row {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 24px;
  align-items: center;
  padding: 21px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-edge);
}

.layer-row.layer-primary {
  background: var(--orange-100);
  border-color: var(--orange-200);
}

.layer-row > span {
  color: var(--orange-700);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.layer-row > strong {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 590;
}

.layer-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.event-stream {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 38px;
  padding-left: 24px;
}

.event-stream::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 3px;
  width: 1px;
  content: "";
  background: var(--line-strong);
}

.event-item {
  position: relative;
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 20px;
  padding: 12px 0;
}

.event-item::before {
  position: absolute;
  top: 21px;
  left: -26px;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--paper);
  border: 2px solid var(--orange-500);
  border-radius: 50%;
}

.event-item code {
  color: var(--orange-800);
  font-family: var(--font-mono);
  font-size: 9px;
}

.event-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.api-row {
  display: grid;
  grid-template-columns: 58px minmax(210px, 0.8fr) 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
  padding: 13px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-edge);
}

.api-method {
  display: inline-flex;
  justify-content: center;
  padding: 4px 6px;
  color: var(--orange-800);
  background: var(--orange-100);
  border-radius: var(--radius-edge);
  font-family: var(--font-mono);
  font-size: 8px;
}

.api-row code {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
}

.api-row span {
  color: var(--muted);
  font-size: 10px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.tech-card {
  padding: 21px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-edge);
}

.tech-card span {
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tech-card h3 {
  margin: 9px 0 5px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 630;
}

.tech-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.baseline-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 44px;
  padding: 20px 23px;
  background: var(--orange-100);
  border: 1px solid var(--orange-200);
  border-radius: var(--radius-edge);
}

.baseline-banner > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.baseline-marker {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--orange-800);
  background: var(--paper);
  border: 1px solid var(--orange-300);
  border-radius: var(--radius-edge);
  font-family: var(--font-mono);
  font-size: 8px;
}

.baseline-banner strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.baseline-banner small {
  color: var(--muted);
  font-size: 10px;
}

.baseline-tag {
  flex: 0 0 auto;
  color: var(--orange-800);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.milestone-list {
  display: grid;
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.milestone {
  display: grid;
  grid-template-columns: 64px 1fr 180px;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.milestone-code {
  padding-top: 2px;
  color: var(--orange-700);
  font-family: var(--font-mono);
  font-size: 11px;
}

.milestone h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 630;
}

.milestone p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.62;
}

.milestone-duration {
  align-self: start;
  justify-self: end;
  padding: 5px 8px;
  color: var(--muted);
  background: var(--canvas-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-edge);
  font-family: var(--font-mono);
  font-size: 8px;
}

.milestone.is-next {
  margin-inline: -18px;
  padding-inline: 18px;
  background: var(--orange-100);
  border-color: var(--orange-200);
}

.scope-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 38px;
}

.scope-card {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-edge);
}

.scope-card.excluded {
  background: rgba(255, 253, 248, 0.48);
}

.scope-card h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 630;
}

.scope-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.scope-card li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--green);
  content: "+";
  font-family: var(--font-mono);
  font-weight: 600;
}

.scope-card.excluded li::before {
  color: var(--orange-600);
  content: "−";
}

.metric-card {
  position: relative;
  min-height: 190px;
}

.metric-card strong {
  display: block;
  color: var(--orange-800);
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
}

.metric-card h3 {
  margin-top: 14px;
}

.metric-card small {
  position: absolute;
  right: 22px;
  bottom: 19px;
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.page-next {
  padding: 0 0 110px;
}

.next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.next-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 190px;
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-edge);
  transition:
    border-color 220ms ease,
    transform 220ms var(--ease);
}

.next-card:hover {
  border-color: var(--orange-300);
  transform: translateY(-4px);
}

.next-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-light);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.next-card strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
}

.next-card svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--orange-700);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-callout {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 34px;
  padding: 22px;
  color: var(--ink-soft);
  background: var(--orange-100);
  border: 1px solid var(--orange-200);
  border-radius: var(--radius-edge);
}

.callout-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--orange-800);
  background: var(--paper);
  border: 1px solid var(--orange-200);
  border-radius: var(--radius-edge);
  font-family: var(--font-serif);
  font-size: 23px;
}

.page-callout strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.page-callout p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

@media (max-width: 1180px) {
  .page-hero-grid {
    gap: 50px;
  }

  .page-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 58px;
  }

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

  .process-step:nth-child(3) {
    border-right: 0;
  }

  .process-step:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 0;
  }
}

@media (max-width: 960px) {
  .page-hero {
    padding: 70px 0 88px;
  }

  .page-hero::before {
    display: none;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .page-spec-card {
    width: min(100%, 640px);
  }

  .page-content {
    padding: 80px 0 100px;
  }

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

  .page-index {
    position: static;
  }

  .page-index nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
  }

  .page-index-note {
    display: none;
  }

  .page-sections {
    gap: 100px;
  }

  .milestone {
    grid-template-columns: 56px 1fr 145px;
  }

  .layer-row {
    grid-template-columns: 135px 1fr;
  }
}

@media (max-width: 720px) {
  .page-hero {
    padding: 50px 0 70px;
  }

  .page-hero h1 {
    font-size: clamp(52px, 14vw, 72px);
  }

  .page-hero-lede {
    font-size: 15px;
  }

  .page-hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .page-spec-card {
    padding: 19px;
  }

  .spec-row {
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }

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

  .page-content {
    padding: 70px 0 85px;
  }

  .page-index nav {
    grid-template-columns: 1fr;
  }

  .page-sections {
    gap: 84px;
  }

  .content-block h2 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .content-lead {
    font-size: 14px;
  }

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

  .object-card,
  .object-card:nth-child(1),
  .object-card:nth-child(2) {
    grid-column: auto;
    min-height: 190px;
  }

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

  .blueprint-item:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .process-track {
    grid-template-columns: 1fr;
  }

  .process-step {
    min-height: auto;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .process-step::before {
    margin-bottom: 18px;
  }

  .process-step::after {
    display: none;
  }

  .signal-panel-grid,
  .control-grid,
  .port-grid,
  .metric-grid,
  .scope-columns,
  .tech-grid,
  .next-grid {
    grid-template-columns: 1fr;
  }

  .failure-table,
  .field-table,
  .risk-table {
    display: block;
    overflow-x: auto;
  }

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

  .capability-fields {
    grid-template-columns: 1fr 1fr;
  }

  .layer-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .api-row {
    grid-template-columns: 52px 1fr;
  }

  .api-row > span {
    grid-column: 2;
  }

  .baseline-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .milestone {
    grid-template-columns: 50px 1fr;
    gap: 13px;
  }

  .milestone-duration {
    grid-column: 2;
    justify-self: start;
  }

  .metric-card {
    min-height: 170px;
  }

  .next-card {
    min-height: 160px;
  }
}
