/*  Responsive media overrides belong in the final responsive layer, after component and section defaults. Keep max-width breakpoints wide-to-narrow. */

@layer reset, tokens, base, layout, components, sections, utilities, responsive;

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select, textarea { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3, h4, p { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   Tokens: approved brand hues, surface roles, type, spacing and elevation
   -------------------------------------------------------------------------- */
@layer tokens {
  :root {
    --forest: #033C25;
    --forest-deep: #022F1D;
    --forest-mid: #0B5637;
    --leaf: #1D7A1F;
    --fresh: #519C17;
    --lime: #7DB81A;
    --soft-lime: #C8DCBA;
    --engineering: #125486;
    --amber: #F2A900;
    --red: #D62839;
    --ink: #0B1B14;
    --ivory: #F7F5EE;
    --sand: #ECE7DA;
    --hairline: #D9D3C3;
    --white: #FFFFFF;
    --line-sage: #C9D7C5;
    --line-sand: #CFC8B8;
    --sale-wash: #FCE8E9;
    --sale-ink: #A20E20;
    --rent-wash: #E5F0F8;
    --amber-wash: #FFF2D6;
    --graphite: #343A40;
    --graphite-wash: #ECEEEF;
    --header-scrim: rgba(247,245,238,.97);
    --surface-photo-chip: rgba(2,47,29,.78);
    --surface-card-dark: rgba(255,255,255,.06);
    --white-photo: rgba(255,255,255,.94);
    --shadow-mobile-bar: 0 -8px 28px rgba(3,60,37,.08);
    --red-ink: #A20E20;
    --lightbox-backdrop: rgba(2,47,29,.96);
    --logo-tile-border: rgba(10,30,90,.16);

    --muted: #465A4F;
    --muted-2: #5C6D63;
    --eyebrow-light: #17691A;
    --surface-sage: #EEF4E8;
    --surface-sage-2: #E5EEE1;
    --surface-sand: #ECE7DA;
    --surface-paper: #FFFFFF;
    --surface-ivory: #F7F5EE;
    --surface-dark: #033C25;
    --surface-deep: #022F1D;
    --surface-graphite: var(--graphite);
    --surface-graphite-wash: var(--graphite-wash);
    --text-dark: #0B1B14;
    --text-muted-light: #465A4F;
    --text-on-dark: rgba(255,255,255,.88);
    --text-muted-on-dark: rgba(255,255,255,.70);
    --text-subtle-on-dark: rgba(255,255,255,.82);
    --eyebrow-on-dark: #7DB81A;
    --line-on-dark: rgba(255,255,255,.20);
    --line-on-photo: rgba(255,255,255,.30);
    --chip-dark-bg: rgba(255,255,255,.10);
    --chip-dark-fg: #FFFFFF;
    --input-bg: #FFFFFF;
    --input-border: #C9D1C9;
    --input-placeholder: #596B60;
    --focus-ring: rgba(29,122,31,.22);
    --dark-focus-ring: rgba(125,184,26,.28);
    --forest-shadow-sm: 0 6px 18px rgba(3,60,37,.06);
    --forest-shadow-md: 0 14px 38px rgba(3,60,37,.10);
    --forest-shadow-lg: 0 26px 70px rgba(3,60,37,.15);
    --forest-shadow-dark: 0 20px 58px rgba(0,0,0,.22);
    --forest-glow: rgba(125,184,26,.11);
    --forest-glow-soft: rgba(125,184,26,.06);
    --scrim-strong: rgba(2,47,29,.92);
    --scrim-mid: rgba(2,47,29,.72);
    --scrim-soft: rgba(2,47,29,.12);

    --display: "EB Garamond", "AS Serif Fallback", Georgia, serif;
    --body: "AS Inter", "AS Inter Fallback", Inter, "Segoe UI", Arial, sans-serif;
    --mono: "AS Inter", Inter, "Segoe UI", Arial, sans-serif;
    --wrap: 1240px;
    --gutter: 32px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 96px;
    --space-8: 128px;
    --space-section: clamp(80px, 10vw, 152px);
    --radius-control: 12px;
    --radius-card: 22px;
    --radius-large: 28px;
    --radius-pill: 999px;
    --ease: cubic-bezier(.22,1,.36,1);
    --fast: 160ms;
    --normal: 240ms;
    --slow: 600ms;

    --surface-fg: var(--ink);
    --surface-muted: var(--muted);
    --surface-subtle: var(--muted-2);
    --surface-eyebrow: var(--eyebrow-light);
    --surface-accent: var(--leaf);
    --surface-line: var(--hairline);
    --surface-chip-bg: var(--sand);
    --surface-chip-fg: var(--forest);
    color-scheme: light;
    --topline-height: 36px;
    --header-height: 82px;
  }

  [data-surface="light"] {
    --surface-fg: var(--ink);
    --surface-muted: var(--muted);
    --surface-subtle: var(--muted-2);
    --surface-eyebrow: var(--eyebrow-light);
    --surface-accent: var(--leaf);
    --surface-line: var(--hairline);
    --surface-chip-bg: var(--sand);
    --surface-chip-fg: var(--forest);
    color: var(--surface-fg);
  }
  [data-surface="sage"] {
    --surface-fg: var(--ink);
    --surface-muted: var(--muted);
    --surface-subtle: var(--muted-2);
    --surface-eyebrow: var(--eyebrow-light);
    --surface-accent: var(--leaf);
    --surface-line: var(--line-sage);
    --surface-chip-bg: var(--surface-sage-2);
    --surface-chip-fg: var(--forest);
    color: var(--surface-fg);
  }
  [data-surface="sand"] {
    --surface-fg: var(--ink);
    --surface-muted: var(--muted);
    --surface-subtle: var(--muted-2);
    --surface-eyebrow: var(--eyebrow-light);
    --surface-accent: var(--leaf);
    --surface-line: var(--line-sand);
    --surface-chip-bg: var(--white);
    --surface-chip-fg: var(--forest);
    color: var(--surface-fg);
  }
  [data-surface="dark"] {
    --surface-fg: var(--white);
    --surface-muted: var(--text-on-dark);
    --surface-subtle: var(--text-muted-on-dark);
    --surface-eyebrow: var(--eyebrow-on-dark);
    --surface-accent: var(--lime);
    --surface-line: var(--line-on-dark);
    --surface-chip-bg: var(--chip-dark-bg);
    --surface-chip-fg: var(--chip-dark-fg);
    color: var(--surface-fg);
  }
  [data-surface="deep"] {
    --surface-fg: var(--white);
    --surface-muted: var(--text-on-dark);
    --surface-subtle: var(--text-muted-on-dark);
    --surface-eyebrow: var(--eyebrow-on-dark);
    --surface-accent: var(--lime);
    --surface-line: var(--line-on-dark);
    --surface-chip-bg: var(--chip-dark-bg);
    --surface-chip-fg: var(--chip-dark-fg);
    color: var(--surface-fg);
  }
  [data-surface="photo"] {
    --surface-fg: var(--white);
    --surface-muted: var(--text-on-dark);
    --surface-subtle: var(--text-muted-on-dark);
    --surface-eyebrow: var(--eyebrow-on-dark);
    --surface-accent: var(--lime);
    --surface-line: var(--line-on-photo);
    --surface-chip-bg: var(--surface-photo-chip);
    --surface-chip-fg: var(--white);
    color: var(--surface-fg);
  }
}

/* --------------------------------------------------------------------------
   Base: local fonts, text, accessibility and browser defaults
   -------------------------------------------------------------------------- */
@layer base {
  @font-face {
    font-family: "EB Garamond";
    src: url("/assets/fonts/ebgaramond-regular-latin.woff2") format("woff2");
    font-style: normal; font-weight: 400; font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F, U+2000-206F;
  }
  @font-face {
    font-family: "EB Garamond";
    src: url("/assets/fonts/ebgaramond-italic-latin.woff2") format("woff2");
    font-style: italic; font-weight: 400; font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F, U+2000-206F;
  }
  @font-face {
    font-family: "AS Inter";
    src: url("/assets/fonts/inter-regular-latin.woff2") format("woff2");
    font-style: normal; font-weight: 400; font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F, U+2000-206F;
  }
  @font-face {
    font-family: "AS Inter";
    src: url("/assets/fonts/inter-regular-ext.woff2") format("woff2");
    font-style: normal; font-weight: 400; font-display: swap;
    unicode-range: U+20A6, U+20AC, U+2018-201F, U+2013-2014, U+2022;
  }
  @font-face {
    font-family: "AS Inter";
    src: url("/assets/fonts/inter-semibold-latin.woff2") format("woff2");
    font-style: normal; font-weight: 600; font-display: swap;
    unicode-range: U+0000-00FF, U+0100-024F, U+2000-206F;
  }
  @font-face {
    font-family: "AS Inter";
    src: url("/assets/fonts/inter-semibold-ext.woff2") format("woff2");
    font-style: normal; font-weight: 600; font-display: swap;
    unicode-range: U+20A6, U+20AC, U+2018-201F, U+2013-2014, U+2022;
  }
  @font-face {
    font-family: "AS Serif Fallback";
    src: local("Georgia");
    size-adjust: 96%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%;
  }
  @font-face {
    font-family: "AS Inter Fallback";
    src: local("Arial");
    size-adjust: 100%; ascent-override: 91%; descent-override: 23%; line-gap-override: 0%;
  }
  html { scroll-padding-top: calc(var(--header-height) + 22px); }
  body {
    background: var(--ivory); color: var(--ink); font-family: var(--body);
    font-size: 16px; line-height: 1.68; -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  ::selection { background: var(--lime); color: var(--forest); }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--ivory); }
  ::-webkit-scrollbar-thumb { background: var(--forest-mid); border: 2px solid var(--ivory); border-radius: var(--radius-pill); }
  .wrap { width: min(var(--wrap), calc(100% - (var(--gutter) * 2) - env(safe-area-inset-left) - env(safe-area-inset-right))); margin-inline: auto; }
  .skip-link { position: absolute; z-index: 10000; left: 16px; top: -80px; padding: 12px 18px; border-radius: 10px; background: var(--forest); color: var(--white); }
  .skip-link:focus { top: 16px; }
  .visually-hidden, .honeypot, .netlify-detection { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  h1, h2, .display { color: var(--forest); font-family: var(--display); font-weight: 400; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
  h1 { font-size: clamp(44px, 6vw, 88px); }
  h2 { font-size: clamp(34px, 4.1vw, 56px); }
  h3 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.18; }
  p, li { text-wrap: pretty; }
  p { max-width: 68ch; }
  small { font-size: 12px; }
  .mono, .price, .card-price, .featured-price, .result-card strong, .detail-spec strong, .spec-readout strong { font-family: var(--body); font-variant-numeric: tabular-nums; letter-spacing: -.015em; }
  .muted, .text-muted { color: var(--muted); }
  .u-text-on-dark-muted { color: var(--text-on-dark); }
  .icon { flex: 0 0 auto; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  :where(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; box-shadow: 0 0 0 4px var(--focus-ring); }
  .section-dark :where(button, a, input, select, textarea, summary):focus-visible,
  .site-footer :where(button, a, input, select, textarea, summary):focus-visible,
  .lightbox :where(button, a):focus-visible { outline-color: var(--lime); box-shadow: 0 0 0 4px var(--dark-focus-ring); }
  #main:focus:not(:focus-visible) { outline: none; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    #app.route-enter { animation: none !important; }
  }
}

/* --------------------------------------------------------------------------
   Layout: shell, sections, grids and responsive structure
   -------------------------------------------------------------------------- */
@layer layout {
  #app { min-height: 50vh; min-height: 50svh; min-height: 50dvh; min-width: 0; }
  #app.route-enter { animation: routeFade 240ms var(--ease) both; }
  .section { padding-block: var(--space-section); background: var(--surface-ivory); }
  .section-sm { padding-block: clamp(56px, 7vw, 92px); }
  .section-dark { position: relative; overflow: hidden; background: var(--forest); color: var(--white); }
  .section-dark > .wrap { position: relative; z-index: 1; }
  .section-dark.blueprint::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .055;
    background-image: linear-gradient(var(--line-on-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px);
    background-size: 48px 48px;
  }
  .page-hero { padding: clamp(56px, 7vw, 92px) 0 50px; background: linear-gradient(135deg, var(--ivory), var(--surface-sage)); }
  .page-hero .wrap { max-width: var(--wrap); }
  .page-hero h1 { max-width: 900px; margin: 14px 0 20px; font-size: clamp(44px, 5.5vw, 76px); }
  .page-hero > .wrap > p:not(.eyebrow) { max-width: 68ch; margin-bottom: 0; color: var(--muted); font-size: 18px; }
  .section-head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 60px); }
  .section-head h2 { margin: 0; }
  .section-head > p:not(.eyebrow) { margin: 20px 0 0; max-width: 68ch; color: var(--surface-muted, var(--muted)); font-size: 17px; line-height: 1.7; }
  .section-dark .section-head > p:not(.eyebrow) { color: var(--text-on-dark); }
  .breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
  .breadcrumbs a { color: var(--eyebrow-light); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
  @media (hover: hover) and (pointer: fine){
  .breadcrumbs a:hover { text-decoration-color: currentColor; }
  }
  .rule { position: relative; height: 1px; margin: 28px 0; background: var(--hairline); }
  .rule::before, .rule::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--hairline); }
  .rule::before { left: 0; } .rule::after { right: 0; }
  .u-mt-10{margin-top:10px}.u-mt-12{margin-top:12px}.u-mt-16{margin-top:16px}.u-mt-18{margin-top:18px}.u-mt-22{margin-top:22px}.u-mt-24{margin-top:24px}.u-mt-28{margin-top:28px}.u-mt-34{margin-top:34px}.u-mt-36{margin-top:36px}
  .u-full-mt-12{width:100%;margin-top:12px}.u-full-mt-18{width:100%;margin-top:18px}
  .u-flex-wrap,.u-flex-wrap-mt-24{display:flex;gap:12px;flex-wrap:wrap}.u-flex-wrap-mt-24{margin-top:24px}
  .u-grid-two,.mission-vision-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(24px,4vw,48px); }
  .u-center-720 { max-width: 720px; margin-inline: auto; text-align: center; }
  .u-center-520 { max-width: 520px; margin: 25px auto; }
  .u-justify-center { justify-content: center; }
  .u-text-right { text-align: right; }
  .u-wide { grid-column: 1/-1; }
  .hero { padding: clamp(52px,6vw,82px) 0 64px; overflow: clip; background: radial-gradient(ellipse at 76% 40%, var(--forest-glow), transparent 44%), var(--ivory); }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(34px,5vw,72px); align-items: center; }
  .hero-copy { min-width: 0; padding: 12px 0 28px; }
  .hero h1 { max-width: 720px; margin: 0 0 26px; font-size: clamp(52px, 6.4vw, 88px); }
  .hero h1 em { color: var(--leaf); font-style: italic; }
  .hero-lede { max-width: 64ch; color: var(--muted); font-size: 18px; line-height: 1.65; margin-bottom: 26px; }
  .hero-visual { position: relative; min-width: 0; min-height: 580px; display: grid; place-items: center; }
  .hero-visual::before { content: ""; position: absolute; inset: 3% 1% 5% 5%; border: 1px solid var(--hairline); border-radius: 260px 260px 0 0; }
  .hero-photo-stack { position: relative; width: 100%; height: 540px; display: flex; align-items: flex-end; justify-content: center; gap: 12px; }
  .hero-photo { position: relative; flex: 1 1 0; min-width: 0; max-width: 210px; overflow: hidden; border-radius: 180px 180px 12px 12px; background: var(--sand); box-shadow: var(--forest-shadow-lg); }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .hero-photo:nth-child(1) { height: 80%; margin-bottom: 16px; }
  .hero-photo:nth-child(2) { height: 96%; }
  .hero-photo:nth-child(3) { height: 88%; margin-bottom: 8px; }
  .hero-stamp { position: absolute; z-index: 3; right: 2px; bottom: 20px; width: 128px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px; overflow: hidden; border: 5px solid var(--ivory); border-radius: 50%; background: var(--forest); color: var(--white); text-align: center; box-shadow: var(--forest-shadow-md); }
  .hero-stamp strong { display: block; font-family: var(--display); font-size: 38px; font-weight: 400; line-height: .9; }
  .hero-stamp-copy { display: block; width: 100%; font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .025em; text-wrap: balance; }
  .trust-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); }
  .trust-item { min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; line-height: 1.4; }
  .trust-item + .trust-item { border-left: 1px solid var(--hairline); padding-left: 20px; }
  .trust-item strong { color: var(--forest); font-family: var(--display); font-size: 30px; font-weight: 400; }
  .trust-mark { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-sage); color: var(--forest); }
  .pillars { padding: 34px 0 42px; background: var(--surface-sage); border-block: 1px solid var(--hairline); }
  .pillar-line { position: relative; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
  .pillar-line::before { content: ""; position: absolute; top: 22px; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg,var(--forest),var(--leaf),var(--lime)); opacity: .5; }
  .property-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 24px; }
  .home-property-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
  .featured-residence { padding: var(--space-section) 0; background: var(--forest); color: var(--white); position: relative; overflow: hidden; }
  .featured-residence-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; align-items: stretch; }
  .energy-light-panel { background: var(--surface-sage); }
  .energy-light-panel .section-head { max-width: 760px; }
  .energy-blueprint { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .field-media-strip { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 28px 0; }
  .security-panel { background: var(--sand); }
  .security-service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .engineering-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(32px,5vw,72px); align-items: center; }
  .engineering-images { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-content: stretch; }
  .engineering-images .engineering-feature-primary { grid-row: span 2; }
  .engineering-approach-panel { background: var(--surface-sage); color: var(--ink); }
  .why-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px,6vw,82px); align-items: center; }
  .years-stat { display: flex; align-items: center; gap: 22px; padding: 20px 0 26px; border-bottom: 1px solid var(--hairline); }
  .commitments { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 24px; margin-top: 26px; }
  .request-panel { margin: 0; padding: clamp(26px,4vw,44px); border: 1px solid var(--hairline); border-radius: var(--radius-large); background: var(--white); color: var(--ink); box-shadow: var(--forest-shadow-md); }
  .contact-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(26px,5vw,66px); align-items: start; }
  .contact-grid > * { min-width: 0; }
  .footer-main { display: grid; grid-template-columns: 1.35fr repeat(3,minmax(0,1fr)); gap: 38px; padding-block: 64px 50px; }
  .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
  .detail-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,390px); gap: clamp(30px,4vw,58px); align-items: start; }
  .calculator-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(330px,.7fr); gap: 26px; align-items: start; }
  .wizard-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .mission-vision-grid { align-items: stretch; }
}

