/* ==========================================================================
   Yesteryear Ventures, Inc. — site.css
   Heritage editorial: serif display, forest/cream/brass, quiet motion.
   No framework. No build step.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #14201b;
  --forest: #1f3b2e;
  --forest-2: #2b5040;
  --cream: #f4efe6;
  --paper: #fbf8f2;
  --sand: #e8e0d0;
  --brass: #b08d57;
  --brass-2: #c9a86a;
  --muted: #5f665f;

  /* Companions to forest, drawn from old elevation maps. */
  --clay: #b9583b;          /* terracotta: warm counterweight, emphasis, links, Holdings */
  --clay-deep: #8e4028;
  --clay-pale: #e9c9ad;
  --slate: #2f4050;         /* deep blue-grey: second dark tone, Advisory */
  --slate-2: #3d5468;
  --slate-pale: #b9c6d2;
  --sage: #7c9a86;          /* soft green for mid-elevations in the art */

  --bg: var(--cream);
  --bg-elev: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--muted);
  --accent: var(--brass);
  --accent-strong: #8f6f3f;
  --warm: var(--clay);              /* emphasis color: italics, underlines, sups */
  --warm-strong: var(--clay-deep);
  --rule: rgba(20, 32, 27, 0.14);
  --rule-strong: rgba(20, 32, 27, 0.32);
  --band-bg: var(--forest);
  --band-fg: var(--cream);
  --band-accent: var(--brass-2);
  --band-rule: rgba(244, 239, 230, 0.16);
  --shadow: 0 1px 0 rgba(20, 32, 27, 0.04), 0 18px 40px -24px rgba(20, 32, 27, 0.35);

  /* Pale tints for alternating light sections. */
  --tint-sage: #e7ebe2;
  --tint-sand: #ece3d2;
  --tint-clay: #f1e2d6;

  /* The three lines of business, used consistently across pages. */
  --c-ventures: var(--forest-2);
  --c-advisory: var(--slate-2);
  --c-holdings: var(--clay);
  --c-ventures-soft: rgba(43, 80, 64, 0.10);
  --c-advisory-soft: rgba(61, 84, 104, 0.11);
  --c-holdings-soft: rgba(185, 88, 59, 0.11);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  --w-max: 1180px;
  --w-prose: 70ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 6px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Warm charcoal canvas so green reads as an accent, not the whole room. */
    --bg: #17181a;
    --bg-elev: #1e1f22;
    --fg: #ece6da;
    --fg-soft: #a8a9a3;
    --accent: var(--brass-2);
    --accent-strong: #e0c288;
    --warm: #d9795a;
    --warm-strong: #e8957a;
    --rule: rgba(236, 230, 218, 0.13);
    --rule-strong: rgba(236, 230, 218, 0.30);
    --band-bg: #1a2e24;
    --band-fg: #ece6da;
    --band-accent: var(--brass-2);
    --band-rule: rgba(236, 230, 218, 0.14);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -24px rgba(0, 0, 0, 0.8);

    --tint-sage: #181d1a;
    --tint-sand: #1c1a16;
    --tint-clay: #1f1917;

    --c-ventures: #7fae92;
    --c-advisory: #8fa9c0;
    --c-holdings: #d9795a;
    --c-ventures-soft: rgba(127, 174, 146, 0.12);
    --c-advisory-soft: rgba(143, 169, 192, 0.12);
    --c-holdings-soft: rgba(217, 121, 90, 0.13);
  }
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--warm); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-variation-settings: "opsz" 48, "SOFT" 30; }
h4 { font-size: 1.125rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
::selection { background: var(--clay-pale); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--forest); color: var(--cream);
  padding: 0.5rem 0.9rem; border-radius: var(--radius); z-index: 100;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: screen; opacity: 0.06; } }
body > * { position: relative; z-index: 1; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--w-max)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
/* Adjacent plain sections share one gap. Any section that opens with a visible
   separator (a dark band, a .rule-top rule, or the edge of a preceding band)
   keeps its full top padding. */
.section:not(.band):not(.tint) + .section:not(.band):not(.rule-top):not(.tint) { padding-top: 0; }
.rule-top { border-top: 1px solid var(--rule); }

