/* Britain Tour — Road Book */

:root {
  --bt-chalk: #F6F1E7;
  --bt-paper: #FCFAF5;
  --bt-stone: #E6D5B0;
  --bt-stone-deep: #C9A968;
  --bt-ink: #1B211D;
  --bt-ink-2: #55605A;
  --bt-hedge: #1F3A2E;
  --bt-moss: #5F7343;
  --bt-sea: #2E5E6E;
  --bt-heather: #7A5C86;
  --bt-route: #C23B22;
  --bt-route-hover: #A32F19;
  --bt-route-soft: #F0A48F;
  --bt-line: rgba(27, 33, 29, 0.14);
  --bt-on-dark: #F6F1E7;
  --bt-on-dark-2: rgba(246, 241, 231, 0.72);

  --bt-serif-ko: "Noto Serif KR", "AppleMyungjo", "Nanum Myeongjo", "Batang", serif;
  --bt-serif-en: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --bt-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --bt-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t1: 120ms;
  --t2: 240ms;
  --t3: 420ms;
  --t4: 900ms;

  --shadow-ticket: 5px 5px 0 var(--bt-stone-deep);
  --shadow-ticket-up: 7px 7px 0 var(--bt-stone-deep);
  --shadow-float: 0 24px 60px -24px rgba(27, 33, 29, 0.35), 0 0 0 1px rgba(27, 33, 29, 0.08);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bt-chalk);
  background-image: radial-gradient(rgba(27, 33, 29, 0.05) 1px, transparent 1.4px);
  background-size: 24px 24px;
  color: var(--bt-ink);
  font-family: var(--bt-sans);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--bt-serif-ko);
  font-weight: 500;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--bt-route);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 40px, 1160px);
  margin-inline: auto;
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--bt-ink);
  color: var(--bt-chalk);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--t2) var(--ease-io);
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 500 12px/1.4 var(--bt-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bt-moss);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  flex: none;
  background: currentColor;
}
.eyebrow--ink { color: var(--bt-ink); }

h2 {
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--bt-ink-2);
}
.body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--bt-ink-2);
  margin-bottom: 16px;
}

@media (min-width: 720px) {
  .lead { font-size: 19px; }
}

/* ---------- Photo credit ---------- */

.photo { margin: 0; min-width: 0; }
.photo-credit {
  margin: 8px 0 0;
  font: 400 12px/1.5 var(--bt-sans);
  letter-spacing: 0.01em;
  color: var(--bt-ink-2);
}
.photo-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.photo-credit a:hover { color: var(--bt-ink); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 9999px;
  font: 600 16px/1.2 var(--bt-sans);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--t1) var(--ease-io),
    background-color var(--t2) var(--ease-io),
    border-color var(--t2) var(--ease-io),
    color var(--t2) var(--ease-io);
}
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform var(--t2) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary { background: var(--bt-route); color: #fff; }
.btn--primary:hover { background: var(--bt-route-hover); }

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

.btn--ink { background: var(--bt-ink); color: var(--bt-chalk); }
.btn--ink:hover { background: #000; }

.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: 600 15px/1.4 var(--bt-sans);
  color: var(--bt-ink);
  text-decoration: none;
  transition: color var(--t2) var(--ease-io);
}
.textlink .u {
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
}
.textlink .arrow {
  display: inline-block;
  transition: transform var(--t2) var(--ease-out);
}
.textlink:hover { color: var(--bt-route-hover); }
.textlink:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 76px;
  pointer-events: none;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 60px;
  background: rgba(246, 241, 231, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--bt-line);
  opacity: 0;
  transition: opacity var(--t3) var(--ease-io);
}
.nav.is-scrolled::before,
.nav.is-open::before { opacity: 1; }

.nav__inner {
  position: relative;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  pointer-events: auto;
  transition: transform var(--t3) var(--ease-io);
}
.nav.is-scrolled .nav__inner,
.nav.is-open .nav__inner { transform: translateY(-8px); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--bt-ink);
  text-decoration: none;
  flex: none;
  transition: color var(--t3) var(--ease-io);
}
.wordmark__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--bt-route);
  background: var(--bt-paper);
  flex: none;
}
.wordmark__en {
  font: 400 22px/1 var(--bt-serif-en);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.wordmark__en i { font-style: italic; }
.wordmark__ko {
  font: 500 12px/1 var(--bt-sans);
  letter-spacing: 0.04em;
  color: var(--bt-ink-2);
  white-space: nowrap;
  padding-top: 3px;
}

.nav__menu { display: none; }
.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 15px/1 var(--bt-sans);
  color: var(--bt-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t3) var(--ease-io);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t2) var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a.is-current::after { transform: scaleX(1); }

