/* ============================================================
   Sovereign Group of Companies — redesign v3
   Inspired by the Vestmont design system:
   light editorial pages, dark cinematic heroes,
   Fraunces serif + italic gold accents, Inter text.
   ============================================================ */

:root {
  --ink: #1f2937;
  --ink-deep: #0f1623;
  --ink-2: #16202f;
  --muted: #6b7280;
  --gold: #c5a572;
  --gold-deep: #8b7355;
  --tint: #f7f4ec;
  --bg: #ffffff;
  --line: rgba(31, 41, 55, 0.12);
  --line-strong: rgba(31, 41, 55, 0.22);
  --line-inv: rgba(255, 255, 255, 0.16);
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }   /* never allow sideways scroll */

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--ink-deep); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Type ---------- */

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }

h1 em, h2 em, .hero h1 em { font-style: italic; color: var(--gold); }
/* "Weiss family office" emphasis in the hero lede — same gold italic as "Enduring ground." */
.fam-em { font-style: italic; color: var(--gold); font-weight: 500; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: var(--gold);
}

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 46em;
}

.muted { color: var(--muted); }

/* ---------- Header / nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 22, 35, 0.55) 0%, rgba(15, 22, 35, 0) 100%);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(15, 22, 35, 0.06);
}
/* When the mobile menu is open, drop the header's backdrop-filter — a filter creates a
   containing block that traps the fixed full-screen menu inside the header's small box
   (so it only showed a sliver at the top when scrolled). Removing it lets the menu fill
   the whole viewport no matter where you are on the page. */
body.nav-open .site-header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.brand { display: flex; flex-direction: column; line-height: 1; gap: 0.3rem; }
.brand-logo { height: 2.9rem; width: auto; align-self: flex-start; object-fit: contain; }
/* Header/footer use logo-dark.png (gold crown + white text); JS swaps the
   header to the full-color logo.png when the header scrolls to white. */
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
}
.brand-sub {
  font-size: 0.56rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: 2.3rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.85;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: opacity 0.25s, border-color 0.25s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; border-bottom-color: var(--gold); }
.nav-links a.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold);
  opacity: 1;
  padding: 0.6rem 1.4rem;
  transition: background 0.25s, color 0.25s;
}
.site-header.scrolled .nav-links a.nav-cta { color: var(--gold-deep); }
.nav-links a.nav-cta:hover { background: var(--gold); color: var(--ink-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 2.2rem; height: 2.2rem;
  position: relative;
  z-index: 60;
  color: #fff;                                   /* white bars over the hero */
  -webkit-tap-highlight-color: transparent;      /* kill the blue tap flash on mobile */
}
.site-header.scrolled .nav-toggle { color: #14181f; }   /* near-black once scrolled past the hero */
.nav-toggle span {
  position: absolute; left: 0.25rem; right: 0.25rem;
  height: 1.5px; background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0.75rem; }
.nav-toggle span:nth-child(2) { top: 1.1rem; }
.nav-toggle span:nth-child(3) { top: 1.45rem; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(0.35rem) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-0.35rem) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0;
    background: rgba(15, 22, 35, 0.98);
    color: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav-open .nav-links { opacity: 1; pointer-events: auto; }
  body.nav-open .nav-toggle { color: #fff !important; }   /* the X stays white on the dark menu, even when scrolled */
  .nav-links a { font-size: 1rem; }
  .nav-links a.nav-cta { color: var(--gold) !important; }
}

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--gold-deep); color: var(--gold-deep); background: transparent; }
.btn.gold-line { background: transparent; color: var(--gold-deep); border: 1.5px solid var(--gold); }
.btn.gold-line:hover { background: transparent; border-color: var(--gold-deep); color: var(--gold-deep); transform: translateY(-1px); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Buttons sitting on dark surfaces (hero, cta band) */
.hero .btn, .cta-band .btn { background: var(--gold); border-color: var(--gold); color: var(--ink-deep); }
.hero .btn:hover, .cta-band .btn:hover { background: #d9bd8c; border-color: #d9bd8c; }
.hero .btn.ghost, .cta-band .btn.ghost {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35);
}
.hero .btn.ghost:hover, .cta-band .btn.ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Hero (dark, photo/video-ready) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 10vh, 7rem);
  padding-top: 9rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-deep);
  color: #fff;
}
.hero.short { min-height: 64svh; }

.hero .lede { color: rgba(255, 255, 255, 0.82); }

.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art svg { width: 100%; height: 100%; }

