/* ---------- Breakpoints ----------
 * Desktop (1481–2048px) is the base style, no media query. Smaller breakpoints cascade down: a tablet
 * rule also applies on mobile unless a mobile rule overrides it, a laptop rule applies on tablet and
 * mobile, and so on. Widescreen applies from 2049px up.
 *   Widescreen  @media (min-width: 2049px)
 *   Laptop      @media (max-width: 1480px)
 *   Tablet      @media (max-width: 1024px)   (tablet portrait)
 *   Mobile      @media (max-width: 767px)    (mobile portrait)
 * script.js uses the same values (BREAKPOINTS). Media queries are grouped at the end of this file,
 * largest to smallest, so the cascade works.
 */
:root {
  /* Colours */
  --charis-grey80: rgb(224 224 224 / 0.8);   /* Charis grey80: #E0E0E0 at 80% */
  --charis-white90: rgb(255 255 255 / 0.9);  /* Charis white90: #FFFFFF at 90% — all white text */
  --bg: #000100;
  --bg-photo-tint: 12 20 30;   /* background photo overlay colour (R G B): a deep slate blue */
  --bg-photo-dim-left: 0.5;    /* background photo: overlay strength on the left edge (0 = full photo, 1 = solid) */
  --bg-photo-dim-right: 0.6;   /* ...and on the right edge, behind the hero text */
  --bg-haze: 0.35;   /* strength of the soft copper / grey glow over the photo (0 = none, 1 = full) */
  --text: var(--charis-white90);
  --text-dim: var(--charis-white90);
  --accent: #79acaf;
  --accent-pop: #a6d8da;   /* the teal serif words in the big lines ("Value", "Clear"…): a brighter teal so they stand out on the photo */
  --headline-color: #fff;  /* hero tagline + section headlines */
  --overlay-scrim: 0.72;   /* page overlay: how dark the layer over the background is (0 = none, 1 = solid) */
  --overlay-time: 600ms;   /* page overlay: fade in / out */
  --overlay-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --overlay-width: 680px;  /* page overlay: text column: widescreen 760, desktop 680, laptop 560, tablet + mobile full width */
  --overlay-container: 1000px;   /* page overlay: width of the centred content box: widescreen 1100, desktop 1000, laptop 800, tablet + mobile the full screen (minus the side margins) */
  --fs-overlay-head: 38px;   /* page overlay headline: widescreen 42, desktop 38, laptop 32, tablet 28, mobile 26 */
  --fs-about-head: 50px;    /* About headline only, larger: widescreen 56, desktop 50, laptop 48, tablet + mobile same as the other headlines */
  --fs-overlay-text: 16px;   /* page overlay paragraphs: widescreen 17, desktop 16, laptop 15, tablet 14.5, mobile 14 */
  --fs-goal-step: 26px;    /* About: "The goal is simple" steps: widescreen 30, desktop 26, laptop 24, tablet 22, mobile 20 */
  --goal-gap: 64px;
  --look-pad: 16px;        /* Process "What we look for": space above and below each line: laptop 14, tablet 13, mobile 12 */
  --fs-step-title: 24px;   /* Title medium: widescreen 26, desktop 24, laptop 22, tablet 20, mobile 19 */
  --fs-title-small: 15px;  /* Title small (Real Estate: For operators, Unlock…), in caps: widescreen 16, desktop 15, laptop 14, tablet 13, mobile 12 */
  --step-pad: 28px;
  --pillars-top: 56px;     /* Private Equity: space above the pillars: mobile 40 */        /* Process: space above and below each step: laptop 24, tablet + mobile 20 */        /* About: space above "The goal is simple": mobile 48 */   /* page overlay paragraphs: widescreen 17, desktop 16, laptop + tablet + mobile 15 */
  --overlay-x: clamp(24px, 7vw, 120px);   /* page overlay: column's distance from the left edge */
  --overlay-top: calc(var(--corner-top) + 100px);   /* page overlay: space above the page name */
  --fs-overlay-label: 12px;   /* page overlay caps (page name, Close, "The goal is simple", 01/): widescreen 13, desktop 12, laptop 11.5, tablet 11, mobile 10.5 */
  --intro-step: 80vh;   /* homepage: scroll length of the first step (tagline -> description); matches introStep in script.js */
  --logo-letters: #fff;
  --logo-arrow: #79acaf;
  --link-color: var(--charis-white90);   /* menu items: labels, numbers and arrows (hero + header) */
  --accent-soft: color-mix(in srgb, var(--accent) 60%, transparent);
  --chev-color: #e6f0f0;
  --chev-hi: #fffdf0;
  --chev-glow: #ffffff;
  /* Background lines ("Glacier"): one gradient along each line, from its head (cool white) through the brand teal to a slate tail */
  --line-grad-1: #f4f8f8;
  --line-grad-2: #79acaf;
  --line-grad-3: #4a6870;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font);
  --fs-base: 16px;      /* body text everywhere */
  --ls-body: 0.02em;     /* body text letter spacing everywhere */
  --lh: 1.55;
  --fs-link: 14px;
  --fw-link: 400;
  --ls-link: 0.03em;
  --fs-num: 15px;
  --fs-nav: 15px;
  --fs-h2: 17px;               /* homepage section titles (teal) */
  --fw-h2: 400;
  --ls-h2: var(--ls-body);
  --fs-tagline: var(--fs-copy);   /* "We Don’t Wait…": same size as the paragraph below at every breakpoint */
  --fw-tagline: 600;
  --ls-tagline: 0.01em;
  --lh-tagline: 23px;
  --tagline-color: var(--accent);
  --fw-copy: 400;
  --ls-copy: var(--ls-body);
  --ls-nav: var(--ls-link);
  --lh-h2: 1.55;
  --h2-color: var(--accent);   /* section titles, e.g. "Real Estate" (teal) */
  --fs-section: var(--fs-base);
  --fs-panel-sub: 22px;   /* section subheading, e.g. "We Know What Happens…" */
  --lh-panel-sub: 1.35;
  --panel-sub-color: var(--charis-white90);
  --fw-panel-sub: 400;
  --fw-section: 400;
  --ls-section: var(--ls-body);
  --lh-section: var(--lh);
  --section-color: var(--text-dim);
  --eyebrow-color: var(--num-tone);
  --fs-scroll: 12px;    /* "SCROLL" hint and the "PORTFOLIO" label (the arrow scales with it): widescreen 13, desktop 12, laptop 11, tablet 10, mobile 9 */
  --fw-scroll: 500;
  --ls-scroll: 0.2em;
  --portfolio-label-gap: 18px;   /* "PORTFOLIO" label -> the logos: widescreen 20, desktop 18, laptop 16, tablet 14, mobile 14 */
  --scroll-cue-gap: 72px;   /* space between the tagline and the "SCROLL" hint: widescreen 80, desktop 72, laptop 60, tablet 48, mobile 40 */
  --fs-footer: 12px;
  --footer-color: var(--text);
  --fs-copy: 15px;   /* hero paragraph: widescreen 16, desktop 15, laptop 14, tablet + mobile 13 */
  --lh-copy: 1.6;
  --copy-color: var(--charis-white90);
  --scroll-color: rgb(255 255 255 / 0.7);   /* "SCROLL" label + arrow */
  --tagline-gap: 4px;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --fs-hero-tag: 46px;   /* hero tagline + description: widescreen 56, desktop 46, laptop 38, tablet 36, mobile 28 */
  --hero-tag-gap: 24px;
  --fs-hero-copy: 16px;  /* hero paragraph: widescreen 17, desktop 16, laptop 15, tablet 14, mobile 12.5 */
  --hero-copy-color: rgb(255 255 255 / 0.86);
  --overlay-head-color: rgb(255 255 255 / 0.88);   /* inner pages: titles, softer than pure white */
  --overlay-copy-color: rgb(255 255 255 / 0.68);   /* inner pages: body copy, softer than the titles */
  --hero-copy-w: none;   /* "We invest across…" width (its lines break after "private" and "underwriting" in the HTML): laptop and up as wide as the lines need, tablet 320px, mobile 290px */
  --links-col-w: 215px;
  --fs-eyebrow: 40px;

  /* Numbers (01/ 02/ …) in header links, hero links and section labels */
  --font-num: var(--font);
  --num-color: var(--accent);
  --num-opacity: 1;
  --num-tone: color-mix(in srgb, var(--num-color) calc(var(--num-opacity) * 100%), transparent);
  --fw-num: 300;
  --ls-num: 0.03em;
  --fs-nav-num: 14px;
  --fw-nav-num: 500;
  --nav-num-gap: 3px;   /* space between "01/" and the label */
  --nav-num-color: rgb(255 255 255 / 0.6);   /* header nav numbers: white at 60% */
  --num-gap: 8px;

  /* Layout & spacing */
  --header-h: 56px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-gap: 34px;
  --header-logo-w: 240px;   /* logo width once it moves into the header */
  --hero-logo-w: 290px;   /* hero logo: widescreen 320, desktop 290, laptop 260, tablet 240, mobile 220 */
  --hero-top: 21.6vh;
  --hero-space-top: 26vh;      /* homepage hero: space above the logo: widescreen 28vh, desktop 26vh, laptop 22vh, tablet 22vh, mobile 21vh */
  --hero-space-bottom: 120px;  /* homepage hero: space below the portfolio logos (room for Contact): widescreen 140, desktop 120, laptop 100, tablet 84, mobile 82 */
  --hero-width: 500px;   /* hero box, centred in the right half of the screen (.hero-half); widescreen: 600px */
  --logo-gap: 28px;   /* hero: logo -> tagline: widescreen 32, desktop 28, laptop 22, tablet 20, mobile 24 */
  --copy-gap: 46px;
  --links-col-gap: 0px;
  --links-row-gap: 12px;
  --links-gap: 110px;   /* hero: space between paragraph and logos: widescreen 120, desktop 110, laptop 80, tablet + mobile 60 */
  --icon-gap-x: 0px;    /* partner logos: min space between columns (one row spreads with space-between); tablet + mobile 32 */
  --icon-opacity: 0.6;   /* partner logos (full on hover) */
  --icon-gap-y: 18px;
  --panel-slot: 70vh;
  --progress-h: 2px;   /* bottom progress hairline */
  --progress-track: rgb(255 255 255 / 0.1);   /* bottom progress bar: background */
  --progress-fill: linear-gradient(90deg, var(--line-grad-3), var(--line-grad-2) 60%, var(--line-grad-1));   /* progress: slate tail -> cool white head, like the chevron lines */
  --icon-scale: 0.7;    /* partner logo size, x 40px: widescreen 32px, desktop 28, laptop 24, tablet + mobile 28 */
  --icon-size: calc(40px * var(--icon-scale));
  --icon-cols: 10;   /* one row of all ten logos at every size */
  --panel-width: 480px;   /* homepage sections: widescreen 580, desktop 480, laptop 420, tablet + mobile 420 (capped to the screen) */
  --fs-panel-head: 42px;  /* section headline: widescreen 52, desktop 42, laptop 36, tablet 34, mobile 28 */
  --fs-panel-ghost: 380px; /* ghost numeral behind each section: widescreen 470, desktop 380, laptop 320, tablet 280, mobile 220 */
  --panel-kicker-gap: 22px;
  --fs-corner-nav: 15px;   /* top links and Contact: widescreen 16, desktop 15, laptop 14, tablet 12, mobile 12 */
  --corner-nav-gap: 28px;   /* space between those links: widescreen 32, desktop 28, laptop 24, tablet 22, mobile 10 */
  --corner-nav-color: rgb(255 255 255 / 0.8);
  --ls-corner-nav: 0.01em;   /* top links letter spacing: tablet + mobile 0.02em */
  --contact-stack: 24px;   /* homepage: how far the "01 / 04" counter sits above the Contact link, bottom-left */
  --fs-contact: 12px;   /* corner labels (counter, copyright, Previous / Next): widescreen 13, desktop 12, laptop 11, tablet 10.5, mobile 10 */
  --corner-top: 28px;   /* top-left ">" mark and Contact link, px from the top: widescreen 32, desktop 28, laptop 24, tablet 22, mobile 20 */
  --edge: 28px;         /* homepage edge + corner items (logo, ">" mark, Contact, Previous / Next, counter), px from the sides: widescreen 32, desktop 28, laptop 24, tablet 22, mobile 16 */
  --panel-top: 38vh;   /* homepage sections, tablet + mobile: top of the text block, shared (so the logo above it never moves) */
  --panel-cta-gap: 36px;
  --eyebrow-gap: 11px;        /* homepage sections: "01/" -> title: widescreen 12, desktop 11, laptop 10, tablet + mobile 9 */
  --panel-stack-gap: 18px;   /* homepage sections: title -> lead line: widescreen 20, desktop 18, laptop 16, tablet + mobile 14 */
  --page-width: 480px;   /* content column on the inner pages */
  --chev-size: 89vh;   /* tablet + mobile chevron height (laptop and up size it to the hero in script.js); tablet 30vh, mobile 26vh */
  --chev-fade: 1;      /* chevron opacity multiplier: tablet 0.6, mobile 0.85 */
  --chev-base: 0;   /* opacity of the unlit outline */

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #000;
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- Background chevron ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 1600px;
  /* Utah valley photo ("Golden Light"), darkened so the text and lines stay readable (heavier on the right, behind the hero text).
     The source photo is only 1536px wide, so every screen loads the 1536px file except tablet + mobile
     on normal screens (1200px). A larger original would sharpen it on big screens. */
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgb(var(--bg-photo-tint) / var(--bg-photo-dim-left)), rgb(var(--bg-photo-tint) / var(--bg-photo-dim-right))),
    url("assets/bg/utah-valley-1536.jpg?v=1");
  background-image:
    linear-gradient(90deg, rgb(var(--bg-photo-tint) / var(--bg-photo-dim-left)), rgb(var(--bg-photo-tint) / var(--bg-photo-dim-right))),
    image-set(
      url("assets/bg/utah-valley-1536.webp?v=1") type("image/webp") 1x, url("assets/bg/utah-valley-1536.jpg?v=1") type("image/jpeg") 1x,
      url("assets/bg/utah-valley-1536.webp?v=1") type("image/webp") 2x, url("assets/bg/utah-valley-1536.jpg?v=1") type("image/jpeg") 2x);
  background-size: cover;
  background-position: center 72%;   /* keeps the mountain range in view when the top and bottom are cropped */
  background-repeat: no-repeat;
}
/* Dark cloud haze behind the lines: still, near-black blooms tinted with the line colours */
.bg::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(42% 34% at 72% 72%, rgb(230 120 60 / 0.34), transparent 70%),
    radial-gradient(34% 28% at 22% 28%, rgb(224 130 80 / 0.24), transparent 70%),
    radial-gradient(40% 34% at 78% 22%, rgb(150 150 152 / 0.2), transparent 70%),
    radial-gradient(40% 34% at 26% 78%, rgb(140 140 142 / 0.18), transparent 70%),
    radial-gradient(30% 26% at 50% 50%, rgb(170 168 165 / 0.1), transparent 70%),
    radial-gradient(60% 50% at 50% 50%, rgb(42 42 44 / 0.75), transparent 80%);
  filter: blur(50px);
  opacity: var(--bg-haze);
}
/* Chevron layer (separate from the haze) */
.bg-lines { position: absolute; inset: 0; perspective: 1600px; }
.bg svg {
  position: absolute;
  top: 0;
  left: 0;
  height: var(--chev-size);
  transform-origin: 50% 50%;
  width: auto;
  overflow: visible;
  transform-style: preserve-3d;
  /* no will-change: the browser re-renders the vector at its real size instead of scaling a cached bitmap */
}

