/* Greenslopes Medical Precinct, v2 "Graphite & Bronze".
 * One accent (bronze, from the timber battens) on black, graphite, white and mist.
 * Contrast measured (WCAG 2.x):
 *   #6E6E73 on #FFF 5.07, on #F5F5F7 4.66 · #86868B on #000 5.80, on #1D1D1F 4.65
 *   bronze text: #8C5A30 on #FFF 5.80, on #F5F5F7 5.33 · #C8925E on #000 7.73, on #1D1D1F 6.19
 *   white on bronze fill #A2683A 4.59 (plan "Available") · plan sold #636366 on #F2F2F4 5.36
 *   pills: white on #8C5A30 5.80, on #7A4E29 (hover) 7.12 · #98989D on #1D1D1F 5.86 (secondary text on graphite)
 *   #A2683A is never used for text on mist (4.21): bronze text on light is always #8C5A30.
 */

/* ---------- Tokens ---------- */
:root {
  --black: #000000;
  --graphite: #1D1D1F;
  --white: #FFFFFF;
  --mist: #F5F5F7;
  --grey: #6E6E73;
  --grey-dark: #86868B;
  --bronze: #A2683A;       /* fills, dots, icons */
  --bronze-ink: #8C5A30;   /* bronze text on light */
  --bronze-glow: #C8925E;  /* bronze text on dark */
  --bronze-deep: #7A4E29;  /* pressed / hover pill fill */
  --grey-graphite: #98989D;/* secondary text on #1D1D1F */
  --fill: #E8E8ED;
  --error: #B3261E;

  --ink: var(--graphite);
  --muted: var(--grey);
  --link: var(--bronze-ink);
  --hairline: #D2D2D7;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-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: #F5F5F7;
  --muted: var(--grey-dark);
  --link: var(--bronze-glow);
  --hairline: #3A3A3C;
}
[data-theme="light"] {
  --ink: var(--graphite);
  --muted: var(--grey);
  --link: var(--bronze-ink);
  --hairline: #D2D2D7;
}

/* ---------- 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 { 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; }
@media (min-width: 1068px) { .nowrap { white-space: nowrap; } }

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

/* ---------- Type ---------- */
.section-head { margin-bottom: var(--head-gap); }
.section-title {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  line-height: 1.07143;
  letter-spacing: -0.005em;
  font-weight: 600;
  max-width: 15em;
  color: var(--ink);
}
.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(--muted);
  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; }

/* ---------- 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(--graphite); color: var(--white); }
.pill--dark:hover { background: #3A3A3C; }
.pill--light { background: var(--mist); color: var(--graphite); }
.pill--light:hover { background: var(--white); }
/* Filled bronze pills use the deeper bronze so 14px white text clears AA with margin (5.8: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 {
  color: var(--link); text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.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); }

/* ---------- Navigation (frosted local nav) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: var(--ink);
  transition: color .32s var(--ease);
  /* Heavier glass than Apple's 80% so big headlines scrolling underneath don't smudge the title */
  --nav-glass: rgba(255, 255, 255, 0.86);
  --nav-panel: rgba(255, 255, 255, 0.95);
  --nav-link: rgba(0, 0, 0, 0.8);
}
.nav[data-theme="dark"] { --nav-glass: rgba(22, 22, 23, 0.86); --nav-panel: rgba(22, 22, 23, 0.95); --nav-link: rgba(255, 255, 255, 0.8); }
.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);
  /* Scroll-edge fade kept inside the bar's own height: the glass softens over its last 8px,
     so there is no hard border and nothing hangs below the bar */
  -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; }
/* With the phone menu open, bar and panel read as one solid surface */
.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.0625rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; color: var(--ink); margin-right: auto;
}
.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); }

