@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #e9e7df;
  --paper: #f7f5ed;
  --paper-strong: #fffdf5;
  --ink: #20211e;
  --muted: #65655e;
  --line: #a9a89f;
  --soft-line: #d1cfc5;
  --accent: #d9472b;
  --accent-ink: #fff9ee;
  --shade: rgba(68, 65, 54, 0.18);
  --photo-filter: saturate(0.75) contrast(1.05);
  --header-h: 72px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181916;
    --paper: #242520;
    --paper-strong: #2c2d27;
    --ink: #f0eee5;
    --muted: #b5b3aa;
    --line: #72736b;
    --soft-line: #44453f;
    --accent: #ee6647;
    --accent-ink: #1b1714;
    --shade: rgba(5, 6, 4, 0.38);
    --photo-filter: saturate(0.65) brightness(0.76) contrast(1.12);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

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

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 40;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 2.2vw;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 13px;
  font-weight: 700;
  line-height: 0.95;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 20px;
  font-weight: 700;
  transform: rotate(-5deg);
}

.date-lock {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.header-saved {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.saved-count {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
}

.hero {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: calc(100dvh - var(--header-h));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(48px, 7vw, 100px) 5vw;
}

.eyebrow,
.section-kicker {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(58px, 7vw, 108px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.85;
}

.hero h1 em {
  display: inline-block;
  padding-bottom: 0.1em;
  color: var(--accent);
  font-style: italic;
  line-height: 1.1;
}

.hero-intro {
  max-width: 340px;
  margin: 28px 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding: 15px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease;
}

.primary-link:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-1deg);
}

.primary-link:active,
button:active {
  transform: translateY(1px);
}

.hero-collage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--paper);
  isolation: isolate;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--photo-filter);
}

.hero-collage::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(140deg, transparent 54%, color-mix(in srgb, var(--accent) 42%, transparent));
  content: "";
  mix-blend-mode: multiply;
  pointer-events: none;
}

.date-card {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(310px, 42%);
  min-height: 180px;
  padding: 22px;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 14px 14px 0 var(--shade);
}

.date-card span,
.date-card small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-card strong {
  grid-row: span 2;
  align-self: center;
  color: var(--accent);
  font-size: clamp(56px, 6vw, 92px);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.date-card small {
  align-self: end;
  max-width: 10ch;
  line-height: 1.4;
}

.date-card-sat {
  top: 13%;
  left: 8%;
  transform: rotate(-4deg);
}

.date-card-sun {
  right: 7%;
  bottom: 10%;
  transform: rotate(5deg);
}

.route-line {
  position: absolute;
  z-index: 3;
  top: 42%;
  left: 22%;
  width: 58%;
  height: 30%;
  border-right: 6px solid var(--accent);
  border-bottom: 6px solid var(--accent);
  transform: skew(-18deg) rotate(-5deg);
  pointer-events: none;
}

.switchboard {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(560px, 1.8fr) minmax(230px, 0.75fr);
  min-height: 100dvh;
  border-bottom: 1px solid var(--line);
}

.controls-panel,
.route-pocket {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100dvh - var(--header-h));
  padding: 42px 2.2vw;
}

.controls-panel {
  border-right: 1px solid var(--line);
}

.controls-heading h2 {
  max-width: 8ch;
  margin: 0 0 50px;
  font-size: clamp(31px, 2.8vw, 46px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--accent);
}

.control-group {
  margin-bottom: 28px;
}

