@font-face {
  font-family: "Ogg Medium";
  src: url("https://dcym8fthxf5uu.cloudfront.net/fonts/247a073c-29f5-4a89-aa3a-741020f346fc/OggText-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --mx: 0;
  --my: 0;
  --back-opacity: 1;
  --back-x: 0px;
  --back-y: 0px;
  --back-scale: 0.76;
  --four-y: 10vh;
  --four-scale: 0.78;
  --bazaar-y: 20vh;
  --blur-px: 0px;
  --back-brightness: 1;
  --bazaar-blur-px: 0px;
  --bazaar-brightness: 1;
  --bazaar-saturation: 1;
  --shade-opacity: 1;
  --shade-z: 2;
  --shade-top-alpha: 0;
  --shade-mid-alpha: 0;
  --shade-bottom-alpha: 0;
  --blur-tint: 74, 181, 224;
  --title-y: 0px;
  --title-scale: 1;
  --title-opacity: 1;
  --bridge-x: -50%;
  --bridge-y: 0px;
  --bridge-bottom: 5vh;
  --bridge-width: 67.2vw;
  --bridge-scale: 1.02;
  --split-left-x: -50%;
  --split-left-y: 0px;
  --split-left-scale: 1;
  --split-right-x: -50%;
  --split-right-y: 0px;
  --split-right-scale: 1;
  --frame2-opacity: 0;
  --frame2-x: -50%;
  --frame2-y: -50%;
  --frame2-scale: 1.06;
  --intro-copy-y: 0px;
  --intro-copy-opacity: 1;
  --panel2-opacity: 0;
  --panel2-y: calc(-50% + 58px);
  --panel3-opacity: 0;
  --panel3-y: calc(-50% + 58px);
  --sights-opacity: 0;
  --sights-y: 0px;
  --sights-visibility: hidden;
  --sights-shift: 0px;
  --sights-scale: 1;
  --sights-top: clamp(112px, 19vh, 220px);
  --sights-screen-top: clamp(112px, 19vh, 220px);
  --walk-opacity: 0;
  --walk-y: calc(-50% + 58px);
  --walk-step-o: 0;
  --walk-step-y: 26px;
  --walk-step-o-2: 0;
  --walk-step-y-2: 26px;
  --walk-step-o-3: 0;
  --walk-step-y-3: 26px;
  --walk-step-o-4: 0;
  --walk-step-y-4: 26px;
  --stats-opacity: 0;
  --stats-y: calc(-50% + 58px);
  --seasons-opacity: 0;
  --seasons-y: calc(-50% + 58px);
  --season-o: 0;
  --season-y: 34px;
  --season-o-2: 0;
  --season-y-2: 34px;
  --season-o-3: 0;
  --season-y-3: 34px;
  --season-o-4: 0;
  --season-y-4: 34px;
  --quote-opacity: 0;
  --quote-y: calc(-50% + 58px);
  --outro-opacity: 0;
  --outro-y: calc(-50% + 58px);
  --footer-opacity: 0;
  --footer-y: 46px;
  --ink: #111411;
  --paper: #fdf1e1;
  --shadow: rgba(0, 0, 0, 0.32);
  font-family: Inter, Satoshi, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper);
  background: #0b1110;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #0b1110;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background: #0b1110;
}

button {
  border: 0;
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

/* ---------- scroll rig ---------- */

/* --stage-h is the sticky viewport slice every act is positioned inside.
   svh (not vh) so the height stays put when mobile browser chrome collapses —
   with vh the stage resizes mid-scroll and every absolute panel jumps. */
:root {
  --stage-h: 100vh;
}

@supports (height: 100svh) {
  :root {
    --stage-h: 100svh;
  }
}

.cinema-scroll {
  position: relative;
  height: calc(var(--stage-h) + 15200px);
}

.stage {
  position: sticky;
  top: 0;
  height: var(--stage-h);
  overflow: hidden;
  isolation: isolate;
  background: #7fb4d4;
}

.world,
.back-stack,
.sky-img,
.shade,
.scene-img,
.site-header,
.sights-slider,
.hero-title,
.intro-copy,
.story-panel {
  position: absolute;
}

.world {
  inset: 0;
  overflow: hidden;
  background: #79b7dd;
}

/* ---------- header ---------- */

.site-header {
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 32px;
  padding: 32px;
  color: rgba(253, 241, 225, 0.86);
  pointer-events: auto;
}

.site-logo {
  justify-self: start;
  color: rgba(253, 241, 225, 0.92);
  font-family: "Ogg Medium", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 2.2vw, 44px);
}