/* Drop-in slot for real photos / Google Flow video: replaces .hero-art */
.hero-media { position: absolute; inset: 0; z-index: -2; }
/* Hero video rotation: two stacked clips crossfade; still fallback sits underneath. */
/* All clips stacked; JS crossfades opacity. Videos sit at z-index 1, grade layers above. */
.hero-media .hero-vid { position: absolute; inset: 0; z-index: 1; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
}
/* No added Ken Burns scale on the videos: the aerials already move, and an upscale
   (scale >1) softens the image. The still fallback keeps a gentle zoom-in. */
.hero-media .hero-fallback { animation: heroZoom 2.2s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes heroTextUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* Inner-page (static image) heroes: the picture eases in with a subtle zoom and the
   headline/kicker/lede slide up in sequence — the "pop" the video home page gets for free.
   Scoped to .hero.short so the home video hero is never touched. */
.hero.short .hero-media img { animation: heroZoom 1.7s ease-out both; }
.hero.short .hero-content .hero-kicker { animation: heroTextUp 0.7s ease-out 0.25s both; }
.hero.short .hero-content h1 { animation: heroTextUp 0.7s ease-out 0.40s both; }
.hero.short .hero-content .lede { animation: heroTextUp 0.7s ease-out 0.55s both; }
@media (prefers-reduced-motion: reduce) {
  .hero.short .hero-media img,
  .hero.short .hero-content .hero-kicker,
  .hero.short .hero-content h1,
  .hero.short .hero-content .lede { animation: none; }
}

/* Cinematic grade: teal shadows, warm golden highlights, film contrast + vignette.
   Dark backdrop = clean dip target for the fade-through between clips. */
.hero-media.cine { background: #0a1019; }
.hero-media.cine img, .hero-media.cine video {
  filter: contrast(1.14) saturate(0.9) brightness(0.98);
}
/* Split-tone: cool the shadows toward teal, push highlights warm gold (sits above the video). */
.hero-media.cine::before {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(202deg, rgba(24, 48, 70, 0.38) 0%, rgba(24, 48, 70, 0) 46%),
    linear-gradient(18deg, rgba(226, 176, 104, 0) 50%, rgba(230, 178, 104, 0.32) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
/* Cinematic vignette: bright center, gently darkened corners. */
.hero-media.cine::after {
  content: "";
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(122% 122% at 50% 38%, rgba(0, 0, 0, 0) 50%, rgba(5, 9, 16, 0.55) 100%);
  pointer-events: none;
}

.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top,
    rgba(15, 22, 35, 0.92) 0%,
    rgba(15, 22, 35, 0.35) 45%,
    rgba(15, 22, 35, 0.55) 100%);
}
.hero-scrim.light {
  background: linear-gradient(to top,
    rgba(15, 22, 35, 0.9) 0%,
    rgba(15, 22, 35, 0.55) 32%,
    rgba(15, 22, 35, 0.12) 62%,
    rgba(15, 22, 35, 0.25) 100%);
}
.hero .hero-kicker, .hero h1, .hero .lede {
  text-shadow: 0 1px 2px rgba(15, 22, 35, 0.45), 0 2px 6px rgba(15, 22, 35, 0.35);
}
.hero-scrim.side {
  background:
    linear-gradient(to right,
      rgba(15, 22, 35, 0.85) 0%,
      rgba(15, 22, 35, 0.55) 38%,
      rgba(15, 22, 35, 0.08) 68%,
      rgba(15, 22, 35, 0) 100%),
    linear-gradient(to top,
      rgba(15, 22, 35, 0.6) 0%,
      rgba(15, 22, 35, 0) 45%);
}
.hero-scrim.deep {
  background: linear-gradient(to top,
    rgba(15, 22, 35, 0.95) 0%,
    rgba(15, 22, 35, 0.55) 45%,
    rgba(15, 22, 35, 0.65) 100%);
}

.hero-content { max-width: 54rem; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.8rem;
  text-shadow: 0 1px 10px rgba(15, 22, 35, 0.75);
}
.hero-kicker::before { content: ""; width: 2rem; height: 1px; background: #ffffff; box-shadow: 0 1px 8px rgba(15, 22, 35, 0.6); }

.hero .lede { margin-top: 1.8rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.section.tint { background: var(--ink-2); color: #fff; }
.section.tint .lede, .section.tint .muted { color: rgba(255, 255, 255, 0.72); }
.section.tint .eyebrow { color: var(--gold); }
.section.tint.hairline { border-top: none; }
.section.tint .timeline::before { background: rgba(255, 255, 255, 0.22); }
.section.tint .timeline li::before { background: var(--ink-2); }
.section.tint .timeline .year { color: var(--gold); }
.section.tint .timeline p { color: rgba(255, 255, 255, 0.65); }
.section.tint .process li { border-color: var(--line-inv); }
.section.tint .process li::before { color: var(--gold); }
.section.tint .process p { color: rgba(255, 255, 255, 0.65); }
.section.tint .tag { color: rgba(255, 255, 255, 0.75); border-color: var(--line-inv); background: transparent; }
.section.tint .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.section.tint .btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.section.hairline { border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); max-width: 46rem; }
.section-head .lede { margin-top: 1.2rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split .sticky-col { position: sticky; top: 7rem; }
@media (max-width: 860px) { .split .sticky-col { position: static; } }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats.stats--three { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 2.4rem 1rem 0; text-align: center; }
.stat + .stat { border-left: none; }
/* Stats band runs tighter than a normal section so it doesn't leave a big white gap. */
.section--stats { padding-block: clamp(2rem, 4.5vw, 3.25rem); }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.3rem);
  font-weight: 500;
  color: var(--gold-deep);
  line-height: 1;
}
/* Home four-stat bar: keep the numbers big (matching the portfolio bar), just guaranteed
   to stay on one line. $10–50M+ is short enough to sit at near-full size four-across. */
.stats:not(.stats--three) .stat-num {
  font-size: clamp(2.4rem, 4.2vw, 3rem);   /* min matches the portfolio bar so they're the same size on mobile */
  white-space: nowrap;
  letter-spacing: -0.01em;
}
@media (max-width: 560px) {
  .section--stats .stats:not(.stats--three) { grid-template-columns: 1fr; }
}
.stat-num sup, .stat-num small { color: var(--gold-deep); }
.stat-label {
  margin-top: 0.7rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats.stats--three { grid-template-columns: 1fr; }   /* three stats stack cleanly on phones */
  .stat { padding: 1.8rem 0.5rem 1rem; }
  .stat + .stat { border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stats--three .stat:nth-child(even) { border-left: none; }
}

/* ---------- Pillar / criteria cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: clamp(1.2rem, 2vw, 1.75rem);
}
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .card-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid.three { grid-template-columns: 1fr; } }
/* Four pillars: 4 across, then a clean 2x2, then stacked — never a 3+1 orphan. */
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1040px) { .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid.four { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(15, 22, 35, 0.06);
  padding: 2.3rem 2rem 2.5rem;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.card:hover {
  box-shadow: 0 18px 44px rgba(15, 22, 35, 0.1);
  transform: translateY(-3px);
}
.card .num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1.3rem;
}
.card h3 { margin-bottom: 0.9rem; }
.card p { font-size: 0.96rem; color: var(--muted); }
.card .tag-row { margin-top: 1.2rem; }
/* Gold trim down the left edge of the Investment Criteria mandate cards. */
.card-grid.three .card { border-left: 3px solid var(--gold); }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}
.tag.gold { color: var(--gold-deep); border-color: rgba(197, 165, 114, 0.6); background: rgba(197, 165, 114, 0.08); }

/* ---------- Process rail ---------- */

.process { counter-reset: step; list-style: none; }
.process li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.5rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.process li:last-child { border-bottom: 1px solid var(--line); }
.process li::before {
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-deep);
}
.process h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.process p { font-size: 0.95rem; color: var(--muted); max-width: 38em; }
@media (max-width: 640px) {
  .process li { grid-template-columns: 3.2rem 1fr; gap: 1rem; }
}

/* Investment process, as an accordion: compact rows that expand smoothly on click. */
.proc-accordion { border-top: 1px solid var(--line); }
.proc-item { border-bottom: 1px solid var(--line); }
.proc-head {
  display: flex; align-items: center; gap: 1.1rem;
  width: 100%; padding: 1.2rem 0.15rem; text-align: left;
  background: none; border: none; cursor: pointer; color: var(--ink); font: inherit;
  -webkit-tap-highlight-color: transparent; transition: color 0.25s;
}
.proc-head:hover { color: var(--gold-deep); }
.proc-n { flex: none; width: 2rem; font-family: var(--serif); font-size: 1rem; color: var(--gold-deep); letter-spacing: 0.08em; }
.proc-t { flex: 1; font-family: var(--serif); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.proc-ico { position: relative; flex: none; width: 1rem; height: 1rem; }
.proc-ico::before, .proc-ico::after { content: ""; position: absolute; background: var(--gold); transition: transform 0.35s var(--ease), opacity 0.3s; }
.proc-ico::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.proc-ico::after  { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.proc-item.open .proc-ico::after { transform: translateX(-50%) scaleY(0); opacity: 0; }   /* + turns to − */
.proc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.proc-item.open .proc-panel { grid-template-rows: 1fr; }
.proc-panel-inner { overflow: hidden; }
.proc-panel-inner p { margin: 0; padding: 0 0 1.25rem 3.1rem; color: var(--muted); font-size: 0.98rem; line-height: 1.6; max-width: 40em; }
.section.tint .proc-accordion, .section.tint .proc-item { border-color: var(--line-inv); }
.section.tint .proc-head { color: #fff; }
.section.tint .proc-panel-inner p { color: rgba(255, 255, 255, 0.65); }
@media (max-width: 640px) { .proc-panel-inner p { padding-left: 0; } }

/* ---------- Portfolio ---------- */

.folio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
/* minmax(0,1fr), not 1fr: lets the single column shrink below the video card's intrinsic
   (16:9-cover iframe) width instead of forcing the card wider than the phone screen. */
@media (max-width: 760px) { .folio-grid { grid-template-columns: minmax(0, 1fr); } }

/* Full-width feature tombstone (Life Storage) — video-ready */
.folio.feature { grid-column: 1 / -1; }
.folio.feature .folio-art { aspect-ratio: 16 / 9; }
.folio.feature h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.folio.feature .folio-body { padding: 2.2rem 2.2rem 2.4rem; }
@media (max-width: 760px) { .folio.feature .folio-art { aspect-ratio: 16 / 10; } }
.folio-art video { width: 100%; height: 100%; object-fit: cover; }

/* Vimeo background embed, cropped to fill the art box */
.folio-art.video-embed { position: relative; container-type: size; background: var(--ink-deep); }
/* Still poster shows instantly so the card is never blank while the player loads. */
.folio-art.video-embed .video-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.folio-art.video-embed iframe {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: max(100cqw, calc(100cqh * 16 / 9));
  height: max(100cqh, calc(100cqw * 9 / 16));
  border: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.folio-art.video-embed.playing iframe { opacity: 1; }
.deal-modal-media { position: relative; container-type: size; }
.deal-modal-media .collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 100%; height: 100%;
}
.deal-modal-media .collage img { width: 100%; height: 100%; object-fit: cover; }
.deal-modal-media iframe {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: max(100cqw, calc(100cqh * 16 / 9));
  height: max(100cqh, calc(100cqw * 9 / 16));
  border: 0;
  pointer-events: none;
}

/* Deal stats row inside the feature tombstone */
.folio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  text-align: center;
}
@media (max-width: 640px) { .folio-stats { grid-template-columns: 1fr; gap: 1.2rem; } }
.folio-stats.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .folio-stats.four { grid-template-columns: repeat(2, 1fr); } }
.fstat .fstat-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold-deep);
  line-height: 1.1;
}
.fstat .fstat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.folio {
  background: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(15, 22, 35, 0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.folio:hover {
  box-shadow: 0 22px 54px rgba(15, 22, 35, 0.14);
  transform: translateY(-4px);
}
.folio-art { aspect-ratio: 16 / 10; overflow: hidden; }
.folio-art svg { width: 100%; height: 100%; }
.folio-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.folio:hover .folio-art img { transform: scale(1.04); }
.folio-body { padding: 1.8rem 1.7rem 2rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.folio-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.folio h3 { font-size: 1.4rem; }
.folio p { font-size: 0.94rem; color: var(--muted); flex: 1; }
.folio-stat {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.folio-stat strong { color: var(--gold-deep); font-weight: 600; }

/* ---------- Deal detail modal ---------- */

article.folio { cursor: pointer; }

.deal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 22, 35, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;                 /* fully out of layout when closed so it can't cause overflow */
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.deal-overlay.open { display: flex; opacity: 1; pointer-events: auto; }

.deal-modal {
  position: relative;
  background: #fff;
  width: min(860px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s var(--ease);
}
.deal-overlay.open .deal-modal { transform: none; }

.deal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  width: 2.6rem; height: 2.6rem;
  border: none;
  background: rgba(15, 22, 35, 0.75);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s;
}
.deal-close:hover { background: var(--gold); color: var(--ink-deep); }

.deal-modal-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.deal-modal-media img, .deal-modal-media video, .deal-modal-media svg {
  width: 100%; height: 100%; object-fit: cover;
}

.deal-modal-body { padding: clamp(1.8rem, 4vw, 2.8rem); }
.deal-modal-body h2 { margin: 0.7rem 0 1rem; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.deal-modal-body .deal-lede { color: var(--ink); font-size: 1.05rem; margin-bottom: 1rem; }
.deal-modal-body .deal-more { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.6rem; }
.deal-modal-body .folio-stat, .deal-modal-body .folio-stats { margin-top: 0.4rem; }

/* ---------- Leadership ---------- */

.leader {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.leader:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .leader { grid-template-columns: 1fr; } }
.leader-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(15, 22, 35, 0.08);
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--ink-2), var(--ink-deep));
}
.leader-photo.placeholder span {
  font-family: var(--serif);
  font-size: 3.2rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.leader-id h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.leader-role {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.leader-bio p + p { margin-top: 1.1rem; }
.leader-bio p { color: var(--muted); }
.leader-bio .tag-row { margin-top: 1.6rem; }

/* ---------- Timeline ---------- */

.timeline { list-style: none; position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: ""; position: absolute; left: 0.32rem; top: 0.5rem; bottom: 0.5rem;
  width: 1px; background: var(--line-strong);
}
.timeline li { position: relative; padding: 0 0 2.2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -2.2rem; top: 0.5rem;
  width: 0.65rem; height: 0.65rem; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold);
}
.timeline .year {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.timeline p { font-size: 0.95rem; color: var(--muted); max-width: 34em; }
/* Animated on scroll: the line draws down and each milestone fades up in turn. */
.timeline::before { transform: scaleY(0); transform-origin: top center; transition: transform 0.9s var(--ease); }
.timeline.in::before { transform: scaleY(1); }
.timeline li { opacity: 0; transform: translateY(22px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.timeline li.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .timeline::before, .timeline li { transform: none; opacity: 1; transition: none; }
}

/* ---------- CTA band (dark) ---------- */

.cta-band {
  background:
    radial-gradient(120% 160% at 85% 10%, rgba(197, 165, 114, 0.14), transparent 55%),
    var(--ink-deep);
  color: #fff;
  text-align: center;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}
.cta-band h2 { max-width: 22em; margin: 0 auto; }
.cta-band .lede { margin: 1.4rem auto 0; color: rgba(255, 255, 255, 0.75); }
.cta-band .btn-row { justify-content: center; }
.cta-band .eyebrow { color: var(--gold); }
.cta-band .eyebrow::before { background: var(--gold); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info dl { display: grid; gap: 1.8rem; margin-top: 2.2rem; }
.contact-info dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}
.contact-info dd { color: var(--muted); }
.contact-info dd a { border-bottom: 1px solid var(--line-strong); transition: border-color 0.25s, color 0.25s; }
.contact-info dd a:hover { color: var(--gold-deep); border-color: var(--gold); }

.form { display: grid; gap: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 0.95rem 1.1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.18);
}

/* ---------- Footer (dark) ---------- */

.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.footer-grid h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-grid a, .footer-grid p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--line-inv);
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}


/* ---------- Property-type marquee ---------- */

.marquee-band {
  background: var(--ink-2);
  color: #fff;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  overflow: hidden;
}
.marquee-band .eyebrow { color: var(--gold); }
.marquee-band .eyebrow::before { background: var(--gold); }

.marquee { margin-top: clamp(2rem, 4vw, 3rem); overflow: hidden; }
.marquee-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

.pt-tile { flex: 0 0 auto; width: clamp(220px, 24vw, 300px); margin: 0; }
.pt-tile img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.pt-tile figcaption {
  margin-top: 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}


/* ---------- Portfolio group dividers ---------- */
.folio-group {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.folio-group:first-child { margin-top: 0; }
.folio-group span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
}
.folio-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* On phones the long divider labels can't stay on one line — let them wrap and tighten
   the tracking so they don't push the page wider than the screen. */
@media (max-width: 760px) {
  .folio-group { flex-wrap: wrap; }
  .folio-group span { white-space: normal; letter-spacing: 0.14em; min-width: 0; }
}


/* Rendering disclaimer badge over card art */
.folio-art { position: relative; }
.art-badge {
  position: absolute;
  left: 0.8rem; bottom: 0.8rem;
  z-index: 2;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(15, 22, 35, 0.65);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.7rem;
}
