:root {
  --red: #9f2d1f;
  --saffron: #c18a33;
  --navy: #26170d;
  --cream: #f7e7bd;
  --beige: #ead19a;
  --green: #314c39;
  --white: #ffffff;
  --ink: #26170d;
  --ink-soft: #4b311c;
  --muted: #715335;
  --vellum: #f7e7bd;
  --parchment: #ead19a;
  --brass: #c18a33;
  --ember: #9f2d1f;
  --moss: #314c39;
  --night: #160d08;
  --shadow: 0 32px 80px rgba(20, 10, 4, 0.34);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(243, 198, 99, 0.2), transparent 24%),
    radial-gradient(circle at 86% 20%, rgba(75, 39, 18, 0.55), transparent 25%),
    linear-gradient(115deg, #100804 0%, #3b2111 48%, #170c06 100%);
  color: var(--ink);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -1;
  opacity: 0.5;
  background:
    repeating-linear-gradient(7deg, rgba(255, 245, 214, 0.026) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(96deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 29px),
    radial-gradient(circle at 24% 30%, rgba(255, 238, 184, 0.14), transparent 18%),
    radial-gradient(circle at 72% 74%, rgba(0, 0, 0, 0.32), transparent 22%);
}

body::after {
  z-index: 2000;
  opacity: 0.08;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.5px);
  background-size: 92px 92px, 137px 137px;
  animation: dustDrift 18s linear infinite;
}

button,
a {
  font-family: inherit;
}

button {
  cursor: pointer;
}

a,
button,
.feature-card,
.timeline-item,
.map-marker circle,
.map-marker text {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    fill 0.2s ease,
    opacity 0.2s ease,
    stroke 0.2s ease,
    transform 0.2s ease;
}

a:focus-visible,
button:focus-visible,
.feature-card:focus-visible,
.map-marker:focus-visible {
  outline: 3px solid rgba(193, 138, 51, 0.82);
  outline-offset: 4px;
}

img,
video {
  max-width: 100%;
  display: block;
}

/* Splash */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(180deg, rgba(22, 13, 8, 0.35), rgba(22, 13, 8, 0.65)),
    url("photos/Splash_art.jpeg");
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.splash.hide {
  opacity: 0;
  visibility: hidden;
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 202, 103, 0.24), transparent 22%),
    linear-gradient(120deg, rgba(22, 13, 8, 0.9), rgba(159, 45, 31, 0.55)),
    rgba(0, 0, 0, 0.2);
}

.splash-content {
  position: relative;
  text-align: center;
  color: white;
  padding: 32px;
}

.splash-kicker,
.eyebrow,
.card-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
}

.splash-content h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9;
}

.splash-content p {
  font-size: 1.15rem;
}

.splash-button {
  margin-top: 24px;
  border: 1px solid rgba(247, 231, 189, 0.38);
  border-radius: 5px;
  background: var(--brass);
  color: var(--navy);
  padding: 14px 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.splash-button:hover,
.splash-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 24px;
  color: var(--vellum);
  background: rgba(22, 13, 8, 0.76);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(247, 231, 189, 0.18);
  box-shadow: 0 18px 46px rgba(16, 8, 4, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--vellum);
  text-decoration: none;
  min-width: max-content;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  padding: 3px;
  background: rgba(247, 231, 189, 0.92);
  object-fit: cover;
}

.brand span {
  display: block;
  font-size: 0.72rem;
  color: rgba(247, 231, 189, 0.66);
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 231, 189, 0.3) transparent;
}

.top-nav::-webkit-scrollbar {
  height: 6px;
}

.top-nav::-webkit-scrollbar-track {
  background: transparent;
}

.top-nav::-webkit-scrollbar-thumb {
  background: rgba(247, 231, 189, 0.22);
  border-radius: 999px;
}

.nav-link {
  color: var(--vellum);
  text-decoration: none;
  font-weight: 700;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 12px;
  border: 1px solid rgba(247, 231, 189, 0.18);
  border-radius: 5px;
  background: rgba(247, 231, 189, 0.08);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--brass);
  border-color: rgba(247, 231, 189, 0.32);
  color: var(--ink);
  transform: translateY(-1px);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(247, 231, 189, 0.22);
  background: rgba(247, 231, 189, 0.08);
  color: var(--vellum);
  border-radius: 5px;
  padding: 4px;
  font-weight: 800;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: rgba(247, 231, 189, 0.38);
  box-shadow: 0 10px 26px rgba(16, 8, 4, 0.2);
}