.site-nav span,
.language-switcher {
  color: rgba(253, 241, 225, 0.86);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.site-nav span {
  font-size: 20px;
  font-weight: 400;
}

/* only the site title is interactive — everything else is display text */
.site-nav,
.language-switcher {
  pointer-events: none;
  user-select: none;
}

.language-switcher {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  font-size: 16px;
}

.language-switcher span {
  display: inline-flex;
  line-height: 1;
}

/* ---------- mobile nav (hidden on desktop) ---------- */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(9, 15, 20, 0.34);
  backdrop-filter: blur(6px);
  color: inherit;
  cursor: pointer;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.nav-toggle-bars span {
  height: 2px;
  border-radius: 2px;
  background: #fdf1e1;
  transition: transform 220ms ease, opacity 180ms ease;
}

/* bars morph into an X while the drawer is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 28px 32px;
  background: rgba(8, 14, 18, 0.94);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 240ms ease;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-nav a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(253, 241, 225, 0.14);
  color: #fdf1e1;
  font-family: "Ogg Medium", serif;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
}

.mobile-menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  color: rgba(253, 241, 225, 0.7);
  font-size: 0.8rem;
  font-weight: 500;
}

.mobile-menu-foot a {
  color: rgba(253, 241, 225, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(253, 241, 225, 0.4);
}

/* ---------- scene images ---------- */

.scene-img {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.sky-img {
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  filter: blur(var(--blur-px)) brightness(var(--back-brightness));
}

.back-stack {
  z-index: 1;
  top: 0;
  bottom: 0;
  left: -3vw;
  right: -3vw;
  opacity: var(--back-opacity);
  transform: translate3d(var(--back-x), var(--back-y), 0) scale(var(--back-scale));
  transform-origin: 50% 100%;
  will-change: transform, filter, opacity;
}

.back-img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--blur-px)) brightness(var(--back-brightness));
}

.back-bazaar,
.back-four {
  top: auto;
  bottom: 0;
  left: 48%;
  right: auto;
  width: 112%;
  height: auto;
  object-fit: contain;
}

.back-bazaar {
  z-index: 3;
  opacity: 1;
  filter: blur(var(--bazaar-blur-px)) brightness(var(--bazaar-brightness))
    saturate(var(--bazaar-saturation));
  transform: translate3d(-50%, var(--bazaar-y), 0) scale(0.86);
}

.back-four {
  z-index: 1;
  opacity: 0.72;
  mix-blend-mode: screen;
  transform: translate3d(-50%, calc(var(--four-y) - 110px), 0) scale(var(--four-scale));
}

/* ---------- sights slider ---------- */

.sights-slider {
  z-index: 2;
  left: 0;
  right: 0;
  top: var(--sights-top);
  padding: 0;
  opacity: var(--sights-opacity);
  visibility: var(--sights-visibility);
  transform: translate3d(0, var(--sights-y), 0) scale(var(--sights-scale));
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform;
}

.sights-track {
  display: flex;
  gap: clamp(16px, 1.15vw, 24px);
  align-items: stretch;
  /* position is driven directly by scroll — no CSS transition, or the track
     would lag behind the wheel instead of tracking it */
  transform: translate3d(var(--sights-shift), 0, 0);
  will-change: transform;
}

.sight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 clamp(360px, 19.4vw, 430px);
  height: 220px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(253, 241, 225, 0.42);
  border-radius: 24px;
  color: #000;
  background: #fdf1e1;
  box-shadow: 0 18px 52px rgba(2, 47, 64, 0.12);
  backdrop-filter: none;
  pointer-events: none;
  user-select: none;
}

.sight-card::before,
.sight-card::after {
  content: none;
}

