/* =========================================================
   Welling Developments — site styles
   Palette and structure follow the approved page examples.
   Type: Cormorant Garamond (display) + Jost (text), paired to
   the logo's serif wordmark and geometric "DEVELOPMENTS".
   ========================================================= */

:root {
  --navy: #2D3A4F;
  --navy-deep: #222D3E;
  --navy-pale: #EDF0F4;
  --gold: #B8962E;
  --gold-light: #D4AF5A;
  --gold-pale: #F9F5EC;
  --gold-ink: #7D6420;          /* gold text: >=4.9:1 on white, mist and stone */
  --ink: #2D3A4F;
  --ink-soft: #5A6678;
  --ink-muted: #5F6B7D;          /* secondary text: >=4.7:1 on all light backgrounds */
  --line: #E8E2D6;
  --white: #FFFFFF;
  --green: #4CAF81;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-text: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 60px);
  --section-y: clamp(56px, 8vw, 96px);
  --radius: 2px;
  --header-h: 80px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* off-canvas mobile nav must not widen the page */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); } /* keep anchor targets clear of the sticky header */

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
/* Lining figures so prices, lot numbers, and stats sit on the baseline */
h1, h2, h3, strong, .quote, .faq summary, .timeline__dot, .mini-steps li::before,
.steps-row li::before, .deal-steps > li::before { font-variant-numeric: lining-nums; }

.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.75; color: var(--ink-soft); max-width: 36em; }
.prose p { color: var(--ink-soft); max-width: 38em; }
.prose p + p { margin-top: 1.1em; }

/* Eyebrow: echoes the tracked "DEVELOPMENTS" in the logo */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }
.on-dark .eyebrow { color: var(--gold-light); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); flex-wrap: wrap; }
.section-head .lede { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-gold { background: var(--gold); color: var(--navy-deep); font-weight: 600; }
.btn-gold:hover { background: #C9A640; }
.btn-outline { border-color: rgba(45,58,79,.35); color: var(--navy); background: transparent; }
.btn-outline:hover { border-color: var(--navy); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.text-link {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-ink); text-decoration: none; border-bottom: 1px solid rgba(184,150,46,.5); padding-bottom: 2px;
}
.text-link:hover { border-color: var(--gold); }
.on-dark .text-link { color: var(--gold-light); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  /* No backdrop-filter here: it would trap the fixed-position mobile menu inside the header */
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--gold-ink); border-bottom-color: var(--gold); }
.nav .btn { padding: 12px 20px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white);
  border-radius: var(--radius); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 20px; height: 1.5px; background: var(--navy);
  transform: translateX(-50%); transition: transform .25s, opacity .2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; transform: none; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    overflow-y: auto;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 18px 0; font-size: 0.85rem; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .btn { margin-top: 28px; padding: 16px; }
  .nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.bg-mist, .section.bg-stone, .section.bg-navy { border-top: 0; }
.section.bg-mist + .section, .section.bg-stone + .section, .section.bg-navy + .section { border-top: 0; }
.bg-mist { background: var(--navy-pale); }
.bg-stone { background: var(--gold-pale); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy h1 em, .bg-navy h2 em { color: var(--gold-light); }
.bg-navy .lede, .bg-navy .prose p { color: rgba(255,255,255,.68); }

.grid { display: grid; gap: clamp(20px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Home hero: full-bleed dusk render ---------- */
.hero-home {
  position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--navy-deep);
}
.hero-home__media { position: absolute; inset: 0; }
.hero-home__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
.hero-home::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(34,45,62,.92) 0%, rgba(34,45,62,.72) 38%, rgba(34,45,62,.1) 72%),
    linear-gradient(0deg, rgba(34,45,62,.75) 0%, rgba(34,45,62,0) 45%);
}
.hero-home .container { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(48px, 7vw, 88px); }
.hero-home h1 { color: var(--white); max-width: 11em; margin-bottom: 22px; }
.hero-home h1 em { color: var(--gold-light); }
.hero-home .lede { color: rgba(255,255,255,.8); margin-bottom: 34px; max-width: 30em; }
.hero-home .eyebrow { color: var(--gold-light); }
.hero-home__caption {
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 1;
  font-size: 0.75rem; letter-spacing: 0.08em; color: rgba(255,255,255,.7);
}
@keyframes settle { from { transform: scale(1.06); opacity: .6; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 760px) {
  .hero-home { min-height: 0; }
  .hero-home::after { background: linear-gradient(0deg, rgba(34,45,62,.97) 0%, rgba(34,45,62,.88) 55%, rgba(34,45,62,.15) 85%, rgba(34,45,62,0) 100%); }
  .hero-home__media { bottom: auto; height: 60%; }
  .hero-home__media img { object-position: 55% 30%; }
  .hero-home .container { padding-top: 300px; }
  .hero-home__caption { display: none; }
}

/* ---------- Inner-page hero ---------- */
.page-hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.page-hero .container { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(56px, 8vw, 96px); position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); max-width: 12em; margin-bottom: 20px; }
.page-hero h1 em { color: var(--gold-light); }
.page-hero .lede { color: rgba(255,255,255,.72); }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero .btn-row { margin-top: 32px; }
/* Oversized brand mark as a watermark */
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: 50%; width: 460px; height: 460px;
  transform: translateY(-50%); background: url("../img/mark.png") center/contain no-repeat; opacity: .07;
}
@media (max-width: 760px) { .page-hero::after { width: 280px; height: 280px; right: -90px; } }

