:root {
  --ink: #17151e;
  --paper: #f5f1ff;
  --white: #fffefe;
  --acid: #dfff4f;
  --coral: #ff6257;
  --violet: #7457ff;
  --cyan: #4bd8ff;
  --muted: #696475;
  --line: rgba(23, 21, 30, 0.2);
  --shadow: 0 18px 50px rgba(50, 34, 105, 0.15);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(116, 87, 255, 0.09) 0 1px, transparent 1.5px) 0 0 / 18px 18px,
    linear-gradient(135deg, #fbf9ff 0%, var(--paper) 64%, #edebff 100%);
}

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

button {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  min-height: 44px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-140%);
}

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

.browser-bar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(150px, 250px) minmax(250px, 1fr) auto;
  align-items: end;
  gap: 10px;
  min-height: 66px;
  padding: 12px 18px 10px;
  border-bottom: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 0 5px 0 rgba(23, 21, 30, 0.06);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 8px 0 2px;
}

.window-dots i {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
}

.window-dots i:nth-child(2) {
  background: var(--acid);
}

.window-dots i:nth-child(3) {
  background: var(--cyan);
}

.tab-shape,
.address-shape,
.zero-badge {
  min-height: 38px;
  border: 1.5px solid var(--ink);
}

.tab-shape {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border-radius: 12px 12px 4px 4px;
  font-size: 0.78rem;
  font-weight: 760;
  background: var(--paper);
}

.tab-icon {
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 44% 44%;
  background: var(--violet);
  box-shadow: 0 7px 0 -2px var(--violet);
}

.tab-close {
  font-size: 1.1rem;
}

.address-shape {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  overflow: hidden;
  border-radius: 20px;
  color: #4e4959;
  background: #ece8f6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.73rem;
  white-space: nowrap;
}

.page-mark {
  color: var(--violet);
  font-size: 1rem;
}

.zero-badge {
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--acid);
}

.experience {
  width: 100%;
}

.reveal-act {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(560px, 1.55fr);
  gap: clamp(22px, 3vw, 54px);
  width: min(100%, 1680px);
  min-height: calc(100svh - 66px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 82px) clamp(20px, 4vw, 70px) clamp(40px, 6vw, 90px);
}

.intro-column {
  position: relative;
  z-index: 3;
  align-self: center;
  padding: 12px 0 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.eyebrow span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 28px;
  font-size: clamp(4rem, 7.7vw, 8.5rem);
  font-weight: 950;
  line-height: 0.73;
  letter-spacing: -0.085em;
}

h1 span {
  display: block;
}

h1 span:last-child {
  margin-left: -0.03em;
  color: var(--violet);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--acid);
}

.lede {
  max-width: 42ch;
  margin-bottom: 13px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.5;
}

.turn {
  margin: 0 0 28px;
  font-family: Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-style: italic;
}

.reveal-controls {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.primary-button,
.secondary-button {
  min-height: 54px;
  border: 2px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  font-weight: 850;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  background: var(--coral);
  color: var(--ink);
}

.primary-button b,
.secondary-button b {
  font-size: 1.25rem;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.primary-button:active,
.secondary-button:active {
  transform: translate(5px, 5px);
  box-shadow: none;
}

.count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 92px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 850;
}

.count-current {
  color: var(--violet);
}

.keyboard-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

kbd {
  display: inline-grid;
  min-width: 26px;
  min-height: 24px;
  place-items: center;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font: 700 0.7rem/1 ui-monospace, monospace;
  box-shadow: 0 2px 0 currentColor;
}

.fact-stage {
  position: relative;
  align-self: center;
  width: 100%;
  min-height: clamp(570px, 68vh, 760px);
  overflow: hidden;
  border: 2px solid var(--ink);
  background:
    linear-gradient(145deg, rgba(116, 87, 255, 0.12), transparent 42%),
    var(--white);
  box-shadow: 12px 12px 0 var(--ink), var(--shadow);
  isolation: isolate;
}

.fact-stage::before,
.fact-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  opacity: 0.18;
}

.fact-stage::before {
  width: 42%;
  aspect-ratio: 1;
  top: -20%;
  right: -10%;
  background: var(--acid);
}

.fact-stage::after {
  width: 35%;
  aspect-ratio: 1;
  bottom: -18%;
  left: -9%;
  background: var(--cyan);
}

.stage-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom right, #000, transparent 78%);
}

.edge-note {
  position: absolute;
  z-index: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(23, 21, 30, 0.48);
}

.edge-note-top {
  top: 13px;
  left: 16px;
}

.edge-note-side {
  top: 50%;
  right: -66px;
  transform: rotate(90deg);
}

