:root {
  --river: #123f46;
  --river-2: #0f5964;
  --forest: #365b45;
  --stone: #59645f;
  --mist: #eef3ef;
  --paper: #f8f6ef;
  --ochre: #b98538;
  --red: #b44a36;
  --ink: #1e2522;
  --muted: #65716b;
  --white: #ffffff;
  --line: rgba(30, 37, 34, 0.13);
  --nav-h: 74px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(238, 243, 239, 0.88), rgba(238, 243, 239, 0.88)),
    repeating-linear-gradient(105deg, rgba(18, 63, 70, 0.08) 0 1px, transparent 1px 34px),
    var(--mist);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(18px, 4vw, 54px);
  background: rgba(248, 246, 239, 0.92);
  border-bottom: 1px solid rgba(30, 37, 34, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
  min-width: 160px;
}

.brand strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1;
  letter-spacing: 0;
  color: var(--river);
}

.brand span {
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.1vw, 28px);
  list-style: none;
}

.nav-links a,
.mobile-panel a {
  position: relative;
  text-decoration: none;
  color: var(--stone);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--river);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-note {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(30, 37, 34, 0.16);
  border-radius: 6px;
  background: var(--paper);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--river);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button.open span {
  opacity: 0;
}

.menu-button.open::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.open::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 auto;
  z-index: 70;
  padding: 10px clamp(18px, 4vw, 54px) 18px;
  background: rgba(248, 246, 239, 0.98);
  border-bottom: 1px solid rgba(30, 37, 34, 0.14);
}

.mobile-panel.open {
  display: grid;
}

.mobile-panel a {
  padding: 16px 0;
  border-bottom: 1px solid rgba(30, 37, 34, 0.1);
}

.mobile-panel a:last-child {
  border-bottom: 0;
}

.hero {
  min-height: 94vh;
  min-height: 94svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--river);
}

.hero.short {
  min-height: 66vh;
  min-height: 66svh;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  filter: saturate(0.92) contrast(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 20, 18, 0.84), rgba(10, 20, 18, 0.42) 44%, rgba(10, 20, 18, 0.2)),
    linear-gradient(0deg, rgba(10, 20, 18, 0.78), rgba(10, 20, 18, 0.08) 52%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: calc(var(--nav-h) + 56px) 0 clamp(42px, 8vh, 86px) 0;
  padding-left: clamp(18px, 4vw, 54px);
  text-align: left;
}

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero .kicker {
  color: var(--ochre);
  background: rgba(18, 63, 70, 0.58);
  border: 1px solid rgba(248, 246, 239, 0.25);
  padding: 10px 16px;
  border-radius: 4px;
  margin-bottom: 18px;
  font-size: 1rem;
}

.kicker::before,
.kicker::after,
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  color: var(--paper);
  font-size: clamp(3.3rem, 9vw, 8.8rem);
  line-height: 0.9;
  font-weight: 750;
}

.hero.short h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
}

.hero-copy {
  max-width: 670px;
  margin-top: 24px;
  color: rgba(248, 246, 239, 0.88);
  font-size: clamp(1.12rem, 1.7vw, 1.38rem);
  line-height: 1.75;
}

.marker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  align-items: center;
}

.marker-row-label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  font-size: 0.76rem;
  font-family: inherit;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #f0d060;
  background: rgba(18, 63, 70, 0.62);
  border-radius: 4px;
  white-space: nowrap;
}

.marker {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid rgba(248, 246, 239, 0.26);
  border-radius: 4px;
  background: rgba(18, 63, 70, 0.62);
  color: rgba(248, 246, 239, 0.82);
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

a.marker:hover {
  background: var(--ochre);
  color: var(--paper);
  border-color: var(--ochre);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(185, 133, 56, 0.35);
}

a.marker:active {
  transform: translateY(0);
}

.section {
  position: relative;
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 70px);
}

.section.light {
  background: var(--paper);
}

.section.dark {
  color: var(--paper);
  background:
    linear-gradient(rgba(18, 63, 70, 0.92), rgba(18, 63, 70, 0.92)),
    repeating-linear-gradient(115deg, rgba(248, 246, 239, 0.08) 0 1px, transparent 1px 30px),
    var(--river);
}

.section.green {
  background:
    linear-gradient(rgba(54, 91, 69, 0.94), rgba(54, 91, 69, 0.94)),
    repeating-linear-gradient(115deg, rgba(248, 246, 239, 0.08) 0 1px, transparent 1px 30px),
    var(--forest);
  color: var(--paper);
}

.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.wrap.gallery-wrap {
  width: min(1380px, 94%);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

h2 {
  margin-top: 12px;
  color: var(--river);
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
  font-weight: 720;
}

.dark h2,
.green h2,
.dark h3,
.green h3 {
  color: var(--paper);
}

.lede {
  max-width: 740px;
  margin-top: 18px;
  color: var(--stone);
  font-size: clamp(1.12rem, 1.65vw, 1.34rem);
  line-height: 1.82;
}

.dark .lede,
.green .lede {
  color: rgba(248, 246, 239, 0.78);
}

.body {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.9;
}

.body p+p {
  margin-top: 18px;
}

.source-note {
  margin-top: 18px;
  color: var(--stone);
  font-size: 0.86rem;
  line-height: 1.7;
}

.source-note a {
  color: var(--river);
  font-weight: 850;
  text-decoration-color: rgba(18, 63, 70, 0.28);
  text-underline-offset: 4px;
}

.source-note a:hover {
  color: var(--red);
}

.dark .source-note,
.green .source-note {
  color: rgba(248, 246, 239, 0.68);
}

.dark .source-note a,
.green .source-note a {
  color: var(--ochre);
}

.dark .body,
.green .body {
  color: rgba(248, 246, 239, 0.74);
  font-size: 1.04rem;
}

.identity-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(26px, 5vw, 66px);
  align-items: center;
}

