:root {
  --ink: #102128;
  --ink-soft: #43555c;
  --paper: #f1eee6;
  --paper-bright: #fbfaf6;
  --navy: #102d38;
  --navy-deep: #09232c;
  --line: rgba(16, 33, 40, 0.17);
  --teal: #1d766e;
  --teal-pale: #d9ebe5;
  --amber: #e7a63a;
  --amber-pale: #f7e7c5;
  --red: #b6473d;
  --red-pale: #f4dcd6;
  --white: #fffef9;
  --shadow: 0 18px 55px rgba(9, 35, 44, 0.1);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Aptos, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--sans);
  line-height: 1.55;
  background:
    linear-gradient(rgba(16, 45, 56, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 28px;
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: 0.35rem;
  transform: translateY(-180%);
}

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

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 78px;
  padding: 1rem clamp(1.25rem, 4vw, 4.5rem);
  color: var(--white);
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.masthead__brand,
.masthead__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.masthead__brand > span:last-child {
  display: grid;
  line-height: 1.1;
}

.masthead__brand strong {
  font-family: var(--serif);
  font-size: 1.16rem;
  letter-spacing: 0.02em;
}

.masthead__brand small,
.masthead__meta > span:first-child {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--navy-deep);
  background: var(--amber);
  font-family: var(--serif);
  font-weight: 800;
  border-radius: 50% 50% 50% 0;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8rem) 8rem;
  color: var(--white);
  background:
    radial-gradient(circle at 74% 18%, rgba(231, 166, 58, 0.2), transparent 22rem),
    linear-gradient(128deg, var(--navy-deep), var(--navy) 65%, #174a51);
}

.hero::after {
  content: "";
  position: absolute;
  right: -12rem;
  bottom: -16rem;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.025), 0 0 0 10rem rgba(255, 255, 255, 0.015);
  pointer-events: none;
}

