/* ==========================================================================
   Zacs Hills Estate · Kodaikanal
   Built on the Zacs Valley brand system taken from lp.zacsvalley.com:
   the lockup, Span for display, Avenir Next (Jost stand-in) for text, and
   the six-colour palette. Nothing outside that palette is used, apart from
   the dark placeholder ground, which is the reference's own.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   Span is self hosted, as on the reference page. See README for the licence
   note that came with these files.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Span";
  src: url("../fonts/span-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Span";
  src: url("../fonts/span-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Span";
  src: url("../fonts/span-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Palette. Brand Guidelines p.14 */
  --forest: #2b5748;   /* Deep Forest, primary */
  --sage: #618764;     /* Valley Sage, accent only */
  --moss: #9cb080;     /* Morning Moss, accent only */
  --night: #000000;
  --white: #ffffff;
  --mist: #f4f6f1;

  /* Hairlines and quiet text, all derived from Night or White */
  --rule: rgba(0, 0, 0, 0.12);
  --rule-strong: rgba(0, 0, 0, 0.26);
  --rule-on-dark: rgba(255, 255, 255, 0.2);
  --rule-on-dark-strong: rgba(255, 255, 255, 0.4);
  --ink-soft: rgba(0, 0, 0, 0.68);
  --ink-softer: rgba(0, 0, 0, 0.58);
  --paper-soft: rgba(255, 255, 255, 0.76);
  --paper-softer: rgba(255, 255, 255, 0.62);

  /* Type */
  --serif: "Span", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-hero: clamp(2.75rem, 1.55rem + 5vw, 5.75rem);
  --fs-h2: clamp(2.125rem, 1.45rem + 2.8vw, 3.75rem);
  --fs-h2-xl: clamp(2.5rem, 1.4rem + 4.2vw, 5rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-lead: clamp(1.375rem, 1.1rem + 1.1vw, 2.125rem);
  --fs-body: 1.0625rem;
  --fs-label: 0.6875rem;

  /* Space */
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(80px, 10.5vw, 148px);
  --header-h: 68px;
  --bar-h: 58px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 900px) {
  :root { --header-h: 80px; --bar-h: 0px; }
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

html.menu-open { overflow: hidden; }

body {
  margin: 0;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  color: var(--night);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.68;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.004em;
  text-wrap: balance;
}

h2 { font-size: var(--fs-h2); line-height: 1.06; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
strong, b { font-weight: 500; }

/* Span ships no italic. A synthesised oblique on a high contrast serif reads
   as a mistake, so emphasis carries colour instead, as on the reference. */
em { font-style: normal; color: var(--sage); }
.hero em,
.section--forest em { color: var(--moss); }

::selection { background: var(--moss); color: var(--night); }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.hero :focus-visible,
.section--forest :focus-visible,
.site-footer :focus-visible,
.band :focus-visible,
.plan__panel :focus-visible { outline-color: var(--white); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--forest);
  color: var(--white);
}
.skip-link:focus { left: 0; }

/* Icons: drawn with strokes, sized by the font of their parent */
.i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); }

/* Single column grids get a track that may shrink below its content's
   min-content width, so a long unbreakable figure can never widen the page. */
.story__grid,
.resort__grid,
.plan__grid,
.villa__top,
.gallery__grid,
.invest__grid,
.faq__grid,
.visit__grid,
.site-footer__top { grid-template-columns: minmax(0, 1fr); }
.section--mist { background: var(--mist); }
.section--forest { background: var(--forest); color: var(--white); overflow: hidden; }

/* The contour map as a quiet texture on the dark green grounds */
.section--contours::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--moss);
  opacity: 0.09;
  -webkit-mask: url("../img/contours.svg") 85% 20% / max(2400px, 120%) auto no-repeat;
  mask: url("../img/contours.svg") 85% 20% / max(2400px, 120%) auto no-repeat;
  pointer-events: none;
}
.section--contours > .wrap { position: relative; }