.language-option {
  display: inline-grid;
  min-width: 42px;
  min-height: 34px;
  place-items: center;
  border-radius: 4px;
  padding: 0 10px;
}

.language-option.active {
  background: var(--brass);
  color: var(--ink);
}

.language-divider {
  color: rgba(247, 231, 189, 0.42);
}

.header-date {
  display: grid;
  min-width: 58px;
  overflow: hidden;
  border: 1px solid rgba(247, 231, 189, 0.24);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff0c4, #d8a857);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(16, 8, 4, 0.22);
  text-align: center;
}

.header-date span {
  padding: 4px 8px 2px;
  background: var(--ember);
  color: var(--vellum);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-date strong {
  padding: 4px 8px 6px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88rem;
  line-height: 1;
}

.mobile-menu-button {
  display: none;
}

/* Pages */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Hero */
.hero {
  min-height: calc(100vh - 76px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after,
.page-hero::after {
  content: "MAY 2026";
  position: absolute;
  top: 104px;
  right: clamp(18px, 4vw, 56px);
  z-index: 3;
  padding: 10px 14px;
  border: 2px solid rgba(159, 45, 31, 0.68);
  border-radius: 4px;
  color: rgba(247, 231, 189, 0.88);
  background: rgba(22, 13, 8, 0.46);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("photos/Start_trip.jpeg");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 202, 103, 0.22), transparent 22%),
    linear-gradient(90deg, rgba(22, 13, 8, 0.92), rgba(22, 13, 8, 0.38)),
    linear-gradient(0deg, rgba(22, 13, 8, 0.5), rgba(22, 13, 8, 0.12));
}

.hero-content {
  position: relative;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  color: white;
  padding: 70px 0;
}

.hero-content::before {
  content: "Recovered Archive";
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 2px solid currentColor;
  border-radius: 4px;
  color: rgba(193, 138, 51, 0.94);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.5rem, 8vw, 8.4rem);
  line-height: 0.94;
  max-width: 850px;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

.hero-content > p {
  margin: 24px 0 0;
  max-width: 680px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  border-radius: 5px;
  padding: 15px 23px;
  font-weight: 800;
  border: 1px solid rgba(247, 231, 189, 0.22);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.primary-button {
  background: var(--saffron);
  color: var(--navy);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(217, 154, 43, 0.28);
}

.secondary-button {
  background: rgba(247, 231, 189, 0.08);
  color: var(--vellum);
  border: 1px solid rgba(247, 231, 189, 0.34);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 42px;
}

.hero-stats div {
  position: relative;
  min-width: 130px;
  overflow: hidden;
  padding: 38px 20px 18px;
  border: 1px solid rgba(247, 231, 189, 0.26);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 240, 196, 0.92), rgba(216, 168, 87, 0.88));
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.hero-stats div::before {
  content: "Field Note";
  position: absolute;
  inset: 0 0 auto;
  padding: 7px 10px;
  background: var(--ember);
  color: var(--vellum);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stats strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.hero-stats span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  opacity: 0.92;
}

/* Section */
.section {
  width: min(var(--max-width), calc(100% - 48px));
  position: relative;
  margin: 58px auto;
  padding: clamp(40px, 6vw, 76px);
  border: 1px solid rgba(72, 44, 21, 0.35);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 16%, rgba(103, 56, 24, 0.15), transparent 18%),
    radial-gradient(circle at 82% 86%, rgba(60, 31, 14, 0.12), transparent 21%),
    linear-gradient(180deg, rgba(255, 247, 219, 0.96), rgba(232, 198, 130, 0.94));
  box-shadow:
    0 34px 90px rgba(16, 8, 4, 0.38),
    inset 0 1px 0 rgba(255, 248, 231, 0.5),
    inset 0 -24px 60px rgba(90, 48, 19, 0.11);
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.34;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(83, 49, 21, 0.045) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(90deg, transparent 0 72px, rgba(83, 49, 21, 0.04) 73px 74px);
}

.section::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  border: 1px solid rgba(107, 65, 27, 0.18);
  pointer-events: none;
}

