/* ============================================================
   GOLDEN PAVILION GROUP — Stylesheet
   Brand-driven design system
   ============================================================ */

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* Brand palette (from brand guide §04) */
  --pavilion-ink:    #1A1A1A;
  --heritage-gold:   #B8945F;
  --warm-stone:      #F5F1EA;
  --paper-white:     #FFFFFF;
  --bronze:          #8C6A3F;
  --gold-bright:     #C39F65;  /* matches the trust-band map gold */
  /* Capability bento — vibrant accent panels (scoped to the About "What we do" block) */
  --cap-peach:       #FAD2B0;
  --cap-sage:        #BCD3C8;
  --cap-blush:       #F3CFD6;
  --cap-sand:        #ECE0CB;
  --soft-taupe:      #6B6259;
  --sand:            #E8E2D5;
  --sold-red:        #A23B2E;
  --charcoal-brown:  #3D352C;

  /* Functional roles */
  --bg:                var(--warm-stone);
  --bg-card:           var(--paper-white);
  --bg-dark:           var(--pavilion-ink);
  --bg-sand:           var(--sand);
  --ink:               var(--pavilion-ink);
  --ink-muted:         var(--soft-taupe);
  --ink-on-dark:       #ECE6DA;
  --ink-on-dark-muted: #9D958A;
  --accent:            var(--heritage-gold);
  --accent-deep:       var(--bronze);
  --rule:              rgba(26, 26, 26, 0.10);
  --rule-strong:       rgba(26, 26, 26, 0.20);
  --rule-on-dark:      rgba(236, 230, 218, 0.14);

  /* Type families */
  --display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --text:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale — ONE hierarchy, content-first.
     Hero (--t-hero) is the only large moment on landing pages.
     Content/detail pages lead with imagery; their hero uses --t-hero-sm.
     Every SECTION HEADING is --t-xl (set on global h2). Card/sub-headings
     --t-lg, card names --t-md, body --t-base/--t-sm, labels --t-xs.
     --t-xxl is reserved for the one editorial pull-quote (.quote-headline). */
  --t-xs:      clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --t-sm:      clamp(0.85rem, 0.83rem + 0.1vw, 0.92rem);
  --t-base:    clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --t-md:      clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --t-lg:      clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --t-xl:      clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
  --t-xxl:     clamp(2.8rem, 1.8rem + 4vw, 4.8rem);
  --t-hero-sm: clamp(2.6rem, 1.9rem + 2.8vw, 4.2rem); /* content-page hero — sits below --t-hero */
  --t-hero:    clamp(3rem, 2rem + 6vw, 6.6rem);
  --t-numeral: clamp(4.5rem, 3rem + 8vw, 9.5rem);

  /* Spacing */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  72px;
  --s-9:  96px;
  --s-10: 144px;
  --s-11: 200px;

  /* Containers */
  --container-w:        1200px;
  --container-narrow-w: 880px;
  --container-wide-w:   1440px;
  --container-px:       28px;

  /* Motion */
  --ease-quiet: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-firm:  cubic-bezier(0.16, 1, 0.3, 1);
  --d-fast:  200ms;
  --d-base:  400ms;
  --d-slow:  800ms;

  /* Shadow — sparingly */
  --shadow-soft:   0 1px 2px rgba(26, 26, 26, 0.04), 0 14px 36px rgba(26, 26, 26, 0.07);
  --shadow-strong: 0 1px 2px rgba(26, 26, 26, 0.06), 0 24px 60px rgba(26, 26, 26, 0.12);

  /* Nav height */
  --nav-h: 76px;
}

@media (max-width: 720px) {
  :root { --container-px: 20px; --nav-h: 64px; }
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--text);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  hanging-punctuation: first last;
}

/* Old-style figures and stylistic alternates on display face */
h1, h2, h3, h4, h5, .quote-headline, .trust-num, .value-num, .press-name, .reel-tagline {
  font-feature-settings: "onum" 1, "ss01" 1, "kern" 1, "liga" 1;
}

/* Tabular lining figures where alignment matters (stat columns, timestamps) */
.tabular { font-feature-settings: "tnum" 1, "lnum" 1; }

/* Image: subtle warm cast sitewide, lifts on hover */
img {
  filter: saturate(0.96) sepia(0.04);
  transition: filter 1200ms var(--ease-firm);
}
a:hover img, button:hover img { filter: saturate(1.03) sepia(0); }
.no-warm img, .hero-image img { filter: none; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
}
h1 { font-size: var(--t-hero); font-weight: 300; letter-spacing: -0.015em; }
/* Section heading — the workhorse. One restrained size sitewide; the hero
   is the only larger moment. Page-specific section heads inherit this. */
h2 { font-size: var(--t-xl); font-weight: 400; letter-spacing: -0.01em; }
h3 { font-size: var(--t-lg); font-weight: 500; }
em { font-style: italic; color: var(--accent); }
h1 em, h2 em { color: var(--accent-deep); }

p { color: var(--ink); }
p + p { margin-top: 1em; }

.eyebrow,
.overline {
  display: inline-block;
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* Soft Taupe on Stone passes WCAG AA 4.5:1 for small text;
     Bronze fails (4.17:1). Heritage Gold reserved for italics, rules, buttons. */
  color: var(--ink-muted);
}
.overline { margin-bottom: var(--s-4); }
.overline-center { display: block; text-align: center; }
.eyebrow-on-dark { color: var(--accent); }
.overline-on-dark, .eyebrow-on-dark { color: var(--accent); }

.section-head {
  max-width: 720px;
  margin-bottom: var(--s-8);
  position: relative;
}
.section-head h2 { margin-bottom: var(--s-4); text-wrap: balance; }
.section-lede { color: var(--ink-muted); font-size: var(--t-md); max-width: 60ch; }


/* Drop cap for editorial paragraphs (quote, about lead) */
.dropcap::first-letter {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 4.4em;
  line-height: 0.88;
  float: left;
  padding: 0.06em 0.16em 0 0;
  color: var(--accent-deep);
  font-feature-settings: "ss01" 1;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}
.container-narrow { max-width: var(--container-narrow-w); }
.container-wide   { max-width: var(--container-wide-w); }

main > section { padding-block: var(--s-10); }

/* ── ACCESSIBILITY ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  background: var(--ink);
  color: var(--ink-on-dark);
  padding: var(--s-3) var(--s-5);
  border-radius: 2px;
  font-size: var(--t-sm);
  font-weight: 600;
  z-index: 100;
  transition: top var(--d-fast) var(--ease-quiet);
}
.skip-link:focus { top: var(--s-4); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}
/* High-contrast focus ring on dark sections */
.site-nav :focus-visible,
.mobile-nav :focus-visible,
.hero :focus-visible,
.about-hero :focus-visible,
.trust :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--paper-white);
}
/* Logo link: no white focus box around the mark — subtle gold underline instead */
.site-nav .brand:focus-visible,
.mobile-nav .brand:focus-visible { outline: none; }
.site-nav .brand:focus-visible .brand-name,
.mobile-nav .brand:focus-visible .brand-name {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--heritage-gold);
}

/* ── REVEAL ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition:
    opacity 1200ms var(--ease-firm) var(--reveal-delay, 0ms),
    transform 1200ms var(--ease-firm) var(--reveal-delay, 0ms),
    filter 1200ms var(--ease-firm) var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}
.reveal.is-in { opacity: 1; transform: none; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── BUTTONS & LINKS ─────────────────────────────────────── */
/* Button style ported from the shadcn reference (rounded-lg, sentence-case,
   medium weight, compact, faint shadow, focus ring) — GP Ink/Gold colours kept. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 9px 18px;
  font-family: var(--text);
  font-size: var(--t-sm);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition:
    background 200ms var(--ease-firm),
    color 200ms var(--ease-firm),
    border-color 200ms var(--ease-firm);
  font-feature-settings: "tnum" 1;
}
.button svg { flex: none; }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.button:disabled,
.button[disabled],
.button[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.button-primary {
  background: var(--bronze);
  color: var(--paper-white);
  border-color: var(--bronze);
}
.button-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.button-primary:active { transform: translateY(1px); transition-duration: 80ms; }

.button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.button-ghost:hover { background: var(--ink); color: var(--paper-white); }
.button-ghost:active { transform: translateY(1px); transition-duration: 80ms; }

.button-ghost-light {
  background: transparent;
  color: var(--paper-white);
  border-color: rgba(255, 255, 255, 0.6);
}
.button-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--paper-white);
}
.button-ghost-light:active { transform: translateY(1px); transition-duration: 80ms; }

/* Touch-only: simplify hover states that depend on hover (skill §2 hover-vs-tap) */
@media (hover: none) {
  .button:hover { background: inherit; color: inherit; border-color: inherit; }
  .reel-card-inner:hover .reel-card-media img { filter: saturate(0.96) sepia(0.04); }
  .reel-card-inner:hover .reel-card-body h3::after { transform: scaleX(0); }
  .reel-card-inner:active .reel-card-body h3::after { transform: scaleX(1); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--text);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap var(--d-base) var(--ease-quiet), color var(--d-base) var(--ease-quiet);
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: var(--s-3); color: var(--ink); }
.link-arrow-large { font-size: var(--t-base); margin-top: var(--s-5); }

