/* =========================================================
   SRINOVA DEVELOPERS — "One form, every detail"
   Shared system. Every page section has its own block in
   pages.css; this file holds tokens, type, header, footer,
   loader, buttons and the shared interaction components.
   ========================================================= */

@font-face { font-family: "Inter Tight"; src: url("../fonts/InterTight-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* colour — taken from the logos */
  --ivory: #eeede8;      /* Srinova soft-stone ground */
  --ivory-2: #e3e1d9;
  --paper: #f8f7f3;
  --ink: #242424;
  --ink-2: #535551;
  --ink-3: #626460;
  --line: rgba(36, 36, 36, .14);
  --red: #cc3c27;        /* srichurnam red, Srinova V */
  --red-d: #a92f1c;
  --gold: #b89561;       /* 26 Springs gold */
  --gold-d: #8a6d40;
  --gold-l: #dcc49a;
  --heading-accent: var(--red);
  --plum: #712e7e;       /* 26 Springs script */
  --night: #202020;
  --night-2: #2b2b2b;

  /* type */
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --fs-mega: clamp(3.4rem, 10.5vw, 11rem);
  --fs-h1: clamp(2.7rem, 6.6vw, 6.6rem);
  --fs-h1-article: clamp(2.4rem, 5.4vw, 5.4rem); /* article titles are long, so their hero is a step smaller */
  --fs-h2: clamp(2.1rem, 4.6vw, 4.6rem);
  --fs-h3: clamp(1.45rem, 2.2vw, 2.1rem);
  --fs-lead: clamp(1.18rem, 1.6vw, 1.5rem);
  /* Supporting text. Display/heading tokens above remain independent. */
  --fs-body: 1rem;
  --fs-intro: 1.25rem;
  --fs-nav: .9375rem;
  --fs-button: .9375rem;
  --fs-label: .75rem;
  --fs-caption: .75rem;
  --fs-form-label: .875rem;
  --fs-input: 1rem;
  --lh-body: 1.6;
  --lh-intro: 1.5;
  --lh-ui: 1.4;
  --lh-button: 1.2;
  --fs-small: .86rem;

  /* geometry — the namam's V: 54° included angle, 0.913 frame */
  --v-ratio: .913;
  --gutter: clamp(16px, 5vw, 80px);
  --maxw: 1520px;
  --radius: 2px;
  --header-h: 76px;
  --space-section: 96px; /* the one space above and below every section */
  --space-group: 64px;   /* between groups inside a section */
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* the thilak, exactly as drawn in the Srinova logo — used for every V on the site */
  --namam-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 65.95 72.24' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M65.95 0L43.28 64.83C42.39 67.3 40.98 69.15 39.05 70.39C37.13 71.63 35.1 72.24 32.97 72.24C30.84 72.24 28.84 71.63 26.95 70.39C25.06 69.15 23.63 67.3 22.67 64.83L0 0Z'/%3E%3C/svg%3E");
  --srich-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='28.85 0.3 8.25 45.75' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M29.12 41.65L32.98 .3L36.83 41.65C37.08 47.24 28.87 47.24 29.12 41.65Z'/%3E%3C/svg%3E");
  --thilak-ivory: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 65.95 72.24' preserveAspectRatio='none'%3E%3Cpath fill='%23f6f1e7' d='M65.95 0L43.28 64.83C42.39 67.3 40.98 69.15 39.05 70.39C37.13 71.63 35.1 72.24 32.97 72.24C30.84 72.24 28.84 71.63 26.95 70.39C25.06 69.15 23.63 67.3 22.67 64.83L0 0Z'/%3E%3Cpath fill='%23cc3c27' d='M29.12 41.65L32.98 .3L36.83 41.65C37.08 47.24 28.87 47.24 29.12 41.65Z'/%3E%3C/svg%3E");
  --namam-logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 65.95 72.24'%3E%3Cpath fill='%23cc3c27' d='M65.95 0L43.28 64.83C42.39 67.3 40.98 69.15 39.05 70.39C37.13 71.63 35.1 72.24 32.97 72.24C30.84 72.24 28.84 71.63 26.95 70.39C25.06 69.15 23.63 67.3 22.67 64.83L0 0Z'/%3E%3Cpath fill='%23fffaf2' d='M29.12 41.65L32.98 .3L36.83 41.65C37.08 47.24 28.87 47.24 29.12 41.65Z'/%3E%3C/svg%3E");
  --thilak-night: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 65.95 72.24' preserveAspectRatio='none'%3E%3Cpath fill='%2314100d' d='M65.95 0L43.28 64.83C42.39 67.3 40.98 69.15 39.05 70.39C37.13 71.63 35.1 72.24 32.97 72.24C30.84 72.24 28.84 71.63 26.95 70.39C25.06 69.15 23.63 67.3 22.67 64.83L0 0Z'/%3E%3Cpath fill='%23cc3c27' d='M29.12 41.65L32.98 .3L36.83 41.65C37.08 47.24 28.87 47.24 29.12 41.65Z'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* Tablet and phone supporting copy; heading breakpoints stay unchanged. */
@media (max-width: 1024px) {
  :root { --fs-intro: 1.125rem; }
}

/* the plum belongs to 26 Springs; outside its page it resolves to the namam's red */
body:not(.page-springs) {
  --plum: var(--red);
  --gold: var(--red);
  --gold-d: var(--red-d);
  --gold-l: #e6e6e0;
}

*, *::before, *::after { box-sizing: border-box; }
/* the clip is on html as well as body: a clip on body alone is handed to the viewport and stops clipping the
   page, so anything past the right edge widens the page on phones and the fixed header stretches with it */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 560; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
:is(h1, h2, h3, h4) :is(em, .serif) { color: var(--heading-accent); }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: -.005em; color: var(--ink-2); /* sentence case, so no wide tracking */ line-height: var(--lh-ui); }
.kicker::before { /* the namam exactly as in the logo: the red V with the light srichurnam at its heart */
  content: ""; flex: none; width: 13px; height: 14px; background: var(--namam-logo) center / 100% 100% no-repeat;
}
.lead { font-size: var(--fs-intro); line-height: var(--lh-intro); color: var(--ink-2); max-width: 36em; }
/* Hero and animated-gallery typography retain their original display scale. */
.lw { font-size: calc(2 * clamp(1.02rem, 1.05vw, 1.12rem)); }
:is(.hh, .sh, .page-hero, .ab-hero, .ct-hero, .pr-hero, .bl-hero) .kicker {
  font-size: .95rem; line-height: 1.6;
}
:is(.hh, .sh, .page-hero, .ab-hero, .ct-hero, .pr-hero, .bl-hero, .ty) .lead {
  font-size: var(--fs-lead); line-height: 1.45;
}
.sg .fine { font-size: .78rem; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ---------- buttons: a pill with the thilak set in a round medallion ----------
   --bg/--fg/--bd  the button at rest
   --disc          the medallion that holds the thilak; on hover it spreads across the
                   whole button and the label turns --fg-on
   --nm-a/--nm-b   thilak colours inside the medallion (the logo's own red + white) */
.btn {
  --bg: var(--red); --fg: #fff; --bd: var(--red); --disc: var(--ivory); --fg-on: var(--red-d);
  --nm-a: var(--red); --nm-b: #fff; --h: 56px; --d: 44px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  height: var(--h); min-height: var(--h); padding: 0 26px 0 calc((var(--h) - var(--d)) / 2);
  border: 1px solid var(--bd); border-radius: 999px; background: var(--bg); color: var(--fg);
  font-size: var(--fs-button); font-weight: 600; letter-spacing: .005em; line-height: var(--lh-button); cursor: pointer; white-space: nowrap;
  transition: color .45s var(--ease) .05s, border-color .45s var(--ease), transform .25s var(--ease), box-shadow .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: calc((var(--h) - var(--d)) / 2); top: 50%;
  width: var(--d); height: var(--d); margin-top: calc(var(--d) / -2); border-radius: 50%;
  background: var(--disc); transform: scale(1); transition: transform .65s cubic-bezier(.7, 0, .2, 1);
}
.btn svg {
  flex: none; box-sizing: border-box; width: var(--d); height: var(--d); padding: calc(var(--d) * .27) calc(var(--d) * .29);
  border-radius: 50%; overflow: visible; transition: transform .45s var(--ease);
}
.nm .nm-a { fill: var(--nm-a, var(--red)); }
.btn > .nm { order: -1; }
.nm .nm-b { fill: var(--nm-b, #fff); }
.btn:hover { color: var(--fg-on); box-shadow: 0 14px 30px -18px rgba(27, 23, 19, .45); }
.btn:hover::before { transform: scale(18); }
.btn:hover svg { transform: translateY(2px); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--plum { --bg: var(--plum); --bd: var(--plum); --fg-on: var(--plum); }
/* secondary buttons are solid too: ink on light grounds, ivory on dark ones; red stays the primary */
.btn--ghost { --bg: var(--ink); --fg: var(--ivory); --bd: var(--ink); --disc: var(--ivory); --fg-on: var(--ink); --nm-a: var(--red); --nm-b: #fff; }
.btn--light, .on-dark .btn--ghost { --bg: var(--ivory); --fg: var(--ink); --bd: var(--ivory); --disc: var(--red); --fg-on: #fff; --nm-a: #fff; --nm-b: var(--red); }
.btn[disabled], .btn.is-loading { pointer-events: none; }
.btn[disabled] { opacity: .5; }
.btn.is-loading::before { animation: btn-wait 1.1s ease-in-out infinite; }
@keyframes btn-wait { 50% { transform: scale(.82); opacity: .7; } }
@media (hover: none) { .btn:hover::before { transform: scale(1); } .btn:hover { color: var(--fg); box-shadow: none; } .btn:active::before { transform: scale(18); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- loader: the namam, drawn, filled, and carried into the hero ----------
   The contour is traced up from the point, the red fills upward, the srichurnam rises, then
   the ground falls away and the namam travels into the hero's namam. Built by site.js. */
.loader { position: fixed; inset: 0; z-index: 500; pointer-events: all; background: var(--ivory); touch-action: none; }
.loader.is-built { background: none; }
.loader__ground {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60vmin 55vmin at 50% 50%, rgba(204, 60, 39, .06), transparent 70%), var(--ivory);
}
/* a hairline frame around the screen */
.loader__ground::before { content: ""; position: absolute; inset: clamp(14px, 2.2vw, 28px); border: 1px solid var(--line); }
/* sized and placed by site.js, centred where the hero's namam rests */
.loader__namam { position: absolute; z-index: 2; overflow: visible; }
.loader__paper { fill: #f8f7f3; opacity: 0; }
.loader__fill { fill: #cc3c27; }
.loader__trace { fill: none; stroke: #cc3c27; stroke-linecap: round; stroke-linejoin: round; }
.loader__edge { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: 0; }
.loader__sri { fill: #fffaf2; }
.loader__sri--red { fill: #cc3c27; }
.loader__mantra {
  position: absolute; z-index: 2; left: 0; right: 0; margin: 0;
  text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  letter-spacing: .02em; color: var(--ink-2); white-space: nowrap;
}
.loader__mantra span { display: inline-block; opacity: 0; white-space: pre; }
/* hidden unless the head script enabled the intro */
.loader, .no-js .loader, .loader.is-done { display: none; }
html.sn-intro .loader:not(.is-done) { display: grid; }
/* moving between pages there is no loader, so the first section waits for its reveals to be set up:
   otherwise it paints, vanishes and fades back in. The delay is the failsafe if a script never arrives. */
html.sn-wait main > :first-child { opacity: 0; animation: sn-show 0s 5s forwards; }
@keyframes sn-show { to { opacity: 1; } }
/* the loader keeps the scrollbar: scrolling is paused through Lenis instead of hiding overflow,
   and the gutter stays reserved so the menu and booking pop-up never shift the page sideways */
html { scrollbar-gutter: stable; }
/* touch screens have no Lenis to pause, so the page itself holds still until the namam opens */
@media (pointer: coarse) { html.is-loading { overflow: hidden; } }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: transform .5s var(--ease), background .4s var(--ease), box-shadow .4s;
}
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.site-header .header-cta, .site-header .menu-btn { justify-self: end; }
.site-header.is-solid { background: color-mix(in srgb, var(--ivory) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: block; width: clamp(128px, 11vw, 168px); flex: none; }
.brand img { width: 100%; height: auto; }
.brand .brand__light { display: none; }
.site-header.is-dark:not(.is-solid) .brand__dark { display: none; }
.site-header.is-dark:not(.is-solid) .brand__light { display: block; }
.site-header.is-dark:not(.is-solid) { color: var(--ivory); }
.nav { display: flex; gap: clamp(22px, 2.8vw, 44px); font-size: var(--fs-nav); font-weight: 500; line-height: var(--lh-ui); }
.nav a { position: relative; padding: 10px 0; color: var(--ink-2); transition: color .3s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover, .nav a[aria-current="page"], .nav a.is-current { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after, .nav a.is-current::after { transform: scaleX(1); }
.site-header.is-dark:not(.is-solid) .nav a { color: rgba(246, 241, 231, .72); }
.site-header.is-dark:not(.is-solid) .nav a:hover, .site-header.is-dark:not(.is-solid) .nav a[aria-current="page"], .site-header.is-dark:not(.is-solid) .nav a.is-current { color: var(--ivory); }
.header-cta { --h: 46px; --d: 36px; gap: 14px; padding-right: 20px; font-size: var(--fs-button); line-height: var(--lh-button); }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:first-child { top: 19px; } .menu-btn span:last-child { top: 28px; }
.menu-open .menu-btn span:first-child { top: 23.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 23.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ivory); padding: calc(var(--header-h) + 16px) var(--gutter) 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu-open .menu { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.menu ul { border-top: 1px solid var(--line); }
/* the links rise in turn as the panel opens */
@media (prefers-reduced-motion: no-preference) {
  .menu li { opacity: 0; transform: translateY(22px); transition: opacity .25s, transform .25s; }
  .menu-open .menu li { --wait: calc(.2s + var(--i, 0) * .055s); opacity: 1; transform: none; transition: opacity .6s var(--ease) var(--wait), transform .7s var(--ease) var(--wait); }
}
.menu li { border-bottom: 1px solid var(--line); }
.menu li a { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; font-size: var(--fs-nav); font-weight: 540; letter-spacing: -.04em; line-height: var(--lh-ui); }
.menu li a small { font-size: var(--fs-caption); letter-spacing: .14em; color: var(--ink-3); font-weight: 500; line-height: var(--lh-ui); }
.menu li a[aria-current="page"], .menu li a.is-current { color: var(--red); }
.menu__foot { display: grid; gap: 18px; justify-items: start; }
.menu-open { overflow: hidden; }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: rgba(246, 241, 231, .78); padding: var(--space-section) 0 28px; overflow: hidden; }
.foot__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px 40px; padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid rgba(246, 241, 231, .12); }
.foot h3 { font-size: .95rem; letter-spacing: -.005em; color: var(--gold-l); font-weight: 600; margin-bottom: 18px; line-height: 1.4; }
.foot ul { display: grid; gap: 10px; font-size: var(--fs-nav); line-height: var(--lh-ui); }
.foot a:hover { color: var(--ivory); }
.foot address { font-style: normal; font-size: var(--fs-body); line-height: var(--lh-body); }
.foot__base { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: var(--fs-caption); color: rgba(246, 241, 231, .75); line-height: var(--lh-ui); }
/* touch screens: the base line's links are 44px tall to tap; the copyright line takes the same height so the
   lines stay evenly spaced (the 26 Springs footer has its own) */
@media (pointer: coarse) {
  .site-footer:not(.springs-footer) .foot__base { padding-top: 10px; row-gap: 0; }
  .site-footer:not(.springs-footer) .foot__base > :first-child { padding-block: 14px; }
  .site-footer:not(.springs-footer) .foot__base a { display: inline-block; padding-block: 14px; }
  /* the link columns too: each link a full 44px row, the rows sitting closer to keep the list's rhythm */
  .foot__top ul { gap: 0; }
  .foot__top li a { display: flex; align-items: center; min-height: 44px; }
}
@media (max-width: 960px) { .foot__top { grid-template-columns: 1fr 1fr; } .foot__top > :first-child { grid-column: 1 / -1; } }
/* phones: Visit across the top, Explore and Projects side by side, the base lines stacked on the left */
@media (max-width: 520px) {
  .foot__top { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .foot h3 { margin-bottom: 14px; }
  .foot ul { gap: 12px; }
  .foot__base { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* paired buttons stack to one shared width */
  .btn-row { display: grid; width: fit-content; max-width: 100%; }
  .btn-row .btn { width: 100%; justify-content: flex-start; }
}
/* touch screens: a comfortable tap area without moving anything */
@media (max-width: 1099px) {
  .foot ul a { display: inline-block; padding-block: 10px; margin-block: -10px; }
  .brand { padding-block: 8px; margin-block: -8px; }
}

/* ---------- page hero for inner pages ---------- */
.page-hero h1 { font-size: var(--fs-h1); margin-top: 26px; max-width: 12em; }
.page-hero .lead { margin-top: 28px; }

/* ---------- reveal ---------- */
.js .reveal-pending { opacity: 0; transform: translateY(36px); }
.no-gsap [data-reveal] { opacity: 1; transform: none; }
.js [data-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .22em .08em 0; margin: -.1em -.22em -.08em 0; } /* the right padding keeps an italic slant (the ? of an em) inside the mask */
.js [data-words] .w > span { display: inline-block; transform: translateY(105%); }
/* no single block of a heading may be wider than its line: words joined by a non-breaking space break as a
   last resort rather than widen the page (a wider page makes phones zoom out and show an empty strip) */
.js [data-words] .w, .js [data-words] .w > span { max-width: 100%; overflow-wrap: anywhere; }

/* letterform fill — outline type that fills with ink as you scroll */
.fill-type {
  color: transparent; -webkit-text-stroke: 1px rgba(27, 23, 19, .35);
  background: linear-gradient(90deg, var(--ink) 0 50%, transparent 50% 100%) 100% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  /* tight tracking lets the last glyph overhang the box; extra room keeps it inside the fill (margin cancels the shift) */
  padding-right: .1em; margin-right: -.1em;
}
.fill-type--red { background-image: linear-gradient(90deg, var(--red) 0 50%, transparent 50% 100%); -webkit-text-stroke-color: rgba(204, 60, 39, .5); }
/* word-by-word statement fill */
[data-fill-words] .fw { color: rgba(27, 23, 19, .5); transition: color .25s linear; }
[data-fill-words] .fw.on { color: var(--ink); }
[data-fill-words] .fw.on em, [data-fill-words] em.fw.on { color: var(--red); }
.on-dark [data-fill-words] .fw { color: rgba(246, 241, 231, .5); }
.on-dark [data-fill-words] .fw.on { color: var(--ivory); }
.on-dark [data-fill-words] .fw.on em, .on-dark [data-fill-words] em.fw.on { color: var(--gold-l); }

/* ---------- list rows (the amenity rows use them for their reveal) ---------- */
.hl__row { border-bottom: 1px solid var(--line); }
.on-dark .hl__row { border-color: rgba(246, 241, 231, .14); }
/* ---------- right-to-left slideshow (whole images, captions below) ---------- */
.rtl { position: relative; }
.rtl__viewport { overflow: hidden; touch-action: pan-y; }
.rtl__track { display: flex; gap: clamp(12px, 1.6vw, 24px); will-change: transform; }
.rtl__slide { flex: none; }
.rtl__slide img { height: var(--rtl-h, clamp(260px, 52vh, 560px)); width: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.rtl__slide figcaption { display: flex; gap: 14px; align-items: baseline; padding-top: 14px; font-size: .95rem; color: var(--ink-2); }
.rtl__slide figcaption span { font-size: .75rem; letter-spacing: .14em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rtl__bar { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.rtl__bar i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }
.rtl__count { font-size: .8rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.on-dark .rtl__slide figcaption { color: rgba(246, 241, 231, .75); }
.on-dark .rtl__bar { background: rgba(246, 241, 231, .2); }
.on-dark .rtl__count { color: rgba(246, 241, 231, .7); }
@media (max-width: 640px) { .rtl__slide img { height: var(--rtl-h-sm, 300px); } }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-form-label); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); line-height: var(--lh-ui); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(27, 23, 19, .3); background: transparent;
  font-size: var(--fs-input); border-radius: 0; transition: border-color .3s; -webkit-appearance: none; appearance: none; line-height: var(--lh-ui); }
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1713' stroke-width='1.4'/%3E%3C/svg%3E") right 4px center / 12px no-repeat; padding-right: 24px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field .err { font-size: var(--fs-caption); color: var(--red-d); min-height: 0; line-height: var(--lh-ui); }
/* a message for the whole form (a past date, the server, the network): its own full-width line above the button */
.form__err { flex: 1 0 100%; font-size: var(--fs-caption); font-weight: 600; color: var(--red-d); line-height: var(--lh-ui); }
.form__err:empty { display: none; }
.form__hp { position: absolute; left: -9999px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form__note { font-size: var(--fs-caption); color: var(--ink-3); max-width: 34em; line-height: var(--lh-ui); }
.form__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* touch screens: the privacy link in the small print gets a 44px tap area without moving the text */
@media (pointer: coarse) {
  .form__note a { position: relative; }
  .form__note a::after { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; margin-top: -22px; }
}
/* ---------- book a site visit — the pop-up form ---------- */
.vm { width: min(980px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.vm::backdrop { background: rgba(20, 16, 13, .62); backdrop-filter: blur(4px); }
.vm[open] { animation: vm-in .55s var(--ease); }
.vm[open]::backdrop { animation: vm-fade .4s ease; }
@keyframes vm-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes vm-fade { from { opacity: 0; } }
.vm__panel { position: relative; display: grid; grid-template-columns: 5fr 6fr; max-height: calc(100svh - 32px); overflow: auto; overscroll-behavior: contain; background: var(--paper); border-top: 3px solid var(--red); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .55); }
.vm__media { position: relative; margin: 0; min-height: 100%; background: var(--night); color: var(--ivory); overflow: hidden; }
.vm__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 49% 50%; }
.vm__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 13, .05) 20%, rgba(20, 16, 13, .88) 78%); }
.vm__media figcaption { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: clamp(24px, 3vw, 40px); }
.vm__media .kicker { color: rgba(246, 241, 231, .78); }
.vm__media b { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 560; line-height: 1; letter-spacing: -.04em; }
.vm__media b em { color: var(--gold-l); }
.vm__media ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-body); color: rgba(246, 241, 231, .82); line-height: var(--lh-body); }
.vm__media li { display: flex; gap: 10px; align-items: baseline; }
.vm__media li::before { content: ""; flex: none; width: 5px; height: 9px; background: var(--red); clip-path: polygon(0 0, 100% 0, 50% 100%); transform: translateY(-1px); }
.vm__form { padding: clamp(28px, 3.6vw, 48px); align-content: start; }
.vm__head { display: grid; gap: 10px; margin-bottom: 4px; }
.vm__head h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 560; letter-spacing: -.035em; line-height: 1.05; }
.vm__head h2 em { color: var(--heading-accent); }
.vm__head p:last-child { font-size: var(--fs-body); color: var(--ink-3); line-height: var(--lh-body); }
.vm .form__foot { flex-direction: column; align-items: flex-start; gap: 14px; }
.vm .form__done { padding: 24px; }
.vm__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.vm__close:hover { background: var(--ink); color: var(--ivory); transform: rotate(90deg); }
.vm__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vm__close svg { width: 14px; height: 14px; }
html.vm-open { overflow: hidden; }
@media (max-width: 760px) {
  .vm__panel { grid-template-columns: 1fr; }
  .vm__media { min-height: 0; height: 120px; }
  .vm__media figcaption { padding: 18px 20px; gap: 6px; }
  .vm__media b { font-size: 1.7rem; }
  .vm__media ul, .vm__media .kicker { display: none; }
  .vm .vm__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 14px; padding: 22px 20px 26px; }
  .vm .field { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .vm[open], .vm[open]::backdrop { animation: none; } }
.form__done { display: none; grid-column: 1 / -1; padding: 28px; background: var(--paper); border-left: 3px solid var(--red); }
.form__done h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.form.is-sent > :not(.form__done) { display: none; }
.form.is-sent .form__done { display: block; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- section scaffolding ---------- */
@media (max-width: 960px) { :root { --space-section: 80px; --space-group: 56px; } }
@media (max-width: 700px) { :root { --space-section: 64px; --space-group: 48px; } }
.sec { position: relative; padding-block: var(--space-section); }
/* inner-page heroes start below the fixed header */
.sec--hero { padding-top: calc(var(--header-h) + var(--space-section)); }
/* neighbours on the same ground share one space instead of stacking two */
.sec:not(.on-dark) + .sec:not(.on-dark), .sec.on-dark + .sec.on-dark { padding-top: 0; }
.on-dark { --heading-accent: var(--gold-l); background: var(--night); color: var(--ivory); }
.site-footer { --heading-accent: var(--gold-l); }
.on-dark .kicker, .on-dark .lead { color: rgba(246, 241, 231, .72); }
/* section heading: the kicker takes its own row, then the heading and its description start on the same line;
   the content follows one group-space below */
.sec-head { display: grid; grid-template-columns: 1fr minmax(0, 30em); gap: 20px 48px; align-items: start; margin-bottom: var(--space-group); }
.sec-head > div:first-child { display: contents; }
.sec-head .kicker { grid-column: 1 / -1; }
.sec-head h2 { grid-column: 1; font-size: var(--fs-h2); margin-top: 0; }
/* a short description sits at the foot of the heading, its last line on the heading's baseline; a description
   taller than the heading starts level with the heading's capitals */
.sec-head > :last-child:not(:first-child) { grid-column: 2; align-self: end; margin-top: -.3em; }
@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head h2, .sec-head > :last-child:not(:first-child) { grid-column: auto; margin-top: 0; }
}

/* Flowing contour join: the next section's own background is cut to the contour,
   and the five gold strands ride that cut (the lowest strand is the edge itself).
   The block wears the previous section's colour, the fill wears the next one's. */
.flow-join { position: relative; height: clamp(64px, 6vw, 96px); overflow: hidden; z-index: 2; margin: -1px 0; pointer-events: none; }
.flow-join--to-night { background: var(--ivory); color: var(--night); }
.flow-join--to-ivory { background: var(--night); color: var(--ivory); }
.flow-join svg { display: block; width: 100%; height: 100%; overflow: visible; }
.flow-join__fill { fill: currentColor; }
.flow-join__lines { fill: none; stroke: var(--gold); stroke-width: 1.35; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* drawn left to right with scroll: js writes --p (0..1) per strand */
.flow-join__lines path { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--p, 1)); opacity: .9; }
@media (max-width: 700px) {
  .flow-join { height: clamp(64px, 6vw, 96px); }
  .flow-join svg { width: 150%; max-width: none; margin-left: -25%; }
  .flow-join__lines { stroke-width: 1.1; }
}
/* thilak window: the srichurnam drawn over an image seen through the namam */
.nw-ink { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; overflow: visible; }
.nw-ink .nw-line { fill: none; stroke: var(--ivory); stroke-width: 2; }
.nw-ink .nw-sri { fill: var(--nw-sri, var(--red)); }

/* disclaimers */
.fine { font-size: var(--fs-caption); color: var(--ink-3); line-height: var(--lh-ui); }
.on-dark .fine { color: rgba(246, 241, 231, .55); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-words] .w > span { transform: none; }
  .fill-type { color: var(--ink); -webkit-text-stroke: 0; background: none; }
  .fill-type--red { color: var(--red); }
  [data-fill-words] .fw { color: inherit; }
  .flow-join__lines path { stroke-dashoffset: 0; }
  * { transition-duration: .01ms; }
}

/* Shared CTA and footer form one compact closing area. */
.site-footer--connected { padding-top: 0; }
.foot__top > * { min-width: 0; }
.foot__base { line-height: var(--lh-ui); }

/* Keep menu links reachable on short screens and form tracks shrinkable. */
.menu { overflow-y: auto; overscroll-behavior: contain; gap: 24px; }
.menu > * { flex-shrink: 0; }
.field { min-width: 0; }
.field input, .field select, .field textarea { min-width: 0; }
