/* Lakes Region Model Railroad Museum
   Tokens, base, then one section per block of the page. */

:root {
  --paper: #ece6d8;
  --paper-deep: #e3dbc8;
  --ink: #231f1a;
  --ink-soft: #4a4034;
  --ink-muted: #5a4e3e;
  --brass: #a38b5c;
  --brass-deep: #7a6642;
  --brass-heading: #6b5a3a;
  --brass-line: #8f7a4e;
  --rule-soft: #c7b58e;
  --burgundy: #6e1c33;
  --burgundy-deep: #4e1224;
  --cream: #f3eee3;
  --cream-dark: #e7dcc2;
  --line: #b5a073;
  --line-ink: #2e2414;
  --line-label: #3a2e18;
  --night: #1a1917;
  --night-deep: #0f0e0d;
  --visit: #1f1c19;
  --gold: #c9b27e;
  --gold-button: #d8c79e;
  --gold-soft: #e8d3a6;
  --muted: #a89e8a;
  --footer-meta: #7d7362;
  --blush: #ebcfd5;
  --ticket: #ede3c8;
  --rule-night: rgba(231, 220, 194, 0.18);
  --rule-footer: rgba(231, 220, 194, 0.15);
  --rule-line: rgba(35, 31, 26, 0.45);
  --font-sans: "Jost", system-ui, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --page: 1320px;
  --spine: 52px;
  --focus: 2px solid currentColor;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--burgundy);
  color: var(--cream);
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100%;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Header */

.site-header {
  position: relative;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--brass);
}

.bar {
  max-width: var(--page);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  border-left: 1px solid var(--brass);
  border-right: 1px solid var(--brass);
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  padding: 6px 30px;
  border-right: 1px solid var(--brass);
}

.brand img {
  height: 70px;
  width: auto;
}

.site-nav {
  display: flex;
  flex: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a {
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-right: 1px solid var(--brass);
  color: var(--ink);
}

.site-nav a:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  padding: 0 20px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-toggle:hover {
  background: var(--paper-deep);
}

.header-cta {
  margin-left: auto;
  flex: none;
  display: flex;
  align-items: center;
  background: var(--burgundy);
  color: var(--cream);
  padding: 0 26px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--burgundy-deep);
  color: var(--cream);
}

/* Shared ruled frame (hero, exhibits) */

.frame {
  display: flex;
  border: 1px solid var(--brass);
}

.spine {
  flex: none;
  width: var(--spine);
  border-right: 1px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass-deep);
  white-space: nowrap;
}

.frame-main {
  flex: 1;
  min-width: 0;
}

.frame-title {
  border-bottom: 1px solid var(--brass);
}

.frame-title h1,
.frame-title h2 {
  padding: 30px 30px 26px;
  font-weight: 500;
  font-size: clamp(20px, 3.3vw, 50px);
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brass-heading);
  white-space: nowrap;
}

/* Hero */

.hero {
  max-width: var(--page);
  margin: 40px auto 40px;
  padding-top: 40px;
}

.hero-split,
.specs {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
}

.hero-split {
  border-bottom: 1px solid var(--brass);
}

.hero-media {
  position: relative;
  min-height: 460px;
  background: var(--brass);
  border-right: 1px solid var(--brass);
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: sepia(0.15) saturate(0.85);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-intro {
  padding: 30px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-kicker {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.hero-lead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 2.6vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-lead em {
  color: var(--burgundy);
  font-style: italic;
}

.hero-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
}

.bar-link {
  display: block;
  text-align: center;
  padding: 20px 16px;
  border-top: 1px solid var(--brass);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.bar-link:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.bar-link-solid {
  background: var(--burgundy);
  color: var(--cream);
}

.bar-link-solid:hover {
  background: var(--burgundy-deep);
  color: var(--cream);
}

.specs-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spec {
  padding: 18px 22px 20px;
  border-right: 1px solid var(--brass);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.spec-scale {
  border-right: 0;
}

.spec dt {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.spec dd {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The Line */

.line {
  background: var(--line);
  margin-top: 96px;
  border-top: 1px solid var(--brass-line);
  border-bottom: 1px solid var(--brass-line);
}

.line-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 96px 0;
}

.line-intro {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 56px;
}

.line-route {
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--line-label);
}

.line-intro h2 {
  margin: 18px 0 12px;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(58, 46, 24, 0.25);
}

.line-lead {
  margin: 24px auto 0;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--line-ink);
  text-wrap: pretty;
}

.stop-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule-line);
}

.stop {
  border-right: 1px solid var(--rule-line);
  border-bottom: 1px solid var(--rule-line);
  background: transparent;
  color: var(--ink);
  padding: 22px 24px;
  text-align: left;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.25s;
}

.stop:hover {
  background: rgba(35, 31, 26, 0.06);
}

.stop[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream-dark);
}

