:root {
  --paper: #f3f0e8;
  --paper-deep: #e8e2d4;
  --ink: #172124;
  --muted: #5e6868;
  --line: #c8c6bc;
  --blue: #2854a5;
  --blue-deep: #183770;
  --orange: #e96e34;
  --red: #b9473e;
  --yellow: #e7bd4a;
  --green: #2e6b55;
  --white: #fffdf8;
  --shadow: 0 16px 36px rgba(23, 33, 36, 0.1);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(23, 33, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 36, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 84% 8%, rgba(233, 110, 52, 0.13), transparent 28rem);
  content: "";
  pointer-events: none;
}

a {
  color: var(--blue-deep);
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.17em;
}

a:hover {
  color: var(--red);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  border-radius: 0.4rem;
  background: var(--ink);
  color: var(--white);
}

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

.site-header,
.main-shell,
.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.wordmark,
.language-switch,
.eyebrow,
.kicker,
.passport-label,
.metric-label,
.section-number,
.mode-tag,
.source-meta,
.stamp,
.footer-meta {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.wordmark a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.language-switch {
  display: flex;
  gap: 0.3rem;
  font-size: 0.72rem;
}

.language-switch a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.language-switch a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: 650px;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.eyebrow,
.kicker,
.section-number,
.source-meta,
.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.status-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 107, 85, 0.12);
}

h1,
h2,
h3,
p {
  max-width: 70ch;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h1 {
  max-width: 10ch;
  margin-top: 1.2rem;
  font-size: clamp(3.2rem, 7.1vw, 6.5rem);
}

h2 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 4.3vw, 4.6rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.08;
}

.accent {
  color: var(--red);
}

.deck {
  max-width: 58ch;
  margin: 1.6rem 0 0;
  color: #344144;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.45;
}

.hero-proof {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  max-width: 620px;
  margin-top: 2.1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ink);
}

.hero-proof p {
  margin: 0;
  color: var(--ink);
}

.stamp {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  transform: rotate(-4deg);
}

.source-line {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.passport-wrap {
  position: relative;
  isolation: isolate;
}

.passport-wrap::before,
.passport-wrap::after {
  position: absolute;
  z-index: -1;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(23, 33, 36, 0.24);
  content: "";
}

.passport-wrap::before {
  top: -28px;
  right: -18px;
}

.passport-wrap::after {
  right: 18px;
  bottom: -26px;
  border-color: rgba(185, 71, 62, 0.45);
}

.passport {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  padding: 1.3rem;
  border: 1px solid var(--ink);
  border-radius: 6px 26px 8px 24px;
  background: var(--blue-deep);
  box-shadow: var(--shadow);
  color: var(--white);
  transform: rotate(2.3deg);
}

.passport::before {
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(255, 253, 248, 0.36);
  border-radius: 2px 16px 4px 14px;
  content: "";
  pointer-events: none;
}

.passport::after {
  position: absolute;
  right: -11rem;
  bottom: -13rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 253, 248, 0.05), 0 0 0 58px rgba(255, 253, 248, 0.05);
  content: "";
}

.passport-head,
.passport-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.passport-label {
  margin: 0;
  color: rgba(255, 253, 248, 0.76);
  font-size: 0.65rem;
}

.passport-code {
  color: var(--yellow);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
}

.passport-center {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 2rem 0;
}

.envelope-mark {
  position: relative;
  display: grid;
  width: min(82%, 310px);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--yellow);
  border-radius: 50%;
}

.envelope-mark::before,
.envelope-mark::after {
  position: absolute;
  width: 72%;
  height: 34%;
  border: 2px solid var(--yellow);
  content: "";
}

.envelope-mark::before {
  transform: rotate(32deg);
}

.envelope-mark::after {
  transform: rotate(-32deg);
}