/* --------------------------------------------------------------------------
   5. Type helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--forest);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.section--forest .eyebrow { color: var(--moss); }

.label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lede {
  margin-top: 28px;
  max-width: 44ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.section--forest .lede { color: var(--paper-soft); }

.section-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head__aside {
  max-width: 36ch;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 64px;
  }
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--moss);
}
.dot--pulse { animation: pulse 2.4s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(156, 176, 128, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(156, 176, 128, 0); }
}

/* --------------------------------------------------------------------------
   6. Buttons and links
   One height for every button. A colour wipes up from the base while the
   button lifts: unhurried, no bounce, after the reference hero buttons.
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--forest);
  color: var(--white);
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.42s var(--ease),
    border-color 0.42s var(--ease),
    transform 0.42s var(--ease),
    box-shadow 0.42s var(--ease);
}
.btn .i { width: 16px; height: 16px; }
.btn .i--arrow { width: 14px; height: 14px; transition: transform 0.42s var(--ease); }

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--night);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.42s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.btn:hover::before,
.btn:focus-visible::before { transform: scaleY(1); }
.btn:hover .i--arrow { transform: translate(2px, -2px); }
.btn:active { transform: translateY(0); box-shadow: none; transition-duration: 0.09s; }

.btn--light { background: var(--white); color: var(--night); }
.btn--light::before { background: var(--moss); }

.btn--ghost { background: transparent; color: var(--night); border-color: var(--rule-strong); }
.btn--ghost:hover,
.btn--ghost:focus-visible { color: var(--white); border-color: var(--night); }

.btn--ghost-light { background: transparent; color: var(--white); border-color: var(--rule-on-dark-strong); }
.btn--ghost-light::before { background: var(--white); }
.btn--ghost-light:hover,
.btn--ghost-light:focus-visible { color: var(--night); border-color: var(--white); }

.btn--sm { min-height: 38px; padding: 0 14px; gap: 8px; font-size: 0.625rem; }
.btn--sm .i { width: 13px; height: 13px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Small phones: long labels such as "Get a personalised quote" would
   otherwise run past a full width button and be clipped. */
@media (max-width: 419px) {
  .btn { padding-inline: 16px; gap: 10px; letter-spacing: 0.14em; }
  .btn--block { white-space: normal; text-align: center; line-height: 1.4; padding-block: 12px; }
}

/* Understated text link. No underline anywhere, on client instruction. */
.tlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
  transition: color 0.25s ease, gap 0.3s var(--ease);
}
.tlink .i { width: 14px; height: 14px; }
.tlink:hover { gap: 14px; color: var(--night); }
.tlink::after { content: ""; position: absolute; inset: -12px 0; } /* 44px tap area */

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid var(--rule-strong);
  color: var(--forest);
}
.icon-box .i { width: 20px; height: 20px; }
.icon-box--glass {
  border-color: var(--rule-on-dark-strong);
  background: rgba(0, 0, 0, 0.18);
  color: var(--white);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: var(--white);
  color: var(--night);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.icon-btn .i { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--night); border-color: var(--night); color: var(--white); }
.icon-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.icon-btn[aria-disabled="true"]:hover { background: var(--white); border-color: var(--rule-strong); color: var(--night); }

/* --------------------------------------------------------------------------
   7. Photography
   Every photograph sits in a .media frame and crops to fill it. The soft
   green ground shows only while an image is still loading.
   -------------------------------------------------------------------------- */

.media {
  position: relative;
  overflow: hidden;
  background: #e9ede3;
}
.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A small label that sits on a photograph */
.chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 28px);
  padding: 9px 14px;
  background: var(--white);
  color: var(--night);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}
.chip .i { width: 13px; height: 13px; color: var(--sage); }
.chip__num { color: var(--sage); }

/* --------------------------------------------------------------------------
   8. Header
   White glass and sticky, above the hero rather than over it, so the
   positive lockup keeps its light ground for the whole page.
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
  }
}

.site-header.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }
html.menu-open .site-header { background: var(--white); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand__logo { width: auto; height: 44px; }
.brand__estate {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--rule);
}
.brand__name {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}
.brand__sub {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink-softer);
}

@media (min-width: 900px) {
  .brand { gap: 18px; }
  .brand__logo { height: 54px; }
  .brand__estate { padding-left: 18px; }
  .brand__name { font-size: 0.75rem; }
  .brand__sub { font-size: 0.5625rem; }
}

.site-nav { display: none; }
.site-nav a {
  position: relative;
  padding: 10px 0;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--moss);
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--forest); }
.site-nav a[aria-current="true"]::after { transform: scale(1); }

@media (min-width: 1200px) {
  .site-nav { display: flex; gap: clamp(22px, 2.2vw, 36px); }
}

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-header__actions .btn { display: none; }
@media (min-width: 640px) {
  .site-header__actions .btn { display: inline-flex; }
}

/* Between the tablet and wide layouts the WhatsApp label collapses to its
   icon so the header never wraps. */
