:root {
  --paper: #f3f6f8;
  --paper-deep: #e6ebef;
  --ink: #101a2b;
  --muted: #657080;
  --line: rgba(16, 26, 43, 0.2);
  --signal: #2457ff;
  --alert: #a9432c;
  --warning: #8d5700;
  --good: #196d52;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(16, 26, 43, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 26, 43, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: var(--sans);
}

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

.masthead,
main,
footer {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 38px;
  height: 68px;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: var(--signal);
  color: white;
  font: 800 11px var(--mono);
}

.brand b {
  color: var(--muted);
  font-weight: 500;
}

.masthead p,
.masthead time,
footer {
  margin: 0;
  color: var(--muted);
  font: 700 9px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.masthead p b {
  color: var(--signal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: end;
  min-height: 640px;
  padding: clamp(80px, 10vw, 145px) 0 70px;
  border-bottom: 1px solid var(--ink);
}

.eyebrow,
.label,
.section-heading > span,
.metrics span,
.health-panel > p,
.objective > span {
  color: var(--signal);
  font: 800 9px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin: 22px 0 0;
  font-size: clamp(52px, 7.5vw, 104px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.objective {
  max-width: 750px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.objective > span {
  display: block;
  margin-bottom: 9px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 45px;
  margin: 42px 0 0;
}

.hero-facts div {
  min-width: 120px;
}

.hero-facts dt,
.hero-facts dd {
  margin: 0;
}

.hero-facts dt {
  color: var(--muted);
  font: 700 8px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
}

.health-panel {
  padding: 30px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 16px 16px 0 var(--signal);
}

.health-panel > p {
  margin: 0;
  color: rgba(243, 246, 248, 0.5);
}

.health-panel > strong {
  display: block;
  margin-top: 42px;
  color: #ff9d80;
  font-size: clamp(42px, 5vw, 66px);
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.health-panel > span {
  display: block;
  margin-top: 25px;
  color: rgba(243, 246, 248, 0.67);
  font-size: 13px;
  line-height: 1.65;
}

.progress {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(240px, 1fr);
  gap: 30px 70px;
  align-items: end;
  padding: 50px 0;
  border-bottom: 1px solid var(--ink);
}

.progress h2 {
  margin: 8px 0 0;
  font-size: clamp(35px, 4vw, 54px);
  letter-spacing: -0.045em;
}

.progress > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.progress-track {
  position: relative;
  grid-column: 1 / -1;
  height: 24px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(10% - 1px),
    var(--line) calc(10% - 1px),
    var(--line) 10%
  );
}

.progress-track i {
  display: block;
  width: 68%;
  height: 100%;
  background: var(--signal);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  gap: 1px;
  border-bottom: 1px solid var(--ink);
}

.metrics article {
  min-height: 250px;
  padding: 28px;
  background: var(--paper);
}

.metrics strong {
  display: block;
  margin-top: 42px;
  font-size: clamp(48px, 5.2vw, 74px);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.metrics p {
  max-width: 25ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.metrics .signal {
  background: var(--signal);
  color: white;
}

.metrics .signal span,
.metrics .signal p {
  color: rgba(255, 255, 255, 0.9);
}

.workstreams,
.milestones,
.decision-grid,
.next-actions {
  padding: 80px 0;
  border-bottom: 1px solid var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: baseline;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 62px);
  letter-spacing: -0.05em;
}

.stream-table {
  margin-top: 40px;
  border-top: 1px solid var(--ink);
}

.stream-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(120px, 0.75fr) 100px minmax(240px, 1.65fr);
  gap: 24px;
  align-items: center;
  min-height: 78px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55;
}

.stream-head {
  min-height: 42px;
  color: var(--muted);
  font: 700 8px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status {
  display: inline-block;
  padding: 5px 7px;
  font: 800 8px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.on-track {
  background: rgba(28, 118, 90, 0.11);
  color: var(--good);
}

.at-risk {
  background: rgba(213, 138, 0, 0.12);
  color: var(--warning);
}

.blocked {
  background: repeating-linear-gradient(135deg, rgba(237, 91, 58, 0.08) 0 5px, rgba(237, 91, 58, 0.18) 5px 10px);
  color: var(--alert);
}

.milestones ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 50px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.milestones li {
  position: relative;
  min-height: 225px;
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--line);
}

.milestones li:not(:first-child) {
  padding-left: 24px;
}

.milestones li:last-child {
  border-right: 0;
}

.milestones li::before {
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--paper);
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  content: "";
}

.milestones li:not(:first-child)::before {
  left: 24px;
}

.milestones li.done::before {
  background: var(--good);
  box-shadow: 0 0 0 1px var(--good);
}

.milestones li.risk::before {
  background: var(--alert);
  box-shadow: 0 0 0 1px var(--alert);
}

.milestones time {
  color: var(--signal);
  font: 800 9px var(--mono);
  text-transform: uppercase;
}

.milestones strong {
  display: block;
  margin-top: 34px;
  font-size: 15px;
}

.milestones p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 70px;
}

.risk-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.risk-item:first-of-type {
  margin-top: 34px;
  border-top: 1px solid var(--ink);
}

.risk-item > div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 700 9px var(--mono);
  text-transform: uppercase;
}

.risk-item > div b {
  color: var(--alert);
}

.risk-item > p {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.risk-item > small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.decisions {
  padding: 34px;
  background: var(--ink);
  color: var(--paper);
}

.decisions .section-heading > span {
  color: #7895ff;
}

.decisions article {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 246, 248, 0.17);
}

.decisions article > p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.decisions dl {
  display: flex;
  gap: 34px;
  margin: 24px 0 0;
}

.decisions dl div {
  min-width: 100px;
}

.decisions dt,
.decisions dd {
  margin: 0;
}

.decisions dt {
  color: rgba(243, 246, 248, 0.5);
  font: 700 8px var(--mono);
  text-transform: uppercase;
}

.decisions dd {
  margin-top: 5px;
  font-size: 11px;
}

.next-actions ol {
  margin: 40px 0 0 48px;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.next-actions li {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 67px;
  border-bottom: 1px solid var(--line);
}

.next-actions li > span {
  color: var(--signal);
  font: 800 9px var(--mono);
  text-transform: uppercase;
}

.next-actions li p {
  margin: 0;
  font-size: 13px;
}

.next-actions li b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 52px;
}

a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

@media (max-width: 780px) {
  .masthead {
    grid-template-columns: 1fr auto;
  }

  .masthead time {
    display: none;
  }

  .brand b {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 48px;
    padding: 65px 0 55px;
  }

  .health-panel {
    max-width: 420px;
    box-shadow: 10px 10px 0 var(--signal);
  }

  .progress {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .progress > p {
    text-align: left;
  }

  .progress-track {
    grid-column: auto;
    margin-top: 15px;
  }

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

  .metrics article {
    min-height: 220px;
    padding: 22px;
  }

  .stream-head {
    display: none;
  }

  .stream-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    padding: 22px 0;
  }

  .stream-row [data-label="This week"] {
    grid-column: 1 / -1;
  }

  .stream-row [data-label]::before {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    content: attr(data-label);
    font: 700 7px var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .milestones ol {
    grid-template-columns: 1fr;
    margin-left: 48px;
    border-top: 0;
    border-left: 1px solid var(--ink);
  }

  .milestones li,
  .milestones li:not(:first-child) {
    min-height: 0;
    padding: 0 0 38px 28px;
    border-right: 0;
  }

  .milestones li::before,
  .milestones li:not(:first-child)::before {
    top: 2px;
    left: -6px;
  }

  .milestones strong {
    margin-top: 12px;
  }

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

  .decisions {
    padding: 27px;
  }

  .next-actions ol {
    margin-left: 0;
  }

  .next-actions li {
    grid-template-columns: 46px 1fr;
    gap: 8px 16px;
    padding: 15px 0;
  }

  .next-actions li b {
    grid-column: 2;
  }

  footer {
    gap: 24px;
  }

  footer span:last-child {
    text-align: right;
  }
}

@media (max-width: 470px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics article {
    min-height: 190px;
  }

  .stream-row {
    grid-template-columns: 1fr;
  }

  .stream-row [data-label="This week"] {
    grid-column: auto;
  }
}

@media print {
  body {
    background: white;
  }

  .hero {
    min-height: 82vh;
  }

  .metrics article,
  .stream-row,
  .milestones li,
  .risk-item,
  .decisions,
  .next-actions li {
    break-inside: avoid;
  }
}

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