/* Caboolture Medical Hub: Webby layout in the IM's palette (deep green, cream, white) + one gold accent.
 * Accent tokens are named --bronze* for historical reasons: --bronze means "the accent" (gold here).
 * Contrast (WCAG 2.x), measured 28 Oct 2026:
 *   Text on light                      #16201E ink 16.7 on #FFF, 15.3 on cream #F8F5EF
 *                                      #3E4644 body 9.70 / 8.92 · #6B726F muted 4.93 / 4.53
 *   Text on deep green #15302C         #FFF 14.1 · cream 12.9 · #CDD5D1 body 9.41 · #A9B8B3 muted 6.84
 *   Text on card green #1E3A35         #FFF 12.3 · #CDD5D1 8.20 · #A9B8B3 5.96 · #C3A375 5.15
 *   --bronze (fill, plan "Available")  #8D714C   white text 4.57
 *   --bronze-ink (gold text on light)  #856A47   on #FFF 5.06, on cream 4.65; white text on it 5.06
 *   --bronze-glow (gold text on dark)  #C3A375   on #15302C 5.91, on #1E3A35 5.15 (accent.py's #AF9067 gave 4.09 on card green)
 *   --bronze-deep (hover fill)         #6D573A   white text 6.83
 *   Gold pill on green                 #15302C on #C3A375 5.91; hover #D2B58A 7.19
 *   Plan parking labels                #5E6562 on #F1ECE3 5.08
 * Gold #A8865A (the IM's) is used for decorative rules only; it never carries text.
 */