@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(0, 0, 0, 0.35);
    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: 1rem; }
}
@media (min-width: 1068px) {
  .nav-toggle { display: none; }
  .nav-title { font-size: 1.1875rem; }
  .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(--black); color: var(--ink);
  /* Tight above the copy so the render starts high and dominates (y≈420 at 390×844, y≈465 at 1440×900) */
  padding-top: calc(var(--nav-h) + clamp(1.25rem, 0.4rem + 2.6vw, 2.5rem));
  text-align: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow {
  font-size: clamp(1.3125rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.143; font-weight: 600; letter-spacing: 0.004em;
  margin: 0 0 0.35em;
}
.hero-title {
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5rem);   /* 40px at 390, 80px max */
  line-height: 1.1;                                  /* 40/44 on phones */
  letter-spacing: -0.015em;
  font-weight: 600;
  max-width: 14em;
}
@media (min-width: 734px) { .hero-title { line-height: 1.05; } } /* 80/84 on desktop */
.hero-sub { text-wrap: balance;
  font-size: clamp(1.0625rem, 0.85rem + 0.9vw, 1.5rem);  /* 17px at 390, 24px at 1440 */
  line-height: 1.25;
  letter-spacing: 0.009em;
  color: rgba(245, 245, 247, 0.86);
  max-width: 36em;
  margin: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem) 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.25rem, 0.9rem + 1.2vw, 2rem); }
/* Status and address sit under the render, so the image starts high on every screen */
.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); 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(--black); 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% 62%;
}
/* On phones the portrait render runs to at least 62% of the screen */
@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.01em; color: var(--muted); margin: 0; }

/* Orchestrated load: the copy rises once, the render 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.07); 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; }

/* Image tag ("Artist impression") */
.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: #F5F5F7;
  background: rgba(29, 29, 31, 0.72);
  -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; margin-top: var(--head-gap); }
.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.5rem, 1.7rem + 2.4vw, 4rem); line-height: 1.04; letter-spacing: -0.015em; font-weight: 600;
  margin: 0; color: var(--ink);
}
.tile-big .unit { font-size: 0.5em; letter-spacing: -0.005em; 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-icon { display: block; color: var(--bronze-glow); margin-bottom: 1.25rem; }
.tile-big--xl { font-size: clamp(5.5rem, 3.5rem + 7vw, 9.5rem); line-height: 0.92; letter-spacing: -0.035em; }
.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.6rem 0 0; max-width: 22em;
}
.tile-cap { font-size: 0.75rem; line-height: 1.33337; 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--dark { background: var(--black); --ink: #F5F5F7; --muted: var(--grey-dark); --link: var(--bronze-glow); color: var(--ink); }

.tile--photo { padding: 0; background: var(--graphite); min-height: 360px; justify-content: flex-end; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.tile-photo-copy {
  position: relative; padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); padding-top: 6rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.62) 60%, rgba(0, 0, 0, 0) 100%);
  --ink: #FFFFFF; --muted: rgba(255, 255, 255, 0.86);
}
.tile-photo-copy .tile-cap { padding-top: 0.75rem; }

