/* The website surface: institutional-firm treatment on the brand tokens (P7). Steel bands
   carry the weight, warm paper rests between them. Newsreader display, Inter body, IBM Plex Mono
   figures. No buttons: arrows in circles are the only link idiom. Photography is self-hosted from
   brand/imagery (P5: zero external requests). Colours and type sizes are tokens, never literals:
   dark surfaces redefine the text tokens once (below) instead of per-component overrides. */
@import 'brand/fonts.css';
@import 'brand/tokens.css';

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dw-bg);
  color: var(--dw-ink);
  font-family: var(--dw-sans);
  font-size: var(--dw-text-md);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--dw-accent-bright); outline-offset: 3px; }

/* Skip link: first tab stop, off-screen until focused, then pinned top-left above the header. */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-200%);
  background: var(--dw-surface); color: var(--dw-ink); border: 1px solid var(--dw-line-strong);
  border-radius: var(--dw-radius); padding: 10px 16px; font-size: var(--dw-text-base); font-weight: 500;
  transition: transform .15s ease;
}
.skip-link:focus { transform: none; }
/* Skipped-to <main> is programmatically focusable but should not draw a full-width outline. */
#top:focus { outline: none; }

/* semantic accent roles — set once per ground so the eyebrow/arrow rules never restate the
   dark-surface selector list (P2/DRY). These are the light-paper defaults; the steel bands (and the
   pale-sky band) override them below, and the accent rules just read the role. */
:root {
  --dw-eyebrow-color: var(--dw-accent);   /* steel eyebrow text on paper */
  --dw-eyebrow-tick: var(--dw-lime);      /* lime tick on paper — a colour cue (lime can't be text here) */
  --dw-arrow-color: currentColor;         /* arrows inherit the text colour on paper */
  --dw-arrow-hover: currentColor;
}
/* ---- dark surfaces: one token redefinition on Hopewell Capital steel. The ground is the steel
   primary (--dw-navy #1A4D6D), not the near-black deep, so the bands read as steel rather than black
   (George, 2026-09-20 — closer to hopewell.com/companies/hcc). On this ground white text is 7.7:1
   (AAA) and muted is 5.0:1 (AA) — the muted mix is raised from the paper default to clear AA here. */
.site-header, .hero, .band.dark, .marquee-band, .statement, .site-footer, .portal-page {
  --dw-bg: var(--dw-navy);
  --dw-ink: var(--dw-topbar-text);
  --dw-text-secondary: color-mix(in srgb, var(--dw-topbar-text) 84%, var(--dw-navy));
  --dw-muted: color-mix(in srgb, var(--dw-topbar-text) 74%, var(--dw-navy));
  --dw-faint: color-mix(in srgb, var(--dw-topbar-text) 48%, var(--dw-navy));
  --dw-line: color-mix(in srgb, var(--dw-topbar-text) 22%, transparent);
  --dw-accent: var(--dw-sky);
  --dw-eyebrow-color: var(--dw-lime);     /* lime eyebrows pop on steel (5.7:1 AA) */
  --dw-arrow-color: var(--dw-sky);        /* sky arrow circles on steel */
  --dw-arrow-hover: var(--dw-cyan);       /* cyan interactive hover */
  background: var(--dw-bg);
  color: var(--dw-ink);
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 52px); }
.eyebrow {
  font-family: var(--dw-sans); font-size: var(--dw-text-xs); font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dw-eyebrow-color); margin: 0 0 clamp(22px, 3vw, 36px);
  display: flex; align-items: center; gap: 18px;
}
/* the trailing rule is the eyebrow tick — a colour cue in an otherwise steel-and-paper field. Its
   colour is per-ground (--dw-eyebrow-tick): lime on paper and steel bands, steel on the pale-sky band
   where lime would vanish. On the steel bands the eyebrow text itself goes lime via --dw-eyebrow-color. */
.eyebrow::after { content: ''; width: 48px; height: 2px; background: var(--dw-eyebrow-tick); opacity: 1; }
/* centred eyebrows stack the tick beneath the text (a centered colour cue, not a side rule) */
.eyebrow.centred { justify-content: center; flex-direction: column; gap: 10px; }
.eyebrow.centred::after { display: block; width: 40px; }
.num { font-family: var(--dw-mono); font-variant-numeric: tabular-nums; }
.centred { text-align: center; margin-left: auto; margin-right: auto; }