/* ---------- Tokens ---------- */
:root {
  --green: #15302C;        /* dark sections (hero, precinct, closer look, enquiry) */
  --green-2: #1E3A35;      /* cards on green */
  --green-deep: #0E201D;   /* lightbox, photo scrims */
  --black: var(--green);
  --graphite: #16201E;     /* ink on light */
  --white: #FFFFFF;
  --mist: #F8F5EF;         /* cream: alternating light sections */
  --body-c: #3E4644;
  --grey: #6B726F;
  --grey-dark: #A9B8B3;    /* secondary text on green */
  --bronze: #8D714C;
  --bronze-ink: #856A47;
  --bronze-glow: #C3A375;
  --bronze-deep: #6D573A;
  --gold: #A8865A;
  --fill: #EFEAE0;
  --lot: #F1ECE3;
  --error: #B3261E;

  --ink: var(--graphite);
  --body: var(--body-c);
  --muted: var(--grey);
  --link: var(--bronze-ink);
  --hairline: #E4DED2;
  --rule: var(--gold);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.4, 0, 0.6, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 28px;
  --nav-h: 52px;
  --gutter: 24px;
  --pad: clamp(5rem, 2.5rem + 8vw, 9rem);
  --head-gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

[data-theme="dark"] {
  --ink: #F8F5EF;
  --body: #CDD5D1;
  --muted: var(--grey-dark);
  --link: var(--bronze-glow);
  --hairline: rgba(248, 245, 239, 0.16);
  --rule: var(--bronze-glow);
}
[data-theme="light"] {
  --ink: var(--graphite);
  --body: var(--body-c);
  --muted: var(--grey);
  --link: var(--bronze-ink);
  --hairline: #E4DED2;
  --rule: var(--gold);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
  touch-action: manipulation;
}
/* Smooth in-page scrolling switches on only after load (site.js), so arriving on a link such as
   #enquire jumps straight there instead of animating through, and downloading, the whole page. */
html.motion.smooth-scroll { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.47059;          /* 25px */
  letter-spacing: -0.022em;
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
.lede, .hero-sub, .tile-text, .cl-text, .feature p, .reason p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
strong { font-weight: 600; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
[data-theme="dark"] :focus-visible { outline-color: var(--bronze-glow); }

.wrap { width: min(1260px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--graphite); padding: 10px 16px; border-radius: 980px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Section themes */
.section { padding-block: var(--pad); }
.section--black, .section--graphite { background: var(--green); color: var(--ink); }
.section--mist { background: var(--mist); }
.section--white { background: var(--white); }

/* ---------- Type ---------- */
/* Display type is the IM's serif (one weight); the accent word is italic gold. */
.hero-title, .section-title, .statement-title, .tile-big, .stat-num, .agent-name, .sd-title, .ty-title, .dir-name, .sr-id, .nav-title, .footer-name {
  font-family: var(--serif); font-weight: 400;
}
.hero-title em, .section-title em, .statement-title em { color: var(--rule); }
[data-theme="light"] .section-title em { color: var(--bronze-ink); }

/* Small tracked capitals, as the IM labels its sections */
.eyebrow {
  font-size: 0.75rem; line-height: 1.33337; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--link); margin: 0;
}

.section-head { margin-bottom: var(--head-gap); }
.section-title {
  font-size: clamp(2.25rem, 1.35rem + 2.9vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.005em;
  max-width: 15em;
  color: var(--ink);
}
/* The IM's short gold rule under each heading */
.section-title::after {
  content: ""; display: block; width: 44px; height: 2px; border-radius: 1px;
  background: var(--rule); margin-top: clamp(1rem, 0.8rem + 0.5vw, 1.375rem);
}
.section-title + .lede, .section-head .lede { margin-top: clamp(1rem, .8rem + .6vw, 1.5rem); }
.lede {
  font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.3125rem);
  line-height: 1.381;
  letter-spacing: 0.011em;
  color: var(--body);
  max-width: 40em;
  margin-bottom: 0;
}
.lede strong { color: var(--ink); }
.sub-title {
  font-size: clamp(1.3125rem, 1.15rem + 0.5vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: 0.007em;
  margin: 0 0 1rem;
}
.fine { font-size: 0.875rem; line-height: 1.42859; letter-spacing: -0.016em; color: var(--muted); margin: 1.5rem 0 0; max-width: 60em; }

/* ---------- Buttons and links ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 22px;
  border: 0; border-radius: 980px;
  font-size: 1.0625rem; line-height: 1.17648; letter-spacing: -0.022em; font-weight: 400;
  text-decoration: none; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .24s var(--ease), color .24s var(--ease), transform .1s ease-out;
}
.pill:active { transform: scale(0.97); }
.pill--dark { background: var(--green); color: var(--white); }
.pill--dark:hover { background: var(--green-2); }
.pill--light { background: var(--mist); color: var(--green); }
.pill--light:hover { background: var(--white); }
.pill--gold { background: var(--bronze-glow); color: var(--green); font-weight: 500; }
.pill--gold:hover { background: #D2B58A; }
/* Filled gold pills on light use the deeper gold so 14px white text clears AA (5.06:1) */
.pill--bronze { background: var(--bronze-ink); color: var(--white); }
.pill--bronze:hover { background: var(--bronze-deep); }
.pill--block { display: flex; width: 100%; }
.pill--lg { min-height: 52px; padding-block: 15px; }
.pill--nav { white-space: nowrap; min-height: 32px; padding: 6px 15px; font-size: 0.875rem; line-height: 1.43; letter-spacing: -0.016em; font-weight: 500; position: relative; }
.pill--nav::after { content: ""; position: absolute; inset: -8px -4px; } /* larger hit area */
.pill[disabled] { opacity: .6; cursor: progress; }

.link-chev {
  position: relative;
  color: var(--link); text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* A 44px-tall hit area around text links, without changing the layout */
.link-chev::before { content: ""; position: absolute; inset: -10px -4px; }
.link-chev::after { content: "\203A"; display: inline-block; margin-left: 0.25em; transition: transform .24s var(--ease); }
.link-chev:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.link-chev:hover::after { transform: translateX(2px); }
button.link-chev { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; }

/* ---------- Navigation (frosted local nav) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: var(--ink);
  transition: color .32s var(--ease);
  --nav-glass: rgba(255, 255, 255, 0.86);
  --nav-panel: rgba(255, 255, 255, 0.96);
  --nav-link: rgba(22, 32, 30, 0.82);
}
.nav[data-theme="dark"] { --nav-glass: rgba(21, 48, 44, 0.86); --nav-panel: rgba(21, 48, 44, 0.97); --nav-link: rgba(248, 245, 239, 0.84); }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--nav-glass);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 8px), rgba(0, 0, 0, 0.72));
  mask-image: linear-gradient(to bottom, #000 calc(100% - 8px), rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity .24s var(--ease), background-color .32s var(--ease);
}
.nav.is-docked::before { opacity: 1; }
.nav.is-open::before { background: var(--nav-panel); -webkit-mask-image: none; mask-image: none; }
.nav-bar { height: var(--nav-h); display: flex; align-items: center; gap: 8px; }
.nav-title {
  font-size: 1.1875rem; line-height: 1.2; letter-spacing: 0;
  text-decoration: none; white-space: nowrap; color: var(--ink); margin-right: auto;
  padding-block: 11px; /* 44px tap target inside the 52px bar */
}
.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; margin-right: 4px;
  border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle svg { transition: transform .32s var(--ease); }
.nav.is-open .nav-toggle svg { transform: rotate(180deg); }
.nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; color: var(--nav-link); transition: color .24s var(--ease); }
.nav-menu a:hover { color: var(--ink); }
/* Over green, the nav pill turns light gold so it reads as the one action */
.nav[data-theme="dark"] .pill--nav { background: var(--bronze-glow); color: var(--green); }
.nav[data-theme="dark"] .pill--nav:hover { background: #D2B58A; }

@media (max-width: 1067px) {
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--nav-panel);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    backdrop-filter: saturate(180%) blur(30px);
    box-shadow: 0 18px 32px -18px rgba(14, 32, 29, 0.4);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .24s var(--ease), transform .32s var(--ease-out), visibility 0s linear .32s;
  }
  .nav.is-open .nav-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-menu ul { width: min(1260px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 8px 0 20px; }
  .nav-menu li a { display: block; padding: 12px 0; font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
  .nav-menu li + li a { border-top: 1px solid var(--hairline); }
  .nav-menu-call a { color: var(--link) !important; }
}
@media (max-width: 733px) {
  .nav .pill--nav { display: none; }
  .nav-title { font-size: 1.125rem; }
}
@media (min-width: 1068px) {
  .nav-toggle { display: none; }
  .nav-title { font-size: 1.3125rem; }
  .nav-menu ul { display: flex; gap: 28px; margin-right: 24px; }
  .nav-menu a { font-size: 0.8125rem; letter-spacing: -0.01em; }
  .nav-menu-call { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--green); color: var(--ink);
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 0.6rem + 2.6vw, 2.75rem));
  text-align: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { margin-bottom: clamp(1rem, 0.8rem + 0.6vw, 1.5rem); }
.hero-title {
  margin: 0;
  font-size: clamp(3.25rem, 1.6rem + 6.2vw, 6rem);   /* 52px on phones, 96px max */
  line-height: 0.98;
  letter-spacing: -0.012em;
  color: var(--white);
  text-wrap: initial;
}
.hero-title em { display: block; }
/* Wide screens: the name sits on one line, so the photo leads the first view */
@media (min-width: 1068px) {
  .hero { padding-top: calc(var(--nav-h) + 2rem); }
  .hero-title { font-size: clamp(4.25rem, 0.6rem + 5.6vw, 6rem); }
  .hero-title em { display: inline; }
  .hero-ctas { margin-top: 1.75rem; }
  .hero-media { margin-top: 2rem; }
}
.hero-sub {
  text-wrap: balance;
  font-size: clamp(1.0625rem, 0.85rem + 0.9vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: 0.009em;
  color: rgba(248, 245, 239, 0.86);
  max-width: 30em;
  margin: clamp(1.25rem, 0.9rem + 1vw, 1.75rem) 0 0;
}
@media (max-width: 733px) { .hero-sub { letter-spacing: -0.016em; } }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); }
.hero-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px;
  padding: 16px 0 22px; text-align: left;
}
.hero-meta { margin: 0; font-size: 0.875rem; line-height: 1.42859; letter-spacing: -0.016em; color: var(--muted); }
.hero-meta strong { color: var(--ink); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bronze-glow); margin-right: 8px; vertical-align: 1px; }
.hero-media { position: relative; margin: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem) 0 0; overflow: hidden; }
.hero-media-btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--green-2); cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.hero-img {
  display: block; width: 100%; height: auto;
  max-height: min(100vh, 1080px); object-fit: cover; object-position: 50% 58%;
}
/* Wide screens: trim the sky so the building sits in the first view */
@media (min-width: 734px) { .hero-img { max-height: min(80vh, 960px); object-position: 50% 74%; } }
@media (max-width: 733px) { .hero-img { min-height: 62vh; min-height: 62svh; } }
.hero-address { font-size: 0.75rem; line-height: 1.33337; letter-spacing: 0.02em; color: var(--muted); margin: 0; }

