/* CampusWorkflow home page: the campus scale model.
   White card buildings on a pale plinth; logo blue (#217ac5) means "switched on" and marks the primary action.
   Archivo (wide) for headings, Archivo (narrow caps) for placards and codes, Atkinson Hyperlegible Next for reading.
   Module pages still use site.css. */

:root {
  --table: #d9e1ea;
  --table-deep: #ccd6e2;
  --plinth: #eef2f6;
  --card: #ffffff;
  --lawn: #cddbc9;
  --ink: #0d2b52;
  --ink-2: #33507a;
  --ink-3: #4f6587;
  --blue: #217ac5;
  --blue-hover: #1a68ad;
  --blue-press: #155a96;
  --blue-wash: #e2eef9;
  --on-blue: #ffffff;
  --night: #0d2b52;
  --on-night: #ffffff;
  --on-night-2: #c9d8ec;
  --rule: #c3cfdc;
  --rule-strong: #8fa2bb;
  --rule-night: rgba(255, 255, 255, 0.2);
  --red: #b3361c;

  --font-display: 'Archivo', 'Arial', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif;

  --wide: 112%;
  --narrow: 82%;

  --shadow-card: 0 1px 2px rgba(13, 43, 82, 0.08), 0 10px 28px -12px rgba(13, 43, 82, 0.28);
  --shadow-lift: 0 2px 4px rgba(13, 43, 82, 0.1), 0 18px 40px -16px rgba(13, 43, 82, 0.35);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--plinth);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--blue);
  color: var(--on-blue);
}

html {
  scrollbar-color: var(--rule-strong) var(--table);
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-press);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-stretch: var(--wide);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 1.5rem + 3vw, 4.25rem);
  line-height: 1;
  font-weight: 780;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.9rem, 1.4rem + 1.9vw, 3.1rem);
  line-height: 1.05;
  font-weight: 760;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
}

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

.ic {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic.flip {
  transform: scaleX(-1);
}

/* Placard type: narrow caps with tabular numerals */
.code,
.stop-count,
.routes-title,
.label {
  font-family: var(--font-display);
  font-stretch: var(--narrow);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.code {
  display: inline-grid;
  place-items: center;
  min-width: 2.4em;
  padding: 0.12em 0.4em;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.8em;
  line-height: 1.3;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0.6em 1.15em;
  border: 1px solid transparent;
  border-radius: 3px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    transform 160ms var(--ease);
}

.btn-lg {
  min-height: 52px;
  padding: 0.8em 1.45em;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--blue);
  color: var(--on-blue);
  box-shadow: 0 1px 2px rgba(13, 43, 82, 0.2), 0 8px 18px -10px rgba(33, 122, 197, 0.9);
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--on-blue);
  transform: translateY(-1px);
}

.btn-primary:active {
  background: var(--blue-press);
  transform: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn-ghost:hover {
  background: var(--card);
  border-color: var(--ink);
  color: var(--ink);
}

.btn-quiet {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--rule);
}

.btn-quiet:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: #163d70;
  color: #fff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* ── Navigation ── */
.strip {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(238, 242, 246, 0.94);
  border-bottom: 1px solid var(--rule);
}

.strip-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.strip-logo img {
  width: 184px;
  height: auto;
}

.strip-nav {
  margin-left: auto;
}

.dest-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dest-list a {
  position: relative;
  display: block;
  padding: 8px 11px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  border-radius: 3px;
}

.dest-list a:hover {
  color: var(--ink);
  background: var(--card);
}

.dest-list a[aria-current] {
  color: var(--ink);
}

.dest-list a[aria-current]::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: var(--blue);
}

.dest-list a.on-route::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: var(--blue);
  border-radius: 50%;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-panel {
  position: absolute;
  top: var(--nav-h);
  inset-inline: 0;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 8px var(--gutter) 16px;
}

.menu-list a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.menu-list a.menu-demo {
  margin-top: 12px;
  border: 0;
  background: var(--blue);
  color: #fff;
  text-align: center;
  border-radius: 3px;
}

@media (min-width: 901px) and (max-width: 1240px) {
  /* Mid-size screens: keep the hero copy to a narrower column so the model clears it */
  .hero-copy {
    max-width: 30rem;
  }
  .hero-copy h1 {
    font-size: clamp(2.3rem, 1.2rem + 2.6vw, 3.2rem);
  }
  .hero-lead {
    max-width: 26rem;
  }
}