.section > * {
  position: relative;
  z-index: 2;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.map-header h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1;
  color: var(--navy);
  text-transform: uppercase;
}

.section-heading p {
  line-height: 1.7;
  color: var(--muted);
}

/* Cards */
.feature-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
}

.feature-card {
  min-height: 260px;
  position: relative;
  overflow: hidden;
  border: 8px solid rgba(255, 247, 219, 0.9);
  border-radius: 3px;
  box-shadow: var(--shadow);
  background: var(--navy);
  color: white;
  cursor: pointer;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 34px;
  z-index: 4;
  width: 96px;
  height: 24px;
  background: linear-gradient(90deg, rgba(247, 231, 189, 0.22), rgba(247, 231, 189, 0.72), rgba(247, 231, 189, 0.18));
  border: 1px solid rgba(89, 53, 22, 0.12);
  box-shadow: 0 7px 18px rgba(41, 22, 9, 0.12);
  transform: rotate(-4deg);
}

.feature-card.large-card {
  grid-row: span 2;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-card:hover img {
  transform: scale(1.06);
}

.feature-card:hover,
.feature-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(24, 42, 58, 0.22);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(22, 13, 8, 0.88), rgba(22, 13, 8, 0.08)),
    radial-gradient(circle at 80% 20%, rgba(159, 45, 31, 0.18), transparent 24%);
}

.feature-card div {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 2;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.feature-card p {
  line-height: 1.55;
}

/* Page hero */
.page-hero {
  min-height: 430px;
  display: flex;
  align-items: end;
  color: white;
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 202, 103, 0.18), transparent 22%),
    linear-gradient(90deg, rgba(22, 13, 8, 0.9), rgba(22, 13, 8, 0.38));
}

.page-hero > div {
  position: relative;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0;
}

.page-hero > div::before {
  content: "Recovered Page";
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 2px solid currentColor;
  border-radius: 4px;
  color: rgba(193, 138, 51, 0.94);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.journey-hero {
  background-image: url("photos/Tracking.jpg");
}

.projects-hero {
  background-image: url("photos/school picture.jpg");
}

.gallery-hero {
  background-image: url("photos/Street.jpeg");
}

.voices-hero {
  background-image: url("photos/International_school.jpeg");
}

.culture-hero {
  background-image: url("photos/Shyam group.jpg");
}

.info-hero {
  background-image: url("photos/way to school.jpg");
}

/* Journey */
.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.map-card,
.day-panel {
  background: rgba(255, 247, 219, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-card {
  padding: 24px;
}

.map-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}

#selectedDayBadge {
  background: var(--cream);
  color: var(--red);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  white-space: nowrap;
}

.map-wrap {
  border-radius: 24px;
  overflow: hidden;
  background: var(--cream);
}

.route-map {
  width: 100%;
  height: auto;
}

.terrain {
  opacity: 0.75;
}

.terrain-high {
  fill: #e5dcc5;
}

.terrain-mid {
  fill: #d9e1cf;
}

.terrain-low {
  fill: #efe3c5;
}

.map-river {
  fill: none;
  stroke: #77a8b8;
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0.55;
}

.route-line {
  fill: none;
  stroke: url(#routeGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 14 10;
}

.map-label {
  font-size: 18px;
  font-weight: 800;
  fill: rgba(24, 42, 58, 0.62);
}

.map-marker {
  cursor: pointer;
}

.map-marker circle {
  fill: white;
  stroke: var(--red);
  stroke-width: 5;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
  transform-box: fill-box;
  transform-origin: center;
}

.map-marker.active circle {
  fill: var(--saffron);
  stroke: var(--navy);
}

.map-marker:hover circle,
.map-marker:focus-visible circle {
  fill: #fff4d8;
  stroke: var(--navy);
  transform: scale(1.16);
}

.map-marker:hover text,
.map-marker:focus-visible text,
.map-marker.active text {
  fill: var(--navy);
}

.map-marker text {
  fill: var(--navy);
  font-size: 18px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
}

.day-panel {
  padding: 28px;
  position: sticky;
  top: 100px;
}

.day-panel h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 2.25rem;
  color: var(--navy);
}

.day-meta {
  color: var(--muted);
  font-weight: 700;
}

#dayMedia {
  margin: 22px 0;
}

#dayMedia img,
#dayMedia video {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.13);
}