.presence {
  display: none;
}

.presence-head {
  position: absolute;
  top: 0;
  left: 50%;
  width: 42%;
  aspect-ratio: 1;
  border: 2px dashed var(--ink);
  border-radius: 48% 52% 47% 53%;
  transform: translateX(-50%);
}

.presence-shoulders {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 62%;
  border: 2px dashed var(--ink);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 36% 36% 0 0;
}

.presence-pulse {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 10px rgba(116, 87, 255, 0.1);
  transform: translate(-50%, -50%);
}

.facts {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.fact-card {
  position: absolute;
  display: grid;
  align-content: start;
  width: clamp(138px, 22%, 205px);
  min-height: 90px;
  padding: 11px 12px 12px;
  border: 2px solid var(--ink);
  opacity: 0;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(var(--enter-x, 0), var(--enter-y, -45px)) rotate(var(--rotation, 0deg)) scale(0.86);
  transition:
    top 900ms cubic-bezier(0.18, 0.8, 0.2, 1),
    left 900ms cubic-bezier(0.18, 0.8, 0.2, 1),
    right 900ms cubic-bezier(0.18, 0.8, 0.2, 1),
    bottom 900ms cubic-bezier(0.18, 0.8, 0.2, 1),
    transform 700ms cubic-bezier(0.18, 0.8, 0.2, 1),
    opacity 300ms ease,
    background 400ms ease;
}

.fact-card.is-visible {
  opacity: 1;
  transform: translate(0, 0) rotate(var(--rotation, 0deg)) scale(1);
}

.fact-card:nth-child(3n + 1) {
  background: #f1ffb9;
}

.fact-card:nth-child(3n + 2) {
  background: #ede8ff;
}

.fact-card:nth-child(3n) {
  background: #dff8ff;
}

.fact-card:nth-child(1) { top: 8%; left: 5%; --rotation: -3deg; --enter-x: -80px; }
.fact-card:nth-child(2) { top: 15%; right: 5%; --rotation: 2deg; --enter-x: 80px; }
.fact-card:nth-child(3) { top: 32%; left: 15%; --rotation: 1deg; --enter-x: -90px; }
.fact-card:nth-child(4) { top: 43%; right: 3%; --rotation: -2deg; --enter-x: 100px; }
.fact-card:nth-child(5) { top: 60%; left: 7%; --rotation: 2deg; --enter-x: -100px; }
.fact-card:nth-child(6) { top: 69%; right: 10%; --rotation: -1deg; --enter-y: 90px; }
.fact-card:nth-child(7) { top: 4%; right: 29%; --rotation: -1deg; --enter-y: -70px; }
.fact-card:nth-child(8) { top: 36%; left: 50%; --rotation: 3deg; --enter-y: -50px; }
.fact-card:nth-child(9) { top: 77%; left: 39%; --rotation: -2deg; --enter-y: 80px; }

.fact-index,
.fact-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.fact-index {
  position: absolute;
  top: -10px;
  right: 9px;
  display: grid;
  width: 25px;
  height: 20px;
  place-items: center;
  border: 1.5px solid var(--ink);
  background: var(--coral);
  letter-spacing: 0;
}

.fact-label {
  margin: 0 0 7px;
  color: var(--muted);
}

.fact-value {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(0.9rem, 1.35vw, 1.1rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.fact-detail {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.2;
}

.fact-stage.is-assembled .fact-card {
  width: clamp(126px, 20%, 185px);
  min-height: 78px;
  background: var(--acid);
  transform: rotate(var(--assembled-rotation, 0deg)) scale(0.92);
}

.fact-stage.is-assembled .fact-detail {
  display: none;
}

.fact-stage.is-assembled .fact-card:nth-child(1) { top: 7%; left: 17%; --assembled-rotation: -5deg; }
.fact-stage.is-assembled .fact-card:nth-child(2) { top: 6%; right: 17%; --assembled-rotation: 4deg; }
.fact-stage.is-assembled .fact-card:nth-child(3) { top: 22%; left: 6%; --assembled-rotation: -2deg; }
.fact-stage.is-assembled .fact-card:nth-child(4) { top: 22%; right: 5%; --assembled-rotation: 2deg; }
.fact-stage.is-assembled .fact-card:nth-child(5) { top: 47%; left: 3%; --assembled-rotation: -3deg; }
.fact-stage.is-assembled .fact-card:nth-child(6) { top: 47%; right: 2%; --assembled-rotation: 3deg; }
.fact-stage.is-assembled .fact-card:nth-child(7) { top: 69%; left: 14%; --assembled-rotation: 3deg; }
.fact-stage.is-assembled .fact-card:nth-child(8) { top: 70%; right: 14%; --assembled-rotation: -3deg; }
.fact-stage.is-assembled .fact-card:nth-child(9) { top: 81%; left: 39%; --assembled-rotation: 1deg; }

.signature {
  position: absolute;
  z-index: 5;
  top: 47%;
  left: 50%;
  width: min(48%, 350px);
  padding: 18px 14px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.signature.is-visible {
  display: block;
  animation: signature-in 700ms cubic-bezier(0.18, 0.8, 0.2, 1) both;
}

.signature p {
  margin-bottom: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.55rem, 0.9vw, 0.72rem);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.signature strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.signature > span {
  display: block;
  max-width: 30ch;
  margin: 12px auto 18px;
  font-family: Georgia, serif;
  font-size: clamp(0.74rem, 1.1vw, 0.9rem);
  font-style: italic;
  line-height: 1.25;
}

.secondary-button {
  padding: 0 16px;
  color: var(--white);
  background: var(--violet);
}

.stage-status {
  position: absolute;
  right: 16px;
  bottom: 10px;
  z-index: 6;
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
}

@keyframes signature-in {
  from { opacity: 0; transform: translate(-50%, -45%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.boundary-act {
  display: grid;
  grid-template-columns: minmax(250px, 0.58fr) minmax(620px, 1.6fr);
  gap: clamp(28px, 4vw, 70px);
  width: min(100%, 1680px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 120px) clamp(20px, 4vw, 70px) clamp(50px, 7vw, 100px);
  border-top: 2px solid var(--ink);
  background: var(--acid);
}

.boundary-copy {
  align-self: center;
}

.boundary-copy h2 {
  margin-bottom: 25px;
  font-size: clamp(3.6rem, 7vw, 7rem);
  font-weight: 950;
  line-height: 0.78;
  letter-spacing: -0.085em;
}

.boundary-copy > p:not(.eyebrow) {
  max-width: 32ch;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.45;
}

.boundary-legend {
  display: grid;
  gap: 8px;
  margin-top: 35px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boundary-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.boundary-legend i {
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.legend-inside { background: var(--violet); }
.legend-knock { background: var(--coral); }
.legend-outside { background: var(--white); }

.boundary-workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.82fr);
  min-height: min(74vh, 720px);
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 12px 12px 0 var(--ink);
}

.boundary-map {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-right: 2px solid var(--ink);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    #eeeaff;
  background-size: 36px 36px;
}

.outside-field,
.knock-field,
.inside-field {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid var(--ink);
  border-radius: 49% 51% 46% 54% / 52% 45% 55% 48%;
  transform: translate(-50%, -50%);
}

.outside-field {
  width: 86%;
  aspect-ratio: 0.95;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.58);
  animation: breathe-border 8s ease-in-out infinite alternate;
}

.knock-field {
  width: 64%;
  aspect-ratio: 0.83;
  background: rgba(255, 98, 87, 0.22);
  transform: translate(-50%, -50%) rotate(-4deg);
}

.inside-field {
  width: 39%;
  aspect-ratio: 0.72;
  background: var(--violet);
  transform: translate(-50%, -50%) rotate(4deg);
  box-shadow: 8px 8px 0 var(--ink);
}

.outside-field span,
.knock-field span,
.inside-field span {
  position: absolute;
  top: 10px;
  left: 50%;
  font: 850 0.55rem/1 ui-monospace, monospace;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.knock-field span {
  top: 13%;
}

.inside-field span {
  top: 50%;
  color: var(--white);
  transform: translate(-50%, -50%) rotate(-4deg);
}

@keyframes breathe-border {
  to { border-radius: 53% 47% 51% 49% / 47% 54% 46% 53%; }
}

.decision-nodes {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.decision-node {
  position: absolute;
  display: grid;
  width: clamp(64px, 14%, 88px);
  min-height: 46px;
  place-items: center;
  padding: 6px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font: 800 0.56rem/1.05 ui-monospace, monospace;
  text-align: center;
  transform: translate(-50%, -50%) rotate(var(--node-rotation, 0deg));
  animation: node-in 500ms cubic-bezier(0.18, 0.8, 0.2, 1) both;
}

.decision-node[data-zone="inside"] { background: var(--cyan); }
.decision-node[data-zone="knock"] { background: var(--coral); }
.decision-node[data-zone="outside"] { background: var(--white); }

@keyframes node-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(1.8) rotate(15deg); }
}

.decision-panel {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vw, 42px);
  background: var(--white);
}

.decision-progress {
  align-self: flex-end;
  margin-bottom: auto;
  font: 850 0.72rem/1 ui-monospace, monospace;
}

.decision-current {
  color: var(--violet);
}

.decision-card {
  margin: 40px 0 30px;
}

.decision-kicker {
  margin-bottom: 9px;
  color: var(--muted);
  font: 850 0.62rem/1 ui-monospace, monospace;
  letter-spacing: 0.14em;
}

.decision-card h3 {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: -0.07em;
}

.decision-value {
  display: block;
  overflow-wrap: anywhere;
  color: var(--violet);
  font: 800 clamp(0.9rem, 1.6vw, 1.3rem)/1.15 ui-monospace, monospace;
}

.decision-question {
  margin: 28px 0 0;
  font-family: Georgia, serif;
  font-style: italic;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}

.choice {
  min-width: 0;
  min-height: 94px;
  padding: 10px 8px;
  border: 2px solid var(--ink);
  cursor: pointer;
  background: var(--paper);
  text-align: left;
  transition: transform 150ms ease, background 150ms ease;
}

.choice:hover {
  transform: translateY(-4px);
}

.choice kbd {
  float: right;
  margin-left: 4px;
}

.choice span,
.choice small {
  display: block;
}

.choice span {
  margin-top: 9px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.choice small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.1;
}

.choice-inside:hover,
.choice-inside:focus-visible { background: var(--cyan); }
.choice-knock:hover,
.choice-knock:focus-visible { background: var(--coral); }
.choice-outside:hover,
.choice-outside:focus-visible { background: var(--acid); }

.finale {
  position: absolute;
  z-index: 8;
  inset: 0 0 0 48%;
  padding: clamp(28px, 4vw, 64px);
  border-left: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.finale.is-visible {
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: finale-in 600ms cubic-bezier(0.18, 0.8, 0.2, 1) both;
}

@keyframes finale-in {
  from { opacity: 0; transform: translateX(24px); }
}

.finale-kicker {
  margin-bottom: 20px;
  color: var(--acid);
  font: 850 0.65rem/1 ui-monospace, monospace;
  letter-spacing: 0.16em;
}

.finale h3 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 4.5vw, 5.5rem);
  font-weight: 950;
  line-height: 0.85;
  letter-spacing: -0.075em;
}

.finale-summary {
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.5;
}

.local-note {
  margin: 25px 0;
  color: #c9c4d2;
  font: 700 0.7rem/1.4 ui-monospace, monospace;
}

.local-note span {
  color: var(--acid);
}

.replay-button {
  align-self: flex-start;
  margin-top: 10px;
  color: var(--ink);
  background: var(--acid);
  box-shadow: 5px 5px 0 var(--white);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 90px;
  padding: 24px clamp(20px, 4vw, 70px);
  color: var(--white);
  background: var(--ink);
  font: 700 0.72rem/1.4 ui-monospace, monospace;
}

footer p {
  margin: 0;
}

footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--acid);
}

@media (max-width: 1050px) {
  .reveal-act,
  .boundary-act {
    grid-template-columns: 1fr;
  }

  .reveal-act {
    max-width: 850px;
  }

  .intro-column {
    padding-bottom: 0;
  }

  h1 {
    font-size: clamp(4.5rem, 15vw, 8.5rem);
  }

  .boundary-act {
    gap: 38px;
  }

  .boundary-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: end;
  }

  .boundary-copy .eyebrow,
  .boundary-copy h2 {
    grid-column: 1;
  }

  .boundary-copy > p:not(.eyebrow),
  .boundary-legend {
    grid-column: 2;
  }

  .boundary-copy > p:not(.eyebrow) {
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
  }

  .boundary-legend {
    margin: 0;
  }
}

@media (max-width: 720px) {
  .browser-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 9px 10px 8px;
  }

  .window-dots {
    display: none;
  }

  .tab-shape {
    display: none;
  }

  .address-shape {
    min-width: 0;
    min-height: 40px;
    font-size: 0.64rem;
  }

  .zero-badge {
    min-height: 40px;
    padding: 0 9px;
    font-size: 0.58rem;
  }

  .reveal-act {
    min-height: auto;
    padding: 34px 12px 48px;
  }

  .intro-column {
    padding-inline: 6px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  h1 {
    margin-bottom: 24px;
    font-size: clamp(4.15rem, 21vw, 6.3rem);
  }

  h1 span:last-child {
    -webkit-text-stroke-width: 1.5px;
    text-shadow: 4px 4px 0 var(--acid);
  }

  .lede {
    font-size: 1rem;
  }

  .keyboard-note {
    display: none;
  }

  .fact-stage {
    min-height: 640px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .edge-note-side {
    display: none;
  }

  .fact-card,
  .fact-stage.is-assembled .fact-card {
    width: 43%;
    min-height: 76px;
    padding: 9px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .fact-card:nth-child(1) { top: 5%; left: 2%; }
  .fact-card:nth-child(2) { top: 9%; right: 2%; }
  .fact-card:nth-child(3) { top: 26%; left: 8%; }
  .fact-card:nth-child(4) { top: 31%; right: 2%; }
  .fact-card:nth-child(5) { top: 48%; left: 2%; }
  .fact-card:nth-child(6) { top: 53%; right: 5%; }
  .fact-card:nth-child(7) { top: 69%; left: 4%; right: auto; }
  .fact-card:nth-child(8) { top: 72%; right: 3%; left: auto; }
  .fact-card:nth-child(9) { top: 84%; left: 29%; }

  .fact-stage.is-assembled .fact-card {
    width: 36%;
    min-height: 66px;
  }

  .fact-stage.is-assembled .fact-card:nth-child(1) { top: 56%; left: 12%; }
  .fact-stage.is-assembled .fact-card:nth-child(2) { top: 2%; right: 17%; }
  .fact-stage.is-assembled .fact-card:nth-child(3) { top: 28%; right: 1%; left: auto; }
  .fact-stage.is-assembled .fact-card:nth-child(4) { top: 2%; left: 17%; right: auto; }
  .fact-stage.is-assembled .fact-card:nth-child(5) { top: 68%; left: 32%; }
  .fact-stage.is-assembled .fact-card:nth-child(6) { top: 28%; left: 1%; right: auto; }
  .fact-stage.is-assembled .fact-card:nth-child(7) { top: 15%; right: 1%; left: auto; }
  .fact-stage.is-assembled .fact-card:nth-child(8) { top: 15%; left: 1%; right: auto; }
  .fact-stage.is-assembled .fact-card:nth-child(9) { top: 56%; right: 12%; left: auto; }

  .fact-label {
    margin-bottom: 5px;
    font-size: 0.48rem;
  }

  .fact-value {
    font-size: 0.78rem;
  }

  .fact-detail {
    font-size: 0.56rem;
  }

  .presence {
    width: 54%;
  }

  .signature {
    top: 43%;
    width: 54%;
    padding: 13px 8px 15px;
    border: 2px solid var(--ink);
    background: rgba(255, 254, 254, 0.94);
    box-shadow: 4px 4px 0 var(--ink);
  }

  .signature strong {
    font-size: clamp(1.25rem, 6.5vw, 1.8rem);
  }

  .signature > span {
    font-size: 0.67rem;
  }

  .secondary-button {
    min-height: 48px;
    font-size: 0.78rem;
  }

  .stage-status {
    right: 9px;
    font-size: 0.5rem;
  }

  .boundary-act {
    padding: 56px 12px 70px;
  }

  .boundary-copy {
    display: block;
    padding-inline: 6px;
  }

  .boundary-copy h2 {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .boundary-copy > p:not(.eyebrow) {
    margin-bottom: 24px;
  }

  .boundary-workspace {
    display: block;
    min-height: 965px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .boundary-map {
    min-height: 480px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .outside-field {
    width: 84%;
    max-height: 430px;
  }

  .decision-panel {
    min-height: 480px;
    padding: 22px 16px;
  }

  .decision-progress {
    margin-bottom: 0;
  }

  .decision-card {
    margin: 38px 0 24px;
  }

  .decision-card h3 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .choice-row {
    gap: 5px;
  }

  .choice {
    min-height: 102px;
    padding: 8px 6px;
  }

  .choice span {
    clear: both;
    padding-top: 8px;
    font-size: 0.7rem;
  }

  .choice small {
    font-size: 0.5rem;
  }

  .finale {
    inset: 480px 0 0;
    border-top: 2px solid var(--ink);
    border-left: 0;
    padding: 28px 20px;
  }

  .finale h3 {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .experience[data-phase="complete"] .boundary-workspace {
    min-height: 800px;
  }

  .experience[data-phase="complete"] .boundary-map {
    height: 360px;
    min-height: 360px;
  }

  .experience[data-phase="complete"] .finale {
    inset: 360px 0 0;
    padding: 24px 20px;
  }

  .experience[data-phase="complete"] .finale-kicker {
    margin-bottom: 14px;
  }

  .experience[data-phase="complete"] .finale h3 {
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 11vw, 3.3rem);
  }

  .experience[data-phase="complete"] .finale-summary {
    margin-bottom: 14px;
  }

  .experience[data-phase="complete"] .local-note {
    margin: 14px 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 18px;
  }
}

@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;
  }
}