/* Pale tinted sections: gentle color shifts that break up long cream runs. */
.tint { position: relative; }
.tint--sage { background: var(--tint-sage); }
.tint--sand { background: var(--tint-sand); }
.tint--clay { background: var(--tint-clay); }
.tint .card, .tint .entry, .tint .contact-card, .tint .feature-visual { background: var(--bg-elev); }
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split--even { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.sticky { position: sticky; top: 6rem; }

.eyebrow {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-strong);
  margin: 0 0 1.1rem; display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: 0.8; }
.eyebrow--plain::before { display: none; }
/* Eyebrows can carry a pillar color so sections announce which line of business they belong to. */
.eyebrow--ventures { color: var(--c-ventures); }
.eyebrow--advisory { color: var(--c-advisory); }
.eyebrow--holdings { color: var(--c-holdings); }
.eyebrow--warm { color: var(--warm); }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; color: var(--fg); max-width: 62ch; }
.lede--serif { font-family: var(--serif); font-variation-settings: "opsz" 24, "SOFT" 30; font-weight: 300; }
.soft { color: var(--fg-soft); }
.small { font-size: 0.9rem; }
.measure { max-width: var(--w-prose); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; font-family: var(--serif); font-size: 1.2rem; letter-spacing: -0.01em; font-variation-settings: "opsz" 48, "SOFT" 30; }
.brand svg { width: 2.1rem; height: 2.1rem; color: var(--fg); flex: none; }
.brand small { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.01em; color: var(--fg-soft); margin-top: 0.12rem; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.9rem; align-items: center; }
.nav-links a { text-decoration: none; font-size: 0.95rem; color: var(--fg); position: relative; padding-block: 0.3rem; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right 0.3s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--accent-strong); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--rule-strong); background: transparent; color: var(--fg); border-radius: var(--radius); cursor: pointer; }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 880px) { .nav-links { display: flex; } .nav-toggle { display: none; } }
.mobile-menu { display: none; border-top: 1px solid var(--rule); padding: 1rem 0 1.5rem; }
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.mobile-menu a { display: block; padding: 0.75rem 0; text-decoration: none; font-family: var(--serif); font-size: 1.5rem; border-bottom: 1px solid var(--rule); }
.mobile-menu a[aria-current="page"] { color: var(--accent-strong); }
@media (min-width: 880px) { .mobile-menu { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.35rem; border-radius: 999px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn-primary:hover { background: var(--forest-2); border-color: var(--forest-2); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--fg); }
.band .btn-primary { background: var(--brass-2); color: var(--ink); border-color: var(--brass-2); }
.band .btn-primary:hover { background: var(--cream); border-color: var(--cream); }
.band .btn-ghost { color: var(--band-fg); border-color: var(--band-rule); }
.band .btn-ghost:hover { border-color: var(--band-fg); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 2rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--accent-strong); }
.link-arrow svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding-block: clamp(5rem, 12vw, 9.5rem) clamp(4rem, 9vw, 7rem); border-bottom: 1px solid var(--rule);
  /* A faint sunrise wash: clay in the upper right, sage in the lower left. */
  background:
    radial-gradient(110% 80% at 88% 10%, rgba(185, 88, 59, 0.11), transparent 60%),
    radial-gradient(80% 70% at 5% 95%, rgba(124, 154, 134, 0.16), transparent 60%),
    var(--bg);
}
.hero-art {
  position: absolute; inset: -5% -10% -5% 30%; z-index: 0; pointer-events: none;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
}
.hero-art picture, .hero-art img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-color-scheme: dark) {
  .hero { background: radial-gradient(110% 80% at 88% 10%, rgba(217, 121, 90, 0.10), transparent 60%), radial-gradient(80% 70% at 5% 95%, rgba(127, 174, 146, 0.10), transparent 60%), var(--bg); }
  .hero-art { opacity: 0.45; }
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 14ch; margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--warm); font-variation-settings: "opsz" 144, "SOFT" 100; }
.hero .lede { margin-top: 0.5rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 0.85rem; color: var(--fg-soft); }
.hero-meta strong { color: var(--fg); font-weight: 600; }