@media (min-width: 640px) and (max-width: 1379px) {
  .site-header__wa { width: 48px; padding: 0; }
  .site-header__wa span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: transparent;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--night);
  transition: transform 0.35s var(--ease), opacity 0.2s ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1200px) {
  .menu-toggle { display: none; }
}

/* Absolute rather than fixed: the header's backdrop filter makes it the
   containing block for anything fixed inside it. */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 16px var(--gutter) calc(32px + var(--bar-h) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  background: var(--white);
  border-top: 1px solid var(--rule);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1.2;
}
.mobile-menu__nav .i { width: 18px; height: 18px; color: var(--sage); }

@media (min-width: 1200px) {
  .mobile-menu { display: none !important; }
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(640px, min(calc(100vh - var(--header-h)), 920px));
  min-height: max(640px, min(calc(100svh - var(--header-h)), 920px));
  background: var(--forest);
  color: var(--white);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; isolation: isolate; }
.hero__media > img,
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* The light green cast from the reference: multiply, so a photograph keeps
   its own contrast instead of washing flat. */
.hero__tint {
  position: absolute;
  inset: 0;
  background: var(--moss);
  mix-blend-mode: multiply;
  opacity: 0.55;
}
/* Tuned against the brightest frames of the film (fog, white bedding) so the
   white type holds about 7:1 and the Morning Moss emphasis about 3:1. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(0, 0, 0, 0) 80%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.75) 100%);
}
/* On a phone the type runs the full width, so the ground darkens evenly. */
@media (max-width: 899px) {
  .hero__scrim {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.42) 40%, rgba(0, 0, 0, 0.8) 100%);
  }
}

.hero__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: clamp(72px, 12vh, 140px);
  padding-bottom: clamp(36px, 5vw, 60px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 10px 16px;
  border: 1px solid var(--rule-on-dark-strong);
  background: rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 14ch;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.3); /* a soft lift over busy frames, not a visible shadow */
}
.hero__lede { text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35); }

.hero__lede {
  max-width: 46ch;
  margin-top: 26px;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.hero .btn-row { margin-top: 36px; }

@media (max-width: 559px) {
  .hero .btn-row { flex-direction: column; align-self: stretch; }
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 720px;
  margin-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--rule-on-dark-strong);
}
.hero__stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px 12px 0 0;
}
.hero__stats > div + div {
  padding-left: clamp(14px, 3vw, 32px);
  border-left: 1px solid var(--rule-on-dark);
}
.hero__stats dd {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 1.1rem + 2vw, 2.625rem);
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}
.hero__stats dt {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--paper-softer);
}

.hero__lat {
  position: absolute;
  top: 50%;
  right: clamp(18px, 2.2vw, 36px);
  z-index: 2;
  display: none;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 1100px) {
  .hero__lat { display: block; }
}

/* Load-in. CSS only, so the hero never waits on a script. */
.hero__body > * { animation: rise 1s var(--ease) both; }
.hero__body > :nth-child(2) { animation-delay: 0.08s; }
.hero__body > :nth-child(3) { animation-delay: 0.16s; }
.hero__body > :nth-child(4) { animation-delay: 0.24s; }
.hero__body > :nth-child(5) { animation-delay: 0.32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Black band under the hero: location, visits, booking. */
.band {
  position: relative;
  z-index: 2;
  background: var(--night);
  color: rgba(255, 255, 255, 0.82);
}
.band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-inline: 0;
}
.band__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}
.band__item .i { width: 15px; height: 15px; color: var(--moss); }
.band__item + .band__item { border-left: 1px solid var(--rule-on-dark); }
.band__link {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule-on-dark);
  border-left: 0 !important;
  color: var(--white);
  transition: background-color 0.3s ease;
}
.band__link .i { color: var(--white); transition: transform 0.35s var(--ease); }
.band__link:hover { background: var(--forest); }
.band__link:hover .i { transform: translate(2px, -2px); }