@media (max-width: 1180px) {
  .dest-list a {
    padding-inline: 8px;
  }
  .strip-inner {
    gap: 16px;
  }
}

@media (max-width: 1040px) {
  .strip-nav,
  .strip-cta {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
}

/* ── The campus model ── */
.model {
  position: relative;
  background: var(--table);
}

.model-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--table);
}

.model-canvas,
.model-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.model-still {
  object-fit: cover;
  object-position: 70% 50%;
  display: none;
}

.model-stage.no-webgl .model-canvas {
  display: none;
}

.model-stage.no-webgl .model-still {
  display: block;
}

.model-stage.no-webgl .placards {
  display: none;
}

.placards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.placard {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -100%;
  display: flex;
  align-items: stretch;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(13, 43, 82, 0.16), 0 6px 14px -6px rgba(13, 43, 82, 0.4);
  font-family: var(--font-display);
  font-stretch: var(--narrow);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 300ms var(--ease);
  will-change: transform;
}

.placard::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 12px;
  background: var(--ink);
}

.placard b {
  display: grid;
  place-items: center;
  padding: 4px 6px;
  background: var(--blue);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.placard > span {
  padding: 4px 8px;
}

.placard.is-code > span {
  display: none;
}

.placard.is-code b {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.placard.is-on {
  opacity: 1;
}

.model-stops {
  position: relative;
  margin-top: -100vh;
  margin-top: -100svh;
}

.stop {
  position: relative;
  min-height: 115vh;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.stop a,
.stop button {
  pointer-events: auto;
}

.stop-hero {
  min-height: 100vh;
  min-height: 100svh;
  align-items: stretch;
  padding-top: calc(var(--nav-h) + clamp(24px, 6vh, 72px));
  padding-bottom: 28px;
}

.stop-hero .wrap {
  display: flex;
  flex-direction: column;
}

.hero-copy {
  max-width: 41rem;
  pointer-events: auto;
}

.hero-lead {
  margin-top: 22px;
  max-width: 29rem;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.routes {
  margin-top: auto;
  padding-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  pointer-events: auto;
}

.routes-title {
  grid-column: 1 / -1;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
}

.route-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  text-align: left;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--ink);
  border-top-width: 3px;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease),
    border-color 200ms var(--ease),
    transform 200ms var(--ease);
}

.route-row + .route-row {
  margin-left: 12px;
}

.route-row:hover {
  transform: translateY(-2px);
}

.route-pic {
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
  color: var(--blue);
}

.route-name {
  font-family: var(--font-display);
  font-stretch: var(--wide);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
}

.route-hint {
  grid-column: 2;
  color: var(--ink-3);
  font-size: 0.9rem;
}

.route-arrow {
  grid-row: 1 / 3;
  grid-column: 3;
  color: var(--ink-3);
  transition: transform 200ms var(--ease);
}

.route-row:hover .route-arrow {
  transform: translateX(3px);
  color: var(--ink);
}

.route-row[aria-pressed='true'] {
  background: var(--blue);
  border-top-color: var(--ink);
  color: #fff;
}

.route-row[aria-pressed='true'] .route-pic,
.route-row[aria-pressed='true'] .route-hint,
.route-row[aria-pressed='true'] .route-arrow {
  color: #fff;
}

.model-note {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 0.85rem;
}

.stop-panel {
  width: min(31rem, 100%);
  padding: clamp(24px, 3vw, 36px);
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: none;
  pointer-events: auto;
  transform: translateY(18px);
  transition:
    transform 600ms var(--ease),
    box-shadow 600ms var(--ease);
}

.stop.is-current .stop-panel {
  transform: none;
}

.stop-panel h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem);
}

.stop-count {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--blue-press);
  font-size: 0.85rem;
  font-weight: 700;
}

.stop-count .code {
  background: var(--blue);
}

.stop-panel > p:not(.stop-count) {
  margin-top: 16px;
  color: var(--ink-2);
}

.stop-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.stop-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
}

.stop-list a:hover {
  color: var(--blue-press);
}

.stop-list a:hover .code {
  background: var(--blue);
}

.stop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.stop-last {
  min-height: 105vh;
}