.image-frame {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background: #d3d8d2;
  box-shadow: 0 24px 70px rgba(18, 63, 70, 0.17);
}

.image-frame img {
  position: absolute;
  inset: 0;
}

.image-frame.tall {
  min-height: 560px;
}

.caption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 88%;
  padding: 8px 12px;
  background: rgba(30, 37, 34, 0.72);
  color: rgba(248, 246, 239, 0.72);
  font-size: 0.64rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 246, 239, 0.52);
}

.fact-strip a,
.fact-strip div {
  min-height: 132px;
  padding: 22px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.fact-strip a:last-child,
.fact-strip div:last-child {
  border-right: 0;
}

.fact-strip span {
  color: var(--red);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fact-strip strong {
  color: var(--river);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  line-height: 1.1;
}

.fact-strip a:hover strong {
  color: var(--red);
}

.route-panel {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(248, 246, 239, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(248, 246, 239, 0.08), rgba(248, 246, 239, 0.02)),
    repeating-linear-gradient(0deg, rgba(248, 246, 239, 0.07) 0 1px, transparent 1px 42px);
  overflow: hidden;
}

.route-panel .body {
  color: rgba(248, 246, 239, 0.74);
}

.route-photo-panel {
  padding: 0;
  gap: 0;
  background: rgba(18, 63, 70, 0.72);
}

.route-photo-panel .body,
.route-photo-panel .source-note {
  padding-inline: clamp(22px, 4vw, 42px);
}

.route-photo-panel .body {
  padding-top: 22px;
}

.route-photo-panel .source-note {
  padding-bottom: clamp(22px, 4vw, 34px);
}

.route-image {
  position: relative;
  min-height: clamp(260px, 42vw, 460px);
  overflow: hidden;
}

.route-image img {
  filter: saturate(0.95) contrast(1.04);
}

.route-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 20, 18, 0.72), rgba(10, 20, 18, 0.06) 58%);
}

.route-image figcaption {
  position: absolute;
  left: clamp(18px, 4vw, 34px);
  right: clamp(18px, 4vw, 34px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 1;
  color: var(--paper);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 750;
}

.route-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  min-height: 90px;
  align-items: center;
}

.route-line::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--ochre), rgba(248, 246, 239, 0.54), var(--red));
}

.route-stop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: rgba(248, 246, 239, 0.78);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.route-stop::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(180, 74, 54, 0.18);
  z-index: 1;
}

.route-stop.current::before {
  width: 22px;
  height: 22px;
  background: var(--ochre);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(26px, 5vw, 66px);
  align-items: start;
}

.text-panel {
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.dark .text-panel,
.green .text-panel {
  border-color: rgba(248, 246, 239, 0.18);
  background: rgba(248, 246, 239, 0.08);
}

.text-panel h3,
.place-card h3 {
  color: var(--river);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1.06;
  margin-bottom: 14px;
}

.dark .text-panel h3,
.green .text-panel h3 {
  color: var(--paper);
}

.stack {
  display: grid;
  gap: 18px;
}

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

.place-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 8px;
  background: var(--river);
  text-decoration: none;
  color: var(--paper);
  display: grid;
  align-items: end;
}

.place-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(10, 20, 18, 0.84), rgba(10, 20, 18, 0.2) 64%);
  pointer-events: none;
}

.place-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.35s ease;
}

.place-card:hover img {
  transform: scale(1.045);
}

.place-card .content {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.place-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--ochre);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.place-card h3 {
  color: var(--paper);
  margin-bottom: 8px;
}

.place-card p {
  color: rgba(248, 246, 239, 0.76);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* Redesigned Archive Card - matching screenshot format (photo on top, text below) */
.archive-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(18, 63, 70, 0.04);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(18, 63, 70, 0.08);
  border-color: rgba(185, 133, 56, 0.38);
}

.archive-image-wrapper {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
  background: rgba(30, 37, 34, 0.05);
}

.archive-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.archive-card:hover .archive-image-wrapper img {
  transform: scale(1.035);
}

.archive-card .content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.archive-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-card h3 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--river);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 750;
  transition: color 0.25s ease;
}

.archive-card:hover h3 {
  color: var(--ochre);
}

.archive-card p {
  color: var(--stone);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.archive-action {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--ochre);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: color 0.25s ease;
}

.archive-card:hover .archive-action {
  color: var(--red);
}

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

.note-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.note {
  padding: 20px;
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.74);
}

