:root {
  --bg: #f4ecdf;
  --bg-deep: #d8c8af;
  --panel: #f6ede0;
  --panel-strong: #fbf3e8;
  --surface: #f6ede0;
  --surface-strong: #fbf3e8;
  --ink: #172219;
  --muted: #57615a;
  --line: rgba(91, 79, 63, 0.14);
  --shadow: 0 28px 72px rgba(49, 35, 16, 0.14);
  --radius-xl: 14px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --route-accent: #e0712b;
  --route-accent-soft: rgba(224, 113, 43, 0.14);
  --route-accent-strong: rgba(224, 113, 43, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.5), transparent 44%),
    linear-gradient(180deg, #f7f1e7 0%, #efe3d1 45%, #f7f1e7 100%);
  font-family: "Sora", sans-serif;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

code {
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  background: rgba(23, 34, 25, 0.06);
  font-size: 0.85em;
}

.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  overflow: clip;
}

.hero-map-wrap,
.hero-map,
.hero-grid,
.hero-scrim,
.hero-noise,
.map-dim,
.route-callout,
.intro-overlay {
  position: absolute;
  inset: 0;
}

.hero-map {
  background: linear-gradient(180deg, #ede1cc 0%, #efe5d5 100%);
}

.hero-map .maplibregl-canvas {
  filter: saturate(1.08) contrast(1.12);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 85%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-scrim {
  background:
    radial-gradient(circle at 82% 16%, rgba(44, 140, 118, 0.1), transparent 24%),
    linear-gradient(
      135deg,
      rgba(20, 25, 22, 0.38) 0%,
      rgba(20, 25, 22, 0.12) 36%,
      rgba(20, 25, 22, 0.24) 100%
    );
  pointer-events: none;
}

.hero-noise {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px),
    radial-gradient(circle at 68% 26%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 42% 64%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px);
  background-size: 160px 160px, 240px 240px, 220px 220px;
  opacity: 0.28;
  mix-blend-mode: screen;
  pointer-events: none;
}

.map-dim {
  z-index: 2;
  background:
    radial-gradient(circle at center, rgba(10, 16, 12, 0.04) 0%, rgba(10, 16, 12, 0.22) 100%),
    linear-gradient(180deg, rgba(10, 16, 12, 0.14), rgba(10, 16, 12, 0.42));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.map-dim.active {
  opacity: 1;
}

.route-callout {
  inset: 0 auto auto 0;
  width: 0;
  height: 0;
  z-index: 2;
  display: none;
  pointer-events: none;
}

.route-callout.visible {
  display: block;
}

.co-dot {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: co-dot-pop 0.26s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.co-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: co-ripple 1.75s ease-out 0.22s infinite;
}

.co-vline {
  position: absolute;
  top: -68px;
  left: -1px;
  width: 2px;
  height: 68px;
  transform-origin: bottom center;
  animation: co-grow-v 0.28s ease 0.12s both;
}

.co-hline {
  position: absolute;
  top: -70px;
  right: 0;
  width: 280px;
  height: 2px;
  transform-origin: right center;
  animation: co-grow-h-left 0.3s ease 0.34s both;
}

.route-callout[data-dir="right"] .co-hline {
  right: auto;
  left: 0;
  transform-origin: left center;
  animation-name: co-grow-h-right;
}

.co-text {
  position: absolute;
  top: -72px;
  right: 0;
  width: 280px;
  transform: translateY(-100%);
  text-align: right;
  padding-bottom: 7px;
}

.route-callout[data-dir="right"] .co-text {
  right: auto;
  left: 0;
  text-align: left;
}

.co-name,
.co-sub,
.co-pills {
  opacity: 0;
  animation: co-fade-up 0.36s ease forwards;
}

.co-name {
  display: block;
  color: #fff8ee;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.92);
  animation-delay: 0.58s;
}

.co-sub {
  display: block;
  margin-top: 0.42rem;
  color: rgba(255, 248, 238, 0.82);
  font-size: 0.76rem;
  line-height: 1.35;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.78);
  animation-delay: 0.68s;
}

.co-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  justify-content: flex-end;
  margin-top: 0.55rem;
  animation-delay: 0.76s;
}