/* The batten tally: one batten per suite, bronze = available */
.tally { display: grid; gap: 10px; margin-top: auto; padding-top: 2rem; }
.tally-row { display: flex; align-items: flex-end; gap: 5px; height: 64px; }
.tally-row b { width: 26px; flex: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0; color: var(--muted); align-self: flex-end; line-height: 1; }
.tally-row i { display: block; width: 8px; border-radius: 3px; height: 34%; background: #D2D2D7; transform-origin: bottom; }
.tally-row i.s-available { height: 100%; background: var(--bronze); }
.tally-row i.s-under-offer, .tally-row i.s-on-hold { height: 58%; background: #AEAEB2; }
.tally-key { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 14px 0 0; padding: 0 0 0 31px; 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-held { background: #AEAEB2; }
.k-sold { background: #D2D2D7; }
html.reveal-ready .tile--a .tally-row i { transform: scaleY(0.12); transition: transform .9s var(--ease-out); transition-delay: calc(350ms + var(--b, 0) * 22ms); }
html.reveal-ready .tile--a.is-in .tally-row i { transform: none; }
@media (min-width: 734px) {
  .tally-row { gap: 7px; height: 76px; }
  .tally-row i { width: 11px; }
  .tally-key { padding-left: 33px; }
}
@media (min-width: 1068px) {
  .tally { gap: 14px; }
  .tally-row { gap: 9px; height: 104px; }
  .tally-row i { width: 15px; border-radius: 4px; }
  .tally-key { padding-left: 35px; margin-top: 18px; }
}

@media (min-width: 734px) {
  .bento { gap: 20px; }
  .tile--c, .tile--d, .tile--e, .tile--f { grid-column: span 6; }
  .tile { min-height: 260px; }
}
@media (max-width: 733px) {
  .tile--c, .tile--d, .tile--e, .tile--f, .tile--g { 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, .tile--g { grid-column: span 6; min-height: 260px; }
}

/* ---------- Suites ---------- */
/* A shorter run-in so the plan sits closer to its heading */
#suites { padding-top: clamp(4.5rem, 3rem + 3.4vw, 6rem); }
#suites .section-head { margin-bottom: 2.5rem; }
.level-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 24px; }
.segmented {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--fill); border-radius: 980px; padding: 4px; min-width: 300px;
}
.seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--white); border-radius: 980px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 3px 10px rgba(0, 0, 0, 0.08);
  will-change: transform;
}
.seg {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; padding: 7px 24px; border: 0; background: none; border-radius: 980px; cursor: pointer;
  color: var(--graphite); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .1s ease-out;
}
.seg:active { transform: scale(0.97); }
.seg-name { font-size: 0.9375rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.seg-count { font-size: 0.75rem; line-height: 1.33337; color: #515154; letter-spacing: -0.01em; }
.ground-note { margin: 0; font-size: 0.875rem; color: var(--muted); }

.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, #9E9EA3 0 3px, #EDEDF0 3px 6px); box-shadow: inset 0 0 0 1px #8E8E93; }
.swatch.s-on-hold { background: repeating-linear-gradient(45deg, #AEAEB2 0 2px, #F5F5F7 2px 5px); box-shadow: inset 0 0 0 1px #8E8E93; }
.swatch.s-sold { background: #F2F2F4; box-shadow: inset 0 0 0 1px #8E8E93; }

/* Plan drawing */
.plan .floor { fill: var(--white); stroke: #C7C7CC; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.plan .core { fill: var(--fill); stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; }
.plan text { font-family: var(--font); letter-spacing: 0; }
.plan .core-label { fill: #515154; text-anchor: middle; dominant-baseline: middle; font-weight: 500; }
.plan .shape { stroke: var(--white); stroke-width: 2.5; vector-effect: non-scaling-stroke; transition: fill .24s var(--ease); }
.plan .s-available .shape { fill: var(--bronze); }
.plan .s-under-offer .shape { fill: url(#pat-offer); }
.plan .s-on-hold .shape { fill: url(#pat-hold); }
.plan .s-sold .shape { fill: #F2F2F4; }
.plan .t-id { fill: var(--graphite); font-weight: 600; text-anchor: middle; }
.plan .t-meta { fill: var(--graphite); font-weight: 500; text-anchor: middle; }
.plan .s-available text { fill: var(--white); }
.plan .s-sold text { fill: #636366; }
.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(--graphite); stroke-width: 3.5; }
.plan .ring.focus { stroke: var(--bronze-ink); stroke-width: 3.5; }
.plan .ring.on.focus { stroke: var(--graphite); stroke-dasharray: 6 4; }
@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.2em 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(--graphite); }
.sr-id { font-size: 1.3125rem; font-weight: 600; letter-spacing: 0.006em; }
.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; }
.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); }
.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: #DCDCE0; }
.sd-close:active { transform: scale(0.94); }
.sd-level { font-size: 0.875rem; font-weight: 600; color: var(--bronze-ink); margin: 0 0 2px; }
.sd-title { font-size: 2rem; line-height: 1.125; letter-spacing: 0.004em; margin: 0 0 14px; outline: none; }
.sd-facts { margin: 0 0 14px; }
.sd-fact { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #D2D2D7; }
.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(--grey); 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.86);
    -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.1);
    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(60, 60, 67, 0.3); }
  .sd-inner.is-dragging, .sd-inner.is-dragging .sd-grab { cursor: grabbing; }
  /* Dim to focus: the sheet never floats light glass straight over the bronze plan.
     Its opacity follows the sheet as it is dragged (site.js); a tap on it closes the sheet. */
  .sheet-scrim {
    display: block; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.2);
    -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.75rem; }
  .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; } }

/* ---------- 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;
}
.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:not(.img-tag), .film figcaption, .finishes-board figcaption { font-size: 0.875rem; line-height: 1.42859; letter-spacing: -0.016em; color: var(--muted); margin-top: 12px; }
.media-card--wide .media-btn img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 55%; }
@media (min-width: 734px) { .media-card--wide .media-btn img { aspect-ratio: 2 / 1; } }

.loc-grid { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 1068px) { .loc-grid { grid-template-columns: 5fr 7fr; } }
.loc-list, .census { background: var(--white); border-radius: var(--r); 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: 13px 0; border-top: 1px solid var(--hairline); }
.distances dt { font-weight: 500; }
.distances dd { margin: 0; color: var(--muted); text-align: right; }
@media (max-width: 733px) {
  .distances div { flex-direction: column; gap: 2px; padding: 12px 0; }
  .distances dd { text-align: left; }
}
.map-card { margin: 0; background: var(--white); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.map-frame { flex: 1; min-height: 320px; display: grid; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; 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-size: 1.3125rem; font-weight: 600; letter-spacing: 0.011em; 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: 734px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1068px) { .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stat-num { display: block; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1.08; letter-spacing: -0.01em; font-weight: 600; }
.stat-label { display: block; font-size: 0.875rem; line-height: 1.42859; color: var(--muted); margin-top: 6px; }
.source { font-size: 0.75rem; line-height: 1.33337; color: var(--muted); margin: 28px 0 0; }

/* ---------- Closer look ---------- */
.media-card--render .media-btn { background: var(--graphite); }
.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: 58% 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(--graphite); 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(--muted); 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(66, 66, 69, 0.72); color: #F5F5F7;
  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(92, 92, 96, 0.8); }
.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(--muted); margin: 0; max-width: 24em; }
.investor {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  background: var(--mist); border-radius: var(--r); padding: 28px 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px;
}
.investor p { margin: 0; max-width: 46em; }

/* ---------- Finishes ---------- */
.finishes-grid { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 1068px) { .finishes-grid { grid-template-columns: 6fr 5fr; } }
.finishes-board { margin: 0; }
.finishes-board .media-btn { background: var(--white); }
.finish-list { list-style: none; margin: 2rem 0 0; padding: 0; border-bottom: 1px solid var(--hairline); }
.finish-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.finish-list li span:first-child { font-weight: 500; }
.finish-list li span:last-child { color: var(--muted); text-align: right; white-space: nowrap; }

/* ---------- Progress ---------- */
.statement { text-align: center; margin: 0 auto var(--head-gap); max-width: 1000px; }
.statement-title {
  font-size: clamp(2.75rem, 1rem + 6.6vw, 6rem);
  line-height: 1.04167; letter-spacing: -0.015em; font-weight: 600;
}
.statement .lede { margin: clamp(1rem, .8rem + .8vw, 1.5rem) auto 0; max-width: 34em; }
.film { margin: 0; }
.film-frame { position: relative; border-radius: var(--r); overflow: hidden; background: var(--graphite); aspect-ratio: 16 / 9; }
.film-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  color: var(--white); background: rgba(29, 29, 31, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  transition: background-color .24s var(--ease), transform .1s ease-out;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.film-toggle[hidden] { display: none; }
.film-toggle:hover { background: rgba(29, 29, 31, 0.8); }
.film-toggle:active { transform: scale(0.94); }
.film-toggle .i-pause { display: none; }
.film.is-playing .film-toggle .i-pause { display: block; }
.film.is-playing .film-toggle .i-play { display: none; }
.film .film-toggle .i-play { margin-left: 2px; }
@media (min-width: 734px) { .film-toggle { right: 24px; bottom: 24px; width: 48px; height: 48px; } }

.timeline { margin-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 28px; }
.steps li { position: relative; padding-left: 30px; }
.steps li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #515154;
}
.steps li::after {
  content: ""; position: absolute; left: 5px; top: 23px; bottom: -22px; width: 2px; border-radius: 1px; background: #515154;
}
.steps li:last-child::after { display: none; }
.steps li.is-done::before, .steps li.is-now::before { background: var(--bronze-glow); }
.steps li.is-done::after { background: var(--bronze-glow); }
.steps li.is-now::before { box-shadow: 0 0 0 5px rgba(200, 146, 94, 0.25); }
.step-when { display: block; font-size: 0.875rem; line-height: 1.42859; font-weight: 600; color: var(--muted); }
.steps .is-done .step-when, .steps .is-now .step-when { color: var(--bronze-glow); }
.step-what { display: block; font-size: 1.3125rem; line-height: 1.2; letter-spacing: 0.011em; font-weight: 600; color: var(--ink); margin: 4px 0; }
.step-note { display: block; font-size: 0.875rem; line-height: 1.42859; color: var(--muted); }
@media (min-width: 734px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .steps li { padding: 30px 12px 0 0; }
  .steps li::before { top: 0; }
  .steps li::after { left: 20px; right: -12px; top: 5px; bottom: auto; width: auto; height: 2px; }
}

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 20px; }
@media (min-width: 1068px) { .team-grid { grid-template-columns: 2fr 1fr; } }
.agent { background: var(--mist); border-radius: var(--r); overflow: hidden; display: grid; }
@media (min-width: 734px) { .agent { grid-template-columns: 1fr 1fr; } }
/* 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 against the image's intrinsic size and let the text paint over the photo). */
.agent-media { position: relative; aspect-ratio: 1 / 1; background: #EDEDED; overflow: hidden; }
@media (min-width: 734px) { .agent-media { aspect-ratio: auto; min-height: 30rem; } }
.agent-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.agent-body { padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); }
.agent-name { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.5rem); line-height: 1.1; letter-spacing: 0.004em; }
.agent-role { color: var(--bronze-ink); font-weight: 600; margin: 6px 0 20px; }
.agent-proof { font-weight: 600; }
.agent-text { color: var(--muted); }
.agent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 24px; }
.credits {
  background: var(--mist); border-radius: var(--r); padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; align-content: start;
}
.credit--text { grid-column: 1 / -1; border-top: 1px solid var(--hairline); padding-top: 22px; }
.credit-role { font-size: 0.875rem; color: var(--muted); margin: 0 0 12px; }
.credit-logo { display: block; width: 112px; height: 112px; object-fit: contain; }
.credit-name { font-size: 1.3125rem; font-weight: 600; letter-spacing: 0.011em; margin: 0; }