/* scroll-reveal: only hide when JS can reveal (no-JS, reduced motion and print keep everything visible) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } }
@media print { .js .reveal { opacity: 1; transform: none; transition: none; } .marquee-band { display: none; } }

/* ---- arrows (the single link idiom; only ever inside a link) ---- */
/* the arrow circle reads --dw-arrow-color (inherits text on paper, sky on the steel bands) and fills
   --dw-arrow-hover on hover (the text colour on paper, cyan on the steel bands) — both per-ground roles,
   so this stays one rule for every ground. */
.arrow {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--dw-arrow-color); border: 1px solid currentColor; flex: none; transition: background .2s, color .2s, border-color .2s;
}
.arrow::before { content: ''; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateX(-2px) rotate(45deg); }
.arrow-link { display: inline-flex; align-items: center; gap: 14px; font-weight: 500; font-size: var(--dw-text-md); margin-top: 22px; }
.arrow-link:hover .arrow { background: var(--dw-arrow-hover); border-color: var(--dw-arrow-hover); }
.arrow-link:hover .arrow::before { border-color: var(--dw-bg); }

/* ---- header (dark, wordmark, no button) ---- */
.site-header .container { display: flex; align-items: center; gap: 30px; height: 96px; }
.brandmark { width: 158px; height: 34px; flex: none; background: url('brand/logo/lockup-dark.svg') left center / contain no-repeat; }
/* ---- primary nav: top-level triggers with dropdown submenus ----
   Desktop: submenus open on hover, keyboard focus (focus-within) or a JS click
   (aria-expanded). With no JS, hover and focus-within still reveal them, so every
   link is reachable. Mobile (<=680px) turns the bar into a toggled panel. */
.site-nav { margin-left: auto; }
.nav-toggle { display: none; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 2.4vw, 32px); align-items: center; }
.nav-item { position: relative; }
.nav-top {
  font: inherit; font-size: var(--dw-text-base); color: inherit; background: none; border: 0; padding: 0;
  cursor: pointer; opacity: .88; display: inline-flex; align-items: center; gap: 7px; line-height: 1.4;
}
.nav-top:hover, .nav-item:focus-within > .nav-top { opacity: 1; }
.has-menu > .nav-top::after {
  content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s; opacity: .75;
}
.has-menu:hover > .nav-top::after, .has-menu:focus-within > .nav-top::after, .nav-top[aria-expanded="true"]::after {
  transform: translateY(1px) rotate(-135deg);
}
/* active nav: Hopewell's signature lime underline (label stays legible white on the dark header;
   lime is the highlight, not the text — the interactive accent stays sky/steel) */
.is-current > .nav-top, .nav-menu a.nav-top[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--dw-lime); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-sub {
  list-style: none; margin: 0; padding: 10px 0; position: absolute; top: calc(100% + 16px); left: -16px;
  min-width: 236px; background: var(--dw-navy-deep); border: 1px solid var(--dw-line);
  box-shadow: 0 20px 46px -26px rgba(0, 0, 0, .75);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; z-index: 60;
}
.has-menu:hover > .nav-sub, .has-menu:focus-within > .nav-sub, .nav-top[aria-expanded="true"] + .nav-sub {
  opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease;
}
.nav-sub a { display: block; padding: 9px 20px; font-size: var(--dw-text-base); color: var(--dw-text-secondary); white-space: nowrap; }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { color: var(--dw-ink); background: color-mix(in srgb, var(--dw-topbar-text) 9%, transparent); }
/* Partner login: set apart on the right as an outlined affordance (a link, not a button) */
.nav-login { margin-left: clamp(4px, 1vw, 14px); }
.nav-login .nav-top { border: 1px solid var(--dw-line); border-radius: var(--dw-radius); padding: 8px 16px; opacity: 1; }
.nav-login .nav-top:hover { border-color: var(--dw-accent); }
/* hamburger */
.nav-toggle { background: none; border: 0; cursor: pointer; padding: 10px; margin-left: auto; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .2s, opacity .2s;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5.5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* Auto-hiding header (headroom): in flow at the very top, then sticks and floats.
   Slides out of view on scroll down, returns on scroll up. Compositor-only motion.
   Reveal is a touch slower and eased-out (soft return); hide is quicker and eased-in. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: transform .26s cubic-bezier(.4, 0, .2, 1);
}
.site-header.is-pinned { box-shadow: 0 1px 0 var(--dw-line), 0 8px 26px -20px rgba(0, 0, 0, .55); }
.site-header.is-hidden {
  transform: translateY(-100%);
  transition-duration: .18s; transition-timing-function: cubic-bezier(.4, 0, 1, 1);
}
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
  .site-header.is-hidden { transform: none; }
}

