/* ==========================================================================
   Sai Jyothi Constructions — Homepage Styles
   Deep navy-teal with warm gold. The navy is sampled from the hero video's
   own backdrop (#0C242C) so the clip blends into the page with no visible
   edge; the gold matches the SJC logo. Custom CSS Grid/Flexbox throughout —
   no Bootstrap. Manrope is the only type family, vendored locally (see
   assets/fonts). The design tokens below are the single source of truth for
   colour, type and spacing.
   ========================================================================== */

/* ---------- Manrope, vendored locally (assets/fonts) ---------- */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/manrope-latin-800-normal.woff2') format('woff2'); }

:root {
  /* ---- Palette: navy-teal + gold ---- */
  --ink: #0C242C;            /* = hero video backdrop; headings on light sections */
  --ink-raised: #14313D;
  --ink-deep: #07181F;
  --limestone: #F5F2EA;
  --limestone-bright: #FBFAF6;
  --white: #FFFFFF;
  --gold: #C9A24A;
  --gold-light: #E9CF8E;
  --gold-deep: #9A7A2C;
  --gold-text: #7C601C;      /* gold for small text on light backgrounds (>=5.3:1) */
  --gold-end: #B48B2E;       /* darkest button-gradient stop; ink text on it stays >=5:1 */
  --charcoal: #22323A;
  --slate: #000000;          /* paragraph/body text on white and ivory sections: pure black, 21:1 on white, 18:1 on ivory */
  --muted: #4A5F6A;          /* small labels on white/ivory: >=6:1 */
  --mist: #C3D0D4;           /* body text on navy */
  --border: rgba(34,50,58,0.13);
  --border-on-dark: rgba(195,208,212,0.16);
  --border-gold: rgba(201,162,74,0.3);

  --gradient-gold: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 52%, var(--gold-end) 100%);
  --gradient-gold-hover: linear-gradient(135deg, #F2DDA5 0%, #D6B15A 52%, var(--gold-end) 100%);
  --gradient-ink: linear-gradient(160deg, var(--ink-raised) 0%, var(--ink) 55%, var(--ink-deep) 100%);
  --gradient-ink-header: linear-gradient(115deg, rgba(20,49,61,0.94), rgba(7,24,31,0.96));
  --gradient-limestone: linear-gradient(180deg, var(--limestone-bright) 0%, var(--limestone) 100%);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* ---- Type scale ----
     One paragraph size (--fs-p) for every <p> on the site. Hierarchy comes
     from headings, weight, colour and measure — never from ad-hoc <p> sizes.
     Labels (eyebrows, tags, captions) are not paragraphs and use --fs-label. */
  --fs-p: 1rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-h1: clamp(2.125rem, 1.65rem + 1.9vw, 3.5rem);
  --fs-h2: clamp(1.875rem, 1.45rem + 1.6vw, 2.75rem);
  --fs-h2-sm: clamp(1.625rem, 1.35rem + 1vw, 2.125rem);
  --fs-h3: 1.1875rem;
  --fs-h3-lg: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --lh-p: 1.7;

  --container-max: 1320px;
  --gutter: 20px;
  --section-space: 56px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 88px;
}

@media (min-width: 768px) {
  :root { --fs-p: 1.0625rem; }
}
@media (min-width: 992px) {
  :root { --gutter: 28px; --section-space: 76px; }
}
@media (min-width: 1440px) {
  :root { --gutter: 32px; --section-space: 84px; }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@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; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-p);
  line-height: var(--lh-p);
  color: var(--slate);
  background: var(--limestone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.3; }
h4 { font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; }

.on-dark, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark p { color: var(--mist); }

p { margin: 0 0 1em; font-size: var(--fs-p); line-height: var(--lh-p); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 20px;
  z-index: 2100;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ==========================================================================
   BUTTONS — gold gradient primary, restrained outlines
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 260ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
  min-height: 46px;
  white-space: nowrap;
}
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; min-height: 40px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--gradient-gold);
  color: var(--ink);
  border-color: var(--gold-deep);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--gradient-gold-hover);
  box-shadow: 0 14px 30px rgba(201,162,74,0.28);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-light {
  background: rgba(255,255,255,0.03);
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-light:hover, .btn-outline-light:focus-visible { background: rgba(255,255,255,0.1); border-color: var(--gold-light); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--ink);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 3px;
  transition: gap 200ms var(--ease), color 200ms var(--ease);
}
.link-arrow:hover { gap: 11px; color: var(--gold-text); }
.link-arrow--light { color: var(--white); border-color: var(--gold); }
.link-arrow--light:hover { color: var(--gold-light); }

/* ---------- Eyebrow (a label, not a paragraph) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.on-dark .eyebrow, .hero-eyebrow { color: var(--gold-light); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 320ms var(--ease), box-shadow 320ms var(--ease), height 320ms var(--ease);
}
.site-header.is-scrolled {
  background: var(--gradient-ink-header);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 4px 24px rgba(3,12,16,0.32), inset 0 -1px 0 var(--border-gold);
  height: 72px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 62px; width: auto; transition: height 320ms var(--ease); }
.is-scrolled .brand-logo { height: 50px; }

.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--white);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right 280ms var(--ease-out-expo);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.is-active::after { right: 0; }
.main-nav a.is-active { color: var(--gold-light); }
.mobile-nav ul a.is-active { color: var(--gold-light); }

.header-actions { display: flex; align-items: center; gap: 18px; }
/* Phone number in the header from 1200px up, where there is room for it */
.header-phone { display: none; }
@media (min-width: 1200px) {
  .header-actions { gap: 22px; }
  .header-phone { display: inline-flex; align-items: center; gap: 9px; font-size: var(--fs-small); font-weight: 700; color: var(--white); transition: color 200ms var(--ease); }
  .header-phone svg { width: 18px; height: 18px; color: var(--gold); }
  .header-phone:hover { color: var(--gold-light); }
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 220ms var(--ease), opacity 220ms var(--ease); }

@media (max-width: 991.98px) {
  .main-nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
}