.stop[aria-pressed="true"]:hover {
  background: var(--ink);
}

.stop-name {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-wrap: balance;
}

.stop-meta {
  margin-top: auto;
  display: flex;
  gap: 10px;
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stop-meta .dot {
  opacity: 0.5;
}

.stop-meta .mile {
  opacity: 0.75;
}

.line-stage {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  border-bottom: 1px solid var(--rule-line);
}

.plan-wrap {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--rule-line);
}

.plan {
  position: relative;
}

.plan img {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.25);
  mix-blend-mode: multiply;
  opacity: 0.8;
}

.pin {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0;
  transition: width 0.25s, height 0.25s, background 0.25s;
}

.pin-boston { left: 19.5%; top: 78%; }
.pin-portsmouth { left: 73%; top: 82%; }
.pin-dover { left: 93%; top: 77%; }
.pin-rochester { left: 94%; top: 19%; }
.pin-wakefield { left: 70%; top: 9%; }
.pin-ossipee { left: 52%; top: 9%; }
.pin-north-conway { left: 31%; top: 23%; }
.pin-wolfeboro-falls { left: 74%; top: 48%; }
.pin-wolfeboro { left: 48.5%; top: 53%; }

.pin[aria-pressed="true"] {
  width: 28px;
  height: 28px;
  background: var(--burgundy);
  z-index: 1;
}

.detail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule-line);
}

.stop-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stop-bar {
  padding: 16px 26px;
  border-bottom: 1px solid var(--rule-line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--line-label);
}

.stop-title {
  padding: 22px 26px;
  border-bottom: 1px solid var(--rule-line);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stop-note {
  padding: 20px 26px;
  border-bottom: 1px solid var(--rule-line);
  font-size: 17px;
  line-height: 1.65;
  color: var(--line-ink);
}

.stop-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule-line);
}

.stop-fact {
  padding: 14px 26px;
}

.stop-fact + .stop-fact {
  border-left: 1px solid var(--rule-line);
}

.stop-fact-label {
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--line-label);
  margin-bottom: 8px;
}

.stop-fact p:last-child {
  font-size: 16px;
  line-height: 1.4;
}

.stop-actions {
  display: flex;
  margin-top: auto;
}

.stop-step {
  flex: none;
  width: 64px;
  border-right: 1px solid var(--rule-line);
  color: var(--ink);
  font-size: 18px;
  padding: 18px 0;
}

.stop-step:hover {
  background: rgba(35, 31, 26, 0.08);
}

.stop-explore {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  background: var(--ink);
  color: var(--cream-dark);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.stop-explore:hover {
  background: #000;
  color: var(--cream-dark);
}

.line-note {
  padding: 14px 24px 0;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--line-label);
}

/* Exhibits */

.exhibits {
  max-width: var(--page);
  margin: 0 auto;
  padding: 112px 0;
}

.exhibits .frame-main {
  container-type: inline-size;
  container-name: exhibits;
}

.exhibit-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.exhibit-card {
  border-bottom: 1px solid var(--brass);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  min-width: 0;
}

.exhibit-card:last-child {
  border-bottom: 0;
}

.exhibit-card:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.exhibit-media {
  position: relative;
  aspect-ratio: 1;
  margin: 18px;
  border: 1px solid var(--rule-soft);
  background-color: var(--paper-deep);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(122, 102, 66, 0.14) 0 1px,
    transparent 1px 8px
  );
  overflow: hidden;
}

.exhibit-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.exhibit-kicker {
  border-top: 1px solid var(--brass);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.exhibit-body {
  border-top: 1px solid var(--brass);
  padding: 18px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exhibit-body h3 {
  font-weight: 500;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.exhibit-body p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
}

@container exhibits (min-width: 520px) {
  .exhibit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .exhibit-card:nth-child(odd) {
    border-right: 1px solid var(--brass);
  }

  .exhibit-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@container exhibits (min-width: 1000px) {
  .exhibit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .exhibit-card,
  .exhibit-card:nth-child(2n) {
    border-bottom: 0;
    border-right: 1px solid var(--brass);
  }

  .exhibit-card:nth-child(4n) {
    border-right: 0;
  }
}

/* Throttle */

.throttle {
  background: var(--night);
  color: var(--cream-dark);
  position: relative;
  overflow: hidden;
}

.throttle-inner {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  padding: 96px 0 0;
}

.throttle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.9fr) minmax(240px, 300px);
  border: 1px solid var(--rule-night);
  border-bottom: 0;
}

.throttle-copy {
  padding: 40px;
  border-right: 1px solid var(--rule-night);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.throttle-eyebrow {
  align-self: flex-start;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 178, 126, 0.5);
  padding: 8px 10px;
}

.throttle h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.throttle-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 440px;
}