/* Contact link: bottom-left corner of the homepage, left end of the inner pages' footer; same small text as the
   top-right links, underlined */
.contact-corner {
  font-size: var(--fs-corner-nav);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--corner-nav-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgb(255 255 255 / 0.35);
  transition: color 300ms ease, text-decoration-color 300ms ease;
}
.contact-corner:hover, .contact-corner:focus-visible { color: #fff; text-decoration-color: #fff; }
body:not(.is-page) .contact-corner {
  position: fixed;
  left: var(--edge);
  bottom: calc(var(--corner-top) + 8px);   /* level with the copyright in the bottom-right corner */
  z-index: 40;
}
.is-page .site-footer { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.is-page .site-footer p { margin: 0; }

/* Homepage links, top-right corner: small plain text in a row, soft grey, white on hover */
.corner-nav {
  position: fixed;
  top: var(--corner-top);   /* level with the ">" mark in the top-left corner (script.js markTop uses the same values) */
  right: var(--edge);
  z-index: 40;
}
.corner-nav ul { display: flex; gap: var(--corner-nav-gap); }
.corner-nav a {
  display: block;
  font-size: var(--fs-corner-nav);
  font-weight: 400;
  letter-spacing: var(--ls-corner-nav);
  line-height: 1;
  color: var(--corner-nav-color);
  transition: color 300ms ease;
}
.corner-nav a:hover, .corner-nav a:focus-visible { color: #fff; }

/* Section counter (homepage), bottom-left corner: "01 / 04", mirroring Contact top-right. Shown on the sections,
   laptop and up (tablet + mobile have Previous in that corner); the number crossfades as you move. */
.section-count {
  position: fixed;
  left: var(--edge);
  bottom: calc(var(--corner-top) + 8px + var(--contact-stack));   /* sits just above the Contact link in the corner */
  z-index: 40;
  margin: 0;
  font-size: var(--fs-contact);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--charis-white90);
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}
.section-count.is-visible { opacity: 1; }
.section-count-now { display: inline-block; transition: opacity 250ms ease, transform 250ms ease; }
.section-count-now.is-swapping { opacity: 0; transform: translateY(4px); }
.section-count-of { color: rgb(255 255 255 / 0.4); }
/* Homepage copyright: pinned bottom-right on the sections, mirroring the counter bottom-left (laptop and up; on the
   hero that corner belongs to "Next"). Tablet + mobile: back in the page flow at the end (see the tablet block). */
.site-footer.site-footer--pinned {
  position: fixed;
  right: var(--edge);
  bottom: calc(var(--corner-top) + 8px);
  z-index: 40;
  padding: 0;
  font-size: var(--fs-contact);
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgb(255 255 255 / 0.5);
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}
.site-footer.site-footer--pinned p { margin: 0; }
.site-footer.site-footer--pinned.is-visible { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: var(--header-h);
  padding: 0 var(--gutter);
}
.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-slot {
  display: block;
  width: var(--header-logo-w);
  aspect-ratio: 520 / 43;
  flex: none;
}

.header-nav { opacity: var(--nav-in, 0); transform: translateY(calc((1 - var(--nav-in, 0)) * -10px)); }
.header-nav[inert] { visibility: hidden; }
/* Inner pages: same links and look as the homepage's top-right links (.corner-nav) */
.header-nav ul { display: flex; gap: var(--corner-nav-gap); }
.header-nav a {
  display: block;
  padding: 8px 0;
  font-size: var(--fs-corner-nav);
  font-weight: 400;
  letter-spacing: var(--ls-corner-nav);
  line-height: 1;
  color: var(--corner-nav-color);
  transition: color 300ms ease;
}
.header-nav a:hover, .header-nav a:focus-visible, .header-nav a[aria-current="page"] { color: #fff; }

/* ---------- Logo (positioned by JS) ---------- */
.logo {
  position: fixed;
  top: 0; left: 0;
  z-index: 30;
  display: block;
  transform-origin: 0 0;
}
/* One inline SVG (from the Figma wordmark), so it stays crisp at every size */
.logo-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.logo-letter { fill: var(--logo-letters); }
.logo-arrow { fill: var(--logo-arrow); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  height: calc(100vh + var(--intro-step));   /* the homepage is just the hero: one scroll step swaps the tagline for the description, and the page ends there */
  height: calc(100svh + var(--intro-step));
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;   /* phones: the visible screen with the browser bars showing, so the portfolio isn't tucked behind them (100vh is the fallback) */
  height: 100dvh;   /* …and it follows the screen as the browser bars hide on scroll, so the portfolio stays with Contact in the corner */
  min-height: 560px;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: max(var(--hero-space-top), var(--header-h) + 16px) 0 var(--hero-space-bottom);   /* top: above the logo; bottom: below the portfolio logos (both shrink with the screen) */
}
/* Right half of the screen (50vw); the hero box sits centred inside it */
.hero-half { width: 50%; display: flex; justify-content: center; }
/* Column: logo, tagline and paragraph sit centred in the space above; the portfolio strip pins to the bottom */
.hero-content {
  display: flex;
  flex-direction: column;
  width: min(var(--hero-width), 100%);
  opacity: var(--content-out, 1);
  transform: translateY(calc((1 - var(--content-out, 1)) * -24px));
}
.logo-slot--hero { height: auto; width: min(var(--hero-logo-w), 100%); margin-top: 0; margin-bottom: var(--logo-gap); }   /* sits --hero-space-top from the top; the free space goes above the portfolio strip */

/* Hero tagline: large light sans mixed with an italic serif on the key words */
.hero-tagline { margin: 0 0 var(--hero-tag-gap); font-size: var(--fs-hero-tag); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; color: var(--headline-color); }
.hero-tagline em { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.04em; line-height: 0; margin-left: -0.08em; letter-spacing: -0.01em; color: var(--accent-pop); }
/* Small description under the tagline */
.hero-copy { max-width: var(--hero-copy-w); margin: 0; font-size: var(--fs-hero-copy); font-weight: var(--fw-copy); letter-spacing: var(--ls-copy); line-height: var(--lh-copy); color: var(--hero-copy-color); }

/* Tagline and description sharing one spot, both at the tagline's size, stacked in one grid cell (so the box
   is always tall enough for the longer one and nothing below jumps). The first scroll step crossfades from
   the tagline to the description (--hero-swap, 0 -> 1, set in script.js). */
.hero-rotator { display: grid; margin: 0 0 var(--hero-tag-gap); }
.hero-rotator > * { grid-area: 1 / 1; align-self: start; margin: 0; }   /* own height, so script.js still lines the ">" point up with the tagline itself */
.hero-rotator .hero-intro { opacity: calc(1 - var(--hero-swap, 0)); }   /* tagline + scroll hint */
/* "Scroll" hint under the tagline: tiny caps label and a thin arrow that bounces down and back */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--scroll-cue-gap);
  font-size: var(--fs-scroll);
  font-weight: var(--fw-scroll);
  letter-spacing: var(--ls-scroll);
  line-height: 1;
  text-transform: uppercase;
  color: var(--scroll-color);
  /* a button: no default chrome */
  padding: 6px 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 300ms ease;
}
.scroll-cue:hover, .scroll-cue:focus-visible { color: #fff; }
.scroll-cue-arrow { display: block; width: 0.75em; height: 1.65em; animation: scroll-cue-bounce 1.8s ease-in-out infinite; }
@keyframes scroll-cue-bounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue-arrow { animation: none; } }
.hero-rotator .hero-copy {
  font-size: var(--fs-hero-tag); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; color: var(--headline-color);
  max-width: none;   /* full tagline width here, not the small paragraph's */
  opacity: var(--hero-swap, 0);
  pointer-events: none;   /* it sits on top of the tagline in the same spot; let clicks reach the Scroll hint */
}
/* With script.js running, the words themselves fade and rise (kinetic text); the lines stay fully opaque */
.kinetic-ready .hero-rotator .hero-intro, .kinetic-ready .hero-rotator .hero-copy { opacity: 1; }
.kinetic-ready .scroll-cue { opacity: calc(1 - var(--hero-swap, 0) * 2); }
.kw { display: inline-block; will-change: transform, opacity; }

.hero-links {
  display: grid;
  grid-template-columns: repeat(2, var(--links-col-w));
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  column-gap: var(--links-col-gap);
  row-gap: var(--links-row-gap);
  margin-bottom: var(--links-gap);
}
.hero-links li { display: flex; }
.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--num-gap);
  line-height: normal;
  font-size: var(--fs-link);
  font-weight: var(--fw-link);
  letter-spacing: var(--ls-link);
  color: var(--link-color);
}
.hero-links .num { font-family: var(--font-num); font-weight: var(--fw-num); font-size: var(--fs-num); letter-spacing: var(--ls-num); color: var(--link-color); }
.num-group { display: inline-flex; align-items: center; gap: 4px; transition: transform 400ms ease; }
.arrow { display: block; filter: brightness(0) invert(1) opacity(0.9); transition: filter 400ms ease; } /* Charis white90, matching the labels */
/* Hover: label, number and arrow turn teal (the arrow file itself is teal, so just drop the white tint) */
.hero-links a, .hero-links .num { transition: color 400ms ease; }
.hero-links a:hover, .hero-links a:focus-visible,
.hero-links a:hover .num, .hero-links a:focus-visible .num { color: var(--accent); }
.hero-links a:hover .arrow, .hero-links a:focus-visible .arrow { filter: none; }
/* Hover: number + arrow slide right */
.hero-links a:hover .num-group,
.hero-links a:focus-visible .num-group { transform: translateX(8px); }