/* ---------- Product strip ---------- */
.strip { background: var(--navy); color: var(--white); }
.strip .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
.strip-item { padding: 30px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.strip-item:last-child { border-right: 0; }
.strip-item strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; color: var(--gold-light); line-height: 1.2; }
.strip-item span { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.68); }
@media (max-width: 760px) {
  .strip .container { grid-template-columns: 1fr 1fr; grid-auto-flow: row; padding: 0; }
  .strip-item { border-bottom: 1px solid rgba(255,255,255,.08); }
  .strip-item:nth-child(2n) { border-right: 0; }
  .strip-item:last-child:nth-child(odd) { grid-column: 1 / -1; border-bottom: 0; }
}

/* ---------- Project cards ---------- */
.project-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.project-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-card__media img { transform: scale(1.03); }
.project-card__media.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2D3A4F, #1E2A38);
}
.project-card__media.placeholder img { width: 72px; height: 72px; object-fit: contain; opacity: .35; filter: brightness(3) grayscale(1); transform: none; }
.project-card__media.placeholder::after {
  content: "Rendering coming soon"; position: absolute; bottom: 16px; left: 0; right: 0; text-align: center;
  font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45);
}
.project-card__tags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; z-index: 1; }
.tag, .status {
  display: inline-block; padding: 5px 11px; border-radius: var(--radius);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.tag { background: rgba(34,45,62,.82); color: var(--gold-light); border: 1px solid rgba(212,175,90,.45); }
.status { background: rgba(255,255,255,.92); color: var(--navy); }
.status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--gold); }
.status.is-open::before { background: var(--green); }
.status.is-sold::before { background: var(--ink-muted); }
.status.is-plan::before { background: var(--navy); }

/* Clickable card image (opens a gallery) */
.project-card__open { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; text-align: left; }
.project-card__count {
  position: absolute; right: 14px; bottom: 14px; z-index: 1; padding: 5px 11px; border-radius: var(--radius);
  background: rgba(34,45,62,.82); color: var(--white); font-size: 0.75rem; letter-spacing: 0.08em;
}
.text-link--button { background: none; border: 0; border-bottom: 1px solid rgba(184,150,46,.5); cursor: pointer; padding: 0 0 2px; font-family: inherit; }
.feature__link { margin-top: 16px; }