/* ---------- Mobile off-canvas nav ---------- */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(3,12,16,0.6);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms var(--ease), visibility 280ms var(--ease);
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 86vw);
  background: var(--gradient-ink);
  border-left: 1px solid var(--border-gold);
  z-index: 1200;
  padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform 320ms var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.mobile-nav-head .brand-logo { height: 46px; }
.menu-close { background: transparent; border: none; color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; width: 44px; height: 44px; }
.mobile-nav ul { display: flex; flex-direction: column; margin-bottom: 22px; }
.mobile-nav ul li { border-bottom: 1px solid var(--border-on-dark); }
.mobile-nav ul a { display: block; padding: 15px 4px; font-size: 1.125rem; font-weight: 600; color: var(--white); }
.mobile-nav .btn { margin-bottom: 22px; }
.mobile-nav-contact { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav-contact a { color: rgba(255,255,255,0.75); font-size: var(--fs-small); }

/* ==========================================================================
   HERO — copy beside a moderately-sized, contained video card (not full-bleed:
   this daylight clip's bright sky doesn't suit the soft-edged/full-bleed
   treatments used for the previous, darker clips — a plain bordered card
   reads cleanly regardless of what's in the footage).
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: calc(var(--header-h) + 32px) 0 48px;
}

.hero-media { position: relative; pointer-events: none; }
/* 16:9 — the clip's own ratio, rather than the squarer 4:3 box used before,
   so the frame reads as a wide shot instead of a cropped square. */
.hero-video-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 30px 60px -30px rgba(3,12,16,0.7);
}
.hero-video, .hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The video is visible while playing and while holding on the finished
   building; it fades out between cycles (hero-video.js adds is-fading).
   The still only shows when there is no video (reduced motion, Save-Data,
   refused/failed/slow playback, no JS). */
.hero-video { opacity: 0; transition: opacity 700ms var(--ease); }
.hero-media.is-playing .hero-video,
.hero-media.is-ended .hero-video { opacity: 1; }
.hero-media.is-fading .hero-video { opacity: 0; }
.hero-still { opacity: 1; transition: opacity 700ms var(--ease); }
.hero-media.is-playing .hero-still { opacity: 0; }
.hero-media.is-still .hero-still { opacity: 1; }

.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 580px; padding-bottom: 8px; }

.hero-title {
  color: var(--white);
  font-size: var(--fs-h1);
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 0.35em 0 0.45em;
}
.hero-title .line { display: block; }
.hero-title .is-accent { color: var(--gold); }

.hero-desc { color: var(--mist); max-width: 44ch; margin-bottom: 1.9em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.2em; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 128px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-stats strong { font-size: 1.375rem; font-weight: 700; color: var(--gold-light); line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: var(--fs-label); color: var(--mist); letter-spacing: 0.02em; }

/* Mobile / tablet: copy first, the (smaller) video card beneath it — plain
   document flow now that .hero-media lives inside .hero-inner. */
@media (max-width: 991.98px) {
  .hero { padding-bottom: 64px; }
  .hero-media { margin-top: 28px; }
}

/* Phones: both buttons share one row, and the three stat tiles share one row. */
@media (max-width: 575.98px) {
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 13px 10px; font-size: var(--fs-small); line-height: 1.25; white-space: normal; text-align: center; }
  .hero-stats { flex-wrap: nowrap; gap: 8px; }
  .hero-stats li { flex: 1 1 0; min-width: 0; padding: 12px 6px; align-items: center; text-align: center; }
  .hero-stats strong { font-size: 1.125rem; }
  .hero-stats span { font-size: 0.75rem; line-height: 1.3; }
}

/* Desktop: copy and video card side by side in a plain two-column grid —
   the video is sized to its column, not the whole section. */
@media (min-width: 992px) {
  .hero { padding: calc(var(--header-h) + 40px) 0 72px; }
  .hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .hero-video-box { max-width: 100%; }
}

/* Entrance sequence for the hero copy (CSS only). */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.has-js .hero-copy > * { animation: rise 900ms var(--ease-out-expo) both; }
.has-js .hero-copy > :nth-child(1) { animation-delay: 60ms; }
.has-js .hero-copy > :nth-child(2) { animation-delay: 160ms; }
.has-js .hero-copy > :nth-child(3) { animation-delay: 280ms; }
.has-js .hero-copy > :nth-child(4) { animation-delay: 380ms; }
.has-js .hero-copy > :nth-child(5) { animation-delay: 500ms; }

/* ==========================================================================
   SERVICES — a card that straddles the hero's lower edge
   ========================================================================== */
.services {
  position: relative;
  z-index: 3;
  margin-top: -36px;
  background: linear-gradient(180deg, transparent 36px, var(--white) 36px);
}
.services-card {
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(160deg, rgba(20,49,61,0.97), rgba(9,29,37,0.98));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 60px -34px rgba(3,12,16,0.7);
  overflow: hidden;
}
@media (min-width: 640px) { .services-card { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-card { grid-template-columns: repeat(4, 1fr); } }

/* Phones: the joined card becomes a swipeable carousel of separate cards
   (controls wired up by carousel.js) — same treatment as the Gallery and the
   Ongoing Project photo strip. */
@media (max-width: 639.98px) {
  .services-card {
    display: flex;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .services-card::-webkit-scrollbar { display: none; }
  .services-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius-md); }
  .service {
    flex: 0 0 84%;
    scroll-snap-align: start;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(20,49,61,0.97), rgba(9,29,37,0.98));
    box-shadow: 0 24px 40px -24px rgba(3,12,16,0.6);
  }
  .is-carousel .service:not(.is-active) { opacity: 0.6; transform: scale(0.96); }
}