.nav__cta { display: none; }

.nav__toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1.5px solid var(--bt-ink);
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--bt-ink);
  transition: transform var(--t2) var(--ease-io);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Nav over hero photo (top of page only) */
.js .nav:not(.is-scrolled):not(.is-open) .wordmark,
.js .nav:not(.is-scrolled):not(.is-open) .nav__links a { color: var(--bt-on-dark); }
.js .nav:not(.is-scrolled):not(.is-open) .wordmark__ko { color: var(--bt-on-dark-2); }
.js .nav:not(.is-scrolled):not(.is-open) .nav__toggle { border-color: var(--bt-on-dark); }
.js .nav:not(.is-scrolled):not(.is-open) .nav__toggle span { background: var(--bt-on-dark); }
.js .nav:not(.is-scrolled):not(.is-open) :focus-visible { outline-color: var(--bt-route-soft); }

@media (min-width: 1024px) {
  .nav__menu { display: block; margin-inline: auto; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* ---------- Sheet (mobile menu) ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 88px 20px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background-color: var(--bt-chalk);
  background-image: radial-gradient(rgba(27, 33, 29, 0.05) 1px, transparent 1.4px);
  background-size: 24px 24px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity var(--t2) var(--ease-io),
    transform var(--t2) var(--ease-io),
    visibility 0s linear var(--t2);
}
.sheet.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
@media (min-width: 1024px) {
  .sheet { display: none; }
}

.sheet__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sheet__links li {
  position: relative;
  padding-left: 32px;
}
.sheet__links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid var(--bt-route);
  background: var(--bt-paper);
  z-index: 1;
}
.sheet__links li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 2px;
  height: 100%;
  background: var(--bt-route);
}
.sheet__links li:last-child::after { display: none; }
.sheet__links li:last-child::before { background: var(--bt-route); }
.sheet__links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 44px;
  padding: 11px 0;
  font: 500 28px/1.25 var(--bt-serif-ko);
  color: var(--bt-ink);
  text-decoration: none;
}
.sheet__num {
  font: 500 12px/1 var(--bt-mono);
  letter-spacing: 0.14em;
  color: var(--bt-ink-2);
}
.sheet__actions {
  margin-top: auto;
  padding-top: 32px;
  display: grid;
  gap: 10px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: min(100vh, 720px);
  min-height: min(100svh, 720px);
  background: var(--bt-hedge);
  color: var(--bt-on-dark);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 22, 18, 0.45) 0%, rgba(14, 22, 18, 0) 24%),
    linear-gradient(0deg, rgba(14, 22, 18, 0.9) 0%, rgba(14, 22, 18, 0.74) 42%, rgba(14, 22, 18, 0.18) 78%, rgba(14, 22, 18, 0) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 104px;
  padding-bottom: 56px;
}
.hero__coord { display: none; }
.hero .eyebrow { color: var(--bt-on-dark-2); }
.hero :focus-visible { outline-color: var(--bt-route-soft); }