/* ---- hero: one statement left, one image right ---- */
.hero { border-top: 1px solid var(--dw-line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: stretch; }
.hero-text {
  padding: clamp(64px, 10vw, 140px) clamp(32px, 5vw, 72px) clamp(56px, 9vw, 120px) clamp(20px, 5vw, 52px);
  max-width: calc(1180px / 2 + 52px); margin-left: auto; width: 100%;
}
.hero-media { margin: 0; min-height: 420px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 {
  font-family: var(--dw-serif); font-weight: 500; font-size: clamp(48px, 6.6vw, 96px);
  line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 clamp(28px, 4vw, 44px);
}
.hero-sub { margin: 0; font-size: clamp(var(--dw-text-lg), 2.2vw, 24px); line-height: 1.5; color: var(--dw-text-secondary); max-width: 44ch; }
.hero-doors { display: flex; gap: clamp(24px, 4vw, 48px); flex-wrap: wrap; margin-top: clamp(28px, 4vw, 44px); }
.hero-doors .arrow-link { margin-top: 0; }

/* ---- bands ---- */
.band { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--dw-line); }
.band.surface { background: var(--dw-surface); }
/* pale-sky band: a third ground beside paper and steel, for the Hopewell paper->sky->steel rhythm.
   A light sky tint over white — a colour block that keeps dark text fully legible on top. The band's
   own blue is the colour here, so the eyebrow tick switches to steel (lime is ~1.3:1 on this ground). */
.band.sky { background: color-mix(in srgb, var(--dw-sky) 22%, var(--dw-surface)); --dw-eyebrow-tick: var(--dw-accent); }
.band h2 {
  font-family: var(--dw-serif); font-weight: 500; font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.06; letter-spacing: -0.015em; margin: 0 0 clamp(18px, 3vw, 26px);
  max-width: 18ch; text-wrap: balance;
}
.band h2.centred { max-width: none; margin-bottom: clamp(40px, 6vw, 72px); }
.body { font-size: var(--dw-text-md); color: var(--dw-text-secondary); line-height: 1.7; margin: 0 0 18px; max-width: 58ch; }
.fine { font-size: var(--dw-text-sm); color: var(--dw-muted); line-height: 1.5; margin: 14px 0 0; }

/* ---- the platform: paragraph + one number ---- */
.firm-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.firm-text h3 { font-family: var(--dw-serif); font-weight: 500; font-size: 24px; margin: 0 0 14px; letter-spacing: -0.01em; }
.firm-text p { font-size: var(--dw-text-md); line-height: 1.7; color: var(--dw-text-secondary); margin: 0; max-width: 56ch; }
.firm-number { padding-left: clamp(0px, 4vw, 48px); }
.big { font-family: var(--dw-serif); font-weight: 500; font-size: clamp(64px, 9vw, 120px); line-height: 0.95; letter-spacing: -0.03em; }
.big .plus { font-size: .55em; vertical-align: top; color: var(--dw-accent); }
.big-label { font-size: var(--dw-text-md); color: var(--dw-text-secondary); margin-top: 14px; }

/* ---- two-column list sections (headline left, rows right) ---- */
.two-list { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { padding: 22px 0; border-top: 1px solid var(--dw-line); }
.row:last-child { border-bottom: 1px solid var(--dw-line); }
.row b { display: block; font-family: var(--dw-serif); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; margin-bottom: 4px; }
.row span { display: block; font-size: var(--dw-text-base); line-height: 1.55; color: var(--dw-muted); max-width: 52ch; }

/* ---- theme line ---- */
.marquee-band { padding: clamp(28px, 4vw, 48px) 0 clamp(32px, 5vw, 56px); overflow: hidden; border-top: 1px solid var(--dw-line); }
.marquee { overflow: hidden; white-space: nowrap; }
.track { display: inline-flex; animation: slide 36s linear infinite; }
.track span { font-family: var(--dw-serif); font-weight: 500; font-size: clamp(64px, 12vw, 170px); line-height: 1.05; letter-spacing: -0.03em; padding-right: .5em; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }
.marquee-note { margin: clamp(18px, 3vw, 28px) 0 0; font-size: var(--dw-text-base); color: var(--dw-text-secondary); }

/* ---- statement band (subpages): the theme line, static — the rolling marquee is home-only ---- */
.statement { padding: clamp(56px, 9vw, 120px) 0; border-top: 1px solid var(--dw-line); }
.statement-line {
  font-family: var(--dw-serif); font-weight: 500; font-size: clamp(34px, 5.4vw, 72px);
  line-height: 1.05; letter-spacing: -0.03em; margin: 0; max-width: 20ch; text-wrap: balance;
}
.statement-note { margin: clamp(20px, 3vw, 32px) 0 0; font-size: var(--dw-text-base); color: var(--dw-text-secondary); max-width: 62ch; }

/* ---- proof ---- */
.proof-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.proof-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.pr { border-top: 1px solid var(--dw-line); padding-top: 16px; }
.pn { font-size: 30px; line-height: 1.1; }
.pl { font-size: var(--dw-text-base); color: var(--dw-muted); margin-top: 6px; }
.proof-list .fine { grid-column: 1 / -1; }

/* ---- insights: cards ---- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: clamp(28px, 4vw, 44px); }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card h3 { font-family: var(--dw-serif); font-weight: 500; font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; margin: 18px 0 14px; }
.card .meta { display: flex; flex-direction: column; gap: 2px; font-size: var(--dw-text-sm); color: var(--dw-muted); }
.card .meta b { color: var(--dw-ink); font-weight: 600; }
/* card titles are links (second way in, beside the Read arrow); underline only on hover */
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover, .card h3 a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---- insights: carousel (three wide, short cards; the track scrolls natively, the arrows page it) ---- */
.carousel { position: relative; }
.carousel .cards {
  display: flex; gap: clamp(20px, 3vw, 36px); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.carousel .cards::-webkit-scrollbar { display: none; }
.carousel .card { flex: 0 0 calc((100% - 2 * clamp(20px, 3vw, 36px)) / 3); scroll-snap-align: start; }
.carousel .card img { aspect-ratio: 16 / 9; }
.carousel-nav { position: absolute; right: 0; top: -64px; display: none; gap: 10px; }
.js .carousel-nav { display: flex; }
.carousel-btn {
  appearance: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; color: var(--dw-ink);
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; transition: background .2s, color .2s, opacity .2s;
}
.carousel-btn::before { content: ''; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateX(-2px) rotate(45deg); }
.carousel-btn.is-prev::before { transform: translateX(2px) rotate(-135deg); }
.carousel-btn:hover { background: currentColor; }
.carousel-btn:hover::before { border-color: var(--dw-bg); }
.carousel-btn[disabled] { opacity: .3; cursor: default; pointer-events: none; }
@media (max-width: 900px) { .carousel .card { flex-basis: calc((100% - clamp(20px, 3vw, 36px)) / 2); } }
@media (max-width: 600px) { .carousel .card { flex-basis: 86%; } .carousel-nav { position: static; margin-top: 16px; justify-content: flex-end; } }

/* ---- index links: a visibly different affordance for "go to the index" (vs. "read this piece") ---- */
.link-index {
  font-family: var(--dw-mono); font-size: var(--dw-text-sm); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dw-text-secondary); gap: 10px;
}
.link-index .arrow { width: 30px; height: 30px; }
.link-index .arrow::before { width: 7px; height: 7px; }
.onward .link-index { width: 100%; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--dw-line); }

/* ---- portrait placeholder (shared by the firm people grid and its modals) ---- */
.portrait {
  aspect-ratio: 4 / 5; background: var(--dw-surface-sunken); border: 1px solid var(--dw-line);
  display: grid; place-items: center; color: var(--dw-faint); font-family: var(--dw-mono); font-size: var(--dw-text-sm); letter-spacing: .08em; text-transform: uppercase;
  overflow: hidden;
}
/* real headshot fills the frame; initials placeholder for people without a photo yet */
.portrait img, .pm-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait.is-placeholder span { font-family: var(--dw-serif); font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .02em; text-transform: none; }

/* ---- contact ---- */
.contact-lines p { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 18px 0; margin: 0; border-top: 1px solid var(--dw-line); }
.contact-lines p:last-child { border-bottom: 1px solid var(--dw-line); }
.contact-lines b { font-weight: 600; }
.contact-lines span { font-family: var(--dw-mono); font-size: var(--dw-text-base); color: var(--dw-text-secondary); }

/* ---- footer ---- */
.site-footer { padding: clamp(48px, 6vw, 80px) 0 clamp(28px, 4vw, 40px); }
.foot-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.build-lockup { display: inline-flex; align-items: center; gap: 12px; }
.build-lockup .bw { font-family: var(--dw-serif); font-weight: 500; font-size: 22px; line-height: .95; letter-spacing: -0.01em; text-align: right; }
.foot-wordmark { width: 148px; height: 32px; display: inline-block; background: url('brand/logo/lockup-dark.svg') left center / contain no-repeat; }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(28px, 5vw, 72px); }
.foot-cols h4 { margin: 0 0 14px; font-size: var(--dw-text-base); font-weight: 600; }
.foot-cols a { display: block; font-size: var(--dw-text-base); color: var(--dw-text-secondary); margin: 0 0 10px; }
.foot-cols a:hover { color: var(--dw-cyan); }
.foot-bottom {
  margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--dw-line);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: var(--dw-text-sm); color: var(--dw-muted);
}
.fmeta { font-family: var(--dw-mono); font-size: var(--dw-text-sm); }