.service {
  padding: 32px 26px 34px;
  text-align: center;
  border-bottom: 1px solid var(--border-on-dark);
  transition: background 300ms var(--ease), transform 600ms var(--ease-out-expo), opacity 600ms var(--ease);
}
.service:hover { background: rgba(201,162,74,0.06); }
@media (min-width: 640px) {
  .service:nth-child(odd) { border-right: 1px solid var(--border-on-dark); }
  .service:nth-last-child(-n+2) { border-bottom: none; }
}
@media (min-width: 1100px) {
  .service { border-bottom: none; border-right: 1px solid var(--border-on-dark); }
  .service:last-child { border-right: none; }
}
.service-icon { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--gold); transition: transform 400ms var(--ease-out-expo); }
.service:hover .service-icon { transform: translateY(-3px) scale(1.06); }
.service h3 { color: var(--white); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; margin-bottom: 0.6em; }
.service p { color: var(--mist); margin: 0 auto; max-width: 30ch; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: var(--section-space) 0; }
.section--limestone { background: var(--gradient-limestone); }
.section--white { background: var(--white); }
.section--ink { background: var(--gradient-ink); position: relative; }

.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head.is-centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-lede { color: var(--slate); }
.on-dark .section-lede { color: var(--mist); }


/* ==========================================================================
   ABOUT — one photo beside the copy, four value cards in a row below
   ========================================================================== */
.about { position: relative; overflow: hidden; }
/* Faint blueprint grid dissolving in from the top-right corner */
.about-bg {
  position: absolute;
  top: 0; right: 0;
  width: min(70%, 820px);
  height: 78%;
  background-image:
    linear-gradient(rgba(201,162,74,0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,74,0.13) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 100% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 85% at 100% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}
.about > .container { position: relative; }

/* Photo left, copy right, in one row; the four values sit in their own row
   underneath, spanning the full section width. */
.about-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .about-row { grid-template-columns: 0.68fr 1.32fr; gap: 56px; }
}

/* Portrait, not the previous landscape crop — a vertical image reads better
   as a tall standalone photo beside a wide text column. */
.about-photo-single {
  position: relative;
  margin: 0;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 54px -34px rgba(12,36,44,0.6);
}
@media (min-width: 900px) { .about-photo-single { max-width: none; } }
.about-photo-single img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out-expo); }
.about-photo-single:hover img { transform: scale(1.04); }

.about-stat {
  position: absolute;
  right: 14px; bottom: 14px;
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  background: var(--gradient-ink);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 28px -16px rgba(3,12,16,0.7);
}
.about-stat strong { color: var(--gold-light); font-size: 1.25rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.about-stat span { color: var(--mist); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 575.98px) {
  .about-stat { right: 10px; bottom: 10px; padding: 8px 13px; }
  .about-stat strong { font-size: 1.0625rem; }
}

/* Headline accent (also used on the Temples heading) */
.text-accent {
  color: var(--gold-deep);
  background: linear-gradient(var(--gold), var(--gold)) 0 94% / 100% 3px no-repeat;
  padding-bottom: 2px;
}
.on-dark .text-accent { color: var(--gold-light); }

.about-copy > p { max-width: 58ch; }

/* Four value cards in one row (collapsing to 2, then 1, on narrower
   screens) rather than the previous single bordered panel. */
.values-carousel { margin: 48px 0 0; }
.values-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .values-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .values-row { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* Phones: a swipeable carousel of the same cards (controls wired up by
   carousel.js) — same treatment as the Gallery and other carousels. */
@media (max-width: 639.98px) {
  .values-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .values-row::-webkit-scrollbar { display: none; }
  .values-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius-md); }
  .values-row li { flex: 0 0 84%; scroll-snap-align: start; }
  .is-carousel .values-row li:not(.is-active) { opacity: 0.6; transform: scale(0.96); }
}

.values-row li {
  position: relative;
  padding: 26px 24px 28px;
  background: var(--limestone-bright);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 350ms var(--ease-out-expo), box-shadow 350ms var(--ease-out-expo), background 300ms var(--ease), opacity 600ms var(--ease);
}
.values-row li:hover { transform: translateY(-4px); background: var(--white); box-shadow: 0 26px 42px -26px rgba(12,36,44,0.3); }
.values-row li::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease-out-expo);
}
.values-row li:hover::before { transform: scaleX(1); }
.value-index {
  position: absolute;
  top: 22px; right: 22px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-text);
  opacity: 0.6;
}
.value-badge {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--gold-text);
  background: rgba(201,162,74,0.14);
  border: 1px solid rgba(201,162,74,0.35);
  transition: background 260ms var(--ease), color 260ms var(--ease);
}
.value-badge svg { width: 18px; height: 18px; }
.values-row li:hover .value-badge { background: var(--gold); color: var(--ink); }
.values-row h3 { margin-bottom: 8px; }
.values-row p { margin: 0; }

.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
/* Phones: the button and the "Meet our founder" link share one row. */
@media (max-width: 575.98px) {
  .about-actions { flex-wrap: nowrap; gap: 14px; }
  .about-actions .btn { flex: 1 1 0; min-width: 0; padding: 13px 10px; line-height: 1.25; white-space: normal; text-align: center; }
  .about-actions .link-arrow { flex: 0 0 auto; white-space: nowrap; }
}

/* ==========================================================================
   PROJECTS — card carousel on a native scroll-snap track
   ========================================================================== */
.projects-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 32px; }
.projects-head .section-head { margin: 0; }

.carousel-controls { display: flex; align-items: center; gap: 12px; }
.carousel-controls[hidden] { display: none; }
.carousel-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border-gold);
  background: rgba(255,255,255,0.04);
  color: var(--gold-light);
  cursor: pointer;
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease), opacity 220ms var(--ease);
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover:not(:disabled), .carousel-btn:focus-visible { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-2px); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn--toggle { width: 40px; height: 40px; margin-left: 6px; }
.carousel-btn--toggle svg { width: 16px; height: 16px; }
.carousel-btn--toggle .icon-play { display: none; }
.carousel-btn--toggle.is-paused .icon-pause { display: none; }
.carousel-btn--toggle.is-paused .icon-play { display: block; }
.carousel-btn[hidden] { display: none; }
.carousel-count { min-width: 64px; text-align: center; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.06em; color: var(--mist); font-variant-numeric: tabular-nums; }

