/* ==========================================================================
   TEAK TOWN — Heritage Retreat
   Design system & global styles
   --------------------------------------------------------------------------
   Palette, type and layout language are drawn from the property:
   forest green, teak/walnut, sage, warm bone paper, charcoal.
   Organised: tokens → base → type → layout → components → sections → a11y.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colour */
  --forest-900: #1F2E24;   /* deepest green — footer, dark bands       */
  --forest-700: #2E4032;   /* primary brand & headings on light        */
  --forest-500: #3C5443;   /* mid green                                */
  --sage-500:   #8BA07E;   /* secondary accents, dividers              */
  --sage-300:   #B9C7AE;   /* soft sage                                */

  --teak-700:   #5A3E24;   /* deep wood                                */
  --teak-600:   #6B4A2B;   /* teak / walnut — buttons, wood accents    */
  --tan-400:    #A9895F;   /* warm tan accent                          */
  --tan-200:    #D8C4A6;   /* pale wood                                */

  --bone-100:   #F5F2EC;   /* page background — paper, not stark white */
  --bone-200:   #ECE7DD;   /* slightly deeper paper                    */
  --ivory:      #FFFFFF;   /* cards                                    */
  --charcoal:   #1C1C1A;   /* body text & dark CTAs                    */
  --charcoal-70: rgba(28,28,26,.70);
  --charcoal-55: rgba(28,28,26,.55);

  /* Semantic */
  --bg:            var(--bone-100);
  --bg-alt:        var(--bone-200);
  --surface:       var(--ivory);
  --text:          var(--charcoal);
  --text-muted:    var(--charcoal-70);
  --heading:       var(--forest-700);
  --accent:        var(--teak-600);
  --accent-ink:    #ffffff;
  --line:          rgba(46,64,50,.16);   /* thin rule dividers */
  --line-strong:   rgba(46,64,50,.30);

  /* Typography */
  /* One family across the site (as on the home hero): bold for headings, light for the
     softer words — never italic */
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-hero:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale (min → max across 360–1440px) */
  --step--1: clamp(0.82rem, 0.79rem + 0.12vw, 0.9rem);
  --step-0:  clamp(1rem,    0.96rem + 0.18vw, 1.125rem);
  --step-1:  clamp(1.2rem,  1.11rem + 0.42vw, 1.5rem);
  --step-2:  clamp(1.5rem,  1.32rem + 0.8vw,  2.05rem);
  --step-3:  clamp(1.9rem,  1.6rem  + 1.4vw,  2.9rem);
  --step-4:  clamp(2.3rem,  1.85rem + 2.2vw,  3.9rem);
  --step-5:  clamp(2.7rem,  1.9rem  + 3.6vw,  5.2rem);

  /* Spacing scale */
  --space-2xs: .5rem;
  --space-xs:  .875rem;
  --space-sm:  1.25rem;
  --space-md:  2rem;
  --space-lg:  3.25rem;
  --space-xl:  5rem;
  --space-2xl: 7.5rem;

  /* Structure */
  --container:   1240px;
  --container-narrow: 820px;
  --radius:      3px;      /* rustic / architectural — barely rounded */
  --radius-lg:   5px;
  --shadow-sm:   0 1px 2px rgba(31,46,36,.06), 0 4px 14px rgba(31,46,36,.06);
  --shadow-md:   0 8px 30px rgba(31,46,36,.10);
  --shadow-lg:   0 24px 60px rgba(31,46,36,.18);
  --nav-h:       76px;
  --nav-h-solid: 66px;     /* the bar once scrolled — also the offset for #anchor jumps */

  --ease:        cubic-bezier(.22,.61,.36,1);
  --ease-out:    cubic-bezier(.16,1,.3,1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h-solid);   /* #anchor targets land below the fixed nav */
  /* Contain horizontal overflow at the root (e.g. the rooms carousel's
     overflow:visible slides). Without this the widened layout viewport
     stretches position:fixed elements — the nav's Enquire button and burger
     were pushed off-screen on the homepage. `clip` (not `hidden`) avoids
     creating a scroll container, so Lenis smooth-scroll and sticky are safe. */
  overflow-x: clip;
}
/* When Lenis (JS smooth scroll) is active we disable native smooth scroll
   to avoid double easing. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul[role="list"] { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--teak-600);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--sage-300); color: var(--forest-900); }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--forest-700); color: #fff;
  padding: .6rem 1rem; border-radius: var(--radius); z-index: 1000;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Signature two-weight display treatment:
   light context words + bold key phrase in the same line. */
.display { font-size: calc(var(--step-4) * .9); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.display .light { font-weight: 300; font-style: normal; color: var(--forest-500); }
.display .bold  { font-weight: 700; }
.display--xl { font-size: var(--step-5); }

.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); }
.lead {
  font-size: var(--step-1); text-wrap: pretty;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 400;
}

/* Eyebrow labels: ROOMS · FACILITIES · EXPERIENCE */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teak-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 30px; height: 1px; background: var(--tan-400);
  display: inline-block;
}
.eyebrow--center::after {
  content: ""; width: 30px; height: 1px; background: var(--tan-400);
  display: inline-block;
}
.eyebrow--light { color: var(--tan-200); }
.eyebrow--light::before, .eyebrow--light::after { background: var(--tan-200); }

p + p { margin-top: 1rem; }
.muted { color: var(--text-muted); }
.measure { max-width: 58ch; }
.balance { text-wrap: balance; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 8vw, var(--space-2xl)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--space-xl)); }
.section--paper { background: var(--bg); }
.section--paper-alt { background: var(--bg-alt); }
.section--forest { background: var(--forest-700); color: #EFEAE0; }
.section--forest h1, .section--forest h2, .section--forest h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.hr { height: 1px; background: var(--line); border: 0; }

/* Alternating 50/50 split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.split__media { position: relative; }
.split--reverse .split__media { order: -1; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2.25rem; }
  .split--reverse .split__media { order: 0; }
}

/* Small stat row */
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1rem, 4vw, 3rem); row-gap: 1.5rem;
  margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
}
@media (min-width: 640px) and (max-width: 860px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat__num {
  font-family: var(--font-display); font-size: var(--step-2);
  color: var(--teak-600); font-weight: 600; line-height: 1;
}
.stat__label {
  display: block; margin-top: .35rem; font-size: var(--step--1);
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--charcoal);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;   /* Montserrat capitals run wide */
  color: var(--btn-fg); background: var(--btn-bg);
  border-radius: 999px;                     /* soft pill — one look across the site */
  box-shadow: 0 10px 26px -12px rgba(31,46,36,.42);
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), color .35s var(--ease);
}
/* subtle fill-slide on hover */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--teak-600);
  transform: translateY(101%);
  transition: transform .4s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(31,46,36,.55); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }

.btn--accent { --btn-bg: var(--teak-600); }
.btn--accent::after { background: var(--forest-700); }

/* frosted white glass (on photos / dark bands) */
.btn--ghost {
  --btn-bg: rgba(255,255,255,.66); --btn-fg: #2B2118;
  border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(8px) saturate(1.15);
}
.btn--ghost::after { background: var(--teak-600); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; }