.route-callout[data-dir="right"] .co-pills {
  justify-content: flex-start;
}

.co-pill {
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.12);
  border: 1px solid rgba(255, 248, 238, 0.18);
  color: #fff8ee;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.co-pill.is-accent {
  background: rgba(255, 248, 238, 0.04);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: clamp(0.85rem, 1.4vw, 1.2rem);
  align-items: end;
  padding: clamp(0.85rem, 1.4vw, 1.2rem);
  pointer-events: none;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(23, 34, 25, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-head,
.route-panel,
.camera-debug,
.route-switcher {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
  pointer-events: auto;
}

body.is-ready .hero-head,
body.is-ready .route-panel,
body.is-ready .camera-debug,
body.is-ready .route-switcher {
  opacity: 1;
  transform: translateY(0);
}

.hero-head {
  position: absolute;
  left: clamp(0.85rem, 1.4vw, 1.2rem);
  top: clamp(0.85rem, 1.4vw, 1.2rem);
  z-index: 4;
  width: auto;
  max-width: calc(100vw - 340px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.camera-debug {
  position: absolute;
  left: clamp(0.85rem, 1.4vw, 1.2rem);
  top: calc(clamp(0.85rem, 1.4vw, 1.2rem) + 5.2rem);
  z-index: 4;
  width: min(280px, calc(100vw - 2.4rem));
  padding: 0.72rem 0.78rem 0.78rem;
  background: var(--surface-strong);
  pointer-events: auto;
}

.camera-debug-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.camera-debug-readout {
  margin: 0.5rem 0 0;
  padding: 0.62rem 0.7rem;
  border-radius: 10px;
  background: #2b342d;
  color: #fdf7ee;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.76rem;
  line-height: 1.48;
  white-space: pre-wrap;
  word-break: break-word;
}

.camera-debug-copy {
  margin-top: 0.55rem;
  min-height: 2.4rem;
  width: 100%;
  border: 1px solid rgba(23, 34, 25, 0.1);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.camera-debug-copy:hover,
.camera-debug-copy:focus-visible {
  transform: translateY(-1px);
  background: #fff7ef;
  border-color: rgba(23, 34, 25, 0.18);
  outline: none;
}

.eyebrow,
.panel-kicker,
.experience-kicker {
  margin: 0 0 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  font-weight: 600;
}

.hero-head .eyebrow {
  margin: 0;
  color: #f7efe1;
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hero-title,
.section-heading h2,
.detail-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 0.92;
}

.hero-title {
  max-width: 6ch;
  font-size: clamp(1.7rem, 2.7vw, 3rem);
  line-height: 0.9;
}

.hero-title-compact {
  max-width: 40ch;
  font-size: clamp(1.45rem, 2vw, 2.25rem);
  line-height: 0.92;
}

.hero-lead,
.route-subtitle,
.route-summary,
.experience-card p,
.detail-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-lead {
  max-width: 58ch;
  margin: 0;
  font-size: clamp(0.88rem, 0.95vw, 0.98rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

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

.button-primary {
  background: var(--ink);
  color: #fdf7ee;
  box-shadow: 0 16px 28px rgba(23, 34, 25, 0.22);
}

.button-secondary {
  border-color: rgba(23, 34, 25, 0.1);
  background: rgba(255, 255, 255, 0.44);
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.live-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--route-accent);
  box-shadow: 0 0 0 0 rgba(224, 113, 43, 0.45);
  animation: pulse-dot 2.2s ease-out infinite;
}

.route-switcher {
  position: absolute;
  left: clamp(0.85rem, 1.4vw, 1.2rem);
  bottom: clamp(0.85rem, 1.4vw, 1.2rem);
  z-index: 4;
  width: min(576px, calc(100vw - 330px));
  max-width: 576px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  pointer-events: auto;
}

.route-chip {
  position: relative;
  display: grid;
  gap: 0.3rem;
  width: 100%;
  min-height: 74px;
  padding: 0.72rem 0.82rem 0.7rem 0.94rem;
  border: 1px solid rgba(23, 34, 25, 0.1);
  border-radius: 10px;
  background: rgba(255, 248, 238, 0.56);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.route-chip::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 9px;
  width: 4px;
  border-radius: 10px;
  background: var(--chip-accent, var(--route-accent));
  opacity: 0.72;
}

.route-chip:hover,
.route-chip:focus-visible,
.route-chip.is-active {
  transform: translateY(-2px);
  background: rgba(255, 248, 238, 0.78);
  border-color: rgba(23, 34, 25, 0.18);
  box-shadow: 0 12px 24px rgba(32, 26, 18, 0.08);
  outline: none;
}

.route-chip.is-active {
  border-color: var(--chip-accent, var(--route-accent));
}

.route-chip-type {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.route-chip-name {
  font-weight: 600;
  font-size: 0.96rem;
}

.route-chip-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.route-panel {
  position: absolute;
  right: clamp(0.85rem, 1.4vw, 1.2rem);
  bottom: calc(clamp(0.85rem, 1.4vw, 1.2rem) + 200px);
  z-index: 4;
  width: min(100%, 270px);
  max-height: none;
  display: flex;
  flex-direction: column;
  padding: 0.72rem;
  background:
    linear-gradient(180deg, var(--panel-strong) 0%, rgba(255, 247, 236, 0.22) 100%);
  overflow: hidden;
}

.route-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.route-name {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.route-subtitle {
  display: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.68rem;
}

.metric-card {
  padding: 0.62rem 0.72rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(23, 34, 25, 0.07);
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.metric-value {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.plot-shell {
  margin-top: 0.55rem;
  padding: 0.66rem 0.72rem;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(23, 34, 25, 0.08);
}

.plot-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.38rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.elevation-plot {
  width: 100%;
  height: 60px;
  overflow: visible;
}

.plot-area {
  fill: var(--route-accent-soft);
}

.plot-line {
  fill: none;
  stroke: var(--route-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.6;
  filter: drop-shadow(0 8px 18px rgba(16, 16, 16, 0.1));
}

.route-summary {
  display: none;
}

.route-facts {
  display: none;
}

.fact-pair {
  margin: 0;
}

.fact-pair dt {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.fact-pair dd {
  margin: 0.18rem 0 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.route-highlights {
  display: none;
}

.highlight-pill {
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  background: var(--route-accent-soft);
  border: 1px solid var(--route-accent-strong);
  color: var(--ink);
  font-size: 0.76rem;
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(3.25rem, 6vw, 5rem) clamp(1.25rem, 2vw, 2rem);
}

.experiences {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 60%),
    linear-gradient(180deg, rgba(244, 236, 223, 0.64), rgba(244, 236, 223, 0.2));
}

.section-heading {
  max-width: 900px;
}

.section-heading h2 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.experience-grid,
.details {
  display: grid;
  gap: 1rem;
}

.experience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.experience-card,
.detail-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 244, 0.72);
  border: 1px solid rgba(23, 34, 25, 0.08);
  box-shadow: 0 18px 40px rgba(40, 31, 18, 0.08);
}

.experience-card h3,
.detail-card h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.experience-card p:last-child,
.detail-card p:last-child {
  margin-bottom: 0;
}

.details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.32)),
    linear-gradient(180deg, transparent, rgba(216, 200, 175, 0.18));
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem 2.2rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.intro-overlay {
  z-index: 5;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(20, 24, 21, 0.34), rgba(20, 24, 21, 0.96)),
    linear-gradient(135deg, rgba(20, 24, 21, 0.98), rgba(20, 24, 21, 0.82));
  color: #f7efe1;
  transition:
    opacity 1.15s ease,
    transform 1.15s ease,
    visibility 1.15s ease;
}

body.is-ready .intro-overlay {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
}

.intro-brand {
  position: absolute;
  top: 1.8rem;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(247, 239, 225, 0.92);
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.34);
}

.intro-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.8rem, 9vw, 7.8rem);
  line-height: 0.88;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
}

.intro-subtitle {
  margin: 0.7rem 0 0;
  color: rgba(247, 239, 225, 0.86);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.intro-art {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(72vw, 720px);
  transform: translate(-50%, -42%);
  opacity: 0.86;
}

.intro-ridge,
.intro-route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-ridge {
  stroke: rgba(247, 239, 225, 0.2);
  stroke-width: 2;
  stroke-dasharray: 860;
  stroke-dashoffset: 860;
  animation: draw-line 1.7s ease forwards;
}

.intro-route {
  stroke: url(#introRoute);
  stroke-width: 4;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  filter: drop-shadow(0 0 18px rgba(224, 113, 43, 0.28));
}

.intro-route-a {
  animation: draw-line 2.2s ease 0.35s forwards;
}

.intro-route-b {
  animation: draw-line 2.2s ease 0.8s forwards;
}

.maplibregl-ctrl-group {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(25, 20, 14, 0.16);
}

.maplibregl-ctrl button {
  background: rgba(255, 251, 244, 0.92);
}

.maplibregl-ctrl-attrib {
  border-radius: 999px;
  margin: 0 0.8rem 0.8rem 0;
  background: rgba(255, 251, 244, 0.9);
  overflow: hidden;
}

.maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 0.2s ease,
    opacity 0.2s ease;
}

.maplibregl-ctrl-attrib:hover .maplibregl-ctrl-attrib-inner,
.maplibregl-ctrl-attrib:focus-within .maplibregl-ctrl-attrib-inner {
  max-width: 420px;
  opacity: 1;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 113, 43, 0.42);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(224, 113, 43, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(224, 113, 43, 0);
  }
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes co-dot-pop {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes co-ripple {
  0% {
    transform: scale(1);
    opacity: 0.62;
  }
  100% {
    transform: scale(2.9);
    opacity: 0;
  }
}

@keyframes co-grow-v {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes co-grow-h-left {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes co-grow-h-right {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes co-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .route-callout {
    display: none !important;
  }

  .map-dim {
    opacity: 0 !important;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
    height: auto;
    min-height: 100svh;
    padding-top: 4.5rem;
  }

  .hero-head {
    position: static;
    width: 100%;
  }

  .camera-debug {
    position: static;
    width: min(100%, 320px);
    justify-self: start;
  }

  .route-switcher {
    position: absolute;
    left: 1rem;
    right: auto;
    bottom: 1rem;
    width: min(520px, calc(100% - 440px));
    max-width: 520px;
    margin-top: 0;
  }

  .route-panel {
    position: absolute;
    right: 1rem;
    bottom: 7rem;
    width: min(420px, calc(100% - 2rem));
    max-height: none;
  }

  .experience-grid,
  .details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-content {
    padding: 1rem;
  }

  .camera-debug {
    width: 100%;
  }

  .hero-title {
    max-width: 7ch;
    font-size: clamp(2.7rem, 10vw, 4.6rem);
  }

  .route-switcher {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    right: auto;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 72vw);
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scroll-snap-type: x proximity;
  }

  .route-chip {
    scroll-snap-align: start;
  }

  .metric-grid,
  .route-facts {
    grid-template-columns: 1fr 1fr;
  }

  .intro-art {
    width: min(94vw, 620px);
  }
}

@media (max-width: 560px) {
  .metric-grid,
  .route-facts {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .intro-title {
    font-size: clamp(3.1rem, 15vw, 4.6rem);
  }

  .site-footer {
    flex-direction: column;
  }
}

@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;
  }
}

/* Under Construction Overlay */
.uc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  background-image:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.4), transparent 50%),
    linear-gradient(180deg, #f7f1e7 0%, #efe3d1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity 0.5s ease;
}

.uc-content {
  background: var(--surface-strong);
  border: 1px solid rgba(23, 34, 25, 0.1);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
  transform: translateY(0);
  animation: co-fade-up 0.6s ease forwards;
}

.uc-title {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.uc-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.uc-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.uc-input {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(23, 34, 25, 0.15);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.uc-input:focus {
  border-color: var(--route-accent);
  box-shadow: 0 0 0 4px var(--route-accent-soft);
}

.uc-button {
  background: var(--ink);
  color: #fdf7ee;
  border: none;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 16px rgba(23, 34, 25, 0.15);
}

.uc-button:hover {
  transform: translateY(-2px);
  background: #2b342d;
  box-shadow: 0 12px 20px rgba(23, 34, 25, 0.2);
}

.uc-error {
  display: none;
  color: #d32f2f;
  margin-top: 1rem;
  margin-bottom: 0px;
  font-size: 0.85rem;
  font-weight: 600;
}