.carousel-track {
  --track-pad: var(--gutter);
  --slide-gap: 24px;
  /* Percentages here resolve against the track's content width, so a slide is
     "one card wide, with a sliver of the next one showing". */
  --slide-w: max(280px, calc(100% - 44px));
  display: flex;
  gap: var(--slide-gap);
  margin: 0;
  padding: 8px var(--track-pad) 36px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--track-pad);
  scrollbar-width: none;
}
@media (min-width: 640px) { .carousel-track { --slide-w: min(560px, calc(100% - 60px)); } }
@media (min-width: 992px) { .carousel-track { --slide-w: min(1100px, calc(100% - 90px)); } }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: var(--radius-lg); }
/* Trailing space so the last card can also scroll all the way to the left edge. */
.carousel-track::after { content: ""; flex: 0 0 max(0px, calc(100% - var(--slide-w) - var(--slide-gap))); }

.carousel-slide {
  flex: 0 0 var(--slide-w);
  scroll-snap-align: start;
  transform-origin: left center; /* keeps the left edge fixed so scroll-snap alignment doesn't shift */
  transition: transform 700ms var(--ease-out-expo);
}
.is-carousel .carousel-slide:not(.is-active) { transform: scale(0.97); }
.carousel-slide .project-card { transition: transform 450ms var(--ease-out-expo), box-shadow 450ms var(--ease-out-expo), border-color 450ms var(--ease), opacity 600ms var(--ease); }
.is-carousel .carousel-slide:not(.is-active) .project-card { opacity: 0.55; }

.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, var(--ink-raised), var(--ink));
  border: 1px solid var(--border-on-dark);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 44px -26px rgba(0,0,0,0.6);
  transition: transform 450ms var(--ease-out-expo), box-shadow 450ms var(--ease-out-expo), border-color 450ms var(--ease);
}
.carousel-slide.is-active .project-card { border-color: var(--border-gold); box-shadow: 0 34px 60px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(201,162,74,0.1); }
.project-card:hover { transform: translateY(-6px); border-color: var(--border-gold); }

.project-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.15;
  overflow: hidden;
  background: var(--ink-deep);
}
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out-expo); }
.project-card:hover .project-card-media img { transform: scale(1.06); }
.project-card-media::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(20,49,61,0.85), transparent);
  pointer-events: none;
}
.project-number {
  position: absolute;
  z-index: 1;
  top: 16px; right: 16px;
  padding: 6px 13px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  background: rgba(7,24,31,0.72);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Status badge: Venture Flagship Project / Ongoing / Delivered */
.project-status {
  position: absolute;
  z-index: 1;
  bottom: 16px; left: 16px;
  max-width: calc(100% - 32px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.project-status svg { width: 14px; height: 14px; flex-shrink: 0; }
.project-status.is-flagship {
  color: var(--ink);
  background: var(--gradient-gold);
  border: 1px solid var(--gold-deep);
  box-shadow: 0 12px 26px -12px rgba(201,162,74,0.8);
}
.project-status.is-ongoing { color: var(--gold-light); background: rgba(7,24,31,0.78); border: 1px solid var(--border-gold); }
.project-status.is-ongoing::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: status-pulse 2s ease-out infinite;
}
.project-status.is-delivered { color: var(--white); background: rgba(7,24,31,0.78); border: 1px solid rgba(255,255,255,0.35); }
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,162,74,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(201,162,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,74,0); }
}
/* On phones the status badge gets the full width of the photo, so the 01/02/03 chip steps aside. */
@media (max-width: 575.98px) {
  .project-status { font-size: 0.75rem; letter-spacing: 0.05em; padding: 6px 12px; }
  .project-number { 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; }

.project-card-media--blueprint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(rgba(201,162,74,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,74,0.09) 1px, transparent 1px);
  background-size: 26px 26px;
}
.project-blueprint { width: 100px; height: 100px; color: var(--gold); opacity: 0.8; transition: transform 700ms var(--ease-out-expo); }
.project-card:hover .project-blueprint { transform: translateY(-4px) scale(1.05); }
.placeholder-mark {
  position: relative;
  z-index: 1;
  color: var(--gold-light);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border-gold);
  background: rgba(7,24,31,0.7);
  padding: 7px 14px;
  border-radius: 999px;
}