@media (min-width: 760px) {
  .band__inner { grid-template-columns: repeat(3, 1fr); padding-inline: var(--gutter); }
  .band__item { padding: 20px 16px; font-size: var(--fs-label); letter-spacing: 0.2em; }
  .band__link { grid-column: auto; border-top: 0; border-left: 1px solid var(--rule-on-dark) !important; }
}

/* --------------------------------------------------------------------------
   10. Quick facts
   -------------------------------------------------------------------------- */

.facts { border-bottom: 1px solid var(--rule); }
.facts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts__grid li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 16px 28px 0;
}
.facts__grid li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--rule); }
.facts__grid li:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); }
.facts .i { width: 26px; height: 26px; color: var(--sage); }
.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.25;
}
.facts span {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-softer);
}

@media (min-width: 1000px) {
  .facts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* :nth-child(n) matches the specificity of the 2x2 rules above so the
     single row fully replaces them rather than inheriting stray rules. */
  .facts__grid li:nth-child(n) {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    padding: 44px 28px;
    border: 0;
  }
  .facts__grid li:first-child { padding-left: 0; }
  .facts__grid li:nth-child(n + 2) { border-left: 1px solid var(--rule); }
  .facts .i { margin-top: 2px; }
}

/* --------------------------------------------------------------------------
   11. Story
   -------------------------------------------------------------------------- */

.story__grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .story__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(56px, 8vw, 128px);
  }
}

.story__lead {
  font-family: var(--serif);
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.3;
  color: var(--forest);
}
.story__text {
  max-width: 54ch;
  margin-top: 28px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.story__sig {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.story__sig-num {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 2.9rem + 2.4vw, 5.25rem);
  font-weight: 300;
  line-height: 0.85;
  color: var(--sage);
}
.story__sig-text {
  max-width: 19ch;
  font-size: 0.8125rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   12. Resort address
   -------------------------------------------------------------------------- */

.resort__grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 1000px) {
  .resort__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(56px, 7vw, 112px);
  }
}

.proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 40px 0 40px;
  border-top: 1px solid var(--rule-strong);
}
.proof > div { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--rule); }
.proof > div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--rule); }
.proof dt {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 1.35rem + 1vw, 2.125rem);
  font-weight: 300;
  line-height: 1.1;
}
.proof dd {
  margin-top: 6px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-softer);
}

.resort__collage { position: relative; padding-bottom: clamp(56px, 9vw, 104px); }
.resort__main { width: 84%; margin-left: auto; aspect-ratio: 4 / 5; }
/* The map card covers the lower left corner, so this caption sits right. */
.resort__main .chip { left: auto; right: 14px; }
.resort__map {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  aspect-ratio: 1;
  outline: 10px solid var(--mist);
}
.resort__map .chip { left: 10px; bottom: 10px; max-width: calc(100% - 20px); letter-spacing: 0.14em; }

@media (max-width: 559px) {
  .resort__collage { padding-bottom: 0; }
  .resort__main { width: 100%; }
  .resort__main .chip { left: 14px; right: auto; bottom: auto; top: 14px; }
  .resort__map { position: relative; width: 72%; margin: -22% 0 0 auto; }
}

/* --------------------------------------------------------------------------
   13. Master plan
   -------------------------------------------------------------------------- */

.plan__grid { display: grid; gap: 20px; }
@media (min-width: 1000px) {
  .plan__grid { grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); gap: 28px; }
}

.plan__map {
  display: flex;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--rule);
}
.plan__frame { flex: 1; min-height: 460px; background: var(--white); }
@media (min-width: 1000px) {
  .plan__frame { min-height: 640px; }
}
/* The plan is a document, so it is never cropped: it sits whole on the white
   sheet, clear of the caption bar along the bottom. */
.plan__frame > img {
  object-fit: contain;
  padding: 4px 4px 64px;
}
@media (max-width: 999px) {
  /* Stacked, the frame takes its height from the plan's own proportions. */
  .plan__frame { min-height: 0; aspect-ratio: 1600 / 2080; }
}