/* ---- partner portal (login page): full-bleed investor-relations gate, Blackstone BXAccess pattern ----
   No site header or footer: a dramatic full-screen image with a centered dark sign-in card. The gate
   collects, stores and sends nothing: any entry is answered with an invitation-only rejection that
   routes to contact (initPortal in site.js). No-JS shows the rejection/contact path outright.
   The page runs on the dark token palette (added to the dark-surface block above). */
.portal-body { margin: 0; }
.portal-page {
  min-height: 100vh; margin: 0; display: flex; flex-direction: column; align-items: center;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--dw-navy-deep) 86%, transparent) 0%, color-mix(in srgb, var(--dw-navy-deep) 58%, transparent) 44%, color-mix(in srgb, var(--dw-navy-deep) 72%, transparent) 100%),
    url('brand/imagery/portal-towers-1200.jpg') center / cover no-repeat;
}
@media (min-width: 769px) {
  .portal-page { background:
    linear-gradient(180deg, color-mix(in srgb, var(--dw-navy-deep) 86%, transparent) 0%, color-mix(in srgb, var(--dw-navy-deep) 58%, transparent) 44%, color-mix(in srgb, var(--dw-navy-deep) 72%, transparent) 100%),
    url('brand/imagery/portal-towers.jpg') center / cover no-repeat; }
}
.portal-brand { padding: clamp(28px, 5vw, 48px) 0 0; }
.portal-brand .brandmark { display: block; width: 176px; height: 38px; background: url('brand/logo/lockup-dark.svg') center / contain no-repeat; }
/* card sits in the upper third rather than dead centre */
.portal-stage { flex: 1; display: flex; justify-content: center; align-items: flex-start; width: 100%; padding: clamp(20px, 16vh, 200px) 20px 40px; }
.portal {
  width: 100%; max-width: 512px; padding: clamp(30px, 4vw, 46px);
  background: color-mix(in srgb, var(--dw-navy-deep) 76%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--dw-topbar-text) 20%, transparent); border-radius: var(--dw-radius);
  box-shadow: 0 44px 96px -44px rgba(0, 0, 0, .85);
}
.portal-title { font-family: var(--dw-serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.01em; margin: 0 0 6px; }
.portal-lede { font-size: var(--dw-text-base); color: var(--dw-text-secondary); margin: 0 0 26px; }
.portal-label { display: block; font-size: var(--dw-text-sm); font-weight: 600; margin: 0 0 8px; color: var(--dw-text-secondary); }
.portal-input {
  width: 100%; padding: 11px 14px; font: inherit; font-size: var(--dw-text-base); color: var(--dw-ink);
  background: color-mix(in srgb, var(--dw-topbar-text) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--dw-topbar-text) 26%, transparent); border-radius: var(--dw-radius);
}
.portal-input::placeholder { color: var(--dw-faint); }
.portal-input:focus-visible { outline: 2px solid var(--dw-accent-bright); outline-offset: 2px; border-color: transparent; }
.portal-hint { font-size: var(--dw-text-sm); color: var(--dw-sky); margin: 8px 0 0; }
/* actions row: inert "remember me" on the left, a compact rounded Next on the right */
.portal-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.portal-remember { display: inline-flex; align-items: center; gap: 9px; font-size: var(--dw-text-sm); color: var(--dw-text-secondary); cursor: pointer; user-select: none; }
.portal-remember input { width: 15px; height: 15px; margin: 0; accent-color: var(--dw-sky); cursor: pointer; }
.portal-next {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 20px; font: inherit; font-weight: 600;
  font-size: var(--dw-text-base); color: var(--dw-navy-deep); background: var(--dw-lime); /* Hopewell lime CTA — navy-deep on lime ~7:1 (AAA) */
  border: 0; border-radius: 999px; cursor: pointer; transition: opacity .2s; white-space: nowrap;
}
.portal-next:hover { opacity: .88; }
.portal-next .pn-arrow { width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateX(-1px) rotate(45deg); }
.portal-msg { margin-top: 22px; }
.portal-msg-lead { font-family: var(--dw-serif); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; margin: 0 0 8px; }
.portal-msg p { font-size: var(--dw-text-base); color: var(--dw-text-secondary); line-height: 1.6; margin: 0 0 6px; }
/* persistent request-access note at the foot of the card (default view) */
.portal-note { margin-top: 22px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--dw-topbar-text) 16%, transparent); font-size: var(--dw-text-sm); color: var(--dw-text-secondary); }
.portal-note a { color: var(--dw-topbar-text); text-decoration: underline; text-underline-offset: 3px; }
.portal-note a:hover { color: var(--dw-sky); }
.portal-legal { padding: 0 20px clamp(24px, 4vw, 36px); font-size: var(--dw-text-sm); color: color-mix(in srgb, var(--dw-topbar-text) 55%, transparent); }
/* The field stays visible in every state; the persistent .portal-note carries the contact path
   for no-JS (and reduced-motion, where site.js drops the `js` class). The rejection (.portal-msg)
   is hidden via the `hidden` attribute until JS reveals it on Next. */