/* Portfolio strip: pinned to the bottom of the hero, "PORTFOLIO" label + hairline, logos in one row */
.portfolio-strip { margin-top: auto; padding-top: 56px; }   /* padding: minimum space above the strip on short screens */
.portfolio-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 var(--portfolio-label-gap);
  font-size: var(--fs-scroll);   /* same size as the "SCROLL" hint */
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.5);
}
.portfolio-label::after { content: ""; flex: 1; height: 1px; background: rgb(255 255 255 / 0.15); }
.portfolio {
  display: grid;
  grid-template-columns: repeat(var(--icon-cols), var(--icon-size));
  justify-content: space-between;
  gap: var(--icon-gap-y) var(--icon-gap-x);
}
.portfolio li { width: var(--icon-size); height: var(--icon-size); display: grid; place-items: center; }
.portfolio img { display: block; zoom: var(--icon-scale); filter: brightness(0) invert(1); opacity: var(--icon-opacity); transition: opacity 300ms ease; }
.portfolio li:hover img { opacity: 1; } /* supplied logos are grey; show them white */

/* "Next" control (homepage), at the right edge: "NEXT" / "02/ PRIVATE EQUITY" over a hairline arrow. On the sections (laptop and up) it sits at the middle of the right edge, where the
   ">" points; on the hero, tablet and mobile it sits bottom-right, above the progress bar. Shown only while the
   page rests on the hero or a section; click glides to the next one. */