/* --------------------------------------------------------------------------
   Components: shared controls, cards, fields, icons and navigation
   -------------------------------------------------------------------------- */
@layer components {
  .topline { height: 36px; display: flex; align-items: center; gap: 14px; padding-inline: max(var(--gutter),calc((100vw - var(--wrap))/2)); background: var(--forest-deep); color: var(--white); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
  .topline i { width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: var(--lime); }
  .topline-right { margin-left: auto; color: var(--soft-lime); letter-spacing: .12em; }
  body:has(.hero) .site-header { background: transparent; }
  body:has(.hero) .site-header.scrolled { background: var(--header-scrim); }
  .site-header { position: sticky; top: 0; z-index: 250; border-bottom: 1px solid transparent; background: var(--ivory); transition: background var(--normal) var(--ease), border-color var(--normal) var(--ease), box-shadow var(--normal) var(--ease); }
  .site-header.scrolled { border-color: var(--hairline); background: var(--header-scrim); box-shadow: var(--forest-shadow-sm); backdrop-filter: blur(14px); }
  .header-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .brand { display: inline-flex; align-items: center; flex: 0 0 auto; width: auto; height: 64px; }
  .brand img { width: auto; height: 64px; max-width: 120px; object-fit: contain; object-position: left center; }
  .primary-nav { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: clamp(10px,1.45vw,22px); color: var(--forest); font-size: 13px; font-weight: 600; }
  .primary-nav > a:not(.button):not(.saved-nav), .nav-group-head > a, .nav-group-label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; white-space: nowrap; }
  .primary-nav > a:not(.button):not(.saved-nav)::after, .nav-group-head > a::after { content: ""; position: absolute; left: 0; bottom: 5px; width: 0; height: 2px; background: var(--lime); transition: width var(--fast) var(--ease); }
  .primary-nav > a[aria-current="page"]::after { width: 100%; }
  @media (hover: hover) and (pointer: fine){
  .primary-nav > a:hover::after, .nav-group-head > a:hover::after { width: 100%; }
  }
  .primary-nav a[aria-current="page"] { color: var(--leaf); }
  .nav-group { position: relative; }
  .nav-group-head { display: inline-flex; align-items: center; gap: 0; }
  .nav-group-head > a { padding-right: 0; }
  .nav-group-toggle { width: 44px; min-width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--forest); }
  .nav-group-toggle[aria-expanded="true"] { background: var(--surface-sage); }
  @media (hover: hover) and (pointer: fine){
  .nav-group-toggle:hover { background: var(--surface-sage); }
  }
  .nav-group-toggle svg { width: 16px; height: 16px; transition: transform var(--normal) var(--ease); }
  .nav-group-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav-sub { position: absolute; z-index: 300; top: calc(100% + 7px); left: -16px; display: none; min-width: 220px; padding: 10px; border: 1px solid var(--hairline); border-radius: 20px; background: var(--white); box-shadow: var(--forest-shadow-lg); }
  .nav-group.open .nav-sub, .nav-group:focus-within .nav-sub { display: grid; animation: menuIn 180ms var(--ease) both; }
  .nav-sub a { display: flex; align-items: center; min-height: 44px; padding: 9px 12px; border-radius: 10px; color: var(--forest); font-size: 14px; }
  .nav-sub a:focus-visible { background: var(--surface-sage); color: var(--eyebrow-light); }
  @media (hover: hover) and (pointer: fine){
  .nav-sub a:hover { background: var(--surface-sage); color: var(--eyebrow-light); }
  }
  .saved-nav { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; font-size: 16px; }
  .saved-nav b { display: grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 5px; border-radius: var(--radius-pill); background: var(--sand); color: var(--forest); font-size: 12px; }
  .nav-whatsapp { flex: 0 0 auto; }
  .menu-toggle { display: none; width: 48px; height: 48px; flex: 0 0 48px; flex-direction: column; justify-content: center; gap: 6px; border: 1px solid var(--hairline); border-radius: 50%; background: var(--white); }
  .menu-toggle span { width: 20px; height: 2px; margin-inline: auto; border-radius: var(--radius-pill); background: var(--forest); }
  .button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: 1px solid transparent; border-radius: var(--radius-pill); font-size: 15px; line-height: 1.25; font-weight: 600; text-align: center; transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
  @media (hover: hover) and (pointer: fine){
  .button:hover { transform: translateY(-2px); box-shadow: var(--forest-shadow-md); }
  }
  .button:active { transform: translateY(-1px); }
  .button:disabled, .button[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
  .button-green { background: var(--leaf); color: var(--white); }
  @media (hover: hover) and (pointer: fine){
  .button-green:hover { background: var(--forest); color: var(--white); }
  }
  .button-forest { background: var(--forest); color: var(--white); }
  .button-red { background: var(--red); color: var(--white); }
  .button-outline { border-color: var(--forest); background: transparent; color: var(--forest); }
  @media (hover: hover) and (pointer: fine){
  .button-outline:hover { background: var(--forest); color: var(--white); }
  }
  .button-white { background: var(--white); color: var(--forest); }
  .button-small { min-height: 44px; padding: 9px 17px; font-size: 14px; }
  .button-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; background: transparent; color: var(--eyebrow-light); font-size: 14px; font-weight: 600; }
  .button-link .icon { transition: transform var(--fast) var(--ease); }
  @media (hover: hover) and (pointer: fine){
  .button-link:hover .icon { transform: translateX(3px); }
  }
  .eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--surface-eyebrow); font: 600 12px/1.35 var(--body); letter-spacing: .14em; text-transform: uppercase; }
  .eyebrow::before { content: ""; width: 30px; height: 1px; flex: 0 0 30px; background: currentColor; }
  .section-dark .eyebrow, .featured-residence .eyebrow, .site-footer .eyebrow { color: var(--lime); }
  .featured-residence-card .featured-copy .eyebrow { color: var(--soft-lime); }
  .pill { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 5px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; }
  .pill::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
  .pill-sale { background: var(--sale-wash); color: var(--sale-ink); }
  .pill-rent { background: var(--rent-wash); color: var(--engineering); }
  .pill-shortlet, .pill-available, .pill-land { background: var(--surface-sage-2); color: var(--forest); }
  .pill-muted { background: var(--sand); color: var(--muted); }
  .card-heart { position: absolute; z-index: 5; top: 14px; right: 14px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-on-photo); border-radius: 50%; background: var(--white-photo); color: var(--forest); box-shadow: var(--forest-shadow-sm); }
  .card-heart[aria-pressed="true"] { background: var(--forest); color: var(--white); }
  .card-heart .icon { width: 21px; height: 21px; }
  .property-card { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--white); color: var(--ink); box-shadow: var(--forest-shadow-sm); transition: transform 280ms var(--ease), box-shadow 280ms var(--ease); }
  @media (hover: hover) and (pointer: fine){
  .property-card:hover { transform: translateY(-4px); box-shadow: var(--forest-shadow-md); }
  }
  .property-card .card-foot .pill { flex: 0 0 auto; }
  .card-image { position: relative; display: block; overflow: hidden; aspect-ratio: 4/3; background: var(--sand); }
  .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
  @media (hover: hover) and (pointer: fine){
  .property-card:hover .card-image img { transform: scale(1.04); }
  }
  .card-image .pill { position: absolute; top: 14px; left: 14px; }
  .featured-label { position: absolute; bottom: 14px; left: 14px; display: inline-flex; min-height: 28px; align-items: center; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--forest); color: var(--white); font-size: 12px; font-weight: 600; }
  .card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; padding: 22px; }
  .card-location { margin: 0 0 8px; color: var(--eyebrow-light); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
  .card-title { min-height: 2.35em; margin: 0 0 14px; color: var(--forest); font: 400 clamp(22px,2vw,27px)/1.15 var(--display); letter-spacing: -.015em; }
  @media (hover: hover) and (pointer: fine){
  .card-title a:hover { color: var(--eyebrow-light); }
  }
  .card-price { margin: 0; color: var(--forest); font-size: 23px; font-weight: 600; line-height: 1.2; }
  .price-label { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
  .card-specs { display: flex; flex-wrap: wrap; gap: 0; margin-top: 18px; padding-block: 12px; border-block: 1px solid var(--hairline); color: var(--muted); font-size: 13px; }
  .card-specs span { padding: 0 10px; border-right: 1px solid var(--hairline); }
  .card-specs span:first-child { padding-left: 0; }
  .card-specs span:last-child { border: 0; }
  .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
  .card-foot a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--forest); font-size: 14px; font-weight: 600; }
  .card-foot a .icon { transition: transform var(--fast) var(--ease); }
  @media (hover: hover) and (pointer: fine){
  .card-foot a:hover .icon { transform: translate(3px,-3px); }
  }
  .card-foot > span { color: var(--eyebrow-light); font-size: 12px; font-weight: 600; text-transform: capitalize; }
  .sample-card { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 20px 22px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface-sage); color: var(--forest); }
  .sample-card h3 { margin: 0 0 6px; font: 400 24px/1.15 var(--display); }
  .sample-card p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
  .sample-card strong { display: inline-flex; align-items: center; gap: 8px; color: var(--eyebrow-light); font-size: 14px; }
  .sample-label { color: var(--eyebrow-light); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  .sample-drawing { display: none; }
  .service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .service-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--surface-line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--forest-shadow-sm); }
  .section-dark .service-card { --surface: var(--forest-mid); --surface-line: var(--line-on-dark); background: var(--forest-mid); color: var(--white); }
  .security-panel .service-card { --surface: var(--white); --surface-line: var(--hairline); background: var(--white); color: var(--ink); }
  .service-number { display: inline-flex; align-items: center; gap: 8px; color: var(--surface-eyebrow); font-size: 12px; font-weight: 600; letter-spacing: .11em; }
  .section-dark .service-number { color: var(--soft-lime); }
  .service-card h3 { margin: 0; color: var(--forest); font: 400 25px/1.15 var(--display); }
  .section-dark .service-card h3 { color: var(--white); }
  .service-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
  .section-dark .service-card p { color: var(--text-on-dark); }
  .service-card a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; color: var(--eyebrow-light); font-size: 14px; font-weight: 600; }
  .section-dark .service-card a { color: var(--lime); }
  .service-icon, .energy-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-sage); color: var(--forest); }
  .security-card .service-icon { background: var(--surface-graphite-wash); color: var(--surface-graphite); }
  .energy-icon { background: var(--amber); color: var(--forest-deep); }
  .energy-offer { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 25px; border: 1px solid var(--line-on-dark); border-radius: var(--radius-card); background: var(--forest); color: var(--white); box-shadow: var(--forest-shadow-sm); transition: transform 280ms var(--ease), box-shadow 280ms var(--ease); }
  @media (hover: hover) and (pointer: fine){
  .energy-offer:hover { transform: translateY(-4px); box-shadow: var(--forest-shadow-md); }
  }
  .energy-offer .energy-icon { margin-bottom: 2px; }
  .energy-offer strong { display: block; color: var(--white); font: 400 26px/1.13 var(--display); }
  .energy-offer p { margin: 0; color: var(--text-on-dark); font-size: 15px; line-height: 1.65; }
  .field-media-strip figure { position: relative; min-width: 0; margin: 0; overflow: hidden; aspect-ratio: 16/10; border-radius: var(--radius-card); background: var(--forest); }
  .field-media-strip img { width: 100%; height: 100%; object-fit: cover; }
  .field-media-strip figcaption { position: absolute; inset: auto 0 0; padding: 32px 22px 18px; background: linear-gradient(0deg,var(--scrim-strong),transparent); color: var(--white); font-size: 14px; font-weight: 600; }
  .partner-note, .technical-partner-panel { margin-top: 26px; padding: 22px 26px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--white); color: var(--ink); }
  .partner-note strong { color: var(--forest); font-weight: 700; }
  .technical-partner-panel { margin: 0; }
  .technical-partner-panel h2, .technical-partner-panel h3 { color: var(--forest); }
  .technical-partner-panel p { color: var(--muted); }
  .section-dark .partner-note { background: var(--forest-mid); border-color: var(--line-on-dark); color: var(--text-on-dark); }
  .section-dark .partner-note strong { color: var(--white); }
  .engineering-points { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; margin: 28px 0; }
  .engineering-point { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--hairline); color: var(--ink); font-size: 15px; line-height: 1.45; }
  .engineering-point .icon { color: var(--engineering); margin-top: 2px; }
  .section-dark .engineering-point { border-color: var(--line-on-dark); color: var(--text-on-dark); }
  .section-dark .engineering-point .icon { color: var(--soft-lime); }
  .engineering-feature { position: relative; min-width: 0; margin: 0; overflow: hidden; aspect-ratio: 4/5; border-radius: var(--radius-card); background: var(--forest); box-shadow: var(--forest-shadow-md); }
  .engineering-feature img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .engineering-feature figcaption { position: absolute; inset: auto 0 0; display: grid; gap: 6px; padding: 58px 18px 18px; background: linear-gradient(0deg,var(--scrim-strong) 0%,var(--scrim-mid) 62%,transparent 100%); color: var(--white); }
  .engineering-feature figcaption span { color: var(--lime); font-size: 12px; font-weight: 600; letter-spacing: .13em; }
  .engineering-feature figcaption strong { color: var(--white); font: 400 24px/1.14 var(--display); }
  .engineering-feature figcaption small { color: var(--white); font-size: 12px; line-height: 1.4; }
  .engineering-approach-panel .eyebrow { color: var(--engineering); }
  .engineering-approach-panel h2, .engineering-approach-panel .step strong { color: var(--forest); }
  .engineering-approach-panel .section-head p:not(.eyebrow), .engineering-approach-panel .step p { color: var(--muted); }
  .step { min-width: 0; padding: 24px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--white); color: var(--ink); box-shadow: var(--forest-shadow-sm); }
  .step b { display: inline-flex; min-height: 36px; align-items: center; padding: 6px 11px; border-radius: var(--radius-pill); background: var(--surface-sage); color: var(--eyebrow-light); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
  .step strong { display: block; margin: 14px 0 8px; color: var(--forest); font: 400 25px/1.15 var(--display); }
  .step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
  .section-dark .step { border-color: var(--line-on-dark); background: var(--forest-mid); color: var(--white); }
  .section-dark .step b { background: var(--surface-sage-2); color: var(--forest); }
  .section-dark .step strong { color: var(--white); }
  .section-dark .step p { color: var(--text-on-dark); }
  .steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .years-stat { border: 0; }
  .years-stat strong { color: var(--forest); font: 400 clamp(64px,8vw,112px)/.9 var(--display); }
  .years-stat span { max-width: 16ch; color: var(--muted); font-size: 14px; line-height: 1.4; }
  .commitment { display: flex; align-items: flex-start; gap: 12px; min-width: 0; color: var(--ink); font-size: 15px; line-height: 1.5; }
  .commitment i { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-sage); color: var(--forest); font-style: normal; }
  .commitment strong { display: block; color: var(--forest); font-size: 15px; }
  .commitment small { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.5; }
  .section-dark .commitment, .section-dark .commitment strong { color: var(--white); }
  .section-dark .commitment small { color: var(--text-on-dark); }
  .value-card { min-width: 0; padding: 26px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--forest-shadow-sm); }
  .value-card .service-number { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--forest); color: var(--white); }
  .value-card h3 { margin: 14px 0 8px; color: var(--forest); font: 400 26px/1.15 var(--display); }
  .value-card p { margin: 0; color: var(--muted); font-size: 15px; }
  .years-stat + .commitments { margin-top: 28px; }
  .founder-visual { position: relative; width: min(100%,480px); aspect-ratio: 4/5; min-height: 0; margin-inline: auto; overflow: hidden; border-radius: 240px 240px 16px 16px; background: var(--sand); box-shadow: var(--forest-shadow-md); }
  .founder-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
  .founder-placeholder { display: flex; min-height: 100%; flex-direction: column; justify-content: center; align-items: center; gap: 16px; background: var(--forest); color: var(--lime); }
  .founder-placeholder span { width: 140px; height: 140px; display: grid; place-items: center; border: 1px solid var(--line-on-dark); border-radius: 50%; font: 400 76px var(--display); }
  .founder-placeholder small { color: var(--text-subtle-on-dark); font-size: 12px; letter-spacing: .1em; }
  .founder-profile { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 48px; align-items: start; }
  .policy-copy { max-width: 68ch; margin-inline: auto; }
  .policy-copy h2 { margin: 36px 0 14px; font-size: clamp(26px,3vw,36px); }
  .policy-copy p, .policy-copy li { color: var(--muted); font-size: 16px; line-height: 1.75; }
  .draft-note { margin: 0 0 34px; padding: 14px 18px; border-left: 3px solid var(--amber); border-radius: 0 12px 12px 0; background: var(--amber-wash); color: var(--ink); font-size: 14px; }
  .copy-disclosure { max-width: 68ch; margin-top: 12px; }
  .copy-disclosure summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--eyebrow-light); cursor: pointer; font-size: 14px; font-weight: 600; }
  .copy-disclosure summary::marker { color: var(--leaf); }
  .page-404 { min-height: 78vh; min-height: 78svh; min-height: 78dvh; display: grid; place-items: center; overflow: hidden; text-align: center; background: radial-gradient(ellipse at 50% 35%,var(--forest-glow),transparent 48%),var(--ivory); }
  .page-404-inner { width: min(760px,calc(100% - 36px)); margin-inline: auto; padding: 72px 0; }
  .page-404-logo { width: 170px; margin: 0 auto 26px; }
  .page-404 h1 { margin: 12px 0 16px; font-size: clamp(48px,8vw,90px); }
  .page-404-form { max-width: 520px; display: flex; gap: 10px; margin: 26px auto; }
  .page-404-form input { min-width: 0; flex: 1; }
  .page-404-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .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; }
}

