@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #13241b;
  --forest: #173326;
  --forest-deep: #0d2219;
  --paper: #f6f1e7;
  --sand: #ece2cf;
  --muted: #6f776d;
  --gold: #d9b77c;
  --saffron: #eba43a;
  --saffron-hot: #f3b555;
  --maroon: #7a1c2c;
  --line: rgba(19, 36, 27, .16);
  --page-width: 1280px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --sinhala: "Noto Serif Sinhala", "Iskoola Pota", "Nirmala UI", serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --fell: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --fell-sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --map-ink: #4a2f1a;
  --map-red: #8a2b1d;
  --parchment-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='p' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0125 .01875' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .12 0 0 0 .5 -.17'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  --paper-map: radial-gradient(ellipse at 50% 50%, rgba(255, 248, 230, 0) 45%, rgba(120, 75, 30, .3) 100%), radial-gradient(circle at 22% 28%, rgba(150, 100, 40, .13), transparent 16%), radial-gradient(circle at 78% 72%, rgba(150, 100, 40, .1), transparent 20%), var(--parchment-tex), #ead6ab;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper) var(--parchment-tex);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* fine film grain over everything */
body::after {
  position: fixed;
  z-index: 200;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  content: "";
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.page-width { width: min(var(--page-width), 86%); margin-inline: auto; }
.section-pad { padding-block: clamp(90px, 11vw, 160px); }
.si { font-family: var(--sinhala); font-weight: 600; letter-spacing: 0; text-transform: none; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow-rule { display: inline-block; width: 28px; height: 1px; background: currentColor; }
.light { color: rgba(255,255,255,.82); }
h1, h2, h3, p { margin-top: 0; }
h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.035em;
}
h2 em, h3 em { color: #a5773a; font-style: italic; font-weight: 300; }
.section-aside { max-width: 280px; margin: 0; color: var(--muted); font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .35s var(--ease), background .25s ease, box-shadow .35s var(--ease), color .25s ease;
}
.btn span { font-size: 15px; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover span { transform: translateX(4px); }
.btn-saffron { background: var(--saffron); color: #1d1408; box-shadow: 0 10px 30px -10px rgba(235,164,58,.7); }
.btn-saffron:hover { background: var(--saffron-hot); box-shadow: 0 18px 40px -12px rgba(235,164,58,.85); }
.btn-glass { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255,255,255,.22); }
.underlined-link { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 6px; border-bottom: 1px solid currentColor; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.underlined-link span { font-size: 15px; transition: transform .25s var(--ease); }
.underlined-link:hover span { transform: translate(3px, -3px); }
.light-link { color: #fff; }

/* ---------- Loader: a parchment scroll unrolls ---------- */
.loader {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #1c3b2c 0%, #071811 75%);
  clip-path: inset(0 0 0 0);
  animation: loader-fallback .9s 4.4s var(--ease) forwards;
}
.loader-scroll { position: relative; --half: min(290px, 41vw); }
.loader-paper {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  width: calc(var(--half) * 2);
  height: min(330px, 50svh);
  padding: 20px;
  color: var(--map-ink);
  text-align: center;
  background: var(--paper-map);
  box-shadow: inset 0 0 60px rgba(90, 55, 20, .35);
  clip-path: inset(0 50% 0 50%);
  animation: unroll-x 1.5s .3s cubic-bezier(.75, 0, .2, 1) forwards;
}
.loader .rod--left { animation: rod-left 1.5s .3s cubic-bezier(.75, 0, .2, 1) both; }
.loader .rod--right { animation: rod-right 1.5s .3s cubic-bezier(.75, 0, .2, 1) both; }
.loader-paper > * { margin: 0; animation: loader-in 1s 1.25s var(--ease) both; }
.loader-kicker { font-family: var(--fell-sc); font-size: 12px; letter-spacing: .28em; color: #7a5230; }
.loader-word { font-family: var(--sinhala); font-size: clamp(42px, 7vw, 76px); font-weight: 600; line-height: 1.35; color: var(--map-red); animation-delay: 1.35s !important; }
.loader-sub { font-family: var(--fell); font-size: 17px; font-style: italic; }
.loader-rule { display: block; width: 130px; height: 9px; margin: 6px 0; background: linear-gradient(var(--map-ink), var(--map-ink)) center / 100% 1px no-repeat; position: relative; }
.loader-rule::after { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; background: var(--map-red); transform: translate(-50%, -50%) rotate(45deg); content: ""; }
.is-loaded .loader { animation: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.8, 0, .2, 1); }
@keyframes unroll-x { to { clip-path: inset(0 0 0 0); } }
@keyframes rod-left { from { transform: translateX(var(--half)); } }
@keyframes rod-right { from { transform: translateX(calc(var(--half) * -1)); } }
@keyframes loader-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
@keyframes loader-fallback { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ---------- Wooden rods + parchment (shared by the loader and every map) ---------- */
.rod { position: absolute; z-index: 3; display: block; border-radius: 12px; box-shadow: 0 10px 18px rgba(0, 0, 0, .38); }
.rod--top, .rod--bottom { left: -18px; right: -18px; height: 22px; background: linear-gradient(180deg, #2a1709 0%, #6b4223 22%, #c8935b 46%, #8a5a32 68%, #3b2414 100%); }
.rod--left, .rod--right { top: -24px; bottom: -24px; width: 22px; background: linear-gradient(90deg, #2a1709 0%, #6b4223 22%, #c8935b 46%, #8a5a32 68%, #3b2414 100%); }
.rod--left { left: -11px; }
.rod--right { right: -11px; }
.rod::before, .rod::after { position: absolute; background: radial-gradient(circle at 35% 35%, #e2b06a, #5a3517 72%); border-radius: 7px; content: ""; }
.rod--top::before, .rod--bottom::before { top: -4px; left: -10px; width: 15px; height: 30px; }
.rod--top::after, .rod--bottom::after { top: -4px; right: -10px; width: 15px; height: 30px; }
.rod--left::before, .rod--right::before { top: -10px; left: -4px; width: 30px; height: 15px; }
.rod--left::after, .rod--right::after { bottom: -10px; left: -4px; width: 30px; height: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding-inline: 6%;
  color: #fff;
  transition: transform .5s var(--ease), background .35s ease, height .35s ease, color .35s ease, box-shadow .35s ease;
}
.site-header.is-solid {
  height: 70px;
  background: rgba(246, 241, 231, .78);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.site-header.is-hidden { transform: translateY(-100%); }
.brand { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.brand-mark { color: var(--saffron); }
.nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); }
.nav a { position: relative; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav a:not(.nav-cta)::after { position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); content: ""; }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border: 1px solid currentColor; border-radius: 999px; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.nav .nav-cta:hover { border-color: var(--saffron); background: var(--saffron); color: #1d1408; }
.nav-cta span { font-size: 14px; }
.menu-button { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; background: var(--forest-deep); }
.has-motion .hero { height: 270vh; }
.hero-sticky { position: sticky; top: 0; height: 100svh; min-height: 600px; overflow: hidden; }
.hero-scene {
  /* the photo is laid out like object-fit: cover, then slid so the rock's crown sits mid-screen */
  --stage-w: max(100vw, 75svh);
  --stage-h: calc(var(--stage-w) * 1.3331);
  --stage-y: max(calc(100svh - var(--stage-h)), min(0px, calc(52svh - var(--stage-h) * .352)));
  --rock-top: calc(var(--stage-y) + var(--stage-h) * .352);
  --mx: 0;
  --my: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #fff;
  background: var(--forest-deep);
  clip-path: inset(0 0 0 0 round 0);
}
.hero-img {
  position: absolute;
  top: var(--stage-y);
  left: 50%;
  width: var(--stage-w);
  max-width: none;
  height: var(--stage-h);
  margin-left: calc(var(--stage-w) / -2);
  object-fit: cover;
  transform-origin: 48% 54%;
  translate: calc(var(--mx) * -16px) calc(var(--my) * -10px);
  will-change: transform;
}
.hero-bg { z-index: 0; }
.hero-rock { z-index: 2; pointer-events: none; }
.hero-title-layer {
  position: absolute;
  z-index: 1;
  inset: var(--rock-top) 0 auto;
  transform: translateY(-63%);
  perspective: 900px;
  text-align: center;
}
.hero-title-move { translate: calc(var(--mx) * 26px) calc(var(--my) * 14px); transform-origin: 50% 80%; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 4px;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-eyebrow .si { font-size: 17px; color: var(--gold); }
.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(96px, 18.5vw, 330px);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  line-height: .86;
  letter-spacing: -.045em;
  white-space: nowrap;
  transform: rotateX(calc(var(--my) * -7deg)) rotateY(calc(var(--mx) * 9deg));
  transform-style: preserve-3d;
  filter: drop-shadow(0 18px 40px rgba(6, 20, 13, .35));
}
.hero-title { color: #fbf1df; }
.hero-title .char {
  background: linear-gradient(180deg, #fffaf0 0%, #f8e7c8 55%, #eebf78 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .char { display: inline-block; padding-bottom: .06em; transform-origin: 50% 100%; }

.hero-mist { position: absolute; z-index: 3; inset: 0; pointer-events: none; translate: calc(var(--mx) * 40px) calc(var(--my) * 20px); }
.hero-mist i { position: absolute; display: block; border-radius: 50%; background: radial-gradient(closest-side, rgba(238, 234, 222, .62), rgba(238, 234, 222, 0)); filter: blur(30px); animation: drift 18s ease-in-out infinite alternate; }
.hero-mist i:nth-child(1) { top: -10%; left: -20%; width: 70vw; height: 40vh; }
.hero-mist i:nth-child(2) { top: 18%; right: -25%; width: 60vw; height: 34vh; opacity: .7; animation-duration: 23s; animation-direction: alternate-reverse; }
.hero-mist i:nth-child(3) { bottom: -12%; left: 10%; width: 90vw; height: 30vh; opacity: .35; animation-duration: 27s; }
@keyframes drift { to { translate: 8vw 0; scale: 1.1; } }
.hero-shade {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 22, 15, .55) 0%, rgba(8, 22, 15, 0) 24%),
    linear-gradient(0deg, rgba(8, 22, 15, .82) 0%, rgba(8, 22, 15, .25) 32%, rgba(8, 22, 15, 0) 52%);
}
.hero-copy {
  position: absolute;
  z-index: 5;
  inset: auto 0 clamp(30px, 7vh, 70px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.hero-lede { max-width: 400px; margin: 0; color: rgba(255,255,255,.86); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-coordinates { position: absolute; z-index: 5; top: 50%; right: 2.2%; margin: 0; color: rgba(255,255,255,.6); font-size: 10px; font-weight: 700; letter-spacing: .2em; writing-mode: vertical-rl; transform: translateY(-50%); }
.scroll-cue { position: absolute; z-index: 5; left: 50%; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,.7); font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; transform: translateX(-50%); }
.scroll-cue i { position: relative; display: block; width: 1px; height: 42px; overflow: hidden; background: rgba(255,255,255,.2); }
.scroll-cue i::after { position: absolute; inset: 0; background: var(--saffron); animation: cue 2s var(--ease) infinite; content: ""; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.hero-fact { display: none; }
.has-motion .hero-fact {
  position: absolute;
  z-index: 5;
  top: 34%;
  right: 7%;
  display: flex;
  gap: 14px;
  max-width: 270px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  background: rgba(13, 34, 25, .35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  font-size: 13px;
  line-height: 1.5;
}
.hero-fact b { display: block; margin-bottom: 4px; color: var(--gold); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.hero-fact span { color: rgba(255,255,255,.85); }
.hero-fact-dot { flex: 0 0 10px; height: 10px; margin-top: 3px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 6px rgba(235,164,58,.25); }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 22px 0; background: var(--maroon); color: #f8eadb; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; font-family: var(--serif); font-size: clamp(28px, 4vw, 54px); font-style: italic; font-weight: 300; line-height: 1.1; white-space: nowrap; animation: marquee 40s linear infinite; }
.has-motion .marquee-track { animation: none; }
.marquee-track i { color: var(--saffron); font-size: .55em; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.intro { background: var(--paper) var(--parchment-tex); }
.intro-grid { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(0, 3fr); gap: clamp(30px, 6vw, 90px); }
.intro-side { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.lotus { width: 58px; fill: none; stroke: var(--saffron); stroke-width: 1.4; stroke-linejoin: round; }
.intro-statement { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3.5vw, 52px); font-weight: 300; line-height: 1.22; letter-spacing: -.02em; }
.intro-statement .w { display: inline-block; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(70px, 9vw, 120px); margin-bottom: 0; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.stats dd { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5.6vw, 82px); font-weight: 400; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats dt { max-width: 200px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Places ---------- */
.places { position: relative; background: var(--forest-deep); color: #f6f1e7; }
.places-pin { display: flex; flex-direction: column; justify-content: center; gap: clamp(30px, 5vh, 56px); min-height: 100svh; padding-block: clamp(100px, 13vh, 130px) clamp(50px, 8vh, 80px); overflow: hidden; perspective: 1500px; }
.places .eyebrow { color: var(--gold); }
.places h2 em { color: var(--gold); }
.places-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 34px; }
.places-head h2 { margin-top: 14px; }
.places-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.places .section-aside { color: rgba(255,255,255,.6); text-align: right; }
.places-progress { width: 180px; height: 2px; overflow: hidden; background: rgba(255,255,255,.15); }
.places-progress i { display: block; height: 100%; background: var(--saffron); transform: scaleX(0); transform-origin: left; }
.places-track { display: flex; gap: clamp(18px, 2.2vw, 30px); padding-inline: 7vw; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transform-style: preserve-3d; }
.places-track::-webkit-scrollbar { display: none; }
.place-card {
  position: relative;
  flex: 0 0 clamp(270px, 29vw, 430px);
  height: min(60svh, 560px);
  min-height: 400px;
  overflow: hidden;
  border-radius: 24px;
  background: #1e3b2d;
  color: #fff;
  scroll-snap-align: center;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
  will-change: transform;
}
.place-media { position: absolute; inset: 0; overflow: hidden; }
.place-media img { position: absolute; inset: 0 -12%; width: 124%; height: 100%; max-width: none; object-fit: cover; transition: scale 1.2s var(--ease); }
.place-card:hover .place-media img { scale: 1.06; }
.place-card--yala .place-media img { object-position: 72% center; }
.place-card::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,22,15,0) 38%, rgba(8,22,15,.86) 100%); content: ""; }
.place-info { position: absolute; z-index: 1; inset: auto 26px 26px; }
.place-index { display: block; margin-bottom: 10px; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.place-info h3 { margin: 0; font-family: var(--serif); font-size: clamp(30px, 2.8vw, 42px); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.place-info p { margin: 8px 0 16px; color: rgba(255,255,255,.8); font-size: 14px; }
.place-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.place-more { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.place-more i { font-style: normal; transition: transform .35s var(--ease); }
.place-card:hover .place-more i { transform: translateX(5px); }
.tag { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.1); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.place-card--end { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 22px; padding: 34px; background: radial-gradient(120% 90% at 100% 0%, #a3324a 0%, var(--maroon) 45%, #4c0f1b 100%); }
.place-card--end::after { display: none; }
.place-card--end h3 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 3.2vw, 50px); font-weight: 400; line-height: 1.05; letter-spacing: -.03em; }
.has-motion .places-track { overflow: visible; width: max-content; }

/* ---------- Journey ---------- */
.journey { position: relative; background: var(--forest-deep); color: #fff; }
.journey-pin { position: relative; display: flex; align-items: flex-end; height: 100svh; min-height: 640px; overflow: hidden; }
.journey-media { position: absolute; inset: 0; overflow: hidden; }
.journey-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.journey-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,22,15,.82) 0%, rgba(8,22,15,.45) 45%, rgba(8,22,15,0) 75%), linear-gradient(0deg, rgba(8,22,15,.7), rgba(8,22,15,0) 45%); }
.journey-copy { position: relative; padding-bottom: clamp(50px, 10vh, 100px); }
.journey-copy .eyebrow { color: var(--gold); }
.journey-copy h2 { margin: 22px 0 24px; font-size: clamp(52px, 7.6vw, 116px); line-height: .95; }
.journey-copy h2 em { color: var(--gold); }
.journey-description { max-width: 440px; margin-bottom: 36px; color: rgba(255,255,255,.8); font-size: 16px; }
.journey-details { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; max-width: 760px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.72); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.journey-details b { margin-inline: 8px; color: var(--saffron); }
.journey-details .underlined-link { margin-left: auto; }

/* ---------- Journal ---------- */
.journal { padding-block: clamp(90px, 11vw, 150px); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 34px; margin-bottom: 50px; }
.section-heading h2 { margin-top: 14px; }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.story { min-width: 0; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -40px rgba(19,36,27,.45); transform-style: preserve-3d; will-change: transform; }
.story-image { aspect-ratio: 1.15; overflow: hidden; border-radius: 22px 22px 0 0; background: #e1e4dc; }
.story-image img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; }
.story-body { padding: 24px 26px 28px; transform: translateZ(30px); }
.story .eyebrow { color: #a5773a; font-size: 10px; }
.story h3 { margin: 12px 0 14px; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.story-meta { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Closing ---------- */
.closing { position: relative; display: grid; place-items: center; min-height: 92svh; padding: 120px 7%; overflow: hidden; color: #fff; text-align: center; isolation: isolate; }
.closing-media { position: absolute; z-index: -2; inset: -14% 0; }
.closing-media img { width: 100%; height: 100%; object-fit: cover; }
.closing::before { position: absolute; z-index: -1; inset: 0; background: radial-gradient(80% 70% at 50% 50%, rgba(10,30,22,.55), rgba(10,30,22,.85)); content: ""; }
.closing-si { position: absolute; z-index: -1; top: 50%; left: 50%; margin: 0; color: transparent; font-family: var(--sinhala); font-size: clamp(110px, 22vw, 380px); font-weight: 600; line-height: 1; white-space: nowrap; -webkit-text-stroke: 1px rgba(246, 225, 190, .28); translate: -50% -50%; }
.closing-copy { display: flex; flex-direction: column; align-items: center; }
.closing .eyebrow { color: var(--gold); }
.closing h2 { margin: 20px 0 38px; font-size: clamp(50px, 7.4vw, 112px); line-height: .98; }
.closing h2 em { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { position: relative; display: grid; grid-template-columns: 1fr 1.4fr 1.6fr; align-items: center; gap: 24px; padding: 44px 6% 28px; background: #0a1c14; color: #fff; }
.flag-stripe { position: absolute; inset: 0 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr 3fr; height: 4px; }
.flag-stripe i:nth-child(1) { background: #00534e; }
.flag-stripe i:nth-child(2) { background: #e57200; }
.flag-stripe i:nth-child(3) { background: #ffbe29; }
.flag-stripe i:nth-child(4) { background: #8d153a; }
.site-footer p { margin: 0; color: rgba(255,255,255,.6); font-size: 13px; }
.site-footer nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 26px; }
.site-footer nav a { color: rgba(255,255,255,.8); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: color .2s ease; }
.site-footer nav a:hover { color: var(--saffron); }
.site-footer small { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

:focus-visible { outline: 2px solid var(--saffron); outline-offset: 4px; }

/* ---------- Scroll map: parchment that unrolls between two rods ---------- */
.scroll-map { --u: 1; position: relative; width: 100%; transform-style: preserve-3d; }
.scroll-map .paper {
  position: relative;
  padding: 12px;
  background: var(--paper-map);
  box-shadow: inset 0 0 70px rgba(90, 55, 20, .38), 0 40px 70px -30px rgba(0, 0, 0, .55);
  clip-path: inset(0 0 calc((1 - var(--u)) * 100%) 0);
}
.scroll-map .paper::after {
  position: absolute;
  inset: auto 0 auto;
  top: calc(var(--u) * 100% - 46px);
  height: 46px;
  background: linear-gradient(180deg, rgba(60, 35, 15, 0), rgba(60, 35, 15, .38));
  opacity: min(1, calc((1 - var(--u)) * 8));
  pointer-events: none;
  content: "";
}
.scroll-map .rod--top { top: -11px; }
.scroll-map .rod--bottom { top: calc(var(--u) * 100% - 11px); }
.map-tip {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  display: grid;
  gap: 2px;
  width: 230px;
  padding: 14px 16px 12px;
  border: 1px solid rgba(74, 47, 26, .35);
  border-radius: 4px;
  background: var(--paper-map);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5);
  color: var(--map-ink);
  font-family: var(--fell);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity .2s ease;
}
.map-tip.is-on { opacity: 1; }
.map-tip.is-below { transform: translate(-50%, 12px); }
.map-tip b { font-size: 21px; font-weight: 400; line-height: 1.1; }
.map-tip .si { color: var(--map-red); font-size: 14px; }
.map-tip em { font-size: 14px; line-height: 1.35; }
.tip-cat { color: var(--ink); font-family: var(--fell-sc); font-size: 11px; letter-spacing: .14em; }
.tip-more { margin-top: 4px; color: var(--map-red); font-family: var(--fell-sc); font-size: 12px; letter-spacing: .1em; }

/* ---------- The engraved map itself ---------- */
.ancient-map { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--fell); }
.ancient-map text { font-family: var(--fell); }
.neatline { fill: none; stroke: var(--map-ink); stroke-width: 1; }
.neatline.thin { stroke-width: .5; }
.checker { fill: none; stroke: var(--map-ink); stroke-width: 2.2; stroke-dasharray: 8 8; }
.graticule line { stroke: rgba(74, 47, 26, .24); stroke-width: .5; stroke-dasharray: 2 3; }
.grid-label { fill: rgba(74, 47, 26, .75); font-size: 6.5px; font-style: italic; }
.wave { fill: none; stroke: rgba(74, 47, 26, .45); stroke-width: .7; stroke-linecap: round; }
.ship path { fill: none; stroke: var(--map-ink); stroke-width: .9; stroke-linejoin: round; }
.sea-beast { color: var(--map-ink); fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sea-label { fill: rgba(74, 47, 26, .78); font-size: 9px; font-style: italic; letter-spacing: .06em; }
.sea-label.small { font-size: 6.5px; }
.coast-ripple { fill: none; stroke: var(--map-ink); stroke-opacity: .2; stroke-dasharray: .45 2.3; stroke-linecap: round; }
.island { fill: #dcc08a; }
.hatch-line { stroke: rgba(74, 47, 26, .13); stroke-width: .55; }
.island-edge { fill: none; stroke: #3a2414; stroke-width: 1.3; stroke-linejoin: round; }
.mount { fill: none; stroke: #5a3a1e; stroke-width: .8; stroke-linejoin: round; stroke-linecap: round; }
.tree { fill: none; stroke: #55602c; stroke-width: .7; }
.river { fill: none; stroke: #3d6a7a; stroke-width: 1; stroke-linecap: round; opacity: .8; }
.river-label { fill: #3d6a7a; font-size: 5.5px; font-style: italic; }
.route-trace { fill: none; stroke: rgba(138, 43, 29, .35); stroke-width: 1; stroke-dasharray: 2 2.5; }
.route-ink { fill: none; stroke: var(--map-red); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pin { cursor: pointer; outline: none; transition: opacity .35s ease; }
.pin-dot { fill: var(--ink); stroke: #f4e8cb; stroke-width: 1; }
.pin-halo { fill: none; stroke: var(--ink); stroke-width: .8; stroke-opacity: .55; }
.pin-dot, .pin-halo { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease), stroke-opacity .35s ease; }
.pin:hover .pin-dot, .pin:focus-visible .pin-dot, .pin.is-active .pin-dot, .pin.is-focus .pin-dot { transform: scale(1.5); }
.pin:hover .pin-halo, .pin:focus-visible .pin-halo, .pin.is-active .pin-halo { transform: scale(1.8); stroke-opacity: 1; }
.pin.is-focus .pin-halo { stroke-opacity: 1; animation: pin-pulse 2.2s ease-out infinite; }
@keyframes pin-pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }
.pin-label { fill: #2e1c0f; font-size: 8.5px; paint-order: stroke; stroke: #ecdcb3; stroke-width: 2.6px; stroke-linejoin: round; pointer-events: none; }
.pin.is-focus .pin-label { fill: var(--map-red); font-size: 11px; }
.pin.is-dim { opacity: .14; pointer-events: none; }
.pin.is-faint { opacity: .5; }
.compass-ring { fill: rgba(239, 223, 183, .6); stroke: var(--map-ink); stroke-width: .8; }
.compass-ring.thin { fill: none; stroke-width: .4; }
.compass-tick { stroke: var(--map-ink); stroke-width: .4; }
.arm-light { fill: #f1e2bf; stroke: var(--map-ink); stroke-width: .45; }
.arm-dark { fill: var(--map-ink); }
.compass-hub { fill: var(--map-red); }
.compass-n { fill: var(--map-red); font-family: var(--fell-sc) !important; font-size: 10px; }
.cart-outer { fill: #efdfb7; stroke: var(--map-ink); stroke-width: 1; }
.cart-inner { fill: none; stroke: var(--map-ink); stroke-width: .4; }
.cart-title { fill: #3a2414; font-family: var(--fell-sc) !important; font-size: 11.5px; letter-spacing: .12em; }
.cart-sub { fill: #3a2414; font-size: 5.6px; font-style: italic; }
.cart-rule { stroke: var(--map-ink); stroke-width: .4; }
.cart-si { fill: var(--map-red); font-family: var(--sinhala) !important; font-size: 8px; }
.cart-year { fill: #6b4a2a; font-size: 5px; letter-spacing: .2em; }
.scale-dark { fill: var(--map-ink); }
.scale-light { fill: #efdfb7; stroke: var(--map-ink); stroke-width: .5; }

/* ---------- Home: Atlas ---------- */
.atlas { position: relative; overflow: hidden; background: radial-gradient(ellipse at 70% 50%, #21412f 0%, var(--forest-deep) 70%); color: #f6f1e7; }
.atlas-pin { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(30px, 6vw, 90px); min-height: 100svh; padding: clamp(96px, 12vh, 120px) 6% 56px; }
.atlas-copy .eyebrow { color: var(--gold); }
.atlas-copy h2 { margin: 18px 0 20px; font-size: clamp(46px, 5.8vw, 86px); }
.atlas-copy h2 em { color: var(--gold); }
.atlas-lede { max-width: 400px; color: rgba(255, 255, 255, .74); font-family: var(--fell); font-size: 19px; line-height: 1.5; }
.atlas-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; padding: 0; list-style: none; }
.atlas-legend a { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: background .25s ease, border-color .25s ease; }
.atlas-legend a:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); }
.atlas-legend b { color: var(--gold); font-weight: 700; }
.atlas-legend .cat-dot { box-shadow: 0 0 0 2px rgba(246, 241, 231, .8); }
.cat-dot { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.atlas-stage { display: grid; place-items: center; perspective: 1600px; }
.atlas-stage .scroll-map { width: min(100%, calc((100svh - 190px) * .72)); }

/* ---------- Home: Journeys & prices ---------- */
.pricing { background: var(--sand) var(--parchment-tex); }
.pricing .section-aside { max-width: 330px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: clamp(16px, 2vw, 28px); }
.price-card { position: relative; display: flex; flex-direction: column; padding: 22px 24px 26px; border: 1px solid rgba(74, 47, 26, .16); border-radius: 22px; background: #fbf6ea; box-shadow: 0 30px 60px -40px rgba(19, 36, 27, .5); }
.price-card.is-featured { border-color: transparent; background: var(--forest-deep); color: #f6f1e7; translate: 0 -14px; }
.price-flag { position: absolute; z-index: 2; top: 32px; right: 34px; padding: 6px 12px; border-radius: 999px; background: var(--saffron); color: #1d1408; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.price-map { display: grid; place-items: center; height: 230px; overflow: hidden; margin-bottom: 22px; padding: 10px; border-radius: 14px; background: var(--paper-map); box-shadow: inset 0 0 40px rgba(90, 55, 20, .3); }
.price-map .ancient-map { width: auto; max-width: 100%; height: 210px; }
.price-days { margin: 0 0 6px; color: #a5773a; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.price-days .si { font-size: 13px; letter-spacing: 0; }
.price-card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(28px, 2.4vw, 36px); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.price-blurb { margin-bottom: 16px; color: #56604f; font-size: 14px; }
.price-route { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 18px; font-family: var(--fell); font-size: 15px; }
.price-route a { border-bottom: 1px dotted currentColor; }
.price-route a:hover { color: var(--map-red); }
.price-route i { color: var(--saffron); font-style: normal; font-size: 12px; }
.price-includes { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 13px; }
.price-includes li { position: relative; padding-left: 20px; }
.price-includes li::before { position: absolute; top: .55em; left: 2px; width: 7px; height: 7px; background: var(--saffron); transform: rotate(45deg); content: ""; }
.price-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.price-amount { margin: 0; font-family: var(--serif); font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.price-amount small { margin-inline: 4px; color: var(--muted); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.price-card.is-featured .price-blurb, .price-card.is-featured .price-amount small { color: rgba(255, 255, 255, .65); }
.price-card.is-featured .price-days { color: var(--gold); }
.price-card.is-featured .price-foot { border-color: rgba(255, 255, 255, .18); }
.price-card.is-featured .price-route a:hover { color: var(--gold); }
.price-note { margin: 34px 0 0; color: var(--muted); font-size: 12px; font-style: italic; }
.btn-ink { background: var(--forest-deep); color: #fff; }
.btn-ink:hover { background: var(--forest); }

/* ---------- Plates & atlas cards (atlas + place pages) ---------- */
.plate { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-map); box-shadow: inset 0 0 50px rgba(90, 55, 20, .3); }
.plate::before { position: absolute; z-index: 2; inset: 10px; border: 1px solid rgba(74, 47, 26, .55); outline: 1px solid rgba(74, 47, 26, .3); outline-offset: 3px; pointer-events: none; content: ""; }
.plate:not(.plate--photo)::after { position: absolute; inset: 12% 22%; border-radius: 50%; background: repeating-conic-gradient(from 3deg, rgba(74, 47, 26, .13) 0deg 1.2deg, transparent 1.2deg 5deg); -webkit-mask: radial-gradient(closest-side, transparent 18%, #000 40%, transparent 100%); mask: radial-gradient(closest-side, transparent 18%, #000 40%, transparent 100%); content: ""; }
.plate .ink-icon { position: relative; z-index: 1; width: 46%; height: auto; aspect-ratio: 1; color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(1.5px 1.5px 0 rgba(74, 47, 26, .25)) drop-shadow(0 0 10px rgba(234, 214, 171, .9)); transition: transform .8s var(--ease); }
.plate--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.22) saturate(.92) contrast(1.02); transition: scale 1.2s var(--ease); }
.plate--photo::before { border-color: rgba(255, 245, 225, .75); outline-color: rgba(255, 245, 225, .4); }
.plate-no { position: absolute; z-index: 2; top: 18px; left: 20px; color: #6b4a2a; font-family: var(--fell-sc); font-size: 12px; letter-spacing: .14em; }
.plate-si { position: absolute; z-index: 2; right: 20px; bottom: 16px; color: var(--ink); font-family: var(--sinhala); font-size: 16px; font-weight: 600; }
.plate--photo .plate-no, .plate--photo .plate-si { color: #fff7e8; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }

.atlas-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(74, 47, 26, .16); border-radius: 18px; background: #fbf6ea; box-shadow: 0 24px 50px -36px rgba(19, 36, 27, .55); transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .8s ease, translate 1.1s var(--ease); }
.has-motion .reveal:not(.is-in) { opacity: 0; translate: 0 60px; }
.atlas-card:hover, .atlas-card.is-active { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(19, 36, 27, .55); }
.atlas-card:hover .ink-icon { transform: scale(1.08) rotate(-2deg); }
.atlas-card:hover .plate--photo img { scale: 1.06; }
.atlas-card.is-active { outline: 2px solid var(--ink); outline-offset: 2px; }
.atlas-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.atlas-card-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.atlas-card h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.atlas-card-link::after { position: absolute; z-index: 3; inset: 0; content: ""; }
.atlas-card-link:focus-visible { outline: none; }
.atlas-card:has(.atlas-card-link:focus-visible) { outline: 2px solid var(--saffron); outline-offset: 3px; }
.atlas-card-tag { margin: 0 0 16px; color: #5a4a35; font-family: var(--fell); font-size: 16px; font-style: italic; line-height: 1.35; }
.atlas-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed rgba(74, 47, 26, .25); font-size: 12px; }
.atlas-card-foot b { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--map-red); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.more i { font-style: normal; transition: transform .3s var(--ease); }
.atlas-card:hover .more i { transform: translateX(4px); }

/* ---------- Inner pages ---------- */
.page-sub { background: var(--paper) var(--parchment-tex); }
.page-sub .site-header { color: var(--ink); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; color: #6b4a2a; font-family: var(--fell); font-size: 15px; font-style: italic; }
.breadcrumb a { border-bottom: 1px dotted currentColor; }
.breadcrumb a:hover { color: var(--map-red); }

.atlas-hero { padding: clamp(120px, 16vh, 160px) 6% 40px; }
.atlas-hero-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 60px; }
.atlas-hero h1 { margin: 0; font-family: var(--fell); font-size: clamp(54px, 8vw, 128px); font-weight: 400; line-height: .95; letter-spacing: -.02em; }
.atlas-hero h1 em { color: var(--map-red); }
.atlas-hero .si-title { display: block; margin-top: 12px; color: var(--map-red); font-family: var(--sinhala); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; }
.atlas-hero p { max-width: 420px; margin: 0; color: #5a4a35; font-family: var(--fell); font-size: 19px; line-height: 1.5; }
.atlas-layout { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.45fr); align-items: start; gap: clamp(30px, 4vw, 60px); padding: 30px 6% 120px; }
.atlas-side { position: sticky; top: 96px; display: grid; justify-items: center; padding-top: 14px; }
.atlas-side .scroll-map { width: min(100%, calc((100svh - 150px) * .72)); }
.atlas-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid rgba(74, 47, 26, .25); border-radius: 999px; background: rgba(251, 246, 234, .7); color: var(--ink); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { border-color: var(--forest-deep); background: var(--forest-deep); color: #fff; }
.chip .cat-dot { box-shadow: 0 0 0 2px #fbf6ea; }
.chip b { opacity: .55; }
.atlas-search { flex: 1 1 200px; min-width: 0; padding: 11px 18px; border: 1px solid rgba(74, 47, 26, .25); border-radius: 999px; background: #fbf6ea; color: var(--ink); font: inherit; font-family: var(--fell); font-size: 17px; }
.atlas-search:focus { border-color: var(--map-red); outline: none; }
.atlas-count { width: 100%; margin: 4px 0 0; color: var(--muted); font-family: var(--fell); font-size: 15px; font-style: italic; }
.atlas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.atlas-empty { display: none; padding: 40px; border: 1px dashed rgba(74, 47, 26, .35); border-radius: 18px; color: #5a4a35; font-family: var(--fell); font-size: 19px; text-align: center; }
.atlas-empty.is-on { display: block; }
.atlas-card.is-hidden { display: none; }

.place-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: center; gap: clamp(30px, 6vw, 90px); min-height: 92svh; padding: clamp(110px, 15vh, 150px) 6% 70px; }
.place-no { margin: 0 0 6px; color: #6b4a2a; font-family: var(--fell-sc); font-size: 14px; letter-spacing: .22em; }
.place-si { display: block; margin: 0; color: var(--ink); font-family: var(--sinhala); font-size: clamp(54px, 8.5vw, 136px); font-weight: 600; line-height: 1.25; }
.place-hero h1 { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(38px, 5vw, 76px); font-weight: 400; line-height: 1; letter-spacing: -.035em; }
.place-tagline { max-width: 520px; margin: 0 0 28px; color: #5a4a35; font-family: var(--fell); font-size: clamp(20px, 1.8vw, 26px); font-style: italic; line-height: 1.35; }
.place-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.place-meta li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(74, 47, 26, .22); border-radius: 999px; background: rgba(251, 246, 234, .7); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.place-art .scroll-map .paper { padding: 0; }
.place-art .plate { aspect-ratio: 4 / 5; }
.place-art .plate .ink-icon { width: 58%; }
.place-art { padding-block: 14px; }
.place-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: start; gap: clamp(36px, 6vw, 90px); padding: 40px 6% 100px; }
.place-intro { margin: 0 0 50px; font-family: var(--fell); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.55; }
.place-intro::first-letter { float: left; margin: 6px 12px 0 0; color: var(--map-red); font-family: var(--fell); font-size: 4.2em; line-height: .8; }
.place-body h2 { margin: 0 0 22px; font-size: clamp(32px, 3.2vw, 46px); }
.place-highlights { display: grid; gap: 0; margin: 0 0 54px; padding: 0; list-style: none; counter-reset: hl; }
.place-highlights li { display: grid; grid-template-columns: 60px 1fr; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; counter-increment: hl; }
.place-highlights li:last-child { border-bottom: 1px solid var(--line); }
.place-highlights li::before { color: var(--map-red); font-family: var(--fell-sc); font-size: 18px; content: counter(hl, upper-roman) "."; }
.place-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.place-facts div { padding: 20px; border: 1px solid rgba(74, 47, 26, .18); border-radius: 16px; background: rgba(251, 246, 234, .7); }
.place-facts dt { margin-bottom: 8px; color: #a5773a; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.place-facts dd { margin: 0; font-family: var(--fell); font-size: 18px; line-height: 1.4; }
.place-aside { position: sticky; top: 96px; display: grid; gap: 22px; }
.book-card { padding: 26px; border-radius: 22px; background: var(--forest-deep); color: #f6f1e7; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .7); }
.book-card .eyebrow { color: var(--gold); }
.book-price { margin: 14px 0 4px; font-family: var(--serif); font-size: 54px; line-height: 1; letter-spacing: -.03em; }
.book-price small { margin-left: 6px; color: rgba(255, 255, 255, .6); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.book-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .78); font-size: 13px; }
.book-row b { color: #fff; }
.book-card .btn { justify-content: center; width: 100%; margin-top: 16px; }
.book-journeys { margin: 18px 0 0; color: rgba(255, 255, 255, .6); font-size: 12px; }
.book-journeys a { color: var(--gold); border-bottom: 1px dotted currentColor; }
.book-note { margin: 12px 0 0; color: rgba(255, 255, 255, .45); font-size: 11px; font-style: italic; }
.locator { padding: 10px 6px; }
.locator .scroll-map .paper { padding: 8px; }
.nearby { padding: 0 6% 110px; }
.nearby .section-heading { margin-bottom: 30px; }
.nearby-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.plate-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.plate-nav a { display: grid; gap: 4px; padding: 40px 6%; transition: background .3s ease; }
.plate-nav a:hover { background: rgba(74, 47, 26, .06); }
.plate-nav a + a { border-left: 1px solid var(--line); text-align: right; }
.plate-nav small { color: #6b4a2a; font-family: var(--fell-sc); font-size: 13px; letter-spacing: .16em; }
.plate-nav strong { font-family: var(--serif); font-size: clamp(26px, 3vw, 42px); font-weight: 500; letter-spacing: -.03em; }
.not-found { display: grid; place-items: center; gap: 18px; min-height: 80svh; padding: 140px 6% 80px; text-align: center; }
.not-found h1 { margin: 0; font-family: var(--fell); font-size: clamp(44px, 6vw, 80px); font-weight: 400; }

.photo-credit { margin: 30px 0 0; color: #6b4a2a; font-family: var(--fell); font-size: 14px; font-style: italic; text-align: center; }
.photo-credit a, .credits-list a { border-bottom: 1px dotted currentColor; }
.photo-credit a:hover, .credits-list a:hover { color: var(--map-red); }
.site-footer small a { border-bottom: 1px dotted currentColor; }
.credits { padding: clamp(120px, 16vh, 160px) 6% 110px; }
.credits h1 { margin: 0 0 14px; font-family: var(--fell); font-size: clamp(48px, 7vw, 100px); font-weight: 400; line-height: 1; }
.credits > p { max-width: 620px; margin: 0 0 40px; color: #5a4a35; font-family: var(--fell); font-size: 19px; }
.credits-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.credits-list li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px; padding: 12px; border: 1px solid rgba(74, 47, 26, .16); border-radius: 14px; background: rgba(251, 246, 234, .75); font-size: 13px; line-height: 1.5; }
.credits-list img { width: 96px; height: 72px; border-radius: 8px; object-fit: cover; }
.credits-list b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; }

/* ---------- Prototype badge + copy guard ---------- */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; }
.proto-badge {
  position: fixed;
  z-index: 60;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 9px;
  border: 1px solid rgba(74, 47, 26, .6);
  border-radius: 3px;
  background: var(--paper-map);
  color: var(--map-ink);
  font-family: var(--fell);
  outline: 1px solid rgba(74, 47, 26, .3);
  outline-offset: -5px;
  box-shadow: inset 0 0 18px rgba(90, 55, 20, .32), 0 14px 28px -12px rgba(0, 0, 0, .6);
  rotate: -1.5deg;
  transition: rotate .4s var(--ease), translate .4s var(--ease);
}
.proto-badge:hover { rotate: 0deg; translate: 0 -2px; }
.proto-seal {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 35% 30%, #c4503f 0%, #8a1f17 55%, #5a110b 100%);
  color: #f3d9b8;
  font-family: var(--fell-sc);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(138, 31, 23, .28), inset 0 -3px 5px rgba(0, 0, 0, .35), 0 3px 5px rgba(0, 0, 0, .3);
}
.proto-seal::after { position: absolute; inset: 4px; border: 1px dashed rgba(243, 217, 184, .55); border-radius: 50%; content: ""; }
.proto-text { display: grid; line-height: 1.15; }
.proto-text b { color: var(--map-red); font-family: var(--fell-sc); font-size: 14px; font-weight: 400; letter-spacing: .22em; }
.proto-text em { font-size: 14px; }
.guard-toast { position: fixed; z-index: 160; left: 50%; bottom: 84px; max-width: min(460px, calc(100vw - 32px)); padding: 14px 22px; border: 1px solid rgba(74, 47, 26, .6); border-left: 5px solid var(--map-red); border-radius: 3px; background: var(--paper-map); color: var(--map-ink); font-family: var(--fell); font-size: 17px; text-align: center; box-shadow: inset 0 0 18px rgba(90, 55, 20, .3), 0 20px 40px -14px rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .3s ease, transform .4s var(--ease); }
.guard-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.proto-note { color: var(--saffron); }
.loader-studio { font-family: var(--sans) !important; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #6b4a2a; }
@media print {
  body > * { display: none !important; }
  body::before { display: block; padding: 40px; font: 18px Georgia, serif; content: "Serendib is a prototype by GenZdev Solutions (genzdevsolutions.net). Printing is disabled."; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .page-width { width: 88%; }
  .hero-fact { display: none !important; }
  .places-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .places-meta { align-items: flex-start; }
  .places .section-aside { text-align: left; }
  .has-motion .places-track { overflow-x: auto; width: auto; }
  .place-card { flex-basis: 74vw; height: 470px; }
  .journal-grid { grid-template-columns: 1fr 1fr; }
  .journal-grid .story:last-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 680px) {
  body { font-size: 14px; }
  .section-pad { padding-block: 84px; }
  .site-header { height: 72px; padding-inline: 6%; }
  .site-header.is-solid { height: 64px; }
  .brand { position: relative; z-index: 2; font-size: 24px; }
  .menu-button { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 12px; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; }
  .menu-button span { display: block; width: 100%; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .site-header:has(.nav.is-open) { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 90px 8% 40px; background: var(--forest-deep); color: #fff; clip-path: circle(0 at calc(100% - 44px) 36px); transition: clip-path .6s cubic-bezier(.8, 0, .2, 1); visibility: hidden; }
  .nav.is-open { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; }
  .nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-family: var(--serif); font-size: 34px; font-weight: 400; letter-spacing: -.02em; text-transform: none; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav .nav-cta { justify-content: space-between; margin-top: 28px; padding: 16px 22px; border-color: var(--saffron); background: var(--saffron); color: #1d1408; font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

  .hero-scene { --stage-w: max(100vw, 88svh); --stage-y: max(calc(100svh - var(--stage-h)), min(0px, calc(46svh - var(--stage-h) * .352))); }
  .hero-title-layer { transform: translateY(-84%); }
  .hero-title { font-size: min(30vw, 21svh); line-height: .84; white-space: normal; }
  .hero-title .word { display: block; }
  .hero-eyebrow { margin-bottom: 10px; font-size: 10px; letter-spacing: .2em; }
  .hero-eyebrow .eyebrow-rule { display: none; }
  .hero-copy { flex-direction: column; align-items: flex-start; gap: 20px; bottom: 74px; }
  .hero-lede { max-width: 320px; font-size: 14px; }
  .btn { padding: 14px 20px; }
  .hero-coordinates, .scroll-cue { display: none; }

  .marquee { padding: 16px 0; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-side { flex-direction: row; align-items: center; padding-top: 0; }
  .lotus { width: 44px; }
  .stats dd { font-size: 46px; }

  .places-pin { padding-block: 96px 60px; }
  .place-card { flex-basis: 80vw; height: 440px; min-height: 0; }
  .places-progress { display: none; }

  .journey-pin { min-height: 600px; }
  .journey-shade { background: linear-gradient(0deg, rgba(8,22,15,.92) 0%, rgba(8,22,15,.55) 50%, rgba(8,22,15,.1) 80%); }
  .journey-copy h2 { font-size: clamp(48px, 13vw, 66px); }
  .journey-description { font-size: 14px; }
  .journey-details .underlined-link { margin-left: 0; }


  .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 32px; }
  .journal-grid { grid-template-columns: 1fr; gap: 26px; }

  .closing { min-height: 80svh; padding-block: 100px; }
  .site-footer { grid-template-columns: 1fr; gap: 14px; padding: 40px 6% 24px; }
  .site-footer nav { justify-content: flex-start; gap: 20px; padding-block: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 1100px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-card.is-featured { translate: none; }
  .atlas-layout { grid-template-columns: 1fr; }
  .atlas-side { position: relative; top: 0; }
  .atlas-side .scroll-map { width: min(100%, 460px); }
}
@media (max-width: 900px) {
  .atlas-pin { grid-template-columns: 1fr; min-height: 0; padding-block: 96px 90px; }
  .atlas-stage .scroll-map { width: min(100%, 520px); }
  .place-hero { grid-template-columns: 1fr; min-height: 0; }
  .place-art { width: min(100%, 440px); }
  .place-body { grid-template-columns: 1fr; }
  .place-aside { position: relative; top: 0; }
  .nearby-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .proto-badge { left: 12px; bottom: 12px; gap: 9px; padding: 6px 13px 6px 7px; }
  .proto-seal { width: 30px; height: 30px; font-size: 15px; }
  .proto-text b, .proto-text em { font-size: 12px; }
  .proto-long { display: none; }
  .price-grid { grid-template-columns: 1fr; }
  .place-facts { grid-template-columns: 1fr; }
  .nearby-grid { grid-template-columns: 1fr; }
  .plate-nav { grid-template-columns: 1fr; }
  .plate-nav a + a { border-top: 1px solid var(--line); border-left: 0; }
  .atlas-grid { grid-template-columns: 1fr; }
  .map-tip { width: 200px; }
  .place-highlights li { grid-template-columns: 44px 1fr; font-size: 15px; }
  .atlas-hero p { font-size: 17px; }
}