/* ── SITE NAV ────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(26, 26, 26, 0.86);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid transparent;
  color: var(--ink-on-dark);
  transition: background 600ms var(--ease-firm), border-color 600ms var(--ease-firm);
}
.site-nav.is-scrolled {
  background: rgba(26, 26, 26, 0.96);
  border-bottom-color: var(--rule-on-dark);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--nav-h);
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink-on-dark);
}
.brand-mark {
  width: auto;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
  filter: none; /* Override sitewide image-warmth filter — preserve gold */
}
a:hover .brand-mark { filter: none; }
.brand-name {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.nav-links a {
  position: relative;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 0;
  color: var(--ink-on-dark);
  transition: color var(--d-fast) var(--ease-quiet);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--accent);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink-on-dark);
  transition: transform var(--d-base) var(--ease-firm), opacity var(--d-base) var(--ease-firm);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: calc(100svh - var(--nav-h));
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: var(--s-7) var(--container-px);
  transform: translateY(-110%);
  transition: transform var(--d-slow) var(--ease-firm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--rule-on-dark);
  overflow-y: auto;
  visibility: hidden;
}
.mobile-nav.is-open { transform: none; visibility: visible; }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--s-4); }
.mobile-nav a {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 300;
  color: var(--ink-on-dark);
  display: block;
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule-on-dark);
}
.mobile-nav-foot {
  font-size: var(--t-sm);
  color: var(--ink-on-dark-muted);
  margin-top: var(--s-7);
  letter-spacing: 0.04em;
}
.mobile-nav-foot a { color: var(--ink-on-dark); }

/* ── HERO CAROUSEL ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper-white);
  background: var(--bg-dark); /* Visible behind crossfading slides */
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-h);
  padding-bottom: 200px; /* room for fixed foot */
  opacity: 0;
  pointer-events: none;
  transition: opacity 1500ms var(--ease-firm);
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }

.hero-slide .hero-image { position: absolute; inset: 0; z-index: -2; }
.hero-slide .hero-image img,
.hero-slide .hero-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  transform: scale(1.05);
  will-change: transform;
}
.hero-slide.is-active .hero-image img {
  animation: kenburns 36s ease-in-out infinite alternate;
}
/* Don't Ken-Burns a playing video — the video brings its own motion */
.hero-slide.is-active .hero-image video {
  transform: scale(1.02);
  animation: none;
}
@keyframes kenburns {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.8%, -1.2%, 0); }
}

.hero-slide .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(26,26,26,0.55) 0%, rgba(26,26,26,0.30) 35%, rgba(26,26,26,0.70) 100%);
}

/* "Artist's impression" disclosure chip — Malaysian property convention */
.hero-tag {
  position: absolute;
  top: calc(var(--nav-h) + var(--s-5));
  right: var(--container-px);
  z-index: 2;
  font-family: var(--text);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-white);
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 720px) {
  .hero-tag {
    top: calc(var(--nav-h) + var(--s-4));
    right: var(--container-px);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }
}

.hero-slide .hero-content {
  max-width: var(--container-w);
  margin-inline: auto;
  width: 100%;
  padding-inline: var(--container-px);
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--display);
  font-size: var(--t-hero);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper-white);
  max-width: 16ch;
  margin-block: var(--s-5) var(--s-6);
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--heritage-gold); }

.hero-lede {
  max-width: 56ch;
  font-size: var(--t-md);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.90);
}

/* ── HERO foot: persistent actions + carousel controls ─── */
.hero-foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  padding: var(--s-7) var(--container-px) var(--s-6);
  background: linear-gradient(180deg, transparent 0%, rgba(26,26,26,0.55) 100%);
  pointer-events: none;
}
.hero-foot-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-7);
  pointer-events: none;
}
.hero-foot-inner > * { pointer-events: auto; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.hero-actions .button {
  padding: 11px 22px;
  font-size: 12px;
}

.hero-controls {
  display: flex;
  align-items: flex-end;
  gap: var(--s-5);
}

.hero-counter {
  font-family: var(--display);
  font-size: var(--t-md);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
  font-feature-settings: "onum" 1, "ss01" 1;
  white-space: nowrap;
  line-height: 1.2;
}
.hero-counter [data-current] {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}
.hero-counter-sep { opacity: 0.7; }

.hero-indicators {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.hero-indicator {
  position: relative;
  width: 56px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.28);
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 1px;
  transition: background 500ms var(--ease-firm);
}
.hero-indicator:hover { background: rgba(255, 255, 255, 0.5); }
.hero-indicator-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-indicator.is-active .hero-indicator-fill {
  animation: hero-progress 8000ms linear forwards;
}
@keyframes hero-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.hero-indicator:focus-visible { outline-offset: 6px; }
.hero-indicator:focus-visible { outline-color: var(--paper-white); }

/* Stop carousel autoplay if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide:not(.is-active) { display: none; }
  .hero-slide.is-active .hero-image img { animation: none; transform: scale(1.05); }
  .hero-indicator.is-active .hero-indicator-fill { animation: none; transform: scaleX(1); }
}

/* ── VALUES ──────────────────────────────────────────────── */
.values { background: var(--bg); }

.values-list {
  margin-top: var(--s-8);
  border-top: 1px solid var(--rule-strong);
}
.value-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s-7);
  padding-block: var(--s-7);
  border-bottom: 1px solid var(--rule);
}
.value-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  padding-top: 0.4em;
}
.value-body h3 {
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-4);
  color: var(--ink);
}
.value-body p {
  max-width: 60ch;
  color: var(--ink-muted);
  font-size: var(--t-md);
  line-height: 1.75;
}

