@font-face { font-family: "Brockmann"; src: url("assets/fonts/brockmann-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Brockmann"; src: url("assets/fonts/brockmann-medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Brockmann"; src: url("assets/fonts/brockmann-semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Brockmann"; src: url("assets/fonts/brockmann-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* Brand colors come from the booth handout and the 3D video palette. */
:root {
  --ivory: #F4EEE2;
  --ivory-light: #FBF8F1;
  --ivory-deep: #E9E0CE;
  --stone: #CFC3AC;
  --forest: #1E4636;
  --forest-mid: #2D5E4B;
  --cyan: #0BA5C7;
  --cyan-deep: #07809B;
  --cyan-light: #A9DDE9;
  --cyan-wash: #DCEFF2;
  --amber: #E2A23B;
  --amber-deep: #C4832A;
  --ink: #0C0C0C;
  --ink-soft: #4A5A52;
  --ink-muted: #6E7A73; /* Darker than the handout, for text contrast on screen. */
  --stone-deep: #B5A88F;
  --on-forest: #CFE0D6;

  --gutter: clamp(16px, 4vw, 48px);
  --radius-card: 12px;
  --shadow-card: 0 1px 2px rgba(30, 70, 54, 0.12), 0 8px 24px -12px rgba(30, 70, 54, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Brockmann", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; }
/* Brockmann has no italic, so the browser slants it; add room after. */
:is(h1, h2, h3, p) i { padding-right: 0.08em; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* The page's main two-column rhythm: a wide lead column and a narrow side column. */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--forest); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--forest); color: #fff;
  font-weight: 600; font-size: 16px; text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.btn:hover { background: var(--forest-mid); }
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn-ghost:hover { background: rgba(30, 70, 54, 0.07); }
.btn-light { background: var(--ivory-light); color: var(--forest); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { background: transparent; color: var(--ivory-light); box-shadow: inset 0 0 0 1.5px rgba(251, 248, 241, 0.6); }
.btn-ghost-light:hover { background: rgba(251, 248, 241, 0.08); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 24px;
}
.brand img { width: 112px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.site-header nav a:not(.btn):hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-copy {
  position: relative; z-index: 3;
  padding-top: clamp(40px, 7vw, 88px);
}
.kicker { color: var(--cyan-deep); font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.hero h1 em, .section-head h2 em { font-style: normal; color: var(--cyan-deep); white-space: nowrap; }
.hero-side {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px;
  margin-top: clamp(24px, 3vw, 40px);
}
.hero-side .lede { max-width: 32em; text-wrap: pretty; }
.hero-side .actions { margin-top: 0; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 34em; }
.lede strong { color: var(--ink); font-weight: 600; }

/* The render has the same ivory sky as the page. The mask fades both edges,
   so the town never shows a hard edge while the camera moves. */
.hero-media {
  position: relative; z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: clamp(-150px, -9vw, -24px);
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 84%, transparent);
}
.hero-media video, .hero-still {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-still { opacity: 0; transition: opacity 600ms ease; }
.hero-media.is-settled .hero-still { opacity: 1; }

.pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pin {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(calc(-1 * var(--anchor, 50%)), calc(-100% - 14px));
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 10px;
  background: var(--ivory-light); border-radius: 999px;
  box-shadow: var(--shadow-card);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  opacity: 0; translate: 0 6px;
  transition: opacity 420ms var(--ease-out), translate 420ms var(--ease-out);
  transition-delay: calc(var(--i) * 90ms);
}
.pin::after {
  content: ""; position: absolute; left: var(--anchor, 50%); top: 100%;
  width: 1.5px; height: 12px; background: var(--ivory-light); translate: -50% 0;
}
.is-settled .pin { opacity: 1; translate: 0 0; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-forest { background: var(--forest); }
.dot-amber { background: var(--amber); }
.dot-cyan { background: var(--cyan); }

/* ---------- Section heads ---------- */
.section-head { align-items: end; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700;
  text-wrap: balance;
}
.section-head p { color: var(--ink-soft); font-size: 18px; max-width: 32em; }

/* ---------- Who it's for ---------- */
.who { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.roles-head, .role {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 4.4fr) minmax(0, 4.4fr);
  column-gap: 40px;
}
.roles-head {
  padding-bottom: 12px;
  font-size: 14px; font-weight: 600; color: var(--ink-muted);
}
.role {
  align-items: baseline;
  padding-block: 24px;
  border-top: 1.5px solid var(--ivory-deep);
}
.role:last-child { border-bottom: 1.5px solid var(--ivory-deep); }
.role h3 { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
.role p { color: var(--ink-soft); max-width: 30em; }
/* The sample question looks like a poll choice, the thing a resident would see. */
.role .ask {
  justify-self: start;
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 10px 16px 10px 14px;
  background: var(--ivory-light); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  font-weight: 600; color: var(--ink);
}
.role .ask::before {
  content: ""; flex: none; translate: 0 1px;
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--cyan);
}

.choices { padding-block: clamp(56px, 8vw, 112px) clamp(72px, 9vw, 128px); }

/* The 3D street from the handout. Each house has a badge for the channels it picked. */
.street-view { position: relative; padding-top: 8px; }
.street-view img {
  width: 100%; height: auto;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.street-badge {
  position: absolute; top: 4%; left: var(--x); translate: -50% 0;
  display: flex; align-items: center; gap: 6px;
  height: clamp(28px, 3vw, 40px); padding: 0 clamp(8px, 0.9vw, 12px);
  border-radius: 999px; background: var(--ivory-light); box-shadow: var(--shadow-card);
  color: var(--cyan);
}
.street-badge.is-off { color: var(--stone-deep); }
.street-badge svg { width: clamp(14px, 1.5vw, 20px); aspect-ratio: 1; }
.street-badge b { font-size: clamp(15px, 1.6vw, 21px); line-height: 1; translate: 0 -1px; }

/* Four houses with the same weight, so they read as neighbors, not a ranking. */
.street {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px; margin-bottom: 32px;
}
.house {
  display: grid; align-content: start; justify-items: start; gap: 2px;
  padding: 14px 16px 16px;
  background: none; border: 0; text-align: left; cursor: pointer; color: inherit;
  border-radius: var(--radius-card);
  box-shadow: inset 0 3px 0 transparent;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.house:hover { background: rgba(251, 248, 241, 0.6); }
.house[aria-pressed="true"] { background: var(--ivory-light); box-shadow: inset 0 3px 0 var(--cyan), var(--shadow-card); }
/* Small caps label, shared by the house addresses and the phase pills. */
.house-name, .phase-label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.house-name { color: var(--amber-deep); }
.house-set { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.house-note { margin-top: 2px; font-size: 15px; line-height: 1.4; color: var(--ink-soft); }

.panel {
  column-gap: 0;
  background: var(--ivory-light);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.settings { padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 28px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; transition: opacity 200ms ease; }
fieldset:disabled { opacity: 0.38; }
legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 18px; }
.num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--cyan-wash); color: var(--cyan-deep); font-size: 14px; font-weight: 700;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 16px;
  border-radius: 999px;
  background: var(--ivory); border: 1.5px solid var(--ivory-deep);
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.chip:hover span { border-color: var(--stone); }
.chip input:checked + span { background: var(--cyan); border-color: var(--cyan); color: #fff; font-weight: 600; }
.chip input:checked + span::before { content: "✓"; font-size: 13px; }
.chip input:focus-visible + span { outline: 3px solid var(--forest); outline-offset: 2px; }
fieldset:disabled .chip { cursor: not-allowed; }

.result {
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--forest); color: var(--ivory-light);
  display: flex; flex-direction: column;
}
.result-label { font-size: 14px; font-weight: 600; color: var(--on-forest); }
.result-text {
  margin-top: 12px;
  font-size: clamp(21px, 2vw, 26px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em;
  min-height: 3.75em;
  text-wrap: pretty;
}
.year {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px; margin-top: 28px;
}
.year li { display: grid; justify-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--on-forest); }
.slot {
  position: relative; width: 100%; height: 56px; border-radius: 6px;
  background: rgba(207, 224, 214, 0.08);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; padding-bottom: 8px;
}
.year.is-empty .slot { background: none; border: 1.5px dashed rgba(207, 224, 214, 0.25); }
.mk { display: block; width: 12px; height: 12px; flex: none; }
.mk-news { border-radius: 50%; background: var(--cyan); }
.mk-poll { background: var(--amber); rotate: 45deg; scale: 0.85; border-radius: 2px; }
.slot .mk { animation: pop 260ms var(--ease-out) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } }
.year-key { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--on-forest); }
.year-key span { display: inline-flex; align-items: center; gap: 7px; }
.result-count { margin-top: 18px; font-size: 15px; font-weight: 500; }

/* ---------- How it works: sticky stage + scrolling steps ---------- */
.how { padding-block: clamp(56px, 8vw, 112px); background: var(--ivory-light); border-radius: 32px 32px 0 0; }
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); }
.stage {
  grid-column: 2; grid-row: 1;
  position: sticky; top: 0; align-self: start;
  height: 100vh; display: grid; align-items: center;
}
.stage-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px; overflow: hidden;
  background: var(--ivory);
  box-shadow: var(--shadow-card);
}
.shot { position: absolute; inset: 0; opacity: 0; transition: opacity 520ms ease; }
.shot.is-active { opacity: 1; }
.shot > img { width: 100%; height: 100%; object-fit: cover; }
.steps { grid-column: 1; grid-row: 1; padding-block: 8vh 16vh; }
.phase-mark {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 20px; margin-bottom: 8px;
  border-top: 1.5px solid var(--ivory-deep);
  font-size: clamp(19px, 1.7vw, 22px); font-weight: 700; color: var(--forest);
}
.phase-label { padding: 5px 14px; border-radius: 999px; background: var(--forest); color: #fff; }
.phase-mark:not(:first-child) { margin-top: 12vh; }
.step {
  position: relative;
  min-height: 52vh;
  padding: 24px 0 0 48px;
  color: var(--ink-muted);
  transition: color 300ms ease;
}
.step h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; margin-bottom: 10px; }
.step .badge { margin-right: 6px; }
.step p { font-size: 17px; max-width: 30em; }
.step.is-active { color: var(--ink); }
.step.is-active p { color: var(--ink-soft); }
.step-num {
  position: absolute; left: 0; top: 24px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ivory-deep); color: var(--ink-muted);
  font-size: 15px; font-weight: 700;
  transition: background-color 300ms ease, color 300ms ease;
}
.step.is-active .step-num { background: var(--cyan); color: #fff; }

/* Cards laid over the 3D shots */
.card {
  position: absolute;
  background: rgba(251, 248, 241, 0.97);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  font-size: 14.5px; line-height: 1.4;
  transform: translateY(8px); opacity: 0;
  transition: transform 520ms var(--ease-out) 160ms, opacity 400ms ease 160ms;
}
.shot.is-active .card { transform: none; opacity: 1; }
.card-right { top: 5%; right: 3.5%; width: min(56%, 370px); }
/* Card children size in em, so one font-size on .card scales the whole card. */
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 1.1em; margin-bottom: 10px; }
.card-sub { font-size: 0.9em; font-weight: 700; color: var(--cyan-deep); margin-bottom: 4px; }
.card-meta { font-weight: 500; font-size: 0.85em; color: var(--ink-muted); }
.card-foot { margin-top: 10px; font-size: 0.93em; color: var(--ink-muted); }
.card-rows { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; }
.card-rows dt { color: var(--ink-muted); font-size: 0.97em; }
.card-rows dd { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--ivory-deep); background: var(--ivory-light);
  font-size: 0.93em; font-weight: 500; color: var(--ink-soft);
}
.tag.on { background: var(--cyan); border-color: var(--cyan); color: #fff; font-weight: 600; }
.tag.on::before { content: "✓"; font-size: 10px; }
.card-legend { left: 3.5%; bottom: 5%; display: flex; gap: 18px; color: var(--ink-soft); }
.card-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ln { display: inline-block; width: 22px; height: 0; border-top: 2.5px solid var(--cyan); }
.ln-off { border-top: 2.5px dashed var(--stone); }

.card-poll { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; width: min(64%, 440px); }
.funnel { display: grid; gap: 6px; align-content: start; }
.fn { display: block; padding: 6px 10px; border-radius: 6px; font-size: 0.93em; font-weight: 600; color: var(--cyan-deep); background: var(--cyan-wash); }
.fn-2 { width: 88%; }
.fn-3 { width: 76%; background: var(--cyan); color: #fff; }
.poll-q { font-weight: 700; font-size: 1.07em; line-height: 1.25; margin-bottom: 8px; }
.poll li { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--ink-soft); }
.poll li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--cyan); flex: none; }

.card-quote { left: 3.5%; bottom: 6%; max-width: 44%; }
.quote { font-size: clamp(15px, 1.5vw, 19px); font-weight: 700; line-height: 1.2; }
.badge { padding: 2px 9px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.bars { display: grid; gap: 7px; }
.bars li { display: grid; grid-template-columns: 7.2em 1fr 2.6em; align-items: center; gap: 8px; color: var(--ink-soft); }
.bars li::after {
  content: ""; grid-column: 2; grid-row: 1; height: 10px; border-radius: 3px;
  background: var(--cyan); width: calc(var(--v) / var(--max) * 100%);
  transform-origin: left; transform: scaleX(0);
  transition: transform 700ms var(--ease-out) 380ms;
}
.bars b { grid-column: 3; text-align: right; color: var(--ink); }
.shot.is-active .bars li::after { transform: scaleX(1); }

.card-update { width: min(60%, 400px); }
.update-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.update-cols > div { border-left: 3px solid var(--cyan); padding-left: 10px; }

/* ---------- Contact ---------- */
.contact { background: var(--forest); color: var(--ivory-light); padding-block: clamp(56px, 8vw, 104px); }
.contact-grid { align-items: end; }
.contact h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; font-weight: 700; }
.contact p { margin-top: 16px; font-size: 18px; color: var(--on-forest); max-width: 30em; }
.contact .actions { justify-content: flex-end; }

.path {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 32px;
  border-top: 1.5px solid rgba(207, 224, 214, 0.22);
}
.path li { position: relative; }
.path-num {
  display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 16px;
  border-radius: 50%; background: var(--cyan); color: #fff;
  font-size: 15px; font-weight: 700;
}
.path h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
.path p { margin-top: 8px; font-size: 16px; }

.contact-foot { margin-top: clamp(40px, 5vw, 64px); align-items: end; }
.included-title { font-size: 15px; font-weight: 600; color: var(--on-forest); margin-bottom: 12px; }
.included { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
.included li { display: flex; gap: 10px; font-size: 16px; }
.included li::before { content: "✓"; color: var(--cyan); font-weight: 700; }

.person { font-style: normal; display: grid; gap: 4px; font-size: 17px; justify-self: end; }
.person strong { font-size: 20px; }
.person a { color: var(--on-forest); text-decoration: none; }
.person a:hover { color: #fff; text-decoration: underline; }

.site-footer {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-block: 32px 40px;
  font-size: 14px; color: var(--ink-muted);
}
.site-footer p:last-child { margin-left: auto; }

/* ---------- Tour dialog ---------- */
.tour {
  width: min(1200px, calc(100vw - 32px));
  padding: 0; border: 0; border-radius: 16px; overflow: hidden;
  background: var(--forest); color: var(--on-forest);
}
.tour::backdrop { background: rgba(12, 28, 22, 0.72); }
.tour[open] { animation: tour-in 280ms var(--ease-out); }
@keyframes tour-in { from { opacity: 0; transform: scale(0.97); } }
.tour video { width: 100%; aspect-ratio: 16 / 9; background: var(--ivory); }
.tour-note { padding: 12px 16px; font-size: 14px; }
.tour-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(251, 248, 241, 0.94); color: var(--ink); font-size: 24px; line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .panel { row-gap: 0; }
  .hero-media { margin-top: 8px; }
  .person { justify-self: start; }
  .contact .actions { justify-content: flex-start; margin-top: 4px; }
  .roles-head { display: none; }
  .role { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }

  /* The stage sticks to the top and the steps scroll under it. */
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage { grid-column: 1; height: auto; z-index: 2; padding-block: 12px; background: var(--ivory-light); }
  .steps { grid-row: 2; padding-block: 24px 0; }
  .step { min-height: 44vh; }
  /* The contact section below gives enough scroll to activate the last step. */
  .step:last-child { min-height: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header nav a:not(.btn) { display: none; }
  .brand img { width: 92px; }
  /* Crop out the empty sky so the town fills the frame on a phone. */
  .hero-media { aspect-ratio: 5 / 4; }
  .hero-media video, .hero-still { inset: auto 0 0 0; height: 150%; object-position: 22% 100%; }
  .pins { display: none; }
  .street { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .street-badge { display: none; }
  .house { padding: 12px; }
  .house-set { font-size: 17px; }
  .stage-frame { aspect-ratio: 4 / 3; }
  .card { padding: 10px 12px; }
  .card-right { width: auto; left: 3%; right: 3%; top: auto; bottom: 3%; }
  .card-poll { grid-template-columns: 1fr; }
  .funnel { display: none; }
  .card-quote { display: none; }
  .card-legend { gap: 12px; }
  .card-rows { gap: 5px 10px; }
  .site-footer p:last-child { margin-left: 0; }
  .path, .included { grid-template-columns: minmax(0, 1fr); }
  .person { gap: 0; }
  .person a { padding-block: 9px; }
  /* Keep small labels readable on a phone. */
  .year li { font-size: 13px; }
  .year-key, .house-name, .phase-label { font-size: 14px; }
  .badge { font-size: 13px; }
}

/* On the narrowest phones the contact-choices card is taller than a 4:3 frame. */
@media (max-width: 340px) {
  .stage-frame { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; transition-delay: 0ms !important; animation-delay: 0ms !important; }
}