.note strong {
  display: block;
  color: var(--river);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.note p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.deep-grid,
.source-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.deep-card,
.source-card {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.deep-card h3,
.source-card h3,
.timeline-item h3 {
  color: var(--river);
  font-size: clamp(1.22rem, 2vw, 1.72rem);
  line-height: 1.1;
  margin-bottom: 12px;
}

.deep-card p,
.source-card p,
.timeline-item p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.76;
}

.deep-card ul,
.travel-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.dark .deep-card,
.green .deep-card,
.dark .source-card,
.green .source-card {
  border-color: rgba(248, 246, 239, 0.18);
  background: rgba(248, 246, 239, 0.08);
}

.dark .deep-card h3,
.green .deep-card h3,
.dark .source-card h3,
.green .source-card h3,
.dark .timeline-item h3 {
  color: var(--paper);
}

.dark .deep-card p,
.green .deep-card p,
.dark .source-card p,
.green .source-card p,
.dark .deep-card ul,
.green .deep-card ul,
.dark .travel-list {
  color: rgba(248, 246, 239, 0.74);
}

.timeline {
  display: grid;
  gap: 1px;
  background: rgba(30, 37, 34, 0.12);
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
}

.timeline-item strong {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wide-image {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background: #d3d8d2;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.month {
  min-height: 96px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.month strong {
  display: block;
  color: var(--red);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.month span {
  display: block;
  color: var(--river);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.1;
}

.month small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item .caption {
  position: static;
  max-width: 100%;
  padding: 16px;
  background: #ffffff;
  color: #1e2522;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}

.source-list a {
  color: var(--river);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.5;
  text-decoration-color: rgba(18, 63, 70, 0.28);
  text-underline-offset: 4px;
}

.source-list a:hover {
  color: var(--red);
}

.source-card a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--river);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration-color: rgba(18, 63, 70, 0.24);
  text-underline-offset: 4px;
}

.dark .source-card a,
.green .source-card a {
  color: var(--ochre);
}

.page-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(30, 37, 34, 0.12);
}

.page-links a {
  min-height: 158px;
  padding: 22px;
  background: var(--paper);
  text-decoration: none;
  display: grid;
  align-content: space-between;
}

.page-links span {
  color: var(--red);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-links strong {
  color: var(--river);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.24rem;
  line-height: 1.06;
}

.page-links a:hover {
  background: var(--river);
}

.page-links a:hover strong,
.page-links a:hover span {
  color: var(--paper);
}

.site-footer {
  background: var(--ink);
  color: rgba(248, 246, 239, 0.62);
  padding: 44px clamp(18px, 5vw, 70px);
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-inner strong {
  display: block;
  color: var(--paper);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.34rem;
  margin-bottom: 8px;
}

.footer-inner p {
  max-width: 560px;
  font-size: 0.94rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(248, 246, 239, 0.62);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ochre);
}

/* Journey stopovers styling */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 42px);
  margin-top: 36px;
}

.journey-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(18, 63, 70, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.journey-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(18, 63, 70, 0.08);
  border-color: rgba(185, 133, 56, 0.38);
}

.journey-image-wrapper {
  position: relative;
  height: 380px;
  /* Increased to show full landscape view matching the homepage cards */
  background: rgba(30, 37, 34, 0.06);
  overflow: hidden;
}

.journey-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.journey-card:hover .journey-image-wrapper img {
  transform: scale(1.03);
}

.journey-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.journey-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  color: var(--river);
  margin-bottom: 12px;
  font-weight: 720;
}

.journey-desc {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--muted);
}

/* Latest Developments section styling */
.developments-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.dev-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(18, 63, 70, 0.03);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.dev-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(18, 63, 70, 0.08);
  border-color: rgba(185, 133, 56, 0.35);
}

.dev-image-wrapper {
  position: relative;
  height: 200px;
  background: rgba(30, 37, 34, 0.05);
  overflow: hidden;
}

.dev-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.dev-card:hover .dev-image-wrapper img {
  transform: scale(1.04);
}

.dev-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.tag-connectivity {
  background: var(--river);
}

.tag-healthcare {
  background: #b44a36;
}

.tag-tourism {
  background: #b98538;
}

.tag-education {
  background: #365b45;
}

.tag-community {
  background: #59645f;
}

.tag-infrastructure {
  background: #0f5964;
}

.dev-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dev-date {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.dev-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.35;
  color: var(--river);
  margin-bottom: 12px;
  font-weight: 750;
}

.dev-summary {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 0;
  flex-grow: 1;
}