/* ---- responsive ---- */
@media (max-width: 960px) {
  .firm-grid, .two-list, .proof-grid, .hero-grid { grid-template-columns: 1fr; }
  .hero-text { max-width: none; }
  .hero-media { min-height: 0; aspect-ratio: 16 / 10; }
  .cards { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
/* nav collapses to a hamburger that toggles a full-width panel. Collapses at 900px
   so the five dropdown labels never crowd the header on tablets. */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--dw-navy-deep); border-top: 1px solid var(--dw-line);
    box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .7); padding: 6px 0 12px;
    max-height: calc(100vh - 96px); overflow-y: auto;
  }
  .site-nav.open .nav-menu { display: flex; }
  .nav-item { position: static; }
  .nav-top { width: 100%; padding: 13px clamp(20px, 5vw, 52px); justify-content: space-between; opacity: 1; }
  .has-menu > .nav-top::after { margin-left: auto; }
  .nav-sub {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    background: transparent; min-width: 0; padding: 0 0 6px; transition: none;
  }
  .nav-sub a { padding: 9px clamp(36px, 8vw, 68px); color: var(--dw-muted); }
  .nav-login { margin-left: 0; }
  .nav-login .nav-top { border: 0; border-radius: 0; }
}
@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .proof-list { grid-template-columns: 1fr; }
  .contact-lines p { grid-template-columns: 1fr; gap: 4px; }
}