/* Gallery dialog */
.gallery { width: min(1100px, 94vw); max-height: 94vh; margin: auto; border: 0; padding: 0; background: var(--navy-deep); color: var(--white); }
.gallery::backdrop { background: rgba(20,27,38,.88); }
.gallery__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.gallery__title { font-size: 0.9rem; color: rgba(255,255,255,.8); }
.gallery__title span { color: var(--gold-light); margin-left: 8px; }
.gallery__close { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: var(--radius); }
.gallery__stage { position: relative; background: #121923; display: flex; align-items: center; justify-content: center; }
.gallery__stage img, .gallery__stage video { width: 100%; max-height: calc(94vh - 130px); object-fit: contain; background: #121923; }
.gallery__stage [hidden] { display: none; }
/* keep arrows clear of the video's own controls */
.gallery__stage:has(video:not([hidden])) .gallery__nav { top: 40%; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; cursor: pointer;
  background: rgba(34,45,62,.7); color: var(--white); font-size: 2rem; line-height: 1;
}
.gallery__nav:hover { background: rgba(34,45,62,.95); }
.gallery__prev { left: 0; }
.gallery__next { right: 0; }
.gallery__caption { padding: 12px 18px 16px; font-size: 0.88rem; color: rgba(255,255,255,.65); }
.tier-plan-note { margin-top: 28px; font-size: 0.85rem; color: var(--ink-muted); }
.tier-plan-note a, .note a { color: var(--gold-ink); }
.note[hidden] { display: none; }
.project-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.project-card__loc { font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 4px; }
.project-card h3 { margin-bottom: 6px; }
.project-card__specs { font-size: 0.9rem; color: var(--ink-soft); }
.project-card__specs { margin-bottom: 18px; }
.project-card__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #F0EDE8; }
.project-card__foot small { font-size: 0.82rem; color: var(--ink-muted); }
.project-card[hidden] { display: none; }

/* ---------- Filter bar ---------- */
.filter-bar { border-bottom: 1px solid var(--line); background: var(--white); }
.filter-bar .container { display: flex; align-items: center; gap: 10px; padding-top: 18px; padding-bottom: 18px; overflow-x: auto; }
.filter-bar__label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-right: 6px; white-space: nowrap; }
.chip {
  padding: 9px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  font-size: 0.82rem; color: var(--navy); cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
/* Phones: wrap the filters so every option is visible without sideways scrolling */
@media (max-width: 760px) {
  .filter-bar .container { flex-wrap: wrap; overflow: visible; gap: 8px; }
  .filter-bar__label { width: 100%; margin: 0 0 2px; }
  .chip { padding: 8px 14px; }
}

/* ---------- Feature list (unnumbered) ---------- */
.feature { padding: 28px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.feature h3 { font-size: 1.35rem; margin-bottom: 10px; }
.feature p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.7; }
.feature::before { content: ""; display: block; width: 32px; height: 2px; background: var(--gold); margin-bottom: 20px; }
.bg-navy .feature { background: transparent; border-color: rgba(255,255,255,.14); }
.bg-navy .feature p { color: rgba(255,255,255,.65); }
.bg-navy .feature::before { background: var(--gold-light); }

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack .feature { padding: 22px 24px; background: var(--navy-pale); border-color: transparent; }
.stack .feature::before { display: none; }
.stack .feature h3 { font-size: 1.25rem; margin-bottom: 6px; }

/* ---------- Numbered steps (real sequences only) ---------- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps-row li { list-style: none; position: relative; counter-increment: step; }
.steps-row li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 18px;
}
.steps-row li::after { content: ""; position: absolute; top: 22px; left: 56px; right: -20px; height: 1px; background: var(--line); }
.steps-row li:last-child::after { display: none; }
.steps-row h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps-row p { font-size: 0.93rem; color: var(--ink-soft); }
@media (max-width: 960px) {
  .steps-row { grid-template-columns: 1fr 1fr; }
  .steps-row li::after { display: none; }
}
@media (max-width: 560px) { .steps-row { grid-template-columns: 1fr; } }

/* Vertical deal steps */
.deal-steps { list-style: none; counter-reset: step; max-width: 920px; }
.deal-steps > li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 24px; position: relative; padding-bottom: 44px; }
.deal-steps > li:last-child { padding-bottom: 0; }
.deal-steps > li::before {
  content: counter(step); width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.3rem;
}
.deal-steps > li::after { content: ""; position: absolute; left: 24px; top: 56px; bottom: 8px; width: 1px; background: var(--line); }
.deal-steps > li:last-child::after { display: none; }
.deal-steps__tag { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }
.deal-steps h3 { margin-bottom: 10px; }
.deal-steps p { color: var(--ink-soft); max-width: 40em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; list-style: none; }
.pills li { padding: 6px 12px; border-radius: 999px; background: var(--navy-pale); font-size: 0.8rem; color: var(--navy); }
.pills li.gold { background: var(--gold-pale); color: var(--gold-ink); border: 1px solid rgba(184,150,46,.3); }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 24px; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.1; color: var(--gold-light); }
.stat span { display: block; margin-top: 6px; font-size: 0.8rem; color: rgba(255,255,255,.6); }
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
}