.sight-card:focus-visible,
.sight-card.is-active {
  outline: none;
}

.sight-kicker,
.sight-card h3,
.sight-card p {
  position: relative;
  z-index: 1;
  text-shadow: none;
}

/* the kicker sits top-left and the title/copy block is pushed to the bottom by
   auto margin, so the card tolerates a two-line title without the fixed
   56px gap + absolute offsets colliding */
.sight-kicker {
  display: block;
  margin: 0 0 auto;
  padding-right: 80px;
  color: #000;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.05;
  text-transform: uppercase;
}

.sight-pin {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 67.2px;
  height: 67.2px;
  pointer-events: none;
}

/* wraps to two lines instead of ellipsing — "Koski Mehmed Pasha Mosque" and
   "Karađoz Bey Mosque" were both getting cut off on narrow cards */
.sight-card h3 {
  margin: 0;
  color: #000;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.02;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: break-word;
}

.sight-card p {
  margin: 10px 0 0;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.16;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ---------- hero title ---------- */

.hero-title {
  z-index: 3;
  left: 50%;
  top: clamp(122px, 19vh, 205px);
  width: min(94vw, 1780px);
  margin: 0;
  color: #fdf1e1;
  font-family: "Ogg Medium", serif;
  font-size: 14rem;
  font-weight: 500;
  line-height: 0.78;
  text-align: center;
  text-shadow: none;
  transform: translate3d(-50%, var(--title-y), 0) scale(var(--title-scale));
  opacity: var(--title-opacity);
  will-change: transform, opacity;
}

/* ---------- bridge + splitframes + frame two ---------- */

.bridge-img {
  z-index: 4;
  left: 50%;
  bottom: var(--bridge-bottom);
  width: min(var(--bridge-width), 2140px);
  height: auto;
  transform: translate3d(var(--bridge-x), var(--bridge-y), 0) scale(var(--bridge-scale));
  transform-origin: 50% 48%;
}

.splitframe-img {
  z-index: 6;
  left: 50%;
  bottom: -2vh;
  width: min(118vw, 2240px);
  height: auto;
  pointer-events: none;
}

.splitframe-left {
  transform: translate3d(var(--split-left-x), var(--split-left-y), 0) scale(var(--split-left-scale));
  transform-origin: 21% 52%;
}

.splitframe-right {
  transform: translate3d(var(--split-right-x), var(--split-right-y), 0)
    scale(var(--split-right-scale));
  transform-origin: 79% 52%;
}

.frame-two-img {
  z-index: 5;
  filter: none !important;
  backdrop-filter: none;
  left: 50%;
  top: 50%;
  width: min(122vw, 2160px);
  height: auto;
  opacity: var(--frame2-opacity);
  transform: translate3d(var(--frame2-x), var(--frame2-y), 0) scale(var(--frame2-scale));
  transform-origin: 50% 48%;
}

.shade {
  inset: 0;
  z-index: var(--shade-z);
  pointer-events: none;
  opacity: var(--shade-opacity);
  background: linear-gradient(
    180deg,
    rgba(var(--blur-tint), var(--shade-top-alpha)) 0%,
    rgba(var(--blur-tint), var(--shade-mid-alpha)) 48%,
    rgba(var(--blur-tint), var(--shade-bottom-alpha)) 100%
  );
}

/* ---------- intro copy ---------- */

.intro-copy {
  z-index: 9;
  left: 50%;
  bottom: clamp(56px, 28vh, 400px);
  width: min(560px, calc(100vw - 40px));
  text-align: center;
  transform: translate3d(-50%, var(--intro-copy-y), 0);
  opacity: var(--intro-copy-opacity);
  will-change: transform, opacity;
}

.intro-copy p {
  margin: 0 auto;
  max-width: 560px;
  color: #fdf1e1;
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.18;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  color: var(--ink);
  border-radius: 999px;
  background: #fdf1e1;
  font-size: 0.98rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* ---------- story panels ---------- */

.story-panel {
  z-index: 10;
  left: 50%;
  top: 45%;
  width: min(760px, calc(100vw - 42px));
  text-align: center;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, opacity;
}

.story-panel h2 {
  margin: 0;
  color: #fdf1e1;
  font-family: "Ogg Medium", serif;
  font-size: 4.75rem;
  font-weight: 500;
  line-height: 0.95;
  text-shadow: 0 16px 38px var(--shadow);
}

.story-panel p {
  width: min(520px, 100%);
  margin: 26px auto 0;
  color: #fdf1e1;
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.18;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.story-panel-bridge {
  top: 60%;
  opacity: var(--panel2-opacity);
  transform: translate3d(-50%, var(--panel2-y), 0);
}

.story-panel-bazaar {
  top: 29%;
  opacity: var(--panel3-opacity);
  transform: translate3d(-50%, var(--panel3-y), 0);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 86px;
  width: min(470px, 100%);
  margin: 72px auto 0;
}

.facts dt {
  color: #fdf1e1;
  font-family: "Ogg Medium", serif;
  font-size: 4.2rem;
  font-weight: 500;
  line-height: 0.9;
  text-shadow: 0 14px 34px var(--shadow);
}

.facts dd {
  margin: 18px 0 0;
  color: #fdf1e1;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.14;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.note-button {
  min-height: 50px;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 28px;
  border-radius: 999px;
  color: var(--ink);
  background: #fdf1e1;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  user-select: none;
}

.note-button span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}

/* ---------- extended acts ---------- */

.panel-kicker {
  display: block;
  margin-bottom: 18px;
  color: rgba(253, 241, 225, 0.82);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.34);
}

/* act 4 — the crossing */

.story-panel-walk {
  top: 50%;
  width: min(880px, calc(100vw - 42px));
  opacity: var(--walk-opacity);
  transform: translate3d(-50%, var(--walk-y), 0);
}

.walk-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.walk-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid rgba(253, 241, 225, 0.28);
  border-radius: 24px;
  background: rgba(9, 15, 20, 0.42);
  opacity: var(--walk-step-o);
  transform: translate3d(0, var(--walk-step-y), 0);
}

