/* Fonts are hosted with the site (from Google Fonts, SIL Open Font License). */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/atkinson-hyperlegible-next.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/young-serif-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Serif Tamil"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/noto-serif-tamil-500-subset.woff2) format("woff2"); }
@font-face { font-family: "Noto Serif Sinhala"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/noto-serif-sinhala-500-subset.woff2) format("woff2"); }

/* Urban Oasis Rajagiriya
   Palette: paddy green, deep green, pale leaf, pool blue, king-coconut gold.
   Type: Young Serif (headings) + Atkinson Hyperlegible Next (body, chosen for low vision). */

:root {
  --paper: #F4EEE2;
  --surface: #E7EEE3;
  --ink: #14261C;
  --muted: #4A5E52;
  --pool: #276D78;
  --line: #CDD9C9;
  --focus: #8F5E00;

  --paddy: #1F4A36;
  --deep: #0F271D;
  --gold: #E2A42B;
  --gold-hi: #EDB84F;
  --gold-ink: #13261C;
  --sage: #7FBF8E;
  --on-dark: #EEF2EA;
  --on-dark-muted: #B9C8BD;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(1rem, env(safe-area-inset-left));
  --gutter-r: max(1rem, env(safe-area-inset-right));
  --head-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}


/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.15rem + 3vw, 3.4rem); line-height: 1.08; letter-spacing: -.01em; }
h3 { font-size: 1.5rem; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.dark, .hero, .site-head, .facts, .final, .site-foot, .sticky-bar, .lb, .am-hi { --focus: #E2A42B; }

.skip {
  position: fixed; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold); color: var(--gold-ink); padding: .75rem 1.25rem; border-radius: 999px; font-weight: 700;
}
.skip:focus { top: calc(env(safe-area-inset-top) + .75rem); }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter) var(--gutter-r); }
@media (min-width: 700px) { .wrap { padding-inline: max(2rem, env(safe-area-inset-left)) max(2rem, env(safe-area-inset-right)); } }

.sec { padding-block: clamp(4.5rem, 3rem + 7vw, 8.5rem); }
.dark { background: var(--deep); color: var(--on-dark); }

