.engine-opening {
  align-items: start;
  padding-bottom: 64px;
}
.engine-opening h1 {
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 1.06;
}
.engine-opening .lead {
  font-size: 16px;
  line-height: 1.7;
}
.engine-contract {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 20px;
  font:
    11px/1.6 Consolas,
    monospace;
  color: var(--muted);
}
.engine-contract b {
  display: block;
  color: var(--ink);
  font: 400 14px/1.6 Arial;
  margin-top: 6px;
}
.capacity-bench {
  border: 1px solid #c2cce3;
  background: #fff;
  border-radius: 6px;
  min-width: 0;
  box-shadow: 0 18px 45px #26376d0a;
  overflow: hidden;
}
.capacity-bench form {
  padding: 24px;
}
.capacity-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}
.capacity-fields label {
  font-size: 12px;
  color: #435270;
  font-weight: 700;
  min-width: 0;
}
.capacity-fields input[type="number"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  background: #f7f9fe;
  border: 1px solid #bac6e0;
  border-radius: 4px;
  color: #17244b;
  font:
    23px/1.4 Consolas,
    monospace;
  padding: 11px;
  margin-top: 8px;
}
.capacity-fields small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 7px;
  line-height: 1.5;
}
.capacity-fields .capacity-check {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  line-height: 1.5;
}
.capacity-check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #2345d7;
}
.capacity-bench input:focus-visible {
  outline: 2px solid #2345d7;
  outline-offset: 3px;
}
.capacity-bench form .cta {
  margin-top: 24px;
  font: 700 14px/1.5 Arial;
  min-height: 48px;
  width: 100%;
  cursor: pointer;
}
.capacity-result {
  background: #17244b;
  color: #fff;
  padding: 24px;
}
.capacity-metrics {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #435783;
}
.capacity-metrics span {
  display: block;
  font:
    32px/1.2 Consolas,
    monospace;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}