.hero__title {
  font-size: clamp(34px, 9.5vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--bt-on-dark);
}
.line {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.line__in {
  display: inline-block;
  animation: line-up var(--t4) var(--ease-out) both;
  animation-delay: calc(150ms + var(--i, 0) * 120ms);
}
.accent { font-style: normal; color: var(--bt-route); }
.hero .accent { color: var(--bt-route-soft); }

.hero__lead { max-width: 34em; margin-bottom: 28px; color: rgba(246, 241, 231, 0.86); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__actions .btn { flex: 1 1 140px; }
.hero .btn--ghost { color: var(--bt-on-dark); border-color: rgba(246, 241, 231, 0.75); }
.hero .btn--ghost:hover { background: var(--bt-chalk); border-color: var(--bt-chalk); color: var(--bt-ink); }
.hero-fade {
  animation: fade-up var(--t4) var(--ease-out) both;
  animation-delay: 520ms;
}
.hero .eyebrow.hero-fade { animation-delay: 60ms; }

.hero__credit {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 2;
  margin: 0;
  max-width: calc(100% - 28px);
  font-size: 11px;
  text-align: right;
  color: var(--bt-on-dark-2);
}
.hero__credit a:hover { color: var(--bt-on-dark); }

.road-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1800ms var(--ease-io) 400ms both;
}
.pin {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: pin 600ms var(--ease-out) both;
  animation-delay: var(--d, 1s);
}

@media (min-width: 720px) {
  .hero__title { font-size: clamp(44px, 6.4vw, 56px); line-height: 1.14; }
  .hero__actions .btn { flex: 0 0 auto; }
}

@media (min-width: 1024px) {
  .hero { min-height: clamp(680px, 100vh, 960px); min-height: clamp(680px, 100svh, 960px); }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(14, 22, 18, 0.45) 0%, rgba(14, 22, 18, 0) 22%),
      linear-gradient(90deg, rgba(14, 22, 18, 0.62) 0%, rgba(14, 22, 18, 0.2) 55%, rgba(14, 22, 18, 0) 75%),
      linear-gradient(0deg, rgba(14, 22, 18, 0.82) 0%, rgba(14, 22, 18, 0.4) 40%, rgba(14, 22, 18, 0) 70%);
  }
  .hero__inner {
    justify-content: space-between;
    padding-top: 124px;
    padding-bottom: 104px;
  }
  .hero__coord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-end;
    padding: 8px 14px;
    border: 1px solid rgba(246, 241, 231, 0.28);
    border-radius: 9999px;
    background: rgba(14, 22, 18, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font: 500 12px/1.2 var(--bt-mono);
    letter-spacing: 0.14em;
    color: var(--bt-on-dark);
  }
  .hero__coord svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--bt-on-dark-2);
    stroke-width: 1.4;
  }
  .hero__copy { max-width: 760px; }
  .hero__title {
    font-size: clamp(56px, 6.4vw, 84px);
    line-height: 1.12;
  }
  .line { display: block; width: max-content; max-width: 100%; }
  .hero__lead { max-width: 30em; }
  .hero__credit { right: 24px; bottom: 16px; font-size: 12px; }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: 72px;
}
@media (min-width: 720px) {
  .section { padding-block: 96px; }
}
@media (min-width: 1024px) {
  .section { padding-block: 128px; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t4) var(--ease-out), transform var(--t4) var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- About ---------- */

.about__grid { display: grid; gap: 8px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 9999px;
  background: var(--bt-stone);
  font: 500 15px/1 var(--bt-sans);
  color: var(--bt-ink);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 56px 0 0;
  border-top: 1.5px solid var(--bt-ink);
  border-bottom: 1.5px solid var(--bt-ink);
}
.fact {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px 12px;
}
.fact:nth-child(even) { border-left: 1px solid var(--bt-line); }
.fact:nth-child(n+3) { border-top: 1px solid var(--bt-line); }
.fact dd {
  margin: 0;
  font: 500 clamp(19px, 5.4vw, 22px)/1.25 var(--bt-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--bt-ink);
}
.fact dt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--bt-ink-2);
}

@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, auto); }
  .fact { padding: 28px 24px; }
  .fact:nth-child(n+3) { border-top: 0; }
  .fact + .fact { border-left: 1px solid var(--bt-line); }
}
@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
    align-items: end;
  }
  .about__head { grid-column: 1 / span 6; }
  .about__head h2 { margin-bottom: 0; }
  .about__body { grid-column: 8 / span 5; }
  .facts { margin-top: 80px; }
  .fact dd { font-size: 28px; }
}

/* ---------- Route line ---------- */

.route {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: grid;
}
.route__stop {
  position: relative;
  padding: 0 0 22px 30px;
}
.route__stop:last-child { padding-bottom: 0; }
.route__stop::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bt-route);
  background: var(--bt-paper);
  transform: scale(var(--dot, 1));
  transition: transform var(--t3) var(--ease-out) calc(120ms + var(--i, 0) * 80ms);
}
.route__stop::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 2px;
  height: 100%;
  background: var(--bt-route);
  transform-origin: top;
  transform: scaleY(var(--seg, 1));
  transition: transform var(--t3) var(--ease-io) calc(var(--i, 0) * 80ms);
}
.route__stop:last-child::after { display: none; }
.route__stop--end::before { background: var(--bt-route); }
.route__stop--open::after {
  background: repeating-linear-gradient(180deg, var(--bt-route) 0 5px, transparent 5px 10px);
}
.route__stop--more::before { display: none; }
.route__stop--more .route__ko {
  font: 500 15px/24px var(--bt-mono);
  color: var(--bt-route);
}