.next-cue {
  position: fixed;
  right: var(--edge);
  bottom: 44px;   /* clears the progress bar's tick labels */
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  margin: 0;
  padding: 8px 0 8px 16px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  color: var(--charis-white90);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  translate: 8px 0;
  transition: opacity 500ms ease, translate 500ms ease;
}
.next-cue.is-side { top: 50%; bottom: auto; transform: translateY(-50%); }
.next-cue.is-visible { opacity: 1; pointer-events: auto; translate: 0 0; }
.next-cue-kicker { font-size: 10px; letter-spacing: 0.2em; color: rgb(255 255 255 / 0.45); }
.next-cue-label { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.next-cue-num:empty, .next-cue-title:empty { display: none; }
.next-cue-num { color: var(--accent); letter-spacing: 0.06em; }
.next-cue-title { transition: color 400ms ease; }
.next-cue:hover .next-cue-title, .next-cue:focus-visible .next-cue-title { color: var(--accent); }
/* Hairline arrow: it stretches and turns teal on hover */
.next-cue-line {
  position: relative;
  width: 56px;
  height: 1px;
  margin-top: 4px;
  background: rgb(255 255 255 / 0.3);
  transition: width 400ms ease, background 400ms ease;
}
.next-cue-line::before {   /* arrow head, as on the "Explore" links */
  content: "";
  position: absolute;
  right: -0.5px;
  top: 50%;
  width: 8px;
  height: 9px;
  margin-top: -4.5px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 9'%3E%3Cpath d='M1 .5 7.5 4.5 1 8.5' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 9'%3E%3Cpath d='M1 .5 7.5 4.5 1 8.5' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.next-cue:hover .next-cue-line, .next-cue:focus-visible .next-cue-line { width: 80px; background: var(--accent); }
/* "Previous": the mirror image at the left edge (middle of it on the sections, laptop and up; bottom-left otherwise) */
.prev-cue { right: auto; left: var(--edge); align-items: flex-start; text-align: left; padding: 8px 16px 8px 0; translate: -8px 0; }
.prev-cue .next-cue-line { transform: scaleX(-1); }   /* the arrow points back, left */
.next-cue.is-top .next-cue-line { transform: scaleX(-1); }   /* "Back to / Beginning": the arrow points back */


/* ---------- Content panels ----------
 * Each section is an empty 100vh scroll slot (so nav anchors still work);
 * its copy is centred on screen and faded by script.js. */
.panel {
  position: relative;
  z-index: 1;
  /* Scroll distance per section. Keep sectionHold + sectionFade (script.js) at half of this so there's no gap */
  height: var(--panel-slot);
  /* Nav links land with the section centred, i.e. fully visible */
  scroll-margin-top: calc((100vh - var(--panel-slot)) / 2);
}
/* Room after the last section so it can scroll all the way to the centre (and settle, so its numeral fades in) */
.panel:last-of-type { margin-bottom: calc((100vh - var(--panel-slot)) / 2); }
.panel-inner {
  /* A --panel-width box centred on the screen (vertically too, however many lines its headline runs to); text
     left-aligned. Tablet + mobile: its top is fixed at --panel-top instead, with the logo just above it.
     script.js animates transform. */
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  width: min(var(--panel-width), calc(100vw - 2 * var(--gutter)));
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.eyebrow { margin: 0 0 8px; font-family: var(--font-num); font-weight: var(--fw-num); font-size: var(--fs-eyebrow); letter-spacing: var(--ls-num); color: var(--eyebrow-color); }
.panel h2, .page-content h1 { margin: 0 0 16px; font-family: var(--font-heading); font-size: var(--fs-h2); font-weight: var(--fw-h2); letter-spacing: var(--ls-h2); line-height: var(--lh-h2); color: var(--h2-color); }
.panel p:not(.eyebrow), .page-content p:not(.eyebrow) { margin: 0; font-size: var(--fs-section); font-weight: var(--fw-section); letter-spacing: var(--ls-section); line-height: var(--lh-section); color: var(--section-color); }
.panel p:not(.eyebrow) + p:not(.eyebrow), .page-content p:not(.eyebrow) + p:not(.eyebrow) { margin-top: 1em; }
/* Section subheading (e.g. "We Know What Happens After the Deal Closes"), styled like the hero tagline */
.panel p.panel-sub, .page-content p.panel-sub { margin-bottom: 0.8em; font-size: var(--fs-panel-sub); font-weight: var(--fw-panel-sub); letter-spacing: var(--ls-tagline); line-height: var(--lh-panel-sub); color: var(--panel-sub-color); }
/* Homepage sections, in the hero's language:
   ghost numeral behind · "01/ — REAL ESTATE" kicker with a hairline · big light headline with one teal serif word · hairline CTA */
.panel-ghost {
  position: absolute;
  z-index: -1;
  right: -0.42em;   /* oversized and pushed past the block's right edge, so it doesn't line up with the text box */
  top: 50%;
  transform: translateY(-50%);   /* the digits' own middle sits on the text block's middle (with line-height 1, Inter's digits centre in the box) */
  font-size: var(--fs-panel-ghost);
  font-weight: 100;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgb(255 255 255 / 0.05);
  pointer-events: none;
  user-select: none;
  opacity: 0;   /* fades in once its section has slid into place (script.js adds .is-settled), and out fast as it leaves */
  transition: opacity 250ms ease;
}
.panel-inner.is-settled .panel-ghost { opacity: 1; transition: opacity 900ms ease 120ms; }
.panel-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--panel-kicker-gap);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}
.panel-kicker::after { content: ""; flex: 1; height: 1px; background: rgb(255 255 255 / 0.15); }
.panel-kicker .eyebrow { margin: 0; font: inherit; letter-spacing: 0.06em; color: var(--accent); }
.panel-kicker .eyebrow::after { content: "—"; margin-left: 10px; color: rgb(255 255 255 / 0.35); }
.panel .panel-kicker h2 { margin: 0; font: inherit; letter-spacing: inherit; color: rgb(255 255 255 / 0.7); }
.panel p.panel-headline { margin: 0; font-size: var(--fs-panel-head); font-weight: 300; letter-spacing: -0.02em; line-height: 1.12; color: var(--headline-color); }
.panel-headline em { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.1em; line-height: 0; letter-spacing: -0.01em; color: var(--accent-pop); }
.panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--panel-cta-gap);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--charis-white90);
  transition: color 400ms ease;
}
.panel-cta-line { position: relative; width: 40px; height: 1px; background: currentColor; transition: width 400ms ease; }
.panel-cta-line::after {   /* arrow head: a drawn ">" whose point sits exactly on the end of the line */
  content: "";
  position: absolute;
  right: -0.5px;
  top: 50%;
  width: 8px;
  height: 9px;
  margin-top: -4.5px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 9'%3E%3Cpath d='M1 .5 7.5 4.5 1 8.5' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 9'%3E%3Cpath d='M1 .5 7.5 4.5 1 8.5' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.panel-cta:hover, .panel-cta:focus-visible { color: var(--accent); }
.panel-cta:hover .panel-cta-line, .panel-cta:focus-visible .panel-cta-line { width: 72px; }
/* Docked neighbours (left / right edges, laptop and up) show only their kicker */
.panel-inner.is-docked .panel-ghost, .panel-inner.is-docked .panel-headline, .panel-inner.is-docked .panel-cta { visibility: hidden; }
/* ---------- Inner pages (real-estate.html etc.) ----------
 * Quiet reading layout (after tq.vc): plain black, the homepage header, one narrow text column
 * with left-aligned grey body text and a soft divider. */
.is-page {
  /* Header matches the homepage once scrolled: nav visible, logo in the corner */
  --nav-in: 1;
  --page-width: 600px;      /* text column (title + body) */
  --page-text: var(--charis-grey80);
  --page-lh: 1.75;
  --fs-page-title: 90px;    /* inner page title, e.g. "Real Estate" */
  --page-title-color: var(--charis-white90);
  --ls-page-title: -0.02em;
  --fw-page-title: 300;
}
.page-logo { display: block; color: inherit; }
/* Page + footer fill exactly one screen when the text is short, so there's nothing to scroll;
 * longer pages grow and scroll as normal */
body.is-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.page {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  padding: 140px var(--gutter) 64px;
}
.page-content { width: min(var(--page-width), 100%); margin: 0 auto; }
.is-page .page-content h1.page-title {
  margin: 0 0 40px;
  font-size: var(--fs-page-title);
  font-weight: var(--fw-page-title);
  letter-spacing: var(--ls-page-title);
  line-height: 1.1;
  color: var(--page-title-color);
}
.is-page .page-content p:not(.eyebrow) {
  margin: 0;
  font-size: var(--fs-section);
  font-weight: 400;
  letter-spacing: var(--ls-section);
  line-height: var(--page-lh);
  color: var(--page-text);
  text-align: left;
}
.is-page .page-content p:not(.eyebrow) + p:not(.eyebrow) { margin-top: 1.4em; }
.is-page .page-content p.page-lead { font-weight: 500; color: #fff; }
.page-rule {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: color-mix(in srgb, var(--text) 35%, transparent);
  box-shadow: 0 0 6px color-mix(in srgb, var(--text) 25%, transparent);
}
.is-page .partner-list { margin: 0; line-height: var(--page-lh); color: var(--page-text); }
/* Current page in the header nav */

/* Partner names: one inline list separated by middle dots, in the section text style */
.partner-list { margin: 1em 0 0; font-size: var(--fs-section); font-weight: var(--fw-section); letter-spacing: var(--ls-section); line-height: var(--lh-section); color: var(--section-color); }
.partner-list li { display: inline; white-space: nowrap; } /* keep each name on one line */
.partner-list li:not(:last-child)::after { content: " · "; white-space: pre; color: var(--accent); }

/* ---------- Scroll progress bar ---------- */
.progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: var(--progress-h);
  pointer-events: none;
  background: var(--progress-track);
}
/* scaleX squeezes the gradient with the fill, so the head is always the cool white end */
.progress-bar {
  height: 100%;
  background: var(--progress-fill);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}
/* Glowing spark at the leading edge, like the light streaks on the chevron */
.progress-head {
  position: absolute;
  left: calc(var(--scroll-progress, 0) * 100%);
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px var(--line-grad-1), 0 0 18px 6px color-mix(in srgb, var(--line-grad-2) 55%, transparent);
  opacity: clamp(0, calc(var(--scroll-progress, 0) * 40), 1);   /* hidden at the very top */
}
.progress-head::before {   /* short bright trail behind the spark */
  content: "";
  position: absolute;
  right: 3px;
  top: 2px;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line-grad-1));
  filter: blur(1px);
}
/* Section ticks: short marks (no labels) at the start and at each section; they light up once the head passes */
.progress-ticks { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.progress-ticks li {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  color: rgb(255 255 255 / 0.35);
  transition: color 400ms ease;
}
.progress-ticks li::after { content: ""; width: 1px; height: 7px; background: rgb(255 255 255 / 0.3); transition: background 400ms ease, box-shadow 400ms ease; }
.progress-ticks li { pointer-events: auto; cursor: pointer; padding: 10px 8px 0; }   /* click a tick to glide to that section (padding = a bigger hit area) */
.progress-ticks li:hover { color: var(--line-grad-1); }
.progress-ticks li.is-passed { color: var(--accent); }
/* The next section's tick breathes, showing where a scroll will take you */
.progress-ticks li.is-next { animation: tick-pulse 2s ease-in-out infinite; }
.progress-ticks li.is-next::after { background: var(--line-grad-1); animation: tick-glow 2s ease-in-out infinite; }
@keyframes tick-pulse { 0%, 100% { color: rgb(255 255 255 / 0.35); } 50% { color: var(--line-grad-1); } }
@keyframes tick-glow { 0%, 100% { box-shadow: 0 0 0 transparent; opacity: 0.5; } 50% { box-shadow: 0 0 8px var(--line-grad-2); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .progress-ticks li.is-next, .progress-ticks li.is-next::after { animation: none; color: var(--line-grad-1); } }
.progress-ticks li.is-passed::after { background: var(--line-grad-1); box-shadow: 0 0 6px var(--line-grad-2); }
.progress-ticks li.is-end { transform: translateX(-100%); align-items: flex-end; padding-right: 0; }   /* last tick at the right edge: keep the label on screen */
.progress-ticks li.is-start { left: 0; transform: none; align-items: flex-start; padding-left: 0; font-size: 13px; }   /* "Intro" at the left edge */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 24px var(--gutter);
  text-align: right;
  font-size: var(--fs-footer);
  color: var(--footer-color);
}

/* ---------- Page overlay (About, Real Estate, Private Equity, Partners) ----------
   Each of those is a real page that looks like a layer over the homepage: the background stays, a dark
   scrim fades over it and the page's panel rises in. From the homepage, script.js fetches the page's
   [data-overlay-panel] into #pageOverlay and changes the address bar (no reload); opened directly, the page
   shows the same thing on its own copy of the background. */
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;   /* over the homepage content and moving logo (30); under the corner links and Contact (40) */
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--overlay-time) var(--overlay-ease), visibility 0s linear var(--overlay-time);
}
.page-overlay.is-open { opacity: 1; visibility: visible; transition: opacity var(--overlay-time) var(--overlay-ease); }
.page-overlay-scrim { position: fixed; inset: 0; background: rgb(var(--bg-photo-tint) / var(--overlay-scrim)); }
.page-overlay-panel {
  position: relative;
  width: min(var(--overlay-container), 100% - 2 * var(--overlay-x));
  margin: 0 auto;
  padding: var(--overlay-top) 0 calc(var(--corner-top) + 80px);
  opacity: 0;
  transition: opacity 500ms var(--overlay-ease);
}
.page-overlay-panel.is-in { opacity: 1; transition-delay: 120ms; }
/* The rise is on the text, not the panel: a moving panel would carry the fixed Close button with it
   (a transformed parent pulls position: fixed along), so Close would land in the wrong spot and then jump */