.project-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 26px 28px 30px; }
.project-loc { color: var(--gold-light); font-weight: 700; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.project-card-body h3 { font-size: var(--fs-h3-lg); margin-bottom: 10px; }
.project-desc { color: var(--mist); flex: 1; }

/* Desktop: a wide horizontal card — photo on the left, details on the right. */
@media (min-width: 992px) {
  .project-card { flex-direction: row; }
  .project-card-media { flex: 0 0 56%; aspect-ratio: auto; min-height: 430px; }
  .project-card-media::after { height: 100%; background: linear-gradient(90deg, transparent 55%, #14313d 100%); }
  .project-card-body { justify-content: center; padding: 44px 48px; }
  .project-card-body h3 { font-size: var(--fs-h2-sm); margin-bottom: 14px; }
  .project-desc { flex: 0 0 auto; margin-bottom: 1.6em; max-width: 42ch; }
}

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: -8px; }
.carousel-dots[hidden] { display: none; }
.carousel-dot { position: relative; width: 40px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.carousel-dot span { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: rgba(195,208,212,0.25); overflow: hidden; }
.carousel-dot span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.carousel-dot[aria-current="true"] span::after { transform: scaleX(1); }
.carousel-dot.is-running[aria-current="true"] span::after { animation: dot-fill var(--autoplay-ms, 5500ms) linear both; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ==========================================================================
   ONGOING PROJECT — Sai Keerthi Grandeur. A model-reveal video (looped the
   same way as the hero — see project-video.js) beside a fact list, then a
   two-up villa-type strip and a row of real photos from the project
   brochure. Replaces the previous "Selected Projects" carousel.
   ========================================================================== */
.ongoing-project { overflow: hidden; isolation: isolate; }
/* A faint blueprint grid plus two soft gold glows give the section real
   depth instead of a flat navy fill — echoes the grid used elsewhere on
   the page (Contact, the closing CTA) so it reads as one family. */
.ongoing-project::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(201,162,74,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,74,0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 85% 80% at 50% 0%, #000 0%, transparent 70%);
}
.ongoing-project::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 46% 38% at 88% 8%, rgba(201,162,74,0.13), transparent 70%),
    radial-gradient(ellipse 50% 42% at 8% 96%, rgba(201,162,74,0.08), transparent 70%);
}
/* Section head carries its own CTA row (Download Brochure / Enquire), which
   sits to the right of the lede paragraph on wider screens rather than down
   by the fact list — a more prominent, above-the-fold placement. */
.ongoing-project .section-head {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ongoing-project .section-head-text { max-width: 720px; }
@media (min-width: 900px) {
  .ongoing-project .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .ongoing-project .project-cta-row { flex: 0 0 auto; margin-bottom: 6px; }
}

.project-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
@media (min-width: 992px) {
  .project-showcase { grid-template-columns: 1.15fr 1fr; gap: 64px; }
}

.project-media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 30px 54px -30px rgba(3,12,16,0.7);
  background: var(--ink-deep);
}
.project-media-still, .project-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-media-video { opacity: 0; transition: opacity 600ms var(--ease); }
.project-media-frame.is-playing .project-media-video,
.project-media-frame.is-ended .project-media-video { opacity: 1; }
.project-media-frame.is-fading .project-media-video { opacity: 0; }
.project-media-caption { margin: 14px 2px 0; color: var(--mist); font-size: var(--fs-label); letter-spacing: 0.02em; }

.project-fact-list { display: flex; flex-direction: column; margin: 0; }
.project-fact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-on-dark);
}
.project-fact-list li:last-child { border-bottom: 1px solid var(--border-on-dark); }
.project-fact-label { color: var(--mist); font-size: var(--fs-small); }
.project-fact-value { color: var(--white); font-weight: 700; text-align: right; }

/* Lives in the section head now (see "ONGOING PROJECT" background rules
   above), not beside the fact list. */
.project-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.project-cta-row .btn svg { width: 18px; height: 18px; }
/* Phones: the two actions share one row, like every other action-row pattern
   on this page (hero, About). */
@media (max-width: 575.98px) {
  .project-cta-row { flex-wrap: nowrap; gap: 12px; }
  .project-cta-row .btn { flex: 1 1 0; min-width: 0; padding: 13px 10px; font-size: var(--fs-small); line-height: 1.25; white-space: normal; text-align: center; }
  .project-cta-row .link-arrow { flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; }
}

.project-types-carousel { margin-bottom: 40px; }
.project-types {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .project-types { grid-template-columns: 1fr 1fr; } }
/* Phones: a swipeable carousel of the same two cards (controls wired up by
   carousel.js) — same treatment as the Gallery and other carousels. */
@media (max-width: 639.98px) {
  .project-types {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .project-types::-webkit-scrollbar { display: none; }
  .project-types:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius-md); }
  .project-type { flex: 0 0 84%; scroll-snap-align: start; }
  .is-carousel .project-type:not(.is-active) { opacity: 0.6; transform: scale(0.96); }
}
/* Image-topped cards, rather than the earlier text-only ones, for a more
   professional, less placeholder-y feel. */
.project-type {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: linear-gradient(170deg, rgba(20,49,61,0.9), rgba(9,29,37,0.95));
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 350ms var(--ease), transform 350ms var(--ease-out-expo), box-shadow 350ms var(--ease-out-expo), opacity 600ms var(--ease);
}
.project-type:hover { border-color: var(--border-gold); transform: translateY(-4px); box-shadow: 0 28px 46px -28px rgba(0,0,0,0.55); }
.project-type-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.project-type-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out-expo); }
.project-type:hover .project-type-media img { transform: scale(1.06); }
.project-type-body { padding: 22px 26px 26px; }
.project-type-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: rgba(201,162,74,0.14);
  border: 1px solid rgba(201,162,74,0.35);
  border-radius: 999px;
}
.project-type strong { display: block; color: var(--white); font-size: 1.375rem; font-weight: 700; margin-bottom: 6px; }
.project-type-area { color: var(--mist); font-size: var(--fs-small); }

/* Three photos: a plain equal-width row on tablet/desktop, a swipeable
   carousel on phones — the same [data-carousel] pattern as the Gallery
   (carousel.js only switches carousel mode on while the track overflows). */
.project-photo-carousel { margin-bottom: 28px; }
.project-photo-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .project-photo-strip { grid-template-columns: repeat(3, 1fr); } }
.project-photo-strip figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-on-dark);
  transition: border-color 350ms var(--ease), transform 350ms var(--ease-out-expo), box-shadow 350ms var(--ease-out-expo);
}
.project-photo-strip figure:hover { border-color: var(--border-gold); transform: translateY(-4px); box-shadow: 0 24px 40px -22px rgba(0,0,0,0.6); }
.project-photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out-expo); }
.project-photo-strip figure:hover img { transform: scale(1.06); }

/* Phones: the grid becomes a swipeable carousel (controls wired up by carousel.js) — same treatment as the Gallery. */
@media (max-width: 639.98px) {
  .project-photo-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .project-photo-strip::-webkit-scrollbar { display: none; }
  .project-photo-strip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius-md); }
  .project-photo-strip figure {
    flex: 0 0 84%;
    aspect-ratio: auto;
    height: 260px;
    scroll-snap-align: start;
    transform-origin: left center;
    transition: transform 600ms var(--ease-out-expo), opacity 600ms var(--ease);
  }
  .is-carousel .project-photo-strip figure:not(.is-active) { opacity: 0.6; transform: scale(0.96); }
}
.carousel-controls { justify-content: center; margin-top: 22px; }
.project-photo-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 13px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  background: rgba(7,24,31,0.65);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.project-photo-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 14px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mist);
  background: linear-gradient(0deg, rgba(7,24,31,0.88), transparent);
}
.project-disclaimer { margin: 0; color: var(--mist); font-size: var(--fs-label); opacity: 0.75; max-width: 70ch; }