.route__ko {
  display: block;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  color: var(--bt-ink);
}
.route__en {
  display: block;
  font-family: var(--bt-serif-en);
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bt-ink-2);
}
.route__sub {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bt-ink-2);
}

.js .route { --seg: 0; --dot: 0; }
.js .route.is-in { --seg: 1; --dot: 1; }

@media (min-width: 720px) {
  .route--auto {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
  .route--auto .route__stop { padding: 26px 14px 0 0; }
  .route--auto .route__stop::before { top: 0; }
  .route--auto .route__stop::after {
    left: 6px;
    top: 5px;
    width: 100%;
    height: 2px;
    transform-origin: left;
    transform: scaleX(var(--seg, 1));
  }
  .route--auto .route__stop--open::after {
    background: repeating-linear-gradient(90deg, var(--bt-route) 0 5px, transparent 5px 10px);
  }
  .route--auto .route__stop--more { padding: 0 0 0 16px; }
  .route--auto .route__stop--more .route__ko { line-height: 12px; }
}

.route--dark .route__stop::before { background: var(--bt-hedge); border-color: var(--bt-route-soft); }
.route--dark .route__stop::after { background: var(--bt-route-soft); }
.route--dark .route__stop--end::before { background: var(--bt-route-soft); }
.route--dark .route__stop--open::after {
  background: repeating-linear-gradient(180deg, var(--bt-route-soft) 0 5px, transparent 5px 10px);
}
.route--dark .route__ko { color: var(--bt-on-dark); }
.route--dark .route__en,
.route--dark .route__sub { color: var(--bt-on-dark-2); }
.route--dark .route__stop--more .route__ko { color: var(--bt-route-soft); }

/* ---------- Split (Cotswold / London) ---------- */

.split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin: 0 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--bt-line);
  border-bottom: 1px solid var(--bt-line);
}
.timeline__time {
  font: 500 22px/1.2 var(--bt-mono);
  font-variant-numeric: tabular-nums;
  color: var(--bt-ink);
  white-space: nowrap;
}
.timeline__label { font-size: 14px; color: var(--bt-ink-2); }

.note {
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 2px solid var(--bt-stone-deep);
  font-size: 15px;
  line-height: 1.7;
  color: var(--bt-ink-2);
}

.illus {
  margin: 0;
  border: 1.5px solid var(--bt-ink);
  border-radius: 6px;
  overflow: hidden;
  background: #EFE3C6;
}
.illus svg { width: 100%; height: auto; }
.illus__label {
  font-family: var(--bt-sans);
  font-weight: 600;
  font-size: 30px;
  fill: var(--bt-ink);
  paint-order: stroke;
  stroke: var(--bt-paper);
  stroke-width: 6px;
  stroke-linejoin: round;
}
.illus__label--en {
  font-family: var(--bt-serif-en);
  font-style: italic;
  font-weight: 400;
}
@media (min-width: 720px) {
  .illus__label { font-size: 20px; }
}

/* Photo inside an illustration frame */
.photo__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 700 / 480;
  object-fit: cover;
}

/* Photo behind an illustration (London map) */
.illus--layered { position: relative; }
.illus__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.illus--layered svg { position: relative; z-index: 1; }

.js .illus .draw,
.js .illus-draw .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1400ms var(--ease-io) 200ms;
}
.js .illus.is-in .draw,
.js .illus-draw.is-in .draw { stroke-dashoffset: 0; }
.js .illus .illus__stop,
.js .illus-draw .illus__stop {
  opacity: 0;
  transition: opacity var(--t3) var(--ease-out) calc(500ms + var(--i, 0) * 240ms);
}
.js .illus.is-in .illus__stop,
.js .illus-draw.is-in .illus__stop { opacity: 1; }

.cotswold {
  background: var(--bt-paper);
  border-top: 1px solid var(--bt-line);
}
.contours {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.contours path {
  fill: none;
  stroke: var(--bt-stone-deep);
  stroke-width: 1;
  opacity: 0.45;
  vector-effect: non-scaling-stroke;
}

.london__route {
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--bt-line);
}