@media (max-width: 980px) {

  .nav-links,
  .nav-note {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .identity-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .fact-strip,
  .note-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deep-grid,
  .source-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .archive-grid,
  .page-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .month-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

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

  .developments-feed {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 680px) {
  :root {
    --nav-h: 68px;
  }

  .journey-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .journey-image-wrapper {
    height: 250px;
    /* Increased to match homepage mobile card image height */
  }

  .developments-feed {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dev-image-wrapper {
    height: 180px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 1.02rem;
  }

  .brand span {
    font-size: 0.54rem;
  }

  .hero,
  .hero.short {
    min-height: 76vh;
    min-height: 76svh;
  }

  .hero-inner {
    padding-top: calc(var(--nav-h) + 44px);
  }

  h1 {
    font-size: clamp(3.05rem, 17vw, 5.8rem);
  }

  .hero.short h1 {
    font-size: clamp(2.8rem, 15vw, 4.8rem);
  }

  .image-frame,
  .image-frame.tall {
    min-height: 310px;
  }

  .fact-strip,
  .archive-grid,
  .place-grid,
  .deep-grid,
  .source-card-grid,
  .note-grid,
  .page-links,
  .source-list {
    grid-template-columns: 1fr;
  }

  .fact-strip a,
  .fact-strip div {
    min-height: 112px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .route-line {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 20px;
    align-items: start;
  }

  .route-line::before {
    left: 50%;
    right: auto;
    top: 8px;
    bottom: 8px;
    width: 2px;
    height: auto;
  }

  .route-stop {
    grid-template-columns: 34px 1fr;
    justify-items: start;
    text-align: left;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .month-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

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

  .gallery-item.large,
  .gallery-item.tall,
  .gallery-item.wide,
  .gallery-item.heroic {
    grid-row: span 1;
    grid-column: span 1;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ==========================================================================
   INTERACTIVE STORYTELLING SECTION
   ========================================================================== */
.storytelling-section {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.storytelling-container {
  display: flex;
  position: relative;
  width: 100%;
}

/* Sticky Left Column: Map */
.map-sticky-col {
  position: sticky;
  top: var(--nav-h);
  width: 50vw;
  height: calc(100vh - var(--nav-h));
  background: var(--paper);
  border-right: 1px solid var(--line);
  overflow: hidden;
  z-index: 10;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG illustrated map */
.illustrated-map {
  width: 100%;
  height: 100%;
  display: block;
}

/* River Shimmer Animation */
.river-shimmer {
  stroke-dasharray: 12, 30;
  animation: river-flow 8s infinite linear;
}

@keyframes river-flow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -420;
  }
}

/* Mountain styling */
.map-mountains use {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Clouds drift animation keyframes */
@keyframes cloud-drift-slow {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(30px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes cloud-drift-fast {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-20px);
  }

  100% {
    transform: translateX(0);
  }
}

.cloud-drift-1 {
  animation: cloud-drift-slow 35s infinite ease-in-out;
}

.cloud-drift-2 {
  animation: cloud-drift-fast 28s infinite ease-in-out;
}

.cloud-drift-3 {
  animation: cloud-drift-slow 45s infinite ease-in-out;
}

/* Route active drawing path */
#route-active {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  filter: drop-shadow(0 2px 4px rgba(180, 74, 54, 0.25));
  transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Markers styling */
.map-marker {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.map-marker .marker-glow {
  transform-origin: center;
  transform: scale(0.6);
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.map-marker.active .marker-glow {
  opacity: 0.6;
  transform: scale(1);
  animation: marker-pulse-glow 2s infinite ease-out;
}

@keyframes marker-pulse-glow {
  0% {
    r: 10px;
    opacity: 0.8;
  }

  100% {
    r: 28px;
    opacity: 0;
  }
}

.marker-dot {
  transition: fill 0.3s ease, stroke 0.3s ease, r 0.3s ease;
}

.map-marker.active .marker-dot {
  fill: var(--red);
  r: 8px;
}

.marker-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  fill: var(--stone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  transition: fill 0.4s ease, font-size 0.4s ease, font-weight 0.4s ease;
}

.map-marker.active .marker-label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

/* Confluence ripples at Hayuliang */
@keyframes ripple-pulse {
  0% {
    r: 8px;
    opacity: 0.8;
  }

  100% {
    r: 60px;
    opacity: 0;
  }
}

.confluence-active #confluence-ripple-1 {
  animation: ripple-pulse 3s infinite ease-out;
}

.confluence-active #confluence-ripple-2 {
  animation: ripple-pulse 3s infinite ease-out 1.5s;
}

/* Bridge Highlight */
.map-bridge {
  transition: stroke 0.4s ease, stroke-width 0.4s ease;
}

.bridge-highlight .map-bridge {
  stroke: var(--ochre);
  stroke-width: 2.2px;
}

/* Cinematic Overlay */
.cinematic-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--paper);
  background: rgba(10, 20, 18, 0.85);
}

.cinematic-overlay.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

.cinematic-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/flowing river.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) contrast(1.05);
  z-index: 1;
  transition: transform 12s ease-out;
}

.cinematic-overlay.active .cinematic-bg {
  transform: scale(1.08);
}

.cinematic-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateY(20px);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

.cinematic-overlay.active .cinematic-content {
  transform: translateY(0);
}

.cinematic-content h2 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--paper);
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.cinematic-content p {
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(248, 246, 239, 0.85);
  margin: 0 0 12px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cinematic-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cinematic-actions .marker {
  background: var(--ochre);
  color: var(--paper);
  border-color: var(--ochre);
}

.cinematic-actions .marker:hover {
  background: var(--paper);
  color: var(--river);
  border-color: var(--paper);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

/* Scrollable Right Column: Story Cards */
.story-scroll-col {
  width: 50vw;
  position: relative;
  background: var(--paper);
  padding: 6vh 6% 10vh 5%;
  /* Add breathing room around cards */
  box-sizing: border-box;
}

/* Card Container */
.story-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(18, 63, 70, 0.04);
  margin-bottom: 12px;
  /* Very small gap between cards as requested */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: auto;
  /* natural height */
  padding: 0;
}

.story-card:last-child {
  margin-bottom: 12px;
}

/* Enlarge final card to prevent immediate un-sticking at scroll end */
.story-card.final-trigger-card {
  min-height: 75vh;
  justify-content: center;
  margin-bottom: 25vh;
  /* generous scroll padding to keep the map active */
  background: url('../images/confluence.png') no-repeat center center / cover;
  border: 1px solid rgba(185, 133, 56, 0.45);
  box-shadow: 0 20px 45px rgba(18, 63, 70, 0.25);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.story-card.final-trigger-card:hover {
  border-color: rgba(185, 133, 56, 0.8);
  box-shadow: 0 25px 55px rgba(18, 63, 70, 0.35);
}

/* Card Hover border highlight */
.story-card:hover {
  border-color: rgba(185, 133, 56, 0.3);
  box-shadow: 0 10px 30px rgba(18, 63, 70, 0.08);
}

/* Story Card Image wrapper (photo container height increased for desktop) */
.story-card-image {
  position: relative;
  width: 100%;
  height: 380px;
  /* Taller to show full landscape view without severe cropping */
  overflow: hidden;
  background: rgba(30, 37, 34, 0.05);
  border-bottom: 1px solid var(--line);
}

.story-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.story-card:hover .story-card-image img {
  transform: scale(1.03);
}

/* Story Card Body (compacted vertical padding) */
.story-card-body {
  padding: 12px 16px 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.final-trigger-card .story-card-body {
  justify-content: flex-end;
  padding: 40px 32px;
  padding-top: 25vh;
  /* Pushes the text starting point down near the middle/lower part of the photo */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  margin: 0;
  border: none;
  box-shadow: none;
}

.final-trigger-card .story-card-kicker {
  display: none !important;
  /* Hide kicker completely just in case of any HTML caching */
}

.final-trigger-card h3 {
  color: #b98538 !important;
  /* Gold color */
  font-size: 2.3rem;
  /* Further increased font size as requested */
  font-weight: 850;
  margin-top: 0;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 4px 16px rgba(0, 0, 0, 0.9);
}

.final-trigger-card p {
  color: #ffffff !important;
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 4px 16px rgba(0, 0, 0, 0.9);
}

/* Metadata kicker below photo */
.story-card-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Title */
.story-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--river);
  margin-top: 0;
  margin-bottom: 4px;
  font-weight: 750;
  transition: color 0.25s ease;
}

.story-card:hover h3 {
  color: var(--ochre);
}

/* Description paragraph (decreased font size for one-line text) */
.story-card p {
  color: var(--stone);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
  max-width: 100%;
}

.story-card p.lede {
  font-size: 0.96rem;
  line-height: 1.55;
}

/* Force standard photo cards to exactly 1 sentence / 1 line to prevent text wrap */
.story-card:not(.intro-card):not(.final-trigger-card) p {
  font-size: 0.86rem;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action Link at bottom */
.story-card-action {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--ochre);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: color 0.25s ease;
}

.story-card-action:hover {
  color: var(--red);
}

/* Action buttons specifically for the final triggers */
.final-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.final-btn {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.final-btn.primary {
  background: var(--river);
  color: var(--paper);
  border: 1px solid var(--river);
}

.final-btn.primary:hover {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--paper);
}

.final-btn.secondary {
  background: transparent;
  color: var(--river);
  border: 1px solid var(--line);
}

.final-btn.secondary:hover {
  background: rgba(18, 63, 70, 0.04);
  border-color: var(--river);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 2px;
  height: 40px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.scroll-arrow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background: var(--red);
  animation: scroll-arrow-down 1.8s infinite ease-in-out;
}

@keyframes scroll-arrow-down {
  0% {
    transform: translateY(-100%);
  }

  80% {
    transform: translateY(270%);
  }

  100% {
    transform: translateY(270%);
  }
}

.spacer-glow {
  height: 40px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(185, 133, 58, 0.08), transparent);
  border-radius: 4px;
}

/* Desktop fade logic for inactive cards - only active when JS successfully initializes */
.storytelling-container.js-active .story-scroll-col .story-card {
  opacity: 0.45;
  transform: translateX(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.storytelling-container.js-active .story-scroll-col .story-card.active {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Overrides for Mobile Viewports */
@media (max-width: 979px) {
  .storytelling-container {
    flex-direction: column;
  }

  .map-sticky-col {
    position: sticky;
    top: var(--nav-h);
    width: 100%;
    height: 40vh;
    border-right: none;
    border-bottom: 1px solid var(--line);
    z-index: 10;
  }

  .story-scroll-col {
    width: 100%;
    padding: 30px 20px;
  }

  .story-card {
    margin-bottom: 12px;
  }

  .story-card:last-child {
    margin-bottom: 12px;
  }

  .story-card-image {
    height: 250px;
  }

  .story-card.final-trigger-card {
    min-height: 55vh;
    margin-bottom: 15vh;
  }

  .final-trigger-card .story-card-body {
    margin: 0;
    padding: 24px 20px;
  }

  .storytelling-container.js-active .story-scroll-col .story-card {
    opacity: 1;
    transform: none;
  }

  .cinematic-overlay {
    padding: 24px;
  }
}

/* ==========================================================================
   CULTURE PAGE REVAMP STYLES
   ========================================================================== */
.culture-geography-media {
  display: flex;
  flex-direction: column;
}

.culture-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.culture-portfolio-grid.culture-four-card {
  grid-template-columns: repeat(2, 1fr);
  max-width: 960px;
  margin-inline: auto;
}

.culture-portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 400px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 12px 32px rgba(18, 63, 70, 0.08);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid var(--line);
}

.culture-portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(18, 63, 70, 0.16);
}

.card-img-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.card-img-wrapper img {
  transition: transform 0.45s ease;
}

.culture-portfolio-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-overlay {
  position: relative;
  z-index: 2;
  padding: 24px;
  background: linear-gradient(180deg, rgba(30, 37, 34, 0) 35%, rgba(30, 37, 34, 0.78) 72%, rgba(10, 20, 18, 0.94) 100%);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
}

.card-tag {
  font-size: 0.62rem;
  font-weight: 850;
  color: var(--ochre);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
  display: block;
}

.card-overlay h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  color: var(--paper);
  margin-bottom: 8px;
  line-height: 1.15;
}

.card-overlay p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(248, 246, 239, 0.78);
  margin: 0;
}

.culture-conduct-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.conduct-guidelines {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.conduct-item {
  background: rgba(248, 246, 239, 0.08);
  border-left: 3px solid var(--ochre);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
}

.conduct-item strong {
  display: block;
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.conduct-item p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(248, 246, 239, 0.74);
  margin: 0;
}

@media (max-width: 900px) {
  .culture-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .culture-conduct-grid {
    grid-template-columns: 1fr;
  }

  .conduct-media {
    display: none;
  }
}

@media (max-width: 600px) {
  .culture-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .conduct-guidelines {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PHILOSOPHY / "WHY HAYULIANG MATTERS NOW" SECTION
   ========================================================================== */
.philosophy-section {
  background:
    linear-gradient(rgba(18, 38, 28, 0.9), rgba(18, 38, 28, 0.9)),
    url('../images/mountain view.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: var(--paper);
  padding: clamp(60px, 10vh, 120px) clamp(18px, 5vw, 70px);
  border-bottom: 1px solid rgba(185, 133, 58, 0.15);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.philosophy-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow-philosophy {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ochre);
}

.philosophy-statement {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.45;
  font-style: italic;
  font-weight: 300;
  color: var(--paper);
  margin: 0;
}

.philosophy-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.philosophy-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.philosophy-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(185, 133, 56, 0.35);
  transform: translateY(-2px);
}

.philosophy-card-kicker {
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 8px;
}

.philosophy-card p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(248, 246, 239, 0.82);
  margin: 0;
}

.philosophy-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.philosophy-btn {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ochre);
  /* Golden font */
  border: 1px solid var(--ochre);
  /* Curvy box border */
  border-radius: 30px;
  /* Curvy capsule shape */
  padding: 10px 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  background: rgba(185, 133, 56, 0.03);
}

.philosophy-btn:hover {
  background: var(--ochre);
  color: var(--ink);
  /* Dark forest contrast */
  border-color: var(--ochre);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(185, 133, 56, 0.16);
}

@media (max-width: 979px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .philosophy-card {
    padding: 20px;
  }
}

/* ==========================================================================
   INTERACTIVE TRAVEL GUIDE STYLES
   ========================================================================== */

/* Tabs Navigation Bar */
.travel-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 36px auto;
  width: min(var(--max), 100%);
  padding-inline: 18px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid rgba(30, 37, 34, 0.15);
  border-radius: 30px;
  padding: 12px 24px;
  color: var(--stone);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(18, 63, 70, 0.02);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.28s ease;
}

.tab-btn:hover {
  border-color: var(--ochre);
  color: var(--river);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(185, 133, 56, 0.12);
}

.tab-btn:hover svg {
  transform: scale(1.1);
}

.tab-btn.active {
  background: var(--river);
  border-color: var(--river);
  color: var(--paper);
  box-shadow: 0 8px 20px rgba(18, 63, 70, 0.16);
}

/* Tab Panels Content Transition */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Season Sketch Month Filters */
.month-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 18px;
  color: var(--stone);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--ochre);
  color: var(--river);
}