.page-overlay-label, .page-overlay-body { transform: translateY(18px); transition: transform 700ms var(--overlay-ease); }
.page-overlay-panel.is-in .page-overlay-label, .page-overlay-panel.is-in .page-overlay-body { transform: none; transition-delay: 120ms; }
.page-overlay-bar { display: block; }
.page-overlay-label, .page-overlay-close {
  margin: 0;
  font-size: var(--fs-overlay-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}
.page-overlay-label { color: rgb(255 255 255 / 0.55); outline: none; }
/* Close sits at the top of the page, lined up with the right edge of the page's content box (as on llmh.com),
   and scrolls away with the page; the corner links hide while a page is open */
.page-overlay-close {
  position: absolute;
  top: var(--corner-top);
  right: 0;
  z-index: 2;
  color: rgb(255 255 255 / 0.7);
  transition: color 300ms ease;
}
.page-overlay-close:hover, .page-overlay-close:focus-visible { color: #fff; }
.page-overlay-body { max-width: var(--overlay-width); padding-top: 28px; }
.page-overlay-head {
  text-wrap: balance;   /* even line lengths when a headline wraps (the About one has its own break) */
  margin: 0 0 32px;
  font-size: var(--fs-overlay-head);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--overlay-head-color);
}
.page-overlay-head.about-head { font-size: var(--fs-about-head); }   /* "Capital is only part of the equation." */
/* Contact: the one line, with the address underlined */
.contact-line a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em; transition: color 300ms ease; }
.contact-line a:hover, .contact-line a:focus-visible { color: var(--accent-pop); }
/* Body copy on the pages matches the homepage paragraph ("We invest across…") in type, a little softer in colour */
/* Body medium: the regular paragraph on the inner pages (17 / 16 / 15 / 14 / 12.5px, 68% white). Inner-page paragraphs
   carry the class; the plain p selector keeps any new paragraph in the same style */
