:root {
  --ink: #11110f;
  --paper: #f5f2e9;
  --white: #fffef9;
  --blue: #2352ff;
  --lime: #c7ff38;
  --red: #ff4b3e;
  --cyan: #70e5eb;
  --muted: #706f68;
  --line: #c9c5b9;
  --panel: #e8e4d8;
  --radius: 6px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--lime);
  color: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

.topbar {
  min-height: 58px;
  padding: 10px clamp(16px, 3vw, 44px);
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  display: block;
}

.topbar p {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.icon-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  text-decoration: none;
}

.icon-link svg,
.text-link svg,
.contact-button svg {
  width: 18px;
  height: 18px;
}

.hero {
  min-height: min(720px, calc(100vh - 110px));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  border-bottom: 1px solid var(--ink);
}

.hero-copy {
  padding: clamp(38px, 4.5vw, 72px) clamp(24px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  margin: 0 0 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 4.8vw, 76px);
  font-weight: 500;
  line-height: 0.98;
}

.lede {
  max-width: 650px;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.5;
}

.boundary-list {
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.boundary-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
}

.boundary-list svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.migration-board {
  margin: clamp(20px, 2.5vw, 36px);
  align-self: stretch;
  min-height: 500px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  box-shadow: 14px 14px 0 var(--blue);
}

.board-head {
  min-height: 54px;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #494943;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
}

.status-live svg {
  width: 16px;
  height: 16px;
}

.route {
  padding: 28px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #494943;
}

.route > div {
  min-width: 0;
}

.route small,
.route strong,
.route span {
  display: block;
}

.route small {
  margin-bottom: 7px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.route strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.route span {
  margin-top: 4px;
  color: #b4b4ad;
  font-size: 12px;
}

.route > svg {
  width: 18px;
  color: var(--lime);
}

.terminal {
  padding: 30px 22px;
  display: grid;
  align-content: center;
  gap: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.terminal p {
  margin: 0;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}

.terminal p span {
  color: var(--cyan);
}

.terminal p strong {
  color: var(--lime);
  text-align: right;
}

.stage-shell {
  padding: clamp(20px, 2vw, 34px) clamp(20px, 6vw, 88px) clamp(64px, 8vw, 118px);
  border-bottom: 1px solid var(--ink);
  background: var(--white);
}

.stage-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  column-gap: 70px;
  align-items: end;
}

.stage-intro .kicker {
  grid-column: 1 / -1;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.02;
}

.stage-intro > p:last-child,
.cutover-gate > div > p:last-child,
.proof-copy > p,
.engagement > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.stage-tabs {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
}

.stage-tabs button {
  min-height: 60px;
  border: 0;
  border-right: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.stage-tabs button:last-child {
  border-right: 0;
}

.stage-tabs button[aria-selected="true"] {
  background: var(--blue);
  color: var(--white);
}

.stage-tabs svg {
  width: 18px;
  height: 18px;
}

.stage-output {
  border: 1px solid var(--ink);
  border-top: 0;
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
}

.stage-summary {
  padding: clamp(30px, 5vw, 68px);
  border-right: 1px solid var(--ink);
  background: var(--paper);
}

.stage-summary > p:first-child {
  margin: 0 0 16px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stage-summary h3 {
  max-width: 580px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 500;
  line-height: 1.08;
}

.stage-summary > p:nth-child(3) {
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.metric-row {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.metric-row div {
  padding: 22px 12px 0 0;
}

.metric-row span,
.metric-row small {
  display: block;
}

.metric-row span {
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 820;
}

.metric-row small {
  margin-top: 5px;
  color: var(--muted);
}

.evidence-table {
  min-width: 0;
}

.table-head,
.table-body > div {
  min-height: 64px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1.15fr) minmax(120px, 0.6fr);
  gap: 20px;
  align-items: center;
}

.table-head {
  min-height: 46px;
  background: var(--ink);
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.table-body > div {
  border-bottom: 1px solid var(--line);
}

.table-body > div:last-child {
  border-bottom: 0;
}

.table-body strong {
  font-size: 14px;
}

.table-body span {
  color: var(--muted);
  font-size: 13px;
}

.result {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink) !important;
  font-weight: 760;
}

.result::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  border: 1px solid var(--ink);
  content: "";
}

.result.warn::before {
  background: var(--red);
}

.cutover-gate {
  padding: clamp(64px, 8vw, 118px) clamp(20px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(380px, 1.2fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: center;
  border-bottom: 1px solid var(--ink);
  background: var(--lime);
}

.gate-checks {
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 10px 10px 0 var(--ink);
}

.gate-checks label {
  min-height: 58px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
}

.gate-checks input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.release-state {
  min-height: 86px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--red);
  color: var(--ink);
}

.release-state.is-ready {
  background: var(--cyan);
}

.release-state > svg {
  width: 28px;
  height: 28px;
}

.release-state small,
.release-state strong {
  display: block;
}

.release-state small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.release-state strong {
  margin-top: 3px;
  font-size: 20px;
}

.paid-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.proof-copy {
  padding: clamp(64px, 8vw, 118px) clamp(24px, 6vw, 88px);
}

.proof-copy > p {
  margin-top: 28px;
  color: #c8c7c0;
}

.proof-copy dl {
  margin: 46px 0 0;
  border-top: 1px solid #5a5a54;
}

.proof-copy dl div {
  padding: 16px 0;
  border-bottom: 1px solid #5a5a54;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
}

.proof-copy dt {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.proof-copy dd {
  margin: 0;
}

.text-link {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--lime);
  font-weight: 760;
  text-decoration: none;
}

.paid-proof figure {
  min-height: 700px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-left: 1px solid #5a5a54;
  background: var(--panel);
}

.paid-proof figure img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: top;
}

.paid-proof figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
}

.engagement {
  padding: clamp(64px, 8vw, 118px) clamp(20px, 6vw, 88px);
  background: var(--cyan);
}

.engagement > div {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.6fr);
  gap: 60px;
  align-items: end;
}

.engagement .kicker {
  grid-column: 1 / -1;
}

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

.engagement li {
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--ink);
}

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