.envelope-copy {
  position: relative;
  z-index: 2;
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.passport-foot {
  position: absolute;
  right: 1.3rem;
  bottom: 1.5rem;
  left: 1.3rem;
  z-index: 1;
  align-items: end;
}

.passport-foot strong {
  display: block;
  font-size: 2.2rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.passport-foot span {
  display: block;
  max-width: 18ch;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.79rem;
  line-height: 1.25;
  text-align: right;
}

.signal-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.signal {
  min-height: 150px;
  padding: 1.35rem 1rem 1.25rem;
  border-right: 1px solid var(--line);
}

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

.signal:nth-child(2) {
  background: rgba(231, 189, 74, 0.24);
}

.signal:nth-child(3) {
  background: rgba(233, 110, 52, 0.11);
}

.signal:nth-child(4) {
  background: rgba(46, 107, 85, 0.11);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.metric-value {
  display: block;
  margin-top: 0.55rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.metric-note {
  display: block;
  max-width: 20ch;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.section {
  padding: clamp(4.5rem, 9vw, 8.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(150px, 0.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.section-intro > div:last-child {
  min-width: 0;
}

.section-intro p:not(.section-number):not(.kicker) {
  max-width: 64ch;
  margin: 1.4rem 0 0;
  color: #344144;
  font-size: 1.08rem;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.answer-card {
  min-height: 275px;
  padding: 1.5rem;
  background: var(--white);
}

.answer-card:nth-child(2) {
  background: var(--paper-deep);
}

.answer-card:nth-child(3) {
  background: #e8efe9;
}

.answer-card .kicker {
  color: var(--blue-deep);
}

.answer-card h3 {
  margin-top: 2.8rem;
}

.answer-card p {
  margin: 0.9rem 0 0;
  color: #445152;
}

.note {
  margin: 1.1rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--orange);
  color: var(--muted);
  font-size: 0.92rem;
}

.clock-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
  gap: 2rem;
  margin-top: 3.5rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(40, 84, 165, 0.18);
}

.board-label {
  margin: 0 0 1.3rem;
  color: var(--blue-deep);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  min-height: 58px;
}

.timeline li:not(:last-child)::after {
  position: absolute;
  top: 43px;
  left: 19px;
  width: 3px;
  height: calc(100% - 20px);
  background: var(--paper-deep);
  content: "";
}

.timeline-index {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
}

.timeline strong {
  display: block;
  line-height: 1.15;
}

.timeline small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  line-height: 1.35;
}

.clock-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 1.35rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.clock-card .metric-label {
  color: rgba(255, 253, 248, 0.7);
}

.clock-card strong {
  display: block;
  margin: 1rem 0;
  color: var(--yellow);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(3rem, 6vw, 5.8rem);
  letter-spacing: -0.12em;
  line-height: 0.85;
}

.clock-card p {
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.9rem;
}

.clock-card em {
  display: block;
  margin-top: 0.8rem;
  color: var(--yellow);
  font-size: 0.8rem;
  font-style: normal;
}

.envelope-section {
  position: relative;
  overflow: hidden;
  background: rgba(40, 84, 165, 0.055);
}

.envelope-section::before {
  position: absolute;
  top: 9rem;
  right: -8rem;
  width: 31rem;
  height: 31rem;
  border: 1px solid rgba(40, 84, 165, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(40, 84, 165, 0.05), 0 0 0 64px rgba(40, 84, 165, 0.04);
  content: "";
  pointer-events: none;
}

.compare-shell {
  position: relative;
  z-index: 1;
  margin-top: 3.5rem;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--ink);
  background: var(--paper-deep);
}

.mode-switch button {
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.mode-switch button.is-active,
.mode-switch button[aria-pressed="true"] {
  background: var(--blue-deep);
  color: var(--white);
}

.mode-panel {
  padding: clamp(1.2rem, 4vw, 2.5rem);
}

.js .mode-panel:not(.is-active) {
  display: none;
}

.mode-panel + .mode-panel {
  border-top: 1px dashed var(--line);
}

.mode-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.mode-tag {
  color: var(--blue-deep);
  font-size: 0.7rem;
  font-weight: 800;
}

.mode-panel h3 {
  margin-top: 0.55rem;
}

.mode-panel-intro {
  max-width: 65ch;
  margin: 1rem 0 0;
  color: #445152;
}

.mode-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.flow-step {
  min-height: 140px;
  padding: 1rem;
  background: var(--paper);
}

.flow-step:nth-child(2) {
  background: rgba(233, 110, 52, 0.13);
}

.flow-step:nth-child(3) {
  background: rgba(231, 189, 74, 0.28);
}

.flow-step:nth-child(4) {
  background: #e8efe9;
}

.flow-step strong {
  display: block;
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.15;
}

.flow-step small {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  line-height: 1.35;
}

.flow-number {
  color: var(--blue-deep);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.proposed .flow-step:first-child {
  background: rgba(231, 189, 74, 0.28);
}

.proposed .flow-step:nth-child(2) {
  border: 2px solid var(--yellow);
  background: var(--white);
}

.proposed .flow-step:nth-child(3) {
  background: #e8efe9;
}

.proposed .flow-step:nth-child(4) {
  background: rgba(185, 71, 62, 0.1);
}

.proposal-note {
  margin: 1.2rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--red);
  background: rgba(185, 71, 62, 0.08);
  color: #4a3030;
}

.live-status {
  min-height: 1.6em;
  margin: 1rem 1.3rem 1.25rem;
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.seal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 1.5rem clamp(1.2rem, 4vw, 2.5rem) 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
}

.seal-mark {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.57rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.seal p {
  margin: 0;
  color: #344144;
}

.repeat-grid,
.boundary-grid,
.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.repeat-card,
.boundary-card,
.source-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--ink);
  background: var(--white);
}

.repeat-card {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.mini-passport {
  display: grid;
  min-height: 145px;
  place-items: center;
  border: 1px solid var(--blue-deep);
  border-radius: 4px 14px 4px 12px;
  background: var(--blue);
  color: var(--white);
  transform: rotate(-3deg);
}

.mini-passport span {
  padding: 0.4rem;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.repeat-card h3,
.boundary-card h3,
.source-card h3 {
  font-size: 1.45rem;
}

.repeat-card p,
.boundary-card p,
.source-card p {
  margin: 0.8rem 0 0;
  color: #445152;
}

.clean-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 1.15rem;
}

.clean-list li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

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

.boundary-card {
  min-height: 210px;
}

.boundary-card:nth-child(1) {
  border-top: 5px solid var(--blue);
}

.boundary-card:nth-child(2) {
  border-top: 5px solid var(--yellow);
}

.boundary-card:nth-child(3) {
  border-top: 5px solid var(--green);
}

.boundary-card:nth-child(4) {
  border-top: 5px solid var(--red);
}

.boundary-card .kicker {
  color: var(--muted);
}

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

.source-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.source-card li + li {
  margin-top: 0.7rem;
}

.source-card small {
  display: block;
  margin-top: 1.2rem;
  color: var(--muted);
}

.closing-note {
  max-width: 64ch;
  margin: 3.5rem 0 0;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.05rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--ink);
}

.markdown-link {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.not-found {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding: 4rem 0;
  text-align: center;
}

.not-found h1 {
  max-width: none;
  font-size: clamp(3rem, 8vw, 7rem);
}

.not-found p {
  margin: 1.2rem auto 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
    gap: 2rem;
  }

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

@media (max-width: 720px) {
  .site-header,
  .main-shell,
  .site-footer {
    width: min(100% - 1.4rem, 1180px);
  }

  .site-header {
    min-height: 68px;
  }

  .wordmark {
    gap: 0.45rem;
    font-size: 0.6rem;
  }

  .wordmark span {
    display: none;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 3.2rem 0 3.4rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(3.2rem, 15vw, 5.8rem);
  }

  .deck {
    font-size: 1.08rem;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .stamp {
    width: max-content;
  }

  .passport-wrap {
    width: calc(100% - 1rem);
    margin: 3.5rem auto 0;
  }

  .passport {
    min-height: 380px;
  }

  .passport-center {
    min-height: 250px;
  }

  .envelope-mark {
    width: min(73%, 240px);
  }

  .envelope-copy {
    width: 94px;
    height: 94px;
    font-size: 0.57rem;
  }

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

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

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

  .section {
    padding: 4.5rem 0;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .answer-grid,
  .clock-board,
  .repeat-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

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

  .answer-card h3 {
    margin-top: 2rem;
  }

  .clock-board {
    gap: 1.4rem;
  }

  .clock-card {
    min-height: 220px;
  }

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

  .flow-step {
    min-height: 130px;
  }

  .repeat-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 1rem;
  }

  .mini-passport {
    min-height: 126px;
  }

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

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

  .site-footer {
    display: block;
  }

  .footer-links {
    margin-top: 1rem;
  }
}

@media (max-width: 430px) {
  .mode-switch {
    display: grid;
  }

  .mode-switch button {
    width: 100%;
  }

  .mode-flow {
    grid-template-columns: 1fr;
  }

  .flow-step {
    min-height: 100px;
  }

  .flow-step strong {
    margin-top: 0.9rem;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: white;
  }

  .site-header,
  .site-footer,
  .mode-switch,
  .live-status {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .passport {
    box-shadow: none;
  }

  .mode-panel {
    display: block !important;
  }
}