.filter-btn.active {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--paper);
  box-shadow: 0 4px 12px rgba(185, 133, 56, 0.22);
}

/* Month Cards Highlights */
.month-grid .month {
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(18, 63, 70, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.month-grid .month.window {
  border: 1px solid rgba(54, 91, 69, 0.4);
  background: rgba(54, 91, 69, 0.03);
}

.month-grid .month.risk {
  border: 1px solid rgba(180, 74, 54, 0.3);
  background: rgba(180, 74, 54, 0.02);
}

.month-grid .month.window strong {
  color: var(--forest);
}

.month-grid .month.risk strong {
  color: var(--red);
}

.month-grid .month.fade {
  opacity: 0.28;
  transform: scale(0.97);
  box-shadow: none;
}

.month-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 10px;
}

.month-badge.window-badge {
  background: rgba(54, 91, 69, 0.1);
  color: var(--forest);
}

.month-badge.risk-badge {
  background: rgba(180, 74, 54, 0.1);
  color: var(--red);
}

.month-badge.neutral-badge {
  background: rgba(30, 37, 34, 0.06);
  color: var(--stone);
}

/* Seasonal Legend */
.planner-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  font-size: 0.74rem;
  color: var(--stone);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid currentColor;
}

.legend-color.window {
  background: rgba(54, 91, 69, 0.1);
  border-color: rgba(54, 91, 69, 0.4);
  color: var(--forest);
}