/* ================================================================
   Subpages: distinct from the home rhythm (Blackstone practice + people
   pattern, analysed 2026-09-13). Page lead, a scale-stat row, full-width
   "what we do" strategy blocks, spotlight cards, and a people grid whose
   cards open a blurred modal. Tokens only (P7).
   ================================================================ */

/* ---- page lead (dark, text-forward hero for subpages) ---- */
/* ---- page hero (subpages): Blackstone masthead — title left, subtitle right, full-width image below ---- */
.page-hero { border-top: 1px solid var(--dw-line); padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 7vw, 96px); }
.page-hero .ph-top {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px); align-items: start; margin-bottom: clamp(40px, 6vw, 72px);
}
.page-hero h1 {
  font-family: var(--dw-serif); font-weight: 500; font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.0; letter-spacing: -0.03em; margin: 0; max-width: 17ch; text-wrap: balance;
}
.page-hero .ph-sub {
  font-size: clamp(var(--dw-text-md), 1.5vw, var(--dw-text-lg)); line-height: 1.55;
  color: var(--dw-text-secondary); max-width: 44ch; margin: clamp(6px, 1vw, 14px) 0 0;
}
.page-hero .ph-media { margin: 0; }
.page-hero .ph-media img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--dw-radius); }

/* ---- scale-stat row (the Blackstone hero-figure device) ---- */
.stat-row { border-top: 1px solid var(--dw-line); margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.stat-row.two { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
.stat { }
.stat .figure { font-family: var(--dw-serif); font-weight: 500; font-size: clamp(44px, 6vw, 76px); line-height: 0.95; letter-spacing: -0.03em; }
.stat .figure .plus, .stat .figure .unit { font-size: .5em; vertical-align: top; color: var(--dw-accent); }
.stat .s-label { font-size: var(--dw-text-base); color: var(--dw-text-secondary); margin-top: 12px; max-width: 24ch; }
.stat-note { grid-column: 1 / -1; font-family: var(--dw-mono); font-size: var(--dw-text-sm); color: var(--dw-muted); margin-top: 6px; }

/* ---- "what we do" strategy blocks: full width, stacked, ruled ---- */
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.strategies { display: grid; }
.strategy { padding: clamp(34px, 5vw, 60px) 0; border-top: 1px solid var(--dw-line); display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.strategy:last-child { border-bottom: 1px solid var(--dw-line); }
.strategy .s-index { font-family: var(--dw-mono); font-size: var(--dw-text-md); color: var(--dw-accent); letter-spacing: 0.06em; padding-top: 8px; }
.strategy h3 { font-family: var(--dw-serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 22ch; }
.strategy p { font-size: var(--dw-text-md); line-height: 1.7; color: var(--dw-text-secondary); margin: 0; max-width: 66ch; }
.strategy .arrow-link { margin-top: 20px; }

/* ---- spotlight cards (featured, 2-up) ---- */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); margin-top: clamp(28px, 4vw, 44px); }
.spot { display: flex; flex-direction: column; }
.spot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.spot .s-kind { font-family: var(--dw-sans); font-size: var(--dw-text-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dw-accent); margin: 18px 0 10px; }
.spot h3 { font-family: var(--dw-serif); font-weight: 500; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
.spot p { font-size: var(--dw-text-base); line-height: 1.6; color: var(--dw-text-secondary); margin: 0; }

/* ---- onward links block ---- */
.onward { display: grid; gap: 16px; justify-items: start; }
.onward .arrow-link { margin-top: 0; }

/* active nav item styling lives in the primary-nav block above */

/* ---- people grid: cards open a modal (Blackstone people pattern) ---- */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: clamp(28px, 4vw, 44px); }
.person-card {
  display: flex; flex-direction: column; align-items: stretch; width: 100%; text-align: left;
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit;
}
.person-card .portrait { transition: filter .2s; }
.person-card:hover .portrait { filter: brightness(1.04); }
.person-card:hover .pc-name { text-decoration: underline; text-underline-offset: 5px; }
.pc-name { font-family: var(--dw-serif); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin: 18px 0 4px; }
/* reserve two lines so 1- and 2-line titles keep every card's rhythm (and the About link) aligned */
.pc-role { font-size: var(--dw-text-sm); color: var(--dw-accent); font-weight: 600; margin: 0; line-height: 1.4; min-height: 2.8em; }
.pc-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: var(--dw-text-sm); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dw-text-secondary); }
.pc-more::after { content: '\2192'; font-family: var(--dw-mono); }

