:root {
  --paper: #fff9ec;
  --paper-deep: #f6edda;
  --ink: #123d3a;
  --ink-soft: #335b57;
  --yellow: #ffb000;
  --yellow-light: #ffd46c;
  --cyan: #68c9e8;
  --orange: #c94f32;
  --line: rgba(18, 61, 58, 0.22);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --page-pad: clamp(1.25rem, 4vw, 5rem);
  --max-width: 96rem;
  --header-height: 4.75rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: clamp(1.5rem, 3vw, 3rem);
  --space-lg: clamp(3.5rem, 7vw, 7rem);
  --space-xl: clamp(5.5rem, 11vw, 11rem);
  --title-xl: clamp(3rem, 8.5vw, 8.8rem);
  --title-lg: clamp(2.2rem, 5vw, 5rem);
  --title-md: clamp(1.55rem, 2.8vw, 2.7rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.25rem);
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 0.2rem solid var(--orange);
  outline-offset: 0.25rem;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  padding: 0 var(--page-pad);
  background: rgba(255, 249, 236, 0.94);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: blur(12px);
}

.header-rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max-width));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: min(67vw, 30rem);
  color: var(--ink);
  font-size: clamp(0.74rem, 1.15vw, 0.95rem);
  font-weight: 760;
  line-height: 1.3;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 2rem;
  width: 2rem;
  height: 1.2rem;
  margin-right: 0.7rem;
  border: 0.15rem solid currentColor;
  border-left-width: 0.55rem;
}

.brand-mark i {
  position: absolute;
  top: 50%;
  right: -0.15rem;
  width: 0.65rem;
  height: 0.15rem;
  background: var(--yellow);
}

.brand-mark i:first-child {
  transform: translateY(-0.42rem) rotate(-28deg);
}

.brand-mark i:last-child {
  transform: translateY(0.22rem) rotate(28deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.2vw, 2.5rem);
}

.site-nav a {
  position: relative;
  padding: 0.8rem 0.1rem;
  font-size: 0.88rem;
  font-weight: 680;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 0.16rem;
  content: "";
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  position: absolute;
  width: 1.15rem;
  height: 0.12rem;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-icon {
  transform: translate(-50%, -50%);
}

.menu-icon::before {
  transform: translate(-50%, -0.4rem);
}

.menu-icon::after {
  transform: translate(-50%, 0.4rem);
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translate(-50%, 0) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
  grid-template-rows: 1fr auto;
  gap: var(--space-md);
  width: min(100%, calc(var(--max-width) + (var(--page-pad) * 2)));
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--header-height) + clamp(3rem, 8vh, 7.5rem)) var(--page-pad) clamp(2rem, 6vh, 5.5rem);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -2;
  top: calc(var(--header-height) + 2.2rem);
  right: var(--page-pad);
  width: min(38vw, 34rem);
  height: min(58vh, 38rem);
  content: "";
  background: var(--yellow);
  clip-path: polygon(0 0, 84% 0, 84% 9%, 100% 9%, 100% 100%, 16% 100%, 16% 91%, 0 91%);
  transform: scaleY(0.04);
  transform-origin: top;
  animation: open-board 520ms cubic-bezier(0.2, 0.8, 0.2, 1) 80ms forwards;
}

.hero-copy {
  align-self: center;
  max-width: 64rem;
}

.hero-spotlight {
  display: inline-block;
  max-width: 36rem;
  margin: 0 0 clamp(1.25rem, 3vw, 2.5rem);
  padding: 0.65rem 0.85rem;
  color: var(--paper);
  background: var(--ink);
  font-size: clamp(0.82rem, 1.25vw, 1.05rem);
  font-weight: 720;
  line-height: 1.45;
  letter-spacing: 0.04em;
  clip-path: polygon(0.45rem 0, 100% 0, calc(100% - 0.45rem) 100%, 0 100%);
}