.capacity-metrics small {
  color: #bfcdea;
  font-size: 11px;
  display: block;
  margin-top: 8px;
}
.capacity-fit {
  margin-top: 20px;
}
.capacity-fit > span {
  display: block;
  font:
    10px/1.6 Consolas,
    monospace;
  letter-spacing: 1.2px;
  color: #bfcdea;
}
.capacity-fit strong {
  font-size: 21px;
  display: block;
  margin: 8px 0;
}
.capacity-fit p {
  font-size: 12px;
  color: #d4def4;
}
.capacity-meter {
  height: 5px;
  background: #3a4c76;
  margin: 16px 0;
  border-radius: 9px;
  overflow: hidden;
}
.capacity-meter i {
  display: block;
  height: 100%;
  background: #a8c5ff;
}
.capacity-assumption {
  font-size: 11px;
  color: #bfcdea;
  line-height: 1.6;
  margin-bottom: 20px;
}
.capacity-result .cta {
  background: #fff;
  border-color: #fff;
  color: #2345d7;
  width: 100%;
  box-sizing: border-box;
}
.capacity-result .cta:hover {
  background: #dce6ff;
}
.capacity-result[data-over="true"] .capacity-meter i {
  background: #ffbe8b;
}
.pipeline-section {
  padding-block: 64px;
  border-top: 1px solid var(--line);
}
.pipeline-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
}
.pipeline-heading .eyebrow {
  grid-column: 1/-1;
}
.pipeline-heading h2 {
  margin: 0;
}
.pipeline-heading > p:last-child {
  font-size: 15px;
  color: var(--muted);
  max-width: 48ch;
}
.pipeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 40px 0 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.pipeline li {
  padding: 28px;
}
.pipeline li + li {
  border-left: 1px solid var(--line);
}
.pipeline-step {
  font:
    11px/1.6 Consolas,
    monospace;
  color: var(--blue);
}
.pipeline h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 18px 0 12px;
}
.pipeline p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.pipeline code {
  display: block;
  font:
    11px/1.6 Consolas,
    monospace;
  color: var(--blue);
  padding-top: 24px;
}
.capacity-lanes {
  border-block: 1px solid var(--line);
}
.capacity-lanes > div {
  display: grid;
  grid-template-columns: 0.5fr 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 26px 8px;
}
.capacity-lanes > div + div {
  border-top: 1px solid var(--line);
}
.lane-rate {
  font:
    42px/1.2 Consolas,
    monospace;
  letter-spacing: -2px;
  color: var(--blue);
}
.lane-rate small {
  font-size: 13px;
  letter-spacing: 0;
}
.capacity-lanes h3 {
  font-size: 20px;
}
.capacity-lanes p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}
.capacity-lanes .lane-price {
  font-weight: 700;
  color: var(--ink);
}
.no-js #capacity-form button {
  display: none;
}
.engine-access {
  padding-bottom: 20px;
}
/* Scroll reveal: armed only by JS when motion is allowed. */
.reveal-armed [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal-armed [data-reveal].revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-armed [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Hover and focus polish. */
.pipeline li {
  transition: background 0.18s ease;
}
.pipeline li:hover {
  background: #f2f6ff;
}
.capacity-lanes > div {
  transition: background 0.18s ease;
}
.capacity-lanes > div:hover {
  background: #f6f9ff;
}
.cta:focus-visible,
.capacity-bench button:focus-visible {
  outline: 3px solid #2345d7;
  outline-offset: 3px;
}
.capacity-result .cta:focus-visible {
  outline-color: #a8c5ff;
}
/* Live ingestion gauges. */
.load-section {
  padding-block: 64px;
  border-top: 1px solid var(--line);
}
.load-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
}
.load-heading .eyebrow {
  grid-column: 1/-1;
}
.load-heading h2 {
  margin: 0;
}
.load-heading > p:last-child {
  font-size: 15px;
  color: var(--muted);
  max-width: 48ch;
}
.load-panel {
  margin-top: 40px;
  border: 1px solid #c2cce3;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 45px #26376d0a;
  overflow: hidden;
}
.load-pill {
  margin-left: auto;
  font:
    10px/1.6 Consolas,
    monospace;
  letter-spacing: 1.2px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f2f5fc;
  color: var(--muted);
  white-space: nowrap;
}
.load-pill[data-status="healthy"] {
  color: #0f7b4d;
  border-color: #9ed9bd;
  background: #eefaf3;
}
.load-pill[data-status="degraded"] {
  color: #a15c00;
  border-color: #f0cf9e;
  background: #fff7ea;
}
.load-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.load-cell {
  min-width: 0;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}
.load-cell:nth-child(-n + 3) {
  border-top: 0;
}
.load-cell:nth-child(3n + 2),
.load-cell:nth-child(3n) {
  border-left: 1px solid var(--line);
}
.load-value {
  display: block;
  font:
    30px/1.2 Consolas,
    monospace;
  letter-spacing: -1px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.load-cell small {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.load-meter {
  height: 5px;
  background: #e4eaf7;
  margin-top: 14px;
  border-radius: 9px;
  overflow: hidden;
}
.load-meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  border-radius: 9px;
  transition: width 0.5s ease;
}
@media (prefers-reduced-motion: reduce) {
  .load-meter i {
    transition: none;
  }
}
.load-meter-scale {
  color: #8a98b5;
}
.load-state {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.load-panel[data-live="stale"] .load-state {
  color: #a15c00;
}
.load-panel[data-live="unavailable"] .load-state {
  color: var(--muted);
  font-style: italic;
}
.load-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: #f7f9fe;
}
.load-foot p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 56ch;
}
@media (max-width: 1050px) {
  .engine-opening {
    gap: 26px;
  }
  .capacity-bench form,
  .capacity-result {
    padding: 20px;
  }
  .capacity-metrics span {
    font-size: 27px;
  }
  .pipeline li {
    padding: 22px;
  }
  .capacity-lanes > div {
    grid-template-columns: 0.5fr 1fr;
    gap: 20px;
  }
  .capacity-lanes .cta {
    grid-column: 2;
    justify-self: start;
  }
  .load-panel {
    margin-top: 32px;
  }
  .load-value {
    font-size: 26px;
  }
  .load-cell {
    padding: 18px 20px;
  }
}
@media (max-width: 700px) {
  .engine-opening {
    padding-block: 36px 40px;
  }
  .engine-opening h1 {
    font-size: 42px;
  }
  .engine-opening .lead {
    font-size: 15px;
  }
  .engine-contract {
    margin-top: 26px;
  }
  .capacity-fields {
    gap: 18px 14px;
  }
  .capacity-metrics span {
    font-size: 29px;
  }
  .capacity-metrics small {
    font-size: 10px;
  }
  .pipeline-section {
    padding-block: 40px;
  }
  .pipeline-heading {
    display: block;
  }
  .pipeline-heading h2 {
    margin: 14px 0 20px;
  }
  .pipeline {
    display: block;
    margin-top: 26px;
  }
  .pipeline li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .pipeline h3 {
    margin-top: 12px;
  }
  .pipeline code {
    padding-top: 16px;
  }
  .capacity-lanes > div {
    grid-template-columns: 88px 1fr;
    gap: 16px;
  }
  .lane-rate {
    font-size: 34px;
  }
  .lane-rate small {
    display: block;
    margin-top: 6px;
  }
  .capacity-lanes .cta {
    grid-column: 1/-1;
    justify-self: stretch;
    min-height: 46px;
    font-size: 13px;
  }
  .engine-access .access-header > p {
    font-size: 14px;
  }
  .engine-opening .primary-group .cta {
    font-size: 13px;
  }
  .capacity-result .cta {
    font-size: 13px;
  }
  .capacity-fit strong {
    font-size: 20px;
  }
  .load-section {
    padding-block: 40px;
  }
  .load-heading {
    display: block;
  }
  .load-heading h2 {
    margin: 14px 0 20px;
  }
  .load-grid {
    grid-template-columns: 1fr 1fr;
  }
  .load-cell,
  .load-cell:nth-child(-n + 3) {
    border-top: 1px solid var(--line);
  }
  .load-cell:nth-child(-n + 2) {
    border-top: 0;
  }
  .load-cell:nth-child(3n + 2),
  .load-cell:nth-child(3n) {
    border-left: 0;
  }
  .load-cell:nth-child(2n) {
    border-left: 1px solid var(--line);
  }
  .load-foot {
    align-items: stretch;
    flex-direction: column;
  }
  .load-foot .cta {
    justify-content: space-between;
    min-height: 46px;
    font-size: 13px;
  }
}

/* Worked-example panel in the hero. Pure text, no inputs. */
.capacity-example {
  border: 1px solid #c2cce3;
  background: #fff;
  border-radius: 6px;
  min-width: 0;
  box-shadow: 0 18px 45px #26376d0a;
  overflow: hidden;
}
.example-figures {
  padding: 30px 24px;
  text-align: center;
}
.example-inputs {
  font:
    15px/1.7 Consolas,
    monospace;
  color: var(--ink);
}
.example-arrow {
  color: var(--blue);
  font-size: 20px;
  line-height: 1.4;
  margin: 14px 0;
}
.example-readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: #17244b;
  color: #fff;
  border-radius: 4px;
  padding: 22px 24px;
  text-align: left;
}
.example-readout b {
  display: block;
  font:
    32px/1.2 Consolas,
    monospace;
  letter-spacing: -1px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.example-readout small {
  display: block;
  color: #bfcdea;
  font-size: 11px;
  margin-top: 8px;
}
.example-caption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}
.example-caption a {
  color: var(--blue);
  font-weight: 700;
}
/* Secondary hero link. */
.cta-secondary {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid #bac6e0;
  border-radius: 4px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  transition:
    background 0.18s,
    transform 0.18s;
}
.cta-secondary:hover {
  background: #f2f6ff;
  text-decoration: none;
  transform: translateY(-2px);
}
.cta-secondary:focus-visible {
  outline: 3px solid #2345d7;
  outline-offset: 3px;
}
.cta-secondary > span {
  font-size: 16px;
  line-height: 1;
}
@media (max-width: 1050px) {
  .example-figures {
    padding: 24px 20px;
  }
  .example-readout b {
    font-size: 27px;
  }
}
@media (max-width: 700px) {
  .example-figures {
    padding: 22px 18px;
  }
  .example-inputs {
    font-size: 14px;
  }
  .example-readout {
    padding: 18px 20px;
  }
  .example-readout b {
    font-size: 29px;
  }
  .example-readout small {
    font-size: 10px;
  }
  .engine-opening .primary-group .cta-secondary {
    font-size: 13px;
  }
}

/* Phone header: the published nav carries four links and the CTA, more than
   fits beside the brand at 375px. Keep the CTA; the footer lists every page. */
@media (max-width: 480px) {
  .masthead nav > a:not(.nav-cta) {
    display: none;
  }
}