/* ==========================================================================
   AMENITIES — Sai Keerthi Grandeur's amenity list from the project brochure.
   ========================================================================== */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (min-width: 640px) { .amenities-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 992px) { .amenities-grid { grid-template-columns: repeat(4, 1fr); } }
.amenities-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 16px;
  text-align: center;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--ink);
  background: var(--limestone-bright);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 350ms var(--ease-out-expo), box-shadow 350ms var(--ease-out-expo), border-color 300ms var(--ease), background 300ms var(--ease);
}
.amenities-grid li:hover {
  transform: translateY(-5px);
  background: var(--white);
  border-color: var(--border-gold);
  box-shadow: 0 26px 42px -26px rgba(12,36,44,0.32);
}
.amenity-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--gold-text);
  background: rgba(201,162,74,0.14);
  border: 1px solid rgba(201,162,74,0.35);
  transition: background 260ms var(--ease), color 260ms var(--ease);
}
.amenity-icon svg { width: 24px; height: 24px; }
.amenities-grid li:hover .amenity-icon { background: var(--gold); color: var(--ink); }

/* ==========================================================================
   FOUNDER — profile card: monogram plate + biography. No portrait has been
   supplied, so a typographic plate stands in rather than a fake avatar.
   ========================================================================== */
.founder-card {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1040px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 44px 76px -50px rgba(12,36,44,0.5);
}
@media (min-width: 768px) { .founder-card { grid-template-columns: 280px 1fr; } }

.founder-mark {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 34px 24px;
  background: var(--gradient-ink);
}
.founder-mark::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(201,162,74,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,74,0.09) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 20%, transparent 78%);
}
.founder-monogram {
  font-size: clamp(3rem, 2.2rem + 3vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--gold-light);
}
.founder-mark-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}
.founder-mark-label::before, .founder-mark-label::after { content: ""; width: 22px; height: 1px; background: var(--border-gold); }

.founder-copy { padding: clamp(28px, 4vw, 52px); }
.founder-copy h2 { font-size: var(--fs-h2-sm); }
.founder-cred {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 12px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-text);
  background: rgba(201,162,74,0.12);
  border: 1px solid rgba(201,162,74,0.4);
  border-radius: 999px;
  vertical-align: middle;
}
@media (max-width: 575.98px) {
  .founder-cred { display: block; width: fit-content; margin: 10px 0 0; }
}
.founder-role { color: var(--gold-text); font-weight: 700; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.1em; }
.founder-purpose {
  margin: 26px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold);
  font-size: var(--fs-h3-lg);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.founder-purpose-label { display: block; margin-bottom: 6px; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }

/* ==========================================================================
   GALLERY — bento grid
   ========================================================================== */
.gallery-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: 18px;
}

/* Phones: the grid becomes a swipeable carousel (controls are wired up by carousel.js). */
@media (max-width: 767.98px) {
  .gallery-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-grid:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius-md); }
  .gallery-item, .gallery-item--wide, .gallery-item--big {
    flex: 0 0 84%;
    height: 300px;
    scroll-snap-align: start;
    transform-origin: left center;
    transition: transform 600ms var(--ease-out-expo), opacity 600ms var(--ease);
  }
  .is-carousel .gallery-item:not(.is-active) { opacity: 0.6; transform: scale(0.96); }
}

/* Gallery carousel controls sit on a light background. */
.carousel-controls--light { justify-content: center; margin-top: 22px; }
.carousel-controls--light .carousel-btn { color: var(--ink); background: var(--white); border-color: var(--border-gold); }
.carousel-controls--light .carousel-btn:hover:not(:disabled), .carousel-controls--light .carousel-btn:focus-visible { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.carousel-controls--light .carousel-count { color: var(--slate); }
.carousel-dots--light { margin-top: 12px; }
.carousel-dots--light .carousel-dot span { background: rgba(12,36,44,0.16); }
.gallery-item {
  border: none; padding: 0; cursor: pointer;
  background: var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: block;
  min-width: 0;
}
.gallery-item--wide { grid-column: span 2; }
@media (min-width: 768px) { .gallery-item--big { grid-column: span 2; grid-row: span 2; } }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out-expo); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--gold);
  transition: box-shadow 300ms var(--ease);
  pointer-events: none;
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { box-shadow: inset 0 0 0 2px var(--gold); }
/* "Expand" affordance so it's clear the photos open larger (hover devices and keyboard focus) */
.gallery-item::before {
  content: "";
  position: absolute; z-index: 1;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(7,24,31,0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E9CF8E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: 1px solid var(--border-gold);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
  pointer-events: none;
}
.gallery-item:focus-visible::before { opacity: 1; transform: none; }
@media (hover: hover) { .gallery-item:hover::before { opacity: 1; transform: none; } }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(0deg, rgba(7,24,31,0.85), transparent);
  text-align: left;
}

.lightbox {
  position: fixed; inset: 0;
  background: rgba(5,16,21,0.95);
  z-index: 1500;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 260ms var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; object-fit: contain; border-radius: var(--radius-md); }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox figcaption { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; color: var(--limestone); font-size: var(--fs-small); text-align: center; }
