:root {
  --paper: #f5f0e8;
  --paper-strong: #fffaf1;
  --ink: #1a1410;
  --muted: #62594f;
  --rule: #d8d0c1;
  --red: #9f2f24;
  --gold: #c99a31;
  --blue: #17365d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(26, 20, 16, 0.04) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 72px 72px, auto;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
  cursor: pointer;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  display: grid;
  gap: 2px;
  font-family: "DM Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand span {
  font-size: 0.84rem;
}

.brand small,
.eyebrow,
.header-links,
.hero-aside,
.tour-meta,
.tour-link,
.intro-grid a,
#tour-count {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand small,
.header-links,
.hero-aside,
#tour-count {
  color: var(--muted);
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.header-links a,
.intro-grid a,
.tour-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(26, 20, 16, 0.18);
  border-radius: 0;
  padding: 11px 14px;
  background: var(--paper-strong);
  color: var(--ink);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
body.menu-open .menu-toggle {
  background: var(--ink);
  color: var(--paper-strong);
}

.menu-lines {
  display: grid;
  gap: 4px;
  width: 18px;
}

.menu-lines span {
  display: block;
  height: 1px;
  background: currentColor;
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

body.menu-open .site-menu {
  display: block;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(26, 20, 16, 0.32);
}

.menu-panel {
  position: fixed;
  right: 22px;
  top: 22px;
  width: min(430px, calc(100vw - 44px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid var(--rule);
  background: var(--paper-strong);
  box-shadow: 0 28px 70px rgba(26, 20, 16, 0.22);
}

.menu-panel__header {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  padding: 24px;
  background: var(--paper);
}

.menu-panel__header h2 {
  max-width: 10ch;
  font-size: clamp(1.55rem, 5vw, 2.5rem);
  line-height: 1;
}

.menu-close {
  justify-self: start;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 0 0 3px;
  background: transparent;
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-list {
  display: grid;
}

.menu-list a {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid rgba(26, 20, 16, 0.1);
  padding: 11px 18px;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  background: var(--ink);
  color: var(--paper-strong);
}

.menu-list span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.05;
}

.menu-list small {
  color: inherit;
  font-size: 0.68rem;
  line-height: 1.35;
  opacity: 0.72;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 80px;
}

.hero {
  position: relative;
  display: grid;
  gap: 26px;
  overflow: hidden;
  min-height: auto;
  border: 1px solid rgba(255, 250, 241, 0.12);
  padding: clamp(30px, 6vw, 68px);
  background: #1a1410;
  color: var(--paper-strong);
}

.hero::before {
  content: "★";
  position: absolute;
  top: -120px;
  right: -54px;
  color: rgba(232, 194, 95, 0.07);
  font-family: Georgia, serif;
  font-size: clamp(14rem, 36vw, 28rem);
  line-height: 1;
  pointer-events: none;
}

.page-hero {
  display: grid;
  gap: 22px;
  border: 1px solid var(--rule);
  padding: clamp(28px, 6vw, 72px);
  background: var(--paper-strong);
}

.page-hero h1 {
  max-width: 10ch;
}

.page-hero p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.65vw + 0.95rem, 1.22rem);
  line-height: 1.66;
}

.page-hero--routes,
.page-hero--stories,
.page-hero--compass,
.page-hero--profile {
  background:
    linear-gradient(90deg, rgba(26, 20, 16, 0.94), rgba(26, 20, 16, 0.82)),
    url("../assets/home/philly-tours-home-hero-ar-walk.png") center right / cover no-repeat,
    var(--ink);
  color: var(--paper-strong);
}

.page-hero--routes p:not(.eyebrow),
.page-hero--stories p:not(.eyebrow),
.page-hero--compass p:not(.eyebrow),
.page-hero--profile p:not(.eyebrow) {
  color: rgba(255, 250, 241, 0.76);
}

.text-link {
  justify-self: start;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  color: var(--red);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero .text-link {
  color: #e8c25f;
}

.hero > *,
.intro-grid > *,
.tour-grid > *,
.feature-grid > *,
.story-grid > * {
  min-width: 0;
}

.hero-home-link {
  position: relative;
  z-index: 1;
  justify-self: start;
  color: #e8c25f;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-home-link:hover,
.hero-home-link:focus-visible {
  color: var(--paper-strong);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  max-width: 780px;
}

.eyebrow {
  margin: 0;
  color: var(--red);
}

.hero .eyebrow {
  color: #e8c25f;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 7vw, 6.2rem);
  line-height: 0.95;
}

.hero p:not(.eyebrow) {
  max-width: 56ch;
  margin: 0;
  color: #c8bfaf;
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.13rem);
  line-height: 1.62;
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.hero-actions a {
  border: 1px solid rgba(232, 194, 95, 0.72);
  padding: 12px 16px;
  color: var(--paper-strong);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-actions a:first-child {
  background: #e8c25f;
  color: #1a1410;
}

.hero-actions a:hover,
.hero-actions a:focus-visible {
  background: var(--paper-strong);
  border-color: var(--paper-strong);
  color: #1a1410;
}

.hero-stats {
  gap: 22px 38px;
  padding-top: 8px;
}

.hero-stats div {
  display: grid;
  gap: 3px;
}

.hero-stats span {
  color: #e8c25f;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
}

.hero-stats small {
  color: #8a7e72;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro-grid,
.tour-grid,
.story-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.intro-grid article,
.tour-card,
.story-card,
.feature-grid article {
  border: 1px solid var(--rule);
  background: var(--paper-strong);
}

.intro-grid article,
.feature-grid article {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 38px);
}

.editorial-compass {
  display: grid;
  gap: clamp(30px, 6vw, 72px);
  margin-top: 22px;
}

.compass-route-rail-shell {
  overflow-x: auto;
  border-block: 1px solid var(--rule);
  background: rgba(255, 250, 241, 0.74);
  scrollbar-color: rgba(26, 20, 16, 0.46) rgba(26, 20, 16, 0.08);
  scrollbar-width: thin;
}

.compass-route-rail {
  display: flex;
  min-width: max-content;
}

.compass-route-pill {
  flex: 0 0 auto;
  display: grid;
  align-content: start;
  gap: 8px;
  width: clamp(190px, 20vw, 292px);
  min-height: 92px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 4px solid transparent;
  border-radius: 0;
  padding: 17px 20px 15px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.compass-route-pill:hover,
.compass-route-pill:focus-visible,
.compass-route-pill.active {
  background: var(--paper-strong);
  border-bottom-color: var(--gold);
  color: var(--ink);
  outline: 0;
}

.compass-route-pill span {
  color: var(--red);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compass-route-pill strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.02;
}

.compass-workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
  gap: 18px;
}

.compass-card {
  border: 1px solid var(--rule);
  background: var(--paper-strong);
  padding: clamp(22px, 3vw, 34px);
}

.compass-card--dial {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}

.compass-dial-lite {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 360px);
  border: 1px solid var(--rule);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--paper-strong) 0 11%, transparent 12%),
    conic-gradient(from 0deg, rgba(159, 47, 36, 0.18), rgba(23, 54, 93, 0.16), rgba(201, 154, 49, 0.18), rgba(159, 47, 36, 0.18)),
    var(--paper);
}

.compass-dial-lite::before {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(26, 20, 16, 0.12);
  border-radius: 50%;
}

.compass-ray {
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 50%;
  width: 2px;
  transform: translateX(-50%) rotate(var(--bearing, 0deg));
  transform-origin: 50% 100%;
  background: var(--red);
}

.compass-dial-lite > strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1;
}