@media (min-width: 720px) {
  .timeline__time { font-size: 26px; }
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
    align-items: start;
  }
  .cotswold .split__text { grid-column: 1 / span 5; grid-row: 1; padding: 24px 16px 0 0; }
  .cotswold .split__art { grid-column: 6 / span 7; grid-row: 1; margin-top: -168px; }
  .london .split__art { grid-column: 1 / span 7; grid-row: 1; }
  .london .split__text { grid-column: 8 / span 5; grid-row: 1; padding: 24px 0 0 24px; align-self: center; }
  .timeline__time { font-size: 28px; }
  .london__route { margin-top: 64px; }
}

/* ---------- Day trips ---------- */

.daytrips__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.daytrips__list { position: relative; }
.rail { display: none; }

.daytrips__photo { margin-top: 28px; }
.daytrips__photo .photo__frame img {
  aspect-ratio: 4 / 3;
  object-position: 50% 55%;
}

/* 휴대폰·태블릿: 옆으로 넘기는 슬라이드 (다음 장이 살짝 보임). 1024px부터는 세로 목록 */
.courses {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin: 0 -20px;
  padding: 4px 20px 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.courses::-webkit-scrollbar { display: none; }
.courses > li { position: relative; display: flex; flex: 0 0 84%; scroll-snap-align: start; }
.courses > li > .course { flex: 1; min-width: 0; }
.js .courses > li.reveal { opacity: 1; transform: none; }
.courses-count {
  margin: 12px 0 0;
  font: 500 12px/1.4 var(--bt-mono);
  letter-spacing: 0.14em;
  color: var(--bt-moss);
}
@media (min-width: 1024px) {
  .courses {
    display: grid;
    gap: 24px;
    margin: 0;
    padding: 0;
    overflow: visible;
    overscroll-behavior-x: auto;
    scroll-snap-type: none;
    scroll-padding-left: 0;
  }
  .courses > li { display: list-item; flex: initial; scroll-snap-align: none; }
  .js .courses > li.reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }
  .courses-count { display: none; }
}

.course {
  --stub: 64px;
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 14px;
  padding: 24px 20px 18px;
  background: var(--bt-paper);
  border: 1.5px solid var(--bt-ink);
  border-radius: 6px;
  box-shadow: var(--shadow-ticket);
  transition: transform var(--t2) var(--ease-out), box-shadow var(--t2) var(--ease-out);
}
@media (hover: hover) {
  .course:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-ticket-up);
  }
}
.course__stub {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--stub);
  width: 0;
  pointer-events: none;
}
.course__stub::before,
.course__stub::after {
  content: "";
  position: absolute;
  left: -8px;
  width: 16px;
  height: 9px;
  background: var(--bt-chalk);
  border: 1.5px solid var(--bt-ink);
}
.course__stub::before {
  top: -1.5px;
  border-top: 0;
  border-radius: 0 0 9px 9px;
}
.course__stub::after {
  bottom: -1.5px;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}