.stat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-tile { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px; }
.stat-tile strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2.1rem; line-height: 1.1; color: var(--gold-light); }
.stat-tile span { font-size: 0.82rem; color: rgba(255,255,255,.6); }

.market-card { padding: 30px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.market-card strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2.5rem; line-height: 1; color: var(--gold-ink); margin-bottom: 12px; }
.market-card h3 { font-family: var(--font-text); font-size: 0.95rem; font-weight: 500; margin-bottom: 8px; }
.market-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Structure cards (debt / equity) ---------- */
.structure { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3vw, 40px); background: var(--white); display: flex; flex-direction: column; }
.structure.featured { border: 1.5px solid var(--gold); }
.structure__badge { align-self: flex-start; padding: 5px 12px; border-radius: var(--radius); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; background: var(--navy-pale); color: var(--navy); margin-bottom: 18px; }
.structure.featured .structure__badge { background: var(--gold-pale); color: var(--gold-ink); }
.structure h3 { font-size: 1.9rem; margin-bottom: 4px; }
.structure__sub { font-size: 0.9rem; color: var(--ink-muted); padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.checklist li { position: relative; padding-left: 22px; font-size: 0.95rem; color: var(--ink-soft); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.structure__return { margin-top: auto; padding: 16px 20px; background: var(--navy-pale); border-radius: var(--radius); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.structure.featured .structure__return { background: var(--gold-pale); }
.structure__return span { font-size: 0.8rem; color: var(--ink-muted); }
.structure__return strong { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--navy); }
.structure.featured .structure__return strong { color: var(--gold-ink); }
.structure .btn { margin-top: 18px; }

/* ---------- Pipeline ---------- */
.pipeline-group { display: flex; align-items: center; gap: 16px; margin: 40px 0 20px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.pipeline-group::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.14); }
.pipeline-group.open { color: var(--gold-light); }
.pipeline-group.open::after { background: rgba(212,175,90,.35); }
.bg-navy .project-card { background: var(--navy-deep); border-color: rgba(255,255,255,.1); }
.bg-navy .project-card h3 { color: var(--white); }
.bg-navy .project-card__loc { color: var(--gold-light); }
.bg-navy .project-card__specs { color: rgba(255,255,255,.62); }
.bg-navy .project-card__foot { border-top-color: rgba(255,255,255,.1); }
.bg-navy .project-card__foot small { color: rgba(255,255,255,.6); }
.returns { font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,.72); }
.returns b { color: var(--gold-light); font-weight: 500; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 26px; left: 10%; right: 10%; height: 1px; background: #CCD3DD; }
.timeline li { text-align: center; position: relative; }
.timeline__dot {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.05rem; position: relative;
}
.timeline__dot.gold { background: var(--gold); color: var(--navy-deep); }
.timeline__when { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.timeline h3 { font-family: var(--font-text); font-size: 1rem; font-weight: 500; margin: 4px 0; }
.timeline p { font-size: 0.87rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 26px; bottom: 26px; left: 26px; right: auto; width: 1px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 52px 1fr; column-gap: 20px; text-align: left; padding-bottom: 24px; }
  .timeline__dot { margin: 0; grid-row: span 3; }
}
.note { display: flex; gap: 14px; align-items: flex-start; margin-top: 36px; padding: 20px 22px; background: var(--white); border-left: 3px solid var(--gold); font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; border-top: 1px solid #D5DBE3; }
.faq details { border-bottom: 1px solid #D5DBE3; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-text); font-weight: 300; font-size: 1.6rem; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 44em; }

/* ---------- Mission quote ---------- */
.quote { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-style: italic; line-height: 1.3; padding-left: 28px; border-left: 3px solid var(--gold); color: var(--navy); }

/* Founder story */
.founder__name { margin-top: 14px; font-size: 0.95rem; color: var(--gold-ink); }
.founder__story { margin-top: 28px; }
.founder__story h3 { font-size: 1.35rem; margin-bottom: 6px; }
.founder__story p { color: var(--ink-soft); max-width: 38em; }
.founder__story p + h3 { margin-top: 24px; }
.founder__quote { margin-top: 36px; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.person__focus a { color: var(--gold-ink); }

/* Framed image — gold offset echoes the nested frame in the logo mark */
.framed { position: relative; }
.framed::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--gold); z-index: 0; }
.framed img { position: relative; z-index: 1; width: 100%; }
@media (max-width: 640px) { .framed::before { inset: 10px -10px -10px 10px; } }

/* ---------- Photo banner (section heading over a faded image) ---------- */
.photo-banner { position: relative; overflow: hidden; min-height: clamp(320px, 42vw, 520px); display: flex; align-items: flex-end; }
.photo-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; opacity: .55; }
.photo-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--navy) 0%, rgba(45,58,79,.7) 45%, rgba(45,58,79,.35) 100%);
}
.photo-banner .container { position: relative; z-index: 1; padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(40px, 5vw, 64px); }
.photo-banner h2 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.6rem); }
.photo-banner .lede { margin-top: 14px; color: rgba(255,255,255,.8); }
.photo-banner--side .lede { max-width: 28em; }
.section.photo-banner__after { padding-top: 0; }
/* Community scene: keep the families on the right visible, text sits on the left */
.photo-banner__img--community { object-position: 70% 70%; opacity: .85; }
.photo-banner--side::after {
  background:
    linear-gradient(90deg, rgba(45,58,79,.92) 0%, rgba(45,58,79,.7) 35%, rgba(45,58,79,.15) 65%, rgba(45,58,79,0) 100%),
    linear-gradient(0deg, var(--navy) 0%, rgba(45,58,79,0) 18%);
}
@media (max-width: 760px) {
  .photo-banner__img--community { object-position: 78% 70%; }
  .photo-banner--side::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(45,58,79,.75) 55%, rgba(45,58,79,.25) 100%); }
}