/* ── TRUST BAND ──────────────────────────────────────────── */
.trust {
  position: relative;
  background-color: var(--warm-stone);
  color: var(--ink);
  padding-block: var(--s-10) !important;
  overflow: hidden;
}
.trust::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/map/malaysia-gold.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.trust > .container { position: relative; z-index: 1; }
.trust-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: var(--s-7);
  align-items: center;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-4);
}
.trust-num {
  font-family: var(--display);
  font-size: var(--t-numeral);
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.trust-num sup {
  font-size: 0.45em;
  vertical-align: super;
  font-weight: 400;
  margin-left: 0.05em;
}
.trust-label {
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 32ch;
}
.trust-rule { background: var(--rule-strong); width: 1px; height: 70%; justify-self: center; }

/* ── OUR BUSINESSES (chapter marker) ─────────────────────── */
.businesses-intro {
  background: var(--bg);
  text-align: center;
  padding-block: var(--s-9) var(--s-7) !important;
}
.businesses-intro-heading {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;

  /* Slow heritage-gold shine sweeping across the ink text */
  background: linear-gradient(
    90deg,
    var(--ink) 0%,
    var(--ink) 15%,
    var(--accent) 40%,
    var(--accent) 60%,
    var(--ink) 85%,
    var(--ink) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: businesses-shine 11s linear infinite;
}
@keyframes businesses-shine {
  from { background-position: 200% 0; }
  to   { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .businesses-intro-heading {
    animation: none;
    background: none;
    -webkit-text-fill-color: var(--ink);
  }
}

/* Tighten the gap between the chapter marker and the philosophy beat */
.businesses-intro + .philosophy {
  padding-top: var(--s-7) !important;
}

/* ── PROPERTY DEVELOPMENT (At a Glance-style section heading) ─
   Large centered headline + small italic subtitle, sitting above
   the project cards as a chapter marker for the showcase. */
.philosophy {
  background: var(--bg);
  text-align: center;
  padding-bottom: var(--s-7) !important;
}

.philosophy-head {
  margin: 0 0 var(--s-8) 0;
}

/* Section title — "Property Development" / "Construction" chapter markers.
   Aligned to the section-heading level (--t-xl) so they don't outshout the hero. */
.philosophy-title {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 var(--s-4) 0;
}

/* Smaller subtitle — "Thoughtfully built for living." */
.philosophy-subtitle {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--ink-muted);
  margin: 0;
}
.philosophy-subtitle em {
  font-style: italic;
  color: var(--accent-deep);
}

/* Credentials credit block — 4-column data grid */
.philosophy-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.philosophy-meta-item {
  padding: var(--s-5) 0 var(--s-5) var(--s-5);
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.philosophy-meta-item:first-child {
  border-left: 0;
  padding-left: 0;
}
.philosophy-meta-item dt {
  font-family: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}
.philosophy-meta-item dd {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1;
  margin: 0;
  font-feature-settings: "onum" 1, "ss01" 1;
}
.philosophy-meta-item dd sup {
  font-size: 0.45em;
  vertical-align: super;
  font-weight: 400;
  font-style: normal;
  margin-left: 0.04em;
  color: var(--accent);
}
.philosophy-meta-tail {
  font-size: 0.62em;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-left: 0.18em;
  font-feature-settings: "lnum" 1;
}

/* The closing gold hairline rule — extends 0 → 100% on scroll-in.
   Overrides .reveal's default translateY transform with scaleX while
   keeping opacity + filter transitions intact so it fades in cleanly. */
.philosophy-rule {
  margin-top: var(--s-6);
  height: 1px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition:
    opacity 1200ms var(--ease-firm) var(--reveal-delay, 0ms),
    transform 1400ms var(--ease-firm) var(--reveal-delay, 0ms),
    filter 1200ms var(--ease-firm) var(--reveal-delay, 0ms);
}
.philosophy-rule.is-in {
  transform: scaleX(1);
}

/* The .reveal pattern with default 1200ms doesn't quite suit a sweeping
   numeral entrance — give the numeral its own slightly slower curve */
.philosophy-numeral.reveal {
  transition-duration: 1600ms;
  transition-timing-function: var(--ease-firm);
}

@media (max-width: 720px) {
  .philosophy-head {
    margin-bottom: var(--s-6);
  }
  .philosophy-title {
    white-space: normal;
    text-wrap: balance;
  }
  .philosophy-meta {
    grid-template-columns: 1fr;
  }
  .philosophy-meta-item {
    padding: var(--s-4) 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .philosophy-meta-item:first-child {
    border-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .philosophy-rule {
    transform: scaleX(1);
    transition: none;
  }
}

/* ── CONSTRUCTION ────────────────────────────────────────── */
/* Lives on the warm-stone middle. Earns presence via a thin gold
   top rule and a slightly larger headline — no dark background. */
.construction {
  background: var(--bg);
}

/* Scroll-linked scene: image on the left (nudged toward the edge), the
   chapter-marker title block pinned on the right. The description is held
   back and fades in once the foot of the image scrolls into view.
   Title reuses the shared .philosophy-title / -subtitle classes so it
   stays in lockstep with the Property Development marker. */
.construction-scene {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  column-gap: var(--s-8);
  align-items: start; /* keep the aside short so sticky has room to travel */
}

/* Image — large, pulled slightly toward the left edge, and dropped down
   so the pinned title leads it as you scroll into the section */
.construction-figure {
  position: relative;
  margin: var(--s-9) 0 0 -40px;
}
.construction-figure img {
  width: 100%;
  max-width: 720px;
  height: auto;
}
/* Sentinel at the foot of the image — trips the detail reveal */
.construction-figure-end {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  pointer-events: none;
}

/* Right column pins while the image scrolls past */
.construction-aside {
  position: sticky;
  top: calc(var(--nav-h) + var(--s-4));
  align-self: start;
}
.construction-head .philosophy-title { margin-bottom: var(--s-3); }
.construction-mark {
  display: block;
  width: 1.5px;
  height: 96px;
  background: var(--accent);
  margin: 0 0 var(--s-5) 0;
}

/* Smaller description, held back until the image foot is in view */
.construction-detail {
  margin-top: var(--s-6);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 900ms var(--ease-firm),
    transform 900ms var(--ease-firm);
}
.construction-scene.is-revealed .construction-detail {
  opacity: 1;
  transform: none;
}
.construction-lede {
  font-size: var(--t-sm);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 42ch;
  margin-bottom: var(--s-5);
}

@media (prefers-reduced-motion: reduce) {
  .construction-detail { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  /* Flow vertically; .construction-aside dissolves so title / image /
     detail can reorder to title → image → description. */
  .construction-scene {
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
  }
  .construction-aside { display: contents; }
  .construction-head { order: 1; }
  .construction-figure { order: 2; margin: 0; }
  .construction-figure img { max-width: 100%; margin-inline: auto; }
  .construction-detail { order: 3; margin-top: 0; }
}

/* ── PROJECTS META ROW (segment toggle only) ─────────────── */
.projects-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
  flex-wrap: wrap;
}

/* ── PROJECTS FOOT (View our developments hyperlink) ─────── */
.projects-foot {
  display: flex;
  justify-content: center;
  margin-top: var(--s-7);
}
.projects-foot-link {
  display: inline-block;
  font-family: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
  transition: color var(--d-base) var(--ease-firm), border-color var(--d-base) var(--ease-firm);
}
.projects-foot-link:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}

/* ── PROJECTS SEGMENT TOGGLE ─────────────────────────────── */
.projects-segment {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 4px;
  background: var(--bg-card);
}
.segment-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 10px 22px;
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background var(--d-base) var(--ease-firm),
    color var(--d-base) var(--ease-firm);
}
.segment-btn:hover { color: var(--ink); }
.segment-btn.is-active {
  background: var(--ink);
  color: var(--paper-white);
}
/* Hide cards that don't match the active segment */
[data-active-segment="residential"] .pf-card[data-segment="commercial"],
[data-active-segment="commercial"]  .pf-card[data-segment="residential"] {
  display: none;
}

@media (max-width: 720px) {
  .projects-segment {
    margin-left: 0;
  }
  .segment-btn {
    padding: 8px 16px;
    letter-spacing: 0.14em;
  }
}

/* ── PROJECTS FEATURE (Vinhomes-style) ───────────────────── */
.projects-feature {
  position: relative;
  background: var(--bg);
  padding-top: var(--s-5) !important;
  padding-bottom: var(--s-6) !important;
}

.projects-feature-head {
  max-width: 720px;
  margin-bottom: var(--s-8);
  position: relative;
  z-index: 1;
}
.projects-feature-head .overline { margin-top: var(--s-3); }
.projects-feature-head h2 { margin-bottom: var(--s-4); }
.projects-feature-head .section-lede { margin-bottom: var(--s-6); }

/* Sticky-stack: each card pins to viewport top, next one rises over it. */
.projects-stack {
  position: relative;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.pf-card {
  position: sticky;
  top: calc(var(--nav-h) + var(--s-5));
  width: 100%;
  /* Margin-bottom = pin duration before next card rises over.
     Kept short so the gap below each card stays visually balanced. */
  margin-bottom: var(--s-6);
}
.pf-card:last-child { margin-bottom: 0; }

.projects-stack .pf-link {
  height: min(75vh, 640px);
  min-height: 480px;
}
/* Gamuda-style project card: full-bleed image background, dark linear
   gradient overlay (heavy on left, fading right), text content on the
   left half layered above. White type on darkened image. */
.pf-link {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  height: 100%;
  border: 0;
  transition: transform 700ms var(--ease-firm);
  text-decoration: none;
  isolation: isolate;
}
.pf-link:hover { transform: translateY(-3px); }

/* Image fills the card */
.pf-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--charcoal-brown);
}
.pf-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.0) brightness(1.06);
  transition: filter 1000ms var(--ease-firm), transform 1000ms var(--ease-firm);
}
.pf-link:hover .pf-media img {
  filter: saturate(1) contrast(1.0) brightness(1.08);
  transform: scale(1.03);
}

/* Dark gradient overlay — strong on left, fades to mostly-clear on right,
   so the text side has contrast while the image stays visible on the right. */
.pf-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(20, 20, 20, 0.45) 0%,
    rgba(20, 20, 20, 0.28) 40%,
    rgba(20, 20, 20, 0.08) 70%,
    rgba(20, 20, 20, 0.00) 100%
  );
  pointer-events: none;
}

/* Body sits above the overlay, occupying the left half of the card */
.pf-body {
  position: relative;
  z-index: 2;
  padding: var(--s-7) var(--s-7) var(--s-7) var(--s-7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 56%;
  color: var(--ink-on-dark);
  /* Legibility scrim on the text itself — keeps the image bright while the
     copy stays readable over light areas of the render. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42), 0 2px 16px rgba(0, 0, 0, 0.48);
}

/* Status badge — sits above the gradient overlay so it doesn't get dimmed */
.pf-status {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 11px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--text);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule);
  font-feature-settings: "tnum" 1, "lnum" 1;
  white-space: nowrap;
}
.pf-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.pf-status--sold .pf-status-dot { background: var(--ink-muted); }
.pf-status--sold { color: var(--ink-muted); }

/* Headline — large white Cormorant, project name + location combined */
.pf-name {
  font-family: var(--display);
  font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.3rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.012em;
  color: color-mix(in srgb, var(--accent) 50%, #ffffff);
  line-height: 1.12;
  margin: 0 0 var(--s-2) 0;
  font-feature-settings: "ss01" 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 22px rgba(0, 0, 0, 0.55);
}

/* Body paragraph */
.pf-blurb {
  font-family: var(--text);
  font-size: clamp(0.92rem, 0.84rem + 0.4vw, 1.02rem);
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink-on-dark);
  margin: 0;
  max-width: 50ch;
}

/* Location — under the name, smaller and lighter */
.pf-location {
  font-family: var(--text);
  font-size: clamp(0.92rem, 0.85rem + 0.35vw, 1.08rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 var(--s-4) 0;
}

/* Register CTA — bottom-right corner of the card */
.pf-register {
  position: absolute;
  right: var(--s-7);
  bottom: var(--s-7);
  z-index: 5;
}

/* Stretched link — makes the whole card navigate to its detail page,
   while the Register button (z-index 5) stays independently clickable. */
.pf-cardlink {
  position: absolute;
  inset: 0;
  z-index: 4;
  text-indent: -9999px;
  overflow: hidden;
}
.pf-cardlink:focus-visible {
  outline: 3px solid var(--heritage-gold);
  outline-offset: -3px;
}

/* Horizontal rule between body and stats */
.pf-rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--s-6);
}

/* Two-stat grid — Gamuda's signature: gold label + HUGE white serif value */
.pf-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
}
.pf-specs > div {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-right: var(--s-5);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}
.pf-specs > div:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: var(--s-5);
}
.pf-specs dt {
  font-family: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.pf-specs dd {
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.01em;
  color: var(--paper-white);
  margin: 0;
  line-height: 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ── QUOTE BLOCK ─────────────────────────────────────────── */
.quote-block { background: var(--warm-stone); }

.quote-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
  gap: var(--s-9);
  align-items: center;
}

.quote-image figcaption {
  margin-top: var(--s-3);
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.quote-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Editorial pull-quote — the single sanctioned in-content use of --t-xxl.
   Stands alone beside a portrait; not a section heading. */
.quote-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--t-xxl);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: var(--s-6);
}
.quote-text p {
  font-size: var(--t-md);
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 50ch;
}

/* ── WHERE ───────────────────────────────────────────────── */
.where { background: var(--bg); }

.map-placeholder {
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: var(--s-8) var(--s-7);
  position: relative;
  min-height: 420px;
}
.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 35%, rgba(184, 148, 95, 0.06), transparent 65%),
    radial-gradient(circle at 70% 50%, rgba(184, 148, 95, 0.04), transparent 60%);
  pointer-events: none;
}
.map-placeholder-label {
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-deep);
  align-self: center;
  text-align: center;
  position: relative;
}
.map-placeholder-label em {
  display: block;
  font-size: var(--t-sm);
  color: var(--ink-muted);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: var(--s-4);
}
.state-counts {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.state-counts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-sm);
}
.state-counts li:last-child { border-bottom: 0; }
.state-counts li span:first-child {
  font-family: var(--display);
  font-size: var(--t-md);
  font-weight: 400;
  color: var(--ink);
}
.state-counts li span:last-child {
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* ── PRESS ───────────────────────────────────────────────── */
.press {
  background: var(--bg);
  padding-block: var(--s-9) !important;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.press .container { text-align: center; }
.press-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-7);
  margin-top: var(--s-6);
}
.press-name {
  font-family: var(--display);
  font-size: var(--t-md);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity var(--d-base) var(--ease-quiet), color var(--d-base) var(--ease-quiet);
}
.press-name:hover { opacity: 1; color: var(--ink); }