/* ── Your route ── */
.route-band {
  background: var(--ink);
  color: #fff;
  padding: 26px 0 30px;
}

.route-band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.route-band h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--on-night-2);
}

.route-band h2 strong {
  color: #fff;
}

.route-band .btn-quiet {
  color: #fff;
  border-color: var(--rule-night);
}

.route-band .btn-quiet:hover {
  border-color: #fff;
}

.route-line {
  --route-progress: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.route-line::before {
  content: '';
  position: absolute;
  left: 8px;
  right: calc(100% / 6 - 8px);
  top: 7px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(var(--route-progress));
  transform-origin: left;
  transition: transform 700ms var(--ease);
}

.route-line a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding-right: 12px;
}

.route-line a:hover {
  color: #fff;
}

.route-line a:hover .stop-name {
  text-decoration: underline;
}

.stop-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--blue);
}

.route-line li:last-child .stop-dot {
  background: var(--blue);
}

/* ── Sections ── */
.section {
  padding: clamp(72px, 9vw, 128px) 0;
}

.section-sign {
  background: var(--card);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head > div {
  max-width: 48rem;
}

.section-lead {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.1rem;
  max-width: 44rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 700;
  color: var(--blue-press);
  text-decoration: none;
}

.text-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticks li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 10px;
  height: 10px;
  background: var(--blue);
}

/* Tour */
.tour-frame {
  background: var(--ink);
  padding: clamp(8px, 1vw, 14px);
  box-shadow: var(--shadow-lift);
}

.tour-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.tour-under {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  margin-top: 18px;
}

.tour-note {
  color: var(--ink-3);
  font-size: 0.92rem;
  max-width: 34rem;
}

.transcript summary,
.faq-list summary,
.board-list summary {
  list-style: none;
  cursor: pointer;
}

.transcript summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker,
.board-list summary::-webkit-details-marker {
  display: none;
}

.transcript summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--blue-press);
}

.transcript[open] summary .ic {
  transform: rotate(45deg);
}

.transcript-body {
  margin-top: 14px;
  max-width: 44rem;
  color: var(--ink-2);
}

.transcript-body p + p {
  margin-top: 12px;
}

/* How it works */
.journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}

.journey li {
  padding: 26px 28px 8px 0;
}

.journey li + li {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

.journey-stop {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-stretch: var(--narrow);
  font-weight: 700;
  font-size: 1.1rem;
}

.journey p {
  margin-top: 10px;
  color: var(--ink-2);
}

/* Features: presentation boards */
.exhibits {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.exhibit-tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule-strong);
}

.exhibit-tabs [role='tab'] {
  position: relative;
  text-align: left;
  padding: 13px 14px 13px 18px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.exhibit-tabs [role='tab']:hover {
  color: var(--ink);
  background: var(--card);
}

.exhibit-tabs [role='tab'][aria-selected='true'] {
  color: var(--ink);
  background: var(--card);
}

.exhibit-tabs [role='tab'][aria-selected='true']::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background: var(--blue);
}

.exhibit {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.exhibit:focus-visible {
  outline-offset: 8px;
}

.exhibit.enter .exhibit-shot {
  animation: board-in 520ms var(--ease);
}

@keyframes board-in {
  from {
    transform: translateY(14px) rotate(-0.4deg);
    opacity: 0.4;
  }
}

.exhibit-text h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.8rem);
}

.exhibit-text > p {
  margin: 14px 0 18px;
  color: var(--ink-2);
}

.exhibit-text .text-link {
  margin-top: 18px;
}

.exhibit-shot {
  position: relative;
  display: block;
  padding: clamp(10px, 1.2vw, 16px);
  background: var(--card);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}

.exhibit-shot img {
  width: 100%;
  border: 1px solid var(--rule);
}

.shot-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 0.88rem;
  font-weight: 700;
}

.exhibit-shot:hover .shot-open {
  color: var(--blue-press);
}

/* Module directory */
.board-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--plinth);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.filter .code {
  min-width: 1.8em;
}