.legend-color.risk {
  background: rgba(180, 74, 54, 0.1);
  border-color: rgba(180, 74, 54, 0.3);
  color: var(--red);
}

/* Transit Columns and Connection Tables */
.transit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 42px);
  margin-top: 36px;
  align-items: start;
}

.transit-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.transit-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 4px 18px rgba(18, 63, 70, 0.03);
}

.transit-card h3 {
  color: var(--river);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  margin-bottom: 16px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 10px;
}

.transit-card h3 svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.transit-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.72;
  margin-bottom: 16px;
}

.transit-table-wrapper {
  margin-top: 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(18, 63, 70, 0.02);
}

.transit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: left;
  background: var(--paper);
}

.transit-table th,
.transit-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.transit-table tr:last-child td {
  border-bottom: none;
}

.transit-table th {
  background: rgba(18, 63, 70, 0.04);
  color: var(--river);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transit-table td {
  color: var(--stone);
}

.transit-table td strong {
  color: var(--ink);
  font-weight: 700;
}

/* Responsible Code Grid */
.responsible-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.responsible-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(18, 63, 70, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.responsible-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 133, 56, 0.38);
  box-shadow: 0 12px 30px rgba(18, 63, 70, 0.07);
}

.responsible-card h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.12rem;
  color: var(--river);
  margin-bottom: 10px;
  font-weight: 720;
}

.responsible-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Responsive Overrides */
@media (max-width: 980px) {
  .travel-tabs-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .tab-btn {
    padding: 10px 18px;
    font-size: 0.68rem;
    flex-grow: 1;
    justify-content: center;
  }

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

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

@media (max-width: 680px) {
  .responsible-grid {
    grid-template-columns: 1fr;
  }

  .planner-legend {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .transit-table th,
  .transit-table td {
    padding: 10px;
  }
}

/* ==========================================================================
   INTERACTIVE EXPLORE PAGE STYLES
   ========================================================================== */

.explore-sub-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.sub-tab-btn {
  background: transparent;
  border: none;
  color: var(--stone);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  padding-bottom: 8px;
  transition: color 0.25s ease;
}

.sub-tab-btn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ochre);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.sub-tab-btn:hover {
  color: var(--river);
}

.sub-tab-btn.active {
  color: var(--river);
}

.sub-tab-btn.active::after {
  transform: scaleX(1);
}

/* Explore Image Panel Toggling */
.explore-img-pane {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #d3d8d2;
  box-shadow: 0 24px 70px rgba(18, 63, 70, 0.15);
}

.explore-img-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s ease;
  z-index: 1;
}

.explore-img-item.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Explore Text Panel Content Toggling */
.explore-text-item {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.explore-text-item.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Modernized Place Markers and Local Systems */
.explore-marker-card {
  padding: 24px;
  border-left: none !important;
  /* Override standard note side borders */
  border-top: 3px solid var(--red);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 4px 18px rgba(18, 63, 70, 0.03);
  transition: transform 0.28s ease, border-top-color 0.28s ease, box-shadow 0.28s ease;
}

.explore-marker-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--ochre);
  box-shadow: 0 12px 30px rgba(18, 63, 70, 0.07);
}