.walk-step:nth-child(2) {
  opacity: var(--walk-step-o-2);
  transform: translate3d(0, var(--walk-step-y-2), 0);
}
.walk-step:nth-child(3) {
  opacity: var(--walk-step-o-3);
  transform: translate3d(0, var(--walk-step-y-3), 0);
}
.walk-step:nth-child(4) {
  opacity: var(--walk-step-o-4);
  transform: translate3d(0, var(--walk-step-y-4), 0);
}

.walk-index {
  flex: 0 0 auto;
  color: rgba(253, 241, 225, 0.72);
  font-family: "Ogg Medium", serif;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 0.9;
}

.walk-body h3 {
  margin: 0;
  color: #fdf1e1;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.walk-body p {
  width: auto;
  margin: 8px 0 0;
  font-size: 0.98rem;
  line-height: 1.22;
}

/* act 5 — the numbers */

.story-panel-stats {
  top: 50%;
  width: min(940px, calc(100vw - 42px));
  opacity: var(--stats-opacity);
  transform: translate3d(-50%, var(--stats-y), 0);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
  margin: 56px 0 0;
}

.stat-cell {
  padding: 26px 18px;
  border-top: 1px solid rgba(253, 241, 225, 0.34);
}

.stat-cell dt {
  color: #fdf1e1;
  font-family: "Ogg Medium", serif;
  font-size: 5.2rem;
  font-weight: 500;
  line-height: 0.88;
  text-shadow: 0 14px 34px var(--shadow);
}

.stat-unit {
  margin-left: 4px;
  font-size: 0.34em;
  letter-spacing: 0.02em;
}

.stat-cell dd {
  margin: 16px 0 0;
  color: rgba(253, 241, 225, 0.9);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.18;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

/* act 6 — seasons */

.story-panel-seasons {
  top: 50%;
  width: min(1180px, calc(100vw - 42px));
  opacity: var(--seasons-opacity);
  transform: translate3d(-50%, var(--seasons-y), 0);
}

.season-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 48px 0 0;
  text-align: left;
}