.filter .count {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.filter[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filter[aria-pressed='true'] .count {
  color: var(--on-night-2);
}

.filter[aria-pressed='true'] .code {
  background: var(--blue);
}

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}

.board-list > li {
  border-bottom: 1px solid var(--rule);
}

.board-list summary {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 4px;
}

.board-list summary:hover .board-name {
  color: var(--blue-press);
}

.board-name {
  font-family: var(--font-display);
  font-stretch: var(--wide);
  font-weight: 700;
  font-size: 1.05rem;
}

.board-tags {
  color: var(--ink-3);
  font-size: 0.92rem;
}

.board-plus {
  color: var(--ink-3);
  transition: transform 200ms var(--ease);
}

.board-list details[open] .board-plus {
  transform: rotate(45deg);
}

.board-list details[open] .code {
  background: var(--blue);
}

.board-body {
  padding: 0 4px 20px calc(3.2em + 18px);
  max-width: 62rem;
  color: var(--ink-2);
}

.board-body .text-link {
  margin-top: 10px;
}

.board-all {
  margin-top: 22px;
}

/* Who it's for */
.floor-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}

.floor {
  padding: 26px 28px 30px 0;
  border-bottom: 1px solid var(--rule);
  transition: background-color 300ms var(--ease);
}

.floor:not(:nth-child(3n + 1)) {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

.floor ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  color: var(--ink-2);
}

.floor li {
  padding: 5px 0;
}

.floor.is-yours h3::after {
  content: 'Your route';
  display: inline-block;
  margin-left: 10px;
  padding: 2px 7px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-stretch: var(--narrow);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* SIS */
.interchange {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.station {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--ink);
}

.station-cw {
  background: var(--ink);
  color: #fff;
}

.station-cw h3 {
  color: #fff;
}

.station-cw .ticks li {
  color: var(--on-night-2);
  border-color: var(--rule-night);
}

.station-cw .ticks li::before {
  background: #6fb0e8;
}

.station-sub {
  margin: 6px 0 16px;
  color: var(--ink-3);
  font-size: 0.95rem;
}

.station-cw .station-sub {
  color: var(--on-night-2);
}

.lanes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 24px;
}

.lane {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}

.lane-out {
  border-top-color: var(--blue);
}