/* Page hero (interior pages) */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--rule); }
.page-hero h1 { max-width: 16ch; }

/* ---------- Cards / pillars ---------- */
.card {
  background: var(--bg-elev); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1rem; position: relative;
}
.card h3 { margin: 0; }
.card p { color: var(--fg-soft); }
.card .icon { width: 3rem; height: 3rem; padding: 0.65rem; border-radius: 50%; color: var(--card-c, var(--accent-strong)); background: var(--card-c-soft, transparent); }
.card .icon svg { width: 100%; height: 100%; }
.card .num { font-family: var(--serif); font-size: 0.95rem; color: var(--card-c, var(--accent-strong)); letter-spacing: 0.08em; }
.card .link-arrow { color: var(--card-c, var(--accent-strong)); }
.card-foot { margin-top: auto; padding-top: 0.5rem; }
/* Pillar cards: each line of business carries its own color. */
.card--ventures { --card-c: var(--c-ventures); --card-c-soft: var(--c-ventures-soft); }
.card--advisory { --card-c: var(--c-advisory); --card-c-soft: var(--c-advisory-soft); }
.card--holdings { --card-c: var(--c-holdings); --card-c-soft: var(--c-holdings-soft); }
.card--ventures:hover, .card--advisory:hover, .card--holdings:hover { border-color: color-mix(in srgb, var(--card-c) 45%, transparent); }
.tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--fg-soft); }
.tag--accent { border-color: var(--accent); color: var(--accent-strong); }
.tag--warm { border-color: var(--warm); color: var(--warm-strong); }
.card--holdings .tag--accent { border-color: var(--c-holdings); color: var(--c-holdings); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--bg-elev); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(1.25rem, 3vw, 2rem); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 760px) { .stat { border-bottom: 0; } .stat:nth-child(2n) { border-right: 1px solid var(--rule); } .stat:last-child { border-right: 0; } }
.stat b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; color: var(--fg); }
.stat b sup { font-size: 0.45em; vertical-align: top; color: var(--warm); top: 0.2em; position: relative; }
.stat span { display: block; margin-top: 0.6rem; font-size: 0.88rem; color: var(--fg-soft); }

/* ---------- Band (dark section) ---------- */
.band { background: var(--band-bg); color: var(--band-fg); position: relative; overflow: hidden; }
.band .eyebrow { color: var(--band-accent); }
.band .lede, .band .prose p:not(.soft), .band .prose li { color: var(--band-fg); }
.band .soft, .band .card p { color: color-mix(in srgb, var(--band-fg) 72%, transparent); }
.band .card { background: rgba(255, 255, 255, 0.035); border-color: var(--band-rule); box-shadow: none; }
.band .card .icon { color: var(--band-accent); }
.band .rule-top { border-color: var(--band-rule); }
.band a { text-decoration-color: var(--band-accent); }
.band .link-arrow { color: var(--band-accent); }
.band .tag { border-color: var(--band-rule); color: color-mix(in srgb, var(--band-fg) 72%, transparent); }
.band .tag--accent { border-color: var(--band-accent); color: var(--band-accent); }
.band .pull em, .band h1 em, .band h2 em { color: var(--band-accent); }
.band-art { position: absolute; inset: -10% -5%; opacity: 0.12; pointer-events: none; }
.band-art picture, .band-art img { width: 100%; height: 100%; object-fit: cover; }

/* Band variants: forest is the default; slate and clay give other pages their own weight. */
.band--slate { --band-bg: var(--slate); --band-accent: var(--slate-pale); }
.band--clay { --band-bg: var(--clay-deep); --band-accent: var(--clay-pale); }
.band--slate .btn-primary { background: var(--slate-pale); border-color: var(--slate-pale); color: var(--ink); }
.band--clay .btn-primary { background: var(--clay-pale); border-color: var(--clay-pale); color: var(--ink); }
.band--slate .stat b sup, .band--clay .stat b sup { color: var(--warm); }
@media (prefers-color-scheme: dark) {
  .band--slate { --band-bg: #1f2a35; }
  .band--clay { --band-bg: #3a2119; }
}

/* ---------- Feature (portfolio spotlight) ---------- */
.feature { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 880px) { .feature { grid-template-columns: 1.1fr 1fr; } }
.feature-visual { border-radius: var(--radius); border: 1px solid var(--rule); background: var(--bg-elev); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.band .feature-visual { background: rgba(255, 255, 255, 0.04); border-color: var(--band-rule); box-shadow: none; }
.lockup { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; font-variation-settings: "opsz" 144; line-height: 1; }
.lockup small { display: block; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--warm); margin-top: 0.75rem; }
.score { margin-top: 2rem; display: grid; gap: 0.6rem; }
.score-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; font-size: 0.9rem; }
.score-bar { grid-column: 1 / -1; height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.score-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), var(--brass), var(--clay)); width: var(--w, 50%); }
.band .score-bar { background: var(--band-rule); }

