@import url("https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Hanken+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  /* Umbrella locked: ember (2026-07-21). */
  --firm-ramp: linear-gradient(115deg,#c05545 0%,#a03a3a 35%,#732222 70%,#3f1010 100%);
  --firm-ramp-90: linear-gradient(90deg,#c05545 0%,#a03a3a 35%,#732222 70%,#3f1010 100%);
  --firm-deep: #732222;
  --firm-wash: linear-gradient(115deg,
    rgba(192,85,69,.07) 0%, rgba(160,58,58,.06) 35%,
    rgba(115,34,34,.05) 70%, rgba(63,16,16,.05) 100%);

  /* ── Base — marble & ink ─────────────────────────────────────────────── */
  --marble: #f8f7f5;         /* firm ground; page background */
  --marble-deep: #efece7;    /* recessed wells, table stripes */
  --white: #ffffff;          /* cards sit on marble as pure white */
  --ink: #141414;            /* all primary text & the wordmark */
  --ink-soft: #6b6558;       /* secondary text */
  --ink-faint: #9a9284;      /* captions, meta, disabled */
  --line: #e8e5df;           /* hairlines, borders */
  --line-strong: #d9d4ca;

  /* ── Fund identities — locked painted ramps ──────────────────────────── */
  /* Hyperion — "launch" ramp (locked). */
  --hyperion-ramp: linear-gradient(115deg,#f7c948 0%,#eda12b 35%,#e06a20 68%,#a83a0c 100%);
  --hyperion-ramp-90: linear-gradient(90deg,#f7c948 0%,#eda12b 35%,#e06a20 68%,#a83a0c 100%);
  --hyperion-deep: #a83a0c;  /* text-safe */
  /* Hydrangea — "bloom" ramp (locked). */
  --hydrangea-ramp: linear-gradient(115deg,#a988d9 0%,#5f3a99 38%,#a5228c 72%,#621052 100%);
  --hydrangea-ramp-90: linear-gradient(90deg,#a988d9 0%,#5f3a99 38%,#a5228c 72%,#621052 100%);
  --hydrangea-deep: #5f3a99; /* text-safe */

  /* ── Semantic aliases ────────────────────────────────────────────────── */
  --surface-page: var(--marble);
  --surface-card: var(--white);
  --surface-well: var(--marble-deep);
  --text-body: var(--ink);
  --text-muted: var(--ink-soft);
  --text-faint: var(--ink-faint);
  --border-default: var(--line);
  --border-strong: var(--line-strong);

  /* ── Type faces ──────────────────────────────────────────────────────── */
  --font-display: 'Cardo', 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --text-xs: 11px;
  --text-sm: 12.5px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 26px;
  --text-2xl: 34px;
  --text-3xl: 44px;

  --leading-tight: 1.15;
  --leading-normal: 1.5;
  --leading-loose: 1.65;

  --tracking-caps: .14em;
  --tracking-wordmark: .13em;

  /* ── Spacing scale (4px base) ────────────────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ── Radii ───────────────────────────────────────────────────────────── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* ── The stroke device always tilts exactly -4deg ────────────────────── */
  --stroke-tilt: -4deg;

  /* ── Shadows + motion ────────────────────────────────────────────────── */
  --shadow-card: 0 1px 3px rgba(20, 20, 20, .06);
  --shadow-raised: 0 8px 24px rgba(20, 20, 20, .10);
  --shadow-modal: 0 16px 48px rgba(20, 20, 20, .16);
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --duration-fast: 120ms;
  --duration-normal: 200ms;

  /* Layout */
  --page-x: clamp(20px, 5vw, 56px);
  --wrap-max: 1080px;
}

/* Fund theme scopes — set the book's ramp vars on any subtree that belongs to
   a book. Surfaces read --fund-ramp (115deg); the stroke device reads the
   90deg variant. */
.theme-hyperion {
  --fund-deep: var(--hyperion-deep);
  --fund-ramp: var(--hyperion-ramp);
  --fund-ramp-90: var(--hyperion-ramp-90);
}
.theme-hydrangea {
  --fund-deep: var(--hydrangea-deep);
  --fund-ramp: var(--hydrangea-ramp);
  --fund-ramp-90: var(--hydrangea-ramp-90);
}

/* ── Reset / base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--surface-page);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-body);
  background: var(--surface-page);
  line-height: var(--leading-normal);
}

/* --firm-deep is the only firm accent colour for links. Body text stays ink. */
a { color: var(--firm-deep); text-decoration: none; }
a:hover { color: color-mix(in srgb, var(--firm-deep) 80%, #000); }

:focus-visible {
  outline: 3px solid var(--firm-deep);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── The stroke device ─────────────────────────────────────────────────── */
/* Rounded bar, width ~4.9x its height, radius = half height, tilt -4deg,
   filled with the fund's 90deg ramp. The only decorative mark. */
.stroke {
  width: 34px;
  height: 7px;
  border-radius: 3.5px;
  transform: rotate(var(--stroke-tilt));
  background: var(--fund-ramp-90, var(--hyperion-ramp-90));
}

/* ── Letterspaced-caps building blocks ─────────────────────────────────── */
.wordmark {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-wordmark);
  color: var(--ink);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.fund-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  color: var(--text-faint);
}

/* ── Nav — hairline top bar ────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 22px var(--page-x);
  border-bottom: 1px solid var(--line);
  background: var(--marble);
}
.nav-mark { font-size: 17px; }
/* Nav brand lockup — painted firm mark left of the wordmark, cap-height. */
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { display: block; height: 24px; width: auto; }
.nav-links {
  display: flex;
  gap: var(--space-6);
  font-size: 13.5px;
}
.nav-links a { color: var(--firm-deep); }
.nav-links a:hover { color: color-mix(in srgb, var(--firm-deep) 80%, #000); }

/* ── Hero — faint firm-wash cover moment (marble-tinted, ink stays legible) ─ */
.hero {
  background-color: var(--marble);
  background-image: var(--firm-wash);
  padding: 96px var(--page-x) 84px;
  border-bottom: 1px solid var(--line);
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.12;
  max-width: 660px;
  margin: 0;
  color: var(--ink);
}
.hero-actions { margin-top: 36px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--firm-deep);
  background: var(--firm-deep);
  color: var(--marble);
  cursor: pointer;
  transition: filter var(--duration-normal) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
.btn:hover { color: var(--marble); filter: brightness(.9); }
.btn:active { transform: scale(.98); }

/* ── Generic section wrapper ───────────────────────────────────────────── */
.section {
  padding: 64px var(--page-x);
  max-width: var(--wrap-max);
}
.section-eyebrow { display: block; margin-bottom: 22px; }

/* ── THE BOOKS — cards ─────────────────────────────────────────────────── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.book-card {
  display: block;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 36px;
  color: var(--ink);
  transition: box-shadow var(--duration-normal) var(--ease-standard),
              transform var(--duration-normal) var(--ease-standard);
}
.book-card:hover {
  color: var(--ink);
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}
.book-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: .1em;
  margin: 20px 0 0;
}
.book-card .fund-tag { display: block; margin-top: 8px; }
.book-copy {
  font-size: 14px;
  line-height: var(--leading-loose);
  color: var(--text-muted);
  margin: 16px 0 0;
}
.figure-row {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.figure-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.figure-label {
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* ── THE FIRM ──────────────────────────────────────────────────────────── */
.firm {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.firm-body { flex: 1.3 1 320px; }
.firm-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.35;
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--ink);
}
.firm-figures {
  flex: 1 1 200px;
  display: flex;
  gap: 36px;
  padding-top: 34px;
}
.firm-figures .figure-value { font-size: 22px; }
.firm-figures .figure-label { font-size: 11px; margin-top: 3px; }

/* ── DISCIPLINE ────────────────────────────────────────────────────────── */
.prose {
  font-size: 15.5px;
  line-height: var(--leading-loose);
  color: var(--text-muted);
  max-width: 64ch;
  margin: 16px 0 0;
}

/* ── Fund detail — ramp header band ────────────────────────────────────── */
.fund-band {
  background: var(--fund-ramp);
  padding: 72px var(--page-x) 56px;
}
.fund-back {
  font-size: 12.5px;
  color: var(--firm-deep);
}
.fund-back:hover { color: color-mix(in srgb, var(--firm-deep) 80%, #000); }
.fund-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 44px);
  letter-spacing: .1em;
  color: var(--ink);
  margin: 18px 0 0;
}
.fund-band .fund-tag {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
}

.fund-body {
  display: flex;
  gap: 48px;
  padding: 48px var(--page-x);
  max-width: var(--wrap-max);
  flex-wrap: wrap;
}
.fund-desc {
  flex: 1.4 1 340px;
  font-size: 15.5px;
  line-height: var(--leading-loose);
  color: var(--text-body);
}
.fund-spec { flex: 1 1 260px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.spec-key { color: var(--text-muted); }
.spec-val {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
}

/* ── Performance reveal (perf.js fills this; hidden until the gate opens) ─ */
.perf {
  padding: 8px var(--page-x) 56px;
  max-width: var(--wrap-max);
}
.perf-return {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 34px;
  color: var(--fund-deep, var(--ink));
  line-height: 1.1;
}
.perf-inception {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 8px 0 0;
}
.perf-spark { display: block; margin-top: 14px; width: 260px; max-width: 100%; height: auto; }

/* ── Footer — firm-level brand moment ──────────────────────────────────── */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding: 26px var(--page-x);
  border-top: 1px solid var(--line);
  background: var(--marble);
}
.foot-brand { display: flex; align-items: center; gap: 18px; }
.foot-mark { font-size: 13px; }
.foot-note { font-size: 11.5px; color: var(--text-faint); }

/* The painted three-stroke firm mark carries the footer brand moment now
   (.foot-art). The stacked CSS strokes retired with the pearls. */

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .book-grid { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; gap: 14px; }
  .nav-links { gap: 20px; }
  .hero { padding: 64px var(--page-x) 56px; }
  .firm, .fund-body { gap: 32px; }
  .firm-figures { padding-top: 8px; }
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .book-card:hover { transform: none; }
}

/* Wordmark-only hero (copy removed pending owner-written text). */
.hero-wordmark {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-wordmark, 0.13em);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
}

/* ── Real painted brand art ─────────────────────────────────────────────────
   The three-stroke firm mark, the Hyperion stroke and the Hydrangea flower are
   now real watercolor (site/art/*). These rules place that art in the hero, the
   footer brand moment, and the fund header bands. The CSS .stroke device stays
   in the system for the book cards; only these surfaces swap to real paint. */
.hero-art {
  display: block;
  width: min(520px, 80%);
  height: auto;
  margin: 30px 0 6px;
}
.foot-art {
  display: block;
  height: 26px;
  width: auto;
}
/* Fund header band: the book's RAMP is the base surface; the painted artwork
   is layered over it at reduced opacity (it predates the ramps — kept for
   continuity, softened for harmony). A left marble scrim keeps the ink lockup
   legible while ramp + paint bloom off to the right.
   Layers, bottom → top: element background (ramp) · ::before (art, faded) ·
   ::after (left scrim) · content. */
.fund-band--art {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  background-image: var(--fund-ramp);
}
.fund-band--art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--fund-art);
  background-size: cover;
  background-position: var(--fund-art-pos, center);
  background-repeat: no-repeat;
  opacity: .5;
  pointer-events: none;
}
.fund-band--art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--marble) 16%, rgba(248, 247, 245, .58) 42%, rgba(248, 247, 245, 0) 72%);
  pointer-events: none;
}
.fund-band--art > * { position: relative; z-index: 2; }

/* ── Firm cover band — Approach / Story (Cardo lockup on a firm ramp) ─────── */
.firm-band {
  position: relative;
  overflow: hidden;
  background-image: var(--firm-ramp);
  padding: 72px var(--page-x) 56px;
  border-bottom: 1px solid var(--line);
}
.firm-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--marble) 8%, rgba(248, 247, 245, .70) 46%, rgba(248, 247, 245, .28) 100%);
  pointer-events: none;
}
.firm-band > * { position: relative; z-index: 1; }
.firm-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 44px);
  letter-spacing: .1em;
  color: var(--ink);
  margin: 0;
}

/* ── Empty structural wells — owner writes the copy ────────────────────── */
.well {
  padding: 48px var(--page-x);
  max-width: var(--wrap-max);
}
.well-wide { max-width: 72ch; }
.well-section + .well-section { margin-top: 8px; }
.well-eyebrow { display: block; margin-bottom: 14px; }
.well-body { min-height: 132px; }
.well-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 28px);
  letter-spacing: .01em;
  color: var(--ink);
  margin: 0 0 16px;
}
.well-body p {
  font-size: 15.5px;
  line-height: var(--leading-loose);
  color: var(--text-body);
  max-width: 64ch;
  margin: 0 0 14px;
}
.well-body p:last-child { margin-bottom: 0; }
.fund-desc p {
  margin: 0 0 16px;
}
.fund-desc p:last-child { margin-bottom: 0; }