.engagement li > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

.engagement li strong {
  display: block;
  margin-top: 34px;
  font-size: 20px;
}

.engagement li p {
  margin: 12px 0 0;
  line-height: 1.5;
}

.contact-button {
  min-height: 56px;
  margin-top: 28px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 760;
}

.contact-note {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

footer {
  min-height: 100px;
  padding: 24px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  background: var(--white);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

footer > a:last-child {
  justify-self: end;
}

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

  .topbar > p {
    display: none;
  }

  .hero,
  .stage-intro,
  .stage-output,
  .cutover-gate,
  .paid-proof,
  .engagement > div {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .migration-board {
    min-height: 500px;
    margin-top: 0;
  }

  .stage-intro {
    gap: 22px;
  }

  .stage-summary {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .paid-proof figure {
    min-height: 600px;
    border-left: 0;
    border-top: 1px solid #5a5a54;
  }

  .engagement > div {
    gap: 22px;
  }
}

@media (max-width: 700px) {
  .topbar {
    padding: 10px 14px;
  }

  .icon-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .hero-copy {
    padding: 38px 18px 22px;
  }

  h1 {
    font-size: 42px;
  }

  .migration-board {
    min-height: 0;
    margin: 0 18px 24px;
    box-shadow: 7px 7px 0 var(--blue);
  }

  .board-head {
    min-height: 42px;
  }

  .route {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
  }

  .route > svg {
    width: 14px;
    height: 14px;
    transform: rotate(90deg);
  }

  .route small {
    margin-bottom: 2px;
  }

  .route span {
    display: none;
  }

  .terminal {
    padding: 12px 15px;
    gap: 8px;
  }

  .terminal p {
    grid-template-columns: 26px 1fr auto;
    gap: 8px;
  }

  .terminal p strong {
    text-align: right;
  }

  .terminal p:nth-child(n + 3) {
    display: none;
  }

  .stage-shell,
  .cutover-gate,
  .engagement {
    padding-right: 16px;
    padding-left: 16px;
  }

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

  .stage-tabs button:nth-child(2) {
    border-right: 0;
  }

  .stage-tabs button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink);
  }

  .table-head,
  .table-body > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }

  .table-head {
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    position: absolute;
    overflow: hidden;
    clip-path: inset(50%);
  }

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

  .metric-row div {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .cutover-gate {
    gap: 34px;
  }

  .paid-proof figure {
    min-height: 540px;
  }

  .proof-copy {
    padding: 64px 18px;
  }

  .proof-copy dl div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .engagement ol {
    grid-template-columns: 1fr;
  }

  .engagement li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .engagement li:last-child {
    border-bottom: 0;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer p {
    text-align: left;
  }

  footer > a:last-child {
    justify-self: start;
  }
}

@media (max-width: 400px) {
  .hero-copy {
    padding-top: 30px;
    padding-bottom: 16px;
  }

  h1 {
    font-size: 38px;
  }

  .lede {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.45;
  }

  .boundary-list {
    margin-top: 18px;
    gap: 6px;
    font-size: 14px;
  }

  .migration-board {
    margin-bottom: 18px;
  }

  .route {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

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