.body-medium, .page-overlay-body p { margin: 0; font-size: var(--fs-hero-copy); font-weight: var(--fw-copy); letter-spacing: var(--ls-copy); line-height: var(--lh-copy); color: var(--overlay-copy-color); }
.page-overlay-body p + p { margin-top: 1.2em; }
.page-overlay-body strong { font-weight: 600; color: var(--overlay-head-color); }   /* bold lead-ins, at the title brightness */
/* Homepage while a page is open: its own content steps back; the photo and the moving lines stay */
/* "The goal is simple": the About page's closing line as three numbered steps, rising in one after another */
.goal { margin-top: var(--goal-gap); }
.page-overlay-body .goal-kicker {   /* beats the overlay's paragraph style; type matches the homepage "PORTFOLIO" label */
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  font-size: var(--fs-scroll);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent);
}
.goal-kicker::after { content: ""; flex: 1; height: 1px; background: rgb(255 255 255 / 0.15); }
.goal-steps { margin: 0; padding: 0; list-style: none; }
.goal-steps li {
  display: grid;
  grid-template-columns: 3.2em 1fr;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  font-size: var(--fs-goal-step);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--overlay-head-color);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--overlay-ease), transform 800ms var(--overlay-ease);
}
.goal-steps li:last-child { border-bottom: 0; }
.goal-num { font-size: var(--fs-overlay-label); font-weight: 400; letter-spacing: 0.06em; color: rgb(255 255 255 / 0.45); }
.goal-steps em { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.35em; line-height: 1; color: var(--accent-pop); }
.page-overlay-panel.is-in .goal-steps li { opacity: 1; transform: none; }
.page-overlay-panel.is-in .goal-steps li:nth-child(1) { transition-delay: 450ms; }
.page-overlay-panel.is-in .goal-steps li:nth-child(2) { transition-delay: 600ms; }
.page-overlay-panel.is-in .goal-steps li:nth-child(3) { transition-delay: 750ms; }
@media (prefers-reduced-motion: reduce) { .goal-steps li { transform: none; } }
/* Process page: four steps, each a teal title over the body copy, divided by hairlines and rising in one after
   another; no numbers, so they flow into "How we partner" and "What we look for" below */