.explore-marker-card strong {
  display: block;
  color: var(--river);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.explore-marker-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
}

.explore-system-card {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 4px 18px rgba(18, 63, 70, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.explore-system-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 133, 56, 0.38);
  box-shadow: 0 12px 30px rgba(18, 63, 70, 0.07);
}

.explore-system-card h3 {
  color: var(--river);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  margin-bottom: 12px;
  font-weight: 750;
}

.explore-system-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   PREMIUM CULTURE PAGE REDESIGN STYLES
   ========================================================================== */

/* Split layout for Geography section */
.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Premium Image Frame */
.premium-image-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(18, 63, 70, 0.12);
  border: 1px solid var(--line);
  line-height: 0;
}

.premium-image-frame img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.premium-image-frame:hover img {
  transform: scale(1.04);
}

.frame-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 20, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Sleek route panel */
.sleek-route-panel {
  margin-top: 24px;
  background: var(--river);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 10px 24px rgba(18, 63, 70, 0.08);
}

.route-title {
  color: rgba(248, 246, 239, 0.65);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.route-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stop-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 246, 239, 0.8);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}

.stop-badge.active {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--paper);
  box-shadow: 0 4px 10px rgba(185, 133, 56, 0.3);
}

/* Archive trigger button */
.archive-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid var(--river);
  color: var(--river);
  border-radius: 30px;
  padding: 10px 24px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 24px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.archive-trigger-btn:hover {
  background: var(--river);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(18, 63, 70, 0.15);
}

.archive-trigger-btn .chevron-icon {
  transition: transform 0.3s ease;
}

.archive-trigger-btn.active .chevron-icon {
  transform: rotate(180deg);
}

/* Slide-down Archive drawer */
.archive-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), margin-top 0.5s ease;
  margin-top: 0;
}

.archive-drawer.open {
  max-height: 1000px;
  opacity: 1;
  margin-top: 48px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.archive-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(18, 63, 70, 0.05);
  display: flex;
  flex-direction: column;
}

.archive-card .card-img {
  height: 380px;
  overflow: hidden;
}

.archive-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.archive-card:hover .card-img img {
  transform: scale(1.04);
}

.archive-card .card-body {
  padding: 24px;
}

.archive-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  color: var(--river);
  margin-bottom: 12px;
  font-weight: 750;
}

.archive-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
}

/* Section 2: Beliefs Grid */
.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-top: 40px;
}

@media (max-width: 992px) {
  .beliefs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .beliefs-grid {
    grid-template-columns: 1fr;
  }
}

.belief-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 6px 18px rgba(18, 63, 70, 0.02);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.belief-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(18, 63, 70, 0.08);
  border-color: rgba(185, 133, 56, 0.3);
}

.card-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 10px 10px 0 0;
  transition: height 0.25s ease;
}

.belief-card:hover .card-accent-line {
  height: 6px;
}

.card-kicker {
  color: var(--stone);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.belief-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: var(--river);
  margin-bottom: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.belief-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--ochre);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  transition: color 0.25s ease;
}

.read-more-btn:hover {
  color: var(--red);
}

.read-more-btn .arrow-icon {
  transition: transform 0.25s ease;
}

.read-more-btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* Section 3: Daily Life Section Grid */
.paper-bg {
  background-color: #f7f6f0;
}

.daily-life-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 40px);
  margin-top: 40px;
}

@media (max-width: 768px) {
  .daily-life-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.daily-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 18px rgba(18, 63, 70, 0.02);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.daily-card:hover {
  border-color: rgba(18, 63, 70, 0.15);
  box-shadow: 0 10px 30px rgba(18, 63, 70, 0.05);
}

.daily-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  color: var(--river);
  margin-bottom: 14px;
  font-weight: 750;
}

.daily-card p {
  color: var(--stone);
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0;
}

/* Section 4: Valley Festivals */
.festivals-list {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 48px);
  margin-top: 40px;
}

.festival-item {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

@media (max-width: 860px) {
  .festival-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.fest-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(18, 63, 70, 0.08);
  border: 1px solid var(--line);
  line-height: 0;
}

.fest-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.festival-item:hover .fest-image img {
  transform: scale(1.03);
}

.fest-content {
  display: flex;
  flex-direction: column;
}

.fest-date {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.fest-content h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  color: var(--river);
  margin-bottom: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.fest-content p {
  color: var(--stone);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

/* Section 5: Conduct cards */
.conduct-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: 36px;
}

@media (max-width: 1024px) {
  .conduct-deck {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .conduct-deck {
    grid-template-columns: 1fr;
  }
}

.conduct-card {
  background: rgba(248, 246, 239, 0.06);
  border: 1px solid rgba(248, 246, 239, 0.12);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.conduct-card:hover {
  background: rgba(248, 246, 239, 0.12);
  border-color: var(--ochre);
  transform: translateY(-4px);
}

.card-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ochre);
  opacity: 0.65;
  margin-bottom: 12px;
  display: block;
  transition: opacity 0.3s ease;
}

.conduct-card:hover .card-num {
  opacity: 1;
}

.conduct-card h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--paper);
  margin-bottom: 8px;
  line-height: 1.35;
}

.conduct-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(248, 246, 239, 0.75);
  margin: 0;
}

/* Section 6: Premium Vertical Timeline */
.premium-timeline {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
  margin-top: 48px;
  padding-left: 32px;
}

.premium-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--ochre), var(--line));
}

.timeline-point {
  position: relative;
  padding-bottom: 36px;
}

.timeline-point:last-child {
  padding-bottom: 0;
}

.timeline-point::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--ochre);
  box-shadow: 0 0 0 4px rgba(185, 133, 56, 0.15);
  z-index: 2;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.timeline-point:hover::before {
  background-color: var(--ochre);
  transform: scale(1.15);
}