.plan__bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.78);
}
.plan__bar .btn { flex: none; }
.plan__bar span {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.plan__panel {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 44px);
  background: var(--forest);
  color: var(--white);
}
.plan__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.plan__panel-head .label { color: var(--moss); }
.live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--paper-soft);
}

/* Columns follow the panel's own width, not the window's: the panel is
   narrowest in the two column layout between 1000px and 1300px. */
.plan__panel { container-type: inline-size; }
.plots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container (min-width: 420px) {
  .plots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.plot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 16px 14px;
  border: 1px solid var(--rule-on-dark);
  background: transparent;
  color: var(--white);
  text-align: left;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
}
.plot:hover { border-color: var(--rule-on-dark-strong); background: rgba(255, 255, 255, 0.05); }
.plot__no {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
}
.plot strong {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.25rem + 0.4vw, 1.625rem);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}
.plot strong small {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.72;
}
.plot__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-soft);
}
.plot.is-active { background: var(--white); border-color: var(--white); color: var(--night); }
.plot.is-active .plot__no { color: var(--forest); }
.plot.is-active .plot__status { color: var(--forest); }
.plot.is-active .dot { background: var(--sage); }

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
  margin: 32px 0 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-on-dark);
}
.specs dt {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-softer);
}
.specs dd {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  font-weight: 400;
  line-height: 1.25;
}

.plan__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--rule-on-dark);
}
.plan__foot p { max-width: 30ch; font-size: 0.8125rem; line-height: 1.6; color: var(--paper-softer); }
@media (max-width: 559px) {
  .plan__foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .plan__foot p { max-width: none; }
}
.plan__foot .tlink { flex: none; color: var(--moss); }
.plan__foot .tlink:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   14. Villa
   -------------------------------------------------------------------------- */

.villa__top { display: grid; gap: 48px; align-items: end; }
@media (min-width: 1000px) {
  .villa__top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
}

.villa__card { display: grid; border: 1px solid var(--rule-on-dark); }
@media (min-width: 600px) {
  .villa__card { grid-template-columns: 1fr 1fr; }
}
.villa__img { min-height: 300px; }

.villa__styles {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(24px, 3vw, 36px);
  background: rgba(0, 0, 0, 0.2);
}
.villa__styles-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
}
.villa__styles li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-on-dark);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.86);
}
.villa__styles li::before { content: ""; width: 16px; height: 1px; flex: none; background: var(--moss); }

.options {
  display: grid;
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--rule-on-dark-strong);
}
.options li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule-on-dark);
}
.options .i { width: 26px; height: 26px; margin-bottom: 10px; color: var(--moss); }
.options strong {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
  font-weight: 300;
  line-height: 1.2;
}
.options span { max-width: 34ch; font-size: 0.875rem; line-height: 1.65; color: var(--paper-soft); }

@media (min-width: 800px) {
  .options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .options li { padding: 36px 32px 8px; border-bottom: 0; }
  .options li:first-child { padding-left: 0; }
  .options li + li { border-left: 1px solid var(--rule-on-dark); }
}

.villa__cta { margin-top: 48px; }

/* --------------------------------------------------------------------------
   15. Gallery
   -------------------------------------------------------------------------- */

.gallery__grid { display: grid; gap: 14px; }
.gallery__feature { aspect-ratio: 4 / 5; }
.gallery__villa { aspect-ratio: 3 / 2; }

@media (min-width: 900px) {
  .gallery__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto auto;
  }
  .gallery__feature { grid-row: span 2; aspect-ratio: auto; min-height: 700px; }
  .gallery__villa { aspect-ratio: auto; min-height: 380px; }
}

.gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 110px clamp(22px, 2.6vw, 36px) clamp(22px, 2.6vw, 36px);
  /* Held dark through the small label, which sits highest in the caption. */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.62) 50%, rgba(0, 0, 0, 0) 100%);
  color: var(--white);
}
.gallery figcaption span {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--moss);
}
.gallery figcaption strong {
  display: block;
  max-width: 20ch;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem);
  font-weight: 300;
  line-height: 1.15;
}