.course::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: var(--stub);
  border-left: 1.5px dashed rgba(27, 33, 29, 0.3);
}
.course__mark {
  align-self: start;
  font: italic 400 40px/0.9 var(--bt-serif-en);
  color: var(--bt-route);
  padding-top: 2px;
}
.course__body { min-width: 0; }
.course__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 48px 10px 0;
  font: 500 12px/1 var(--bt-mono);
  letter-spacing: 0.14em;
  color: var(--bt-moss);
}
.course__tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border: 1px solid currentColor;
  border-radius: 9999px;
  font: 500 12px/1 var(--bt-sans);
  letter-spacing: 0.02em;
}
.course h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-right: 44px;
}
.course .route { margin: 20px 0 14px; }
.course__note {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bt-ink-2);
}
.course__glyph {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--bt-ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glyph-dot { fill: var(--bt-route); stroke: none; }

/* Course card with a photo band on top */
.course--photo { --band: 132px; }
.course--photo .course__stub { z-index: 2; }
.course__band {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  margin: -24px -20px 20px;
  border-radius: 4.5px 4.5px 0 0;
  border-bottom: 1.5px solid var(--bt-ink);
  overflow: hidden;
  background: var(--bt-paper);
}
.course__band img {
  width: 100%;
  height: var(--band);
  object-fit: cover;
  object-position: 50% 55%;
}
.course__band .photo-credit {
  margin: 0;
  padding: 6px 20px;
  font-size: 11px;
  line-height: 16px;
}
.course--photo .course__glyph { top: calc(var(--band) + 29.5px + 18px); }

@media (min-width: 720px) {
  .course {
    --stub: 144px;
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 32px;
    padding: 30px 32px 24px;
  }
  .course__mark { font-size: 72px; }
  .course__glyph { top: 26px; right: 26px; width: 48px; height: 48px; }
  .course__meta { margin-right: 64px; }
  .course h3 { margin-right: 64px; }
  .course--photo { --band: 180px; }
  .course__band { margin: -30px -32px 24px; }
  .course__band .photo-credit { padding: 6px 32px; }
  .course--photo .course__glyph { top: calc(var(--band) + 29.5px + 26px); }
}

@media (min-width: 1024px) {
  .daytrips__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
    align-items: start;
  }
  .daytrips__intro {
    grid-column: 1 / span 4;
    position: sticky;
    top: 112px;
  }
  .daytrips__photo .photo__frame img {
    aspect-ratio: auto;
    height: min(46vh, 460px);
  }
  .daytrips__list {
    grid-column: 5 / span 8;
    padding-left: 56px;
  }
  .rail {
    display: block;
    position: absolute;
    left: 16px;
    top: 36px;
    bottom: 36px;
    width: 2px;
    background: var(--bt-line);
  }
  .rail__fill {
    position: absolute;
    inset: 0;
    background: var(--bt-route);
    transform-origin: top;
    transform: scaleY(var(--p, 1));
  }
  .courses > li::before {
    content: "";
    position: absolute;
    left: -45px;
    top: 36px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bt-route);
    background: var(--bt-paper);
    transition: background-color var(--t3) var(--ease-io) 200ms;
  }
  .courses > li.is-in::before { background: var(--bt-route); }
  .course h3 { font-size: 26px; }
}

/* ---------- Scotland ---------- */

.scotland {
  background: var(--bt-hedge);
  color: var(--bt-on-dark);
  overflow: hidden;
}
.scotland .eyebrow { color: var(--bt-route-soft); }
.scotland h2 { color: var(--bt-on-dark); }
.scotland .body { color: var(--bt-on-dark-2); }
.scotland :focus-visible { outline-color: var(--bt-route-soft); }

.scotland__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.scotland__note {
  margin: 0 0 28px;
  padding: 14px 18px;
  border-left: 2px solid var(--bt-heather);
  background: rgba(122, 92, 134, 0.18);
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--bt-on-dark);
}

.terrain {
  position: relative;
  margin: 0;
  border: 1px solid rgba(246, 241, 231, 0.18);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.1);
}
.terrain__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.terrain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(31, 58, 46, 0.3) 0%, rgba(31, 58, 46, 0.62) 100%);
  pointer-events: none;
}
.terrain svg { position: relative; z-index: 2; width: 100%; height: auto; }
.terrain [data-contour-layer] path {
  fill: none;
  stroke: rgba(246, 241, 231, 0.32);
  stroke-width: 1;
  stroke-linejoin: miter;
}
.terrain [data-contour-layer] path.is-accent {
  stroke: var(--bt-heather);
  stroke-width: 1.6;
  opacity: 0.95;
}

@media (min-width: 1024px) {
  .scotland__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
    align-items: center;
  }
  .scotland__text { grid-column: 1 / span 6; padding-right: 24px; }
  .terrain { grid-column: 7 / span 6; }
}

/* ---------- Vehicles & services ---------- */

.block-head { max-width: 760px; }

.vcards, .scards {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.vcard {
  height: 100%;
  padding: 28px 24px 22px;
  background: var(--bt-paper);
  border: 1.5px solid var(--bt-ink);
  border-radius: 6px;
  box-shadow: var(--shadow-ticket);
  transition: transform var(--t2) var(--ease-out), box-shadow var(--t2) var(--ease-out);
}
@media (hover: hover) {
  .vcard:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-ticket-up);
  }
}
.vcard__art {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto 24px;
}
.vcard__body {
  fill: none;
  stroke: var(--bt-ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.vcard__ground {
  fill: none;
  stroke: var(--bt-route);
  stroke-width: 2;
}
.vcard__info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 1.5px dashed rgba(27, 33, 29, 0.3);
}
.vcard__title {
  font: 400 24px/1.2 var(--bt-serif-en);
  letter-spacing: 0.005em;
}
.vcard__label {
  font: 500 13px/1.2 var(--bt-mono);
  letter-spacing: 0.1em;
  color: var(--bt-moss);
}

.services { margin-top: 96px; }
.scard {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 24px 20px;
  background: var(--bt-paper);
  border: 1px solid var(--bt-line);
  border-radius: 6px;
}
.scard__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--bt-ink);
  border-radius: 50%;
}
.scard__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--bt-ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.scard h3 { font-size: 22px; line-height: 1.3; }
.scard .body { margin: 0; }
.scard .textlink { margin-top: auto; }