.throttle-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold-button);
  color: var(--night);
}

.btn-gold:hover {
  background: var(--cream-dark);
  color: var(--night);
}

.btn-ghost {
  border: 1px solid rgba(231, 220, 194, 0.35);
  color: var(--cream-dark);
}

.btn-ghost:hover {
  border-color: var(--cream-dark);
  color: var(--cream-dark);
}

.steps {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.step {
  flex: 1;
  padding: 24px 32px;
  border-bottom: 1px solid var(--rule-night);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
}

.step-num {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  color: var(--gold);
}

.step h3 {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.step p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 6px;
}

.throttle-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-left: 1px solid var(--rule-night);
}

.phone {
  width: 230px;
  border-radius: 30px;
  border: 1px solid rgba(231, 220, 194, 0.35);
  padding: 7px;
  background: var(--night-deep);
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 674 / 1200;
  object-fit: cover;
  border-radius: 24px;
}

.steam {
  background: var(--burgundy);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--burgundy);
}

.steam-mark {
  flex: none;
  width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(243, 238, 227, 0.25);
}

.steam-mark span {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--cream);
  transform: rotate(45deg);
}

.steam-word-wrap {
  flex: 1;
  min-width: 0;
  padding: 22px 32px 0;
}

.steam-word {
  margin: 40px 0 -0.08em;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(96px, 17vw, 250px);
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--cream);
  white-space: nowrap;
}

/* Schools */

.schools {
  background: var(--burgundy);
  color: var(--cream);
}

.schools-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 112px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 72px;
  align-items: center;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.arch-svg {
  display: block;
  width: min(340px, 100%);
  height: auto;
  margin-bottom: -28px;
}

.arch-label {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 6px;
  fill: var(--cream);
  text-anchor: middle;
  text-transform: uppercase;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.arch-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  color: var(--gold-soft);
}

.arch-frame {
  width: min(330px, 62vw);
  aspect-ratio: 330 / 420;
  border-radius: 999px 999px 0 0;
  background: var(--cream-dark);
  padding: 9px;
  flex: none;
}

.arch-photo {
  width: 100%;
  height: 100%;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--brass-line);
}

.arch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  filter: grayscale(1) sepia(0.35) contrast(1.1);
}

.badge-range {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 46px;
  line-height: 1;
}

.badge-rule {
  width: 44px;
  height: 2px;
  background: var(--gold-soft);
}

.badge-subjects {
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.schools h2 {
  margin-bottom: 18px;
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schools-lead {
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--blush);
  max-width: 480px;
}

.programs {
  border-top: 1px solid rgba(243, 238, 227, 0.4);
}

.program {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(243, 238, 227, 0.4);
  align-items: baseline;
}

.program-code,
.program-grades {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--gold-soft);
}

.program-grades {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.program h3 {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.program p {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--blush);
}

.btn-cream {
  display: inline-block;
  margin-top: 32px;
  background: var(--cream);
  color: var(--burgundy);
  padding: 17px 24px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.btn-cream:hover {
  background: #fff;
  color: var(--burgundy-deep);
}

/* Visit */

.visit {
  background: var(--visit);
  color: var(--cream-dark);
}

.visit-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 112px 32px;
}

.visit-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
}