/* --------------------------------------------------------------------------
   Sections: property hub/detail, calculator, forms, concierge and footer
   -------------------------------------------------------------------------- */
@layer sections {
  .eyebrow { color: var(--surface-eyebrow); }
  .intent-wrap { position: relative; min-width: 0; padding: 8px; border: 1px solid var(--hairline); border-radius: 22px; background: var(--white); box-shadow: var(--forest-shadow-md); }
  .intent-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-sage); }
  .intent-tab { flex: 1 0 auto; min-width: 64px; min-height: 44px; padding: 10px 14px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--forest); font-size: 13px; font-weight: 600; white-space: nowrap; }
  .intent-tab[aria-selected="true"] { background: var(--forest); color: var(--white); box-shadow: var(--forest-shadow-sm); }
  .intent-panel { padding: 20px 18px 14px; }
  .intent-panel h3 { margin: 0 0 16px; color: var(--forest); font: 400 26px/1.15 var(--display); }
  .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
  .field label, .field-label { color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.35; }
  .field input, .field select, .field textarea, .filter-control input, .filter-control select, .concierge-panel textarea, .page-404-form input {
    width: 100%; min-width: 0; min-height: 56px; padding: 13px 15px; border: 1px solid var(--input-border); border-radius: 14px; background: var(--input-bg); color: var(--ink); font-size: 15px; line-height: 1.4;
  }
  .field textarea, .concierge-panel textarea { min-height: 110px; resize: vertical; }
  .field input::placeholder, .field textarea::placeholder, .filter-control input::placeholder { color: var(--input-placeholder); opacity: 1; }
  .field input:focus, .field select:focus, .field textarea:focus, .filter-control input:focus, .filter-control select:focus { border-color: var(--leaf); outline: 2px solid var(--focus-ring); outline-offset: 0; }
  .field small { color: var(--muted); font-size: 12px; }
  .intent-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
  .intent-actions > .button { flex: 0 1 auto; white-space: nowrap; }
  .intent-actions .form-note { flex: 1 1 180px; min-width: 0; }
  .form-note { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; }
  .form-status, .form-message { display: block; margin-top: 12px; color: var(--forest); font-size: 14px; }
  .form-status.error, .form-message.error { color: var(--red-ink); }
  .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
  .inline-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .inline-form .wide { grid-column: 1/-1; }
  .honeypot { opacity: 0; }
  .property-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
  .category-tabs { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 5px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: var(--white); }
  .category-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 15px; border-radius: var(--radius-pill); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
  .category-tabs a.active { background: var(--forest); color: var(--white); }
  @media (hover: hover) and (pointer: fine){
  .category-tabs a:hover { background: var(--forest); color: var(--white); }
  }
  .category-tabs .mono { font-size: 12px; opacity: .8; }
  .filter-panel { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; padding: 18px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--forest-shadow-sm); }
  .filter-control { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
  .filter-control label { color: var(--muted); font-size: 12px; font-weight: 600; }
  .filter-control input, .filter-control select { min-height: 48px; padding: 10px 12px; }
  .view-switch, .view-toggle { display: inline-flex; gap: 5px; align-items: center; }
  .view-switch button, .view-toggle button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: var(--white); color: var(--forest); font-size: 13px; }
  .view-switch button[aria-pressed="true"], .view-toggle button.active { background: var(--forest); color: var(--white); border-color: var(--forest); }
  .results-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; color: var(--muted); font-size: 14px; }
  .amenity-filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 5px; }
  .amenity-filter-chip { min-height: 44px; padding: 9px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
  .amenity-filter-chip.active { border-color: var(--forest); background: var(--forest); color: var(--white); }
  @media (hover: hover) and (pointer: fine){
  .amenity-filter-chip:hover { border-color: var(--forest); background: var(--forest); color: var(--white); }
  }
  .property-grid.list-view { grid-template-columns: minmax(0,1fr); }
  .property-grid.list-view .property-card { display: grid; grid-template-columns: minmax(220px,32%) minmax(0,1fr); }
  .property-grid.list-view .card-image { height: 100%; min-height: 240px; aspect-ratio: auto; }
  .property-grid.list-view .card-body { padding: 22px 26px; }
  .empty-state { display: grid; grid-template-columns: minmax(180px,.5fr) minmax(0,1fr); gap: 36px; align-items: center; padding: clamp(24px,5vw,52px); border: 1px solid var(--hairline); border-radius: var(--radius-large); background: var(--white); box-shadow: var(--forest-shadow-sm); }
  .empty-state h2 { margin: 0 0 14px; color: var(--forest); }
  .empty-state p { color: var(--muted); }
  .empty-illustration { min-height: 220px; display: grid; place-items: center; border-radius: 180px 180px 16px 16px; background: var(--surface-sage); color: var(--forest); }
  .empty-illustration .icon { width: 52px; height: 52px; }
  .property-empty-inline { padding: 20px; border-radius: var(--radius-card); background: var(--surface-sage); }
  .listing-top { padding: 38px 0 90px; }
  .listing-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 30px; align-items: end; padding: 24px 0 28px; border-bottom: 1px solid var(--hairline); }
  .listing-heading h1 { max-width: 850px; margin: 16px 0 8px; font-size: clamp(42px,5.5vw,72px); }
  .listing-heading > .mono { color: var(--forest); font-size: clamp(36px,4.2vw,54px); font-weight: 600; line-height: 1.05; white-space: nowrap; }
  .listing-heading .price-label { display: block; font-size: 14px; color: var(--muted); text-align: right; white-space: normal; }
  .listing-heading .u-small-muted { color: var(--muted); font-size: 12px; }
  .gallery-layout { height: min(58vw,680px); min-height: 440px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.65fr); gap: 12px; margin: 22px 0 48px; }
  .gallery-main, .gallery-thumb { position: relative; min-width: 0; min-height: 0; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius-card); background: var(--sand); }
  .gallery-main img, .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
  @media (hover: hover) and (pointer: fine){
  .gallery-main:hover img, .gallery-thumb:hover img { transform: scale(1.035); }
  }
  .gallery-side { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 12px; min-width: 0; }
  .gallery-more { position: absolute; inset: auto 12px 12px; display: inline-flex; justify-content: center; min-height: 40px; padding: 9px; border-radius: var(--radius-pill); background: var(--forest); color: var(--white); font-size: 13px; font-weight: 600; }
  .detail-copy h2 { margin: 36px 0 14px; font-size: clamp(27px,3vw,40px); }
  .detail-copy p { color: var(--muted); line-height: 1.7; }
  .detail-specs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 26px 0; }
  .detail-spec { min-width: 0; padding: 18px 12px; border: 1px solid var(--hairline); border-radius: 16px; background: var(--white); text-align: center; }
  .detail-spec strong { display: block; color: var(--forest); font-size: 28px; line-height: 1.1; }
  .detail-spec span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
  .document-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; margin: 4px 6px 4px 0; padding: 7px 12px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: var(--surface-sage); color: var(--forest); font-size: 13px; font-weight: 600; line-height: 1.3; }
  .featured-residence .document-chip { border-color: var(--line-on-dark); background: var(--chip-dark-bg); color: var(--white); }
  .amenity-group { margin: 24px 0; }
  .amenity-group h3 { margin: 0 0 12px; color: var(--forest); font: 400 25px var(--display); }
  .amenity-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 22px; }
  .amenity { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hairline); color: var(--ink); font-size: 15px; line-height: 1.5; }
  .amenity-icon { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-sage); color: var(--forest); }
  .enquiry-sticky { position: sticky; top: 108px; padding: 26px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--white); color: var(--ink); box-shadow: var(--forest-shadow-md); }
  .enquiry-sticky .price { margin: 10px 0 12px; color: var(--forest); font-size: clamp(34px,3vw,44px); font-weight: 600; line-height: 1.05; }
  .enquiry-sticky p { color: var(--muted); font-size: 14px; }
  .enquiry-sticky .button { width: 100%; margin-top: 10px; }
  .cross-sell { margin: 46px 0 30px; padding: 28px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface-sage); color: var(--ink); }
  .cross-sell h3 { color: var(--forest); font: 400 30px var(--display); }
  .cross-sell p { color: var(--muted); }
  .cross-sell-actions, .detail-footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .infrastructure-highlights { margin: 24px 0; padding: 22px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface-sage); }
  .infrastructure-highlights h3 { color: var(--forest); }
  .infrastructure-highlights li, .infrastructure-highlights p { color: var(--muted); }
  .calculator-box { min-width: 0; padding: 26px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--white); color: var(--ink); box-shadow: var(--forest-shadow-sm); }
  .calculator-box h3 { color: var(--forest); font: 400 28px var(--display); }
  .appliance-table { width: 100%; border-collapse: collapse; color: var(--ink); }
  .appliance-table th, .appliance-table td { padding: 11px 9px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: middle; }
  .appliance-table th { color: var(--muted); font-size: 12px; font-weight: 600; }
  .appliance-table td { font-size: 14px; }
  .appliance-table input { width: 80px; min-height: 44px; padding: 8px; border: 1px solid var(--input-border); border-radius: 10px; background: var(--white); color: var(--ink); font-size: 14px; }
  .appliance-name { min-width: 140px; font-weight: 600; }
  .calculator-results { position: sticky; top: 108px; padding: 28px; border-radius: var(--radius-card); background: var(--forest); color: var(--white); box-shadow: var(--forest-shadow-md); }
  .calculator-results h3 { color: var(--white); font: 400 30px var(--display); }
  .calculator-results .eyebrow { color: var(--lime); }
  .result-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .result-card { min-width: 0; padding: 17px; border: 1px solid var(--line-on-dark); border-radius: 15px; background: var(--surface-card-dark); }
  .result-card strong { display: block; color: var(--lime); font-size: clamp(23px,2.5vw,32px); line-height: 1.05; overflow-wrap: anywhere; }
  .result-card span, .result-card small { display: block; margin-top: 8px; color: var(--text-on-dark); font-size: 13px; }
  .result-card small { color: var(--text-subtle-on-dark); }
  .assumptions { margin-top: 22px; border-top: 1px solid var(--line-on-dark); }
  .assumptions summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; color: var(--white); cursor: pointer; font-size: 14px; font-weight: 600; }
  .assumptions ul { padding-left: 20px; color: var(--text-on-dark); }
  .assumptions li { margin: 7px 0; font-size: 13px; }
  .calculator-settings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
  .calculator-settings .field input, .calculator-settings .field select { min-height: 48px; }
  .disclaimer { margin-top: 16px; color: var(--text-on-dark); font-size: 13px; line-height: 1.5; }
  .wizard { padding: 24px; border-radius: var(--radius-card); background: var(--white); color: var(--ink); }
  .wizard-progress { display: flex; gap: 7px; margin-bottom: 24px; }
  .wizard-progress > span { height: 5px; flex: 1; border-radius: var(--radius-pill); background: var(--sand); }
  .wizard-progress > span.active { background: var(--leaf); }
  .wizard-step h2 { margin-bottom: 18px; color: var(--forest); font-size: clamp(26px,3vw,36px); }
  .wizard-choice { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 56px; padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--white); color: var(--ink); font-size: 14px; }
  .wizard-choice:has(input:checked) { border-color: var(--leaf); background: var(--surface-sage); box-shadow: inset 0 0 0 1px var(--leaf); }
  .wizard-choice input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--leaf); }
  .wizard-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 24px; }
  .file-hint { color: var(--muted); font-size: 13px; }
  .faq-list { border-top: 1px solid var(--hairline); }
  .faq-item { border-bottom: 1px solid var(--hairline); }
  .faq-item summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 2px; color: var(--forest); cursor: pointer; font-size: 16px; font-weight: 600; list-style: none; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-sage); color: var(--forest); }
  .faq-icon > span { display: none; align-items: center; justify-content: center; }
  .faq-icon .faq-plus { display: flex; }
  .faq-item[open] .faq-plus { display: none; }
  .faq-item[open] .faq-minus { display: flex; }
  .faq-item p { max-width: 68ch; padding: 0 48px 22px 2px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
  .compare-table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--white); }
  .compare-table { width: 100%; min-width: 650px; border-collapse: collapse; }
  .compare-table th, .compare-table td { padding: 16px; border-bottom: 1px solid var(--hairline); text-align: left; font-size: 14px; }
  .compare-table th { background: var(--surface-sage); color: var(--forest); font-weight: 600; }
  .compare-table th:first-child { position: sticky; left: 0; z-index: 2; }
  .contact-card { padding: 24px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--white); color: var(--ink); box-shadow: var(--forest-shadow-sm); }
  .contact-card + .contact-card { margin-top: 14px; }
  .contact-card h3 { margin: 4px 0 10px; color: var(--forest); font: 400 28px var(--display); }
  .contact-card p, .contact-card a { color: var(--muted); font-size: 15px; }
  .contact-card a { color: var(--eyebrow-light); font-weight: 600; }
  .concierge-button { position: fixed; z-index: 180; right: 26px; bottom: 24px; width: 60px; height: 60px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--forest); color: var(--white); box-shadow: var(--forest-shadow-lg); transition: transform var(--fast) var(--ease), background var(--fast) var(--ease); }
  @media (hover: hover) and (pointer: fine){
  .concierge-button:hover { transform: translateY(-3px); background: var(--leaf); }
  }
  .concierge-button .icon { width: 24px; height: 24px; }
  .concierge-panel { position: fixed; z-index: 190; right: 24px; bottom: 98px; width: min(380px,calc(100vw - 32px)); max-height: min(76vh,680px); max-height: min(76svh,680px); max-height: min(76dvh,680px); overflow: auto; padding: 24px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--white); color: var(--ink); box-shadow: var(--forest-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: bottom right; transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms; }
  .concierge-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  .concierge-panel h3 { color: var(--forest); font: 400 30px var(--display); }
  .concierge-panel p { color: var(--muted); font-size: 14px; }
  .concierge-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 18px 0; }
  .concierge-options button { min-height: 46px; padding: 10px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--ivory); color: var(--forest); font-size: 13px; font-weight: 600; }
  .concierge-options button[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: var(--white); }
  @media (hover: hover) and (pointer: fine){
  .concierge-options button:hover { border-color: var(--forest); background: var(--forest); color: var(--white); }
  }
  #concierge-message { width: 100%; min-height: 96px; margin-top: 7px; }
  .toast { position: fixed; z-index: 500; left: 50%; bottom: 26px; max-width: calc(100vw - 32px); padding: 13px 18px; transform: translateX(-50%); border-radius: var(--radius-pill); background: var(--forest-deep); color: var(--white); box-shadow: var(--forest-shadow-md); font-size: 14px; }
  .mobile-action-bar { display: none; }
  .lightbox { position: fixed; z-index: 1000; inset: 0; display: grid; grid-template-columns: 56px minmax(0,1fr) 56px; grid-template-rows: 1fr auto; gap: 14px; align-items: center; justify-items: center; padding: 36px; background: var(--lightbox-backdrop); color: var(--white); backdrop-filter: blur(12px); overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
  .lightbox figure { grid-column: 2; grid-row: 1; width: min(92vw,1120px); max-width: 92vw; height: 86vh; height: 86svh; height: min(86dvh, calc(100dvh - 132px)); display: grid; grid-template-rows: minmax(0,1fr) auto; justify-items: center; gap: 12px; margin: 0; }
  .lightbox figure img { width: auto; max-width: 100%; height: 100%; max-height: 80vh; max-height: 80svh; max-height: 80dvh; object-fit: contain; }
  .lightbox figcaption { width: 100%; color: var(--text-on-dark); text-align: center; font-size: 13px; }
  .lightbox-close, .lightbox-prev, .lightbox-next { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-on-dark); border-radius: 50%; background: var(--chip-dark-bg); color: var(--white); }
  .lightbox-close { position: absolute; top: 18px; right: 20px; }
  .lightbox-prev { grid-column: 1; grid-row: 1; }
  .lightbox-next { grid-column: 3; grid-row: 1; }
  .lightbox-count { position: absolute; top: 24px; left: 24px; color: var(--white); font-size: 14px; font-variant-numeric: tabular-nums; }
  .lightbox-thumbs { grid-column: 1/-1; grid-row: 2; display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 8px; }
  .lightbox-thumb { width: 60px; height: 76px; flex: 0 0 60px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 9px; opacity: .72; background: var(--forest); }
  .lightbox-thumb.active { border-color: var(--lime); opacity: 1; }
  .lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .site-footer { position: relative; overflow: hidden; background: var(--forest-deep); color: var(--white); }
  .site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 15% 0%,var(--forest-glow),transparent 48%); }
  .site-footer > .wrap { position: relative; z-index: 1; }
  .footer-brand > a { width: 190px; min-height: 112px; display: inline-flex; align-items: center; justify-content: center; padding: 12px; border: 1px solid var(--logo-tile-border); border-radius: 16px; background: var(--white); box-shadow: var(--forest-shadow-sm); }
  .footer-brand img { width: 100%; max-height: 88px; object-fit: contain; }
  .footer-brand > p:first-of-type { max-width: 18ch; margin: 20px 0 6px; color: var(--white); font: 400 31px/1.07 var(--display); }
  .footer-tag { color: var(--soft-lime); font-size: 14px; }
  .footer-main h3 { margin: 3px 0 17px; color: var(--lime); font: 600 12px var(--body); letter-spacing: .13em; text-transform: uppercase; }
  .footer-main > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
  .footer-main a, .footer-main p { min-height: 44px; display: inline-flex; align-items: center; margin: 0; color: var(--text-on-dark); font-size: 14px; line-height: 1.35; }
  .footer-main a { position: relative; }
  .footer-main a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 7px; height: 1px; background: var(--lime); transition: right var(--fast) var(--ease); }
  @media (hover: hover) and (pointer: fine){
  .footer-main a:hover::after { right: 0; }
  }
  .footer-bottom { position: relative; border-top: 1px solid var(--line-on-dark); color: var(--text-muted-on-dark); font-size: 12px; }
  .footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; margin-left: 14px; color: var(--text-muted-on-dark); }
  @media (hover: hover) and (pointer: fine){
  .footer-bottom a:hover { color: var(--lime); }
  }
  .footer-bottom a:focus-visible { color: var(--white); }
  .security-panel .service-number { color: var(--graphite); }
  .security-panel .step { border-color: var(--hairline); background: var(--white); }
  .security-panel .step b { background: var(--surface-graphite-wash); color: var(--surface-graphite); }
  .security-panel .step strong { color: var(--forest); }
  .security-panel .step p { color: var(--muted); }
  .featured-residence { --surface-fg: var(--white); --surface-muted: var(--text-on-dark); --surface-eyebrow: var(--lime); --surface-line: var(--line-on-dark); }
  .featured-residence .section-head h2, .featured-residence .featured-residence-card h3 { color: var(--white); }
  .featured-residence .section-head > p:not(.eyebrow) { color: var(--text-on-dark); }
  .section-dark .mono, .featured-residence .mono { color: var(--white); }
  .featured-residence-grid { align-items: stretch; }
  .featured-residence-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-on-dark); border-radius: var(--radius-card); background: var(--forest-mid); color: var(--white); }
  .featured-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 4/3; background: var(--forest-deep); }
  .featured-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
  @media (hover: hover) and (pointer: fine){
  .featured-residence-card:hover .featured-cover img { transform: scale(1.04); }
  }
  .photo-note { position: absolute; inset: auto 0 0; padding: 42px 18px 16px; background: linear-gradient(0deg,var(--scrim-strong),transparent); color: var(--white); font-size: 12px; letter-spacing: .1em; }
  .featured-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 13px; min-width: 0; padding: 26px; }
  .featured-copy h3 { margin: 0; font: 400 clamp(27px,3vw,36px)/1.08 var(--display); }
  .featured-copy > p { color: var(--text-on-dark); font-size: 15px; }
  .featured-price { margin: 0; color: var(--white); font-size: 26px; font-weight: 600; }
  .featured-copy .price-label { color: var(--soft-lime); white-space: normal; max-width: 100%; }
  .spec-readouts { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: 8px 0 4px; padding-block: 15px; border-block: 1px solid var(--line-on-dark); }
  .spec-readout { min-width: 0; padding: 0 12px; border-right: 1px solid var(--line-on-dark); }
  .spec-readout:first-child { padding-left: 0; }
  .spec-readout:last-child { border: 0; }
  .spec-readout strong { display: block; color: var(--white); font: 400 36px/1 var(--display); }
  .spec-readout span { display: block; margin-top: 5px; color: var(--text-on-dark); font-size: 12px; white-space: nowrap; }
  .amenity-chips { display: flex; flex-wrap: wrap; gap: 7px; }
  .amenity-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 10px; border: 1px solid var(--line-on-dark); border-radius: var(--radius-pill); background: var(--chip-dark-bg); color: var(--white); font-size: 12px; }
  .featured-copy .button { margin-top: auto; }
  .property-toolbar .button { flex: 0 0 auto; }
  .section-dark .request-panel { --surface-fg: var(--ink); --surface-muted: var(--muted); --surface-eyebrow: var(--eyebrow-light); background: var(--white); color: var(--ink); }
  .section-dark .request-panel h1, .section-dark .request-panel h2, .section-dark .request-panel h3, .section-dark .request-panel h4, .section-dark .request-panel strong { color: var(--forest); }
  .section-dark .request-panel p, .section-dark .request-panel li, .section-dark .request-panel small, .section-dark .request-panel .form-note { color: var(--muted); }
  .section-dark .request-panel .eyebrow { color: var(--eyebrow-light); }
  .section-dark .request-panel .field label, .section-dark .request-panel .field-label { color: var(--muted); }
  .section-dark .request-panel .form-status { color: var(--forest); }
  .section-dark .request-panel .form-status.error { color: var(--red-ink); }
  .section-dark .engineering-point { color: var(--text-on-dark); border-color: var(--line-on-dark); }
  .section-dark .engineering-point .icon { color: var(--lime); }
  .energy-light-panel .section-head p:not(.eyebrow) { color: var(--muted); }
  .energy-light-panel .energy-offer { background: var(--forest); }
  .energy-offer { min-height: 210px; }
  .security-panel .section-head p:not(.eyebrow) { color: var(--muted); }
  .technical-partner-panel .eyebrow { color: var(--eyebrow-light); }
  .calculator-box .assumptions { border-top: 1px solid var(--hairline); }
  .calculator-box .assumptions summary { color: var(--forest); }
  .calculator-box .assumptions ul, .calculator-box .assumptions li { color: var(--muted); }
  .calculator-box .assumptions li { font-size: 14px; }
  .request-panel h2, .request-panel h3 { color: var(--forest); }
  .request-panel .section-head p:not(.eyebrow) { color: var(--muted); }
  .document-chip, .draft-note, .step, .service-card, .calculator-box, .request-panel, .enquiry-sticky { min-width: 0; }
  .compare-table th, .compare-table td { min-width: 0; }
  .footer-bottom > span:last-child { display: none; }
  .hero-mini > span { display: none; }
  .security-panel .security-card .service-number { color: var(--surface-graphite); }
  .security-panel .security-card h3 { color: var(--forest); }
  .engineering-images--facility { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); grid-template-rows: repeat(2,minmax(0,1fr)); aspect-ratio: 1.22 / 1; align-items: stretch; gap: 12px; }
  .engineering-images--facility .engineering-feature { height: 100%; min-height: 0; aspect-ratio: auto; }
  .engineering-images--facility .engineering-feature-primary { grid-row: 1 / 3; }
  .engineering-images--facility .engineering-feature-secondary { min-height: 0; }
  .engineering-images--facility .engineering-feature img { height: 100%; }
}