/* Orchestrated load: the copy rises once, the photo settles from a slight zoom */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html.motion [data-intro] { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
html.motion .hero-img { transform: scale(1.06); transition: transform 2.4s var(--ease-out); }
html.motion .hero-media.is-ready .hero-img { transform: none; }
html.motion .hero-media.is-instant .hero-img { transition: none; transform: none; }

/* Photo tag ("Photographed August 2025") */
.img-tag {
  position: absolute; left: 16px; bottom: 16px; margin: 0;
  font-size: 0.75rem; line-height: 1.33337; letter-spacing: 0; font-weight: 600; color: #F8F5EF;
  background: rgba(21, 48, 44, 0.78);
  -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%);
  padding: 5px 11px; border-radius: 980px; pointer-events: none;
}
@media (min-width: 1068px) { .hero .img-tag { left: max(var(--gutter), calc((100% - 1260px) / 2)); bottom: 24px; } }

/* ---------- Scroll reveal (only when JS has set it up and motion is welcome) ---------- */
html.reveal-ready .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
html.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Essentials (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile {
  grid-column: span 12;
  position: relative; overflow: hidden;
  background: var(--white); border-radius: var(--r);
  padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
  display: flex; flex-direction: column;
  min-height: 200px;
}
.tile-big {
  font-size: clamp(2.75rem, 1.9rem + 2.6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.01em;
  margin: 0; color: var(--ink);
}
.tile-big .unit { font-size: 0.5em; letter-spacing: 0; margin-left: 0.08em; }
.tile--c .tile-big, .tile--d .tile-big, .tile--e .tile-big { font-size: clamp(2.5rem, 1.8rem + 2vw, 3.5rem); }
.tile-big--xl { font-size: clamp(6rem, 3.5rem + 8vw, 11rem); line-height: 0.86; letter-spacing: -0.02em; }
.tile-text {
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3125rem); line-height: 1.3; letter-spacing: 0.006em; font-weight: 600;
  color: var(--muted); margin: 0.75rem 0 0; max-width: 22em;
}
.tile-cap { font-size: 0.8125rem; line-height: 1.38462; letter-spacing: -0.01em; color: var(--muted); margin: auto 0 0; padding-top: 1rem; }
.tile-link { margin-top: 1.25rem; align-self: flex-start; }

.tile--photo { padding: 0; background: var(--green-2); min-height: 380px; justify-content: flex-end; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.tile--wide img { object-position: 50% 55%; }
.tile-photo-copy {
  position: relative; padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); padding-top: 6rem;
  /* A firm scrim under the words (at least 0.78 where the caption sits), fading out above them */
  background: linear-gradient(to top, rgba(14, 32, 29, 0.9) 0%, rgba(14, 32, 29, 0.8) 45%, rgba(14, 32, 29, 0.5) 72%, rgba(14, 32, 29, 0) 100%);
  --ink: #FFFFFF; --muted: rgba(255, 255, 255, 0.88);
}
.tile-photo-copy .tile-cap { padding-top: 0.75rem; }

/* The tally: one batten per tenancy, gold = available */
.tally { display: flex; align-items: flex-end; gap: 6px; height: 72px; margin-top: auto; padding-top: 2rem; box-sizing: content-box; }
.tally i { display: block; width: 9px; border-radius: 3px; height: 40%; background: #DCD5C7; transform-origin: bottom; }
.tally i.s-available { height: 100%; background: var(--bronze); }
.tally i.s-under-offer, .tally i.s-on-hold { height: 66%; background: #B9B2A5; }
.tally-key { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 0.75rem; line-height: 1.33337; color: var(--muted); }
.tally-key i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.k-available { background: var(--bronze); }
.k-tenanted { background: #DCD5C7; }
html.reveal-ready .tile--a .tally i { transform: scaleY(0.12); transition: transform .9s var(--ease-out); transition-delay: calc(350ms + var(--b, 0) * 30ms); }
html.reveal-ready .tile--a.is-in .tally i { transform: none; }
@media (min-width: 734px) { .tally { gap: 8px; height: 88px; } .tally i { width: 12px; } }
@media (min-width: 1068px) { .tally { gap: 10px; height: 116px; } .tally i { width: 16px; border-radius: 4px; } }

@media (min-width: 734px) {
  .bento { gap: 20px; }
  .tile--c, .tile--d { grid-column: span 6; }
  .tile { min-height: 260px; }
}
@media (max-width: 733px) {
  .tile--c, .tile--d, .tile--e { min-height: 0; }
}
@media (min-width: 1068px) {
  .tile--a { grid-column: span 7; min-height: 560px; }
  .tile--b { grid-column: span 5; min-height: 560px; }
  .tile--c, .tile--d, .tile--e { grid-column: span 4; min-height: 300px; }
  .tile--f { min-height: 440px; }
}

/* ---------- Suites ---------- */
#suites { padding-top: clamp(4.5rem, 3rem + 3.4vw, 6rem); }
#suites .section-head { margin-bottom: 2.5rem; }
.suites-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1068px) { .suites-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } }
.plan-card { background: var(--mist); border-radius: var(--r); padding: clamp(14px, 0.5rem + 2vw, 40px); }
.plan { min-height: 200px; }
.plan svg { display: block; width: 100%; height: auto; overflow: visible; }
.plan-noscript { margin: 0; padding: 2rem 0; color: var(--muted); }
.plan-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 20px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; line-height: 1.42859; }
.plan-note { margin: 0; font-size: 0.75rem; line-height: 1.33337; color: var(--muted); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 8px; flex: none; }
.swatch.s-available { background: var(--bronze); }
.swatch.s-under-offer { background: repeating-linear-gradient(90deg, #A39C90 0 3px, #EFEAE0 3px 6px); box-shadow: inset 0 0 0 1px #8F887C; }
.swatch.s-on-hold { background: repeating-linear-gradient(45deg, #B9B2A5 0 2px, #F8F5EF 2px 5px); box-shadow: inset 0 0 0 1px #8F887C; }
.swatch.s-sold { background: #EFEAE0; box-shadow: inset 0 0 0 1px #8F887C; }
.swatch.s-tenanted { background: var(--white); box-shadow: inset 0 0 0 1px #CFC6B6; }

/* Plan drawing (schematic, after the IM site plan) */
.plan text { font-family: var(--font); letter-spacing: 0; }
.plan .lot { fill: var(--lot); stroke: #E4DED2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan .bay { stroke: #DCD5C7; stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan .walk { fill: none; stroke: #D6CDBD; stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.plan .lot-label, .plan .street-note { fill: #5E6562; text-anchor: middle; dominant-baseline: middle; font-weight: 500; letter-spacing: 0.14em; }
.plan .street { stroke: var(--graphite); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.plan .street-name { fill: var(--graphite); text-anchor: middle; dominant-baseline: middle; font-weight: 500; letter-spacing: 0.3em; }
.plan .north { fill: var(--graphite); }
.plan .north-label { fill: var(--graphite); text-anchor: middle; font-weight: 600; }
.plan .shape { stroke: #CFC6B6; stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .24s var(--ease); }
.plan .tenanted .shape { fill: var(--white); }
.plan .s-available .shape { fill: var(--bronze); stroke: var(--white); stroke-width: 2; }
.plan .s-under-offer .shape { fill: url(#pat-offer); }
.plan .s-on-hold .shape { fill: url(#pat-hold); }
.plan .s-sold .shape { fill: #EFEAE0; }
.plan .t-id { fill: var(--graphite); font-family: var(--serif); text-anchor: middle; }
.plan .t-meta { fill: var(--graphite); font-weight: 500; text-anchor: middle; }
.plan .t-status { fill: var(--graphite); font-weight: 600; text-anchor: middle; letter-spacing: 0.14em; }
.plan .t-name { fill: #5E6562; font-weight: 500; text-anchor: middle; letter-spacing: 0.1em; }
.plan .s-available text { fill: var(--white); }
.plan .s-sold text { fill: #5E6562; }
.plan .plate { fill: var(--white); }
.plan .suite { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.plan .s-sold { cursor: default; }
.plan .ring { fill: none; stroke: none; pointer-events: none; vector-effect: non-scaling-stroke; }
.plan .ring.on { stroke: var(--green); stroke-width: 3.5; }
/* Keyboard focus: a dashed near-black ring (3.6:1 on the gold fill; a gold ring vanished on gold) */
.plan .ring.focus { stroke: var(--graphite); stroke-width: 3.5; stroke-dasharray: 7 4; }
.plan .ring.on.focus { stroke: var(--graphite); stroke-width: 5; stroke-dasharray: none; }
@media (hover: hover) {
  .plan .s-available:hover .shape { fill: var(--bronze-ink); }
  .plan .s-under-offer:hover .shape, .plan .s-on-hold:hover .shape { opacity: 0.85; }
}

/* Suite list */
.suite-list-title { font-size: 1.3125rem; line-height: 1.2; letter-spacing: 0.011em; margin: 0 0 10px; }
.suite-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.suite-row {
  display: grid; grid-template-columns: 4.6em 1fr auto; align-items: center; gap: 12px;
  width: 100%; padding: 12px 16px; border: 0; border-radius: 16px; background: none; text-align: left; cursor: pointer;
  color: var(--graphite); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .24s var(--ease), transform .1s ease-out;
}
.suite-row:hover { background: var(--mist); }
.suite-row:active { transform: scale(0.985); }
.suite-row[aria-pressed="true"] { background: var(--mist); box-shadow: inset 0 0 0 2px var(--green); }
.sr-id { font-size: 1.5rem; line-height: 1.1; letter-spacing: 0; white-space: nowrap; }
.suite-row--combo .sr-id { font-size: 1.1875rem; }
.sr-size b { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.sr-size small { display: block; font-size: 0.8125rem; color: var(--grey); line-height: 1.3; }
.chip { display: inline-flex; align-items: center; font-size: 0.875rem; font-weight: 500; white-space: nowrap; color: var(--graphite); }
.chip .swatch { width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.chip.is-available { color: var(--bronze-ink); font-weight: 600; }
.sold-line { font-size: 0.875rem; color: var(--muted); margin: 14px 16px 0; }
.sold-line:empty { display: none; }
.list-empty { padding: 12px 16px; color: var(--muted); }

/* Suite detail: a card beside the plan on desktop, a draggable bottom sheet on phones and tablets */
.suite-detail { margin-bottom: 24px; }
.sheet-scrim { display: none; }
.sd-inner { position: relative; background: var(--mist); border-radius: var(--r); padding: 28px; color: var(--graphite); --link: var(--bronze-ink); }
.sd-grab { display: none; }
.sd-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: var(--fill); color: var(--graphite); display: grid; place-items: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color .24s var(--ease), transform .1s ease-out;
}
.sd-close::after { content: ""; position: absolute; inset: -6px; }
.sd-close:hover { background: #E4DED2; }
.sd-close:active { transform: scale(0.94); }
.sd-level { margin: 0 0 6px; }
.sd-title { font-size: 2.125rem; line-height: 1.1; letter-spacing: 0; margin: 0 0 14px; outline: none; padding-right: 36px; }
.sd-facts { margin: 0 0 14px; }
.sd-fact { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #E4DED2; }
.sd-fact dt { color: var(--grey); }
.sd-fact dd { margin: 0; font-weight: 600; text-align: right; }
.sd-note { font-size: 0.875rem; line-height: 1.42859; color: var(--body-c); margin: 0 0 12px; }
.sd-combo { display: inline-block; font-size: 0.9375rem; margin: 0 0 18px; }
.sd-enquire[hidden] { display: none; }
@keyframes materialize { from { opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (min-width: 1068px) {
  html.motion .suite-detail.is-fresh .sd-inner { animation: materialize .42s var(--ease-out); }
}
@media (max-width: 1067px) {
  .suite-detail {
    position: fixed; z-index: 60; margin: 0;
    left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .sd-inner {
    max-width: 560px; margin-inline: auto;
    max-height: calc(100vh - 96px); overflow: auto; overscroll-behavior: contain;
    padding: 6px 24px 24px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
    box-shadow: 0 12px 48px rgba(14, 32, 29, 0.22), 0 0 0 0.5px rgba(14, 32, 29, 0.12);
    touch-action: none; will-change: transform;
  }
  .sd-grab { display: flex; justify-content: center; padding: 4px 0 14px; cursor: grab; }
  .sd-grab span { width: 36px; height: 5px; border-radius: 3px; background: rgba(22, 32, 30, 0.28); }
  .sd-inner.is-dragging, .sd-inner.is-dragging .sd-grab { cursor: grabbing; }
  .sheet-scrim {
    display: block; position: fixed; inset: 0;
    background: rgba(14, 32, 29, 0.24);
    -webkit-tap-highlight-color: transparent;
  }
  html:not(.motion) .suite-detail.is-fresh .sheet-scrim { animation: fade .2s ease-out; }
  .sd-close { top: 14px; }
  .sd-title { font-size: 1.875rem; }
  .sd-fact { padding: 8px 0; }
  html:not(.motion) .suite-detail.is-fresh .sd-inner { animation: fade .2s ease-out; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Co-tenants directory ---------- */
.directory { display: grid; gap: 20px; }
@media (min-width: 1068px) { .directory { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dir-group { background: var(--white); border-radius: var(--r); padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }
.dir-label { padding-bottom: 14px; border-bottom: 2px solid var(--green); margin-bottom: 4px; }
.dir-list { list-style: none; margin: 0; padding: 0; }
.dir-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--hairline);
}
.dir-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.dir-name { font-size: 1.375rem; line-height: 1.2; color: var(--ink); grid-column: 1; }
.dir-role { font-size: 0.875rem; line-height: 1.42859; color: var(--muted); grid-column: 1; }
.dir-t { grid-column: 2; grid-row: 1; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }

/* ---------- Hospital precinct (statement) ---------- */
.statement { text-align: center; margin: 0 auto var(--head-gap); max-width: 1000px; }
.statement-title {
  font-size: clamp(3rem, 1.2rem + 7vw, 6.5rem);
  line-height: 1.0; letter-spacing: -0.012em; color: var(--white);
}
.statement-title em { color: var(--bronze-glow); }
.statement .lede { margin: clamp(1.25rem, 1rem + 0.8vw, 1.75rem) auto 0; max-width: 34em; }
.hstats {
  list-style: none; margin: clamp(2.5rem, 1.75rem + 2.4vw, 4rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px;
}
@media (min-width: 1068px) { .hstats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }
.hstats li { border-top: 1px solid var(--hairline); padding-top: 20px; }
.hstats .stat-num { color: var(--white); }
.hstats .stat-label { color: var(--body); }

/* ---------- Location ---------- */
.media-card { margin: 0; position: relative; }
.media-btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--fill);
  border-radius: var(--r); overflow: hidden; cursor: zoom-in;
  -webkit-tap-highlight-color: transparent; transition: transform .14s ease-out;
}
[data-theme="dark"] .media-btn { background: var(--green-2); }
.media-btn:active { transform: scale(0.99); }
.media-btn img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease-out); }
@media (hover: hover) { .media-btn:hover img { transform: scale(1.015); } }
.media-card figcaption { font-size: 0.875rem; line-height: 1.42859; letter-spacing: -0.016em; color: var(--muted); margin-top: 12px; }
.media-card--context .media-btn img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 30%; }
@media (min-width: 734px) { .media-card--context .media-btn img { aspect-ratio: 16 / 10; } }

.loc-grid { display: grid; gap: 20px; }
@media (min-width: 1068px) { .loc-grid { grid-template-columns: 5fr 7fr; } }
.loc-list, .census, .map-card { background: var(--mist); border-radius: var(--r); }
.loc-list, .census { padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); }
.distances { margin: 0; }
.distances div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.distances dt { font-weight: 500; }
.distances dd { margin: 0; color: var(--muted); text-align: right; }
.distances a { position: relative; color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--gold); }
.distances a::before { content: ""; position: absolute; inset: -11px -4px; }
@media (max-width: 733px) {
  .distances div { flex-direction: column; gap: 2px; padding: 11px 0; }
  .distances dd { text-align: left; }
}
.loc-list .fine { margin-top: 1rem; }
.map-card { margin: 0; overflow: hidden; display: flex; flex-direction: column; }
.map-frame { flex: 1; min-height: 340px; display: grid; }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-facade { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px 8px; gap: 4px; }
.map-pin { fill: var(--bronze); margin-bottom: 12px; }
.map-facade-title { font-family: var(--serif); font-size: 1.625rem; line-height: 1.15; margin: 0; }
.map-facade-note { color: var(--muted); margin: 0 0 20px; }
.map-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 18px 28px 24px; margin: 0; font-size: 1.0625rem; }
.map-credit { font-size: 0.75rem; color: var(--muted); }
.census { margin-top: 20px; }
.stats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
@media (min-width: 1068px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-num { display: block; font-size: clamp(2.25rem, 1.6rem + 1.9vw, 3.5rem); line-height: 1.04; letter-spacing: -0.005em; }
.stat-label { display: block; font-size: 0.875rem; line-height: 1.42859; color: var(--muted); margin-top: 8px; max-width: 22em; }
.source { font-size: 0.75rem; line-height: 1.5; color: var(--muted); margin: 28px 0 0; max-width: 90ch; }

/* ---------- Closer look ---------- */
.media-card--render .media-btn img { aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 733px) { .media-card--render .media-btn img { aspect-ratio: 4 / 3; object-position: 40% 50%; } }
.carousel {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100% - 1260px) / 2));
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-track {
  display: flex; gap: 20px; list-style: none; margin: 0;
  padding: 0 max(var(--gutter), calc((100% - 1260px) / 2));
  width: max-content;
}
.cl-card { flex: none; width: clamp(264px, 22vw + 120px, 400px); scroll-snap-align: start; }
.cl-media {
  display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden;
  background: var(--green-2); cursor: zoom-in; -webkit-tap-highlight-color: transparent; transition: transform .14s ease-out;
}
.cl-media:active { transform: scale(0.98); }
.cl-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease-out); }
@media (hover: hover) { .cl-media:hover img { transform: scale(1.02); } }
.cl-title { font-size: 1.3125rem; line-height: 1.2; letter-spacing: 0.011em; margin: 20px 0 4px; }
.cl-text { color: var(--body); margin: 0; max-width: 24em; }
.cl-tag { font-size: 0.75rem; line-height: 1.33337; color: var(--muted); margin: 8px 0 0; }
.carousel-paddles { display: flex; justify-content: flex-end; gap: 14px; margin-top: 28px; }
.carousel-paddles[hidden] { display: none; }
.paddle {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(248, 245, 239, 0.14); color: #F8F5EF;
  transition: opacity .24s var(--ease), background-color .24s var(--ease), transform .1s ease-out;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.paddle:hover:not(:disabled) { background: rgba(248, 245, 239, 0.22); }
.paddle:active:not(:disabled) { transform: scale(0.94); }
.paddle:disabled { opacity: 0.36; cursor: default; }

/* ---------- Features ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.25rem, 1.75rem + 1.5vw, 3.25rem) 40px; }
@media (min-width: 734px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1068px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature-icon { display: block; color: var(--bronze); margin-bottom: 16px; }
.feature h3 { font-size: 1.3125rem; line-height: 1.2; letter-spacing: 0.011em; margin: 0 0 6px; }
.feature p { color: var(--body); margin: 0; max-width: 24em; }

/* ---------- Why own ---------- */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 734px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1068px) { .reasons { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reason { background: var(--white); border-radius: var(--r); padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); border-top: 0; position: relative; }
.reason::before { content: ""; position: absolute; top: 0; left: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); width: 32px; height: 3px; background: var(--green); border-radius: 0 0 2px 2px; }
.reason h3 { font-family: var(--serif); font-weight: 400; font-size: 1.625rem; line-height: 1.15; margin: 0 0 8px; }
.reason p { color: var(--body); margin: 0; }
.investor {
  margin-top: 20px;
  background: var(--white); border-radius: var(--r); padding: 26px 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px;
}
.investor p { margin: 0; max-width: 46em; }

/* ---------- Agents ---------- */
.team-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.agent { background: var(--mist); border-radius: var(--r); overflow: hidden; display: grid; align-content: start; }
/* The photo sits in a sized frame and is absolutely positioned inside it, so it can never grow
   past its box (iOS Safari resolves height:100% + aspect-ratio on a grid item differently). */
.agent-media { position: relative; aspect-ratio: 4 / 3; background: #E9E4DA; overflow: hidden; }
.agent-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.agent--david .agent-photo { object-position: 50% 22%; }
/* Side by side on wider screens: a portrait frame keeps both headshots at the same scale */
@media (min-width: 734px) {
  .agent { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-content: stretch; }
  .agent-media { aspect-ratio: auto; min-height: 22rem; }
}
.agent-body { padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); }
.agent-tag { margin-bottom: 10px; }
.agent-name { font-size: clamp(2rem, 1.6rem + 1.1vw, 2.75rem); line-height: 1.05; letter-spacing: 0; }
.agent-role { color: var(--ink); font-weight: 600; margin: 8px 0 14px; }
.agent-text { color: var(--body); }
.agent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 22px; }
.credits {
  margin-top: 20px; background: var(--mist); border-radius: var(--r); padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px;
}
.credit { display: flex; align-items: center; gap: 18px; }
.credit-role { font-size: 0.875rem; color: var(--muted); margin: 0; }
.credit-logo { display: block; width: 96px; height: 96px; object-fit: contain; }
.credit-line { margin: 0; color: var(--body); max-width: 40em; }

/* ---------- Enquiry ---------- */
.enquire-grid { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4rem); align-items: start; }
@media (min-width: 1068px) { .enquire-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }
.enquire-intro .section-title { font-size: clamp(2.25rem, 1.4rem + 2.4vw, 3.5rem); }
.enquire-get { list-style: none; margin: 2rem 0; padding: 0; }
.enquire-get li { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--hairline); color: var(--ink); }
.enquire-get li:last-child { border-bottom: 1px solid var(--hairline); }
.enquire-get li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23C3A375' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.enquire-call { color: var(--body); margin: 0; }

.form-card {
  --ink: var(--graphite); --muted: var(--grey); --body: var(--body-c); --link: var(--bronze-ink); --hairline: #E4DED2;
  background: var(--white); color: var(--ink); border-radius: var(--r);
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.form-card :focus-visible { outline-color: var(--bronze); }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 734px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 0.875rem; line-height: 1.42859; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  display: block; width: 100%; min-height: 52px; padding: 14px 16px;
  border: 1px solid #8E9490; border-radius: 12px; background: var(--white);
  font: inherit; font-size: 1.0625rem; letter-spacing: -0.022em; color: var(--graphite);
  -webkit-appearance: none; appearance: none;
  transition: border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.field textarea { min-height: 112px; resize: vertical; }
.field select {
  padding-right: 44px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%2316201E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 14px no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: var(--grey); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--graphite); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--graphite); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--bronze);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.875rem; line-height: 1.42859; margin: 6px 0 0; }
.field-hint { color: var(--muted); font-size: 0.8125rem; line-height: 1.4; margin: 6px 0 0; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; margin: 4px 0 24px; }
.field--check input { width: 24px; height: 24px; margin: 0; accent-color: var(--green); cursor: pointer; }
.field--check label { font-weight: 400; font-size: 0.9375rem; margin: 0; cursor: pointer; }
.field--check label a { color: var(--bronze-ink); text-underline-offset: 0.2em; }
.field--check .field-error { grid-column: 2; margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: var(--mist); border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; font-size: 0.9375rem; color: var(--graphite); }
.form-error a { color: var(--bronze-ink); font-weight: 600; }
.form-error:focus { outline: none; }
.thanks { text-align: center; padding: 12px 0; }
.thanks-icon { display: block; color: var(--green); margin: 0 auto 18px; }
.thanks h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2rem); line-height: 1.12; margin: 0 auto 12px; max-width: 18em; outline: none; }
.thanks p { color: var(--body); max-width: 30em; margin-inline: auto; }
.thanks .pill { margin-top: 8px; }
html.motion .thanks:not([hidden]) { animation: materialize .5s var(--ease-out); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq-list { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); border-bottom: 1px solid var(--hairline); }
.faq-list details { border-top: 1px solid var(--hairline); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3125rem); line-height: 1.3; letter-spacing: 0.006em; font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 2.5v9M2.5 7h9' stroke='%2315302C' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .32s var(--ease-out), background-color .24s var(--ease);
}
.faq-list summary:hover::after { background-color: var(--fill); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 24px; color: var(--body); max-width: 40em; }
@supports (interpolate-size: allow-keywords) {
  html.motion { interpolate-size: allow-keywords; }
  html.motion .faq-list details::details-content {
    height: 0; overflow: clip;
    transition: height .4s var(--ease-out), content-visibility .4s allow-discrete;
  }
  html.motion .faq-list details[open]::details-content { height: auto; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--mist); color: var(--grey);
  font-size: 0.75rem; line-height: 1.5; letter-spacing: -0.005em;
  padding: 40px 0 48px;
}
.footer a { color: var(--body-c); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-top { padding-bottom: 18px; border-bottom: 1px solid #E4DED2; }
.footer-top p { margin: 0 0 4px; }
.footer-name { color: var(--graphite); font-size: 1.125rem; margin-bottom: 6px !important; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 0 28px; }
.footer-contact span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.footer-contact a { display: inline-block; padding-block: 8px; } /* taller tap targets for the small type */
.disclaimer-title { font-size: 0.75rem; font-weight: 600; color: var(--graphite); margin: 18px 0 8px; }
.disclaimer p { margin: 0 0 10px; max-width: 110ch; }
.disclaimer .legal { color: var(--graphite); margin-top: 14px; }
@media (max-width: 733px) { .footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ---------- Phone action bar ---------- */
.buybar { display: none; }
@media (max-width: 733px) {
  .buybar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    color: var(--ink);
    --bar-glass: rgba(248, 245, 239, 0.88);
    transform: translateY(110%); visibility: hidden;
    transition: transform .4s var(--ease-out), visibility 0s linear .4s, color .32s var(--ease);
  }
  .buybar[data-theme="dark"] { --bar-glass: rgba(21, 48, 44, 0.88); }
  .buybar::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--bar-glass);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    transition: background-color .32s var(--ease);
  }
  body.show-bar .buybar { transform: none; visibility: visible; transition-delay: 0s; }
  body.sheet-open .buybar, body.lb-open .buybar { transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; }
}
/* One quiet row: status on the left, call + the one action on the right */
.buybar { padding-block: 8px calc(8px + env(safe-area-inset-bottom)); }
.buybar-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buybar-text { display: flex; align-items: center; margin: 0; font-size: 0.875rem; line-height: 1.3; }
.buybar-text strong { font-weight: 600; }
.buybar .status-dot { background: var(--bronze); }
.buybar[data-theme="dark"] .status-dot { background: var(--bronze-glow); }
.buybar-actions { display: flex; align-items: center; gap: 10px; }
.buybar-call {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  color: var(--link); box-shadow: inset 0 0 0 1px var(--hairline);
  -webkit-tap-highlight-color: transparent; transition: transform .1s ease-out, background-color .24s var(--ease);
}
.buybar-call::after { content: ""; position: absolute; inset: -4px; } /* 44px hit area */
.buybar-call:active { transform: scale(0.94); background: rgba(133, 106, 71, 0.1); }
.buybar .pill--nav { min-height: 36px; padding: 8px 16px; }
.buybar[data-theme="dark"] .pill--nav { background: var(--bronze-glow); color: var(--green); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; color: #F8F5EF;
}
.lightbox::backdrop { background: transparent; }
.lb-scrim { position: absolute; inset: 0; background: rgba(14, 32, 29, 0.95); }
.lb-figure { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; pointer-events: none; }
.lb-img { display: block; transform-origin: 50% 50%; pointer-events: auto; will-change: transform; }
.lb-caption {
  position: absolute; left: 0; right: 0; bottom: 76px; margin: 0; padding: 0 24px;
  text-align: center; font-size: 0.875rem; line-height: 1.42859; color: #C6CDC9;
}
.lb-controls {
  position: absolute; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 980px;
  background: rgba(248, 245, 239, 0.14);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
}
.lb-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #F8F5EF;
  display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .24s var(--ease), transform .1s ease-out;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.14); }
.lb-btn:active { transform: scale(0.94); }
.lb-close { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; background: rgba(248, 245, 239, 0.14); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.lb-count { font-size: 0.875rem; min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; color: #F8F5EF; }

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .media-btn img, .cl-media img { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav::before, .nav-menu, .buybar::before, .img-tag, .lb-controls, .lb-close {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .nav { --nav-glass: #FFFFFF; --nav-panel: #FFFFFF; }
  .nav[data-theme="dark"] { --nav-glass: #15302C; --nav-panel: #15302C; }
  .nav::before { -webkit-mask-image: none; mask-image: none; }
  .sheet-scrim { background: rgba(14, 32, 29, 0.34); }
  .buybar { --bar-glass: #F8F5EF; }
  .buybar[data-theme="dark"] { --bar-glass: #15302C; }
  .img-tag, .lb-controls, .lb-close { background: #15302C; }
  .sd-inner { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--white) !important; }
}
@media (prefers-contrast: more) {
  :root { --grey: #3E4644; --grey-dark: #DDE3E0; }
  .nav::before, .nav-menu { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav { --nav-glass: #FFFFFF; --nav-panel: #FFFFFF; --nav-link: #000; }
  .nav[data-theme="dark"] { --nav-glass: #15302C; --nav-panel: #15302C; --nav-link: #FFF; }
  .nav::before { -webkit-mask-image: none; mask-image: none; }
  .nav.is-docked::before { box-shadow: 0 1px 0 currentColor; }
  .tile, .plan-card, .loc-list, .map-card, .census, .agent, .credits, .investor, .sd-inner, .form-card, .media-btn, .cl-media, .dir-group, .reason {
    box-shadow: inset 0 0 0 1px currentColor;
  }
  .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { border-color: var(--graphite); }
  .link-chev { text-decoration: underline; }
}
@media (forced-colors: active) {
  .pill, .paddle, .lb-btn, .sd-close { border: 1px solid ButtonText; }
}
@media print {
  .nav, .buybar, .carousel-paddles, .lightbox { display: none !important; }
  html.reveal-ready .reveal { opacity: 1; transform: none; }
}

/* ---------- Thank-you page (no-JS fallback) ---------- */
.ty-main { min-height: calc(100vh - 140px); padding-top: calc(var(--nav-h) + clamp(3rem, 2rem + 4vw, 6rem)); }
.ty-card {
  max-width: 760px; margin: 0 auto; background: var(--white); border-radius: var(--r);
  padding: clamp(2rem, 1.5rem + 3vw, 4rem); text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.ty-card .thanks-icon { margin-bottom: 24px; }
.ty-title { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem); max-width: 16em; }
.ty-title::after { margin-inline: auto; }
.ty-lede { margin: 16px auto 28px; }
.ty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 24px; }
.nav .ty-call { display: inline-flex; }
.ty .footer { padding-bottom: 48px; }

.ess-summary { max-width: 34em; }
.ess-summary strong { font-weight: 600; }
.ess-more { margin: 1rem 0 0; max-width: 40em; color: var(--body); text-wrap: pretty; }