.ic { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ph-ic { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 2rem; height: 2rem; }
.star { fill: currentColor; stroke: none; }

.kicker { font-family: var(--serif); font-size: 1.15rem; color: var(--pool); margin-bottom: .9rem; }
.dark .kicker, .final .kicker { color: var(--sage); }
.lede { font-size: clamp(1.125rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 40rem; margin-top: 1.25rem; }
.dark .lede { color: var(--on-dark-muted); }
.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.h-small { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; }
.small { font-size: 1rem; color: var(--muted); margin-top: 1.5rem; max-width: 46rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .7rem 1.6rem; border-radius: 999px;
  font: 700 1.0625rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .ic { width: 1.3rem; height: 1.3rem; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-line { border-color: currentColor; color: var(--ink); }
.btn-line:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-on-dark { color: var(--on-dark); }
.btn-sm { min-height: 48px; padding: .5rem 1.15rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:active { transform: scale(.98); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.actions.center { justify-content: center; }
.round {
  display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: 50%; border: 2px solid currentColor; background: transparent; text-decoration: none;
}
.round-gold { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-dark);
  padding-top: env(safe-area-inset-top);
  background: rgba(15, 39, 29, .97);
  transition: background-color .3s, box-shadow .3s;
}
.js .site-head:not(.solid) { background: transparent; }
.site-head.solid { box-shadow: 0 1px 0 rgba(238, 242, 234, .08); }
.head-row { display: flex; align-items: center; gap: 1rem; height: var(--head-h); }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.mark { width: 34px; height: 34px; color: var(--sage); --mark-vein: #0F271D; }
.logo-words { display: grid; line-height: 1.05; }
.logo-name { font-family: var(--serif); font-size: 1.3rem; }
.logo-place { font-size: .95rem; color: var(--on-dark-muted); letter-spacing: .02em; }
.nav-desk { display: none; }
.nav-desk ul { display: flex; gap: .25rem; }
.nav-desk a { display: block; padding: .6rem .75rem; text-decoration: none; font-size: 1.0625rem; border-radius: 999px; }
.nav-desk a:hover { text-decoration: underline; }
.head-cta { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(238, 242, 234, .5); background: rgba(15, 39, 29, .35); }
.menu-btn[hidden] { display: none; }
.menu-btn .ic-close, .menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
.menu { display: none; }
.js .menu {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--deep); padding: .5rem var(--gutter-r) calc(1.5rem + env(safe-area-inset-bottom)) var(--gutter);
  max-height: calc(100dvh - var(--head-h)); overflow: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
}
.js .menu.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.menu ul { margin-bottom: 1.25rem; }
.menu a:not(.btn) { display: flex; align-items: center; min-height: 56px; font-family: var(--serif); font-size: 1.5rem; text-decoration: none; border-bottom: 1px solid rgba(238, 242, 234, .1); }
@media (min-width: 560px) { .head-cta { display: inline-flex; } }
@media (min-width: 1080px) {
  .nav-desk { display: block; }
  .menu-btn, .js .menu { display: none !important; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; overflow: hidden;
  background: var(--paddy); color: var(--on-dark);
}
.hero-media { position: absolute; inset: 0; background: var(--deep); }
.hero-media .media, .hero-media img, .hero-video, .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 1.2s; }
.hero-video.playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 39, 29, .6) 0, rgba(15, 39, 29, 0) 22%, rgba(15, 39, 29, .1) 42%, rgba(15, 39, 29, .88) 100%);
}
.hero-inner { position: relative; align-self: end; width: 100%; padding-top: calc(var(--head-h) + 3rem); padding-bottom: calc(2.75rem + env(safe-area-inset-bottom)); }
.badge {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem 1rem;
  border-radius: 999px; background: rgba(15, 39, 29, .55); border: 1px solid rgba(238, 242, 234, .25);
  text-decoration: none; font-size: 1rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge .star { width: 1.1rem; height: 1.1rem; color: var(--gold); }
.badge:hover { background: rgba(15, 39, 29, .75); }
.hero-title {
  margin-top: 1.25rem; font-size: clamp(2.4rem, 0.6rem + 8.4vw, 7rem); line-height: .98; letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(8, 22, 15, .35);
}
.hero-title .l1, .hero-title .l2 { display: block; }
.hero-title .w { display: inline-block; }
.hero-lede { margin-top: 1.25rem; max-width: 31rem; font-size: clamp(1.125rem, 1rem + .5vw, 1.35rem); color: var(--on-dark); }
.hero-actions { margin-top: 2rem; }
.scroll-cue { display: none; }

@media (min-width: 960px) {
  .hero { min-height: max(680px, 100vh); }
  /* full-screen video; a soft dark fade on the left keeps the headline readable */
  .hero-shade { background:
    linear-gradient(90deg, rgba(15, 39, 29, .78) 0, rgba(15, 39, 29, .45) 42%, rgba(15, 39, 29, 0) 70%),
    linear-gradient(180deg, rgba(15, 39, 29, .55) 0, rgba(15, 39, 29, 0) 20%, rgba(15, 39, 29, 0) 70%, rgba(15, 39, 29, .5) 100%); }
  .hero-inner { align-self: center; padding-bottom: 4rem; }
  /* show the sharpest band of the upright clip: the house and the pool */
  .hero-media img, .hero-video { object-position: 50% 32%; }
  .hero-title { font-size: clamp(4.5rem, 1rem + 6.6vw, 7.5rem); max-width: 11.5em; }
  .hero-title .l2 { padding-left: 1.4em; }
  .hero-lede { max-width: 30rem; }
}

/* ---------- facts strip ---------- */
.facts { background: var(--deep); color: var(--on-dark); }
.facts-list { display: grid; grid-template-columns: repeat(2, 1fr); }
.facts-list li { display: flex; align-items: center; gap: .7rem; padding: 1.1rem .5rem 1.1rem 0; font-size: 1.02rem; line-height: 1.3; border-bottom: 1px solid rgba(238, 242, 234, .1); }
.facts-list .ic { color: var(--sage); }
@media (min-width: 700px) { .facts-list { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) {
  .facts-list { grid-template-columns: repeat(8, auto); justify-content: space-between; }
  .facts-list li { border-bottom: 0; padding-block: 1.4rem; }
}

/* ---------- welcome ---------- */
.statement { font-size: clamp(2.1rem, 1rem + 4.2vw, 4.4rem); line-height: 1.08; letter-spacing: -.015em; max-width: 17em; }
.local-lines { display: flex; gap: .9rem; align-items: flex-start; margin-top: 1.75rem; color: var(--paddy); }
.local-lines .mark { width: 30px; height: 30px; flex: none; margin-top: .35rem; color: var(--paddy); --mark-vein: #F4EEE2; }
.ll-si { font-family: "Noto Serif Sinhala", var(--serif); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.55; }
.ll-ta { font-family: "Noto Serif Tamil", var(--serif); font-size: clamp(1.1rem, .95rem + .7vw, 1.4rem); line-height: 1.6; color: var(--muted); }
@media (min-width: 960px) { .welcome .kicker, .statement, .local-lines { margin-left: 16%; } }
.welcome-intro { margin-top: 1.75rem; max-width: 44rem; }
@media (min-width: 960px) { .welcome-intro { margin-left: 16%; } }
.welcome-photo { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.wp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.welcome-photo .media { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.welcome-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1100px) {
  .wp-grid { grid-template-columns: repeat(4, 1fr); gap: .75rem; }
  .welcome-photo .media { aspect-ratio: 4 / 5; }
}
.welcome-photo figcaption { margin-top: .75rem; font-size: 1rem; color: var(--muted); }
.pillars { display: grid; gap: 2.5rem; margin-top: clamp(3rem, 7vw, 5rem); }
.pillar { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.pillar .ic { color: var(--pool); margin-bottom: 1rem; }
.pillar h3 { margin-bottom: .5rem; }
.pillar p { color: var(--muted); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* ---------- reviews ---------- */
.rev-top { display: grid; gap: 2rem; align-items: end; }
.score { display: grid; justify-items: start; }
.score-num { font-family: var(--serif); font-size: clamp(6rem, 3rem + 12vw, 11rem); line-height: .85; color: var(--gold); letter-spacing: -.03em; }
.score-stars { display: flex; gap: .25rem; color: var(--gold); margin-top: .75rem; }
.score-stars .star { width: 1.3rem; height: 1.3rem; }
.score-label { font-family: var(--serif); font-size: 1.35rem; margin-top: .5rem; }
@media (min-width: 900px) { .rev-top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }
.rev-grid { display: grid; gap: 3rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2.5rem; border-top: 1px solid rgba(238, 242, 234, .12); }
@media (min-width: 900px) { .rev-grid { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.meters { display: grid; gap: 1.1rem 2.5rem; }
@media (min-width: 560px) { .meters { grid-template-columns: 1fr 1fr; } }
.meter { display: grid; grid-template-columns: 1fr auto; row-gap: .45rem; }
.m-score { font-weight: 700; }
.m-bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(238, 242, 234, .14); overflow: hidden; }
.m-bar i { display: block; height: 100%; background: var(--sage); border-radius: inherit; transform-origin: left; transform: scaleX(var(--v)); transition: transform 1.2s var(--ease); }
.mentions { display: flex; flex-wrap: wrap; gap: .6rem; }
.mentions li { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem .5rem .8rem; border: 1px solid rgba(238, 242, 234, .25); border-radius: 999px; }
.mentions .ic { width: 1.2rem; height: 1.2rem; color: var(--sage); }
.mentions b { display: inline-grid; place-items: center; min-height: 2rem; padding: 0 .7rem; border-radius: 999px; background: var(--sage); color: var(--deep); font-size: .98rem; white-space: nowrap; }
.rlinks { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 800px) { .rlinks { grid-template-columns: repeat(3, 1fr); } }
.rlink { display: grid; gap: .25rem; padding: 1.5rem; height: 100%; border-radius: 8px; background: rgba(238, 242, 234, .05); border: 1px solid rgba(238, 242, 234, .12); text-decoration: none; transition: background-color .2s; }
.rlink:hover { background: rgba(238, 242, 234, .1); }
.rl-count { font-family: var(--serif); font-size: 2.75rem; line-height: 1; color: var(--gold); }
.rl-text b { font-weight: 700; }
.rl-go { margin-top: .75rem; text-decoration: underline; text-underline-offset: .2em; color: var(--sage); }
.carousel { margin-top: 3rem; }
.r-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 26rem); align-items: start; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.rcard { scroll-snap-align: start; padding: 1.75rem; border-radius: 8px; background: rgba(238, 242, 234, .06); border: 1px solid rgba(238, 242, 234, .12); display: grid; gap: 1rem; align-content: start; }
.rcard .stars { display: flex; gap: .2rem; color: var(--gold); }
.rcard .star { width: 1.1rem; height: 1.1rem; }
.rcard blockquote { margin: 0; font-size: 1.1rem; position: relative; }
.rcard blockquote p + p { margin-top: .75rem; }
.js .rq.clamp { max-height: 12.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.more { justify-self: start; background: none; border: 0; padding: .25rem 0; color: var(--sage); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; min-height: 44px; }
.r-note { font-size: 1rem; color: var(--on-dark-muted); }
.r-note a { color: var(--sage); }
.r-source { margin-top: 1rem; font-size: 1rem; color: var(--on-dark-muted); }
.r-who { display: grid; color: var(--on-dark-muted); }
.r-who b { color: var(--on-dark); }
.carousel { position: relative; }
.r-track { scrollbar-width: none; }
.r-track::-webkit-scrollbar { display: none; }
/* arrows sit on the left and right edges of the reviews */
.car-nav { position: absolute; inset: 0 0 auto; height: 0; top: 50%; pointer-events: none; }
.car-nav .round { position: absolute; top: 0; transform: translateY(-50%); pointer-events: auto; background: rgba(15, 39, 29, .92); color: var(--on-dark); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.car-nav [data-prev] { left: -.5rem; }
.car-nav [data-next] { right: -.5rem; }
.car-nav .round[disabled] { opacity: 0; pointer-events: none; }
@media (min-width: 1300px) { .car-nav [data-prev] { left: -1.75rem; } .car-nav [data-next] { right: -1.75rem; } }

/* ---------- spaces ---------- */
.space { display: grid; gap: 2rem; align-items: center; margin-bottom: clamp(4rem, 9vw, 7rem); }
.space-text h3 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.8rem); line-height: 1.1; margin-bottom: 1rem; }
.space-text > p { color: var(--muted); max-width: 34rem; }
.ticks { display: grid; gap: .7rem; margin-top: 1.75rem; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; }
.ticks .ic { color: var(--pool); width: 1.4rem; height: 1.4rem; margin-top: .15rem; }
@media (min-width: 900px) {
  .space { grid-template-columns: 7fr 5fr; gap: 5rem; }
  .space.flip { grid-template-columns: 5fr 7fr; }
  .space.flip .space-img { order: 2; }
}

/* ---------- photo tiles (shared) ---------- */
.tile { margin: 0; position: relative; overflow: hidden; border-radius: 6px; background: var(--surface); }
.tile-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; position: relative; text-align: left; }
.tile .media, .tile video { width: 100%; height: 100%; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile-btn:hover img { transform: scale(1.03); }
.tile-btn:focus-visible { outline-offset: -4px; }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .85rem; color: #fff; font-size: 1rem; line-height: 1.3;
  background: linear-gradient(transparent, rgba(8, 22, 15, .72));
}
.space-img .tile { aspect-ratio: 4 / 3; }
.space-video video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.space-img .tile-cap { display: none; }

/* placeholder until a real photo exists */
.ph {
  display: grid; place-content: center; justify-items: center; gap: .5rem; text-align: center; padding: 1rem;
  min-height: 220px; height: 100%; color: var(--paddy);
  background: linear-gradient(150deg, #CFE3CF, #9CC7A6 55%, #6FA486);
}
.ph-ic { width: 2.5rem; height: 2.5rem; }
.ph-name { font-family: var(--serif); font-size: 1.2rem; }
.ph-tag { font-size: .95rem; padding: .2rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .55); }

/* ---------- garden ---------- */
.garden { background: var(--surface); }
.garden .tile { background: var(--paper); }
.garden-head { display: grid; gap: 0 4rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.garden-head .sec-head { margin-bottom: 0; }
@media (min-width: 900px) { .garden-head { grid-template-columns: 1fr 1fr; align-items: end; } .garden-head .lede { margin-top: 0; } }
.g-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(180px, 38vw, 260px); gap: .6rem; grid-auto-flow: dense; }
.g-grid .g-video { grid-column: span 2; grid-row: span 2; }
.g-grid .g-video.g-tall { grid-column: span 1; grid-row: span 2; }
.g-grid > :last-child { grid-column: span 2; }
@media (min-width: 700px) {
  .g-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: .75rem; }
  .g-grid > :last-child { grid-column: auto; }
}
@media (min-width: 1100px) {
  .g-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; }
  .g-grid > :last-child { grid-column: span 2; }
}

/* ---------- amenities ---------- */
.am-grid { display: grid; gap: .75rem; }
.am { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-content: start; padding: 1.4rem; border-radius: 8px; background: var(--paddy); color: var(--on-dark); --focus: #E2A42B; }
.am .ic { grid-row: span 2; color: var(--sage); margin-top: .1rem; }
.am h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.am p { color: var(--on-dark-muted); }
.am-hi .ic { color: var(--gold); }
@media (min-width: 600px) { .am-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .am-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .am-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- a day at the villa ---------- */
.day { background: var(--surface); }
.day-wrap { display: grid; gap: 0 5rem; }
@media (min-width: 960px) {
  .day-wrap { grid-template-columns: 4fr 7fr; }
  .day-wrap .sec-head { position: sticky; top: calc(var(--head-h) + 2rem); align-self: start; }
}
.timeline { position: relative; display: grid; gap: 2.5rem; padding-left: 2.5rem; }
.t-line { position: absolute; left: 9px; top: .6rem; bottom: .6rem; width: 2px; background: var(--line); }
.t-line i { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(1); }
.t-item { position: relative; display: grid; gap: .25rem; }
.t-dot { position: absolute; left: calc(-2.5rem + 2px); top: .45rem; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); transition: background-color .3s, transform .3s; }
.t-item.on .t-dot { background: var(--gold); }
.t-item time { font-family: var(--serif); font-size: 1.35rem; color: var(--pool); }
.t-item h3 { margin-bottom: .35rem; }
.t-item p { color: var(--muted); max-width: 34rem; }
@media (min-width: 700px) { .t-item { grid-template-columns: 6.5rem 1fr; } }

/* ---------- location ---------- */
.journey { position: relative; display: grid; gap: 2rem; padding-left: 2.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.j-line { position: absolute; left: 9px; top: .9rem; bottom: .9rem; width: 2px; background: var(--line); }
.j-line i { position: absolute; inset: 0; background: var(--pool); transform-origin: top; transform: scale(1); transition: transform 1.6s var(--ease); }
.stop { position: relative; display: grid; }
.stop-dot { position: absolute; left: calc(-2.5rem + 1px); top: .8rem; width: 18px; height: 18px; border-radius: 50%; background: var(--pool); box-shadow: 0 0 0 5px var(--paper); }
.stop:first-of-type .stop-dot { background: var(--gold); }
.stop-val { font-family: var(--serif); font-size: clamp(2.4rem, 1.6rem + 2.5vw, 3.6rem); line-height: 1.1; }
.stop-val b { font-weight: 400; }
.stop-label { color: var(--muted); max-width: 16rem; }
@media (min-width: 800px) {
  .journey { grid-template-columns: repeat(4, 1fr); padding-left: 0; padding-top: 2.75rem; gap: 2rem; }
  .j-line { left: 0; right: 0; top: 8px; bottom: auto; width: auto; height: 2px; }
  .j-line i { transform-origin: left; }
  .stop-dot { left: 0; top: -2.75rem; }
}
.near { display: grid; gap: 1rem; }
@media (min-width: 800px) { .near { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .near { grid-template-columns: repeat(3, 1fr); } }
.near-col { background: var(--surface); border-radius: 8px; padding: 1.75rem; }
.near-col h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.near-col h3 .ic { color: var(--pool); }
.near-col li { display: grid; padding: .8rem 0; border-top: 1px solid var(--line); }
.near-col li span { color: var(--muted); }

/* ---------- gallery ---------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(170px, 40vw, 240px); gap: .6rem; }
.bento .b1 { grid-column: span 2; grid-row: span 2; }
.bento .b10 { grid-column: span 2; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: .75rem; grid-auto-flow: dense; }
  .bento .b1 { grid-column: span 2; grid-row: span 2; }
  .bento .b4 { grid-row: span 2; }
  .bento .b6, .bento .b10 { grid-column: span 2; }
}

/* ---------- families ---------- */
.families { background: var(--surface); }
.fam-grid { display: grid; gap: 2.5rem; align-items: center; }
.fam-img .media { aspect-ratio: 4 / 5; width: 100%; border-radius: 6px; overflow: hidden; }
.fam-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .fam-grid { grid-template-columns: 5fr 6fr; gap: 5rem; } }
.rotator { display: block; color: var(--pool); overflow: hidden; padding-bottom: .12em; }
.rot-word { display: inline-block; transition: transform .35s var(--ease); }
.rot-word.out { transform: translateY(115%); }
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0 0; }
.rates div { padding: 1.25rem; border-radius: 8px; background: var(--paper); }
.rates dt { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.1; }
.rates dd { margin: .35rem 0 0; color: var(--muted); }

/* ---------- coming soon ---------- */
.coming-inner { max-width: 50rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.chips li { padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid rgba(127, 191, 142, .55); color: var(--on-dark); }

/* ---------- faq ---------- */
.faq-wrap { display: grid; gap: 0 5rem; }
@media (min-width: 960px) {
  .faq-wrap { grid-template-columns: 4fr 7fr; }
  .faq-wrap .sec-head { position: sticky; top: calc(var(--head-h) + 2rem); align-self: start; }
}
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; }
.qa-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: 1rem 0; background: none; border: 0; text-align: left; font-weight: 700; line-height: 1.35; }
.qa-q:hover span { text-decoration: underline; text-underline-offset: .2em; }
.chev { color: var(--pool); transition: transform .3s var(--ease); }
.qa-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.qa-a { padding: 0 2.5rem 1.4rem 0; color: var(--muted); }
.qa-a[hidden] { display: none; }

/* ---------- final call ---------- */
.final { background: var(--paddy); color: var(--on-dark); padding-block: clamp(5rem, 4rem + 6vw, 9rem); text-align: center; }
.final-inner { display: grid; justify-items: center; }
.final .mark { width: 56px; height: 56px; margin-bottom: 1.5rem; --mark-vein: #1F4A36; }
.final h2 { font-size: clamp(2.3rem, 1.2rem + 4.2vw, 4.6rem); max-width: 14em; }
.si, .ta { font-family: "Noto Serif Sinhala", "Noto Serif Tamil", var(--serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); color: var(--sage); margin-top: 1.25rem; line-height: 1.6; }
.final .ta { margin-top: .25rem; font-family: "Noto Serif Tamil", var(--serif); font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); }

/* ---------- footer ---------- */
.site-foot { background: var(--deep); color: var(--on-dark-muted); padding: 4rem 0 calc(2rem + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; gap: 2.5rem; }
.foot-brand p { margin-bottom: .5rem; max-width: 30rem; }
.foot-brand b, .site-foot .h-small { color: var(--on-dark); }
.foot-logo { margin-bottom: 1.25rem !important; color: var(--on-dark); }
.foot-links li a { display: inline-block; padding: .35rem 0; color: var(--on-dark); }
.foot-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(238, 242, 234, .1); font-size: 1rem; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- sticky bar (phones) ---------- */
.sticky-bar { display: none; }
@media (max-width: 699px) {
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .sticky-bar {
    display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .7rem var(--gutter-r) calc(.7rem + env(safe-area-inset-bottom)) var(--gutter);
    background: rgba(15, 39, 29, .96); box-shadow: 0 -1px 0 rgba(238, 242, 234, .08);
    transition: transform .35s var(--ease);
  }
  .js .sticky-bar:not(.show) { transform: translateY(110%); }
  .sticky-cta { flex: 1; }
}

/* ---------- lightbox ---------- */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 20, 14, .97); color: var(--on-dark); }
.lb::backdrop { background: rgba(8, 20, 14, .9); }
.lb[open] { display: grid; }
.lb-stage { display: grid; place-items: center; align-content: center; gap: .75rem; padding: 4.5rem 1rem calc(5rem + env(safe-area-inset-bottom)); touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 10rem); width: auto; object-fit: contain; border-radius: 4px; }
.lb-cap { font-size: 1.05rem; text-align: center; }
.lb .round { position: absolute; color: var(--on-dark); background: rgba(15, 39, 29, .7); }
.lb-close { top: calc(1rem + env(safe-area-inset-top)); right: 1rem; }
.lb-prev, .lb-next { bottom: calc(1rem + env(safe-area-inset-bottom)); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
@media (min-width: 800px) { .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); } }

/* ---------- motion (only when the visitor allows it; added by JS) ---------- */
.motion .hero-title .w { transform: translateY(.3em); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms); }
.motion .hero-lede, .motion .hero-actions, .motion .badge { opacity: 0; animation: fade .8s var(--ease) forwards; animation-delay: .5s; }
.motion .hero-media { animation: settle 1.6s var(--ease) both; }
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .meter:not(.in) .m-bar i { transform: scaleX(0); }
.motion .journey:not(.in) .j-line i { transform: scale(0); }
.motion .t-line i { transform: scaleY(var(--p, 0)); }
.motion .t-item .t-dot { transform: scale(.8); }
.motion .t-item.on .t-dot { transform: scale(1); }
.motion .scene .fronds { transform-origin: 318px 320px; animation: sway 6s ease-in-out infinite alternate; }
.motion .scene .birds { animation: fly 22s linear infinite; }
.motion .scene .ripples { animation: ripple 4s ease-in-out infinite alternate; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes sway { to { transform: rotate(4deg); } }
@keyframes fly { from { transform: translateX(-80px); } to { transform: translateX(480px); } }
@keyframes ripple { to { transform: translateX(14px); opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

section[tabindex="-1"]:focus { outline: none; }