/* modal: native <dialog>, page blurs behind via ::backdrop (JS path).
   No-JS fallback: render each modal inline as a plain bio block. */
.person-modal { max-width: 640px; width: calc(100% - 40px); border: 1px solid var(--dw-line); background: var(--dw-bg); color: var(--dw-ink); padding: clamp(28px, 4vw, 48px); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.person-modal::backdrop { background: color-mix(in srgb, var(--dw-navy-deep) 55%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.js .person-modal:not([open]) { display: none; }
.pm-head { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
.pm-portrait { aspect-ratio: 4 / 5; width: 96px; background: var(--dw-surface-sunken); border: 1px solid var(--dw-line); overflow: hidden; }
.pm-portrait.is-placeholder { display: grid; place-items: center; color: var(--dw-faint); }
.pm-portrait.is-placeholder span { font-family: var(--dw-serif); font-size: 30px; }
.pm-name { font-family: var(--dw-serif); font-weight: 500; font-size: 26px; letter-spacing: -0.01em; margin: 0 0 4px; }
.pm-role { font-size: var(--dw-text-sm); color: var(--dw-accent); font-weight: 600; margin: 0; }
.pm-bio { font-size: var(--dw-text-base); line-height: 1.7; color: var(--dw-text-secondary); margin: clamp(20px, 3vw, 28px) 0 0; }
.pm-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; cursor: pointer; font-size: 26px; line-height: 1; color: var(--dw-muted); padding: 4px 8px; }
.pm-close:hover { color: var(--dw-ink); }
.person-modal { position: fixed; margin: auto; inset: 0; }
/* no-JS: show the bio inline under the grid instead of a hidden dialog */
html:not(.js) .person-modal { position: static; display: block; width: 100%; max-width: none; box-shadow: none; margin: 12px 0 0; }
html:not(.js) .pm-close { display: none; }
.team-note { margin-top: clamp(28px, 4vw, 44px); max-width: 60ch; }
.contact-lines a.inline-arrow { color: var(--dw-accent); text-decoration: underline; text-underline-offset: 4px; }

@media print { .person-modal { position: static; display: block; box-shadow: none; } .pm-close { display: none; } }

@media (max-width: 960px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .page-hero .ph-top { grid-template-columns: 1fr; gap: clamp(16px, 3vw, 24px); }
  .page-hero h1 { max-width: none; }
  .page-hero .ph-sub { max-width: 60ch; }
}
@media (max-width: 680px) {
  .stat-row, .stat-row.two { grid-template-columns: 1fr; }
  .strategy { grid-template-columns: 1fr; gap: 8px; }
  .strategy .s-index { padding-top: 0; }
  .people-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   Insights articles (nested under /insights/, root-absolute links): the
   subpage hero carries the title and standfirst; the body is one reading
   column at the house measure, with sourced figures and a sources list.
   ================================================================ */
.article-meta { font-family: var(--dw-mono); font-size: var(--dw-text-sm); color: var(--dw-muted); margin: clamp(18px, 3vw, 28px) 0 0; display: flex; flex-wrap: wrap; }
.article-meta span + span::before { content: '\00B7'; margin: 0 10px; }
.article { max-width: var(--dw-measure); }
.article p { font-size: var(--dw-text-md); line-height: 1.7; color: var(--dw-text-secondary); margin: 0 0 20px; }
.article .lede { font-size: clamp(var(--dw-text-md), 1.6vw, var(--dw-text-lg)); line-height: 1.6; color: var(--dw-ink); }
.article h2 { font-family: var(--dw-serif); font-weight: 500; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.015em; margin: clamp(36px, 5vw, 56px) 0 14px; max-width: none; }
.article blockquote { margin: 28px 0; padding-left: 20px; border-left: 2px solid var(--dw-accent); }
.article blockquote p { font-family: var(--dw-serif); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; color: var(--dw-ink); margin: 0 0 8px; }
.article blockquote cite { display: block; font-family: var(--dw-mono); font-size: var(--dw-text-sm); color: var(--dw-muted); font-style: normal; }
.article .figures { list-style: none; margin: 24px 0 28px; padding: 0; border-top: 1px solid var(--dw-line); }
.article .figures li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--dw-line); font-size: var(--dw-text-base); color: var(--dw-text-secondary); line-height: 1.55; }
.article .figures b { font-family: var(--dw-mono); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--dw-ink); }
.article .arrow-link { display: flex; width: fit-content; margin: 4px 0 12px; }
.article .arrow-link + .arrow-link { margin-top: 0; }
.sources { margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--dw-line); max-width: var(--dw-measure); }
.sources h2 { font-family: var(--dw-sans); font-size: var(--dw-text-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--dw-accent); margin: 0 0 12px; max-width: none; }
.sources ol { margin: 0; padding-left: 20px; font-size: var(--dw-text-sm); color: var(--dw-muted); line-height: 1.6; }
.sources li { margin: 0 0 6px; }
.card .arrow-link { margin-top: 12px; font-size: var(--dw-text-base); }
@media (max-width: 680px) { .article .figures li { grid-template-columns: 1fr; gap: 4px; } }