.compass-cardinal {
  position: absolute;
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.compass-cardinal--n {
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-cardinal--e {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.compass-cardinal--s {
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-cardinal--w {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.compass-readout-lite {
  display: grid;
  gap: 18px;
}

.compass-readout-lite h2,
.compass-route-summary h2 {
  max-width: 13ch;
  font-size: clamp(2.3rem, 4.8vw, 5rem);
  line-height: 0.96;
}

.compass-readout-lite p:not(.eyebrow),
.compass-route-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.compass-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule);
}

.compass-metric-grid div {
  display: grid;
  gap: 5px;
  border-right: 1px solid var(--rule);
  padding: 14px;
}

.compass-metric-grid div:last-child {
  border-right: 0;
}

.compass-metric-grid strong {
  color: var(--blue);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compass-metric-grid span,
.compass-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.compass-actions-lite {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.text-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 0 0 3px;
  background: transparent;
  color: var(--red);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.editorial-field {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-field select {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 13px 12px;
  background: var(--paper);
  color: var(--ink);
  font: 500 0.94rem "DM Sans", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.compass-route-summary {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.compass-stop-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.compass-stop-button {
  display: grid;
  grid-template-columns: 58px minmax(0, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 18px;
  background: var(--paper-strong);
  color: var(--ink);
  text-align: left;
}

.compass-stop-button:hover,
.compass-stop-button:focus-visible,
.compass-stop-button.active {
  background: var(--ink);
  color: var(--paper-strong);
}

.compass-stop-button span {
  color: var(--red);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.compass-stop-button.active span,
.compass-stop-button:hover span,
.compass-stop-button:focus-visible span {
  color: #e8c25f;
}

.compass-stop-button strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1;
}

.compass-stop-button small {
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.72;
}

.section-heading h2 {
  max-width: 12ch;
  font-size: clamp(2.45rem, 4.8vw, 4.9rem);
  line-height: 0.96;
}

.intro-grid h3 {
  max-width: 14ch;
  font-size: clamp(1.85rem, 3vw, 2.9rem);
  line-height: 1;
}

.intro-grid p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.tour-card p,
.story-card p,
.feature-grid p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.intro-grid a,
.tour-link,
.story-link {
  justify-self: start;
  color: var(--red);
}

.tour-section {
  margin-top: clamp(46px, 8vw, 88px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}

.seo-section .section-heading {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.seo-section .section-heading h2 {
  max-width: 16ch;
  font-size: clamp(2.35rem, 4vw, 4.6rem);
}

.seo-section .section-heading p:not(.eyebrow) {
  max-width: 78ch;
  font-size: clamp(1rem, 0.35vw + 0.94rem, 1.12rem);
}

.seo-section .feature-grid article {
  align-content: start;
}

.seo-disclosure {
  display: grid;
  gap: 18px;
}

.seo-disclosure > summary {
  display: grid;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.seo-disclosure > summary::-webkit-details-marker {
  display: none;
}

.seo-disclosure-title {
  display: block;
  margin: 0;
  max-width: 18ch;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 2.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.02;
}

.seo-disclosure-preview {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.seo-disclosure-toggle {
  justify-self: start;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  color: var(--red);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.seo-disclosure-toggle::before {
  content: "Read full paragraph";
}

.seo-disclosure[open] .seo-disclosure-toggle::before {
  content: "Show less";
}

.seo-disclosure > p {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.seo-disclosure--section {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}

.seo-disclosure--section > summary.section-heading {
  border-top: 0;
  padding-top: 0;
}

.seo-disclosure--section .seo-disclosure-title {
  max-width: 16ch;
  font-size: clamp(2.35rem, 4vw, 4.6rem);
  line-height: 0.98;
}

.seo-disclosure--section .seo-disclosure-preview,
.seo-disclosure--section > p {
  max-width: 78ch;
  font-size: clamp(1rem, 0.35vw + 0.94rem, 1.12rem);
}

.seo-section--compact .section-heading h2 {
  max-width: 18ch;
}

.seo-section--compact .seo-disclosure--section .seo-disclosure-title {
  max-width: 18ch;
}

.tour-card {
  display: grid;
  grid-template-rows: 260px auto;
  min-height: 100%;
}

.tour-media {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.tour-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.tour-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 20, 16, 0.02), rgba(26, 20, 16, 0.58));
}

.tour-copy {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.tour-copy h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr);
  min-height: 250px;
}

.story-media {
  min-height: 250px;
  background:
    linear-gradient(135deg, rgba(23, 54, 93, 0.9), rgba(159, 47, 36, 0.74)),
    var(--ink);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.story-copy {
  display: grid;
  gap: 15px;
  align-content: center;
  padding: 22px;
}

.story-copy time {
  color: var(--red);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-copy h3 {
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  line-height: 0.96;
}

.story-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tour-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  color: var(--blue);
}

.tour-meta span {
  border-left: 1px solid var(--rule);
  padding-left: 12px;
}

.tour-meta span:first-child {
  border-left: 0;
  padding-left: 0;
}

.tour-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  min-height: min(720px, calc(100vh - 92px));
  border: 1px solid var(--rule);
  background: var(--paper-strong);
}

.tour-detail-hero .tour-media {
  min-height: 100%;
}

.tour-detail-copy {
  display: grid;
  align-content: end;
  gap: 20px;
  padding: clamp(28px, 5vw, 68px);
}

.tour-detail-copy h1 {
  max-width: 11ch;
  font-size: clamp(3.5rem, 7vw, 7.4rem);
}

.tour-detail-copy > p:not(.eyebrow) {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.6vw + 0.94rem, 1.2rem);
  line-height: 1.66;
}

.tour-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--blue);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tour-detail-meta span {
  border-left: 1px solid var(--rule);
  padding-left: 12px;
}

.tour-detail-meta span:first-child {
  border-left: 0;
  padding-left: 0;
}

.tour-detail-copy .route-metrics-note {
  max-width: 56ch;
  margin: -8px 0 0;
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.guided-purchase {
  display: grid;
  gap: 22px;
  margin-top: clamp(46px, 8vw, 88px);
  border: 1px solid var(--rule);
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper-strong);
}

.guided-purchase__heading {
  grid-template-columns: minmax(0, 0.58fr) minmax(280px, 0.42fr);
}

.guided-purchase__heading h2 {
  max-width: 13ch;
}

.guided-purchase__heading p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.62;
}

.guided-purchase__body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule);
}

.guided-purchase__metric {
  display: grid;
  gap: 8px;
  min-width: 0;
  border-right: 1px solid var(--rule);
  padding: 18px;
  background: var(--paper);
}

.guided-purchase__metric:last-child {
  border-right: 0;
}

.guided-purchase__metric strong {
  overflow-wrap: anywhere;
  color: var(--blue);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1;
}

.guided-purchase__metric span,
.guided-purchase__status {
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.guided-purchase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 13px 18px;
  background: var(--ink);
  color: var(--paper-strong);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--red);
  border-color: var(--red);
  outline: 0;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.guided-purchase__status {
  min-height: 1.45em;
}

.guided-purchase__status.is-error {
  color: var(--red);
}

.tour-map-section {
  margin-top: clamp(46px, 8vw, 88px);
}

.tour-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
  min-height: 470px;
  margin-top: 22px;
  border: 1px solid var(--rule);
  background: var(--paper-strong);
}

.tour-map-frame {
  width: 100%;
  min-height: 470px;
  border: 0;
  filter: saturate(0.85) contrast(1.02);
}

.tour-map-canvas {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.tour-map-canvas .tour-map-frame {
  display: block;
  min-height: 470px;
}

.tour-map-canvas .gm-style {
  font-family: "DM Sans", Arial, sans-serif;
}

.tour-map-summary {
  display: grid;
  align-content: end;
  gap: 16px;
  border-left: 1px solid var(--rule);
  padding: clamp(22px, 3vw, 36px);
}

.tour-map-summary h3 {
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  line-height: 0.96;
}

.tour-map-summary p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.stop-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.stop-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  border: 1px solid var(--rule);
  background: var(--paper-strong);
}

.stop-number {
  display: grid;
  place-items: start center;
  border-right: 1px solid var(--rule);
  padding: 22px 12px;
  color: var(--red);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.stop-copy {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.stop-copy h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.stop-copy p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.stop-location {
  color: var(--blue) !important;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.54rem;
  letter-spacing: 0.04em;
  line-height: 1.45 !important;
  text-transform: uppercase;
}

.stop-audio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.stop-audio-controls span {
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stop-script {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

.stop-script summary {
  width: fit-content;
  color: var(--red);
  cursor: pointer;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stop-script p {
  margin-top: 12px;
}

.profile-auth-card,
.progress-board-card {
  background: var(--paper);
}

.auth-provider-row,
.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.auth-provider-row button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  text-transform: uppercase;
}

.auth-provider-row button[hidden] {
  display: none;
}

.auth-provider-row button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.auth-provider-row [data-auth-sign-out] {
  background: transparent;
  color: var(--ink);
}

.profile-auth-status {
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  margin-top: 12px;
  text-transform: uppercase;
}

.progress-board-shell {
  margin-top: 24px;
}

.progress-board-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.progress-board-card {
  border: 1px solid var(--rule);
  padding: clamp(22px, 3vw, 34px);
}

.progress-board-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.98;
  margin: 8px 0 14px;
}

.progress-board-card--board {
  grid-row: span 2;
}

.progress-board-stats {
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.progress-board-stats div {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.progress-board-stats div + div {
  border-left: 1px solid var(--rule);
}

.progress-board-stats strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
}

.progress-board-stats span,
.board-card-header span {
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-board-track {
  background: rgba(22, 18, 14, 0.1);
  height: 10px;
  margin-top: 18px;
}

.progress-board-track span {
  background: var(--red);
  display: block;
  height: 100%;
  min-width: 8px;
}

.board-card-header {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.board-card-header h2 {
  margin: 4px 0 0;
}

.founders-board-path {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.founders-board-space {
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
}

.founders-board-space span,
.founders-board-space small {
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.founders-board-space strong {
  align-self: center;
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.founders-board-space--claimed {
  background: #11100e;
  color: var(--paper);
}

.founders-board-space--claimed span,
.founders-board-space--claimed small {
  color: rgba(255, 250, 241, 0.72);
}

.founders-board-space--next {
  border-color: var(--red);
  box-shadow: inset 0 0 0 2px var(--red);
}

.progress-route-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.progress-route-list a {
  align-items: center;
  border: 1px solid var(--rule);
  color: inherit;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 13px 14px;
  text-decoration: none;
}

.progress-route-list a span {
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.panel {
  background: var(--paper-strong);
  border: 1px solid var(--rule);
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.panel-header {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.panel-header h3,
.board-slide h3,
.board-center h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1;
  margin: 4px 0 0;
}

.lede {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.primary-button,
.status-pill,
.chip {
  align-items: center;
  border: 1px solid var(--ink);
  display: inline-flex;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 10px 12px;
  text-transform: uppercase;
}

.primary-button {
  background: var(--ink);
  color: var(--paper);
}

.status-pill,
.chip {
  background: transparent;
  color: var(--ink);
}

.status-pill.is-live {
  background: rgba(21, 128, 61, 0.12);
  border-color: rgba(21, 128, 61, 0.35);
  color: #17634f;
}

.stop-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-preview-hero {
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 42px;
  min-height: 520px;
  overflow: hidden;
  padding: clamp(54px, 7vw, 86px) clamp(28px, 5vw, 60px) clamp(44px, 5vw, 66px);
  position: relative;
}

.board-preview-hero::before {
  color: rgba(201, 154, 49, 0.07);
  content: "★";
  font-size: clamp(17rem, 34vw, 31rem);
  line-height: 1;
  pointer-events: none;
  position: absolute;
  right: -0.18em;
  top: -0.24em;
}

.board-preview-copy {
  display: grid;
  gap: 24px;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.board-preview-copy h1 {
  color: var(--paper);
  font-size: clamp(3.4rem, 7vw, 6.9rem);
  line-height: 0.95;
  max-width: 8.4ch;
}

.board-preview-copy > p:not(.eyebrow) {
  color: #c8bfaf;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

.board-preview-hero .eyebrow {
  color: #d4a843;
}

.board-preview-hero .hero-actions a {
  border-color: rgba(212, 168, 67, 0.78);
  color: var(--paper);
}

.board-preview-hero .hero-actions a:first-child {
  background: #d4a843;
  color: var(--ink);
}

.board-preview-hero .hero-actions a:hover,
.board-preview-hero .hero-actions a:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.board-preview-hero .hero-stats {
  gap: 28px 42px;
  padding-top: 8px;
}

.board-preview-hero .hero-stats span {
  color: #d4a843;
}

.board-preview-hero .hero-stats small {
  color: #8a7e72;
}

.progress-grid--cinematic {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.board-page {
  align-items: start;
}

.board-hero-panel {
  background:
    radial-gradient(circle at top right, rgba(201, 154, 49, 0.18), transparent 32%),
    var(--ink);
  color: var(--paper);
  grid-column: 1 / -1;
}

.board-hero-panel .eyebrow,
.board-hero-panel p,
.board-hero-panel span {
  color: rgba(255, 250, 241, 0.76);
}

.board-hero-panel h3 {
  color: var(--paper);
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.95;
  margin: 0;
}

.board-hero-stats,
.board-metric-grid,
.score-rules-grid,
.unlock-preview,
.best-grid,
.collection-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.board-hero-stats div,
.board-metric-grid div,
.score-rules-grid div,
.unlock-preview div,
.best-grid div,
.collection-grid div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px;
}

.board-metric-grid div,
.score-rules-grid div,
.unlock-preview div,
.best-grid div,
.collection-grid div {
  background: var(--paper);
  border-color: var(--rule);
}

.board-hero-stats strong,
.board-metric-grid strong,
.score-rules-grid strong,
.unlock-preview strong,
.best-grid strong,
.collection-grid strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.board-hero-stats span,
.board-metric-grid span,
.score-rules-grid span,
.unlock-preview span,
.best-grid span,
.collection-grid span {
  color: var(--muted);
  display: block;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 6px;
  text-transform: uppercase;
}

.board-hero-stats span {
  color: rgba(255, 250, 241, 0.76);
}

.board-track {
  background: rgba(255, 255, 255, 0.15);
  height: 14px;
  overflow: hidden;
}

.board-track span {
  background: linear-gradient(90deg, var(--gold), #efc96c);
  display: block;
  height: 100%;
}

.board-track--light,
.board-track--small {
  background: rgba(26, 20, 16, 0.1);
}

.board-track--light span,
.board-track--small span {
  background: linear-gradient(90deg, var(--blue), var(--red));
}

.board-track--small {
  height: 10px;
}

.board-muted {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
}

.board-focus-row {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding-top: 14px;
}

.board-focus-row strong {
  color: var(--paper);
}

.board-card,
.board-carousel-panel {
  display: grid;
  gap: 16px;
}

.board-active-quest,
.board-carousel-panel {
  grid-column: 1 / -1;
}

.city-board {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: grid;
  gap: 6px;
  padding: 8px;
}

.board-row,
.board-middle {
  display: grid;
  gap: 6px;
}

.board-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.board-middle {
  grid-template-columns: 78px minmax(0, 1fr) 78px;
  min-height: 230px;
}

.board-side-rail {
  display: grid;
  gap: 6px;
}

.board-space {
  background: #fffdf8;
  border: 1px solid var(--rule);
  display: grid;
  gap: 5px;
  min-height: 78px;
  overflow: hidden;
  padding: 14px 7px 8px;
  position: relative;
}

.board-space--claimed {
  background: rgba(21, 128, 61, 0.11);
  border-color: rgba(21, 128, 61, 0.34);
}

.board-space--visited {
  background: rgba(23, 54, 93, 0.11);
  border-color: rgba(23, 54, 93, 0.28);
}

.board-space--next {
  background: rgba(201, 154, 49, 0.18);
  border-color: rgba(201, 154, 49, 0.5);
}

.board-space--empty {
  opacity: 0;
}

.board-space-band {
  height: 8px;
  inset: 0 0 auto;
  position: absolute;
}

.board-space-band--gold {
  background: var(--gold);
}

.board-space-band--blue {
  background: var(--blue);
}

.board-space-band--green {
  background: #15803d;
}

.board-space-band--rose {
  background: var(--red);
}

.board-space-number,
.board-space span:last-child {
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.board-space strong {
  font-size: 0.66rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.board-center {
  align-content: center;
  background: #fffdf8;
  border: 1px solid var(--rule);
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
  padding: 18px;
  text-align: center;
}

.board-center h3,
.board-center p {
  margin: 0;
}

.board-center-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.board-center-stats div {
  background: var(--paper);
  border: 1px solid var(--rule);
  min-width: 74px;
  padding: 9px 12px;
}

.board-center-stats strong,
.board-center-stats span {
  display: block;
}

.board-center-stats span {
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.share-board-panel {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 14px;
}

.share-board-panel div,
.board-stack {
  display: grid;
  gap: 10px;
}

.share-board-panel span,
.quest-row span,
.reward-row span,
.level-row span,
.timeline-row span,
.score-event-row span {
  color: var(--muted);
}

.board-carousel {
  display: grid;
  gap: 14px;
  grid-auto-columns: minmax(320px, 42%);
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 4px 12px;
  scroll-padding: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.board-slide {
  align-content: start;
  background: #fffdf8;
  border: 1px solid var(--rule);
  display: grid;
  gap: 14px;
  min-height: 330px;
  padding: 18px;
  scroll-snap-align: start;
}

.board-slide--score {
  background:
    radial-gradient(circle at top right, rgba(201, 154, 49, 0.16), transparent 30%),
    #fffdf8;
}

.board-slide--wide {
  min-width: min(640px, calc(100vw - 48px));
}

.score-rules-grid,
.board-metric-grid,
.unlock-preview,
.best-grid,
.collection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.streak-dots {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.streak-dots span {
  background: rgba(26, 20, 16, 0.1);
  height: 12px;
}

.streak-dots span.active {
  background: var(--gold);
}

.quest-row,
.reward-row,
.level-row,
.score-event-row,
.ring-card,
.collection-book-card,
.badge-card,
.board-tour-row {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: grid;
  gap: 9px;
  padding: 14px;
}

.quest-row-header,
.reward-row,
.level-row,
.score-event-row {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.reward-row.unlocked,
.level-row.reached,
.badge-card.earned,
.collection-book-card.collected {
  background: rgba(21, 128, 61, 0.1);
  border-color: rgba(21, 128, 61, 0.28);
}

.level-row.active {
  border-color: rgba(201, 154, 49, 0.55);
}

.ring-grid,
.collection-book-grid,
.badge-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ring-outer {
  aspect-ratio: 1;
  background: conic-gradient(var(--blue) 0 var(--ring-pct, 0%), rgba(26, 20, 16, 0.1) var(--ring-pct, 0%) 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 92px;
}

.ring-outer.complete {
  background: conic-gradient(#15803d 0 100%, rgba(26, 20, 16, 0.1) 0);
}

.ring-outer div {
  aspect-ratio: 1;
  background: var(--paper-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 64px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-row {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
}

.timeline-row div {
  display: grid;
  gap: 3px;
}

.timeline-dot {
  background: rgba(26, 20, 16, 0.1);
  border-radius: 50%;
  color: var(--muted);
  display: grid;
  font-weight: 900;
  height: 34px;
  place-items: center;
  width: 34px;
}

.timeline-dot.open {
  background: rgba(23, 54, 93, 0.14);
  color: var(--blue);
}

.timeline-dot.done {
  background: rgba(21, 128, 61, 0.16);
  color: #17634f;
}

.progress-list {
  display: grid;
  gap: 10px;
}

.progress-row {
  align-items: center;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.55fr) auto;
  text-decoration: none;
}

.progress-copy {
  display: grid;
  gap: 4px;
}

.progress-copy span,
.progress-value {
  color: var(--muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-bar {
  background: rgba(26, 20, 16, 0.1);
  height: 10px;
}

.progress-bar span {
  background: var(--red);
  display: block;
  height: 100%;
}

@media (max-width: 880px) {
  .site-header,
  main {
    width: min(100% - 20px, 1180px);
  }

  .site-header,
  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-header {
    display: grid;
  }

  .header-links {
    display: none;
  }

  .menu-toggle {
    justify-self: start;
  }

  .hero,
  .intro-grid,
  .tour-grid,
  .story-grid,
  .feature-grid,
  .story-card,
  .tour-detail-hero,
  .guided-purchase__heading,
  .tour-map-shell,
  .compass-workbench,
  .compass-card--dial,
  .compass-metric-grid,
  .compass-stop-button,
  .progress-board-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-aside {
    border-left: 0;
    border-top: 1px solid rgba(255, 250, 241, 0.18);
  }

  .tour-map-summary {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

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

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

  .guided-purchase__metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .menu-panel {
    left: 10px;
    right: 10px;
    top: 10px;
    width: auto;
    max-height: calc(100vh - 20px);
  }

  .menu-panel__header {
    gap: 9px;
    padding: 16px;
  }

  .menu-panel__header h2 {
    max-width: 13ch;
    font-size: clamp(1.32rem, 7vw, 1.85rem);
  }

  .menu-list a {
    padding: 10px 16px;
  }

  .menu-list span {
    font-size: 0.98rem;
  }

  .menu-list small {
    font-size: 0.64rem;
  }
}

@media (max-width: 560px) {
  main {
    margin-bottom: 44px;
  }

  .hero {
    padding: 28px 20px 34px;
  }

  .hero-copy {
    gap: 18px;
  }

  .hero p:not(.eyebrow) {
    max-width: 32ch;
  }

  h1 {
    max-width: 8.6ch;
    font-size: clamp(2.8rem, 12vw, 3.6rem);
    line-height: 0.96;
    overflow-wrap: anywhere;
  }

  .intro-grid h3,
  .section-heading h2,
  .seo-disclosure-title {
    max-width: none;
    font-size: clamp(2rem, 8.4vw, 2.55rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .tour-copy h3 {
    font-size: clamp(1.95rem, 8.4vw, 2.55rem);
    overflow-wrap: anywhere;
  }

  .tour-detail-hero {
    min-height: auto;
  }

  .tour-detail-hero .tour-media {
    min-height: 230px;
  }

  .tour-detail-copy h1 {
    max-width: 10ch;
    font-size: clamp(2.45rem, 10.2vw, 3.15rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .tour-detail-copy {
    padding: 24px 20px 46px;
  }

  .tour-detail-copy > p:not(.eyebrow) {
    max-width: 29ch;
  }

  .stop-card {
    grid-template-columns: 1fr;
  }

  .guided-purchase {
    padding: 20px;
  }

  .guided-purchase__body {
    grid-template-columns: 1fr;
  }

  .guided-purchase__metric,
  .guided-purchase__metric:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .guided-purchase__metric:last-child {
    border-bottom: 0;
  }

  .guided-purchase__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .guided-purchase__actions .primary-button {
    width: 100%;
  }

  .stop-number {
    place-items: center start;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 14px 20px;
  }

  .page-hero {
    padding: 24px 20px 68px;
  }

  .page-hero h1 {
    max-width: 9ch;
  }

  .page-hero p:not(.eyebrow) {
    max-width: 30ch;
  }

  .story-media {
    min-height: 190px;
  }

  .story-copy h3 {
    font-size: clamp(1.95rem, 8.4vw, 2.55rem);
  }

  .compass-card {
    padding: 20px;
  }

  .compass-dial-lite {
    width: min(100%, 310px);
    justify-self: center;
  }

  .compass-readout-lite h2,
  .compass-route-summary h2 {
    max-width: none;
    font-size: clamp(2.05rem, 9vw, 2.8rem);
  }

  .compass-metric-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .compass-metric-grid div:last-child {
    border-bottom: 0;
  }

  .compass-stop-button {
    gap: 8px;
  }

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

  .progress-board-stats {
    grid-template-columns: 1fr;
  }

  .progress-board-stats div + div {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .progress-route-list a {
    align-items: start;
    flex-direction: column;
  }

  .progress-route-list a span {
    text-align: left;
  }

  .tour-card {
    grid-template-rows: 210px auto;
  }

  .tour-copy {
    padding: 20px;
  }
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 70px auto 0;
  padding: 30px 0 36px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.4fr) minmax(190px, 0.46fr);
  gap: 24px;
  color: var(--muted);
}

.site-footer__brand {
  display: grid;
  gap: 8px;
}

.site-footer__brand p {
  max-width: 42rem;
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer__eyebrow,
.site-footer__links {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__brand .site-footer__eyebrow {
  color: var(--red);
  line-height: 1.2;
}

.site-footer__title {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.02;
}

.site-footer__links {
  display: grid;
  align-content: start;
  gap: 11px;
}

.site-footer a {
  color: inherit;
  text-decoration-color: rgba(159, 47, 36, 0.42);
  text-underline-offset: 0.24em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--red);
}

@media (max-width: 720px) {
  .site-footer {
    grid-template-columns: 1fr;
    margin-top: 46px;
  }
}

.seo-section .hero-actions a {
  background: #fffaf1;
  border-color: #9f2f24;
  color: #1a1410;
  font-weight: 800;
}

.seo-section .hero-actions a:first-child {
  background: #e8c25f;
  border-color: #e8c25f;
  color: #1a1410;
}

.seo-section .hero-actions a:hover,
.seo-section .hero-actions a:focus-visible {
  background: #1a1410;
  border-color: #1a1410;
  color: #fffaf1;
}