/* --------------------------------------------------------------------------
   Utilities: surface text, transitions, motion and page-specific helpers
   -------------------------------------------------------------------------- */
@layer utilities {
  [data-surface] {
    --fg: var(--surface-fg);
    --fg-muted: var(--surface-muted);
    --fg-subtle: var(--surface-subtle);
    --eyebrow: var(--surface-eyebrow);
    --accent: var(--surface-accent);
    --line: var(--surface-line);
    --chip-bg: var(--surface-chip-bg);
    --chip-fg: var(--surface-chip-fg);
    color: var(--fg);
  }
  [data-surface] :where(p,li,label,figcaption,small) { color: var(--fg-muted); }
  [data-surface] .eyebrow { color: var(--eyebrow); }
  [data-surface] .document-chip, [data-surface] .amenity-chip { color: var(--chip-fg); }
  [data-surface="dark"] a:not(.button), [data-surface="deep"] a:not(.button), [data-surface="photo"] a:not(.button) { color: var(--soft-lime); }
  [data-surface="dark"] :where(h1,h2,h3,h4,strong) { color: var(--white); }
  [data-surface="dark"] .service-card a { color: var(--soft-lime); }
  [data-surface="deep"] :where(h1,h2,h3,h4,strong) { color: var(--white); }
  [data-surface="photo"] :where(h1,h2,h3,h4,strong) { color: var(--white); }
  [data-surface="light"] .eyebrow, [data-surface="sage"] .eyebrow, [data-surface="sand"] .eyebrow { color: var(--surface-eyebrow); }
  [data-surface="dark"] .eyebrow, [data-surface="deep"] .eyebrow, [data-surface="photo"] .eyebrow { color: var(--eyebrow-on-dark); }
  [data-surface="light"] .document-chip, [data-surface="sage"] .document-chip, [data-surface="sand"] .document-chip { color: var(--forest); }
  [data-surface="dark"] .document-chip, [data-surface="deep"] .document-chip { color: var(--white); }
  .u-heading-32 { font-size: 32px; color: var(--forest); }
  .u-heading-34 { font-size: 34px; color: var(--forest); }
  .u-heading-30-mt-34 { margin-top: 34px; font-size: 30px; }
  .u-heading-30-mt-36 { margin-top: 36px; font-size: 30px; }
  .u-display-medium { font-size: clamp(24px,2.5vw,28px); line-height: 1.35; letter-spacing: -.01em; }
  .u-display-404 { color: var(--forest); font-size: clamp(50px,9vw,100px); }
  .u-color-forest { color: var(--forest); }
  .u-color-ink { color: var(--ink); }
  .u-color-ink-blue-border { color: var(--ink); border-color: var(--engineering); }
  .u-color-ink-hairline { color: var(--ink); border-color: var(--hairline); }
  .u-outline-on-dark { border-color: var(--line-on-dark); color: var(--white); }
  .u-small-muted { color: var(--muted); font-size: 12px; }
  .u-small-on-dark { display: block; margin-top: 3px; color: var(--text-subtle-on-dark); font-size: 12px; }
  .u-kicker { color: var(--eyebrow-light); font: 600 12px var(--body); letter-spacing: .12em; }
  .pre-render-listing-image { width: min(100%,420px); max-height: 560px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-card); }
  .mono { color: var(--forest); }
  .pillars .pillar { min-width: 0; min-height: 160px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 14px; border: 1px solid transparent; border-radius: 18px; color: var(--forest); transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease); }
  .pillar:focus-visible { transform: translateY(-3px); border-color: var(--hairline); background: var(--white); box-shadow: var(--forest-shadow-sm); }
  @media (hover: hover) and (pointer: fine){
  .pillar:hover { transform: translateY(-3px); border-color: var(--hairline); background: var(--white); box-shadow: var(--forest-shadow-sm); }
  }
  .pillar-dot { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 3px solid var(--surface-sage); border-radius: 50%; background: var(--forest); color: var(--white); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .pillar strong { color: var(--forest); font: 400 clamp(23px,2.4vw,31px)/1 var(--display); }
  .pillar > span:not(.pillar-dot):not(.pillar-explore) { color: var(--muted); font-size: 13px; line-height: 1.4; }
  .pillar-explore { display: flex; align-items: center; gap: 6px; margin-top: auto; color: var(--eyebrow-light); font-size: 13px; font-weight: 600; }
  .request-panel .section-head { margin-bottom: 26px; }
  .enquiry-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 26px; }
  .enquiry-shortcuts .sample-card { min-height: 0; padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface-sage); box-shadow: none; }
  .enquiry-shortcuts .sample-card > div { display: contents; }
  .enquiry-shortcuts .sample-drawing { display: none; }
  .enquiry-shortcuts .sample-card h3 { margin: 8px 0; font-size: 21px; }
  .enquiry-shortcuts .sample-card strong { margin-top: 8px; }
  .about-services-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 22px; }
  .values-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .about-services-grid .service-card { display: grid; grid-template-columns: 64px minmax(0,1fr); column-gap: 18px; align-items: start; min-height: 0; padding: 24px; }
  .about-services-grid .service-number { grid-column: 1; grid-row: 1 / span 3; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-on-dark); border-radius: 50%; color: var(--soft-lime); }
  .about-services-grid .service-card h3, .about-services-grid .service-card p, .about-services-grid .service-card a { grid-column: 2; }
  .about-services-grid .service-card { display: grid; grid-template-columns: minmax(110px,.36fr) minmax(0,1fr); column-gap: 20px; align-items: start; min-height: 0; padding: 24px; }
  .about-services-grid .service-number { grid-row: 1 / span 3; }
  .about-services-grid .service-card h3 { font-size: 23px; }
  .about-services-grid .service-card p { font-size: 16px; }
  .about-services-grid .service-card a { grid-column: 2; }
  .card-foot { margin-top: auto; }
  .property-grid, .service-grid, .engineering-grid, .why-grid, .featured-residence-grid, .contact-grid, .detail-columns, .calculator-layout, .mission-vision-grid, .footer-main { min-width: 0; }
  .card-title, .card-location, .card-specs, .listing-heading h1, .footer-main a, .footer-main p { overflow-wrap: anywhere; }
  .page-hero, .section, .section-sm, .property-card, .service-card, .energy-offer, .step, .request-panel, .calculator-box, .calculator-results, .contact-card, .enquiry-sticky, .feature-panel { min-width: 0; }
  .button .icon, button .icon, .site-header .icon, .site-footer .icon { flex: 0 0 auto; }
  @keyframes routeFade { from { opacity: .84; } to { opacity: 1; } }
  @keyframes menuIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes heroRise { from { transform: translateY(18px); } to { transform: translateY(0); } }
  .hero-photo { animation: heroRise 700ms var(--ease) both; }
  .hero-photo:nth-child(2) { animation-delay: 80ms; }
  .hero-photo:nth-child(3) { animation-delay: 160ms; }
  .hero-stamp { animation: heroRise 700ms var(--ease) 260ms both; }
  [data-reveal] { opacity: 1; transform: none; }
  #app.motion-enabled [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--reveal-delay,0ms); }
  #app.motion-enabled [data-reveal].is-visible { opacity: 1; transform: none; }
  .page-404-inner { text-align: center; }
  .mission-vision-grid > div { min-width: 0; padding: 28px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--white); }
  .mission-vision-grid h2.u-display-medium { margin: 0; color: var(--forest); font-size: clamp(24px,2.1vw,28px); line-height: 1.3; }
  .security-panel .service-grid { margin-bottom: 0; }
  .security-panel .service-grid + .button { margin-top: 48px; }
  .security-panel .service-card { min-height: 230px; }
  .security-panel .service-number { color: var(--surface-graphite); }
  .amenity-filter-chips { overscroll-behavior-inline: contain; }
  .draft-note strong { color: var(--ink); }
  @media (prefers-reduced-motion: reduce) {
    .hero-photo, .hero-stamp { animation: none !important; }
    #app.motion-enabled [data-reveal] { opacity: 1 !important; transform: none !important; }
  }
}
@layer responsive{

  /*  Responsive overrides live here, after component and section layers. Keep breakpoints wide-to-narrow so narrow rules win.  */
  @media (max-width: 1100px) {
    :root { --gutter: 24px; }
    .property-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .home-property-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .primary-nav { gap: 10px; font-size: 12px; }
    .header-inner { gap: 12px; }
    .nav-whatsapp { padding-inline: 14px; }
    .featured-residence-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .energy-blueprint, .security-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-main { grid-template-columns: 1.2fr 1fr 1fr; gap: 26px; }
    .footer-main > div:last-child { grid-column: 2/-1; }
  .property-grid.list-view .property-card { grid-template-columns: minmax(150px,34%) minmax(0,1fr); }
  }
  @media (max-width: 1100px) {
    .menu-toggle { display: inline-flex; }
    .primary-nav { position: fixed; z-index: 300; inset: 78px 0 0; display: none; flex-direction: column; align-items: stretch; gap: 0; overflow: auto; padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom)); background: var(--ivory); opacity: 1; box-shadow: var(--forest-shadow-lg); }
    .primary-nav.open { display: flex; animation: menuIn 240ms var(--ease) both; }
    body:has(.primary-nav.open) { overflow: hidden; }
    .primary-nav > a:not(.button):not(.saved-nav) { min-height: 48px; }
    .nav-group { width: 100%; }
    .nav-group-head { width: 100%; }
    .nav-group-head > a, .nav-group-head > .nav-group-label { min-height: 48px; }
    .nav-sub { position: static; display: none; min-width: 0; margin: 4px 0 12px; padding: 8px; border: 0; background: var(--surface-sage); box-shadow: none; }
    .nav-group.open .nav-sub { display: grid; animation: menuIn 180ms var(--ease) both; }
    .nav-sub a { min-height: 44px; }
    .nav-whatsapp { margin-top: auto; position: sticky; bottom: 0; }
    .hero-grid { gap: 34px; }
    .hero-visual { min-height: 500px; }
    .hero-photo-stack { height: 470px; }
    .engineering-grid, .why-grid { gap: 32px; }
  }@media (max-width: 1100px) { 
  :root { --header-height: 82px; --topline-height: 36px; }
  .topline { min-width: 0; gap: 10px; letter-spacing: .08em; padding-left: max(var(--gutter),env(safe-area-inset-left)); padding-right: max(var(--gutter),env(safe-area-inset-right)); }
  .topline-right { display: none; }
  .header-inner { gap: 14px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; z-index: 300; inset: calc(var(--topline-height) + var(--header-height)) 0 0;
    display: none; height: auto; max-height: none; flex-direction: column; align-items: stretch;
    gap: 0; overflow: auto; overscroll-behavior: contain;
    padding: 20px max(var(--gutter),env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(var(--gutter),env(safe-area-inset-left));
    background: var(--ivory); opacity: 1; box-shadow: var(--forest-shadow-lg);
  }
  .primary-nav.open { display: flex; animation: menuIn 240ms var(--ease) both; }
  body:has(.site-header.scrolled) .primary-nav { top: var(--header-height); }
  body:has(.primary-nav.open) { overflow: hidden; overscroll-behavior: none; }
  .primary-nav > a:not(.button):not(.saved-nav) { min-height: 48px; }
  .nav-group { width: 100%; }
  .nav-group-head { width: 100%; }
  .nav-group-head > a, .nav-group-head > .nav-group-label { min-height: 48px; }
  .nav-sub { position: static; display: none; min-width: 0; margin: 4px 0 12px; padding: 8px; border: 0; background: var(--surface-sage); box-shadow: none; }
  .nav-group.open .nav-sub { display: grid; animation: menuIn 180ms var(--ease) both; }
  .nav-sub a { min-height: 44px; }
  .nav-whatsapp { display: flex; margin-top: auto; position: sticky; bottom: 0; min-height: 52px; }
  .detail-columns { grid-template-columns: minmax(0,1.3fr) minmax(270px,.7fr); gap: 24px; }
  .calculator-layout { grid-template-columns: minmax(0,1.2fr) minmax(270px,.8fr); gap: 20px; }
  .filter-panel { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .about-services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about-services-grid .service-card { grid-template-columns: 56px minmax(0,1fr); }
  .footer-main { grid-template-columns: 1.1fr 1fr 1fr; }
  .footer-main > div:last-child { grid-column: 2/-1; }
  .concierge-button { right: max(16px,env(safe-area-inset-right)); bottom: max(20px,env(safe-area-inset-bottom)); }
  .compare-table th:first-child, .compare-table td:first-child { position: sticky; left: 0; z-index: 2; background: var(--white); box-shadow: 1px 0 0 var(--hairline); }
  .compare-table thead th:first-child { z-index: 3; background: var(--surface-sage); }
 }
  @media (max-width: 920px) {
    .values-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  }@media (max-width: 920px) { 
  :root { --gutter: 22px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .hero-visual { min-height: clamp(320px,48vw,440px); }
  .hero-photo-stack { height: clamp(300px,46vw,420px); }
  .detail-columns, .calculator-layout { grid-template-columns: minmax(0,1fr); }
  .enquiry-sticky, .calculator-results { position: static; top: auto; }
  .calculator-results { order: -1; }
  .detail-columns { gap: 24px; }
  .property-grid.list-view .property-card { grid-template-columns: minmax(150px,34%) minmax(0,1fr); }
  .empty-state { grid-template-columns: minmax(0,.65fr) minmax(0,1fr); }
  .detail-specs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .about-services-grid { grid-template-columns: minmax(0,1fr); }
  .about-services-grid .service-card { grid-template-columns: 60px minmax(0,1fr); }
  .about-services-grid .service-number { grid-column: 1; grid-row: 1 / span 3; }
  .about-services-grid .service-card h3, .about-services-grid .service-card p, .about-services-grid .service-card a { grid-column: 2; }
  .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 20px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-main > div:last-child { grid-column: 1/-1; }
 }
  @media (max-width: 760px) {
    .about-services-grid { grid-template-columns: minmax(0,1fr); }
    .about-services-grid .service-card { grid-template-columns: 52px minmax(0,1fr); column-gap: 14px; }
    .about-services-grid .service-number { grid-column: 1; grid-row: 1 / span 3; }
    .about-services-grid .service-card h3, .about-services-grid .service-card p, .about-services-grid .service-card a { grid-column: 2; }
  .lightbox figure { width: 100%; max-width: 100%; }
  .lightbox figure img { max-width: 100%; }
  }
  @media (max-width: 760px) {
    :root { --gutter: 18px; --space-section: 76px; }
    .topline { display: none; }
    .header-inner { height: 68px; }
    .site-header { top: 0; }
    .hero { padding: 26px 0 42px; }
    .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
    .hero-copy { display: contents; }
    .hero-copy > .eyebrow { order: 1; }
    .hero-copy > h1 { order: 2; font-size: clamp(46px, 11.3vw, 64px); margin-bottom: 16px; }
    .hero-copy > .hero-lede { order: 3; font-size: 16px; margin-bottom: 0; }
    .hero-visual { order: 4; width: 100%; min-height: 326px; margin: 8px 0 0; }
    .hero-photo-stack { height: 320px; max-width: 490px; margin-inline: auto; gap: 8px; }
    .hero-stamp { right: 2px; bottom: 2px; width: 120px; padding: 8px; }
    .hero-stamp strong { font-size: 32px; }
    .hero-stamp-copy { font-size: 12px; letter-spacing: .015em; }
    .hero-copy > .intent-wrap { order: 5; margin-top: 10px; }
    .hero-copy > .hero-mini { order: 6; margin-top: 8px; }
    .trust-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 10px; margin-top: 28px; }
    .trust-item + .trust-item { border-left: 0; padding-left: 0; }
    .pillar-line { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
    .pillar-line::before { display: none; }
    .pillar-line .pillar { flex: 0 0 min(76vw,270px); min-height: 136px; scroll-snap-align: start; }
    .property-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .home-property-grid { grid-template-columns: minmax(0,1fr); }
    .featured-residence-grid { grid-template-columns: minmax(0,1fr); }
    .energy-blueprint, .security-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .engineering-grid, .why-grid, .contact-grid, .detail-columns, .calculator-layout, .u-grid-two { grid-template-columns: minmax(0,1fr); }
    .engineering-images { max-width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .engineering-images .engineering-feature-primary { grid-row: span 2; }
    .steps { grid-template-columns: minmax(0,1fr); gap: 12px; }
    .commitments { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .values-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .mission-vision-grid { grid-template-columns: minmax(0,1fr); }
    .detail-columns { gap: 24px; }
    .enquiry-sticky { position: static; order: -1; }
    .gallery-layout { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; height: auto; }
    .gallery-main { aspect-ratio: 4/5; height: auto; }
    .gallery-side { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: auto; }
    .gallery-side .gallery-thumb:nth-child(4) { display: none; }
    .featured-cover { aspect-ratio: 4/5; }
    .category-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .category-tabs a { flex: 0 0 auto; white-space: nowrap; }
    .property-toolbar { align-items: stretch; flex-direction: column; }
    .filter-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .filter-control { min-width: 0; }
    .filter-panel .filter-control:first-child, .filter-panel > .button { grid-column: 1/-1; }
    .results-line { align-items: flex-start; flex-direction: column; gap: 12px; }
    .property-grid.list-view .property-card { grid-template-columns: minmax(112px,36%) minmax(0,1fr); }
    .property-grid.list-view .card-image { min-height: 210px; }
    .listing-heading { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
    .listing-heading > .mono { text-align: left; font-size: clamp(34px,9vw,44px); }
    .detail-specs { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .calculator-layout { gap: 18px; }
    .calculator-results { position: static; order: -1; }
    .calculator-settings { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .wizard-options { grid-template-columns: minmax(0,1fr); }
    .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 18px; }
    .footer-brand { grid-column: 1/-1; }
    .footer-main > div:last-child { grid-column: 1/-1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
    .mobile-action-bar { display: flex; position: fixed; z-index: 200; left: 0; right: 0; bottom: 0; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); background: var(--ivory); box-shadow: var(--shadow-mobile-bar); }
    .mobile-action-bar > :where(a,button) { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 10px 6px; border: 0; border-radius: var(--radius-control); background: var(--forest); color: var(--white); text-align: center; font-size: 13px; font-weight: 600; }
    .mobile-action-bar > :first-child { background: var(--leaf); }
    .mobile-action-bar > :last-child { background: var(--red); }
    body:has(.mobile-action-bar) #app { padding-bottom: 76px; }
    body:has(.mobile-action-bar) .concierge-button { display: none; }
    .concierge-button { display: none; }
    .concierge-panel { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); width: min(370px,calc(100vw - 24px)); }
    .toast { bottom: calc(78px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); }
    .lightbox { padding: 14px; }
    .lightbox figure { width: 92vw; max-width: 92vw; }
    .lightbox figure img { max-width: 92vw; max-height: 72vh; object-fit: contain; }
    .compare-table-wrap { overflow-x: auto; }
    .compare-table { min-width: 650px; }
    .page-404-inner { padding: 48px 0; }
    .page-404-form { flex-direction: column; }
    .page-404-form .button { width: 100%; }
    .about-services-grid { grid-template-columns: minmax(0,1fr); }
    .about-services-grid .service-card { grid-template-columns: minmax(0,1fr); }
    .about-services-grid .service-number, .about-services-grid .service-card a { grid-column: 1; grid-row: auto; }
    .enquiry-shortcuts { grid-template-columns: minmax(0,1fr); }
  }
  @media (max-width: 760px) {
    .listing-top { padding: 28px 0 70px; }
    .gallery-layout { min-height: 0; margin: 16px 0 28px; }
    .gallery-side { min-height: 110px; }
    .card-body { padding: 20px; }
    .filter-panel { gap: 12px; }
    .calculator-box { padding: 18px; }
    .result-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .lightbox { grid-template-columns: 44px minmax(0,1fr) 44px; padding: 14px; }
    .lightbox figure { width: 92vw; height: 82vh; }
    .lightbox figure img { max-height: 76vh; }
  }@media (max-width: 760px) { 
  :root { --gutter: 18px; --space-section: 76px; --header-height: 68px; --topline-height: 0px; }
  html { scroll-padding-top: calc(var(--header-height) + 12px); }
  .topline { display: none; }
  .primary-nav { inset: var(--header-height) 0 0; }
  body:has(.site-header.scrolled) .primary-nav { top: var(--header-height); }
  .wrap { width: min(var(--wrap), calc(100% - (var(--gutter) * 2) - env(safe-area-inset-left) - env(safe-area-inset-right))); }
  input, select, textarea, .appliance-table input { font-size: 16px; }
  .calculator-table-wrap { max-width: 100%; overflow: visible; }
  .appliance-table, .appliance-table thead, .appliance-table tbody, .appliance-table tr, .appliance-table td { display: block; width: 100%; }
  .appliance-table { min-width: 0; }
  .appliance-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .appliance-table tbody { display: grid; gap: 10px; }
  .appliance-table tr { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 14px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--ivory); }
  .appliance-table td { min-width: 0; padding: 0; border: 0; }
  .appliance-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
  .appliance-table td.appliance-name { grid-column: 1/-1; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); color: var(--forest); font-size: 15px; }
  .appliance-table td.appliance-name::before { display: none; }
  .appliance-table input { width: 100%; min-width: 0; }
  .lightbox { padding: max(14px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); grid-template-columns: 44px minmax(0,1fr) 44px; grid-template-rows: minmax(0,1fr) auto; overflow: hidden; }
  .lightbox figure { width: 92vw; max-width: 92vw; height: min(82svh,calc(100dvh - 132px)); min-height: 0; }
  .lightbox figure img { max-width: 92vw; max-height: min(76svh,calc(100dvh - 172px)); object-fit: contain; }
  .lightbox-close { top: max(10px,env(safe-area-inset-top)); right: max(10px,env(safe-area-inset-right)); }
  .lightbox-count { top: max(18px,env(safe-area-inset-top)); left: max(18px,env(safe-area-inset-left)); }
  .lightbox-thumbs { max-height: 84px; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; }
  .lightbox-thumb { scroll-snap-align: center; }
  .mobile-action-bar { left: env(safe-area-inset-left); right: env(safe-area-inset-right); }
  body:has(.mobile-action-bar) .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body:has(.mobile-action-bar) #app { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .footer-bottom { gap: 8px; }
  .footer-bottom > span:nth-child(2) { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .footer-bottom a { margin-left: 0; }
  .pillar-line, .intent-tabs, .category-tabs, .lightbox-thumbs, .compare-table-wrap { overscroll-behavior-inline: contain; scrollbar-width: thin; scroll-padding-inline: 16px; }
  .pillar-line .pillar, .intent-tab, .category-tabs a, .lightbox-thumb { scroll-snap-align: start; }
  .intent-tabs { scroll-snap-type: x proximity; }
  .intent-tab { flex: 0 0 auto; min-width: 76px; }
  .category-tabs { scroll-snap-type: x proximity; }
  .compare-table-wrap { max-width: 100%; overflow-x: auto; }
  .compare-table { min-width: 650px; }
  .compare-table th:first-child, .compare-table td:first-child { position: sticky; left: 0; z-index: 2; background: var(--white); }
  .compare-table thead th:first-child { background: var(--surface-sage); z-index: 3; }
  .card-title, .card-location, .price, .mono, .listing-heading h1, .footer-main a, .footer-bottom, .breadcrumbs { overflow-wrap: anywhere; }
 }
  @media (max-width: 520px) {
    .values-grid { grid-template-columns: minmax(0,1fr); }
    .about-services-grid .service-card { padding: 20px; }
  }
  @media (max-width: 520px) {
    .wrap { width: calc(100% - 32px); }
    .hero h1 { font-size: clamp(44px,11.5vw,58px); }
    .hero-photo-stack { height: 276px; gap: 5px; }
    .hero-visual { min-height: 282px; }
    .hero-stamp { width: 116px; padding: 8px; right: 2px; bottom: 0; }
    .hero-stamp strong { font-size: 30px; }
    .hero-stamp-copy { font-size: 12px; letter-spacing: 0; }
    .trust-strip { gap: 15px 10px; }
    .trust-item { align-items: flex-start; font-size: 13px; }
    .trust-item strong { font-size: 26px; }
    .intent-tabs { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; }
    .intent-tab { flex: 0 0 auto; min-width: 76px; min-height: 44px; padding: 9px 10px; font-size: 13px; white-space: nowrap; scroll-snap-align: start; }
    .form-grid { grid-template-columns: minmax(0,1fr); }
    .intent-panel { padding: 18px; }
    .intent-actions { display: grid; grid-template-columns: minmax(0,1fr); }
    .intent-actions > .button { width: 100%; min-width: 0; white-space: normal; }
    .property-grid.list-view .property-card { grid-template-columns: minmax(96px,34%) minmax(0,1fr); }
    .property-grid.list-view .card-body { padding: 14px; }
    .energy-blueprint, .security-service-grid, .values-grid { grid-template-columns: minmax(0,1fr); }
    .field-media-strip { grid-template-columns: minmax(0,1fr); }
    .engineering-images { grid-template-columns: minmax(0,1fr); }
    .engineering-images .engineering-feature-primary { grid-row: auto; }
    .engineering-feature { aspect-ratio: 4/5; }
    .engineering-feature img { aspect-ratio: 4/5; }
    .gallery-side { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .detail-specs { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-brand { grid-column: 1/-1; }
    .footer-main > div:last-child { grid-column: 1/-1; }
    .form-actions, .detail-footer-actions, .cross-sell-actions { display: grid; grid-template-columns: minmax(0,1fr); }
    .form-actions .button, .detail-footer-actions .button, .cross-sell-actions .button { width: 100%; }
  }
  @media (max-width: 520px) {
    .security-service-grid, .energy-blueprint { grid-template-columns: minmax(0,1fr); }
    .service-grid { grid-template-columns: minmax(0,1fr); }
    .values-grid { grid-template-columns: minmax(0,1fr); }
    .field-media-strip { grid-template-columns: minmax(0,1fr); }
    .engineering-images--facility { grid-template-columns: minmax(0,1fr); }
    .engineering-images--facility .engineering-feature-primary { grid-row: auto; }
    .engineering-images--facility { aspect-ratio: auto; grid-template-rows: auto; }
    .engineering-images--facility .engineering-feature { aspect-ratio: 4/5; height: auto; }
    .commitments { grid-template-columns: minmax(0,1fr); }
    .detail-specs { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .spec-readout { padding-inline: 8px; }
    .spec-readout strong { font-size: 30px; }
    .spec-readout span { font-size: 12px; }
    .listing-heading > .mono { white-space: normal; }
  }@media (max-width: 520px) { 
  .hero h1 { font-size: clamp(38px,11.5vw,58px); overflow-wrap: anywhere; }
  .hero-photo-stack { height: 276px; }
  .hero-visual { min-height: 282px; }
  .listing-heading > .mono { font-size: clamp(28px,8.5vw,36px); overflow-wrap: anywhere; }
  .mobile-action-bar { gap: 6px; padding-inline: max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right)); }
  .mobile-action-bar > :where(a,button) { font-size: 12px; padding-inline: 3px; }
  .detail-specs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .spec-readout { min-width: 0; }
 }@media (max-width: 360px) { 
  :root { --gutter: 16px; }
  .hero h1 { font-size: clamp(36px,10.7vw,42px); }
  .hero-photo-stack { gap: 4px; }
  .hero-stamp { width: 104px; right: 0; bottom: 0; }
  .hero-stamp strong { font-size: 26px; }
  .hero-stamp-copy { font-size: 12px; letter-spacing: 0; }
  .mobile-action-bar { gap: 4px; }
  .mobile-action-bar > :where(a,button) { font-size: 12px; min-height: 48px; }
  .detail-specs { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .filter-panel { grid-template-columns: minmax(0,1fr); }
  .filter-panel .filter-control:first-child, .filter-panel > .button { grid-column: auto; }
 }@media (hover: none), (pointer: coarse) { 
  .button:hover, .property-card:hover, .energy-offer:hover, .concierge-button:hover { transform: none; box-shadow: inherit; }
  .property-card:hover .card-image img { transform: none; }
  .footer-main a:hover::after { right: 100%; }
  input, select, textarea, .appliance-table input { font-size: 16px; }
 }@media (max-height: 600px) and (max-width: 1100px) { 
  .enquiry-sticky, .calculator-results { position: static; top: auto; max-height: none; overflow: visible; }
  .primary-nav { overflow-y: auto; }
  .lightbox { padding-block: max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-bottom)); }
  .lightbox figure { height: min(70svh,calc(100dvh - 118px)); }
  .lightbox figure img { max-height: min(64svh,calc(100dvh - 154px)); }
  .lightbox-thumbs { max-height: 66px; }
 }


  /* R16 — Keep the mobile/tablet drawer viewport-fixed after the sticky header scrolls.
     backdrop-filter on a fixed-position ancestor creates a containing block for fixed
     descendants; disabling it at drawer breakpoints lets .primary-nav cover the full
     viewport below the visible header instead of being clipped to the header box. */
  @media (max-width: 1100px) {
    :root { --menu-top-offset: calc(var(--topline-height) + var(--header-height)); }
    .site-header.scrolled {
      background: var(--ivory);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
    body:has(.site-header.scrolled) { --menu-top-offset: var(--header-height); }
    .primary-nav {
      position: fixed;
      inset: var(--menu-top-offset) 0 0;
      height: auto;
      min-height: 0;
      max-height: none;
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior-y: contain;
      -webkit-overflow-scrolling: touch;
      padding-bottom: calc(24px + env(safe-area-inset-bottom));
      background: var(--ivory);
      isolation: isolate;
    }
    .primary-nav.open { display: flex; }
  }

  @media (max-width: 760px) {
    :root { --menu-top-offset: var(--header-height); }
  }
}