.timeline-year {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.timeline-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(18, 63, 70, 0.02);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.timeline-point:hover .timeline-body {
  transform: translateX(4px);
  border-color: rgba(185, 133, 56, 0.35);
}

.timeline-body h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  color: var(--river);
  margin-bottom: 6px;
  font-weight: 750;
}

.timeline-body p {
  color: var(--stone);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
}

/* Belief Details Modal styles */
.belief-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.belief-modal:not([aria-hidden="true"]) {
  opacity: 1;
  pointer-events: all;
}

.belief-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 18, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.35s ease;
}

.belief-modal-content {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border-radius: 12px;
  padding: 40px;
  width: 90%;
  max-width: 550px;
  box-shadow: 0 24px 64px rgba(10, 20, 18, 0.25);
  border: 1px solid var(--line);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.belief-modal:not([aria-hidden="true"]) .belief-modal-content {
  transform: scale(1);
}

.belief-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--stone);
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;
}

.belief-modal-close:hover {
  color: var(--red);
}

.belief-modal-header {
  margin-bottom: 20px;
}

.belief-modal-kicker {
  color: var(--stone);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.belief-modal-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--river);
  margin: 0;
  font-weight: 750;
  line-height: 1.2;
}

.belief-modal-body {
  color: var(--stone);
  font-size: 0.94rem;
  line-height: 1.7;
}

.belief-modal-body p {
  margin: 0;
}

/* ==========================================================================
   DEVELOPMENTS NEWS FEED & DRAWER STYLES
   ========================================================================== */

/* Filter Bar styles */
.dev-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.dev-filter-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--stone);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dev-filter-btn:hover {
  border-color: var(--ochre);
  color: var(--river);
}

.dev-filter-btn.active {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--paper);
  box-shadow: 0 4px 12px rgba(185, 133, 56, 0.25);
}

/* Developments Grid */
.developments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

@media (max-width: 992px) {
  .developments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .developments-grid {
    grid-template-columns: 1fr;
  }
}

.dev-grid-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(18, 63, 70, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, opacity 0.3s ease;
}

.dev-grid-card.fade {
  opacity: 0.15;
  pointer-events: none;
}

.dev-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(18, 63, 70, 0.1);
  border-color: rgba(185, 133, 56, 0.25);
}

.dev-img-container {
  position: relative;
  height: 220px;
  overflow: hidden;
  line-height: 0;
}

.dev-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dev-grid-card:hover .dev-img-container img {
  transform: scale(1.04);
}

.dev-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--paper);
  color: var(--river);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgba(10, 20, 18, 0.05);
}

.badge-connectivity {
  border-color: rgba(185, 133, 56, 0.3);
  color: var(--ochre);
}

.badge-healthcare {
  border-color: rgba(199, 82, 82, 0.3);
  color: var(--red);
}

.badge-tourism {
  border-color: rgba(18, 63, 70, 0.3);
  color: var(--river);
}

.badge-education {
  border-color: rgba(92, 128, 92, 0.3);
  color: var(--green);
}

.badge-community {
  border-color: rgba(185, 133, 56, 0.3);
  color: var(--ochre);
}

.badge-infrastructure {
  border-color: rgba(18, 63, 70, 0.3);
  color: var(--river);
}

.dev-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dev-card-date {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--stone);
  opacity: 0.75;
  margin-bottom: 8px;
  display: block;
}

.dev-card-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: var(--river);
  margin-bottom: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.dev-card-summary {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.dev-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--river);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  transition: color 0.25s ease;
}

.dev-read-btn:hover {
  color: var(--ochre);
}

.dev-read-btn .arrow-icon {
  transition: transform 0.25s ease;
}

.dev-read-btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* Premium Slide-Out Drawer Styles */
.news-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-drawer:not([aria-hidden="true"]) {
  opacity: 1;
  pointer-events: all;
}

.news-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 18, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.news-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 90%;
  max-width: 550px;
  background: var(--paper);
  box-shadow: -10px 0 40px rgba(10, 20, 18, 0.15);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-y: auto;
}

.news-drawer:not([aria-hidden="true"]) .news-drawer-content {
  transform: translateX(0);
}

.news-drawer-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  font-size: 1.8rem;
  line-height: 32px;
  color: var(--stone);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.news-drawer-close:hover {
  background: var(--paper);
  color: var(--red);
  transform: scale(1.05);
}

.news-drawer-media {
  width: 100%;
  height: 320px;
  overflow: hidden;
  line-height: 0;
  position: relative;
}

.news-drawer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-drawer-body {
  padding: 40px;
}

.news-drawer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.news-drawer-tag {
  background: rgba(185, 133, 56, 0.08);
  border: 1px solid rgba(185, 133, 56, 0.25);
  color: var(--ochre);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-drawer-date {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--stone);
  opacity: 0.75;
}

.news-drawer-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  color: var(--river);
  margin-bottom: 24px;
  font-weight: 750;
  line-height: 1.2;
}

.news-drawer-text {
  color: var(--stone);
  font-size: 0.94rem;
  line-height: 1.75;
}

.news-drawer-text p {
  margin-top: 0;
  margin-bottom: 20px;
}

/* ==========================================================================
   SISTER VALLEYS EXTERNAL PORTALS BUTTONS
   ========================================================================== */
.sister-valleys-section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: rgba(30, 37, 34, 0.02);
}

.sister-valleys-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.sister-valleys-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.sister-valleys-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.sister-valley-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--paper);
  background: var(--river);
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(18, 63, 70, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.sister-valley-btn:hover {
  background: var(--ochre);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(185, 133, 56, 0.3);
}

@media (max-width: 680px) {
  .sister-valleys-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .sister-valley-btn {
    width: 100%;
  }
}

/* Global paragraph justification */
p {
  text-align: justify;
}