/* ---------- 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(2rem, 1.3rem + 2vw, 3rem); }
.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); }
.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='%23C8925E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.enquire-call { color: var(--muted); margin: 0; }

.form-card {
  --ink: var(--graphite); --muted: var(--grey); --link: var(--bronze-ink); --hairline: #D2D2D7;
  background: var(--white); color: var(--ink); border-radius: var(--r);
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.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 var(--grey-dark); 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='%231D1D1F' 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--check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; margin: 4px 0 24px; }
.field--check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--bronze); cursor: pointer; }
.field--check label { font-weight: 400; font-size: 0.9375rem; margin: 0; cursor: pointer; }
.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; }
.thanks { text-align: center; padding: 12px 0; }
.thanks-icon { display: block; color: var(--bronze); margin: 0 auto 18px; }
.thanks h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.75rem); line-height: 1.15; letter-spacing: 0.004em; margin: 0 auto 12px; max-width: 18em; outline: none; }
.thanks p { color: var(--muted); max-width: 30em; margin-inline: auto; }
.thanks .pill { margin-top: 8px; }
.thanks-meta { font-size: 0.75rem; margin-top: 10px; }
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='%231D1D1F' 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(--muted); 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.33337; letter-spacing: -0.01em;
  padding: 40px 0 48px;
}
.footer a { color: #3A3A3C; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-top { padding-bottom: 18px; border-bottom: 1px solid #D2D2D7; }
.footer-top p { margin: 0 0 4px; }
.footer-name { color: var(--graphite); font-weight: 600; font-size: 0.875rem; margin-bottom: 6px !important; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.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(110px + 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(245, 245, 247, 0.84);
    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(22, 22, 23, 0.84); }
  .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 { transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; }
}
.buybar-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buybar-text { display: flex; flex-direction: column; margin: 0; font-size: 0.75rem; line-height: 1.4; }
.buybar-text strong { font-size: 0.875rem; }
.buybar-text a { color: var(--link); text-decoration: none; }
.buybar .pill--nav { min-height: 36px; padding: 8px 16px; }

/* ---------- 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: #F5F5F7;
}
.lightbox::backdrop { background: transparent; }
.lb-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.92); }
.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: #A1A1A6;
}
.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(66, 66, 69, 0.6);
  -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: #F5F5F7;
  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(66, 66, 69, 0.6); -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: #F5F5F7; }

/* ---------- 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, .film-toggle, .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: #161617; --nav-panel: #161617; }
  .nav::before { -webkit-mask-image: none; mask-image: none; }
  .sheet-scrim { background: rgba(0, 0, 0, 0.32); }
  .buybar { --bar-glass: #F5F5F7; }
  .buybar[data-theme="dark"] { --bar-glass: #161617; }
  .img-tag, .film-toggle, .lb-controls, .lb-close { background: #1D1D1F; }
  .sd-inner { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--white) !important; }
}
@media (prefers-contrast: more) {
  :root { --grey: #3A3A3C; --grey-dark: #C7C7CC; }
  .nav::before, .nav-menu { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav { --nav-glass: #F5F5F7; --nav-panel: #F5F5F7; --nav-link: #000; }
  .nav[data-theme="dark"] { --nav-glass: #000; --nav-panel: #000; --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, .film-frame {
    box-shadow: inset 0 0 0 1px currentColor;
  }
  .seg-count, .tally-row b { color: #1D1D1F; }
  .segmented { box-shadow: inset 0 0 0 1px #1D1D1F; }
  .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, .seg, .paddle, .lb-btn, .sd-close, .film-toggle { border: 1px solid ButtonText; }
  .seg[aria-selected="true"] { outline: 2px solid Highlight; }
}
@media print {
  .nav, .buybar, .film, .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(1.75rem, 1.3rem + 1.6vw, 2.5rem); max-width: 16em; }
.ty-lede { margin: 16px auto 28px; }
.ty-meta { color: var(--muted); }
.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; }
.ty-disclaimer { margin-top: 18px !important; }

/* The precinct name and the display line share one H1 (SEO), but keep their own looks. */
.hero-h1 { margin: 0; font-size: 1rem; font-weight: inherit; line-height: inherit; text-wrap: initial; }
.hero-h1 > .hero-eyebrow, .hero-h1 > .hero-title { display: block; }
.ess-summary { max-width: 46em; }
.ess-summary strong { font-weight: 600; }
.credit-name a, .loc-list dt a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