/* ── VISIT ───────────────────────────────────────────────── */
.visit { background: var(--bg); }

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: start;
}

.visit-words h2 { margin-bottom: var(--s-5); }
.visit-words p { color: var(--ink-muted); font-size: var(--t-md); max-width: 48ch; line-height: 1.75; }

.visit-card {
  background: var(--paper-white);
  border: 1px solid var(--rule-strong);
  padding: var(--s-7) var(--s-7) var(--s-7) var(--s-7);
  border-left: 3px solid var(--accent);
}
.visit-card-name {
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 500;
  margin-bottom: var(--s-4);
  letter-spacing: -0.005em;
}
.visit-card-line {
  font-size: var(--t-sm);
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: var(--s-4);
}
.visit-card-line strong { color: var(--ink); font-weight: 600; }
.visit-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

/* ── KEEP IN TOUCH — office hours + enquiry form ────────────
   Underline-style fields (ref: minimal "let's get in touch"
   layout) rendered in brand tokens — no card, no shadow, the
   rule turns Heritage Gold on focus. */
.visit-hours {
  margin-top: var(--s-5);
  font-size: var(--t-sm);
  color: var(--ink-muted);
  line-height: 1.8;
}
.visit-hours strong { color: var(--ink); font-weight: 600; }

.visit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6) var(--s-5);
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  grid-column: 1 / -1;
}
.field--half { grid-column: span 1; }

.field label {
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  font-family: var(--text);
  font-size: var(--t-base);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--rule-strong);
  border-radius: 0;
  padding: 8px 2px;
  width: 100%;
  transition: border-color var(--d-base) var(--ease-firm);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-muted); opacity: 0.7; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6259' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
/* Mute the "Choose a topic" placeholder until a real topic is picked */
.field select:invalid { color: var(--ink-muted); }

.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--accent); }

/* Honeypot — kept off-screen; only bots fill it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visit-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin-top: var(--s-3);
}

/* "Keep in touch" (home) — form only, compact, single centred column */
.keep {
  padding-block: clamp(40px, 6vh, 72px);
  padding-inline: var(--container-px);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
/* Exactly three rows of the brand wordmark, each a single line wider than the
   viewport so it bleeds off BOTH edges; staggered for a woven, full-width feel. */
.keep-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.keep-watermark span {
  display: block;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(72px, 14vw, 230px);
  line-height: 1.04;
  letter-spacing: 0.02em;
  color: var(--heritage-gold);
  opacity: 0.15;
}
.keep-watermark span:nth-child(1) { margin-left: -4%; }
.keep-watermark span:nth-child(2) { margin-left: -20%; }
.keep-watermark span:nth-child(3) { margin-left: -10%; }
/* Soft frosted panel so the form stays clean and readable over the watermark. */
.keep-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding: clamp(24px, 3.5vw, 40px) clamp(22px, 4vw, 40px);
  background: rgba(245, 241, 234, 0.74);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 3px;
}
.keep-inner > .overline { margin-bottom: var(--s-2); }
.keep-inner > h2 { font-size: var(--t-lg); margin-bottom: var(--s-3); }
.keep-lede { color: var(--ink-muted); font-size: var(--t-sm); line-height: 1.6; margin-bottom: var(--s-5); }
.keep .visit-form { gap: var(--s-4); }
.keep .field { gap: 6px; }
.keep .field input,
.keep .field select,
.keep .field textarea { font-size: var(--t-sm); padding: 6px 2px; }
.keep .field textarea { min-height: 64px; }
.keep .visit-form-actions { gap: var(--s-4); margin-top: var(--s-2); }
.keep-logo { height: 44px; width: auto; display: block; margin-bottom: var(--s-4); }

/* Laptop and up — scale the compact form up so it doesn't read small on wide screens */
@media (min-width: 1024px) {
  .keep { padding-block: clamp(48px, 5vh, 72px); }
  .keep-inner { max-width: 560px; }
  .keep-logo { height: 56px; margin-bottom: var(--s-5); }
  .keep-inner > h2 { font-size: 2.4rem; }
  .keep-lede { font-size: var(--t-base); margin-bottom: var(--s-6); }
  .keep .visit-form { gap: var(--s-5); }
  .keep .field { gap: var(--s-2); }
  .keep .field input,
  .keep .field select,
  .keep .field textarea { font-size: var(--t-base); padding: 9px 2px; }
  .keep .field textarea { min-height: 96px; }
}
.visit-form-note {
  font-size: var(--t-sm);
  color: var(--accent-deep);
  margin: 0;
}

.button-sm {
  padding: 7px 14px;
  font-size: var(--t-xs);
}
.visit-directions {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: var(--s-2);
}

@media (max-width: 560px) {
  .visit-form { gap: var(--s-5); }
  .field--half { grid-column: 1 / -1; }
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding-block: var(--s-9) var(--s-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--rule-on-dark);
}
.brand-mark-footer { width: auto; height: 56px; margin-bottom: var(--s-5); filter: none; }

.footer-tagline {
  font-family: var(--display);
  font-size: var(--t-md);
  font-weight: 500;
  color: var(--ink-on-dark);
  line-height: 1.4;
  margin-bottom: var(--s-4);
}
.footer-tagline span {
  display: block;
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: var(--s-2);
}
.footer-blurb {
  font-size: var(--t-sm);
  color: var(--ink-on-dark-muted);
  max-width: 38ch;
  line-height: 1.7;
}

.footer-col h3 {
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a {
  color: var(--ink-on-dark-muted);
  font-size: var(--t-sm);
  transition: color var(--d-fast) var(--ease-quiet);
}
.footer-col a:hover { color: var(--ink-on-dark); }
.footer-col p, .footer-col address {
  font-style: normal;
  color: var(--ink-on-dark-muted);
  font-size: var(--t-sm);
  line-height: 1.75;
  margin-bottom: var(--s-3);
}

/* Address moved under the brand tagline */
.footer-address {
  font-style: normal;
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  line-height: 1.8;
  color: var(--ink-on-dark-muted);
}
.footer-address a {
  color: var(--ink-on-dark-muted);
  transition: color var(--d-fast) var(--ease-quiet);
}
.footer-address a:hover { color: var(--ink-on-dark); }

/* Currently building → collapsible dropdown */
.footer-col-drop details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
}
.footer-col-drop summary::-webkit-details-marker { display: none; }
.footer-col-drop summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--d-base) var(--ease-firm);
  flex-shrink: 0;
}
.footer-col-drop details[open] summary::after { transform: rotate(-135deg); }
.footer-col-drop details > ul { margin-top: var(--s-5); }

.footer-bottom {
  margin-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-dark-muted);
}
.footer-credentials { color: var(--accent); }

/* ── ABOUT PAGE ──────────────────────────────────────────── */
/* Hero — centred brand lockup on warm stone, gold contour clusters
   bleeding off each corner and fading toward the centre. */
/* ── About hero — full-bleed photo + overlaid mission ── */
.about-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + var(--s-7)) 0 var(--s-9);
  background: var(--warm-stone);
  color: var(--ink);
}
/* WebGL shader background — subtle gold flowing lines on ink */
.hero-shader { position: absolute; inset: 0; z-index: 0; }
.hero-shader canvas { display: block; width: 100% !important; height: 100% !important; }
/* Vignette to ground the centred mission over the moving lines */
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 64% 56% at 50% 48%, rgba(245, 241, 234, 0.68), transparent 74%);
}
.about-hero-content { position: relative; z-index: 2; text-align: center; }
.about-hero-mark {
  display: block;
  width: clamp(96px, 12vw, 160px);
  height: auto;
  margin: 0 auto var(--s-5);
}
.about-hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 auto var(--s-5);
  max-width: 20ch;
  text-wrap: balance;
}
.about-hero-title em { font-style: normal; color: var(--accent-deep); }
.about-hero-sub {
  font-family: var(--text);
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--ink-on-dark-muted);
  max-width: 48ch;
  margin: 0 auto;
}

/* Scroll cue */
.about-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: var(--s-6);
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--bronze);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  opacity: 0.7;
  transition: opacity var(--d-base) var(--ease-quiet);
}
.about-hero-scroll:hover { opacity: 1; }
.about-hero-scroll span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--bronze);
  animation: scroll-bob 1600ms var(--ease-quiet) infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(7px); opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero-scroll span { animation: none; }
}
@media (max-width: 720px) {
  .about-hero { min-height: 88svh; }
}

.about-intro { background: var(--bg); }
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: center;
}
.about-intro-words h2 {
  font-weight: 300;
  margin-bottom: var(--s-5);
  text-wrap: balance;
}
.about-intro-words p {
  color: var(--ink-muted);
  max-width: 56ch;
  line-height: 1.75;
}
.about-intro-words p + p { margin-top: 1em; }
.about-intro-figure { margin: 0; }
.about-intro-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-intro-figure figcaption {
  margin-top: var(--s-3);
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.companies { background: var(--bg); }
.companies .section-head { text-align: center; margin-inline: auto; }
.companies .section-lede { margin-inline: auto; }
#companies-heading { color: var(--accent-deep); }

/* Group companies — centred logo rows (4 / 3 / 3), no tiles */
.logo-grid {
  margin: var(--s-7) auto 0;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-7) var(--s-9);
}
.logo-row img {
  width: auto;
  max-width: 260px;
  max-height: 130px;
  object-fit: contain;
}

/* ── What we do — capability bento (coloured block grid, SC-Asset inspired) ── */
.cap-bento { display: grid; grid-template-columns: repeat(6, 1fr); }
.cap-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-3);
  padding: clamp(24px, 3vw, 48px);
  min-height: clamp(150px, 15vw, 220px);
}
.cap-image { padding: 0; min-height: 0; overflow: hidden; background: var(--cap-sand); }
.cap-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cap-lead    { background: var(--cap-peach); }
.cap-develop { background: var(--cap-sage); }
.cap-build   { background: var(--cap-blush); }
.cap-manage  { background: var(--cap-sand); }