.control-group label {
  display: block;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.search-wrap,
.select-wrap {
  position: relative;
}

.search-wrap input,
.select-wrap select {
  width: 100%;
  height: 49px;
  padding: 0 42px 0 13px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  font-size: 14px;
  appearance: none;
}

.search-wrap input::placeholder {
  color: color-mix(in srgb, var(--muted) 90%, transparent);
  opacity: 1;
}

.search-wrap span,
.select-wrap span {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 20px;
  pointer-events: none;
}

.saved-toggle {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.toggle-track {
  display: flex;
  align-items: center;
  width: 42px;
  height: 23px;
  padding: 3px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.toggle-track span {
  width: 15px;
  height: 15px;
  background: var(--ink);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), background-color 200ms ease;
}

.saved-toggle[aria-pressed="true"] .toggle-track span {
  background: var(--accent);
  transform: translateX(19px);
}

.toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-copy strong {
  font-size: 13px;
}

.toggle-copy small {
  color: var(--muted);
  font-size: 11px;
}

.signal {
  position: absolute;
  right: 2.2vw;
  bottom: 28px;
  left: 2.2vw;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.signal-number {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.07em;
}

.event-stage {
  min-width: 0;
  padding: 42px clamp(20px, 3vw, 48px) 90px;
}

.event-days {
  display: grid;
  gap: 72px;
}

.day-section {
  min-width: 0;
}

.day-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.day-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.day-heading p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

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

.event-card {
  position: relative;
  min-height: 294px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms ease;
}

.event-card:nth-child(3n + 2) {
  transform: translateY(18px) rotate(0.4deg);
}

.event-card:hover {
  z-index: 1;
  box-shadow: 9px 9px 0 var(--accent);
  transform: translate(-4px, -4px) rotate(-0.4deg);
}

.event-card:nth-child(3n + 2):hover {
  transform: translate(-4px, 12px) rotate(-0.4deg);
}

.event-card.is-saved::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  background: linear-gradient(45deg, transparent 49%, var(--accent) 50%);
  content: "";
  pointer-events: none;
}

.open-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: 100%;
  min-height: 292px;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.open-item:focus-visible {
  outline-offset: -6px;
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-category {
  color: var(--accent);
}

.card-time {
  text-align: right;
}

.event-card h3 {
  align-self: center;
  max-width: 12ch;
  margin: 34px 0;
  font-size: clamp(25px, 2.4vw, 39px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.card-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.card-location {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}

.card-location span:last-child {
  color: var(--muted);
  font-size: 10px;
}

.card-open {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.event-card.featured {
  grid-column: 1 / -1;
  min-height: 250px;
  background-color: var(--paper-strong);
  background-image: repeating-linear-gradient(135deg, transparent 0 24px, color-mix(in srgb, var(--accent) 8%, transparent) 24px 25px);
}

.event-card.featured .open-item {
  min-height: 248px;
}

.event-card.featured h3 {
  max-width: 15ch;
  font-size: clamp(34px, 4.4vw, 64px);
}

.route-pocket {
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.pocket-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pocket-top p {
  margin: 0;
}

.route-pocket h2 {
  margin: 18px 0 28px;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.pocket-empty {
  display: grid;
  min-height: 210px;
  padding: 24px;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.pocket-empty span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 24px;
}

.pocket-empty p {
  max-width: 14ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.saved-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: route;
}

.saved-list li {
  position: relative;
  padding: 18px 0 18px 34px;
  border-bottom: 1px dashed var(--line);
  counter-increment: route;
}

.saved-list li::before {
  position: absolute;
  top: 19px;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  content: counter(route, decimal-leading-zero);
}

.saved-list button {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.saved-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.25;
}

.saved-list span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.clear-route {
  width: 100%;
  margin-top: 22px;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.loading-state {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.loading-state span {
  min-height: 300px;
  background: linear-gradient(110deg, var(--paper) 30%, var(--paper-strong) 46%, var(--paper) 62%);
  background-size: 200% 100%;
  border: 1px solid var(--soft-line);
}

.loading-state p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.empty-state,
.error-state {
  display: grid;
  min-height: 620px;
  place-content: center;
  justify-items: center;
  padding: 40px;
  border: 1px dashed var(--line);
  text-align: center;
}

.empty-state[hidden],
.error-state[hidden] {
  display: none;
}

.empty-glyph {
  color: var(--accent);
  font-size: 78px;
  line-height: 1;
}

.empty-state h3,
.error-state h3 {
  margin: 20px 0 8px;
  font-size: 38px;
  letter-spacing: -0.06em;
}

.empty-state p,
.error-state p {
  max-width: 32ch;
  margin: 0 0 24px;
  color: var(--muted);
}

.empty-state button {
  padding: 13px 18px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 150px;
  padding: 30px 4vw;
  font-size: 13px;
}

footer p {
  margin: 0;
  color: var(--muted);
}

.detail-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.detail-shell[hidden] {
  display: none;
}

.detail-scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  backdrop-filter: blur(5px);
}

.detail-panel {
  position: absolute;
  top: 3vh;
  right: 3vw;
  bottom: 3vh;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(430px, 1.15fr);
  width: min(1080px, 92vw);
  overflow: auto;
  background: var(--paper-strong);
  box-shadow: -18px 18px 0 color-mix(in srgb, var(--accent) 55%, transparent);
}

.close-detail {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper-strong);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.close-detail span:first-child {
  font-size: 20px;
  font-weight: 400;
  line-height: 0.7;
}

.detail-visual {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  min-height: 600px;
  margin: 0;
  overflow: hidden;
}

.detail-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: var(--photo-filter);
}

.detail-visual::after {
  position: absolute;
  inset: 0 0 36px;
  background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--accent) 42%, transparent));
  content: "";
  mix-blend-mode: multiply;
}

.detail-visual figcaption {
  position: relative;
  z-index: 2;
  min-height: 36px;
  padding: 11px 14px;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
}

.detail-stamp {
  position: absolute;
  right: 24px;
  bottom: 56px;
  z-index: 1;
  display: grid;
  min-width: 112px;
  padding: 12px;
  background: var(--paper-strong);
  color: var(--ink);
  transform: rotate(-4deg);
}

.detail-stamp span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.detail-stamp strong {
  color: var(--accent);
  font-size: 65px;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.detail-content {
  align-self: center;
  padding: 80px clamp(34px, 5vw, 78px) 54px;
}

.detail-category {
  margin: 0 0 22px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-content h2 {
  max-width: 12ch;
  margin: 0 0 28px;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.detail-body {
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.detail-body p {
  margin: 0 0 14px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px 0;
  border-top: 1px solid var(--line);
}

.detail-facts div {
  padding: 16px 12px 16px 0;
  border-bottom: 1px solid var(--line);
}

.detail-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.save-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-align: left;
}

.save-item[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.save-item span:first-child {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.mobile-route-bar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise-in 700ms both cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 150ms; }
  .hero-copy > :nth-child(4) { animation-delay: 220ms; }

  .date-card-sat {
    animation: drop-sat 780ms 180ms both cubic-bezier(0.16, 1, 0.3, 1);
  }

  .date-card-sun {
    animation: drop-sun 780ms 300ms both cubic-bezier(0.16, 1, 0.3, 1);
  }

  .loading-state span {
    animation: shimmer 1.3s infinite linear;
  }

  .event-card.entering {
    animation: card-in 420ms both cubic-bezier(0.16, 1, 0.3, 1);
    animation-delay: calc(var(--order) * 45ms);
  }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drop-sat {
  from { opacity: 0; transform: translateY(-45px) rotate(-9deg); }
  to { opacity: 1; transform: translateY(0) rotate(-4deg); }
}

@keyframes drop-sun {
  from { opacity: 0; transform: translateY(45px) rotate(10deg); }
  to { opacity: 1; transform: translateY(0) rotate(5deg); }
}

@keyframes shimmer {
  to { background-position-x: -200%; }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
}

@media (max-width: 1100px) {
  .switchboard {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .route-pocket {
    display: none;
  }

  .day-grid {
    grid-template-columns: 1fr;
  }

  .event-card:nth-child(3n + 2) {
    transform: none;
  }

  .event-card:nth-child(3n + 2):hover {
    transform: translate(-4px, -4px) rotate(-0.4deg);
  }

  .mobile-route-bar:not([hidden]) {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 18;
    display: block;
  }

  .mobile-route-bar button {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid var(--paper);
    border-radius: 0;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 7px 7px 0 var(--accent);
  }

  .mobile-route-bar strong {
    font-family: var(--mono);
    font-size: 10px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 62px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .brand {
    font-size: 11px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .date-lock {
    display: none;
  }

  .header-saved span:first-child {
    display: none;
  }

  .header-saved {
    padding: 4px;
    border: 0;
  }

  .hero {
    display: flex;
    min-height: calc(100dvh - var(--header-h));
    flex-direction: column;
  }

  .hero-copy {
    min-height: 50dvh;
    padding: 42px 18px 34px;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(54px, 19vw, 76px);
  }

  .hero-intro {
    max-width: 290px;
    margin: 20px 0 22px;
    font-size: 15px;
  }

  .primary-link {
    padding: 13px 15px;
  }

  .hero-collage {
    min-height: 40dvh;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .date-card {
    width: 44%;
    min-width: 145px;
    min-height: 118px;
    padding: 14px;
    box-shadow: 8px 8px 0 var(--shade);
  }

  .date-card strong {
    font-size: 46px;
  }

  .date-card-sat {
    top: 9%;
    left: 5%;
  }

  .date-card-sun {
    right: 5%;
    bottom: 8%;
  }

  .route-line {
    border-width: 4px;
  }

  .switchboard {
    display: block;
  }

  .controls-panel {
    position: relative;
    top: auto;
    height: auto;
    padding: 40px 16px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .controls-heading {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    align-items: end;
    margin-bottom: 32px;
  }

  .controls-heading .section-kicker {
    margin-bottom: 4px;
  }

  .controls-heading h2 {
    margin: 0;
    font-size: 36px;
  }

  .control-group {
    margin-bottom: 18px;
  }

  .signal {
    position: static;
    margin-top: 20px;
  }

  .signal-number {
    font-size: 36px;
  }

  .event-stage {
    padding: 42px 16px 110px;
  }

  .event-days {
    gap: 62px;
  }

  .day-heading h2 {
    font-size: 43px;
  }

  .day-heading p {
    max-width: 10ch;
    text-align: right;
  }

  .day-grid {
    gap: 14px;
  }

  .event-card,
  .open-item {
    min-height: 255px;
  }

  .event-card h3 {
    font-size: 29px;
  }

  .event-card.featured,
  .event-card.featured .open-item {
    min-height: 275px;
  }

  .event-card.featured h3 {
    font-size: 37px;
  }

  .loading-state {
    grid-template-columns: 1fr;
  }

  .loading-state span {
    min-height: 255px;
  }

  .loading-state span:nth-child(n + 3) {
    display: none;
  }

  footer {
    min-height: 130px;
    padding: 28px 16px 90px;
  }

  .detail-panel {
    top: 0;
    right: 0;
    bottom: 0;
    display: block;
    width: 100%;
    box-shadow: none;
  }

  .detail-visual {
    position: relative;
    height: 40dvh;
    min-height: 280px;
  }

  .detail-content {
    padding: 40px 18px 42px;
  }

  .detail-content h2 {
    font-size: 48px;
  }

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

  .mobile-route-bar:not([hidden]) {
    right: 16px;
    bottom: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: var(--bg);
  }

  .detail-scrim {
    background: color-mix(in srgb, var(--ink) 88%, transparent);
  }
}