.lane-sign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-stretch: var(--narrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.lane-text {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.honest-note {
  margin-top: 28px;
  max-width: 52rem;
  color: var(--ink-2);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

/* Security */
.safeguards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--rule-strong);
}

.safeguards > div {
  padding: 26px 28px 28px 0;
  border-bottom: 1px solid var(--rule);
}

.safeguards > div:not(:nth-child(3n + 1)) {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

.safeguards dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-stretch: var(--wide);
  font-weight: 700;
  font-size: 1.1rem;
}

.safeguards dt .ic {
  color: var(--blue);
  width: 22px;
  height: 22px;
}

.safeguards dd {
  margin: 10px 0 0;
  color: var(--ink-2);
}

.platform {
  margin-top: clamp(48px, 6vw, 72px);
  max-width: 64rem;
}

.platform > p {
  margin-top: 12px;
  color: var(--ink-2);
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.tiles li {
  padding: 6px 12px;
  background: var(--plinth);
  border: 1px solid var(--rule);
  font-family: var(--font-display);
  font-stretch: var(--narrow);
  font-weight: 650;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.section-head-stack {
  display: block;
  margin: 0;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.faq-list {
  border-top: 1px solid var(--rule-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-stretch: var(--wide);
  font-weight: 650;
  font-size: 1.08rem;
}

.faq-list summary:hover {
  color: var(--blue-press);
}

.faq-list summary .ic {
  color: var(--ink-3);
  transition: transform 200ms var(--ease);
}

.faq-list details[open] summary .ic {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 0 0 20px;
  color: var(--ink-2);
  max-width: 44rem;
}

/* Book a demo */
.destination {
  background: var(--night);
  color: var(--on-night);
  padding: clamp(72px, 9vw, 128px) 0;
}

.destination-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.destination h2 {
  color: #fff;
}

.directory-lead {
  margin-top: 18px;
  color: var(--on-night-2);
  font-size: 1.1rem;
  max-width: 34rem;
}

.ticks-light {
  margin-top: 28px;
}

.ticks-light li {
  color: var(--on-night-2);
  border-color: var(--rule-night);
}

.ticks-light li::before {
  background: #6fb0e8;
}

.demo-form {
  background: var(--card);
  color: var(--ink);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.demo-form h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-weight: 700;
  font-size: 0.95rem;
}

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

.opt {
  color: var(--ink-3);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--plinth);
  color: var(--ink);
  font: inherit;
  caret-color: var(--blue);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #536884;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(33, 122, 197, 0.25);
}

.field [aria-invalid='true'] {
  border-color: var(--red);
}

.field-err {
  min-height: 0;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 700;
}

.field-err:empty {
  display: none;
}

.form-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #fbe9e4;
  color: var(--red);
  font-weight: 700;
}

.form-note {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 0.9rem;
  text-align: center;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

/* Footer */
.footer {
  background: #081d3a;
  color: var(--on-night-2);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.footer-logo {
  width: 210px;
  height: auto;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 26rem;
  font-size: 0.95rem;
}

.footer h2 {
  font-family: var(--font-display);
  font-stretch: var(--narrow);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.footer ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.footer li {
  padding: 4px 0;
}

.footer a {
  color: var(--on-night-2);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-night);
  font-size: 0.88rem;
}

/* Cookie notice */
.cookie {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  padding: 14px 16px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
  font-size: 0.95rem;
}

.cookie[hidden] {
  display: none;
}

.cookie-btns {
  display: flex;
  gap: 8px;
  flex: none;
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .exhibits {
    grid-template-columns: 1fr;
  }
  .exhibit-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-top: 0;
    border-bottom: 1px solid var(--rule-strong);
    scrollbar-width: thin;
  }
  .exhibit-tabs [role='tab'] {
    flex: none;
    border-bottom: 0;
    padding: 12px 14px;
  }
  .exhibit-tabs [role='tab'][aria-selected='true']::before {
    left: 14px;
    right: 14px;
    top: auto;
    bottom: 0;
    width: auto;
    height: 3px;
    margin: 0;
  }
  .exhibit {
    grid-template-columns: 1fr;
  }
  .floor-board,
  .safeguards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .floor:not(:nth-child(3n + 1)),
  .safeguards > div:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }
  .floor:nth-child(2n),
  .safeguards > div:nth-child(2n) {
    padding-left: 28px;
    border-left: 1px solid var(--rule);
  }
  .interchange {
    grid-template-columns: 1fr;
  }
  .lanes {
    padding: 22px 0;
  }
  .destination-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .section-head-stack {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  /* The model sits in the top of the frame; copy reads on the plinth below it. */
  .stop-hero {
    padding-top: calc(var(--nav-h) + 36vh);
  }
  .hero-copy {
    background: var(--plinth);
    margin-inline: calc(var(--gutter) * -1);
    padding: 24px var(--gutter) 4px;
    max-width: none;
  }
  .routes {
    margin-top: 0;
    padding: 20px var(--gutter) 0;
    margin-inline: calc(var(--gutter) * -1);
    background: var(--plinth);
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .route-row + .route-row {
    margin-left: 0;
  }
  .model-note {
    margin: 0 calc(var(--gutter) * -1);
    padding: 12px var(--gutter) 0;
    background: var(--plinth);
  }
  .stop {
    align-items: flex-end;
    padding-bottom: 6vh;
  }
  .stop-panel {
    width: 100%;
    padding: 20px;
  }
  .stop-panel > p:not(.stop-count) {
    margin-top: 10px;
    font-size: 0.95rem;
  }
  .stop-list {
    margin-top: 12px;
  }
  .stop-list a {
    padding: 6px 0;
    font-size: 0.9rem;
  }
  .route-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }
  .route-line::before {
    display: none;
  }
  .journey {
    grid-template-columns: 1fr;
  }
  .journey li + li {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }
  .strip-logo img {
    width: 156px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .board-list summary {
    grid-template-columns: 3em minmax(0, 1fr) auto;
  }
  .board-tags {
    grid-column: 2;
    grid-row: 2;
  }
  .board-plus {
    grid-row: 1 / 3;
    grid-column: 3;
  }
  .board-body {
    padding-left: 4px;
  }
  .floor-board,
  .safeguards {
    grid-template-columns: 1fr;
  }
  .floor:nth-child(2n),
  .safeguards > div:nth-child(2n) {
    padding-left: 0;
    border-left: 0;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tour-under {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-base {
    flex-direction: column;
  }
  .cookie {
    left: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .placard {
    font-size: 0.7rem;
  }
  .stop-panel > p:not(.stop-count) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .stop-panel {
    transform: none;
  }
}