/* Row 1: image + lead (half each) · Row 2: Develop / Build / Manage (thirds) */
.cap-image, .cap-lead { grid-column: span 3; }
.cap-develop, .cap-build, .cap-manage { grid-column: span 2; }

.cap-overline {
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.55);
  margin: 0;
}
.cap-lead h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-xl);
  line-height: 1.04;
  color: var(--ink);
  margin: 0;
}
.cap-cell h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-lg);
  line-height: 1.06;
  color: var(--ink);
  margin: 0;
}
.cap-cell p {
  font-family: var(--text);
  font-size: var(--t-sm);
  line-height: 1.65;
  color: rgba(26, 26, 26, 0.74);
  margin: 0;
  max-width: 42ch;
}
@media (max-width: 760px) {
  .cap-bento { grid-template-columns: 1fr; }
  .cap-cell { grid-column: 1 / -1; min-height: 0; }
  .cap-image { min-height: 240px; }
}

/* ── Quiet craft — asymmetrical image + text ── */
.about-craft { background: var(--warm-stone); }
.about-craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: center;
}
.about-craft-figure { margin: 0; }
.about-craft-figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; }
.about-craft-words h2 { font-weight: 300; margin-bottom: var(--s-4); text-wrap: balance; }
.about-craft-words p { color: var(--ink-muted); line-height: 1.75; max-width: 52ch; }
.about-craft-words p + p { margin-top: 1em; }

/* ── Closing CTA band ── */
.about-cta { background: var(--pavilion-ink); color: var(--ink-on-dark); text-align: center; }
.about-cta-inner { max-width: 640px; margin-inline: auto; }
.about-cta h2 { color: var(--ink-on-dark); margin-bottom: var(--s-4); }
.about-cta h2 em { font-style: normal; color: var(--gold-bright); }
.about-cta p { color: var(--ink-on-dark-muted); margin: 0 auto var(--s-6); max-width: 44ch; }

/* About — tighter vertical rhythm (sections felt sparse) */
.about-intro,
.about-do,
.about-craft,
.companies,
.about-cta { padding-block: var(--s-8); }
.about-intro-grid,
.about-craft-grid { gap: var(--s-7); }

/* About — full-bleed sections (no left/right gutters) */
.about-hero .container,
.about-intro .container,
.about-do .container,
.about-craft .container,
.companies .container,
.about-cta .container {
  max-width: none;
  width: 100%;
  padding-inline: 0;
  margin-inline: 0;
}
/* …but give the two copy-led sections a small left gutter */
.about-intro .container,
.about-craft .container { padding-left: clamp(20px, 4vw, 64px); }

@media (max-width: 900px) {
  .about-craft-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .about-craft-figure { order: -1; }
}

@media (max-width: 900px) {
  .about-intro-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  main > section { padding-block: var(--s-9); }

  .trust { padding-block: var(--s-9) !important; }
  .trust-row { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .trust-row .trust-rule:nth-of-type(2) { display: none; }
  .trust-stat:last-child { grid-column: 1 / -1; }

  .quote-grid { grid-template-columns: 1fr; gap: var(--s-7); }

  .visit-grid { grid-template-columns: 1fr; gap: var(--s-7); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .footer-brand { grid-column: 1 / -1; }

  .map-placeholder { grid-template-columns: 1fr; gap: var(--s-6); padding: var(--s-7) var(--s-6); }

  /* Stacked card on mobile: 16/9 image on top, text below on dark — no black gap */
  .pf-link,
  .projects-stack .pf-link {
    display: block;
    height: auto;
    min-height: 0;
  }
  .pf-media {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .pf-link::after { display: none; }
  .pf-body {
    position: relative;
    height: auto;
    max-width: 100%;
    justify-content: flex-start;
    padding-bottom: var(--s-4);
  }
  .pf-card { margin-bottom: var(--s-5); }
  /* Button sits directly under the description, bottom-left aligned with the text.
     inset:auto resets the desktop rule's right/bottom offsets (else they shift the
     relatively-positioned button left & up, over the text). */
  .pf-register {
    position: relative;
    inset: auto;
    z-index: 5;
    display: inline-block;
    width: max-content;
    margin: 0 var(--s-7) var(--s-6);
    padding: 11px 20px;
    font-size: 11px;
  }
}

@media (max-width: 720px) {
  main > section { padding-block: var(--s-8); }

  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .hero { min-height: 92vh; min-height: 92svh; }
  .hero-slide { padding-bottom: 240px; }
  .hero-title { max-width: none; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1 1 auto; }

  .hero-foot { padding: var(--s-5) var(--container-px) var(--s-5); }
  .hero-foot-inner { flex-direction: column; align-items: stretch; gap: var(--s-5); }
  .hero-controls { justify-content: space-between; }
  .hero-indicator { width: 44px; height: 2px; }

  .value-item { grid-template-columns: 60px 1fr; gap: var(--s-5); padding-block: var(--s-6); }
  .value-num { font-size: 1.5rem; padding-top: 0.3em; }

  .trust { padding-block: var(--s-8) !important; }
  .trust-row { grid-template-columns: 1fr; gap: var(--s-6); }
  .trust-row .trust-rule { display: none; }

  .pf-card { margin-bottom: var(--s-5); }
  .pf-body { padding: var(--s-5); padding-bottom: var(--s-4); max-width: 100%; }
  /* Button aligned to the phone text padding (s-5) */
  .pf-register { margin: 0 var(--s-5) var(--s-5); }
  .pf-status { top: var(--s-3); right: var(--s-3); padding: 6px 10px; font-size: 0.6rem; }

  .press-row { gap: var(--s-5); }
  .press-name { flex: 1 1 45%; font-size: var(--t-sm); }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   PROJECT PAGES — hub (projects.html) + detail (first-vista.html …)
   ═══════════════════════════════════════════════════════════════ */

.projects-section { padding-block: var(--s-9); }
.projects-section + .projects-section { padding-top: 0; }

/* Hairline marking the shift from current developments to completed work.
   The adjacent sections supply the vertical air (96px above and below). */
.projects-divider hr {
  border: 0;
  height: 1px;
  margin: 0;
  background: var(--rule-strong);
}
.projects-section .section-head { margin-bottom: var(--s-6); }
/* Section heading inherits the global h2 (--t-xl / 400) — no override needed. */

/* ── Hub hero (reuses .project-hero; large centered title + whisper) ── */
.hub-hero { align-items: center; text-align: center; }
.hub-hero .project-hero-content { padding-block: var(--s-9); }
/* The interior render is very light — darken the centre so the white
   title and the whisper both read cleanly. */
.hub-hero .project-hero-overlay {
  background:
    radial-gradient(ellipse 75% 62% at 50% 48%, rgba(26, 26, 26, 0.58), rgba(26, 26, 26, 0) 72%),
    linear-gradient(to bottom, rgba(26, 26, 26, 0.28) 0%, rgba(26, 26, 26, 0.14) 45%, rgba(26, 26, 26, 0.42) 100%);
}
.hub-hero-title { font-size: var(--t-hero); line-height: 1.0; }
.hub-hero-whisper {
  margin-top: var(--s-5);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--t-md);
  letter-spacing: 0.01em;
  color: var(--ink-on-dark);
}

/* ── Hub filter — sticky under the nav (reuses .projects-segment / .segment-btn) ── */
.dev-filter {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-7);
  padding-block: var(--s-4);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.dev-filter-count {
  font-family: var(--text);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
[data-dev-filter="residential"] .dev-card[data-type="commercial"],
[data-dev-filter="commercial"]  .dev-card[data-type="residential"] { display: none; }

/* Location line with pin */
.dev-card-location,
.done-card-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dev-card-location svg,
.done-card-location svg { flex: none; color: var(--accent); }

/* ─────────────────────────────────────────────
   HUB — "currently building" grid (linked cards)
   ───────────────────────────────────────────── */
/* 3 cards on laptop, 2 on tablet/phone (per spec). */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7) var(--s-6);
}

.dev-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.dev-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Category label above the image ("Residential" / "Commercial") */
.dev-cat {
  margin-bottom: var(--s-3);
  font-family: var(--text);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.dev-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-sand);
}
.dev-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--d-slow) var(--ease-quiet);
}
.dev-card:hover .dev-card-media img { transform: scale(1.05); }

/* Bottom-left tag ("New project", "Launching 2026" …) */
.dev-tag {
  position: absolute;
  bottom: 0; left: 0;
  padding: 9px 16px;
  background: var(--accent);
  color: var(--paper-white);
  font-family: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 2;
}
.dev-tag[data-tone="sold"] { background: var(--soft-taupe); }
.dev-tag[data-tone="ink"]  { background: var(--pavilion-ink); }

/* Hover overlay — gold wash + "View More" */
.dev-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-left: 14%;
  background: color-mix(in srgb, var(--accent) 82%, transparent);
  color: var(--paper-white);
  font-family: var(--text);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity var(--d-base) var(--ease-quiet);
  z-index: 1;
}
.dev-card:hover .dev-hover,
.dev-card:focus-visible .dev-hover { opacity: 1; }
.dev-hover-btn {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--pavilion-ink);
  color: var(--paper-white);
}

/* Sold-out development — not a link. Hover/focus washes red and says "Sold out". */
.dev-card-sold { cursor: not-allowed; }
.dev-card-sold .dev-hover {
  padding-left: 0;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: color-mix(in srgb, var(--sold-red) 86%, transparent);
}
.dev-card-sold:hover .dev-card-media img { transform: none; }
.dev-card-sold:hover .dev-card-name,
.dev-card-sold:focus-visible .dev-card-name { color: var(--ink); }