.lightbox-count { padding: 3px 12px; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.08em; color: var(--gold-light); border: 1px solid var(--border-gold); border-radius: 999px; font-variant-numeric: tabular-nums; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-nav:hover, .lightbox-nav:focus-visible { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 767.98px) {
  .lightbox-nav { top: auto; bottom: 22px; transform: none; width: 46px; height: 46px; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
  .lightbox img { max-height: 66vh; }
}
.lightbox-close {
  position: absolute; top: 18px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 50%;
  color: var(--white); font-size: 1.75rem; line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(201,162,74,0.3); }

/* ==========================================================================
   FAQ — a native <details>/<summary> accordion, no JS required. Grounded,
   quotable answers (search snippets, voice/answer engines, generative AI).
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--limestone-bright);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 300ms var(--ease);
}
.faq-item[open] { border-color: var(--border-gold); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  color: var(--gold-text);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 300ms var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 24px 22px; max-width: 70ch; }
.faq-item a { color: var(--gold-text); font-weight: 700; }

/* ==========================================================================
   TEMPLES — intro + principles, with numbered line-art cards. No photography
   has been supplied for these projects, so gold line illustrations of a
   shrine and a gopuram stand in for it.
   ========================================================================== */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.temples { overflow: hidden; isolation: isolate; }
.temples::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 50% 60% at 88% 12%, rgba(201,162,74,0.15), transparent 70%),
    radial-gradient(ellipse 45% 55% at 4% 100%, rgba(20,49,61,0.9), transparent 70%);
}
/* Large faint gopuram behind the content */
.temples-motif {
  position: absolute;
  z-index: -1;
  right: -4%; bottom: -6%;
  width: min(52vw, 560px);
  aspect-ratio: 1;
  color: var(--gold);
  opacity: 0.08;
  pointer-events: none;
}

.temples-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  align-items: center;
}
@media (min-width: 992px) {
  .temples-layout { grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
}
.temples-intro .section-lede { max-width: 52ch; }

.temple-principles { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.temple-principles li { display: flex; align-items: center; gap: 14px; color: var(--white); font-weight: 600; }
.principle-badge {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(201,162,74,0.1);
  border: 1px solid var(--border-gold);
}
.principle-badge svg { width: 21px; height: 21px; }

.temple-cards { display: flex; flex-direction: column; gap: 20px; }
.temple-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  padding: 22px 28px 22px 22px;
  background: linear-gradient(170deg, rgba(20,49,61,0.92), rgba(12,36,44,0.92));
  border: 1px solid var(--border-on-dark);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 44px -28px rgba(0,0,0,0.7);
  transition: transform 450ms var(--ease-out-expo), box-shadow 450ms var(--ease-out-expo), border-color 450ms var(--ease);
}
.temple-card::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out-expo);
}
.temple-card:hover { transform: translateY(-5px); border-color: var(--border-gold); box-shadow: 0 34px 56px -28px rgba(0,0,0,0.85); }
.temple-card:hover::before { transform: scaleX(1); }
/* Whole card is clickable through its link */
.temple-card .link-arrow::after { content: ""; position: absolute; inset: 0; }

.temple-num {
  position: absolute;
  top: 12px; right: 22px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,162,74,0.35);
}
.temple-art {
  width: 124px; height: 124px;
  padding: 18px;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(rgba(201,162,74,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,74,0.09) 1px, transparent 1px);
  background-size: 20px 20px;
}
.temple-art svg { width: 100%; height: 100%; transition: transform 700ms var(--ease-out-expo); }
.temple-card:hover .temple-art svg { transform: translateY(-3px) scale(1.06); }
.temple-tag { color: var(--gold-light); font-weight: 700; font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; padding-right: 44px; }
.temple-body h3 { color: var(--white); font-size: var(--fs-h3-lg); margin-bottom: 14px; padding-right: 44px; }

@media (max-width: 575.98px) {
  .temple-card { gap: 16px; padding: 16px 18px 16px 16px; }
  .temple-art { width: 84px; height: 84px; padding: 12px; border-radius: 12px; background-size: 16px 16px; }
  .temple-num { font-size: 2.25rem; top: 10px; right: 16px; }
  .temple-body h3 { padding-right: 34px; margin-bottom: 10px; }
}

/* ==========================================================================
   CONTACT — one card on a 12-column grid: details panel (5) + form (7)
   ========================================================================== */
.contact-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 44px 80px -44px rgba(12,36,44,0.55);
}
@media (min-width: 992px) {
  .contact-card { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .contact-card-info { grid-column: span 5; }
  .contact-card-form { grid-column: span 7; }
}

.contact-card-info {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 4vw, 52px);
  background: var(--gradient-ink);
}
/* Faint blueprint grid in the panel's lower-right corner */
.contact-card-info::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(201,162,74,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,74,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 100% 100%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 100% 100%, #000 0%, transparent 75%);
}
.contact-card-info h2 { font-size: var(--fs-h2-sm); }

.contact-card-form { padding: clamp(28px, 4vw, 52px); background: var(--white); }

.contact-list { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(201,162,74,0.12);
  border: 1px solid var(--border-gold);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label { display: block; margin-bottom: 2px; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); font-weight: 700; }
.contact-list a, .contact-value { font-weight: 700; color: var(--white); font-size: 1.0625rem; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold-light); }
address.contact-value { font-style: normal; font-weight: 600; font-size: var(--fs-small); line-height: 1.65; color: var(--mist); }

.nowrap { white-space: nowrap; }
/* Below 1280px the 5-column panel is narrow, so the email needs the smaller size to stay on one line */
@media (max-width: 1279.98px) {
  .contact-list a, .contact-value { font-size: var(--fs-small); }
}
@media (max-width: 575.98px) {
  .contact-card-info { padding: 28px 22px; }
  .contact-list { gap: 20px; }
  .contact-list li { gap: 12px; }
  .contact-icon { width: 40px; height: 40px; }
  .contact-list a, .contact-value { font-size: var(--fs-small); }
}

/* The form sits flat inside the card (the card supplies the frame). */
.enquiry-form { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { background: rgba(201,162,74,0.12); border: 1px solid rgba(201,162,74,0.38); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--slate); margin-bottom: 24px; }
.form-note a { font-weight: 700; color: var(--ink); text-decoration: underline; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
@media (min-width: 576px) { .form-row--split { grid-template-columns: 1fr 1fr; } }

.enquiry-form label { display: block; font-weight: 700; font-size: var(--fs-small); margin-bottom: 6px; color: var(--ink); }
.enquiry-form .opt { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  width: 100%; font: inherit; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--limestone-bright); color: var(--charcoal);
  min-height: 46px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.enquiry-form textarea { min-height: 110px; resize: vertical; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201,162,74,0.22); }