.gallery__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(28px, 3.2vw, 48px);
  background: var(--mist);
}
.gallery__cta .icon-box { margin-bottom: auto; }
.gallery__cta h3 {
  margin-top: 40px;
  font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.5rem);
  font-weight: 300;
  line-height: 1.1;
}
.gallery__cta p { max-width: 30ch; font-size: 0.9375rem; line-height: 1.7; color: var(--ink-soft); }
.gallery__cta .tlink { margin-top: 12px; }

/* --------------------------------------------------------------------------
   16. Investment / capital planner
   -------------------------------------------------------------------------- */

.invest__grid { display: grid; gap: 56px; }
@media (min-width: 1000px) {
  .invest__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(56px, 7vw, 112px);
    align-items: start;
  }
  .invest__copy { position: sticky; top: calc(var(--header-h) + 56px); }
}

.invest__note {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 44ch;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.invest__note .i { width: 22px; height: 22px; color: var(--sage); }

.calc {
  padding: clamp(24px, 3.4vw, 48px);
  background: var(--white);
  border: 1px solid var(--rule);
}
.calc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.calc__head .label { color: var(--forest); }
.calc__head h3 { margin-top: 10px; font-size: var(--fs-h3); line-height: 1.2; }
.calc__head > .i { width: 28px; height: 28px; color: var(--sage); }

.range + .range { margin-top: 30px; }
.range__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.range__row label { font-size: 0.9375rem; color: var(--ink-soft); }
.range__row output {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}

.range input {
  --fill: 50%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.range input:focus { outline: none; }
.range input::-webkit-slider-runnable-track {
  height: 2px;
  background:
    linear-gradient(var(--forest), var(--forest)) 0 0 / var(--fill) 100% no-repeat,
    rgba(0, 0, 0, 0.14);
}
/* A small diamond: the peak of the mark, turned into a handle. */
.range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -7px;
  background: var(--white);
  border: 1.5px solid var(--forest);
  border-radius: 0;
  transform: rotate(45deg);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.range input:hover::-webkit-slider-thumb { background: var(--forest); }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(97, 135, 100, 0.35); }
.range input::-moz-range-track { height: 2px; background: rgba(0, 0, 0, 0.14); border: 0; }
.range input::-moz-range-progress { height: 2px; background: var(--forest); }
.range input::-moz-range-thumb {
  width: 13px;
  height: 13px;
  background: var(--white);
  border: 1.5px solid var(--forest);
  border-radius: 0;
  transform: rotate(45deg);
}
.range input:hover::-moz-range-thumb { background: var(--forest); }
.range input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(97, 135, 100, 0.35); }

.calc__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
  border-top: 1px solid var(--rule);
}
.calc__split > div { padding: 22px 12px 22px 0; }
.calc__split > div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.calc__split .label,
.calc__rental .label { color: var(--ink-softer); }

.calc__num {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 400;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calc__total {
  padding: 24px;
  background: var(--forest);
  color: var(--white);
}
.calc__total .label { color: var(--moss); }
.calc__total .calc__num { font-size: clamp(1.5rem, 1rem + 3vw, 2.75rem); font-weight: 300; }

.calc__rental {
  padding: 22px 24px;
  background: var(--mist);
  border-left: 2px solid var(--sage);
}
.calc__rental .calc__num {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  font-weight: 300;
  color: var(--forest);
}
.calc__rental .calc__num { white-space: normal; }
.calc__fine { margin-top: 10px; font-size: 0.6875rem; line-height: 1.65; color: var(--ink-softer); }

/* Small phones: the two costs stack so eight-digit rupee figures fit. */
@media (max-width: 419px) {
  .calc__split { grid-template-columns: 1fr; }
  .calc__split > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .calc__total,
  .calc__rental { padding: 20px 18px; }
}

.calc__cta { margin-top: 24px; min-height: 54px; }

/* --------------------------------------------------------------------------
   17. Amenities
   -------------------------------------------------------------------------- */

.bento { display: grid; gap: 12px; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 240px;
  padding: clamp(24px, 2.6vw, 34px);
  overflow: hidden;
}
.tile h3 { font-size: clamp(1.375rem, 1.22rem + 0.5vw, 1.625rem); font-weight: 400; line-height: 1.2; }
.tile p { max-width: 36ch; margin-top: 8px; font-size: 0.875rem; line-height: 1.65; }
.tile__icon { width: 28px; height: 28px; }

.tile--stream { min-height: 420px; background: var(--night); color: var(--white); }
.tile__bg { position: absolute; inset: 0; }
.tile__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.12) 58%, rgba(0, 0, 0, 0.1) 100%);
}
.tile--stream > :not(.tile__bg) { position: relative; z-index: 1; }
.tile--stream h3 { font-size: clamp(1.875rem, 1.45rem + 1.6vw, 2.75rem); font-weight: 300; }
.tile--stream p { color: var(--paper-soft); }
.tile__top { display: flex; justify-content: space-between; align-items: flex-start; }