.process-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgb(255 255 255 / 0.08); }
.process-steps li {
  padding: var(--step-pad) 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--overlay-ease), transform 800ms var(--overlay-ease);
}
.page-overlay-panel.is-in .process-steps li { opacity: 1; transform: none; }
.page-overlay-panel.is-in .process-steps li:nth-child(1) { transition-delay: 350ms; }
.page-overlay-panel.is-in .process-steps li:nth-child(2) { transition-delay: 480ms; }
.page-overlay-panel.is-in .process-steps li:nth-child(3) { transition-delay: 610ms; }
.page-overlay-panel.is-in .process-steps li:nth-child(4) { transition-delay: 740ms; }
@media (prefers-reduced-motion: reduce) { .process-steps li { transform: none; } }
/* Private Equity page: four pillars stacked in the text column (like the Process steps), each a hairline, a light
   title and the body copy, rising in one after another */
.pillars {
  margin: var(--pillars-top) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.pillars li {
  padding: var(--step-pad) 0;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--overlay-ease), transform 800ms var(--overlay-ease);
}
.title-medium { margin: 0 0 10px; font-size: var(--fs-step-title); font-weight: 300; letter-spacing: -0.01em; line-height: 1.2; color: var(--accent-pop); }   /* the brighter teal of "Value" on the homepage */
.title-small { margin: 0 0 10px; font-size: var(--fs-title-small); font-weight: 500; letter-spacing: 0.09em; line-height: 1.35; text-transform: uppercase; color: rgb(255 255 255 / 0.8); }   /* a step down from Title medium: caps, medium weight, a little tracking, white at 80% */
/* A Title medium used as a section heading (Real Estate): more room below, and the first row under it has no rule */
.title-medium.section-title { margin-bottom: 0.9em; }
.section-title + .pillars > li:first-child, .section-title + .look-for > li:first-child { border-top: 0; padding-top: 0; }
.page-overlay-panel.is-in .pillars li { opacity: 1; transform: none; }
.page-overlay-panel.is-in .pillars li:nth-child(1) { transition-delay: 350ms; }
.page-overlay-panel.is-in .pillars li:nth-child(2) { transition-delay: 450ms; }
.page-overlay-panel.is-in .pillars li:nth-child(3) { transition-delay: 550ms; }
.page-overlay-panel.is-in .pillars li:nth-child(4) { transition-delay: 650ms; }
@media (prefers-reduced-motion: reduce) { .pillars li { transform: none; } }
.goal .pillars { margin-top: 0; }   /* under a kicker (Process: "How we partner") the kicker sets the space above */
/* A short intro line between a kicker and its list, and a paragraph after a list (Real Estate); the gaps scale with the copy size */
.page-overlay-body .goal-intro { margin-bottom: 1.6em; }
.page-overlay-body .goal-kicker + p { margin-top: 0; }   /* the kicker's own margin sets the gap */
.page-overlay-body .goal-after { margin-top: 1.6em; }
/* Real Estate: the uses under each path, a small line of labels separated by dots */
.re-tags { display: flex; flex-wrap: wrap; margin: 14px 0 0; padding: 0; list-style: none; font-size: var(--fs-overlay-label); font-weight: 500; letter-spacing: 0.12em; line-height: 1.8; text-transform: uppercase; color: rgb(255 255 255 / 0.55); }
.pillars .re-tags li { padding: 0; border: 0; opacity: 1; transform: none; transition: none; }   /* not the pillar rows they sit in */
.re-tags li:not(:last-child)::after { content: "·"; margin: 0 0.7em; color: var(--accent-pop); }
/* Process: "What we look for", a short list in the body copy, one line per item between hairlines */
.look-for { margin: 0; padding: 0; list-style: none; }
.look-for li {
  padding: var(--look-pad) 0;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: var(--fs-hero-copy);
  font-weight: var(--fw-copy);
  letter-spacing: var(--ls-copy);
  line-height: var(--lh-copy);
  color: var(--overlay-copy-color);
}
.look-for li:last-child { border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.overlay-open { overflow: hidden; }
.overlay-open .hero-content, .overlay-open .panel-inner, .overlay-open .next-cue, .overlay-open .section-count,
.overlay-open .progress, .overlay-open .site-footer--pinned, .overlay-open .logo,
.overlay-open .corner-nav, .overlay-open .contact-corner, .overlay-open .bg-lines {
  opacity: 0 !important;   /* beats the inline opacity script.js sets on scroll */
  pointer-events: none !important;
  transition: opacity var(--overlay-time) var(--overlay-ease);
}
.corner-nav a[aria-current="page"] { color: #fff; }
/* Inner pages opened directly look the same as from the homepage: just the page and Close (the header
   links, logo and footer step aside, as the homepage's do while a page is open) */
.is-page .site-header, .is-page .site-footer { display: none; }
@media (prefers-reduced-motion: reduce) { .page-overlay-label, .page-overlay-body { transform: none; } }
/* Page to page on the inner pages (full loads): a soft crossfade where the browser supports it */
@view-transition { navigation: auto; }

/* ---------- Responsive (see Breakpoints at the top) ---------- */

/* Widescreen: 2049px and up */
@media (min-width: 2049px) {
  :root { --hero-width: 600px; --hero-logo-w: 320px; --fs-copy: 16px; --fs-hero-tag: 56px; --hero-tag-gap: 28px; --fs-hero-copy: 17px; --links-gap: 120px; --logo-gap: 32px; --icon-scale: 0.8; --icon-gap-x: 0px; --eyebrow-gap: 12px; --panel-stack-gap: 20px; --panel-width: 580px; --fs-panel-head: 52px; --fs-panel-ghost: 470px; --fs-contact: 13px; --fs-corner-nav: 16px; --corner-nav-gap: 32px; --corner-top: 32px; --edge: 32px; --panel-kicker-gap: 26px; --panel-cta-gap: 44px; --hero-space-top: 28vh; --hero-space-bottom: 140px; --fs-overlay-head: 42px; --fs-overlay-text: 17px; --overlay-container: 1100px; --fs-goal-step: 30px; --fs-overlay-label: 13px; --overlay-width: 760px; --fs-scroll: 13px; --scroll-cue-gap: 80px; --portfolio-label-gap: 20px; --fs-step-title: 26px; --fs-about-head: 56px; --fs-title-small: 16px; }
  .bg {
    background-image:
      linear-gradient(90deg, rgb(var(--bg-photo-tint) / var(--bg-photo-dim-left)), rgb(var(--bg-photo-tint) / var(--bg-photo-dim-right))),
      url("assets/bg/utah-valley-1536.jpg?v=1");
    background-image:
      linear-gradient(90deg, rgb(var(--bg-photo-tint) / var(--bg-photo-dim-left)), rgb(var(--bg-photo-tint) / var(--bg-photo-dim-right))),
      image-set(
        url("assets/bg/utah-valley-1536.webp?v=1") type("image/webp") 1x, url("assets/bg/utah-valley-1536.jpg?v=1") type("image/jpeg") 1x,
        url("assets/bg/utah-valley-1536.webp?v=1") type("image/webp") 2x, url("assets/bg/utah-valley-1536.jpg?v=1") type("image/jpeg") 2x);
  }
}

/* Laptop: 1480px and below (also applies to tablet and mobile) */
@media (max-width: 1480px) {
  :root { --hero-width: 420px; --hero-logo-w: 260px; --fs-copy: 14px; --fs-hero-tag: 38px; --hero-tag-gap: 20px; --fs-hero-copy: 15px; --links-gap: 80px; --logo-gap: 22px; --icon-scale: 0.6; --icon-gap-x: 0px; --eyebrow-gap: 10px; --panel-stack-gap: 16px; --panel-width: 420px; --fs-panel-head: 36px; --fs-panel-ghost: 320px; --fs-contact: 11px; --fs-corner-nav: 14px; --corner-nav-gap: 24px; --corner-top: 24px; --edge: 24px; --panel-kicker-gap: 20px; --panel-cta-gap: 32px; --hero-space-top: 22vh; --hero-space-bottom: 100px; --fs-overlay-head: 32px; --fs-overlay-text: 15px; --overlay-container: 800px; --fs-goal-step: 24px; --fs-overlay-label: 11.5px; --overlay-width: 560px; --fs-scroll: 11px; --scroll-cue-gap: 60px; --portfolio-label-gap: 16px; --fs-step-title: 22px; --step-pad: 24px; --look-pad: 14px; --fs-about-head: 48px; --fs-title-small: 14px; }
  .bg {
    background-image:
      linear-gradient(90deg, rgb(var(--bg-photo-tint) / var(--bg-photo-dim-left)), rgb(var(--bg-photo-tint) / var(--bg-photo-dim-right))),
      url("assets/bg/utah-valley-1536.jpg?v=1");
    background-image:
      linear-gradient(90deg, rgb(var(--bg-photo-tint) / var(--bg-photo-dim-left)), rgb(var(--bg-photo-tint) / var(--bg-photo-dim-right))),
      image-set(
        url("assets/bg/utah-valley-1536.webp?v=1") type("image/webp") 1x, url("assets/bg/utah-valley-1536.jpg?v=1") type("image/jpeg") 1x,
        url("assets/bg/utah-valley-1536.webp?v=1") type("image/webp") 2x, url("assets/bg/utah-valley-1536.jpg?v=1") type("image/jpeg") 2x);
  }
}

/* Tablet: 1024px and below (also applies to mobile) */
@media (max-width: 1024px) {
  :root { --hero-width: 420px; --hero-logo-w: 240px; --fs-copy: 13px; --fs-hero-tag: 36px; --hero-tag-gap: 18px; --fs-hero-copy: 14px; --icon-cols: 10; --links-gap: 60px; --logo-gap: 20px; --icon-scale: 0.7; --icon-gap-x: 32px; --chev-size: 30vh; --chev-fade: 0.6; --eyebrow-gap: 9px; --panel-stack-gap: 14px; --panel-width: 420px; --fs-panel-head: 34px; --fs-panel-ghost: 280px; --fs-contact: 10.5px; --fs-corner-nav: 12px; --corner-nav-gap: 22px; --corner-top: 22px; --edge: 22px; --hero-space-top: 22vh; --hero-space-bottom: 84px; --fs-overlay-head: 28px; --overlay-container: 100vw; --overlay-width: none; --fs-goal-step: 22px; --fs-overlay-label: 11px; --fs-overlay-text: 14.5px; --fs-scroll: 10px; --scroll-cue-gap: 48px; --portfolio-label-gap: 14px; --ls-corner-nav: 0.02em; --hero-copy-w: 320px; --fs-step-title: 20px; --step-pad: 20px; --look-pad: 13px; --fs-about-head: var(--fs-overlay-head); --fs-title-small: 13px; }
  .panel-inner { inset: var(--panel-top) 0 auto; margin: 0 auto; }
  .section-count { display: none; }   /* Previous sits in the bottom-left corner here */
  .site-footer.site-footer--pinned { position: relative; right: auto; bottom: auto; padding: 24px var(--gutter); opacity: 1; font-size: var(--fs-footer); letter-spacing: normal; color: var(--footer-color); }
  /* no room for a half-width column: the hero stacks full width from the left, as on phones */
  .hero-half { width: 100%; justify-content: flex-start; padding: 0 var(--gutter); }
  .hero-content { margin-right: 0; width: 100%; }
  /* top links spread across the full width (the small ">" mark sits below them on the sections, see script.js markTop) */
  .corner-nav { left: var(--edge); }
  .corner-nav ul { justify-content: space-between; }
  .bg {
    background-image:
      linear-gradient(90deg, rgb(var(--bg-photo-tint) / var(--bg-photo-dim-left)), rgb(var(--bg-photo-tint) / var(--bg-photo-dim-right))),
      url("assets/bg/utah-valley-1200.jpg?v=1");
    background-image:
      linear-gradient(90deg, rgb(var(--bg-photo-tint) / var(--bg-photo-dim-left)), rgb(var(--bg-photo-tint) / var(--bg-photo-dim-right))),
      image-set(
        url("assets/bg/utah-valley-1200.webp?v=1") type("image/webp") 1x, url("assets/bg/utah-valley-1200.jpg?v=1") type("image/jpeg") 1x,
        url("assets/bg/utah-valley-1536.webp?v=1") type("image/webp") 2x, url("assets/bg/utah-valley-1536.jpg?v=1") type("image/jpeg") 2x);
  }
}

/* Mobile: 767px and below */
@media (max-width: 767px) {
  /* Keep the text/logo layout steady as Safari's toolbar expands or collapses.
     The scroll controller separately tracks the changing reachable endpoint. */
  .hero-sticky { height: 100svh; }

  .is-page { --fs-page-title: min(90px, 14vw); } /* keep the big title on screen on phones */
  :root {
    --header-h: 96px;
    --nav-gap: 14px;
    --fs-nav: 12px;
    --links-col-gap: 24px;
    --copy-gap: 36px;
    --fs-hero-tag: 28px;
    --fs-hero-copy: 12.5px;
    --hero-copy-w: 290px;
    --hero-logo-w: 220px;
    --logo-gap: 24px;   /* space under the hero logo, before the tagline */
    --fs-panel-head: 28px;
    --fs-panel-ghost: 220px;
    --fs-contact: 10px;
    --fs-corner-nav: 12px;
    --corner-nav-gap: 10px;
    --hero-space-top: 21vh;
    --hero-space-bottom: 82px;
    --fs-overlay-head: 26px;
    --fs-goal-step: 20px;
    --fs-step-title: 19px;
    --fs-title-small: 12px;
    --pillars-top: 40px;
    --fs-overlay-label: 10.5px;
    --fs-overlay-text: 14px;
    --fs-scroll: 9px;
    --scroll-cue-gap: 40px;
    --icon-cols: 10;     /* all ten logos on one row, as on the larger screens */
    --icon-scale: 0.55;  /* smaller logos so ten fit across a phone */
    --icon-gap-x: 6px;
    --goal-gap: 48px;
    --look-pad: 12px;
    --corner-top: 20px;
    --edge: 16px;
    --panel-cta-gap: 28px;
    --chev-size: 26vh;   /* phones: centred in the gap between the hero text and the portfolio strip (script.js) */
    --chev-fade: 0.85;
    --icon-gap-y: 20px;
  }
  .header-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
  .header-nav ul { flex-wrap: wrap; }
  .header-nav a { padding: 4px 0; }
  .hero-links { grid-template-columns: repeat(2, 1fr); }
  .portfolio { grid-template-columns: repeat(var(--icon-cols), 1fr); }
  .portfolio li { width: auto; }
  .panel-ghost { right: -0.14em; }   /* phones: less overhang, so both digits stay partly on screen */
}