.season-card {
  min-height: 216px;
  padding: 24px;
  border: 1px solid rgba(253, 241, 225, 0.42);
  border-radius: 24px;
  color: #000;
  background: #fdf1e1;
  box-shadow: 0 18px 52px rgba(2, 47, 64, 0.12);
  opacity: var(--season-o);
  transform: translate3d(0, var(--season-y), 0);
}

.season-card:nth-child(2) {
  opacity: var(--season-o-2);
  transform: translate3d(0, var(--season-y-2), 0);
}
.season-card:nth-child(3) {
  opacity: var(--season-o-3);
  transform: translate3d(0, var(--season-y-3), 0);
}
.season-card:nth-child(4) {
  opacity: var(--season-o-4);
  transform: translate3d(0, var(--season-y-4), 0);
}

.season-month {
  display: block;
  margin-bottom: 44px;
  color: #000;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.season-card h3 {
  margin: 0;
  color: #000;
  font-size: 22px;
  font-weight: 800;
  line-height: 0.98;
}

.season-card p {
  width: auto;
  margin: 12px 0 0;
  color: #000;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  text-shadow: none;
}

/* act 7 — quote */

.story-panel-quote {
  top: 50%;
  width: min(900px, calc(100vw - 42px));
  opacity: var(--quote-opacity);
  transform: translate3d(-50%, var(--quote-y), 0);
}

.quote-plate {
  margin: 0;
}

.quote-plate p {
  width: min(820px, 100%);
  margin: 0 auto;
  color: #fdf1e1;
  font-family: "Ogg Medium", serif;
  font-size: 3.05rem;
  font-weight: 500;
  line-height: 1.04;
  text-shadow: 0 16px 38px var(--shadow);
}

/* scroll-driven typing reveal: JS splits the copy into word spans and lights
   them up one by one, with a caret riding the last visible word */
/* untyped words are fully hidden but keep their box, so the paragraph never
   reflows as it types — visibility, not display */
.quote-word {
  visibility: hidden;
}

.quote-word.is-typed {
  visibility: visible;
}

.quote-caret {
  display: none;
  width: 3px;
  height: 0.82em;
  margin-left: 2px;
  translate: 0 0.06em;
  background: #fdf1e1;
}