#dayText {
  line-height: 1.75;
  color: #414640;
}

.day-controls {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.day-controls button {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 13px 14px;
  background: var(--navy);
  color: white;
  font-weight: 800;
}

.day-controls button:hover,
.day-controls button:focus-visible {
  transform: translateY(-2px);
  background: var(--red);
  box-shadow: 0 14px 30px rgba(140, 29, 24, 0.22);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(11, minmax(130px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.timeline-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(71, 43, 20, 0.26);
  text-align: left;
  min-height: 150px;
  border-radius: 7px 7px 4px 4px;
  padding: 46px 16px 16px;
  background: linear-gradient(180deg, #fff0c4, #d9ad66);
  color: var(--navy);
  box-shadow: 0 -8px 24px rgba(24, 12, 5, 0.18), 0 12px 28px rgba(24, 12, 5, 0.16);
  font-family: "Courier New", Courier, monospace;
  text-transform: uppercase;
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 34px;
  background: var(--ember);
}

.timeline-item:hover,
.timeline-item:focus-visible {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #fff5d0, #e5b760);
  box-shadow: 0 -8px 24px rgba(24, 12, 5, 0.18), 0 18px 42px rgba(24, 12, 5, 0.24);
}

.timeline-item.active {
  background: linear-gradient(180deg, #f3d997, #c89445);
  color: var(--ink);
}

.timeline-item.active:hover,
.timeline-item.active:focus-visible {
  background: linear-gradient(180deg, #fff0c4, #e5b760);
  color: var(--ink);
}

.timeline-item span {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: 1;
  display: block;
  color: var(--vellum);
  font-weight: 900;
  margin-bottom: 0;
  font-size: 0.7rem;
}

.timeline-item strong {
  display: block;
  line-height: 1.25;
}

/* Focused route map */
.focused-route-section {
  width: min(1640px, calc(100% - 48px));
}

.focused-route-heading {
  display: block;
  margin-bottom: 24px;
}

.focused-route-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.focused-route-layout {
  display: grid;
  gap: 22px;
}

.focused-map-panel {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 76vh, 900px);
  padding: 16px;
  border: 1px solid rgba(72, 44, 21, 0.35);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 16%, rgba(103, 56, 24, 0.15), transparent 18%),
    linear-gradient(180deg, rgba(255, 247, 219, 0.96), rgba(232, 198, 130, 0.94));
  box-shadow: var(--shadow);
}

.focused-map-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 14px;
  background: repeating-linear-gradient(115deg, #9b6a34 0 8px, #6f421f 8px 15px, #d0a564 15px 23px);
  z-index: 2;
}

.focused-map-panel .route-map {
  display: block;
  width: 100%;
  height: clamp(560px, 76vh, 900px);
  min-height: 560px;
  border: 1px solid rgba(38, 23, 13, 0.24);
  border-radius: 5px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.72), transparent 22%),
    radial-gradient(circle at 72% 78%, rgba(193, 138, 51, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(247, 231, 189, 0.76), rgba(234, 209, 154, 0.98));
  filter: sepia(0.12) saturate(0.95);
  box-shadow: inset 0 1px 0 rgba(255, 248, 231, 0.82);
}

.focused-map-panel .map-water {
  fill: transparent;
}

.focused-map-panel .map-region-base {
  fill: url(#focusedTerrainGradient);
  stroke: rgba(31, 77, 59, 0.38);
  stroke-width: 2;
  filter: url(#focusedMapSoftShadow);
}

.focused-map-panel .map-grid path {
  fill: none;
  stroke: rgba(31, 77, 59, 0.075);
  stroke-width: 1;
}

.focused-map-panel .map-elevation {
  stroke: none;
}

.focused-map-panel .map-elevation.high {
  fill: rgba(199, 219, 193, 0.9);
}

.focused-map-panel .map-elevation.mid {
  fill: rgba(228, 236, 207, 0.82);
}

.focused-map-panel .map-elevation.low {
  fill: rgba(245, 226, 181, 0.7);
}

.focused-map-panel .map-ridge,
.focused-map-panel .map-river,
.focused-map-panel .map-terrain-lines path,
.focused-map-panel .map-road,
.focused-map-panel .map-road-shadow,
.focused-map-panel .map-trail,
.focused-map-panel .map-scale path,
.focused-map-panel .route-line,
.focused-map-panel .route-line-shadow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.focused-map-panel .map-ridge {
  stroke: rgba(34, 34, 34, 0.22);
  stroke-width: 5;
  stroke-dasharray: 2 13;
}

.focused-map-panel .map-river {
  stroke: rgba(51, 121, 156, 0.44);
  stroke-width: 4;
}

.focused-map-panel .map-terrain-lines path {
  stroke: rgba(31, 77, 59, 0.16);
  stroke-width: 1.4;
}

.focused-map-panel .map-road-shadow {
  stroke: rgba(34, 34, 34, 0.12);
  stroke-width: 12;
}

.focused-map-panel .map-road {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 5;
  stroke-dasharray: 13 11;
}

.focused-map-panel .map-trail {
  stroke: rgba(184, 91, 56, 0.58);
  stroke-width: 3;
  stroke-dasharray: 5 8;
}

.focused-map-panel .route-line-shadow {
  stroke: rgba(45, 25, 10, 0.22);
  stroke-width: 17;
}

.focused-map-panel .route-line {
  stroke-width: 8;
  stroke-dasharray: 16 12;
  animation: routeMarch 3.2s linear infinite;
}

.focused-map-panel .map-geo-labels text {
  fill: rgba(34, 34, 34, 0.52);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 5px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.focused-map-panel .map-geo-labels text:nth-child(n + 5) {
  fill: rgba(34, 34, 34, 0.34);
  font-size: 12px;
  text-transform: uppercase;
}

.focused-map-panel .map-scale path {
  stroke: rgba(34, 34, 34, 0.46);
  stroke-width: 2;
}

.focused-map-panel .map-scale text,
.focused-map-panel .map-inset text {
  fill: rgba(34, 34, 34, 0.52);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-anchor: middle;
}

.focused-map-panel .map-inset > rect:first-child {
  fill: rgba(255, 255, 255, 0.82);
  stroke: rgba(34, 34, 34, 0.12);
}

.focused-map-panel .map-inset path {
  fill: rgba(31, 77, 59, 0.18);
  stroke: rgba(31, 77, 59, 0.42);
  stroke-width: 1.4;
}

.focused-map-panel .map-inset > rect:nth-of-type(2) {
  fill: rgba(224, 38, 38, 0.18);
  stroke: #e02626;
  stroke-width: 1.5;
}

.focused-map-panel .map-compass circle {
  fill: rgba(255, 255, 255, 0.82);
  stroke: rgba(34, 34, 34, 0.12);
}

.focused-map-panel .map-compass path {
  fill: #e02626;
}

.focused-map-panel .map-compass text {
  fill: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
}

.focused-map-panel .map-marker {
  cursor: pointer;
  outline: none;
}

.focused-map-panel .map-marker circle.outer {
  fill: #f9e9bd;
  stroke: var(--ember);
  stroke-width: 3;
  filter: drop-shadow(0 8px 12px rgba(34, 34, 34, 0.18));
  transform-box: fill-box;
  transform-origin: center;
}

.focused-map-panel .map-marker circle.inner {
  fill: var(--ember);
}

.focused-map-panel .map-marker .marker-number {
  fill: #f9e9bd;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.focused-map-panel .map-marker .marker-label {
  fill: var(--ink);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 4px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-anchor: middle;
  pointer-events: none;
}

.focused-map-panel .map-marker:hover circle.outer,
.focused-map-panel .map-marker:focus-visible circle.outer,
.focused-map-panel .map-marker.active circle.outer {
  fill: #d9a747;
  stroke: var(--ink);
  transform: scale(1.12);
}

.focused-map-panel .map-marker:hover circle.inner,
.focused-map-panel .map-marker:focus-visible circle.inner,
.focused-map-panel .map-marker.active circle.inner {
  fill: var(--ink);
}

.focused-map-panel .map-marker.visited:not(.active) circle.outer {
  stroke: var(--green);
}

.focused-map-panel .map-marker.visited:not(.active) circle.inner {
  fill: var(--green);
}

.map-hover-card {
  position: absolute;
  z-index: 8;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  width: min(350px, calc(100% - 28px));
  padding: 10px;
  border: 1px solid rgba(71, 43, 20, 0.28);
  border-radius: 5px;
  background:
    radial-gradient(circle at 30% 24%, rgba(111, 59, 20, 0.12), transparent 17%),
    linear-gradient(180deg, #f8e5b5, #d9ad66);
  box-shadow: 0 18px 36px rgba(24, 19, 14, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.map-hover-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.map-hover-card img {
  width: 104px;
  height: 82px;
  object-fit: cover;
  border: 5px solid rgba(255, 247, 219, 0.88);
  border-radius: 2px;
  filter: sepia(0.25) saturate(0.9) contrast(1.05);
}

.map-hover-copy {
  min-width: 0;
}

.map-hover-copy span {
  display: block;
  margin-bottom: 3px;
  color: var(--red);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-hover-copy strong {
  display: block;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  line-height: 1.1;
}

.map-hover-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.focused-route-detail {
  max-width: 980px;
  padding: 30px;
  border: 1px solid rgba(72, 44, 21, 0.35);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 16%, rgba(103, 56, 24, 0.15), transparent 18%),
    linear-gradient(180deg, rgba(255, 247, 219, 0.96), rgba(232, 198, 130, 0.94));
  box-shadow: var(--shadow);
}

.focused-route-detail::before {
  content: "Daily Journal";
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 13px;
  border: 2px solid currentColor;
  border-radius: 4px;
  color: rgba(159, 45, 31, 0.84);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-5deg);
}

.focused-route-detail[hidden] {
  display: none;
}

.day-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(24, 42, 58, 0.12);
}

.day-back,
.day-nav-btn {
  min-height: 40px;
  border: 1px solid rgba(71, 43, 20, 0.26);
  border-radius: 5px;
  color: white;
  background: var(--ink);
  font-weight: 800;
  padding: 10px 16px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-back:hover,
.day-back:focus-visible,
.day-nav-btn:hover:not(:disabled),
.day-nav-btn:focus-visible:not(:disabled) {
  background: var(--red);
  transform: translateY(-1px);
}

.day-nav-btn:disabled {
  color: rgba(24, 42, 58, 0.42);
  background: rgba(24, 42, 58, 0.08);
  cursor: not-allowed;
}

.day-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(71, 43, 20, 0.22);
  border-radius: 7px;
  background: rgba(255, 240, 196, 0.74);
}

.day-counter {
  min-width: 94px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  font-family: "Courier New", Courier, monospace;
}

.day-content h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.day-content .day-meta {
  margin-bottom: 20px;
  color: var(--red);
  font-weight: 900;
}

.day-content p {
  color: #414640;
  font-size: 1rem;
  line-height: 1.75;
}

.day-content img,
.day-content video {
  width: min(100%, 680px);
  margin: 18px 0 22px;
  border: 10px solid rgba(255, 247, 219, 0.9);
  border-radius: 3px;
  box-shadow: 0 18px 38px rgba(35, 18, 8, 0.2);
  background: black;
  margin-left: auto;
  margin-right: auto;
}

.day-content img {
  max-height: 360px;
  object-fit: cover;
}

.day-content video {
  aspect-ratio: 16 / 9;
  max-height: 360px;
  object-fit: cover;
}

/* Other grids */
.project-grid,
.quote-grid,
.culture-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-card,
.quote-card,
.culture-grid article,
.info-grid article {
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(71, 43, 20, 0.32);
  border-radius: 6px;
  background:
    radial-gradient(circle at 18% 20%, rgba(111, 59, 20, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255, 247, 219, 0.9), rgba(230, 197, 129, 0.88));
  padding: 28px;
  box-shadow: var(--shadow);
}

.project-card::after,
.quote-card::after,
.culture-grid article::after,
.info-grid article::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(159, 45, 31, 0.14);
  border-radius: 50%;
  transform: rotate(13deg);
}

.project-card span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 42px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: var(--red);
  font-family: "Courier New", Courier, monospace;
  font-weight: 900;
  margin-bottom: 22px;
}

.project-card h3,
.culture-grid h3,
.info-grid h3 {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  color: var(--navy);
}

.project-card p,
.culture-grid p,
.info-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid figure {
  margin: 0;
  position: relative;
  padding: 8px 8px 32px;
  border: 1px solid rgba(74, 45, 20, 0.2);
  border-radius: 3px;
  overflow: visible;
  box-shadow: var(--shadow);
  min-height: 220px;
  background: rgba(255, 247, 219, 0.9);
}

.gallery-grid figure::before,
.video-grid figure::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 34px;
  z-index: 5;
  width: 96px;
  height: 24px;
  background: linear-gradient(90deg, rgba(247, 231, 189, 0.22), rgba(247, 231, 189, 0.72), rgba(247, 231, 189, 0.18));
  border: 1px solid rgba(89, 53, 22, 0.12);
  box-shadow: 0 7px 18px rgba(41, 22, 9, 0.12);
  transform: rotate(-4deg);
}

.gallery-grid img {
  width: 100%;
  height: 172px;
  min-height: 0;
  object-fit: cover;
  filter: sepia(0.3) saturate(0.88) contrast(1.08);
  transition: transform 0.6s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.07);
}

.gallery-grid figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  color: var(--ink-soft);
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: 0.92rem;
  font-weight: 700;
}

.video-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.video-grid video {
  width: 100%;
  border-radius: 3px;
  box-shadow: var(--shadow);
  background: black;
}

.video-grid figure {
  margin: 0;
  position: relative;
  padding: 8px 8px 32px;
  border: 1px solid rgba(74, 45, 20, 0.2);
  border-radius: 3px;
  background: rgba(255, 247, 219, 0.9);
  box-shadow: var(--shadow);
}

.video-grid figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  margin-top: 0;
  color: var(--ink-soft);
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: 0.92rem;
  font-weight: 800;
}

.video-card video {
  aspect-ratio: 16 / 9;
  max-height: 172px;
  object-fit: cover;
}

.quote-grid {
  grid-template-columns: repeat(3, 1fr);
}

.quote-card p {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1.35;
  margin: 0 0 24px;
}

.quote-card span {
  color: var(--red);
  font-weight: 900;
}

.culture-grid,
.info-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-grid {
  grid-template-columns: repeat(4, 1fr);
}

.site-footer {
  padding: 34px 24px;
  text-align: center;
  background: rgba(22, 13, 8, 0.88);
  color: var(--vellum);
  font-weight: 700;
  border-top: 1px solid rgba(247, 231, 189, 0.18);
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes dustDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 92px 184px, -137px 274px;
  }
}