/* ---------- Lists ---------- */
.list-rule { list-style: none; padding: 0; margin: 0; }
.list-rule li { padding: 1.25rem 0; border-top: 1px solid var(--rule); display: grid; gap: 0.35rem 1.5rem; }
.list-rule li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .list-rule li { grid-template-columns: 11rem 1fr; } }
.list-rule .k { font-family: var(--serif); font-size: 1.15rem; font-variation-settings: "opsz" 48; }
.list-rule .v { color: var(--fg-soft); }
.band .list-rule li { border-color: var(--band-rule); }
.band .list-rule .v { color: color-mix(in srgb, var(--band-fg) 72%, transparent); }

/* Thesis list */
.thesis { counter-reset: t; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.thesis li { counter-increment: t; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.thesis li:last-child { border-bottom: 1px solid var(--rule); }
.thesis li::before { content: counter(t, decimal-leading-zero); font-family: var(--serif); color: var(--warm); font-size: 1rem; padding-top: 0.25rem; }
.thesis h3 { margin-bottom: 0.35rem; }
.thesis p { color: var(--fg-soft); margin: 0; }

/* ---------- Portfolio entries ---------- */
.entries { display: grid; gap: 1rem; }
.entry { display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg-elev); box-shadow: var(--shadow); }
@media (min-width: 820px) { .entry { grid-template-columns: 16rem 1fr; gap: 2.5rem; } }
.entry-name { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-variation-settings: "opsz" 96; letter-spacing: -0.015em; line-height: 1.05; }
.entry-name small { display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--fg-soft); margin-top: 0.5rem; }
.entry-role { font-size: 0.85rem; color: var(--card-c, var(--accent-strong)); font-weight: 600; margin-top: 0.75rem; }
.entry-body p { color: var(--fg-soft); }
.entry-body .tag-row { margin-top: 1rem; }
.entry .link-arrow { color: var(--card-c, var(--accent-strong)); }
.notice { border-left: 2px solid var(--warm); padding: 0.75rem 1.1rem; background: color-mix(in srgb, var(--warm) 8%, transparent); border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.92rem; color: var(--fg-soft); }
.notice strong { color: var(--fg); }