.hero__copy,
.countdown {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow,
.decisions .eyebrow {
  color: var(--amber);
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 900px;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 6.7vw, 6.9rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero__lead {
  max-width: 750px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.hero__next {
  display: flex;
  gap: 0.75rem;
  max-width: 760px;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
}

.pulse {
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.4rem;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 0.38rem rgba(231, 166, 58, 0.14);
}

.countdown {
  align-self: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.countdown__date {
  display: grid;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.countdown__date > span,
.countdown__date > small,
.countdown__grid span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.countdown__date > strong {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 1;
}

.countdown__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.25rem;
}

.countdown__grid > div {
  display: grid;
  gap: 0.1rem;
}

.countdown__grid > div + div {
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.countdown__grid strong {
  font-size: 1.35rem;
}

.countdown > p {
  margin: 1.3rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.status-chip,
.table-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.25rem 0.55rem;
  color: var(--ink-soft);
  background: #e8e7e0;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  border-radius: 999px;
}

.status-chip--risk {
  color: #fff7e8;
  background: rgba(182, 71, 61, 0.85);
}

.status-chip--waiting {
  color: #704409;
  background: var(--amber-pale);
}

.metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1240px;
  margin: -3.4rem auto 0;
  background: var(--paper-bright);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.metric {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  min-height: 150px;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric::before {
  content: "";
  width: 2.5rem;
  height: 0.22rem;
  margin-bottom: 0.6rem;
  background: var(--teal);
}

.metric--primary::before {
  background: var(--amber);
}

.metric--warning::before {
  background: var(--red);
}

.metric__label {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric strong {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.4vw, 2.4rem);
  font-weight: 600;
}

.metric > span:last-child {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 8rem) 1.25rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.section-number {
  color: rgba(16, 33, 40, 0.18);
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.72;
}

.stepper {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.step--active {
  margin: 0 -1rem;
  padding: 1.4rem 1rem;
  background: var(--amber-pale);
}

.step__marker {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 800;
  border: 1px solid var(--teal);
  border-radius: 50%;
}

.step--active .step__marker {
  color: var(--white);
  background: var(--teal);
}

.step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.step p {
  max-width: 830px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.route {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.route-card {
  grid-column: span 4;
  min-height: 260px;
  padding: 1.5rem;
  background: var(--paper-bright);
  border: 1px solid var(--line);
}

.route-card:nth-child(4),
.route-card:nth-child(5),
.route-card:nth-child(6),
.route-card:nth-child(7) {
  grid-column: span 6;
}

.route-card--active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.route-card--active p,
.route-card--active small {
  color: rgba(255, 255, 255, 0.7);
}

.route-card--quiet {
  background: var(--teal-pale);
}

.route-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.route-card--active .route-card__topline {
  color: var(--amber);
}

.route-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
}

.route-card p,
.route-card li,
.route-card small {
  color: var(--ink-soft);
}

.route-card ul {
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
}

.bar {
  height: 5px;
  margin: 2rem 0 0.8rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.bar span {
  display: block;
  width: 75%;
  height: 100%;
  background: var(--amber);
}

.table-wrap {
  overflow-x: auto;
  background: var(--paper-bright);
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  color: var(--ink-soft);
  background: #e7e4dc;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody td {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

tbody td:nth-child(2),
tfoot td:first-of-type {
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 750;
  white-space: nowrap;
}

.row-active {
  background: #f9edcf;
}

tfoot {
  color: var(--white);
  background: var(--navy);
}

tfoot th,
tfoot td {
  border-bottom: 0;
}

.table-status--active {
  color: #17574f;
  background: var(--teal-pale);
}

.table-status--risk {
  color: #7e2c25;
  background: var(--red-pale);
}

.table-status--external {
  color: #704409;
  background: var(--amber-pale);
}

.table-status--locked {
  color: var(--white);
  background: var(--navy);
}

.decisions {
  max-width: none;
  margin-top: clamp(5rem, 8vw, 8rem);
  padding: clamp(4rem, 7vw, 7rem) clamp(1.25rem, 7vw, 8rem);
  color: var(--white);
  background: var(--navy-deep);
}

.section-heading--light {
  border-color: rgba(255, 255, 255, 0.16);
}

.section-heading--light .section-number {
  color: rgba(255, 255, 255, 0.14);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.decision-card {
  min-height: 235px;
  padding: 1.4rem;
  background: var(--navy-deep);
}

.decision-card--urgent {
  color: var(--ink);
  background: var(--amber);
}

.decision-card > span {
  display: block;
  margin-bottom: 2.7rem;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-card--urgent > span {
  color: var(--navy-deep);
}

.decision-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
}

.decision-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.decision-card--urgent p {
  color: rgba(16, 33, 40, 0.82);
}

.reality {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 8rem);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 8rem) 1.25rem;
}

.reality h2 {
  color: var(--red);
}

.reality > p {
  align-self: end;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.25rem, 7vw, 8rem);
  color: rgba(255, 255, 255, 0.64);
  background: var(--navy-deep);
  font-size: 0.76rem;
}

footer > div {
  display: grid;
  gap: 0.2rem;
}

footer strong {
  color: var(--white);
}

footer p {
  max-width: 520px;
  margin-bottom: 0;
  text-align: right;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 6rem;
  }

  .countdown {
    max-width: 540px;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
    margin-inline: 1.25rem;
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .route-card:nth-child(n) {
    grid-column: span 6;
  }

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

@media (max-width: 620px) {
  .masthead {
    align-items: flex-start;
    gap: 1rem;
  }

  .masthead__meta {
    align-items: flex-end;
    flex-direction: column;
    gap: 0.45rem;
    text-align: right;
  }

  .hero {
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.5rem);
  }

  .metrics {
    grid-template-columns: 1fr;
    margin-top: -2.2rem;
  }

  .metric,
  .metric:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section-heading {
    align-items: start;
  }

  .section-number {
    font-size: 3rem;
  }

  .step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .step__marker {
    width: 36px;
    height: 36px;
  }

  .step__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .route .route-card:nth-child(n) {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .decision-grid,
  .reality {
    grid-template-columns: 1fr;
  }

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

  .decision-card > span {
    margin-bottom: 1.2rem;
  }

  footer {
    flex-direction: column;
  }

  footer p {
    text-align: left;
  }
}

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

@media print {
  :root {
    --paper: #fff;
    --paper-bright: #fff;
  }

  .masthead,
  .hero,
  .decisions,
  footer {
    color: #000;
    background: #fff;
  }

  .hero {
    padding-block: 2rem;
  }

  .hero__lead,
  .hero__next,
  .countdown > p,
  .countdown__date > span,
  .countdown__date > small,
  .countdown__grid span,
  .decision-card p,
  footer,
  footer p {
    color: #222;
  }

  .metrics {
    margin-top: 0;
    box-shadow: none;
  }

  .section,
  .reality {
    padding-top: 2.5rem;
  }

  .route-card,
  .decision-card,
  .table-wrap,
  .countdown {
    break-inside: avoid;
  }
}