@keyframes routeMarch {
  to {
    stroke-dashoffset: -84;
  }
}

/* Responsive */
@media (max-width: 1020px) {
  .site-header {
    height: auto;
    min-height: 86px;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 10px 20px 12px;
  }

  .top-nav {
    order: 3;
    flex: 0 0 100%;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(247, 231, 189, 0.16);
    border-radius: 8px;
    background: rgba(22, 13, 8, 0.56);
    box-shadow: inset 0 1px 0 rgba(247, 231, 189, 0.1);
    scroll-snap-type: x proximity;
  }

  .nav-link {
    scroll-snap-align: start;
  }

  .language-toggle {
    margin-left: auto;
  }

  .header-date {
    min-width: 54px;
  }

  .feature-grid,
  .journey-layout,
  .project-grid,
  .gallery-grid,
  .video-grid,
  .quote-grid,
  .culture-grid,
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .day-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 106px;
    gap: 8px 12px;
    padding: 8px 14px 10px;
  }

  .brand strong {
    font-size: 1.1rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .language-toggle {
    gap: 2px;
  }

  .language-option {
    min-width: 35px;
    min-height: 30px;
    padding: 0 7px;
    font-size: 0.78rem;
  }

  .top-nav {
    padding: 6px;
    border-radius: 8px;
  }

  .nav-link {
    padding: 8px 11px;
    font-size: 0.7rem;
  }

  .header-date span {
    font-size: 0.56rem;
  }

  .header-date strong {
    font-size: 0.78rem;
  }

  .hero {
    min-height: calc(100vh - 106px);
  }

  .section,
  .hero-content,
  .page-hero > div {
    width: min(100% - 28px, var(--max-width));
  }

  .section {
    margin: 34px auto;
    padding: 34px 20px;
  }

  .hero::after,
  .page-hero::after {
    top: 126px;
    right: 16px;
    font-size: 0.62rem;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .feature-grid,
  .project-grid,
  .gallery-grid,
  .video-grid,
  .quote-grid,
  .culture-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .map-header {
    flex-direction: column;
  }

  .timeline {
    grid-template-columns: repeat(11, 150px);
  }

  .day-controls {
    flex-direction: column;
  }
}