.dev-card-body { padding-top: var(--s-4); }
.dev-card-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-md);
  line-height: 1.12;
  color: var(--ink);
}
.dev-card:hover .dev-card-name { color: var(--accent-deep); }

.dev-price {
  margin-top: var(--s-2);
  font-family: var(--text);
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--accent);
}
.dev-price small { font-size: 0.7em; font-weight: 500; }

/* Location line under the name */
.dev-card-loc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: var(--s-2);
  font-family: var(--text);
  font-size: var(--t-sm);
  color: var(--ink-muted);
}
.dev-card-loc svg { color: var(--accent); flex: none; }

/* Spec row: bedrooms · built-up size */
.dev-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  list-style: none;
  margin: var(--s-4) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}
.dev-specs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--text);
  font-size: var(--t-sm);
  color: var(--ink);
}
/* Icons sized to sit with the text, not shrink beneath it */
.dev-specs svg { color: var(--accent); flex: none; width: 20px; height: 20px; }
.dev-card-loc svg { width: 17px; height: 17px; }

/* Registration status */
.dev-reg {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: var(--s-4);
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.dev-reg::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.dev-reg[data-state="sold"]    { color: var(--soft-taupe); }
.dev-reg[data-state="selling"] { color: var(--accent-deep); }

/* Icon fact rows: icon · place (left) … value (right) */
.dev-facts {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
}
.dev-facts li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: var(--s-3);
  align-items: start;
  padding-block: var(--s-3);
  border-top: 1px solid var(--rule);
  font-family: var(--text);
  font-size: var(--t-sm);
  line-height: 1.35;
}
.dev-facts li:last-child { border-bottom: 1px solid var(--rule); }
.dev-fact-ico { color: var(--ink); margin-top: 1px; }
.dev-fact-place { color: var(--ink); }
.dev-fact-val { color: var(--ink-muted); text-align: right; white-space: nowrap; }

.dev-disclaimer {
  margin-top: var(--s-6);
  font-family: var(--text);
  font-size: var(--t-xs);
  color: var(--ink-muted);
}

/* 2 cards on tablet/phone */
@media (max-width: 980px) {
  .dev-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
  .dev-card-name { font-size: var(--t-md); }
  .dev-hover { padding-left: var(--s-5); }
  .dev-hover-btn { width: 44px; height: 44px; }
}
@media (max-width: 560px) {
  .dev-grid { gap: var(--s-6) var(--s-4); }
  .dev-tag { padding: 6px 11px; font-size: 0.64rem; }
  .dev-facts { font-size: var(--t-xs); }
  .dev-facts li { grid-template-columns: 18px 1fr auto; gap: var(--s-2); }
  /* Touch devices have no hover — keep the image clear */
  .dev-hover { display: none; }
}

/* ── Completed / contractor grids (unlinked) ── */
.done-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s-6);
}
.done-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.done-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-sand); }
.done-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.done-card-body { padding: var(--s-5); }
.done-card-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-md);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--s-1);
}
.done-card-location {
  font-family: var(--text);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.done-card-blurb {
  margin-top: var(--s-3);
  font-size: var(--t-sm);
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   DETAIL — full-bleed hero
   ───────────────────────────────────────────── */
.project-hero {
  position: relative;
  min-height: clamp(520px, 90vh, 960px);
  display: flex;
  align-items: flex-end;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--bg-dark);
}
.project-hero-media { position: absolute; inset: 0; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-hero-overlay {
  position: absolute; inset: 0;
  /* Soft warm gradient rising from the bottom; top of the image stays clear. */
  background: linear-gradient(to top,
    rgba(48, 36, 28, 0.84) 0%,
    rgba(48, 36, 28, 0.58) 20%,
    rgba(48, 36, 28, 0.30) 40%,
    rgba(48, 36, 28, 0.08) 56%,
    rgba(48, 36, 28, 0) 70%);
}
.project-hero-content { position: relative; width: 100%; padding-top: var(--s-8); padding-bottom: var(--s-5); }
/* Keep the white text legible without darkening the whole image */
.project-hero-title { text-shadow: 0 2px 36px rgba(20, 14, 10, 0.7), 0 1px 4px rgba(20, 14, 10, 0.5); }
.crumb, .project-hero-location { text-shadow: 0 1px 20px rgba(20, 14, 10, 0.75); }

.crumb {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  font-family: var(--text);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.crumb a { color: var(--ink-on-dark-muted); text-decoration: none; transition: color var(--d-fast); }
.crumb a:hover { color: var(--accent); }
.crumb span[aria-current] { color: var(--ink-on-dark); }
.crumb-sep { color: var(--ink-on-dark-muted); }

.project-hero-status {
  display: inline-block;
  margin-bottom: var(--s-4);
  padding: 7px 13px;
  background: rgba(184, 148, 95, 0.92);
  color: var(--pavilion-ink);
  font-family: var(--text);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.project-hero-status[data-tone="sold"] { background: rgba(236, 230, 218, 0.92); }

.project-hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-hero-sm);
  line-height: 1.02;
  color: var(--paper-white);
  text-wrap: balance;
}
.project-hero-location {
  margin-top: var(--s-4);
  font-family: var(--text);
  font-size: var(--t-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Hero actions: price + CTA */
.project-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.project-hero-price {
  font-family: var(--text);
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--ink-on-dark);
}
.project-hero-price span { color: var(--accent); }

/* ── Sticky sub-nav (Overview · Gallery · Location · Register) ── */
.project-subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  background: color-mix(in srgb, var(--paper-white) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.project-subnav-inner {
  display: flex;
  gap: var(--s-6);
  overflow-x: auto;
  scrollbar-width: none;
}
.project-subnav-inner::-webkit-scrollbar { display: none; }
.project-subnav a {
  position: relative;
  padding: var(--s-4) 0;
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--d-fast);
}
.project-subnav a:hover { color: var(--ink); }
.project-subnav a.is-active { color: var(--ink); }
.project-subnav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}

/* Offset anchored sections so they clear the nav + sub-nav */
.project-anchor { scroll-margin-top: calc(var(--nav-h) * 2 + 8px); }

/* ── Overview: lede + facts ── */
.project-overview { padding-block: var(--s-7); }
.project-overview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-9);
  align-items: start;
}
.project-lede p {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--t-lg);
  line-height: 1.35;
  color: var(--ink);
}
.project-lede p + p {
  margin-top: var(--s-5);
  font-family: var(--text);
  font-weight: 400;
  font-size: var(--t-base);
  line-height: 1.7;
  color: var(--ink-muted);
}
.project-facts { border-top: 1px solid var(--rule-strong); margin: 0; }
.project-facts div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.project-facts dt {
  font-family: var(--text);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.project-facts dd {
  margin: 0;
  font-family: var(--text);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

/* ── Gallery ── */
.project-gallery { padding-block: var(--s-7); }
.project-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.project-gallery-grid figure { margin: 0; overflow: hidden; background: var(--bg-sand); }
.project-gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 2;
  transition: transform var(--d-slow) var(--ease-quiet);
}
.project-gallery-grid figure:hover img { transform: scale(1.03); }
.project-gallery-grid figure.is-wide { grid-column: 1 / -1; }
.project-gallery-grid figure.is-wide img { aspect-ratio: 16 / 7; }

/* ── Context / location band (on sand) ── */
.project-context { background: var(--bg-sand); padding-block: var(--s-7); }
.project-context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.project-context h2 {
  line-height: 1.05;
  margin-bottom: var(--s-4);
}
.project-context p { font-size: var(--t-base); line-height: 1.75; color: var(--ink-muted); }
.project-context p + p { margin-top: var(--s-4); }
.project-address {
  margin-top: var(--s-5);
  font-family: var(--text);
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--ink);
}
.project-context .button { margin-top: var(--s-5); }
.project-context figure { margin: 0; overflow: hidden; }
.project-context figure img { width: 100%; display: block; }

/* Nearby places list (filled in per project) */
.project-nearby { margin-top: var(--s-8); }
.nearby-list {
  list-style: none;
  margin: var(--s-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 var(--s-7);
}
.nearby-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
  font-family: var(--text);
  font-size: var(--t-sm);
}
.nearby-place { color: var(--ink); }
.nearby-val { color: var(--ink-muted); white-space: nowrap; }
.nearby-empty { color: var(--ink-muted); border-bottom: 0; }

/* Embedded map (Google Maps iframe) */
.project-map-frame { margin: 0; overflow: hidden; background: var(--bg-sand); }
.project-map {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
}

/* ── Gallery: expanding image accordion (vanilla, GP-themed) ── */
.fv-accordion {
  display: flex;
  gap: var(--s-2);
  height: clamp(320px, 56vh, 520px);
  margin-top: var(--s-6);
}
.fv-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 54px;
  overflow: hidden;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--bg-sand);
  transition: flex var(--d-slow) var(--ease-firm);
}
.fv-panel.is-active { flex: 6 1 0; }
.fv-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fv-panel img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--d-slow) var(--ease-quiet);
}
.fv-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.74) 0%, rgba(26,26,26,0.12) 42%, transparent 68%);
}
.fv-panel-label {
  position: absolute;
  left: 0; right: 0;
  bottom: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 0 var(--s-5);
  z-index: 2;
  pointer-events: none;
}
.fv-panel-icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(236, 230, 218, 0.4);
  color: var(--paper-white);
}
.fv-panel-text {
  color: var(--paper-white);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity var(--d-base) var(--ease-quiet), transform var(--d-base) var(--ease-quiet);
}
.fv-panel.is-active .fv-panel-text { opacity: 1; transform: none; }
.fv-panel-title {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-md);
  line-height: 1.05;
}
.fv-panel-sub {
  display: block;
  font-family: var(--text);
  font-size: var(--t-sm);
  color: var(--ink-on-dark-muted);
}