/* JS puts this class on the word the caret currently sits after */
.quote-word.is-caret .quote-caret {
  display: inline-block;
  animation: caret-blink 820ms steps(1, end) infinite;
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.quote-plate footer {
  margin-top: 34px;
}

.quote-plate cite {
  color: rgba(253, 241, 225, 0.82);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

/* act 8 — outro */

/* sits between the header and the footer band on the final screen */
.story-panel-outro {
  top: 42%;
  opacity: var(--outro-opacity);
  transform: translate3d(-50%, var(--outro-y), 0);
}

.outro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.note-button-ghost {
  color: #fdf1e1;
  background: transparent;
  border: 1px solid rgba(253, 241, 225, 0.52);
  box-shadow: none;
}

/* act 9 — footer */

.site-footer {
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: 0;
  width: min(1280px, calc(100vw - 48px));
  padding: 0 0 16px;
  text-align: left;
  opacity: var(--footer-opacity);
  transform: translate3d(-50%, var(--footer-y), 0);
  pointer-events: none;
  will-change: transform, opacity;
}

/* footer text is display-only; only the credit link (below) opts back in,
   and only once the footer is actually solid */
.site-footer.is-live .footer-credit a {
  pointer-events: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(253, 241, 225, 0.24);
}

.footer-logo {
  display: block;
  color: #fdf1e1;
  font-family: "Ogg Medium", serif;
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1;
}

.footer-blurb {
  width: min(300px, 100%);
  margin: 10px 0 0;
  color: rgba(253, 241, 225, 0.82);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.22;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.footer-social {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.footer-social span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(253, 241, 225, 0.42);
  border-radius: 999px;
  color: #fdf1e1;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-col h3 {
  margin: 0 0 2px;
  color: rgba(253, 241, 225, 0.7);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col span {
  color: #fdf1e1;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.footer-contact address {
  margin: 2px 0 0;
  color: rgba(253, 241, 225, 0.82);
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.28;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
}

.footer-copy {
  color: rgba(253, 241, 225, 0.66);
  font-size: 0.72rem;
  font-weight: 500;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal span {
  color: rgba(253, 241, 225, 0.72);
  font-size: 0.72rem;
  font-weight: 500;
}

/* the credit link is the only clickable thing in the footer */
.footer-credit {
  color: rgba(253, 241, 225, 0.66);
  font-size: 0.72rem;
  font-weight: 500;
}

.footer-credit a {
  color: #fdf1e1;
  text-decoration: none;
  border-bottom: 1px solid rgba(253, 241, 225, 0.5);
}

.footer-credit a:hover {
  border-bottom-color: #fdf1e1;
}

/* ---------- media queries ---------- */

@media (max-width: 1500px) {
  .hero-title {
    font-size: 11rem;
  }
  .story-panel h2 {
    font-size: 4.1rem;
  }
  .stat-cell dt {
    font-size: 4.2rem;
  }
  .quote-plate p {
    font-size: 2.6rem;
  }
}

@media (max-width: 1100px) {
  .hero-title {
    top: 15vh;
    font-size: 7.5rem;
  }
  .bridge-img {
    width: 138vw;
  }
  .frame-two-img {
    width: 132vw;
  }
  .story-panel h2 {
    font-size: 3.2rem;
  }
  .facts {
    gap: 34px;
    margin-top: 44px;
  }
  .facts dt {
    font-size: 3.2rem;
  }
  .sight-card {
    flex-basis: clamp(320px, 40vw, 390px);
    min-height: 178px;
  }
  .season-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
  }
  .season-card {
    min-height: 186px;
  }
  .stat-band {
    gap: 18px;
    margin-top: 38px;
  }
  .stat-cell {
    padding: 20px 12px;
  }
  .stat-cell dt {
    font-size: 3.2rem;
  }
  .walk-list {
    gap: 14px;
    margin-top: 34px;
  }
  .walk-step {
    padding: 18px 20px;
  }
  .quote-plate p {
    font-size: 2.05rem;
  }
}

@media (max-width: 640px) {
  /* single-row navbar: logo left, hamburger right. The inline nav and the
     language chip move into the drawer. */
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(
      180deg,
      rgba(6, 12, 16, 0.42) 0%,
      rgba(6, 12, 16, 0) 100%
    );
  }
  .site-nav,
  .language-switcher {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    grid-column: 2;
  }
  .site-logo {
    font-size: 20px;
  }
  .hero-title {
    /* centred above the intro copy rather than pinned to 15vh */
    top: 34%;
    /* scales with the screen instead of one fixed size that overflows at 320px */
    font-size: clamp(3rem, 17vw, 4.75rem);
  }
  .bridge-img {
    bottom: 2vh;
    width: 190vw;
  }
  .frame-two-img {
    width: 176vw;
  }
  /* centred under the title instead of pinned to the bottom edge */
  .intro-copy {
    top: 52%;
    bottom: auto;
    width: calc(100% - 36px);
  }
  .intro-copy p,
  .story-panel p {
    font-size: clamp(0.94rem, 4vw, 1.05rem);
    line-height: 1.3;
  }
  .hero-tags {
    gap: 8px;
    margin-top: 18px;
  }
  .hero-tags span {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.84rem;
  }
  /* every act is centred on the stage on mobile — the desktop composition
     offsets each panel to dodge the artwork, but on a phone the artwork is
     mostly out of frame and off-centre text just reads as misaligned */
  .story-panel {
    top: 50%;
    width: min(760px, calc(100% - 36px));
    max-height: calc(var(--stage-h) - 96px);
  }
  .story-panel-bazaar,
  .story-panel-bridge,
  .story-panel-stats,
  .story-panel-quote,
  .story-panel-outro {
    top: 50%;
  }
  .story-panel h2 {
    font-size: clamp(1.85rem, 8.4vw, 2.6rem);
    line-height: 1.02;
  }
  .facts {
    gap: 14px;
    margin-top: 26px;
    width: 100%;
  }
  .facts dt {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
  .facts dd {
    margin-top: 10px;
    font-size: 0.86rem;
    line-height: 1.24;
  }
  /* on mobile the cards become a real swipeable rail instead of a
     scroll-position-driven track: native horizontal scroll with snap.
     `--sights-shift` is neutralised so JS can't fight the finger. */
  .sights-slider {
    padding: 0;
  }
  .sights-track {
    gap: 12px;
  }
  .sight-card {
    flex-basis: min(78vw, 320px);
    height: auto;
    min-height: 208px;
    padding: 20px;
    border-radius: 20px;
  }
  .sight-card h3 {
    font-size: 20px;
  }
  .sight-card p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.24;
  }
  .sight-kicker {
    padding-right: 62px;
    font-size: 12px;
  }
  .sight-pin {
    top: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  .panel-kicker {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }
  .story-panel-seasons,
  .story-panel-walk {
    top: 50%;
    width: calc(100% - 28px);
    max-height: calc(var(--stage-h) - 104px);
  }
  .story-panel-seasons .panel-kicker,
  .story-panel-walk .panel-kicker {
    display: none;
  }
  .story-panel-walk h2,
  .story-panel-seasons h2 {
    font-size: clamp(1.6rem, 7.2vw, 2.1rem);
  }
  .walk-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 20px;
  }
  .walk-step {
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
  }
  .walk-index {
    font-size: 1.25rem;
  }
  .walk-body h3 {
    font-size: 0.95rem;
  }
  .walk-body p {
    margin-top: 5px;
    font-size: 0.85rem;
    line-height: 1.26;
  }
  .stat-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 22px;
  }
  .stat-cell {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 12px 0;
  }
  .stat-cell dt {
    flex: 0 0 auto;
    /* fixed min-width keeps the three labels left-aligned with each other */
    min-width: 84px;
    font-size: clamp(2rem, 9vw, 2.5rem);
  }
  /* 0.34em of a clamped dt fell under 11px on a 320px screen */
  .stat-unit {
    font-size: 0.9rem;
  }
  .stat-cell dd {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.24;
    text-align: left;
  }
  /* 4 stacked cards + heading do not fit a phone stage — 2 columns of compact
     cards do, and the copy stays readable */
  .season-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }
  .season-card {
    min-height: 0;
    padding: 14px;
    border-radius: 16px;
  }
  .season-month {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }
  .season-card h3 {
    font-size: 16px;
  }
  .season-card p {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.24;
  }
  .quote-plate p {
    font-size: clamp(1.2rem, 5.6vw, 1.6rem);
    line-height: 1.14;
  }
  .quote-plate footer {
    margin-top: 22px;
  }
  .quote-plate cite {
    font-size: 0.8rem;
  }
  .outro-actions {
    gap: 10px;
    margin-top: 20px;
  }
  .outro-foot {
    margin-top: 26px;
    font-size: 0.72rem;
  }
  .note-button {
    min-height: 44px;
    margin-top: 20px;
    padding: 0 20px;
    font-size: 0.9rem;
  }
  .story-panel-outro {
    top: 50%;
  }

  /* the footer is desktop-only — a phone stage has no room for it and the
     outro already closes the story */
  .site-footer {
    display: none;
  }
}

/* short viewports (phone landscape, small tablets) — the stage is only ~380px
   tall, so the acts need to shed vertical spacing or they clip */
@media (max-height: 560px) and (max-width: 1100px) {
  .site-header {
    padding: 12px 18px;
  }
  .hero-title {
    top: 26%;
    font-size: clamp(2.4rem, 11vh, 4rem);
  }
  .intro-copy {
    top: 54%;
    bottom: auto;
  }
  .hero-tags {
    margin-top: 12px;
  }
  .story-panel h2 {
    font-size: clamp(1.5rem, 6.4vh, 2.2rem);
  }
  .story-panel p {
    margin-top: 14px;
  }
  .facts {
    margin-top: 18px;
  }
  .walk-list,
  .season-strip,
  .stat-band {
    margin-top: 14px;
  }
  .season-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .walk-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quote-plate footer {
    margin-top: 14px;
  }
  /* no room for the footer on a 390px-tall stage either */
  .site-footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scene-img,
  .back-stack,
  .hero-title,
  .intro-copy,
  .story-panel,
  .sights-track,
  .sights-slider {
    transition: none;
  }
}