/* ═══ Distillation components (flow · count), added to give the site
   flowcharts and animated proof figures in the house idiom.
   All read the per-ground role tokens (--dw-accent/--dw-ink/--dw-line/…), so a
   single definition works on paper and on the steel bands. Serif titles, mono
   figures, near-square 3px corners — no new colour literals (P7). ═══ */

/* ---- flow: a stepped process (a closing, an approval path). Horizontal on wide
   screens, stacks vertically below 760px; connectors rotate with it. Numbered
   because a flow is a genuine sequence. Fades in with the shared .reveal idiom. */
.dw-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; }
.dw-flow__step { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.dw-flow__node {
  flex: 1; display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--dw-line); border-radius: var(--dw-radius); background: var(--dw-surface);
  transition: border-color .3s ease;
}
.dw-flow__node:hover { border-color: var(--dw-accent); }
.dw-flow__num {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--dw-line-strong); border-radius: var(--dw-radius);
  font-family: var(--dw-mono); font-variant-numeric: tabular-nums; font-size: var(--dw-text-base);
  color: var(--dw-accent);
}
.dw-flow__title { font-family: var(--dw-serif); font-weight: 500; font-size: var(--dw-text-lg); line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.dw-flow__desc { margin: 0; font-size: var(--dw-text-sm); color: var(--dw-muted); line-height: 1.5; }
.dw-flow__link { flex: 0 0 auto; display: grid; place-items: center; width: clamp(20px, 3.5vw, 44px); color: var(--dw-accent); }
.dw-flow__link svg { width: 100%; height: 20px; }
@media (max-width: 760px) {
  .dw-flow, .dw-flow__step { flex-direction: column; align-items: stretch; }
  .dw-flow__link { width: 100%; height: 34px; }
  .dw-flow__link svg { width: 34px; transform: rotate(90deg); }
}

/* ---- count-up figures reuse the existing .stat/.num type; the motion is opt-in
   per element via [data-dw-countup] in site.js and no-JS/reduced-motion safe. */
[data-dw-countup] { font-variant-numeric: tabular-nums; }