.hero h1 {
  margin: 0;
  font-size: var(--title-xl);
  font-weight: 920;
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.hero-subtitle {
  max-width: 44rem;
  margin: clamp(1.5rem, 3vw, 2.8rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.65vw, 1.3rem);
  line-height: 1.75;
}

.route-directory {
  position: relative;
  z-index: 2;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(100%, 30rem);
  margin-left: auto;
  padding: clamp(1rem, 2vw, 1.75rem);
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0.65rem 0.65rem 0 var(--cyan);
}

.route-directory::before,
.route-directory::after {
  position: absolute;
  left: 18%;
  width: 1.1rem;
  height: 1.1rem;
  content: "";
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.route-directory::before {
  top: -0.55rem;
}

.route-directory::after {
  bottom: -0.55rem;
}

.route-directory a {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: center;
  min-height: 3rem;
  padding: 0.4rem 0.7rem;
  border-bottom: 1px dashed var(--line);
  font-size: clamp(0.86rem, 1.35vw, 1.05rem);
  font-weight: 760;
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.route-directory a:last-child {
  border-bottom: 0;
}

.route-directory a:hover {
  color: var(--paper);
  background: var(--ink);
  box-shadow: inset 0.35rem 0 var(--yellow);
}

.route-directory a span {
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.arrival-board {
  position: absolute;
  z-index: -1;
  top: calc(var(--header-height) + 1rem);
  right: var(--page-pad);
  bottom: 2rem;
  width: min(44vw, 42rem);
  pointer-events: none;
}

.board-line,
.direction {
  position: absolute;
  display: block;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  animation: draw-route 380ms ease forwards;
}

.line-one {
  top: 14%;
  left: 0;
  width: 85%;
  animation-delay: 520ms;
}

.line-two {
  right: 0;
  bottom: 8%;
  width: 82%;
  animation-delay: 620ms;
}

.arrival-dot {
  position: absolute;
  top: 11.6%;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.direction {
  right: 0;
  width: 46%;
}

.direction::after {
  position: absolute;
  top: -0.3rem;
  right: 0.2rem;
  width: 0.55rem;
  height: 0.55rem;
  content: "";
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}

.direction-one { top: 31%; animation-delay: 680ms; }
.direction-two { top: 43%; animation-delay: 760ms; }
.direction-three { top: 55%; animation-delay: 840ms; }
.direction-four { top: 67%; animation-delay: 920ms; }

.service-journey {
  position: relative;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: var(--space-xl) var(--page-pad);
}

.service-journey::before {
  position: absolute;
  top: 12rem;
  bottom: 10rem;
  left: 50%;
  width: 1px;
  content: "";
  background: repeating-linear-gradient(to bottom, var(--ink) 0 0.7rem, transparent 0.7rem 1.4rem);
}

.section-sign {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 var(--space-lg);
  border-bottom: 0.3rem solid var(--ink);
}

.section-sign p {
  margin: 0 0 0.55rem;
  color: var(--orange);
  font-weight: 850;
  letter-spacing: 0.15em;
}

.section-sign h2,
.advantage-heading h2 {
  margin: 0 0 0.25rem;
  font-size: var(--title-lg);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.route-stop {
  position: relative;
  display: grid;
  grid-template-columns: clamp(4.5rem, 9vw, 9rem) minmax(10rem, 0.75fr) minmax(16rem, 1.25fr);
  align-items: center;
  width: min(88%, 74rem);
  min-height: 15rem;
  margin-bottom: var(--space-lg);
  padding: clamp(1.5rem, 3vw, 3rem);
  background: var(--paper-deep);
  border: 1px solid var(--ink);
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 260ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.route-stop::after {
  position: absolute;
  top: 50%;
  width: clamp(2rem, 7vw, 7rem);
  height: 1px;
  content: "";
  background: var(--ink);
}

.route-stop-left {
  margin-right: auto;
  clip-path: polygon(0 0, calc(100% - 1.25rem) 0, calc(100% - 1.25rem) 1.25rem, 100% 1.25rem, 100% calc(100% - 1.25rem), calc(100% - 1.25rem) calc(100% - 1.25rem), calc(100% - 1.25rem) 100%, 0 100%);
}

.route-stop-left::after {
  right: calc(clamp(2rem, 7vw, 7rem) * -1);
}

.route-stop-right {
  margin-right: 0;
  margin-left: auto;
  clip-path: polygon(1.25rem 0, 100% 0, 100% 100%, 1.25rem 100%, 1.25rem calc(100% - 1.25rem), 0 calc(100% - 1.25rem), 0 1.25rem, 1.25rem 1.25rem);
  transform: translateY(2rem);
}

.route-stop-right::after {
  left: calc(clamp(2rem, 7vw, 7rem) * -1);
}

.route-stop.is-active {
  opacity: 1;
  transform: translateY(0);
}

.route-stop-cyan {
  background: color-mix(in srgb, var(--cyan) 38%, var(--paper));
}

.route-stop-orange {
  background: color-mix(in srgb, var(--orange) 12%, var(--paper));
}

.stop-number {
  color: var(--orange);
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.08em;
}

.stop-heading {
  padding: 0 clamp(1rem, 2vw, 2.5rem);
  border-right: 1px solid var(--line);
}

.stop-heading h3 {
  margin: 0;
  font-size: var(--title-md);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.stop-heading p {
  margin: 0.8rem 0 0;
  color: var(--orange);
  font-weight: 760;
}

.stop-body {
  margin: 0;
  padding-left: clamp(1rem, 3vw, 3rem);
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 1.4vw, 1.12rem);
}

.about-ticket {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: clamp(7rem, 17vw, 14rem) minmax(0, 1fr);
  width: min(100%, 86rem);
  margin: var(--space-xl) auto;
  color: var(--paper);
  background: var(--ink);
  opacity: 0;
  clip-path: polygon(1rem 0, calc(100% - 1rem) 0, calc(100% - 1rem) 1rem, 100% 1rem, 100% calc(100% - 1rem), calc(100% - 1rem) calc(100% - 1rem), calc(100% - 1rem) 100%, 1rem 100%, 1rem calc(100% - 1rem), 0 calc(100% - 1rem), 0 1rem, 1rem 1rem);
  transform: translateY(2rem);
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-ticket.is-active {
  opacity: 1;
  transform: translateY(0);
}

.ticket-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 3rem) 1rem;
  color: var(--ink);
  background: var(--yellow);
  border-right: 2px dashed var(--ink);
  font-weight: 900;
  letter-spacing: 0.35em;
  writing-mode: vertical-rl;
}

.ticket-stub i {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.about-copy {
  padding: clamp(2rem, 6vw, 6rem);
}

.about-copy h2 {
  margin: 0 0 clamp(1.5rem, 3vw, 3rem);
  color: var(--yellow-light);
  font-size: var(--title-lg);
  line-height: 1;
  letter-spacing: -0.06em;
}

.about-copy p {
  max-width: 68rem;
  margin: 0;
  color: rgba(255, 249, 236, 0.84);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.95;
}

.about-copy p + p {
  margin-top: 1rem;
}

.advantages {
  position: relative;
  padding: var(--space-xl) var(--page-pad) calc(var(--space-xl) * 1.1);
  background: var(--yellow);
  border-top: 1px solid var(--ink);
  overflow: hidden;
}

.advantage-heading,
.note-rail {
  width: min(100%, var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

.advantage-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-lg);
}

.advantage-heading span {
  width: clamp(2.5rem, 7vw, 7rem);
  height: 0.55rem;
  background: var(--ink);
}

.note-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 clamp(0.5rem, 1.2vw, 1.2rem);
  padding-top: 2.8rem;
}

.note-rail::before {
  position: absolute;
  top: 0;
  right: 2%;
  left: 2%;
  height: 0.25rem;
  content: "";
  background: var(--ink);
}

.advantage-note {
  position: relative;
  min-height: 18rem;
  padding: clamp(1.35rem, 2.4vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0.55rem 0.55rem 0 var(--ink);
  opacity: 0;
  transform: translateY(-1.5rem);
  transition: opacity 240ms ease, transform 320ms ease;
}

.advantage-note::before {
  position: absolute;
  top: -3rem;
  left: 50%;
  width: 1px;
  height: 3rem;
  content: "";
  background: var(--ink);
}

.advantage-note::after {
  position: absolute;
  top: -3.25rem;
  left: calc(50% - 0.25rem);
  width: 0.5rem;
  height: 0.5rem;
  content: "";
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.advantage-note.is-active {
  opacity: 1;
  transform: translateY(0);
}

.advantage-note > span {
  display: block;
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.advantage-note h3 {
  margin: 1rem 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.25;
}

.advantage-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
}

.note-one { grid-column: 1 / span 3; }
.note-two { grid-column: 4 / span 3; margin-top: 4rem; }
.note-three { grid-column: 7 / span 3; margin-top: 1.5rem; }
.note-four { grid-column: 10 / span 3; margin-top: 5.5rem; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem 2rem;
  min-height: 7rem;
  padding: 1.5rem var(--page-pad);
  color: var(--paper);
  background: var(--ink);
  text-align: center;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--yellow-light);
  text-underline-offset: 0.25em;
}

@keyframes open-board {
  to { transform: scaleY(1); }
}

@keyframes draw-route {
  to { transform: scaleX(1); }
}

@media (max-width: 767px) {
  :root {
    --header-height: 4.15rem;
    --page-pad: clamp(1rem, 5vw, 1.5rem);
  }

  .menu-toggle {
    position: relative;
    display: block;
    flex: 0 0 2.75rem;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 0 var(--page-pad);
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-1rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 3.2rem;
    padding: 0.85rem 0;
    border-bottom: 1px dashed var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 2.75rem);
    padding-bottom: 2.25rem;
  }

  .hero::before {
    top: calc(var(--header-height) + 1.3rem);
    right: 0;
    width: 58vw;
    height: 46vh;
  }

  .hero-copy {
    margin-top: auto;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 17vw, 5.2rem);
    line-height: 0.98;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .route-directory {
    width: calc(100% - 0.65rem);
    margin: 1rem 0 0;
    box-shadow: 0.45rem 0.45rem 0 var(--cyan);
  }

  .arrival-board {
    top: var(--header-height);
    right: 0;
    width: 70vw;
    height: 52vh;
  }

  .service-journey {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .service-journey::before {
    top: 9rem;
    bottom: 6rem;
    left: calc(var(--page-pad) + 1rem);
  }

  .section-sign {
    align-items: flex-end;
  }

  .section-sign h2,
  .advantage-heading h2 {
    font-size: clamp(2.45rem, 12vw, 3.6rem);
  }

  .route-stop,
  .route-stop-left,
  .route-stop-right {
    grid-template-columns: 3.2rem minmax(0, 1fr);
    width: calc(100% - 1rem);
    min-height: 0;
    margin-right: 0;
    margin-bottom: 2.3rem;
    margin-left: 1rem;
    padding: 1.35rem 1.15rem;
    clip-path: polygon(0.8rem 0, 100% 0, 100% 100%, 0.8rem 100%, 0.8rem calc(100% - 0.8rem), 0 calc(100% - 0.8rem), 0 0.8rem, 0.8rem 0.8rem);
  }

  .route-stop::after {
    top: 2rem;
    left: -1rem;
    width: 1rem;
  }

  .stop-number {
    align-self: start;
    font-size: 2rem;
  }

  .stop-heading {
    padding: 0 0 1rem 0.75rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stop-heading h3 {
    font-size: clamp(1.5rem, 7vw, 2.1rem);
  }

  .stop-body {
    grid-column: 1 / -1;
    padding: 1rem 0 0;
  }

  .about-ticket {
    display: block;
    margin: var(--space-lg) auto;
    clip-path: polygon(0.7rem 0, calc(100% - 0.7rem) 0, calc(100% - 0.7rem) 0.7rem, 100% 0.7rem, 100% calc(100% - 0.7rem), calc(100% - 0.7rem) calc(100% - 0.7rem), calc(100% - 0.7rem) 100%, 0.7rem 100%, 0.7rem calc(100% - 0.7rem), 0 calc(100% - 0.7rem), 0 0.7rem, 0.7rem 0.7rem);
  }

  .ticket-stub {
    flex-direction: row;
    min-height: 4.3rem;
    padding: 0.8rem 1.25rem;
    border-right: 0;
    border-bottom: 2px dashed var(--ink);
    letter-spacing: 0.25em;
    writing-mode: horizontal-tb;
  }

  .ticket-stub i {
    width: 1.2rem;
    height: 1.2rem;
  }

  .about-copy {
    padding: 2rem 1.35rem 2.5rem;
  }

  .about-copy p {
    font-size: 0.96rem;
    line-height: 1.85;
  }

  .advantages {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .note-rail {
    display: block;
    padding-top: 2rem;
    padding-left: 1.4rem;
  }

  .note-rail::before {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: 0.2rem;
    height: auto;
  }

  .advantage-note,
  .note-two,
  .note-three,
  .note-four {
    min-height: 0;
    margin: 0 0 1.6rem;
    box-shadow: 0.4rem 0.4rem 0 var(--ink);
  }

  .advantage-note::before {
    top: 2rem;
    left: -1.4rem;
    width: 1.4rem;
    height: 1px;
  }

  .advantage-note::after {
    top: 1.75rem;
    left: -1.65rem;
  }

  .site-footer {
    flex-direction: column;
    font-size: 0.9rem;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --header-height: 3.6rem;
  }

  .site-header {
    padding: 0 1.5rem;
  }

  .brand {
    max-width: 44vw;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.85fr);
    grid-template-rows: 1fr;
    gap: 1rem;
    min-height: 100svh;
    padding: calc(var(--header-height) + 1.25rem) 1.5rem 1.1rem;
  }

  .hero-copy {
    align-self: center;
    margin: 0;
  }

  .hero-spotlight {
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9vh, 2.8rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
    white-space: nowrap;
  }

  .hero-subtitle {
    max-width: 30rem;
    margin-top: 0.55rem;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .route-directory {
    align-self: center;
    width: calc(100% - 0.5rem);
    margin: 0;
    padding: 0.35rem 0.65rem;
    box-shadow: 0.35rem 0.35rem 0 var(--cyan);
  }

  .route-directory a {
    grid-template-columns: 2rem 1fr;
    min-height: 1.75rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.68rem;
  }

  .arrival-board {
    right: 1rem;
    width: 42vw;
    height: calc(100% - var(--header-height));
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.85fr);
  }

  .hero h1 {
    font-size: clamp(4.6rem, 10vw, 6.5rem);
  }

  .route-stop {
    grid-template-columns: 5rem minmax(10rem, 0.8fr) minmax(0, 1.2fr);
    width: 94%;
    padding: 1.5rem;
  }

  .note-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .note-one,
  .note-two,
  .note-three,
  .note-four {
    grid-column: auto;
    min-height: 15rem;
    margin-top: 0;
  }
}

@media (min-width: 1100px) {
  .route-stop-left {
    margin-left: 0;
  }

  .route-stop-right {
    margin-right: 0;
  }
}

@media (min-width: 1440px) {
  :root {
    --page-pad: clamp(4rem, 5vw, 6.5rem);
  }

  .hero-copy {
    padding-left: clamp(0rem, 2vw, 2.5rem);
  }

  .route-stop {
    min-height: 17rem;
  }
}

@media (min-aspect-ratio: 2/1) and (min-width: 1000px) {
  .hero {
    min-height: min(100svh, 54rem);
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(4.5rem, 7vw, 7.5rem);
  }

  .route-directory {
    max-width: 33rem;
  }

  .service-journey,
  .advantages {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media (max-aspect-ratio: 3/4) and (min-height: 700px) {
  .hero {
    min-height: 100svh;
    align-content: center;
  }

  .hero-copy {
    margin-top: auto;
  }

  .route-directory {
    margin-bottom: auto;
  }
}

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

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

  .route-stop,
  .about-ticket,
  .advantage-note {
    opacity: 1;
    transform: none;
  }
}