.enquiry-form input.is-invalid, .enquiry-form textarea.is-invalid { border-color: #a6402e; }
.field-error { display: block; color: #a6402e; font-size: var(--fs-label); margin-top: 5px; min-height: 1.2em; }
.form-result { margin-top: 16px; font-weight: 700; color: var(--slate); }

/* ==========================================================================
   THANK-YOU PAGE — standalone confirmation after a successful enquiry
   ========================================================================== */
.thank-you-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.thank-you-card { max-width: 480px; text-align: center; }
.thank-you-card .brand-logo { height: 56px; margin-bottom: 22px; }
.thank-you-check {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(201,162,74,0.14);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
}
.thank-you-check svg { width: 30px; height: 30px; }
.thank-you-card h1 { color: var(--white); font-size: var(--fs-h2); margin-bottom: 14px; }
.thank-you-card p { color: var(--mist); }
.thank-you-meta { margin-top: 6px; margin-bottom: 0; }
.thank-you-meta a { color: var(--gold-light); font-weight: 700; }
.thank-you-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* ==========================================================================
   CLOSING CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  padding: var(--section-space) 0;
  background: var(--gradient-ink);
  color: var(--white);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(201,162,74,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,74,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 20%, transparent 78%);
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-inner .eyebrow { color: var(--gold-light); justify-content: center; }
.cta-inner h2 { color: var(--white); font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); letter-spacing: -0.035em; }
.cta-inner .section-lede { color: var(--mist); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
/* Phones: both buttons share one row. */
@media (max-width: 575.98px) {
  .cta-actions { flex-wrap: nowrap; gap: 10px; }
  .cta-actions .btn { flex: 1 1 0; min-width: 0; padding: 13px 10px; font-size: var(--fs-small); line-height: 1.25; white-space: normal; text-align: center; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink-deep); border-top: 1px solid var(--border-gold); padding: 48px 0 0; color: rgba(195,208,212,0.85); }
/* Phones: brand and contact span the full width; Explore and Featured Ventures share one row. */
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-bottom: 32px; border-bottom: 1px solid var(--border-on-dark); }
.footer-brand, .footer-col--contact { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1.2fr 1.2fr; gap: 40px 36px; }
  .footer-col--contact { grid-column: auto; }
}
@media (min-width: 992px) {
  .footer-grid { grid-template-columns: 1.25fr 0.75fr 1.15fr 1.35fr; }
  .footer-brand { grid-column: auto; }
}
.footer-brand p { margin-top: 14px; max-width: 38ch; color: rgba(195,208,212,0.7); }
.brand-logo--footer { height: 56px; }
.brand--footer { margin-bottom: 14px; }
.footer-col h4 { color: var(--gold-light); margin-bottom: 16px; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; font-size: var(--fs-small); }
.footer-col a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }
.footer-contact a { overflow-wrap: anywhere; }
.footer-col address { margin: 0; font-style: normal; font-size: var(--fs-small); line-height: 1.7; }
.footer-bottom { padding: 20px 0 28px; text-align: center; }
.footer-bottom small { font-size: var(--fs-label); color: rgba(195,208,212,0.55); }

/* ==========================================================================
   MOBILE BOTTOM ACTION BAR
   ========================================================================== */
.mobile-action-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: var(--ink-deep);
  border-top: 1px solid var(--border-gold);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 12px;
  box-shadow: 0 -8px 24px rgba(3,12,16,0.35);
}
.mobile-action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: var(--radius-sm); font-weight: 700; font-size: var(--fs-small);
  border: 1.5px solid rgba(255,255,255,0.4); color: var(--white);
}
.mobile-action-btn svg { width: 20px; height: 20px; }
.mobile-action-btn--primary { background: var(--gradient-gold); border-color: var(--gold-deep); color: var(--ink); }

@media (max-width: 767.98px) {
  .mobile-action-bar { display: flex; }
  body { padding-bottom: 76px; }
  .site-footer { padding-bottom: 6px; }
}

/* ==========================================================================
   REVEAL ANIMATIONS — content is visible by default so it never depends on
   JavaScript running. Only once main.js confirms it is active (html.has-js,
   set synchronously in <head>) do .reveal elements start hidden and animate
   in via IntersectionObserver. --d staggers siblings. `translate` (not
   `transform`) is used so it never fights a card's own hover transform.
   ========================================================================== */
.has-js .reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 750ms var(--ease-out-expo) var(--d, 0ms), translate 750ms var(--ease-out-expo) var(--d, 0ms),
    transform 450ms var(--ease-out-expo), box-shadow 450ms var(--ease-out-expo), border-color 450ms var(--ease);
}
.has-js .reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .has-js .reveal { opacity: 1; translate: none; transition: none; }
  .has-js .hero-copy > * { animation: none; }
}

/* ==========================================================================
   PRELOADER — logo + sliding gold bar; lifted by an inline script in index.html
   on window load (700ms minimum, 3.5s cap). Hero entrance waits for it.
   ========================================================================== */
#preloader { display: none; }
.has-js #preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #14313d 0%, var(--ink) 70%);
  transition: opacity 500ms var(--ease), visibility 500ms;
}
#preloader.is-done { opacity: 0; visibility: hidden; }
html.is-loading { overflow: hidden; }
.is-loading .hero-copy > * { animation-play-state: paused; }
.preloader-inner { display: grid; justify-items: center; gap: 22px; }
.preloader-logo { width: 132px; height: auto; animation: pre-pulse 1.8s ease-in-out infinite; }
.preloader-bar { position: relative; width: 148px; height: 2px; border-radius: 2px; background: rgba(201,162,74,0.22); overflow: hidden; }
.preloader-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--gradient-gold); animation: pre-slide 1.2s ease-in-out infinite; }
.preloader-tag { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); opacity: 0.8; }
@keyframes pre-pulse { 50% { opacity: 0.72; transform: scale(0.97); } }
@keyframes pre-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .preloader-logo, .preloader-bar::after { animation: none; } .preloader-bar::after { width: 100%; } }