/* ---------- Team ---------- */
/* Portrait medallion: circular photo on a sand card, contours faint behind it, brass ring. */
.portrait {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--shadow);
  aspect-ratio: 5 / 6; display: grid; place-items: center; padding: 12%;
  background: var(--tint-sand) url("../img/contours-elevation.svg") center / cover no-repeat;
  position: relative;
}
.portrait::before { content: ""; position: absolute; inset: 0; background: var(--tint-sand); opacity: 0.55; }
.portrait picture, .portrait img { position: relative; width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; display: block; }
.portrait img { box-shadow: 0 0 0 4px var(--tint-sand), 0 0 0 5.5px var(--brass), 0 24px 48px -24px rgba(20, 32, 27, 0.45); }
@media (prefers-color-scheme: dark) {
  .portrait { background-color: var(--bg-elev); }
  .portrait::before { background: var(--bg-elev); opacity: 0.6; }
  .portrait img { box-shadow: 0 0 0 4px var(--bg-elev), 0 0 0 5.5px var(--brass-2), 0 24px 48px -24px rgba(0, 0, 0, 0.8); }
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.25rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline time { font-family: var(--serif); font-size: 0.95rem; color: var(--warm); padding-top: 0.15rem; font-variant-numeric: tabular-nums; }
.timeline b { display: block; font-weight: 600; }
.timeline span { color: var(--fg-soft); font-size: 0.95rem; }
.social { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.social a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.9rem; border: 1px solid var(--rule-strong); border-radius: 999px; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.social a:hover { border-color: var(--fg); }
.social svg { width: 1rem; height: 1rem; }

/* ---------- Values ---------- */
.values { counter-reset: v; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.values li { counter-increment: v; padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--rule); display: grid; gap: 1rem 2.5rem; }
.values li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 820px) { .values li { grid-template-columns: 7rem 1fr; } }
.values li::before { content: counter(v, upper-roman); font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--accent-strong); line-height: 1; font-weight: 300; }
/* Numerals rotate through the three pillar colors. */
.values li:nth-child(3n + 1)::before { color: var(--c-ventures); }
.values li:nth-child(3n + 2)::before { color: var(--c-advisory); }
.values li:nth-child(3n)::before { color: var(--c-holdings); }
.values h3 { margin-bottom: 0.5rem; }
.values p { color: var(--fg-soft); max-width: 62ch; }
.values .quote { font-family: var(--serif); font-style: italic; color: var(--warm-strong); font-size: 1.1rem; font-variation-settings: "opsz" 24, "SOFT" 60; margin-top: 1rem; }

/* ---------- Pull quote ---------- */
.pull { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.25; letter-spacing: -0.01em; font-variation-settings: "opsz" 144, "SOFT" 30; max-width: 28ch; text-wrap: balance; }
.pull em { font-style: italic; color: var(--warm); font-variation-settings: "opsz" 144, "SOFT" 100; }
.pull-by { margin-top: 1.5rem; font-family: var(--sans); font-style: normal; font-size: 0.9rem; letter-spacing: 0; color: var(--fg-soft); display: flex; align-items: center; gap: 0.75rem; }
.pull-by::before { content: ""; width: 1.75rem; height: 1px; background: var(--warm); }

/* ---------- Prose (legal, about) ---------- */
.prose { max-width: var(--w-prose); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.5rem; }
.prose h3 { font-size: 1.2rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--fg); }
.prose li { margin-bottom: 0.4em; }
.prose .meta { color: var(--fg-soft); font-size: 0.9rem; }
.prose a { word-break: break-word; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg-elev); box-shadow: var(--shadow); display: grid; gap: 0.75rem; align-content: start; }
.contact-card h3 { margin: 0; }
.contact-card p { color: var(--fg-soft); font-size: 0.95rem; }
.contact-card .link-arrow { margin-top: 0.5rem; color: var(--card-c, var(--accent-strong)); }
.contact-card .eyebrow { color: var(--card-c, var(--accent-strong)); }
.contact-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--card-c, var(--accent)); border-radius: var(--radius) 0 0 var(--radius); }
.contact-card { position: relative; }
.email { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; text-decoration: none; border-bottom: 1px solid var(--warm); display: inline-block; line-height: 1.2; font-variation-settings: "opsz" 96; word-break: break-all; }
.email:hover { border-color: currentColor; }

/* ---------- CTA band ---------- */
.cta { text-align: left; }
.cta h2 { max-width: 18ch; }
.cta .actions { margin-top: 2.25rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 3.5rem 0 2.5rem; font-size: 0.9rem; color: var(--fg-soft); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer h4 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg); margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; color: var(--fg); font-family: var(--serif); font-size: 1.15rem; text-decoration: none; margin-bottom: 1rem; }
.footer-brand svg { width: 2rem; height: 2rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); display: grid; gap: 1rem; font-size: 0.8rem; }
@media (min-width: 820px) { .footer-bottom { grid-template-columns: 1fr auto; align-items: start; } }
.disclaimer { max-width: 80ch; line-height: 1.55; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn svg, .link-arrow svg, .nav-links a::after { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; }
.notfound .big { font-family: var(--serif); font-size: clamp(5rem, 18vw, 12rem); line-height: 0.9; font-weight: 300; color: var(--accent-strong); letter-spacing: -0.04em; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer .footer-grid, .nav-toggle, .hero-art, body::before { display: none !important; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