.visit-kicker,
.support-kicker {
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.visit-kicker {
  color: var(--gold);
}

.visit h2,
.support h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.calendar-link {
  color: var(--gold);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
}

.calendar-link:hover {
  color: var(--cream);
}

.ticket {
  display: flex;
  margin-bottom: 24px;
  -webkit-mask:
    radial-gradient(circle at 0 0, transparent 14px, #000 14.5px) top left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, transparent 14px, #000 14.5px) top right / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent 14px, #000 14.5px) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 14px, #000 14.5px) bottom right / 51% 51% no-repeat;
  mask:
    radial-gradient(circle at 0 0, transparent 14px, #000 14.5px) top left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, transparent 14px, #000 14.5px) top right / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent 14px, #000 14.5px) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 14px, #000 14.5px) bottom right / 51% 51% no-repeat;
}

.ticket-face {
  flex: 1;
  min-width: 0;
  background: var(--ticket);
  color: var(--line-label);
  padding: 14px;
}

.ticket-face-inner {
  border: 1.5px solid var(--line-label);
  outline: 1px solid var(--line-label);
  outline-offset: -5px;
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
}

.ticket-admit {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-brand,
.ticket-serial,
.ticket-stub p {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ticket-serial {
  letter-spacing: 0.2em;
}

.ticket-word {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 72px;
  line-height: 0.85;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.ticket-facts {
  flex: 1 1 420px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px 28px;
  border-left: 1.5px solid var(--line-label);
  padding-left: 28px;
}

.ticket-facts dt {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 6px;
}

.ticket-main {
  display: block;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticket-sub {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--brass-heading);
}

.ticket-stub {
  flex: none;
  width: 210px;
  background: var(--burgundy);
  color: var(--cream);
  border-left: 3px dotted var(--visit);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.ticket-stub p {
  letter-spacing: 0.24em;
}

.ticket-buy {
  background: var(--cream);
  color: var(--burgundy);
  padding: 14px 18px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ticket-buy:hover {
  background: #fff;
  color: var(--burgundy-deep);
}

.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.event-list > li {
  display: flex;
  min-width: 0;
}

.event {
  flex: 1;
  display: flex;
  color: var(--event-ink);
  -webkit-mask:
    radial-gradient(circle at 0 50%, transparent 10px, #000 10.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 10px, #000 10.5px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0 50%, transparent 10px, #000 10.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 10px, #000 10.5px) right / 51% 100% no-repeat;
}

.event:hover {
  opacity: 0.92;
  color: var(--event-ink);
}

.event-families { --event-bg: #a9bfa8; --event-ink: #22322a; }
.event-workshop { --event-bg: #ede3c8; --event-ink: #6e1c33; }
.event-evening { --event-bg: #d2b777; --event-ink: #3a2e18; }
.event-lecture { --event-bg: #8e3444; --event-ink: #f3eee3; }

.event-card {
  flex: 1;
  background: var(--event-bg);
  padding: 10px;
}

.event-card-inner {
  border: 1.5px solid var(--event-ink);
  padding: 16px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-meta,
.event-time,
.event-month,
.event-name,
.event-day {
  font-family: var(--font-cond);
  font-weight: 600;
}

.event-meta,
.event-time {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.2em;
}

.event-date {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.event-day {
  font-weight: 700;
  font-size: 58px;
  line-height: 0.85;
}

.event-month {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.1em;
}

.event-name {
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-meta,
.event-month,
.event-time {
  text-transform: uppercase;
}

.event-time {
  letter-spacing: 0.16em;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--event-ink);
  justify-content: flex-start;
}

/* Support */

.support {
  max-width: var(--page);
  margin: 0 auto;
  padding: 112px 32px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 64px;
  align-items: center;
}

.support-mark {
  display: flex;
  justify-content: center;
}

.seal {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.seal-label {
  font-family: var(--font-cond);
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
  text-transform: uppercase;
}

.seal-label-top {
  font-size: 30px;
  letter-spacing: 5px;
}

.seal-label-bottom {
  font-size: 24px;
  letter-spacing: 6px;
}

.seal-center {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.seal-name {
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.seal-est {
  margin-top: 4px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px 3px;
  letter-spacing: 0.14em;
}

.support-copy {
  container-type: inline-size;
  container-name: support;
}

.support-kicker {
  color: var(--brass-deep);
}

.support h2 {
  margin-bottom: 18px;
}

.support-lead {
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 520px;
}

.support-options {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--brass);
}

.support-card {
  padding: 20px;
  border-bottom: 1px solid var(--brass);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  background: transparent;
}

.support-card:last-child {
  border-bottom: 0;
}

.support-card:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.support-card-title {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.support-card-body {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.support-card-member {
  background: var(--burgundy);
  color: var(--cream);
}

.support-card-member:hover {
  background: var(--burgundy-deep);
  color: var(--cream);
}

.support-card-member .support-card-title {
  color: var(--cream);
}

.support-card-member .support-card-body {
  color: var(--blush);
}

@container support (min-width: 480px) {
  .support-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .support-card {
    border-bottom: 0;
    border-right: 1px solid var(--brass);
  }

  .support-card:last-child {
    border-right: 0;
  }
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--muted);
}

.footer-grid {
  max-width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border-left: 1px solid var(--rule-footer);
}

.footer-col {
  padding: 40px 28px;
  border-right: 1px solid var(--rule-footer);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  height: 72px;
  width: auto;
  align-self: flex-start;
}

.footer-name {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-dark);
}

.footer-label {
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.depot-address,
.footer-nav {
  font-size: 16px;
  line-height: 1.8;
  font-style: normal;
}

.depot-address a:hover {
  color: var(--cream-dark);
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-nav a:hover {
  color: var(--cream-dark);
}

.dispatch-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(231, 220, 194, 0.3);
}

.dispatch-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 10px 0;
  color: var(--cream-dark);
  font-size: 15px;
  font-family: var(--font-sans);
}

.dispatch-form input:focus {
  outline: none;
}

.dispatch-form input:focus-visible {
  outline: var(--focus);
  outline-offset: 4px;
}

.dispatch-form input::placeholder {
  color: rgba(231, 220, 194, 0.45);
}

.dispatch-form button {
  flex: none;
  background: transparent;
  color: var(--gold);
  padding: 10px 0 10px 12px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dispatch-form button:hover {
  color: var(--cream);
}

.dispatch-form button:disabled {
  cursor: default;
  color: var(--cream-dark);
}

.footer-base {
  border-top: 1px solid var(--rule-footer);
}

.footer-base-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--footer-meta);
}

/* Breakpoints */

@media (max-width: 1099px) {
  .stop-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .line-stage {
    grid-template-columns: 1fr;
  }

  .plan-wrap {
    border-bottom: 1px solid var(--rule-line);
  }
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
    border-right: 1px solid var(--brass);
  }

  .header-cta {
    margin-left: 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--brass);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 18px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--brass);
  }
}

@media (max-width: 900px) {
  .throttle-grid {
    grid-template-columns: 1fr;
  }

  .throttle-copy {
    border-right: 0;
    border-bottom: 1px solid var(--rule-night);
  }

  .throttle-phone {
    border-left: 0;
  }
}

@media (max-width: 800px) {
  .frame {
    flex-direction: column;
  }

  .spine {
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--brass);
    padding: 14px 16px;
  }

  .spine span {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.22em;
  }

  .frame-title h1,
  .frame-title h2 {
    white-space: normal;
    text-wrap: balance;
  }

  .hero-split,
  .specs {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--brass);
  }

  .specs-main {
    border-bottom: 1px solid var(--brass);
  }

  .specs-main .spec:last-child {
    border-right: 0;
  }

  .spec-scale {
    border-right: 0;
  }

  .ticket {
    flex-direction: column;
  }

  .ticket-stub {
    width: auto;
    flex-direction: row;
    border-left: 0;
    border-top: 3px dotted var(--visit);
  }

  .ticket-facts {
    border-left: 0;
    padding-left: 0;
    padding-top: 18px;
    border-top: 1.5px solid var(--line-label);
    flex-basis: 100%;
  }

  .brand {
    padding: 8px 16px;
  }

  .brand img {
    height: 52px;
  }
}

@media (max-width: 720px) {
  .hero {
    margin: 24px auto;
    padding-top: 24px;
  }

  .line {
    margin-top: 64px;
  }

  .line-inner,
  .throttle-inner {
    padding-top: 64px;
  }

  .exhibits {
    padding: 64px 0;
  }

  .schools-inner,
  .visit-inner,
  .support {
    padding: 64px 20px;
  }

  .schools-inner {
    gap: 48px;
  }

  .line-intro h2 {
    letter-spacing: 0.06em;
  }

  .stop-title {
    font-size: 36px;
  }

  .dispatch-form input {
    font-size: 16px;
  }

  .program {
    grid-template-columns: 36px 1fr;
  }

  .program-grades {
    grid-column: 2;
  }
}

@media (max-width: 599px) {
  .stop-list {
    grid-template-columns: 1fr;
  }

  .specs-main {
    grid-template-columns: 1fr;
  }

  .specs-main .spec {
    border-right: 0;
    border-bottom: 1px solid var(--brass);
  }

  .specs-main .spec:last-child {
    border-bottom: 0;
  }

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

  .stop-fact + .stop-fact {
    border-left: 0;
    border-top: 1px solid var(--rule-line);
  }
}

@media (max-width: 420px) {
  .header-cta {
    flex: 1 0 100%;
    justify-content: center;
    padding: 16px;
  }

  .nav-toggle {
    border-right: 0;
  }

  .steam-mark {
    width: 48px;
  }
}