.tile--moss { background: var(--moss); color: var(--night); }
.tile--moss p { color: rgba(0, 0, 0, 0.72); }

.tile--forest { background: var(--forest); color: var(--white); }
.tile--forest .tile__icon { color: var(--moss); }
.tile--forest p { color: var(--paper-soft); }

.tile--mist { background: var(--mist); color: var(--night); }
.tile--mist p { color: var(--ink-soft); }
.tile__row { display: flex; align-items: flex-start; gap: 20px; }
.tile__row .tile__body { padding-top: 4px; }
.tile__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.625rem !important;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest) !important;
}
.tile__status .dot { background: var(--sage); }

.tile--night { background: var(--night); color: var(--white); }
.tile--night .tile__icon { color: var(--moss); }
.tile--night p { color: var(--paper-soft); }
.tile__meta {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem) !important;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--moss) !important;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--stream,
  .tile--mist,
  .tile--night { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(250px, auto)) auto; /* the last band sizes to its content */
  }
  .tile--stream { grid-column: 1 / span 2; grid-row: 1 / span 2; min-height: 0; }
  .tile--mist { grid-column: 3 / span 2; }
  .tile--night {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 36px;
    min-height: 0;
    padding-block: 36px;
  }
  .tile--night .tile__body { flex: 1; display: flex; align-items: baseline; gap: 36px; }
  .tile--night .tile__body p { margin-top: 0; max-width: 44ch; }
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */

.faq__grid { display: grid; gap: 44px; }
@media (min-width: 1000px) {
  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(56px, 7vw, 112px); }
  .faq__head { position: sticky; top: calc(var(--header-h) + 56px); align-self: start; }
}

.faq__list { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.08rem + 0.45vw, 1.4375rem);
  font-weight: 400;
  line-height: 1.35;
  transition: color 0.25s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--forest); }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 8px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary { color: var(--forest); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { max-width: 60ch; padding: 0 48px 30px 0; line-height: 1.8; color: var(--ink-soft); }

/* Smooth open and close where the browser can animate to auto height. */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.4s var(--ease), content-visibility 0.4s allow-discrete;
  }
  .faq details[open]::details-content { height: auto; }
}

/* --------------------------------------------------------------------------
   19. Site visit
   -------------------------------------------------------------------------- */

.visit__grid { display: grid; gap: 56px; }
@media (min-width: 1000px) {
  .visit__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(56px, 7vw, 112px);
    align-items: start;
  }
}

.visit h2 { font-size: var(--fs-h2-xl); line-height: 1; }
.visit__list { margin-top: 44px; border-top: 1px solid var(--rule-on-dark); }
.visit__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--rule-on-dark);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
}
.visit__list .i { width: 19px; height: 19px; color: var(--moss); }

.enquiry {
  padding: clamp(24px, 3.4vw, 48px);
  background: var(--mist);
  color: var(--night);
}
.enquiry__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.enquiry__head .label { color: var(--forest); }
.enquiry__head h3 { margin-top: 10px; font-size: clamp(1.625rem, 1.35rem + 1vw, 2.25rem); line-height: 1.1; }
.enquiry__head > .i { width: 28px; height: 28px; color: var(--forest); }

.enquiry__grid { display: grid; gap: 20px; }
@media (min-width: 560px) {
  .enquiry__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--white);
  color: var(--night);
  font: inherit;
  font-size: 16px; /* keeps iOS from zooming on focus */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder { color: var(--night); opacity: 0.38; }
.field input[type="date"] { -webkit-appearance: none; appearance: none; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 22px center, right 17px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(97, 135, 100, 0.3);
}
.field input:user-invalid { border-color: var(--night); box-shadow: inset 0 -2px 0 var(--night); }