/* light glass with a hairline (on light sections) */
.btn--ghost-dark {
  --btn-bg: rgba(255,255,255,.6); --btn-fg: var(--forest-700);
  border: 1px solid var(--line-strong);
}
.btn--ghost-dark::after { background: var(--forest-700); }
.btn--ghost-dark:hover, .btn--ghost-dark:focus-visible { color: #fff; }

.btn--sm { padding: .7rem 1.25rem; font-size: .74rem; }
.btn--sm svg { width: 1rem; height: 1rem; }
.btn--block { width: 100%; }

/* Text link with underline-grow */
.link-underline {
  position: relative; font-weight: 600; color: var(--teak-600);
  letter-spacing: .04em;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.link-underline:hover::after, .link-underline:focus-visible::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.nav__inner {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--nav-ink); transition: color .4s var(--ease); }
.nav__logo img, .nav__logo svg { height: 40px; width: auto; transition: filter .4s var(--ease); }
.nav__links {
  display: flex; align-items: center; gap: clamp(.9rem, 1.5vw, 1.55rem);
}
.nav__links a {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--nav-ink, #fff); position: relative; padding: .3rem 0;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%;
  background: var(--teak-600); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 1rem; }

/* transparent over hero → solid on scroll */
.nav { --nav-ink: #fff; }
.nav.is-solid {
  --nav-ink: var(--forest-700);
  height: var(--nav-h-solid);
  background: rgba(245,242,236,.92);
  backdrop-filter: saturate(1.1) blur(10px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav.is-solid .nav__logo img { filter: none; }
.nav:not(.is-solid) .nav__logo img { filter: brightness(0) invert(1); }
.nav:not(.is-solid) .nav__logo .wordmark-ink { fill: #fff; }

/* Burger */
.nav__burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
}
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--nav-ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__burger span::before { transform: translateY(-7px); }
.nav__burger span::after  { transform: translateY(5px); }
.nav__burger span { position: relative; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { transform: rotate(45deg); }
body.menu-open .nav__burger span::after  { transform: rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--forest-900);
  display: flex; flex-direction: column; align-items: center; justify-content: center; justify-content: safe center;
  gap: 1.4rem; padding: calc(var(--nav-h) + 1rem) 2rem 2rem;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
body.menu-open .nav__drawer { opacity: 1; visibility: visible; transform: none; }
.nav__drawer > * { flex-shrink: 0; }
@media (max-height: 700px) { .nav__drawer { gap: .9rem; } .nav__drawer a:not(.btn) { font-size: 1.35rem; } .nav__drawer .btn { margin-top: .5rem; } }
/* the drawer has its own Enquire button, so the header pill steps aside while it's open */
.nav__book { transition: opacity .3s var(--ease), visibility .3s; }
body.menu-open .nav__book { opacity: 0; visibility: hidden; pointer-events: none; }
.nav__drawer a:not(.btn) {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: #F1ECE2; letter-spacing: .01em;
}
.nav__drawer a[aria-current="page"] { color: var(--tan-200); }
.nav__drawer .btn { margin-top: 1rem; }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__right .btn:not(.nav__book) { display: none; }
  .nav__burger { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(20,30,24,.55) 0%, rgba(20,30,24,.15) 30%, rgba(20,30,24,.35) 65%, rgba(20,30,24,.8) 100%),
    linear-gradient(90deg, rgba(20,30,24,.5) 0%, rgba(20,30,24,0) 55%);
}
.hero__grain { position: absolute; inset: 0; z-index: -1; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { padding-top: var(--nav-h); }
.hero__eyebrow {
  color: var(--tan-200); letter-spacing: .24em; font-size: clamp(.86rem, .78rem + .3vw, 1.02rem); font-weight: 700;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero__title {
  font-family: var(--font-hero);
  font-size: var(--step-5); line-height: 1.08; font-weight: 700; letter-spacing: -0.015em; color: #fff;
  max-width: 18ch; text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero__title .light { font-weight: 300; font-style: normal; }
.hero__sub { margin-top: 1.4rem; max-width: 46ch; font-size: var(--step-1); color: rgba(255,255,255,.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero__rating {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 2rem;
  font-size: .85rem; color: rgba(255,255,255,.85);
}
.hero__rating .stars { color: #E9C46A; letter-spacing: .1em; }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.8); font-size: .66rem; letter-spacing: .25em; text-transform: uppercase;
}
.scroll-cue__line { width: 1px; height: 46px; background: linear-gradient(rgba(255,255,255,.7), transparent); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: #fff; animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%);} 60%,100% { transform: translateY(320%);} }

/* Floating booking bar docked to hero base */
.book-bar {
  position: relative; z-index: 3;
  margin: -38px auto 0; max-width: 960px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: .25rem;
  padding: .75rem;
}
.book-bar__field { display: flex; flex-direction: column; padding: .55rem .9rem; border-right: 1px solid var(--line); }
.book-bar__field:nth-child(3) { border-right: 0; }
.book-bar__field label { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.book-bar__field input, .book-bar__field select {
  border: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--charcoal); padding: .15rem 0; width: 100%;
}
.book-bar__field input:focus, .book-bar__field select:focus { outline: none; }
@media (max-width: 760px) {
  .book-bar { grid-template-columns: 1fr 1fr; margin-top: -20px; }
  .book-bar__field:nth-child(3) { border-right: 1px solid var(--line); }
  .book-bar .btn { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   8. Placeholder image system
   Wired to the exact brief filenames. Until a real photo is dropped in,
   an on-brand stand-in shows (never a broken box). When the .jpg exists,
   the <img> covers the placeholder — zero code changes needed.
   -------------------------------------------------------------------------- */
.ph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(140% 120% at 15% 12%, rgba(255,255,255,.14), transparent 40%),
    linear-gradient(150deg, var(--ph-a, #34503b) 0%, var(--ph-b, #223027) 100%);
  border-radius: var(--radius);
  isolation: isolate;
}
.ph::before { /* botanical / architectural motif */
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .16;
  background-image: var(--ph-motif, none);
  background-repeat: no-repeat; background-position: center; background-size: 62%;
  mix-blend-mode: soft-light;
}
.ph::after { /* caption */
  content: attr(data-label);
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1rem 1.15rem;
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,.82);
  background: linear-gradient(transparent, rgba(0,0,0,.35));
}
.ph > img {
  position: relative; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* wood-toned variant for interiors/rooms */
.ph--wood { --ph-a: #6B4A2B; --ph-b: #3d2a18; }
.ph--sage { --ph-a: #8BA07E; --ph-b: #4a6350; }
.ph--forest { --ph-a: #34503b; --ph-b: #1F2E24; }

/* fixed-ratio holders */
.ratio { position: relative; }
.ratio > .ph, .ratio > img, .ratio > iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.ratio--4x3 { aspect-ratio: 4 / 3; }
.ratio--3x2 { aspect-ratio: 3 / 2; }
.ratio--1x1 { aspect-ratio: 1 / 1; }
.ratio--3x4 { aspect-ratio: 3 / 4; }
.ratio--16x9 { aspect-ratio: 16 / 9; }

/* gentle zoom on hover for media cards */
.zoomable { overflow: hidden; }
.zoomable img, .zoomable .ph > img, .zoomable .ph::before { transition: transform .8s var(--ease-out); }
.zoomable:hover img, .zoomable:hover .ph > img { transform: scale(1.06); }

/* Decorative framed image with offset border (heritage feel) */
.framed { position: relative; }
.framed::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1px solid var(--tan-400); border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   9. Rooms — cards
   -------------------------------------------------------------------------- */
.room-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 900px) { .room-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .room-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(46,64,50,.06);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__media { position: relative; }
.card__price {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: rgba(255,255,255,.94); color: var(--forest-700);
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  padding: .35rem .8rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.card__price b { font-family: var(--font-display); font-size: .95rem; }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: var(--step-1); }
.card__desc { margin-top: .5rem; color: var(--text-muted); font-size: .95rem; }
.amenities { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.3rem; }
.amenity {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; letter-spacing: .04em; color: var(--forest-500);
  background: var(--bone-200); padding: .32rem .7rem; border-radius: 999px;
}
.amenity svg { width: 15px; height: 15px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* --------------------------------------------------------------------------
   10. Swiper (rooms + testimonials)
   -------------------------------------------------------------------------- */
.swiper { width: 100%; overflow: hidden; }
.swiper--rooms { padding-bottom: 3.5rem; overflow: visible; }
.swiper--rooms .swiper-slide { height: auto; display: flex; }
.swiper--rooms .card { width: 100%; }

.swiper-pagination { position: static; margin-top: 1.5rem; }
.swiper-pagination-bullet {
  width: 8px; height: 8px; background: var(--forest-700); opacity: .25;
  transition: opacity .3s, width .3s; border-radius: 4px;
}
.swiper-pagination-bullet-active { opacity: 1; width: 22px; background: var(--teak-600); }

.carousel-nav { display: inline-flex; gap: .6rem; }
.carousel-btn {
  width: 46px; height: 46px; border: 1px solid var(--line-strong);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--forest-700); transition: background .3s var(--ease), color .3s, border-color .3s;
}
.carousel-btn:hover { background: var(--forest-700); color: #fff; border-color: var(--forest-700); }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn.is-disabled { opacity: .35; pointer-events: none; }

/* --------------------------------------------------------------------------
   11. Facilities / Events — full-bleed with overlaid card
   -------------------------------------------------------------------------- */
.feature {
  position: relative; min-height: 78vh; display: flex; align-items: center; padding-block: clamp(3rem, 7vw, 6rem);
  color: #fff; overflow: hidden; isolation: isolate;
}
.feature__bg { position: absolute; inset: -8% 0; z-index: -2; }
.feature__bg .ph { width: 100%; height: 100%; border-radius: 0; }
.feature__scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15,24,18,.82) 0%, rgba(15,24,18,.45) 45%, rgba(15,24,18,.15) 100%); }
.feature__card {
  max-width: 540px; background: rgba(31,46,36,.55);
  backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.14);
  padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-lg);
}
.feature__card h2 { color: #fff; }
.feature__list { margin: 1.4rem 0 1.8rem; display: grid; gap: .7rem; }
.feature__list li { display: flex; gap: .7rem; align-items: flex-start; color: rgba(255,255,255,.9); text-wrap: pretty; }
.feature__list svg { width: 20px; height: 20px; flex: none; color: var(--tan-200); margin-top: .15rem; }

/* --------------------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------------------- */
.testimonials { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.testimonials__bg { position: absolute; inset: -8% 0; z-index: -2; }
.testimonials__bg .ph { width: 100%; height: 100%; border-radius: 0; }
.testimonials__scrim { position: absolute; inset: 0; z-index: -1; background: rgba(20,30,24,.74); }
.testimonial { text-align: center; max-width: 760px; margin-inline: auto; padding: 1rem; }
.testimonial__quote-mark { font-family: var(--font-display); font-size: 4rem; line-height: .5; color: var(--tan-200); opacity: .7; }
.testimonial__text {
  font-family: var(--font-display); font-weight: 300; font-style: normal;
  font-size: var(--step-2); line-height: 1.5; color: #fff; margin: 1.25rem 0 1.75rem; text-wrap: pretty;
}
.testimonial__stars { color: #E9C46A; display: flex; gap: 5px; justify-content: center; margin-bottom: .9rem; }
.testimonial__stars svg { width: 20px; height: 20px; }
.testimonial__stars svg.off { opacity: .28; }
.testimonial__name { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--tan-200); }
.testimonial__meta { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: .2rem; }
.testimonials__controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 2.5rem; }
.testimonials .carousel-btn { border-color: rgba(255,255,255,.4); color: #fff; }
.testimonials .carousel-btn:hover { background: #fff; color: var(--forest-700); border-color: #fff; }

/* --------------------------------------------------------------------------
   13. Experience grid
   -------------------------------------------------------------------------- */
.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 1100px) { .exp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .exp-grid { grid-template-columns: 1fr; } }
.exp-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem; text-align: left;
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}
.exp-card:hover { transform: translateY(-5px); border-color: var(--sage-500); box-shadow: var(--shadow-md); }
.exp-card__icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--bone-200); color: var(--teak-600);
}
.exp-card__icon svg { width: 26px; height: 26px; }
.exp-card h3 { font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); margin-bottom: .4rem; text-wrap: balance; }
.exp-card p { font-size: .9rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   14. Gallery — masonry
   -------------------------------------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.25rem; }
.filter-btn {
  padding: .5rem 1.1rem; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--forest-700); border: 1px solid var(--line-strong); border-radius: 40px;
  transition: background .3s var(--ease), color .3s, border-color .3s;
}
.filter-btn.is-active, .filter-btn:hover { background: var(--forest-700); color: #fff; border-color: var(--forest-700); }
@media (max-width: 480px) { .gallery-filters { gap: .3rem; } .filter-btn { padding: .55rem .7rem; font-size: .7rem; letter-spacing: .04em; } }

.masonry { columns: 3 260px; column-gap: clamp(.75rem, 1.6vw, 1.15rem); }
.masonry__item { break-inside: avoid; margin-bottom: clamp(.75rem, 1.6vw, 1.15rem); position: relative; display: block; }
.masonry__item .ph { border-radius: var(--radius); }
.masonry__item .cap {
  position: absolute; inset: auto 0 0 0; z-index: 3; padding: 1.5rem 1rem .9rem;
  color: #fff; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.masonry__item:hover .cap { opacity: 1; transform: none; }
.masonry__item .expand {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--forest-700); display: grid; place-items: center;
  opacity: 0; transform: scale(.85); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.masonry__item:hover .expand { opacity: 1; transform: none; }
.masonry__item.is-hidden { display: none; }

/* --------------------------------------------------------------------------
   15. Contact / map / form
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--bone-200); min-height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map-skeleton { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--forest-500); }
.map-skeleton .spinner { width: 34px; height: 34px; border: 3px solid var(--sage-300); border-top-color: var(--forest-700); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-info { display: grid; gap: 1.5rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-row__icon { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--bone-200); color: var(--teak-600); display: grid; place-items: center; }
.info-row__icon svg { width: 20px; height: 20px; }
.info-row h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: .2rem; }
.info-row a, .info-row p { color: var(--text); font-size: 1rem; }
.info-row a:hover { color: var(--teak-600); }

.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--text-muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: .85rem 1rem; color: var(--charcoal);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teak-600); box-shadow: 0 0 0 3px rgba(107,74,43,.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: .8rem; color: var(--text-muted); }
.form__success { display: none; padding: 1rem 1.2rem; background: rgba(139,160,126,.18); border: 1px solid var(--sage-500); border-radius: var(--radius); color: var(--forest-700); }
.form.is-sent .form__success { display: block; }
.form__error { display: none; padding: 1rem 1.2rem; background: rgba(150,60,45,.09); border: 1px solid #b5654a; border-radius: var(--radius); color: #8c3a28; }
.form.is-error .form__error { display: block; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--forest-900); color: #D9D2C6; padding-top: clamp(3rem, 6vw, 5rem); }
.footer a { color: #D9D2C6; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .wordmark { height: 42px; margin-bottom: 1rem; }
.footer__tag { max-width: 34ch; color: rgba(241,236,226,.72); font-size: .95rem; }
.footer h4 { font-family: var(--font-body); color: #fff; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__links { display: grid; gap: .6rem; font-size: .95rem; }
.footer__social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer__social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; transition: background .3s var(--ease), border-color .3s; }
.footer__social a:hover { background: var(--teak-600); border-color: var(--teak-600); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .82rem; color: rgba(241,236,226,.58); }

/* --------------------------------------------------------------------------
   17. Sticky mobile CTA (Book / WhatsApp)
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-strong); box-shadow: 0 -6px 20px rgba(0,0,0,.12);
}
.sticky-cta a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem .75rem; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }   /* one line: the bar is a fixed 52px dock */
.sticky-cta .s-book { background: var(--charcoal); color: #fff; }
.sticky-cta .s-wa { background: #25D366; color: var(--charcoal); }
.sticky-cta svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .sticky-cta { display: grid; } body { padding-bottom: 52px; } }

/* Floating WhatsApp (desktop) */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 79;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 720px) { .wa-float { display: none; } }

/* --------------------------------------------------------------------------
   18. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.pagehero { position: relative; padding-top: calc(var(--nav-h) + 3rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); color: #fff; isolation: isolate; overflow: hidden; }
.pagehero__bg { position: absolute; inset: -8% 0; z-index: -2; }
.pagehero__bg .ph { width: 100%; height: 100%; border-radius: 0; }
.pagehero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,30,24,.55), rgba(20,30,24,.75)); }
.pagehero h1 { color: #fff; font-size: calc(var(--step-4) * .9); text-wrap: balance; }
.pagehero p { color: rgba(255,255,255,.85); max-width: 54ch; margin-top: .8rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tan-200); margin-bottom: 1.1rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .6; }

/* --------------------------------------------------------------------------
   19. Reveal animations (progressive enhancement) + reduced motion
   Content is visible by default; only when JS adds `.js` do we arm reveals.
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); will-change: transform, opacity; }
.js [data-reveal="left"]  { transform: translateX(-30px); }
.js [data-reveal="right"] { transform: translateX(30px); }
.js [data-reveal="scale"] { transform: scale(.96); }
[data-reveal].is-in { opacity: 1 !important; transform: none !important; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .scroll-cue__line::after { display: none; }
}

/* --------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.flex { display: flex; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: .75rem; }
.gap-2 { gap: 1.25rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.divider-leaf { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--sage-500); margin: 0 auto; }
.divider-leaf::before, .divider-leaf::after { content: ""; height: 1px; width: min(120px, 20vw); background: var(--line-strong); }

/* --------------------------------------------------------------------------
   21. Destination components (Explore Nilambur / Plan Your Escape / Story)
   -------------------------------------------------------------------------- */
/* Attraction / place cards */
.place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 900px) { .place-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .place-grid { grid-template-columns: 1fr; } }
.card__tagrow { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.chip { background: rgba(255,255,255,.94); color: var(--forest-700); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .32rem .75rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.chip--dark { background: rgba(31,46,36,.8); color: #fff; }

/* Itinerary cards */
.itin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 760px) { .itin-grid { grid-template-columns: 1fr; } }
.itin { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.1rem); transition: box-shadow .4s var(--ease), transform .4s var(--ease-out); }
.itin:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.itin__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.itin__icon { width: 50px; height: 50px; border-radius: 50%; background: var(--bone-200); color: var(--teak-600); display: grid; place-items: center; flex: none; }
.itin__icon svg { width: 24px; height: 24px; }
.itin__title { font-size: var(--step-1); }
.itin__for { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-top: .15rem; }
.itin__steps { list-style: none; padding: 0; display: grid; gap: .75rem; counter-reset: step; }
.itin__steps li { position: relative; padding-left: 2.2rem; color: var(--text-muted); font-size: .95rem; }
.itin__steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -1px; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--teak-600); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }

/* Access cards */
.access-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 820px) { .access-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .access-grid { grid-template-columns: 1fr; } }
.access { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; }
.access__from { font-family: var(--font-display); font-size: var(--step-1); color: var(--heading); }
.access__km { color: var(--teak-600); font-weight: 700; font-size: .9rem; margin-top: .25rem; }
.access__time { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-top: .12rem; }
.access__note { font-size: .9rem; color: var(--text-muted); margin-top: .7rem; }
.access-modes { display: grid; gap: .6rem; margin-top: 1.75rem; }
.access-modes .info-row__icon { background: var(--forest-700); color: #fff; }

/* "Tired of the same places" band */
.already { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 1.9rem; }
.already span { font-size: .9rem; letter-spacing: .02em; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.24); border-radius: 40px; padding: .42rem .95rem; text-decoration: line-through; text-decoration-thickness: 1px; }

/* Story / editorial typography */
.story-lead { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.5; color: var(--heading); font-weight: 300; }
.pullquote { font-family: var(--font-display); font-style: normal; font-weight: 300; text-wrap: pretty; font-size: var(--step-2); line-height: 1.4; color: var(--forest-500); border-left: 2px solid var(--tan-400); padding-left: 1.5rem; margin: 2rem 0; }

/* Owner TODO note — clearly marks content the family must supply */
.owner-note { border: 1px dashed var(--tan-400); background: rgba(169,137,95,.09); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .9rem; color: var(--teak-700); }
.owner-note b { letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }

/* ==========================================================================
   23. QUIET LUXURY — KERALA ANCESTRAL PALACE  (restrained refinement layer)
   Forest green · warm ivory · FINE antique-gold detailing · teak.
   Deliberately understated. Delete this whole block to return to baseline.
   ========================================================================== */
:root {
  --bone-100: #F6F1E6;      /* a touch warmer, creamier ivory */
  --bone-200: #ECE5D4;
  --gold:      #A9884E;     /* restrained antique gold — hairlines & details only */
  --gold-soft: #C4A56A;
}

/* Gallery-like breathing room */
.section { padding-block: clamp(4rem, 9vw, 8.5rem); }
.section-head { margin-bottom: clamp(2.4rem, 5vw, 4rem); }

/* Fine soft-gold eyebrow rules (text stays quiet teak) */
.eyebrow::before, .eyebrow--center::after { background: var(--gold-soft); height: 1px; width: 36px; }

/* Subtle Kerala gable-and-finial motif beneath centred headings */
.section-head--center h2::after {
  content: ""; display: block; height: 22px; margin: 1.3rem auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='22' viewBox='0 0 160 22'%3E%3Cg fill='none' stroke='%23A9884E' stroke-width='1'%3E%3Cpath d='M6 15h56'/%3E%3Cpath d='M98 15h56'/%3E%3Cpath d='M68 15l12-9 12 9'/%3E%3C/g%3E%3Ccircle cx='80' cy='4.5' r='1.4' fill='%23A9884E'/%3E%3C/svg%3E") center/160px 22px no-repeat;
}

/* Refined editorial image frame — a single fine gold hairline, offset */
.framed::after { inset: 12px -12px -12px 12px; border: 1px solid var(--gold-soft); }

/* Hero content stacking (estate frame border removed per request) */
.hero__inner { position: relative; z-index: 2; }

/* Quieter cards — flatter, hairline, airy; a gentle lift on hover */
.card { box-shadow: none; border: 1px solid var(--line); border-radius: 2px; }
.card:hover { box-shadow: 0 14px 40px rgba(31,46,36,.10); border-color: var(--gold-soft); }
.exp-card, .itin, .access { border-radius: 2px; }
.card__price { background: rgba(255,255,255,.96); border: 1px solid rgba(169,136,78,.4); }

/* Slower, more elegant image movement */
.zoomable img, .zoomable .ph > img { transition: transform 1.2s var(--ease-out); }
.zoomable:hover img, .zoomable:hover .ph > img { transform: scale(1.05); }

/* Fine gold nav underlines; refined solid bar */
.nav__links a::after { background: var(--gold-soft); height: 1px; }
.nav.is-solid { background: rgba(246,241,230,.94); box-shadow: 0 1px 0 rgba(169,136,78,.28); }

/* Restrained gold hairline in the primary CTA & ghost outlines */
.btn--accent { box-shadow: inset 0 0 0 1px rgba(196,165,106,.32), 0 10px 26px -12px rgba(31,46,36,.42); }
.btn--ghost-dark { border-color: rgba(169,136,78,.55); }

/* A whisper of gold in a few signature spots */
.hero__eyebrow { color: #E9DCBC; }
.pagehero { border-bottom: 1px solid var(--gold-soft); }
.footer h4 { color: #CDB98C; }
.testimonial__name { color: #CDB98C; }

/* Very subtle paper grain on ivory bands */
.section--paper, .section--paper-alt { position: relative; isolation: isolate; }
.section--paper::before, .section--paper-alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ==========================================================================
   24. CLASSIC · NATURE · HERITAGE  (botanical touch — removable layer)
   Laurel/leaf sprig motif, a leaf crest on heritage frames, botanical eyebrow
   labels, sage-cream bands, and a gentle aged warmth on photography.
   Delete this whole block to return to the quiet-luxury look.
   ========================================================================== */

/* Botanical eyebrow labels (deep natural green); keep light eyebrows light */
.eyebrow { color: var(--forest-500); }
.eyebrow--light { color: #CDB98C; }

/* Section motif → a fine laurel / leaf sprig (nature + classic) */
.section-head--center h2::after {
  height: 24px; margin-top: 1.3rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='176' height='24' viewBox='0 0 176 24'%3E%3Cg fill='none' stroke='%23A9884E' stroke-width='1'%3E%3Cpath d='M6 13h60'/%3E%3Cpath d='M110 13h60'/%3E%3Cpath d='M88 20V6'/%3E%3Cpath d='M88 13Q79 10 77 13Q83 15 88 13Z'/%3E%3Cpath d='M88 13Q97 10 99 13Q93 15 88 13Z'/%3E%3Cpath d='M88 9.5Q82 7 80.5 9.5Q85 11 88 9.5Z'/%3E%3Cpath d='M88 9.5Q94 7 95.5 9.5Q91 11 88 9.5Z'/%3E%3C/g%3E%3Ccircle cx='88' cy='5' r='1.4' fill='%23A9884E'/%3E%3C/svg%3E") center/176px 24px no-repeat;
}

/* Softer sage-cream on the alternate bands (a breath of nature) */
.section--paper-alt { background: #E8E6D2; }

/* A small leaf crest crowning the heritage image frames */
.framed { position: relative; }
.framed::before {
  content: ""; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 20px; z-index: 3; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cg fill='none' stroke='%23A9884E' stroke-width='1'%3E%3Cpath d='M20 19V5'/%3E%3Cpath d='M20 12Q11 9 9 12Q15 14 20 12Z'/%3E%3Cpath d='M20 12Q29 9 31 12Q25 14 20 12Z'/%3E%3C/g%3E%3Ccircle cx='20' cy='4' r='1.5' fill='%23A9884E'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Gentle aged warmth on photography (shows on the real photos) */
.pagehero__bg .ph > img, .feature__bg .ph > img, .testimonials__bg .ph > img,
.framed .ratio > img, .card__media .ph > img {
  filter: sepia(.12) saturate(.95) contrast(1.02) brightness(.99);
}

/* Classic footer detail — a fine botanical rule on top */
.footer { border-top: 1px solid rgba(169,136,78,.3); }

/* ==========================================================================
   25. MOTION — cinematic Ken Burns drift on large backgrounds (removable)
   Paired with initHeroEntrance / initCinematicMotion in js/main.js.
   ========================================================================== */
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.08); } }
.pagehero__bg .ph, .feature__bg .ph, .testimonials__bg .ph {
  animation: kb 36s ease-in-out infinite alternate; transform-origin: center;
}
@media (prefers-reduced-motion: reduce) {
  .pagehero__bg .ph, .feature__bg .ph, .testimonials__bg .ph { animation: none; }
}

/* ==========================================================================
   26. HERO SLIDER  (Swiper slideshow on the Home hero)
   ========================================================================== */
.hero-swiper { position: absolute; inset: 0; z-index: 0; height: 100%; }
.hero-swiper .swiper-wrapper { height: 100%; }
.hero-slide { position: relative; height: 100%; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-slide__bg { position: absolute; inset: 0; z-index: 0; }
/* Hero backgrounds: solid theme colour (not the placeholder gradient); the photo covers it once added */
.hero-slide__bg .ph { width: 100%; height: 100%; border-radius: 0; background: var(--forest-900); }
.hero-slide__bg .ph::before { content: none; }             /* no botanical motif */
.hero-slide__bg .ph::after { content: none; }              /* no caption on hero images */
.hero-slide__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,30,24,.55) 0%, rgba(20,30,24,.18) 34%, rgba(20,30,24,.34) 66%, rgba(20,30,24,.82) 100%),
    linear-gradient(90deg, rgba(20,30,24,.5) 0%, rgba(20,30,24,0) 55%);
}
.hero-slide .hero__inner { position: relative; z-index: 2; }

/* Dots */
/* Swiper's own (more specific) rule sets the dots' bottom from --swiper-pagination-bottom */
.hero-slider__dots { position: absolute; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; gap: .55rem; --swiper-pagination-bottom: 12px; }
.hero-slider__dots .swiper-pagination-bullet { width: 9px; height: 9px; margin: 0 !important; background: #fff; opacity: .45; border-radius: 50%; transition: opacity .3s var(--ease), width .3s var(--ease); }
.hero-slider__dots .swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 5px; background: var(--gold-soft, #C4A56A); }

/* Arrows */
.hero-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  color: #fff; display: grid; place-items: center; background: rgba(14,10,6,.55); border-color: rgba(255,255,255,.55);
  backdrop-filter: blur(4px); transition: background .3s var(--ease), color .3s, border-color .3s;
}
.hero-slider__arrow:hover { background: rgba(255,255,255,.92); color: var(--forest-700); border-color: #fff; }
.hero-slider__arrow svg { width: 20px; height: 20px; }
.hero-slider__arrow--prev { left: clamp(12px, 3vw, 34px); }
.hero-slider__arrow--next { right: clamp(12px, 3vw, 34px); }
.hero-slider__arrow.swiper-button-disabled { opacity: .3; }
@media (max-width: 760px) { .hero-slider__arrow { display: none; } }
/* tablets & laptops: the copy column reaches the edge, so side arrows would sit on the text —
   pair them with the dots instead */
@media (min-width: 761px) and (max-width: 1360px) {
  .hero-slider__dots { --swiper-pagination-bottom: 18px; }
  .hero-slider__arrow { top: auto; bottom: 4px; transform: none; width: 38px; height: 38px; }
  .hero-slider__arrow svg { width: 16px; height: 16px; }
  .hero-slider__arrow--prev { left: calc(50% - 6.6rem); }
  .hero-slider__arrow--next { right: calc(50% - 6.6rem); }
}
/* phones: lift the dots above the sticky Plan / WhatsApp bar; the scroll cue would sit under it */
@media (max-width: 720px) {
  .hero-slider__dots { --swiper-pagination-bottom: 64px; }
  .hero .scroll-cue { display: none; }
}
/* narrow phones: keep the sticky bar on one line (52px, matching the hero's dock) */
@media (max-width: 380px) { .sticky-cta a { padding-inline: .5rem; letter-spacing: .05em; white-space: nowrap; } }

/* ==========================================================================
   27. STYLE PRESETS (demos) + live switcher
   Default = "Ivory & Forest" (no data-theme). Alternates set on <html data-theme>.
   ========================================================================== */
/* — Sage & Linen: cooler, greener, airy — */
:root[data-theme="sage"] {
  --bone-100: #F1F2E9; --bone-200: #E5E8D9;
  --forest-900: #1B2A20; --forest-700: #33513E; --forest-500: #4C6B54;
  --teak-600: #6C5A3E; --gold: #93A06A; --gold-soft: #AEB985; --sage-500: #8BA07E;
  --heading: #2B4635;
}
:root[data-theme="sage"] .section--paper-alt { background: #E4E8D6; }
:root[data-theme="sage"] .hero__eyebrow,
:root[data-theme="sage"] .footer h4,
:root[data-theme="sage"] .testimonial__name { color: #C7D0A8; }

/* — Terracotta & Teak: warm earthy heritage (green base, terracotta accent) — */
:root[data-theme="terracotta"] {
  --bone-100: #F6EDE0; --bone-200: #EEDFCB;
  --teak-600: #9C5A34; --gold: #B26A3C; --gold-soft: #CE8A5A;
  --heading: #3B4A38;
}
:root[data-theme="terracotta"] .section--paper-alt { background: #EEDFCB; }
:root[data-theme="terracotta"] .hero__eyebrow,
:root[data-theme="terracotta"] .footer h4,
:root[data-theme="terracotta"] .testimonial__name { color: #E0B48A; }

/* — Emerald & Brass: deeper, more luxe — */
:root[data-theme="emerald"] {
  --bone-100: #F0ECDC; --bone-200: #E5DEC9;
  --forest-900: #0E1F16; --forest-700: #1C3A2A; --forest-500: #2C5240;
  --teak-600: #5E4126; --gold: #BE9A4E; --gold-soft: #D4B36A;
  --heading: #173124;
}
:root[data-theme="emerald"] .section--paper-alt { background: #E7E1CE; }
:root[data-theme="emerald"] .hero__eyebrow,
:root[data-theme="emerald"] .footer h4,
:root[data-theme="emerald"] .testimonial__name { color: #DCBE7C; }

/* — Live switcher (demo control; remove once a style is chosen) — */
.style-switcher { position: fixed; left: 16px; bottom: 16px; z-index: 85; font-family: var(--font-body); }
.style-switcher__toggle { display: inline-flex; align-items: center; gap: .45rem; background: var(--forest-700); color: #fff; border-radius: 40px; padding: .55rem .95rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; box-shadow: var(--shadow-md); }
.style-switcher__panel { display: none; margin-top: .6rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: .8rem; box-shadow: var(--shadow-lg); width: 216px; }
.style-switcher.open .style-switcher__panel { display: block; }
.style-switcher__title { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: .55rem; }
.style-opt { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .45rem .35rem; border-radius: 6px; text-align: left; font-size: .85rem; color: var(--text); }
.style-opt:hover { background: var(--bone-200); }
.style-opt.is-active { background: var(--bone-200); font-weight: 700; }
.style-opt .sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); flex: none; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%); }
@media (max-width: 720px) { .style-switcher { left: 10px; bottom: 58px; } }

/* ==========================================================================
   28. SPLASH / PRELOADER — blurred slide-1 photo, a gold progress ring that lights each activity (Home entry)
   ========================================================================== */
/* Full-screen entry overlay. Both width and height are pinned to the visible
   viewport with vw/svh units (NOT `inset:0`/`100%`, whose fixed containing
   block can be larger than the visible screen on mobile) so the centred ring
   stays dead-centre instead of drifting off to the side or below the fold. */
.splash { position: fixed; top: 0; left: 0; width: 100vw; max-width: 100%; height: 100vh; height: 100svh; z-index: 2000; background: var(--forest-900); display: grid; place-items: center; overflow: hidden; opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility .9s var(--ease); }
.splash.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* Centre the ring on its own midpoint (translate) so it stays dead-centre even
   on viewports narrower than the ring, where grid centring would start-align it. */
.splash-ring { position: absolute; top: 50%; left: 50%; width: 360px; height: 360px; transform: translate(-50%, -50%); }
@media (max-width: 480px) { .splash-ring { transform: translate(-50%, -50%) scale(.78); } }
@media (max-width: 360px) { .splash-ring { transform: translate(-50%, -50%) scale(.62); } }

/* Slide 1's photo, blurred and tinted behind the ring; it fades in once loaded and eases
   back a touch while the intro plays, so the hand-off to the sharp hero feels like a focus pull */
.splash__bg { position: absolute; inset: -48px; z-index: 0; opacity: 0; transition: opacity .9s var(--ease); }
.splash__bg.is-loaded { opacity: 1; }
.splash__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; filter: blur(18px) saturate(1.15); transform: scale(1.14); animation: splashDrift 3.6s var(--ease-out) both; }
.splash__bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(16,26,20,.46) 0%, rgba(16,26,20,.64) 55%, rgba(9,15,11,.86) 100%); }
.splash.is-done .splash__bg img { animation: splashRelease .9s var(--ease) forwards; }
.splash-ring { z-index: 1; }

/* The ring: a faint track, and a gold progress arc that fills clockwise from the top over the intro */
.splash-ring__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.splash-ring__track { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1; }
.splash-ring__progress { fill: none; stroke: url(#splashArc); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 50% 50%; transform-box: fill-box;
  filter: drop-shadow(0 0 6px rgba(241,221,168,.45));
  animation: splashFill 2.2s cubic-bezier(.37,0,.63,1) .35s forwards; }

/* A glowing head that rides the end of the arc (same timing + easing), then fades */
.splash-ring__orbit { position: absolute; inset: 0; transform: rotate(0deg); animation: splashOrbit 2.2s cubic-bezier(.37,0,.63,1) .35s both; }
.splash-ring__orbit span { position: absolute; left: 50%; top: 30px; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #FFF4D6; box-shadow: 0 0 10px 3px rgba(241,221,168,.75), 0 0 28px 10px rgba(241,221,168,.28); }

/* Centre wordmark, on a soft breathing glow */
.splash-ring__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; isolation: isolate; }
.splash__glow { position: absolute; left: 50%; top: 50%; width: 230px; height: 230px; margin: -115px 0 0 -115px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(241,221,168,.24) 0%, rgba(241,221,168,.08) 45%, rgba(241,221,168,0) 70%);
  opacity: 0; animation: splashUp .9s var(--ease-out) .1s forwards, splashBreathe 2.6s ease-in-out 1s infinite alternate; }
.splash__mark { height: 34px; width: auto; color: #F3ECDA; opacity: 0; transform: translateY(10px); filter: drop-shadow(0 2px 10px rgba(0,0,0,.35)); animation: splashUp .9s var(--ease-out) .15s forwards; }
.splash__sub { font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: #E2CB94; text-shadow: 0 1px 8px rgba(0,0,0,.5); opacity: 0; transform: translateY(8px); animation: splashUp .9s var(--ease-out) .4s forwards; }

/* Activity cards: frosted glass, each lighting up as the arc reaches it */
.splash-ring .item { position: absolute; width: 58px; height: 58px; }
.splash-ring .card { width: 100%; height: 100%; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(241,221,168,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 24px -14px rgba(0,0,0,.7);
  opacity: 0; transform: scale(.4); animation: splashPop .7s cubic-bezier(.34,1.56,.64,1) var(--d, 0s) forwards; }
.splash-ring .card svg { width: 26px; height: 26px; fill: none; stroke: #F1DDA8; }
/* labels sit on a small frosted pill, so the ring line passes cleanly behind them */
.splash-ring .label { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: .28rem .7rem; border-radius: 999px;
  background: rgba(14,22,17,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(241,221,168,.18);
  text-align: center; font-size: .56rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; color: #EFE3C4;
  opacity: 0; animation: splashFadeLabel .5s var(--ease-out) calc(var(--d, 0s) + .15s) forwards; }

@keyframes splashUp { to { opacity: 1; transform: none; } }
@keyframes splashFill { to { stroke-dashoffset: 0; } }
@keyframes splashOrbit { 0% { transform: rotate(0deg); opacity: 0; } 6% { opacity: 1; } 92% { opacity: 1; } 100% { transform: rotate(360deg); opacity: 0; } }
@keyframes splashBreathe { from { transform: scale(.94); } to { transform: scale(1.08); } }
@keyframes splashDrift { from { transform: scale(1.2); } to { transform: scale(1.14); } }
@keyframes splashRelease { from { transform: scale(1.14); filter: blur(18px) saturate(1.15); } to { transform: scale(1.03); filter: blur(8px) saturate(1.1); } }
@keyframes splashPop {
  0%   { opacity: 0; transform: scale(.4); }
  55%  { opacity: 1; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 7px rgba(241,221,168,.16), 0 0 26px 4px rgba(241,221,168,.45); }
  100% { opacity: 1; transform: scale(1); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 24px -14px rgba(0,0,0,.7); }
}
@keyframes splashFadeLabel { to { opacity: 1; } }

/* The splash is a brief one-time intro, so it keeps its gentle build-in animation
   even under reduced-motion — re-assert its timings over the site-wide
   reduced-motion rule (which otherwise forces all durations to ~0). Only the
   endless glow "breathing" is dropped. */
@media (prefers-reduced-motion: reduce) {
  .splash { transition-duration: .9s !important; }
  .splash__bg { transition-duration: .9s !important; }
  .splash__bg img { animation-duration: 3.6s !important; }
  .splash.is-done .splash__bg img { animation-duration: .9s !important; }
  .splash-ring__progress, .splash-ring__orbit { animation-duration: 2.2s !important; }
  .splash-ring .card { animation-duration: .7s !important; }
  .splash-ring .label { animation-duration: .5s !important; }
  .splash__mark, .splash__sub { animation-duration: .9s !important; }
  .splash__glow { animation: splashUp .9s var(--ease-out) .1s forwards !important; }
}

/* ==========================================================================
   29. HERO SLIDES · shared buttons, "sky" and "warm" variants
   Placed last so it outranks the style presets' light hero eyebrow.
   ========================================================================== */
/* Hero buttons: the site-wide pill (section 5), a touch tighter, with an icon */
.hero-slide .hero__cta { gap: .75rem; }
.hero-slide .hero__cta .btn { padding: .85rem 1.3rem .85rem 1.1rem; gap: .5rem; letter-spacing: .07em; }
@media (max-width: 480px) {
  .hero-slide .hero__cta { gap: .5rem; }
  .hero-slide .hero__cta .btn { padding: .8rem 1.05rem; gap: .45rem; font-size: .74rem; letter-spacing: .08em; }
  .hero-slide .hero__cta .btn svg { width: 1rem; height: 1rem; }
}
/* the photo sits above the phone's sticky Plan / WhatsApp bar */
@media (max-aspect-ratio: 1/1) { .hero-slide { --hero-dock: 0px; } }
@media (max-aspect-ratio: 1/1) and (max-width: 720px) { .hero-slide { --hero-dock: 52px; } }

/* — "sky": a daylight photo with open sky above the house. The house sits low in the
   frame under a big sky (the lawn is trimmed off the bottom; where a screen is taller
   than the photo, the sky simply continues above it). The washed-out overcast sky is
   tinted to a soft clear blue, dark text sits centred in the sky, and the nav switches
   to dark ink while the slide shows. — */
.hero-slide--sky { align-items: flex-start; text-align: center; }
/* pale sky (not forest) behind the photo, so dark text reads even while it loads */
.hero-slide--sky .hero-slide__bg .ph { background: #EEF2F4; }
.hero-slide--sky .hero-slide__bg .ph > img {
  position: absolute; left: 0; bottom: 0; width: 100%; height: auto;   /* full width, natural ratio */
  transform: translateY(18.6%);                         /* drops the lawn below the edge: house sits low */
  filter: saturate(1.1) contrast(1.04);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%);   /* blends into the sky fill */
          mask-image: linear-gradient(180deg, transparent 0, #000 14%);
}
/* very wide, short windows: trim a little more lawn so the roof stays clear of the text */
@media (min-aspect-ratio: 12/5) {
  .hero-slide--sky .hero-slide__bg .ph > img { transform: translateY(22.5%); }
}
.hero-slide--sky .hero-slide__scrim {
  /* multiply: white sky × gradient = clear blue with a warm haze at the treeline;
     the house and lawn (below ~58%) are left untouched */
  mix-blend-mode: multiply;
  background:
    linear-gradient(0deg, rgba(20,30,24,.45) 0%, rgba(20,30,24,0) 22%),   /* dots + scroll cue on the lawn */
    /* stops follow the photo (width-fitted: its roofline sits ~22vw up) on screens narrower
       than ~2:1, so no blown-out white band shows above the trees; never higher than tuned % */
    linear-gradient(180deg, #96B7D3 0%,
      #BFD4E6 max(24%, 100% - 36.8vw),
      #EAF0F2 max(40%, 100% - 29vw),
      #FBF4EA max(50%, 100% - 24.2vw),
      #FFFFFF max(58%, 100% - 20.3vw));
}
.hero-slide--sky .hero__inner { padding-top: calc(var(--nav-h) + clamp(.75rem, 3.5vh, 2.75rem)); }
/* landscape: centre the copy in the open sky — between the nav and the treeline, which
   sits ~29.3vw above the slide's bottom (the photo is width-fitted, see the img rule) */
@media (min-aspect-ratio: 1001/1000) {
  .hero-slide--sky .hero__inner {
    align-self: stretch; display: flex; flex-direction: column; justify-content: safe center;
    padding-top: var(--nav-h); padding-bottom: 29.3vw;
  }
}
@media (min-aspect-ratio: 12/5) {
  .hero-slide--sky .hero__inner { padding-bottom: 26.7vw; }   /* photo drops lower here */
}
/* portrait: same idea — the photo is height-fitted (see the portrait img rule below), its
   treeline sits ~37.4% of the photo's height above the dock */
@media (max-aspect-ratio: 1/1) {
  .hero-slide--sky .hero__inner {
    align-self: stretch; display: flex; flex-direction: column; justify-content: safe center;
    padding-top: var(--nav-h);
    padding-bottom: calc(var(--hero-dock) + .374 * min(100svh - var(--hero-dock), (100svh - var(--hero-dock) - 24rem) * 2.83));
  }
}
.hero-slide--sky .hero__inner .hero__eyebrow { color: var(--teak-600); margin-bottom: 1rem; }
/* one line across the sky on landscape screens (sized by height too, so it clears the roof) */
.hero-slide--sky .hero__title {
  font-size: clamp(2rem, min(3vw, 6.2vh), 3.5rem);
  color: var(--forest-900); max-width: none; text-wrap: balance;
  text-shadow: 0 1px 22px rgba(255,255,255,.5);
}
.hero-slide--sky .hero__title .light { color: var(--forest-700); }
.hero-slide--sky .hero__sub {
  margin: 1rem auto 0; max-width: 40em; color: rgba(31,46,36,.86); text-wrap: balance;
  font-size: clamp(1.02rem, .95rem + .35vw, 1.25rem);
}
/* Stay · Cowork · Events: Stay solid teak (the main path), the other two frosted glass */
.hero-slide--sky .hero__cta { justify-content: center; margin-top: 1.6rem; }
.hero-slide--sky .hero__rating { display: none; }       /* keeps the sky clean; other slides show it */
/* phones: all three fit on one row (and wrap, rather than clip, if text is zoomed) */
@media (max-width: 480px) {
  .hero-slide--sky .hero__cta { gap: .45rem; }
  .hero-slide--sky .hero__cta .btn { padding: .8rem .95rem; gap: .4rem; }
}

/* Portrait screens: stacked headline, sized by height too; the photo is height-fitted
   (centre of the house) and shrinks on short phones so the roofline stays below the buttons */
@media (max-aspect-ratio: 1/1) {
  .hero-slide--sky .hero__title { font-size: clamp(1.9rem, min(9vw, 6svh), 3.2rem); }
  .hero-slide--sky .hero__title .light { display: block; }
  .hero-slide--sky .hero-slide__bg .ph > img {
    bottom: var(--hero-dock);
    height: min(100% - var(--hero-dock), calc((100% - var(--hero-dock) - 24rem) * 2.83));
    object-fit: cover; object-position: 50% 100%;
  }
  /* tall screens: keep the blue going lower so there's no white band above the treeline */
  .hero-slide--sky .hero-slide__scrim {
    background:
      linear-gradient(0deg, rgba(20,30,24,.45) 0%, rgba(20,30,24,0) 22%),
      linear-gradient(180deg, #96B7D3 0%, #BBD2E5 30%, #D7E5EF 48%, #F1F1EC 60%, #FFFFFF 68%);
  }
}
/* — "warm": an interior still-life. White text sits on the dark teak wall at the left;
   the photo is framed wider than the screen so the lamp and vessel sit right of centre,
   under a warm (teak, not forest) shade. — */
.hero-slide--warm { align-items: flex-start; }
.hero-slide--warm .hero-slide__bg .ph { background: #1E1109; }   /* the wall's own tone */
.hero-slide--warm .hero-slide__bg .ph > img {
  position: absolute; left: 0; top: 0; width: 140%; max-width: none; height: 100%;   /* framed wider than the screen */
  object-position: 0% 45%;
}
/* near-square landscape (4:3 – 3:2): anchor higher so the vessel and terracotta lamp sit below the buttons */
@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 3/2) {
  .hero-slide--warm .hero-slide__bg .ph > img { object-position: 0% 0%; }
}
.hero-slide--warm .hero-slide__scrim {
  background:
    linear-gradient(90deg, rgba(24,14,8,.84) 0%, rgba(24,14,8,.58) 28%, rgba(24,14,8,.12) 52%, rgba(24,14,8,0) 62%),
    linear-gradient(180deg, rgba(24,14,8,.55) 0%, rgba(24,14,8,0) 20%),
    linear-gradient(0deg, rgba(24,14,8,.55) 0%, rgba(24,14,8,0) 26%);
}
.hero-slide--warm .hero__inner { padding-top: calc(var(--nav-h) + clamp(.75rem, 4.5vh, 3.75rem)); }
.hero-slide--warm .hero__title { font-size: clamp(2.1rem, min(3.3vw, 6.4vh), 4rem); max-width: 12em; text-wrap: balance; }
.hero-slide--warm .hero__sub { max-width: 39ch; }
.hero-slide--warm .hero__rating { display: none; }     /* keeps the lamp and vessel clear */
/* portrait: the still-life sits low (above the sticky bar), the wall's tone continues above
   it; sized by height so the lamp's tip stays below the buttons */
@media (max-aspect-ratio: 1/1) {
  .hero-slide--warm .hero-slide__bg .ph > img {
    top: auto; bottom: var(--hero-dock); width: 100%;
    height: min(60%, calc((100% - var(--hero-dock) - var(--copy-bottom, 21rem) - 1rem) * 1.32));   /* lamp tip 24% down */
    object-fit: cover; object-position: 54% 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%);
            mask-image: linear-gradient(180deg, transparent 0, #000 24%);
  }
  .hero-slide--warm .hero-slide__scrim {
    background:
      linear-gradient(180deg, rgba(24,14,8,.35) 0%, rgba(24,14,8,0) 30%),
      linear-gradient(0deg, rgba(24,14,8,.5) 0%, rgba(24,14,8,0) 22%);
  }
  .hero-slide--warm .hero__inner { padding-top: calc(var(--nav-h) + clamp(.75rem, 3vh, 2rem)); }
}
@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
  .hero-slide--warm .hero__sub { display: none; }       /* phones: headline + buttons, photo stays clear */
}

/* — "lamp" (events & celebrations): the old wooden hall lit by one lamp. White text on the
   dark wall at the left under a near-black (not forest) shade; the photo is framed wider so
   the lit table and lamp stay clear of the copy. — */
.hero-slide--lamp { align-items: flex-start; }
.hero-slide--lamp .hero-slide__bg .ph { background: #0B0907; }   /* the hall's own near-black */
.hero-slide--lamp .hero-slide__bg .ph > img {
  position: absolute; left: 0; top: 0; width: 140%; max-width: none; height: 100%;   /* framed wider: lamp + table clear the copy */
  object-position: 0% 45%;
}
.hero-slide--lamp .hero-slide__scrim {
  background:
    linear-gradient(90deg, rgba(10,8,6,.74) 0%, rgba(10,8,6,.46) 32%, rgba(10,8,6,0) 58%),
    linear-gradient(0deg, rgba(10,8,6,.5) 0%, rgba(10,8,6,0) 24%);
}
.hero-slide--lamp .hero__inner { padding-top: calc(var(--nav-h) + clamp(.75rem, 4.5vh, 3.75rem)); }
.hero-slide--lamp .hero__title { font-size: clamp(2.1rem, min(3.4vw, 6.4vh), 4rem); max-width: 11em; text-wrap: balance; }
.hero-slide--lamp .hero__sub { max-width: 44ch; }
.hero-slide--lamp .hero__rating { display: none; }

/* — "canopy" (coworking): an evening gathering under the trees. White text up in the
   treetops under a soft shade from the top; the photo is anchored so the people sit below. — */
.hero-slide--canopy { align-items: flex-start; }
.hero-slide--canopy .hero-slide__bg .ph { background: #18241A; }   /* deep canopy green */
.hero-slide--canopy .hero-slide__bg .ph > img {
  object-position: 50% 0%;
  /* on mid-shape screens, slide the photo down just enough that the people (49% down the
     cover-fitted photo) start below the copy; the treetops fade into the canopy green */
  transform: translateY(max(0px, calc(var(--copy-bottom, 0px) + 1.25rem - 724 * max(100vw / 2000, 100svh / 1475))));
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%);
          mask-image: linear-gradient(180deg, transparent 0, #000 12%);
}
.hero-slide--canopy .hero-slide__scrim {
  background:
    radial-gradient(ellipse 58% 48% at 24% 30%, rgba(14,22,16,.5) 0%, rgba(14,22,16,0) 72%),   /* behind the copy, clear of the people */
    linear-gradient(180deg, rgba(14,22,16,.8) 0%, rgba(14,22,16,.52) 28%, rgba(14,22,16,.12) 50%, rgba(14,22,16,0) 62%),
    linear-gradient(90deg, rgba(14,22,16,.45) 0%, rgba(14,22,16,0) 50%);
}
.hero-slide--canopy .hero__title, .hero-slide--canopy .hero__sub { text-shadow: 0 1px 14px rgba(8,14,10,.45); }
.hero-slide--canopy .hero__inner { padding-top: calc(var(--nav-h) + clamp(.5rem, 3vh, 2.5rem)); }
.hero-slide--canopy .hero__title { font-size: clamp(2.1rem, min(3.3vw, 6.2vh), 4rem); max-width: 12em; text-wrap: balance; }
.hero-slide--canopy .hero__sub { max-width: 44ch; }
.hero-slide--canopy .hero__rating { display: none; }

/* portrait: both photos sit low (above the sticky bar), sized by height so the lamp / the
   gathering stay below the buttons; the photo's own tone continues above it */
@media (max-aspect-ratio: 1/1) {
  .hero-slide--lamp, .hero-slide--canopy { align-items: flex-start; }
  .hero-slide--lamp .hero-slide__bg .ph > img,
  .hero-slide--canopy .hero-slide__bg .ph > img {
    position: absolute; left: 0; top: auto; bottom: var(--hero-dock); width: 100%; max-width: 100%; transform: none;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%);
            mask-image: linear-gradient(180deg, transparent 0, #000 20%);
  }
  .hero-slide--lamp .hero-slide__bg .ph > img {
    height: min(64%, calc((100% - var(--hero-dock) - var(--copy-bottom, 21rem) - 1rem) * 1.355)); object-position: 62% 100%;   /* lamp glow 26% down */
  }
  .hero-slide--canopy .hero-slide__bg .ph > img {
    height: min(100% - var(--hero-dock), calc((100% - var(--hero-dock) - var(--copy-bottom, 21rem) - 1rem) * 1.965)); object-position: 55% 100%;   /* people 49% down */
  }
  .hero-slide--lamp .hero__inner, .hero-slide--canopy .hero__inner { padding-top: calc(var(--nav-h) + clamp(.75rem, 3vh, 2rem)); }
}
@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
  .hero-slide--lamp .hero__sub, .hero-slide--canopy .hero__sub { display: none; }   /* phones: headline + buttons */
  .hero-slide--warm .hero__title, .hero-slide--lamp .hero__title, .hero-slide--canopy .hero__title { font-size: clamp(1.8rem, min(8.4vw, 5.6svh), 3rem); }
}

/* Short landscape phones: give the hero enough height for sky + house */
@media (orientation: landscape) and (max-height: 540px) {
  .hero, .hero-slide { min-height: 680px; }
  .hero-slider__arrow { display: none; }     /* they'd sit under the WhatsApp float; swipe + dots remain */
}

/* Hero controls while a sky slide shows: dark arrows on the light sky, and the scroll
   cue faded out (it would sit on the porch step; the slider dots stay). Opacity only,
   so a keyboard user who has it focused never loses it. */
.hero .scroll-cue { transition: opacity .5s var(--ease); }
.hero.is-sky .scroll-cue:not(:focus-visible) { opacity: 0; pointer-events: none; }
.hero.is-sky .hero-slider__arrow { color: var(--forest-900); border-color: rgba(255,255,255,.95); background: rgba(255,255,255,.85); box-shadow: 0 6px 18px -10px rgba(31,46,36,.45); }
.hero.is-sky .hero-slider__arrow:hover { color: #fff; border-color: var(--forest-900); background: var(--forest-900); }

/* Nav over a sky slide: dark ink until the bar turns solid */
.nav.on-light:not(.is-solid) { --nav-ink: var(--forest-900); }
.nav.on-light:not(.is-solid) .nav__logo img { filter: brightness(.78) saturate(1.1); }   /* a deeper teal reads better on the sky */
.nav.on-light:not(.is-solid) .nav__logo .wordmark-ink { fill: currentColor; }
/* …but white again over the dark mobile drawer */
body.menu-open .nav.on-light:not(.is-solid) { --nav-ink: #fff; }
body.menu-open .nav.on-light:not(.is-solid) .nav__logo img { filter: brightness(0) invert(1); }

/* ==========================================================================
   30. REAL PHOTOGRAPHY & THE TEAK TOWN LOGO
   The script wordmark is a traced SVG (images/teaktown-logo.svg, brand teal;
   -light.svg in cream for dark grounds). Photos fade in over their on-brand
   stand-in as they load (js initImageFade; the hero is left alone).
   ========================================================================== */
/* nav: the script reads best a touch taller than the old text mark */
.nav__logo img { height: 46px; }
.nav.is-solid .nav__logo img { height: 40px; }
@media (max-width: 560px) { .nav__logo img { height: 40px; } .nav.is-solid .nav__logo img { height: 36px; } }
.nav__logo img { transition: filter .4s var(--ease), height .4s var(--ease); }

.footer__brand .footer__logo { display: block; height: 54px; width: auto; margin-bottom: 1rem; }
.splash__mark { height: 42px; }

/* soft photo fade-in (keeps the zoom-on-hover transition too) */
.ph > img.img-fade { opacity: 0; transition: opacity .9s var(--ease), transform 1.2s var(--ease-out); }
.ph > img.img-fade.is-loaded { opacity: 1; }

/* the softer light words in big headings stay legible on dark photos and bands
   (forest-green light type disappears on them) */
.pagehero .display .light, .feature .display .light,
.testimonials .display .light, .section--forest .display .light { color: var(--tan-200); }

/* ==========================================================================
   31. STAY & WORK PAGES — nature mosaic, three-up cards, then → now story
   ========================================================================== */
/* three-up cards (same look as the experience cards) */
.exp-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .exp-grid--3 { grid-template-columns: 1fr; } }

/* Nature mosaic: one large photo beside two stacked, each with a small caption chip */
.mosaic {
  display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.25rem); aspect-ratio: 16 / 10;
}
.mosaic__item { position: relative; border-radius: var(--radius); overflow: hidden; margin: 0; }
.mosaic__item:first-child { grid-row: 1 / -1; }
.mosaic__item > .ph { position: absolute; inset: 0; }
.mosaic__item .chip { position: absolute; left: 12px; bottom: 12px; z-index: 3; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; aspect-ratio: auto; }
  .mosaic__item { aspect-ratio: 1 / 1; }
  .mosaic__item:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  .mosaic__item .chip { left: 8px; bottom: 8px; max-width: calc(100% - 16px); letter-spacing: .06em; padding: .28rem .6rem; }
}

/* Then → now: a building's story in three beats, joined by a fine line */
.then-now { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); list-style: none; padding: 0; }
.then-now::before {
  content: ""; position: absolute; top: 27px; left: 16.6%; right: 16.6%; height: 1px;
  background: linear-gradient(90deg, var(--tan-400), var(--sage-500));
}
.beat { position: relative; text-align: center; }
.beat__mark {
  position: relative; z-index: 1; width: 54px; height: 54px; margin: 0 auto 1.1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--tan-400); color: var(--teak-600);
}
.section--paper-alt .beat__mark { background: var(--bg-alt); }
.beat__mark svg { width: 24px; height: 24px; }
.beat .beat__when { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--teak-600); max-width: none; }
.beat h3 { font-size: var(--step-1); margin: .3rem 0 .5rem; }
.beat p { color: var(--text-muted); font-size: .95rem; max-width: 34ch; margin-inline: auto; text-wrap: pretty; }
@media (max-width: 760px) {
  .then-now { grid-template-columns: 1fr; gap: 1.75rem; }
  .then-now::before { display: none; }
  .beat:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 27px; width: 1px; height: calc(100% + 1.75rem); background: linear-gradient(180deg, var(--tan-400), var(--sage-500)); }
  .beat { text-align: left; padding-left: 76px; min-height: 54px; }
  .beat__mark { position: absolute; left: 0; top: 0; margin: 0; }
  .beat p { margin-inline: 0; }
}
.nowrap { white-space: nowrap; }
/* venue capacity tag (Events page) */
.venue-cap { display: inline-block; margin-top: 1rem; padding: .3rem .8rem; border: 1px solid var(--tan-400); border-radius: 999px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--teak-600); }
/* venue cards: capacity tags line up along the bottom of each row */
#venues .exp-card { display: flex; flex-direction: column; }
#venues .exp-card p { flex-grow: 1; }
#venues .venue-cap { align-self: flex-start; }

/* splash on phones: the ring is scaled down, so its text is scaled up to stay readable;
   long labels wrap onto two lines so they keep clear of the wordmark */
@media (max-width: 480px) {
  .splash-ring .label { font-size: .68rem; letter-spacing: .06em; white-space: normal; width: max-content; max-width: 112px; border-radius: 10px; line-height: 1.25; }
  .splash__sub { font-size: .74rem; }
}
@media (max-width: 360px) { .splash-ring { transform: translate(-50%, -50%) scale(.72); } }

/* ==========================================================================
   32. NO GREEN ON GREEN — the sage-cream alternate bands take warm teak type
   ========================================================================== */
.section--paper-alt { --heading: #3B2A1A; }
.section--paper-alt .eyebrow:not(.eyebrow--light) { color: var(--teak-600); }
.section--paper-alt .display .light { color: var(--teak-600); }
.section--paper-alt .btn--ghost-dark { --btn-fg: #3B2A1A; border-color: rgba(107,74,43,.4); }
.section--paper-alt .btn--ghost-dark::after { background: var(--teak-600); }
.section--paper-alt .pullquote { color: var(--teak-600); }

/* ==========================================================================
   33. MONTSERRAT FIT — line breaks and sizes tuned for the wider family
   ========================================================================== */
/* buttons: a wrapped label stays centred and evenly split; tighter on phones */
.btn { text-align: center; text-wrap: balance; }
@media (max-width: 480px) { .btn { letter-spacing: .06em; padding-inline: 1.25rem; } }
@media (max-width: 380px) { .btn { font-size: .76rem; } }

/* dark-green bands: an opaque cream ghost button with warm type (no green on green) */
.section--forest .btn--ghost { --btn-bg: #F6F1E6; --btn-fg: #3B2A1A; border-color: #F6F1E6; backdrop-filter: none; }
@media (max-width: 420px) { .section--forest .display { font-size: min(1.95rem, 8vw); } }

/* feature panels are narrow: a smaller, balanced display heading */
.feature__card .display { font-size: clamp(1.7rem, 1.25rem + 1.65vw, 2.9rem); }

/* short intros and card copy: no single word left on the last line */
.section-head p { text-wrap: balance; }
.pagehero p, .itin__steps li, .access__note, .exp-card p, .card__desc, .feature__card p { text-wrap: pretty; }

/* then → now: titles and copy line up across the three columns */
@media (min-width: 761px) {
  .then-now { grid-template-rows: repeat(4, auto); row-gap: 0; }
  .beat { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
  .beat h3 { text-wrap: balance; }
}

/* mosaic captions on small phones: smaller, and wrap rather than cut off */
@media (max-width: 700px) {
  .mosaic__item .chip { font-size: .6rem; letter-spacing: .04em; padding: .28rem .55rem; white-space: normal; text-overflow: clip; line-height: 1.35; border-radius: 10px; text-wrap: balance; }
}

/* lightbox: Montserrat, and a light caption on the dark viewer */
.lg-container { font-family: var(--font-body); }
.lg-sub-html h4 { color: #F1ECE2; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0; }

/* splash: the two side labels wrap to two lines so they clear the wordmark */
@media (min-width: 481px) {
  .splash-ring .item--side .label { white-space: normal; width: max-content; max-width: 104px; border-radius: 10px; line-height: 1.3; }
}
@media (max-width: 480px) { .splash__sub { letter-spacing: .16em; } }

/* cards in a row share their row lines, so a title that wraps doesn't push its text out of line */
@supports (grid-template-rows: subgrid) {
  .exp-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
}

/* very small phones: slide 1's three buttons stay on one row */
@media (max-width: 380px) {
  .hero-slide--sky .hero__cta { gap: .35rem; }
  .hero-slide--sky .hero__cta .btn { padding: .78rem .75rem; gap: .35rem; font-size: .72rem; letter-spacing: .04em; }
}