@media (min-width: 720px) {
  .vcards, .scards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .vcard { padding: 36px 32px 26px; }
  .scard { padding: 32px 32px 24px; }
}
@media (min-width: 1024px) {
  .vcard__title { font-size: 26px; }
  .scard h3 { font-size: 26px; }
  .services { margin-top: 128px; }
}

/* ---------- Fee band ---------- */

.fee {
  background: var(--bt-stone);
  padding-block: 64px;
}
.fee__inner { display: grid; gap: 28px; justify-items: start; }
.fee__title {
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.25;
  margin: 0 0 12px;
}
.fee__sub { font-size: 16px; color: var(--bt-ink-2); }
.fee .eyebrow { margin-bottom: 14px; }

@media (min-width: 1024px) {
  .fee { padding-block: 96px; }
  .fee__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

/* ---------- Contact ---------- */

.contact__grid { display: grid; gap: 48px; }

.contact-rows {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--bt-line);
}
.contact-rows > li { border-bottom: 1px solid var(--bt-line); }
.crow {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 10px;
  align-items: center;
  padding: 18px 0;
  color: var(--bt-ink);
  text-decoration: none;
}
.crow__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--bt-ink);
  border-radius: 50%;
  transition: background-color var(--t2) var(--ease-io), color var(--t2) var(--ease-io);
}
.crow__label {
  display: block;
  font: 600 13px/1.4 var(--bt-sans);
  color: var(--bt-ink-2);
}
.crow__value {
  display: block;
  font: 500 17px/1.45 var(--bt-mono);
  color: var(--bt-ink);
}
.crow__action { grid-column: 2; justify-self: start; }
.crow__pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--bt-ink);
  border-radius: 9999px;
  font: 600 14px/1 var(--bt-sans);
  white-space: nowrap;
  transition: background-color var(--t2) var(--ease-io), color var(--t2) var(--ease-io);
}
a.crow:hover .crow__pill,
a.crow:hover .crow__icon { background: var(--bt-ink); color: var(--bt-chalk); }

@media (min-width: 480px) {
  .crow { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .crow__action { grid-column: auto; justify-self: end; }
}

.form-card {
  padding: 28px 20px;
  background: var(--bt-paper);
  border-radius: 20px;
  box-shadow: var(--shadow-float);
}
.form-card__title { font-size: 24px; line-height: 1.3; }
.form-card__desc {
  margin: 8px 0 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--bt-ink-2);
}
.form-card__fine {
  margin-top: 20px;
  font-size: 14px;
  color: var(--bt-ink-2);
}

.notice {
  margin: 0 0 24px;
  padding: 20px;
  border-radius: 6px;
  background: var(--bt-stone);
  animation: fade-up var(--t3) var(--ease-out) both;
}
.notice:focus { outline: 2px solid var(--bt-route); outline-offset: 2px; }
.notice__text {
  margin-bottom: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--bt-ink);
}
.notice__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.form { display: grid; gap: 18px; }
.field { min-width: 0; }
.field label {
  display: block;
  margin-bottom: 8px;
  font: 600 13px/1.4 var(--bt-sans);
  color: var(--bt-ink);
}
.input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--bt-line);
  border-radius: 10px;
  background: #fff;
  color: var(--bt-ink);
  font: 400 16px/1.4 var(--bt-sans);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--t1) var(--ease-io), box-shadow var(--t2) var(--ease-io);
}
.input:hover { border-color: rgba(27, 33, 29, 0.32); }
.input:focus {
  outline: 2px solid var(--bt-route);
  outline-offset: 2px;
  border-color: var(--bt-ink);
}
.input::placeholder { color: #6F7872; opacity: 1; }
select.input {
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231B211D' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
  cursor: pointer;
}
select.input.is-preset { border-color: var(--bt-route); box-shadow: 0 0 0 3px rgba(194, 59, 34, 0.14); }
input[type="date"].input { line-height: 1.2; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; }
textarea.input { min-height: 132px; resize: vertical; line-height: 1.6; }
.form__submit { width: 100%; margin-top: 4px; }

@media (min-width: 720px) {
  .form-card { padding: 40px; }
  .form-card__title { font-size: 26px; }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .field--full, .form__submit { grid-column: 1 / -1; }
  .form__submit { width: auto; justify-self: start; }
}
@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
    align-items: start;
  }
  .contact__info { grid-column: 1 / span 5; padding-right: 24px; }
  .form-card { grid-column: 6 / span 7; }
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  background: var(--bt-hedge);
  color: var(--bt-on-dark);
  padding: 72px 0 calc(32px + 60px + env(safe-area-inset-bottom));
}
.footer__rule {
  position: absolute;
  top: -7px;
  left: 0;
  right: 0;
}
.route-rule {
  display: flex;
  align-items: center;
  height: 14px;
}
.route-rule__line { flex: 1; height: 2px; background: var(--bt-route); }
.route-rule__dot {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--bt-route);
  background: var(--bt-paper);
}
.route-rule__dot--end { background: var(--bt-route); }