@media (max-width: 640px) {
  .fv-accordion { height: 400px; }
  .fv-panel { min-width: 40px; }
  .fv-panel-sub { display: none; }
  .fv-panel-label { gap: var(--s-3); padding: 0 var(--s-4); bottom: var(--s-4); }
}

/* ── Layout / floor-plan section ── */
.project-layouts { padding-block: var(--s-7); }
.project-specs { padding-block: var(--s-7); }
/* Register section uses shared .visit (no padding) — halve it here too */
/* ── Register section — full-bleed image + floating pill form (Canva draft) ── */
.fv-register {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: var(--s-6);
}
.fv-register-bg { position: absolute; inset: 0; }
.fv-register-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Hero + register span the full page width (content reaches the edges) */
.project-hero .container,
.fv-register .container { max-width: none; }
.fv-register .container { position: relative; width: 100%; }

.fv-register-col {
  max-width: 460px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
/* Logo matches the pill-box width, but caps its height on short screens */
.fv-register-logo {
  width: 100%;
  max-height: 26svh;
  object-fit: contain;
  object-position: right center;
  height: auto;
  margin-bottom: var(--s-3);
}
/* Text heading shown when a project has no logo (or the logo fails to load) */
.fv-register-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-lg);
  line-height: 1.08;
  color: var(--ink);
}
.fv-register-sub {
  font-family: var(--text);
  font-size: var(--t-sm);
  color: var(--ink-muted);
  margin-bottom: var(--s-2);
}
/* Lakeview: form tucked behind a button so the backdrop shows; pressing
   "Register your interest" slides it open. Progressive enhancement — without
   JS the form is simply visible and the button stays hidden. */
.fv-reg-open { align-self: flex-start; }
.fv-reg-reveal {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.55s var(--ease-quiet), opacity 0.45s ease;
}
.fv-reg-reveal[data-collapsed] { grid-template-rows: 0fr; opacity: 0; }
.fv-reg-reveal-inner { overflow: hidden; min-height: 0; }
@media (prefers-reduced-motion: reduce) {
  .fv-reg-reveal { transition: none; }
}

/* Showcase backdrop (e.g. Lakeview): a soft scrim lifts the watermark so the
   light heading/sub read, while the illustration still shows through. */
.fv-register--dark .fv-register-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 26, 26, 0.66) 0%,
    rgba(26, 26, 26, 0.42) 45%,
    rgba(26, 26, 26, 0.16) 100%
  );
}
.fv-register--dark .fv-register-title { color: var(--ink-on-dark); }
.fv-register--dark .fv-register-sub { color: var(--ink-on-dark-muted); }

.fv-reg-form { display: flex; flex-direction: column; gap: var(--s-3); }

.fv-pill {
  width: 100%;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--paper-white);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-sm);
  text-align: center;
  box-shadow: 0 10px 26px rgba(26, 26, 26, 0.12);
}
.fv-pill::placeholder { color: var(--soft-taupe); }
.fv-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
select.fv-pill { appearance: none; -webkit-appearance: none; text-align-last: center; cursor: pointer; }
.fv-pill-area {
  border-radius: 24px;
  min-height: 84px;
  padding-top: 16px;
  resize: vertical;
  text-align: center;
  font-family: var(--text);
}
.fv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.fv-reg-actions { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-2); }
.fv-pill-submit {
  padding: 15px 44px;
  border: 0;
  border-radius: 999px;
  background: var(--pavilion-ink);
  color: var(--paper-white);
  font-family: var(--text);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.18);
  transition: background var(--d-base) var(--ease-firm);
}
.fv-pill-submit:hover { background: var(--accent); }
.fv-reg-note { font-size: var(--t-xs); color: var(--ink); }

@media (max-width: 720px) {
  .fv-register { min-height: 100svh; padding-block: var(--s-5); }
  .fv-register-col { max-width: none; margin: 0; }
  .fv-register-logo { max-height: 18svh; object-position: center; }
  .fv-register-logo { align-self: center; }
  .fv-pill { text-align: left; }
  select.fv-pill { text-align-last: left; }
  .fv-pill-area { text-align: left; }
  .fv-reg-actions { align-items: stretch; }
  .fv-pill-submit { width: 100%; }
}

/* In-page plan sits at a comfortable size; the Zoom lightbox handles detail. */
.project-layouts .plan-view {
  max-width: 900px;
  margin-inline: auto;
}
@media (min-width: 561px) {
  .project-layouts .plan-figure img { max-height: 78vh; width: auto; }
}

/* Multi-image plan — e.g. ground floor + first floor shown side by side */
.plan-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: start;
}
.plan-stack figure { margin: 0; }
.project-layouts .plan-stack img { width: 100%; height: auto; max-height: 70vh; }
.plan-stack figcaption,
.plan-figure-caption {
  margin-top: var(--s-3);
  text-align: center;
  font-family: var(--text);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
@media (max-width: 560px) {
  .plan-stack { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* Detail-page section headings inherit the global h2 (--t-xl / 400).
   On the Layout section the floor plan is the hero, so the heading is held
   one step smaller and lighter — clearly supporting, not competing. */
.project-layouts .section-head h2 { font-size: var(--t-lg); font-weight: 400; color: var(--ink-muted); }
/* Consistent heading→content gap across all detail sections */
.project-layouts .section-head,
.project-specs .section-head { margin-bottom: var(--s-6); }
.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-6);
  margin-top: var(--s-6);
}
.layout-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.layout-plan {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, var(--sand), var(--sand) 12px, var(--warm-stone) 12px, var(--warm-stone) 24px);
  color: var(--ink-muted);
  text-align: center;
}
.layout-plan img { width: 100%; height: 100%; object-fit: contain; }
.layout-plan span {
  font-family: var(--text);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  padding: var(--s-3) var(--s-4);
  background: color-mix(in srgb, var(--paper-white) 80%, transparent);
}
.layout-body { padding: var(--s-5); }
.layout-body h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-md);
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.layout-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  list-style: none;
  margin: 0 0 var(--s-4);
  padding: 0;
  font-family: var(--text);
  font-size: var(--t-sm);
  color: var(--ink-muted);
}
.layout-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  text-decoration: none;
}
.layout-link:hover { color: var(--ink); }

/* Layout showcase: plan placeholder + icon specs */
.layout-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  margin-top: var(--s-6);
}
.layout-plan--lg { aspect-ratio: 4 / 3; }
.layout-detail h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-lg);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.layout-price {
  font-family: var(--text);
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--s-5);
}
.layout-price small { font-size: 0.7em; font-weight: 500; }
.spec-row {
  list-style: none;
  margin: var(--s-5) 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4) var(--s-5);
}
.spec-row li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--text);
  font-size: var(--t-sm);
  color: var(--ink);
}
.spec-row svg { color: var(--accent); flex: none; }

@media (max-width: 860px) {
  .layout-showcase { grid-template-columns: 1fr; gap: var(--s-6); }
  .layout-plan--lg { order: -1; }
}

/* Floor-plan toggle (Intermediate / Corner) */
.plan-toggle {
  display: flex;
  justify-content: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin: var(--s-6) 0 var(--s-4);
}
.plan-tab {
  position: relative;
  flex: 0 1 200px;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--s-3) var(--s-4);
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background var(--d-base) var(--ease-quiet),
              color var(--d-base) var(--ease-quiet),
              border-color var(--d-base) var(--ease-quiet);
}
.plan-tab:hover { border-color: var(--accent-deep); }
.plan-tab.is-active {
  background: var(--pavilion-ink);
  border-color: var(--pavilion-ink);
  color: var(--ink-on-dark);
}
.plan-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 11px solid var(--pavilion-ink);
}
.plan-tab-kicker {
  font-family: var(--text);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.plan-tab-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-base);
  line-height: 1.05;
}
.plan-tab-specs {
  font-family: var(--text);
  font-size: var(--t-xs);
  color: inherit;
  opacity: 0.85;
}
.plan-tab-lot {
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--accent);
}

/* Transparent plan PNGs — no panel. The plan is the dominant element of the
   Layout section, so it runs the full content width with generous breathing
   room above. (PNGs have baked-in whitespace; we scale as large as the
   container allows to counteract it.) */
.plan-view { position: relative; background: transparent; border: 0; padding: 0; margin-top: var(--s-2); }

/* Zoom affordance on the in-page plan */
.plan-zoom {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: rgba(26, 26, 26, 0.82);
  color: var(--paper-white);
  border: 0;
  border-radius: 999px;
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--d-fast);
}
.plan-zoom:hover { background: var(--pavilion-ink); }
.plan-figure img { cursor: zoom-in; }

.field-opt { color: var(--ink-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* Fullscreen zoom lightbox */
.plan-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 18, 16, 0.95);
}
.plan-lightbox[hidden] { display: none; }
.plan-lightbox-stage {
  position: absolute;
  inset: 0;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 5vw, 64px);
  -webkit-overflow-scrolling: touch;
}
.plan-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  transition: width var(--d-base) var(--ease-quiet);
  cursor: zoom-in;
}
.plan-lightbox-img.is-zoomed {
  max-width: none;
  max-height: none;
  width: 200%;
  margin: 0 auto;
  cursor: zoom-out;
}
.plan-lightbox-close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 2;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 241, 234, 0.14);
  color: var(--paper-white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.plan-lightbox-close:hover { background: rgba(245, 241, 234, 0.26); }
.plan-lightbox-hint {
  position: absolute;
  bottom: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--text);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: rgba(245, 241, 234, 0.7);
  pointer-events: none;
}
.plan-figure { margin: 0; }
.plan-figure[hidden] { display: none; }
.plan-figure img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
}

@media (max-width: 560px) {
  .plan-toggle { gap: var(--s-3); }
  .plan-tab { flex: 1 1 0; min-width: 0; min-height: 76px; border-radius: 8px; padding: var(--s-3) var(--s-2); }
  .plan-tab-kicker { font-size: 0.52rem; }
  .plan-tab-title { font-size: var(--t-sm); }
  .plan-tab-specs, .plan-tab-lot { font-size: 0.72rem; }
  .plan-figure img { max-height: none; max-width: 100%; }
  .plan-zoom { top: var(--s-2); right: var(--s-2); padding: 7px 11px; }
}