/* Honeypot. Moved off-screen rather than hidden with display:none or
   visibility:hidden, both of which a bot can test for and skip. */
.enquiry__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry__submit { margin-top: 28px; min-height: 56px; }
.enquiry__note { margin-top: 14px; font-size: 0.75rem; line-height: 1.6; text-align: center; color: var(--ink-softer); }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(56px, 7vw, 96px) 32px;
  background: var(--night);
  color: var(--white);
}
.site-footer__top {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule-on-dark);
}
@media (min-width: 700px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .site-footer__top { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 1fr); }
  .site-footer__brand { grid-column: auto; }
}

.site-footer__brand img { width: 150px; }
.site-footer__estate {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.2;
}
.site-footer__addr { margin-top: 10px; font-size: 0.875rem; line-height: 1.8; color: var(--paper-softer); }

.site-footer__links,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9375rem;
}
.site-footer__links a,
.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s ease;
}
.site-footer__contact .i { width: 14px; height: 14px; color: var(--moss); }
.site-footer__links a:hover,
.site-footer__contact a:hover { color: var(--moss); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding-top: 24px;
}
.site-footer__bottom p { max-width: 78ch; font-size: 0.75rem; line-height: 1.7; color: rgba(255, 255, 255, 0.55); }
/* Copyright and agency credit, after the reference page's footer. */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-on-dark);
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__legal p { margin: 0; max-width: none; }
.site-footer__credit a { color: var(--moss); transition: opacity 0.25s ease; }
.site-footer__credit a:hover { opacity: 0.78; }

.site-footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
  transition: color 0.25s ease;
}
.site-footer__wa .i { width: 15px; height: 15px; }
.site-footer__wa:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   21. Floating WhatsApp (desktop) and action bar (mobile)
   -------------------------------------------------------------------------- */

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 20px 0 16px;
  background: var(--forest);
  color: var(--white);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.22); /* keeps an edge over the green sections */
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  transition: transform 0.35s var(--ease), background-color 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}
.wa-float .i { width: 21px; height: 21px; }
.wa-float:hover { transform: translateY(-2px); background: var(--night); }
/* Stood down over the footer, which carries its own WhatsApp link. */
.wa-float.is-away { opacity: 0; visibility: hidden; transform: translateY(12px); }
.wa-float__dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--moss);
}
@media (min-width: 900px) {
  .wa-float { display: inline-flex; }
}

.stickybar {
  position: fixed;
  inset: auto 0 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--white);
  border-top: 1px solid var(--rule);
}
.stickybar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--bar-h);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
}
.stickybar .i { width: 17px; height: 17px; }
.stickybar .i--arrow { width: 13px; height: 13px; }
.stickybar a.is-primary { background: var(--forest); color: var(--white); }
.stickybar a:active { background: var(--mist); }
.stickybar a.is-primary:active { background: var(--night); }
@media (min-width: 900px) {
  .stickybar { display: none; }
}

/* --------------------------------------------------------------------------
   22. Master plan lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  width: min(1080px, calc(100vw - 24px));
  max-width: none;
  height: min(920px, calc(100dvh - 24px));
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--mist);
  color: var(--night);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; animation: rise 0.45s var(--ease) both; }
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 20px;
  border-bottom: 1px solid var(--rule);
}
.lightbox__bar .label { color: var(--ink-soft); }
.lightbox__tools { display: flex; gap: 8px; }
.lightbox__view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--white);
}
/* At 1x the whole plan fits the viewer's height (the plan is 4:5, the bar
   about 66px); zoom multiplies that up to 2x, scrolling in both directions. */
.lightbox__canvas {
  --zoom: 1;
  width: calc(min(100%, (min(920px, 100vh - 24px) - 66px) * 0.8) * var(--zoom));
  width: calc(min(100%, (min(920px, 100dvh - 24px) - 66px) * 0.8) * var(--zoom));
  margin-inline: auto;
  transition: width 0.35s var(--ease);
}
.lightbox__canvas > img { display: block; width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   23. Scroll reveal
   Hidden only once the script has marked the page, and released after 2.5s
   regardless, so a blocked or failed script can never leave a section blank.
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in,
.reveal-all .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   24. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover,
  .btn:focus-visible { transform: none; }
}