.footer :focus-visible { outline-color: var(--bt-route-soft); }
.footer .wordmark { color: var(--bt-on-dark); }
.footer .wordmark__ko { color: var(--bt-on-dark-2); }
.footer .wordmark__dot { background: var(--bt-hedge); border-color: var(--bt-route-soft); }

.footer__grid { display: grid; gap: 36px; }
.footer__intro {
  margin: 16px 0 6px;
  font-size: 15px;
  color: var(--bt-on-dark);
}
.footer__note { font-size: 14px; color: var(--bt-on-dark-2); }
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: 500 15px/1.3 var(--bt-sans);
  color: var(--bt-on-dark);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: color var(--t2) var(--ease-io);
}
.footer__link:hover { color: var(--bt-route-soft); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 241, 231, 0.16);
  font-size: 14px;
  color: var(--bt-on-dark-2);
}
.footer__bottom .footer__link { font-size: 14px; }
.footer__credit {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--bt-on-dark-2);
}

@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer { padding: 96px 0 32px; }
}

/* ---------- Mobile bottom bar ---------- */

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: calc(60px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bt-paper);
  box-shadow: 0 -1px 0 var(--bt-line), 0 -24px 60px -24px rgba(27, 33, 29, 0.35);
  transform: translateY(105%);
  visibility: hidden;
  transition:
    transform var(--t3) var(--ease-io),
    visibility 0s linear var(--t3);
}
.bar.is-on {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}
.bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 60px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: 600 13px/1.1 var(--bt-sans);
  color: var(--bt-ink);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bar__item:focus-visible { outline-offset: -4px; }
.bar__item + .bar__item { border-left: 1px solid var(--bt-line); }
.bar__item--primary { background: var(--bt-route); color: #fff; }
.bar__item--primary:focus-visible { outline-color: #fff; }

@media (min-width: 1024px) {
  .bar { display: none; }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 70;
  width: max-content;
  max-width: min(calc(100vw - 32px), 520px);
  padding: 14px 22px;
  border-radius: 28px;
  background: var(--bt-hedge);
  color: var(--bt-chalk);
  font: 500 14px/1.5 var(--bt-sans);
  text-align: center;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity var(--t2) var(--ease-io), transform var(--t3) var(--ease-out);
}
.toast:empty { padding: 0; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) {
  .toast { bottom: 32px; }
}

/* ---------- Keyframes ---------- */

@keyframes line-up {
  from { transform: translateY(108%); }
  to { transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes pin {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 100ms !important;
    transition-delay: 0s !important;
  }
  .line__in { transform: none; }
  .road-draw { stroke-dashoffset: 0; }
  .pin { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .route { --seg: 1; --dot: 1; }
  .js .illus .draw,
  .js .illus-draw .draw { stroke-dashoffset: 0; }
  .js .illus .illus__stop,
  .js .illus-draw .illus__stop { opacity: 1; }
  .rail__fill { transform: none; }
  .course:hover, .vcard:hover { transform: none; }
  .btn:hover .arrow, .textlink:hover .arrow { transform: none; }
}

/* 사진 판 고르기용 감싸개 (optimize_images.py): 배치에 끼지 않음 */
picture{display:contents}