/* ---------- Product types ---------- */
.product { padding: 32px 28px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); }
.product.featured { border-color: rgba(212,175,90,.6); }
.product__tag { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.product h3 { color: var(--white); margin-bottom: 6px; }
.product__price { font-size: 0.92rem; color: rgba(255,255,255,.55); padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.product p { font-size: 0.95rem; color: rgba(255,255,255,.68); }
.product { display: flex; flex-direction: column; }
.product__link { margin-top: auto; padding-top: 20px; }
.tier-partner { display: flex; align-items: center; gap: 20px; margin: clamp(44px, 5vw, 60px) 0 22px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.tier-partner img { height: 34px; width: auto; flex-shrink: 0; }
.tier-partner p { color: rgba(255,255,255,.72); font-size: 0.98rem; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.18); }
.tier-partner a { color: var(--gold-light); }
@media (max-width: 560px) { .tier-partner { flex-direction: column; align-items: flex-start; } .tier-partner p { padding-left: 0; border-left: 0; } }

/* ---------- Team & partners ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.person { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.person__photo { aspect-ratio: 1 / 1; background: var(--navy-pale); overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.person__body { padding: 24px 24px 26px; }
.person[hidden] { display: none; }
/* Placeholder headshot until real team photos are supplied */
.person__photo--placeholder {
  display: flex; align-items: flex-end; justify-content: center; position: relative;
  background: var(--navy-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='38' r='17' fill='%23C9D1DC'/%3E%3Cpath d='M16 100c0-19 15-33 34-33s34 14 34 33z' fill='%23C9D1DC'/%3E%3C/svg%3E") center 70% / 62% no-repeat;
}
.person__photo--placeholder span {
  margin-bottom: 14px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}
.person__role { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }
.person h3 { margin-bottom: 12px; }
.person p { font-size: 0.93rem; color: var(--ink-soft); }
.person__focus { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-muted); }

.partner { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.partner__logo { height: 150px; background: var(--white); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 28px; }
.partner__body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.partner__role { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.partner h3 { font-size: 1.35rem; margin-bottom: 4px; }
.partner__spec { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 10px; }
.partner p { font-size: 0.92rem; color: var(--ink-soft); }
.partner__logo--dark { background: var(--navy); border-bottom-color: var(--navy); }
.partner__logo img { max-width: min(100%, 280px); max-height: 88px; width: auto; height: auto; }
.partner__logo:has(.partner__mark) { padding: 10px; }
.partner__logo img.partner__mark { max-height: 128px; }
@media (max-width: 560px) { .partner__logo img.partner__mark { max-height: 100px; } }
.partner__link { margin-top: auto; padding-top: 18px; }
@media (max-width: 560px) { .partner__logo { height: 120px; } }
.intro { max-width: 46em; color: var(--ink-soft); margin: -16px 0 36px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; }
.contact-form-col { padding: clamp(40px, 6vw, 72px) var(--gutter); padding-right: clamp(32px, 5vw, 72px); }
.contact-info-col { padding: clamp(40px, 6vw, 72px) var(--gutter); padding-left: clamp(32px, 5vw, 72px); background: var(--navy-pale); }
.contact-inner { max-width: 560px; margin-left: auto; }
.contact-info-col .contact-inner { margin-left: 0; }
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-col, .contact-info-col { padding-left: var(--gutter); padding-right: var(--gutter); }
  .contact-inner { margin: 0; max-width: none; }
}
.form h2, .contact-info-col h2 { font-size: 2rem; margin-bottom: 28px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid #D9D3C8; border-radius: var(--radius);
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(45,58,79,.12); }
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; padding-right: 44px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6678' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form .btn { width: 100%; padding: 16px; margin-top: 6px; }
.form-note { font-size: 0.85rem; color: var(--ink-muted); margin-top: 14px; text-align: center; }
.form-status { margin-top: 16px; padding: 14px 16px; background: var(--gold-pale); border-left: 3px solid var(--gold); font-size: 0.92rem; }
.form-status[hidden] { display: none; }

.inquiry { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.inquiry__who { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }
.inquiry h3 { font-family: var(--font-text); font-size: 1rem; font-weight: 500; margin-bottom: 4px; }
.inquiry p { font-size: 0.92rem; color: var(--ink-soft); }
.details { margin-top: 36px; padding-top: 28px; border-top: 1px solid #D5DBE3; display: grid; gap: 18px; }
.details dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.details dd { font-size: 1rem; }
.details a { color: var(--gold-ink); text-decoration: none; border-bottom: 1px solid rgba(184,150,46,.35); }

.info-bar dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-bottom: 8px; }
.info-bar dd { color: var(--white); line-height: 1.7; }
.info-bar dd span { color: var(--gold-light); }

/* ---------- Invest process list (4 steps) ---------- */
.mini-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.mini-steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.95rem; color: var(--ink-soft); }
.mini-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--gold-ink); }

/* ---------- CTA bar ---------- */
.cta-bar { background: var(--gold-pale); border-top: 1px solid var(--line); }
.cta-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: 48px; padding-bottom: 48px; flex-wrap: wrap; }
.cta-bar h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.cta-bar p { color: #6E5A36; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.62); font-size: 0.9rem; }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-top img { height: 48px; width: auto; margin-bottom: 18px; }
.footer-top p { max-width: 26em; }
.footer-top h2 { font-family: var(--font-text); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; }
.footer-top ul { list-style: none; display: grid; gap: 8px; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { color: var(--white); }
address { font-style: normal; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 0.8rem; color: rgba(255,255,255,.62); }
.disclaimer { margin-top: 20px; font-size: 0.78rem; line-height: 1.6; color: rgba(255,255,255,.6); max-width: 70em; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- Utilities ---------- */
.mt-lg { margin-top: clamp(32px, 4vw, 48px); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Tap targets: enlarge hit areas without changing the visual design ---------- */
.text-link { position: relative; }
.text-link::after { content: ""; position: absolute; inset: -12px -6px; }
.footer-top ul { gap: 2px; }
.footer-top ul a { display: inline-block; padding: 5px 0; }
.chip { min-height: 40px; }
.gallery__close { width: 44px; height: 44px; }

/* =========================================================
   Visual polish
   ========================================================= */

/* Scroll reveal (JS adds .reveal only when motion is allowed) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[hidden] { display: none; }

/* Card hovers: lift, soft shadow, gold rule drawing across the top */
.project-card, .feature, .market-card, .structure, .person, .partner, .product, .inquiry {
  position: relative;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.project-card::before, .market-card::before, .structure::before, .person::before, .partner::before, .product::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) {
  .project-card:hover, .market-card:hover, .structure:hover, .person:hover, .partner:hover, .product:hover {
    transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(34,45,62,.45);
  }
  .bg-navy .project-card:hover, .product:hover { box-shadow: 0 18px 40px -20px rgba(0,0,0,.55); }
  .project-card:hover::before, .market-card:hover::before, .structure:hover::before,
  .person:hover::before, .partner:hover::before, .product:hover::after { transform: scaleX(1); }
  .person:hover .person__photo img { transform: scale(1.03); }
}
.person__photo img { transition: transform .6s ease; }
.btn { transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn:active { transform: translateY(1px); }

/* Compact header on scroll */
.site-header { transition: box-shadow .3s ease; }
.site-header .container { transition: height .3s ease; }
.brand img { transition: height .3s ease; }
html.is-scrolled { --header-h: 64px; }
html.is-scrolled .site-header { box-shadow: 0 6px 24px -14px rgba(34,45,62,.35); }
html.is-scrolled .brand img { height: 36px; }

/* Typography refinements */
h1, h2, h3, .quote, .cta-bar h2 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
h1, h2 { letter-spacing: -0.012em; }
.section-head h2 + .lede, .section-head .lede { margin-top: 16px; }
.lede { font-size: clamp(1.08rem, 1.45vw, 1.24rem); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Homepage proof strip */
.proof { padding: clamp(48px, 6vw, 72px) 0; }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof__item { padding: 8px 28px; border-left: 1px solid rgba(184,150,46,.35); }
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__item strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1.05; color: var(--navy); font-variant-numeric: lining-nums; }
.proof__item span { display: block; margin-top: 8px; font-size: 0.92rem; color: var(--ink-soft); max-width: 18em; }
@media (max-width: 860px) {
  .proof__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .proof__item:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 480px) {
  .proof__grid { grid-template-columns: 1fr; row-gap: 24px; }
  .proof__item { border-left: 0; padding-left: 0; padding-top: 20px; border-top: 1px solid rgba(184,150,46,.35); }
  .proof__item:first-child { border-top: 0; padding-top: 0; }
}

/* Inner-page hero with a photograph */
.page-hero--photo { min-height: clamp(380px, 46vw, 560px); display: flex; align-items: flex-end; }
.page-hero--photo::after { display: none; }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.page-hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(34,45,62,.94) 0%, rgba(34,45,62,.75) 40%, rgba(34,45,62,.2) 75%),
    linear-gradient(0deg, rgba(34,45,62,.85) 0%, rgba(34,45,62,0) 45%);
}
@media (max-width: 760px) {
  .page-hero--photo::before { background: linear-gradient(0deg, rgba(34,45,62,.96) 0%, rgba(34,45,62,.82) 55%, rgba(34,45,62,.35) 100%); }
}

/* Photo hero layering: image < overlay < text */
.page-hero--photo .page-hero__img { z-index: 0; }
.page-hero--photo::before { z-index: 1; }
.page-hero--photo .container { z-index: 2; }
.proof__item strong { white-space: nowrap; font-size: clamp(2rem, 3vw, 2.6rem); }



/* Wide team card (group support team) spans two columns next to a person card */
@media (min-width: 900px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .person--wide { grid-column: span 2; }
}
.person--wide .person__photo { aspect-ratio: 2.07 / 1; }
.person--wide .person__photo img { object-position: center 30%; }

/* Invisible heading-sized spacer so the wide card's text lines up with the neighbouring card */
.person__spacer { visibility: hidden; }
@media (max-width: 899px) { .person__spacer { display: none; } }

/* Match the wide card's photo height exactly to a single card's square photo */
@media (min-width: 900px) {
  .person--wide { container-type: inline-size; }
  .person--wide .person__photo { aspect-ratio: auto; height: calc((100cqw - 30px) / 2); } /* 28px grid gap + 2px card borders */
}