/* ── "More developments" row ── */
.project-more { padding-block: var(--s-9); }
.project-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.project-more-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-5) var(--s-5) var(--s-6);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--d-base) var(--ease-quiet);
}
.project-more-card:hover { border-color: var(--accent); }
.project-more-card .pm-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-md);
  color: var(--ink);
}
.project-more-card .pm-loc {
  font-family: var(--text);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 860px) {
  .project-overview-grid,
  .project-context-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .project-context figure { order: -1; }
}
@media (max-width: 560px) {
  .project-gallery-grid { grid-template-columns: 1fr; }
  .project-hero { min-height: 64vh; }
}

/* ═══════════════════════════════════════════════════════════════
   NEWS & ACTIVITIES (media.html)
   ═══════════════════════════════════════════════════════════════ */
.news-head { padding-block: var(--s-9) var(--s-6); }
.news-lede {
  max-width: 56ch;
  margin-top: var(--s-4);
  font-family: var(--text);
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--ink-muted);
}
.news-section { padding-bottom: var(--s-9); }
.news-filter { margin-bottom: var(--s-7); }

/* Category filter hide rules */
[data-news-filter="news"] [data-type="activities"],
[data-news-filter="activities"] [data-type="news"] { display: none; }

/* Featured story */
.news-featured { margin-bottom: var(--s-7); }
.news-featured-link {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-7);
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.news-featured-media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-sand); }
.news-featured-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--d-slow) var(--ease-quiet);
}
.news-featured-link:hover .news-featured-media img { transform: scale(1.04); }
.news-featured-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-xl);
  line-height: 1.08;
  color: var(--ink);
  margin: var(--s-3) 0 var(--s-3);
  text-wrap: balance;
}
.news-featured-link:hover .news-featured-title { color: var(--accent-deep); }

/* Card grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-7) var(--s-6);
}
.news-card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.news-card-media { overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-sand); }
.news-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--d-slow) var(--ease-quiet);
}
.news-card-link:hover .news-card-media img { transform: scale(1.05); }
.news-card-body { padding-top: var(--s-4); }
.news-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-md);
  line-height: 1.15;
  color: var(--ink);
  margin: var(--s-2) 0;
}
.news-card-link:hover .news-title { color: var(--accent-deep); }

/* Shared meta + link bits */
.news-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--text);
  font-size: var(--t-xs);
}
.news-cat {
  padding: 4px 10px;
  background: var(--accent);
  color: var(--paper-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.62rem;
}
.news-date { color: var(--ink-muted); letter-spacing: 0.04em; }
.news-source {
  font-family: var(--text);
  font-size: var(--t-sm);
  color: var(--ink-muted);
  margin-bottom: var(--s-3);
}
.news-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.news-link svg { transition: transform var(--d-base) var(--ease-firm); }
.news-card-link:hover .news-link svg,
.news-featured-link:hover .news-link svg { transform: translate(3px, -3px); }

.news-empty {
  padding-block: var(--s-8);
  text-align: center;
  font-family: var(--text);
  color: var(--ink-muted);
}

@media (max-width: 820px) {
  .news-featured-link { grid-template-columns: 1fr; gap: var(--s-5); }
  .news-featured-media { aspect-ratio: 16 / 9; }
}

/* ═══════════════════════════════════════════════════════════════
   VISIT US (contact.html)
   ═══════════════════════════════════════════════════════════════ */
.visit-card-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-lg);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.visit-card-intro {
  font-family: var(--text);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: var(--s-5);
}
.visit--sand { background: var(--bg-sand); }

/* Picnic hero — a banner, not a full-screen hero */
.contact-hero { min-height: clamp(420px, 62vh, 640px); }

/* Closing: child's drawing + line */
.contact-note { padding-block: var(--s-9); text-align: center; }
.contact-note-figure {
  margin: 0 auto var(--s-6);
  max-width: 420px;
  overflow: hidden;
}
.contact-note-figure img { width: 100%; height: auto; display: block; }
.contact-note-line {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--t-xl);
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}
.contact-note-line em { font-style: italic; color: var(--accent-deep); }

/* ── COMPLETED-PROJECTS 3D GALLERY (projects.html) ─────────── */
.completed-intro {
  position: relative;
  height: 62vh;
  min-height: 430px;
  overflow: hidden;
  background: var(--warm-stone); /* brighter field, not black */
  isolation: isolate;
}
.gallery3d {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.gallery3d canvas { display: block; width: 100% !important; height: 100% !important; }

/* Heading sits over the photos; a soft warm-stone glow keeps it legible.
   pointer-events:none so the wheel still reaches the gallery canvas. */
.completed-intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--s-3);
  padding: var(--container-px);
  pointer-events: none;
  background: radial-gradient(ellipse 52% 42% at 50% 50%, rgba(245, 241, 234, 0.82), rgba(245, 241, 234, 0) 76%);
}
.completed-intro-overlay h2 {
  font-size: var(--t-xxl);
  font-weight: 300;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.completed-intro-overlay h2 em { font-style: italic; color: var(--accent-deep); }
.completed-intro-overlay > p {
  color: var(--ink-muted);
  font-size: var(--t-md);
  max-width: 44ch;
  margin: 0;
}
.completed-intro-hint {
  margin-top: var(--s-6);
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

@media (max-width: 720px) {
  .completed-intro { height: 52vh; min-height: 360px; }
}

/* ── WORKS CAROUSEL (projects.html) ────────────────────────── */
.works { background: var(--bg); overflow: hidden; }
.works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}
.works-head h2 { font-weight: 300; margin-top: var(--s-3); text-wrap: balance; }
.works-nav { display: flex; gap: var(--s-3); flex-shrink: 0; }
.works-arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--d-base) var(--ease-firm), color var(--d-base) var(--ease-firm),
              border-color var(--d-base) var(--ease-firm), opacity var(--d-base) var(--ease-firm);
}
.works-arrow:hover { background: var(--ink); color: var(--paper-white); border-color: var(--ink); }
.works-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.works-arrow:disabled:hover { background: var(--bg-card); color: var(--ink); border-color: var(--rule-strong); }

/* Track scrolls full-bleed; first card aligns with the container edge */
.works-track {
  display: flex;
  gap: var(--s-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-inline: max(var(--container-px), calc((100vw - var(--container-w)) / 2));
  padding-bottom: var(--s-2);
}
.works-track::-webkit-scrollbar { display: none; }

.work-card {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
}
.work-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--charcoal-brown);
  margin-bottom: var(--s-4);
}
.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-firm);
}
.work-card:hover .work-card-media img { transform: scale(1.04); }
.work-tag {
  position: absolute;
  bottom: var(--s-4);
  left: var(--s-4);
  font-family: var(--text);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(245, 241, 234, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 6px 11px;
}
.work-card-name {
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px 0;
  line-height: 1.15;
}
.work-card-loc {
  font-family: var(--text);
  font-size: var(--t-sm);
  color: var(--ink-muted);
  margin: 0;
}

@media (max-width: 720px) {
  .works-head { flex-direction: column; align-items: flex-start; }
  .works-nav { display: none; } /* swipe on mobile */
  .work-card { width: 76vw; max-width: 300px; }
}

/* ── About page — a touch more side padding on contained sections ── */
.page-about .container { padding-inline: calc(var(--container-px) + var(--s-4)); }

/* ── Floating contact button ───────────────────────────────── */
.fab {
  position: fixed;
  right: var(--s-5);
  bottom: var(--s-5);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-3);
}
.fab-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--pavilion-ink);
  border: 0;
  cursor: pointer;
  transition: background var(--d-base) var(--ease-firm), color var(--d-base) var(--ease-firm), transform var(--d-base) var(--ease-firm);
}
.fab-toggle:active { transform: scale(0.94); }
.fab-toggle:hover { background: var(--accent-deep); color: var(--paper-white); }
.fab-toggle-icon { display: inline-flex; }
.fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-2);
}
.fab-menu[hidden] { display: none; }
.fab-item {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--paper-white);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  font-family: var(--text);
  font-size: var(--t-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--d-base) var(--ease-firm), color var(--d-base) var(--ease-firm), border-color var(--d-base) var(--ease-firm);
}
.fab-item:hover { background: var(--ink); color: var(--paper-white); border-color: var(--ink); }
.fab.is-open .fab-menu { animation: fab-rise 260ms var(--ease-firm) both; }
@keyframes fab-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.footer-legal a {
  color: var(--ink-on-dark-muted);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  transition: color var(--d-fast) var(--ease-quiet);
}
.footer-legal a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .fab { right: var(--s-4); bottom: var(--s-4); }
  .fab-toggle { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .fab.is-open .fab-menu { animation: none; }
}

/* ── Legal pages (privacy / terms) ─────────────────────────── */
.legal {
  padding-top: calc(var(--nav-h) + var(--s-8));
  padding-bottom: var(--s-9);
  background: var(--bg);
}
.legal h1 {
  font-size: var(--t-xxl);
  font-weight: 300;
  margin: var(--s-3) 0 var(--s-5);
}
.legal h2 {
  font-size: var(--t-lg);
  font-weight: 500;
  margin: var(--s-7) 0 var(--s-3);
}
.legal p {
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: var(--s-4);
  max-width: 70ch;
}
.legal a { color: var(--accent-deep); border-bottom: 1px solid currentColor; }
.legal a:hover { color: var(--ink); }
.legal-note {
  background: var(--bg-sand);
  border-left: 3px solid var(--accent);
  padding: var(--s-4) var(--s-5);
  color: var(--ink) !important;
  font-size: var(--t-sm);
  max-width: none !important;
}
.legal-meta { font-size: var(--t-sm); color: var(--ink-muted); }
