/* =====================================================================
   Aldine Capital — Stylesheet
   ---------------------------------------------------------------------
   The :root block below is the design system. Editing a variable here
   updates the whole site in one place. Most "change the color/font" or
   "make it bigger" requests can be answered by editing :root only.
   ===================================================================== */

:root {
  /* Colors — sampled from the live aldinecapital.com Squarespace stylesheet */
  --color-bg:          #ffffff;
  --color-bg-dark:     #1d1d1d;       /* hero, footer, dark sections */
  --color-bg-soft:     #f6f6f6;       /* subtle off-white panels */
  --color-text:        #1d1d1d;
  --color-text-mute:   #6b6b6b;
  --color-text-body:   #3e3e3e;
  --color-text-invert: #ffffff;
  --color-accent:      #92723f;       /* live-site gold */
  --color-accent-hover:#765c32;       /* darker variant from live site */
  --color-brand:       #7e2529;       /* logo deep red — used for section titles */
  --color-overlay:     rgba(126, 37, 41, 0.82);  /* brand-red image overlay */
  --color-rule:        #ededed;
  --color-rule-strong: #bdbdbd;
  --color-rule-dark:   #2f2f2f;

  /* Typography — live site uses Helvetica Neue / Arial throughout. */
  --font-sans:         'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display:      'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Sizing */
  --max-width:         1200px;
  --max-width-narrow:  900px;
  --header-height:     90px;
}

/* =====================================================================
   Reset / base
   ===================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: var(--color-accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: 0;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 300; }
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-brand);
  letter-spacing: -.01em;
}
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 500; }
h4 { font-size: .95rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* H2s on dark backgrounds stay white */
.section-dark h2,
.section-banner h2,
.hero h2,
.hero-subtle h2,
.hero--banner h2 { color: var(--color-text-invert); }

p { margin: 0 0 1em; }

hr {
  border: 0;
  border-top: 1px solid var(--color-rule);
  margin: 4rem 0;
}

/* =====================================================================
   Layout primitives
   ===================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-invert);
}
.section-dark a { color: var(--color-text-invert); }
.section-dark a:hover { color: var(--color-accent); }
.section-dark hr { border-top-color: var(--color-rule-dark); }

.section-soft { background: var(--color-bg-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.25rem;
  color: var(--color-text-mute);
  max-width: 60ch;
}

/* =====================================================================
   Header / nav — 2-row layout matching the live site:
   Row 1: logo LEFT, secondary nav (Login · Contact · 🔍) RIGHT.
   Row 2: primary nav left-aligned with hairline rules above and below.
   ===================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
}

/* Row 1: logo + secondary nav -------------------------------------- */
.site-header__top {
  background: var(--color-bg);
}
.site-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.25rem;
  gap: 2rem;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.site-header__logo img {
  /* Live-site cap: 200x25 at desktop. Natural aspect ratio is ~7.94:1
     so width controls and height follows. */
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Row 2: primary nav with rules ------------------------------------ */
.site-header__bottom {
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  background: var(--color-bg);
}
.site-header__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  gap: 2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.site-nav a {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--color-text);
  text-transform: uppercase;
  position: relative;
  padding: .25rem 0;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--color-accent); }
.site-nav a.is-active { color: var(--color-accent); }
.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}

@media (max-width: 1100px) {
  .site-nav { gap: 1.5rem; }
  .site-nav a { font-size: .76rem; letter-spacing: .1em; }
}

/* Mobile-only slide-down menu. Hidden on desktop. */
.site-nav-mobile { display: none; }

@media (max-width: 900px) {
  .site-header__top-inner { padding: 1rem 1.25rem; }
  .site-header__logo img { width: 160px; }
  .site-header__bottom { display: none; }
  .site-nav--secondary { display: none; }
  .nav-toggle { display: block; }

  .site-nav-mobile {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 4.5rem 1.75rem 2rem;
    transform: translateX(100%);
    transition: transform .3s ease;
    border-left: 1px solid var(--color-rule);
    box-shadow: -8px 0 24px rgba(0,0,0,.08);
    overflow-y: auto;
    z-index: 60;
  }
  .site-nav-mobile.is-open { transform: translateX(0); }

  .nav-mobile-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: 0;
    padding: .5rem;
    cursor: pointer;
    color: var(--color-text);
    line-height: 0;
    border-radius: 4px;
  }
  .nav-mobile-close:hover { color: var(--color-accent); }
  .nav-mobile-close svg { width: 22px; height: 22px; }
  .site-nav-mobile a {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-rule);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-text);
  }
  .site-nav-mobile a:hover,
  .site-nav-mobile a.is-active { color: var(--color-accent); }

  .nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =====================================================================
   Hero
   ===================================================================== */

.hero {
  background: var(--color-bg-dark);
  color: var(--color-text-invert);
  padding: 9rem 0 8rem;
  text-align: center;
  position: relative;
}
.hero h1 {
  max-width: 22ch;
  margin: 0 auto;
  color: var(--color-text-invert);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  letter-spacing: -.005em;
  position: relative;
  z-index: 1;
}
.hero .lede { color: rgba(255,255,255,.78); margin: 1.5rem auto 0; position: relative; z-index: 1; }

/* Homepage hero — slight neutral darkening for headline readability,
   no brand-red tint (the underlying photo's color comes through).
   When combined with `.parallax`, the image is layered as ::before and
   moves slower than the page. Inner pages override `background-image`
   inline to add their own overlay+photo. */
.hero--banner {
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url('../images/home-banner.png') center / cover no-repeat;
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 4.5rem 0;
}

/* When the homepage hero is wrapped with the parallax mechanism, the photo
   moves to the ::before pseudo-element so JS can transform it. The element's
   own background drops the image and just keeps a fallback color. */
.hero--banner.parallax {
  background: var(--color-bg-dark);
  /* --parallax-image and --parallax-overlay-color are set by parallax.js
     from the element's data-parallax-image / data-parallax-overlay attrs. */
}
.hero--banner h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}

/* Inner-page banner hero — shorter than the homepage hero */
.hero--page {
  min-height: 50vh;
  padding: 5rem 0;
}
.hero--page h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.5rem;
}
.hero__lede {
  max-width: 56ch;
  margin: 0 auto;
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 20px rgba(0,0,0,.3);
}

/* Bolder hero title variant (Investment Criteria etc.) */
.hero__title-strong { font-weight: 700; }

/* Investment Criteria hero — title + lede + 3 metrics overlaid on banner */
.hero--criteria {
  padding: 5rem 0;
  min-height: auto;
  text-align: center;
}
.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 720px;
  margin: 3rem auto 0;
  position: relative;
  z-index: 1;
}
.hero__metric { text-align: center; }
.hero__metric-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-text-invert);
  line-height: 1;
  margin-bottom: .75rem;
}
.hero__metric-label {
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  letter-spacing: .03em;
}
@media (max-width: 700px) {
  .hero__metrics { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Section intro pattern: bold red H2, hairline divider, muted gray lede */
.section-intro {
  text-align: center;
  margin-bottom: 4rem;
}
.section-intro h2 { margin-bottom: 1rem; }
.section-intro__rule {
  border: 0;
  border-top: 2px solid var(--color-rule);
  max-width: 880px;
  margin: 0 auto 1.25rem;
}
.section-intro__lede {
  max-width: 56ch;
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--color-text-mute);
  font-weight: 400;
}
.section-intro__link {
  display: inline-flex;
  margin-top: 2rem;
}

/* Two .section-intro blocks side-by-side (e.g. What We Do + How We Invest)
   Cells stretch to equal height and the Learn More link is pinned to the bottom. */
.intro-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: stretch;
}
.intro-pair .section-intro {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.intro-pair .section-intro__rule { max-width: 100%; }
.intro-pair .section-intro__lede { margin-bottom: 2.5rem; }
.intro-pair .section-intro__link { margin-top: auto; align-self: center; }

@media (max-width: 800px) {
  .intro-pair { grid-template-columns: 1fr; gap: 3rem; }
  .intro-pair .section-intro__link { margin-top: 1.5rem; }
}

/* Large centered firm intro statement (Our Firm page) */
.firm-intro {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 300;
  line-height: 1.4;
  max-width: 36ch;
  margin: 0 auto;
  color: var(--color-text);
}

/* Feature block media variant: real photo, fills the box */
.feature-block__media--photo {
  background: transparent;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border-radius: 2px;
}
.feature-block__media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Team member cards */
.team-card .card__title { margin-bottom: .35rem; }
.team-card .card__meta {
  padding-top: .5rem;
  font-size: .9rem;
  color: var(--color-text);
  line-height: 1.45;
}
.team-cta-headline {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 300;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text);
  margin: 0;
}

.hero-subtle {
  background: var(--color-bg-dark);
  color: var(--color-text-invert);
  padding: 7rem 0 5.5rem;
  text-align: center;
}
.hero-subtle h1 {
  max-width: 28ch;
  margin: 0 auto;
  color: var(--color-text-invert);
  font-weight: 300;
}
.hero-subtle .eyebrow { color: var(--color-accent); }
.hero-subtle .lede { color: rgba(255,255,255,.78); margin: 1.25rem auto 0; }

/* Asterisk divider — distinctive design element from the live site */
.divider-asterisk {
  text-align: center;
  padding: 3rem 0 2rem;
  color: var(--color-accent);
  font-size: 1.5rem;
  letter-spacing: 1.5em;
  text-indent: 1.5em;
  line-height: 1;
}
.divider-asterisk::before { content: '* * *'; }

/* =====================================================================
   Buttons / arrow links
   ===================================================================== */

.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--color-text);
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover {
  background: var(--color-text);
  color: var(--color-text-invert);
}
.btn-accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-invert);
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-text-invert);
}
.btn-outline-light {
  border-color: var(--color-text-invert);
  color: var(--color-text-invert);
}
.btn-outline-light:hover {
  background: var(--color-text-invert);
  color: var(--color-text);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--color-accent);
}
.arrow-link::after { content: '⟶'; transition: transform .2s ease; }
.arrow-link:hover::after { transform: translateX(4px); }

/* =====================================================================
   Stats grid
   ===================================================================== */

/* Stats section over the live-site key-facts banner background, tinted brand red */
.section-stats {
  background:
    linear-gradient(var(--color-overlay), var(--color-overlay)),
    url('../images/key-facts-banner.png') center / cover no-repeat;
  color: var(--color-text-invert);
  padding: 5rem 0;
}
.section-stats.parallax {
  background: var(--color-bg-dark);
  /* --parallax-image and --parallax-overlay-color are set by parallax.js
     from the element's data-parallax-image / data-parallax-overlay attrs. */
}

/* =====================================================================
   Parallax mechanism
   Add `.parallax` to any section. The image lives in ::before and is
   transformed by JS via the --parallax-y CSS variable so it scrolls at
   30% of page speed (override per element with data-parallax-speed).
   ===================================================================== */
.parallax {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.parallax::before {
  content: '';
  position: absolute;
  inset: -20% 0;
  background-image: var(--parallax-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
  z-index: 0;
}
.parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--parallax-overlay-color, transparent);
  z-index: 1;
}
.parallax > * { position: relative; z-index: 2; }
@media (hover: none) and (pointer: coarse) {
  .parallax::before { transform: none; }
}

/* Section with banner background image (e.g. Transactions on Investment Criteria) */
.section-banner {
  background-color: var(--color-bg-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-text-invert);
  padding: 5rem 0;
  text-align: center;
}
.section-banner__body {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  max-width: 56ch;
  margin: 1.5rem auto 0;
}

/* 2x2 grid of overview blocks on the brand-red banner (Investment Criteria page) */
.section-banner--criteria-overview { padding: 5rem 0; }
.criteria-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem 5rem;
}
.criteria-overview__item h3 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-invert);
  margin: 0 0 .75rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
}
.criteria-overview__rule {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.45);
  margin: 0 0 1.25rem;
  width: 100%;
}
.criteria-overview__body {
  color: rgba(255,255,255,.88);
  line-height: 1.55;
  margin: 0;
}
.criteria-overview__list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(255,255,255,.88);
}
.criteria-overview__list li {
  padding: .35rem 0;
  line-height: 1.45;
}
@media (max-width: 800px) {
  .criteria-overview-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.section-stats .stat-grid__number { color: var(--color-text-invert); font-weight: 300; }
.section-stats .stat-grid__label { color: rgba(255,255,255,.78); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}
.stat-grid__item .stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  color: var(--color-accent);
}
.stat-icon-img {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  display: block;
  object-fit: contain;
}
.stat-grid__number {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: .5rem;
  color: var(--color-accent);
}
.stat-grid__label {
  font-size: .95rem;
  color: var(--color-text-mute);
  letter-spacing: .04em;
}
.section-dark .stat-grid__label { color: rgba(255,255,255,.72); }

@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* =====================================================================
   Two-column "feature" sections (What We Do, How We Invest)
   ===================================================================== */

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature-block + .feature-block { margin-top: 5rem; }
.feature-block__media {
  background: var(--color-bg-soft);
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
}
.feature-block__media svg { width: 96px; height: 96px; }
.feature-block.is-reversed .feature-block__text  { order: 2; }
.feature-block.is-reversed .feature-block__media { order: 1; }

@media (max-width: 800px) {
  .feature-block { grid-template-columns: 1fr; gap: 1.75rem; }
  .feature-block.is-reversed .feature-block__text,
  .feature-block.is-reversed .feature-block__media { order: 0; }
}

/* =====================================================================
   Pillar grid (The Aldine Difference, etc.)
   ===================================================================== */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
}
.pillar h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .75rem;
}
.pillar p { color: var(--color-text-mute); }

@media (max-width: 720px) {
  .pillar-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* =====================================================================
   Card grid (portfolio, news, partners)
   ===================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.06); }
a.card { color: inherit; text-decoration: none; }
.card__media {
  background: var(--color-bg-soft);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-mute);
  padding: 1rem;
  text-align: center;
  letter-spacing: .01em;
  overflow: hidden;
}
.card__media--image {
  padding: 0;
  background: var(--color-bg-soft);
}
.card__media--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Portfolio "logo" card variant — white box with logo padded inside,
   then name + Current tag below on the same white card. Matches the
   live homepage's "Who We Work With" grid. */
.card-grid--two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (max-width: 720px) {
  .card-grid--two { grid-template-columns: 1fr; }
}

/* 4-up at desktop, 2-up at tablet, 1-up at phone */
.card-grid--four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1000px) {
  .card-grid--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .card-grid--four { grid-template-columns: 1fr; }
}

.card--logo {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.card--logo:hover { transform: none; box-shadow: none; }
.card--logo:hover .card__media--logo { box-shadow: 0 6px 18px rgba(0,0,0,.06); }

.card__media--logo {
  background: var(--color-bg);
  aspect-ratio: 16 / 9;
  padding: 1.5rem 1.75rem;
  border: 0;
  transition: box-shadow .2s ease;
}
.card__media--logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.card--logo .card__body {
  padding: 1rem 0 0;
  margin-top: 1rem;
  border-top: 1px solid var(--color-rule-strong);
  text-align: left;
  background: transparent;
}
.card--logo .card__title {
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: .35rem;
}
.card--logo .card__tag {
  letter-spacing: .15em;
  font-size: .72rem;
  color: var(--color-text-mute);
  margin-bottom: 0;
}
.card__body { padding: 1.5rem 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card__tag {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .5rem;
}
.card__title { font-family: var(--font-sans); font-size: 1.2rem; font-weight: 500; margin-bottom: .35rem; line-height: 1.3; }
.card__meta { color: var(--color-text-mute); font-size: .88rem; margin-top: auto; padding-top: 1rem; }

/* =====================================================================
   News list (vertical, dense)
   ===================================================================== */

/* Side-by-side news cards (used on the homepage teaser) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.news-card {
  display: flex;
  flex-direction: column;
}
.news-card__date {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  margin-bottom: .75rem;
}
.news-card__title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 .75rem;
  color: var(--color-text);
}
.news-card__title a { color: inherit; }
.news-card__title a:hover { color: var(--color-accent); }
.news-card__excerpt {
  color: var(--color-text-mute);
  font-size: .95rem;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 720px) {
  .news-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.news-list { list-style: none; padding: 0; margin: 0; }
.news-list__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-rule);
}
.news-list__date {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  padding-top: .25rem;
}
.news-list__title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 .5rem;
  line-height: 1.3;
  color: var(--color-text);
}
.news-list__excerpt { color: var(--color-text-mute); margin: 0; }

@media (max-width: 720px) {
  .news-list__item { grid-template-columns: 1fr; gap: .5rem; }
}

/* News pagination — minimal, text-only.
   JS injects the buttons; absent without JS so full list shows. */
.news-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .25rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  font-family: var(--font-sans);
}
.news-pager__btn {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: .92rem;
  letter-spacing: .02em;
  color: var(--color-text-mute);
  padding: .35rem .55rem;
  min-width: 1.9rem;
  border-radius: 2px;
  transition: color .15s ease;
}
.news-pager__btn:hover:not(:disabled) { color: var(--color-text); }
.news-pager__btn.is-active {
  color: var(--color-text);
  font-weight: 600;
  position: relative;
}
.news-pager__btn.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: .1rem;
  transform: translateX(-50%);
  width: 14px;
  height: 1px;
  background: var(--color-accent);
}
.news-pager__btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.news-pager__btn--nav {
  font-size: 1.1rem;
  padding: .35rem .75rem;
  line-height: 1;
}
.news-pager__ellipsis {
  color: var(--color-text-mute);
  padding: 0 .25rem;
  user-select: none;
}

/* =====================================================================
   Criteria grid (Investment Criteria page)
   ===================================================================== */

.criteria-targets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
}
.criteria-targets__label {
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  margin-bottom: .5rem;
}
.criteria-targets__value {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  color: var(--color-accent);
  line-height: 1;
}

.criteria-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 3rem;
  list-style: none;
  padding: 0;
}
.criteria-list li {
  padding: .5rem 0 .5rem 1.5rem;
  position: relative;
}
.criteria-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 1rem;
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

@media (max-width: 720px) {
  .criteria-targets { grid-template-columns: 1fr; gap: 2rem; }
  .criteria-list { grid-template-columns: 1fr; }
}

/* =====================================================================
   Contact page
   ===================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-block {
  display: flex;
  flex-direction: column;
}
.contact-block__heading {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 1rem;
}
.contact-block__rule {
  border: 0;
  border-top: 2px solid var(--color-rule);
  margin: 0 0 1.5rem;
}
.contact-block__label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  margin: 0 0 .5rem;
}
.contact-block__address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 1.5rem;
}
.contact-block__email {
  margin: 0 0 1.5rem;
  font-size: 1rem;
}
.contact-block__email a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.contact-block__email a:hover { color: var(--color-accent-hover); }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* =====================================================================
   Footer
   ===================================================================== */

.site-footer {
  background: var(--color-bg);
  color: var(--color-text-body);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--color-rule);
}
.site-footer a { color: var(--color-text); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-rule);
}
.site-footer__brand img { width: 200px; max-width: 100%; height: auto; margin-bottom: 1rem; }
.site-footer__brand p { color: var(--color-text-mute); font-size: .95rem; }

.site-footer__heading {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  margin-bottom: 1rem;
}
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: .5rem; font-size: .95rem; }

.site-footer__form input[type="email"] {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--color-rule-strong);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  margin-bottom: .75rem;
}
.site-footer__form input[type="email"]::placeholder { color: var(--color-text-mute); }
.site-footer__form button {
  padding: .65rem 1.4rem;
  border-radius: 999px;
  border: 0;
  background: var(--color-accent);
  color: var(--color-text-invert);
  font: inherit;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  cursor: pointer;
}
.site-footer__form button:hover { background: var(--color-accent-hover); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: .85rem;
  color: var(--color-text-mute);
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer__bottom a { color: var(--color-text-mute); }

@media (max-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* =====================================================================
   404
   ===================================================================== */

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.error-page__code {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  color: var(--color-accent);
  margin: 0 0 1rem;
  letter-spacing: -.02em;
}

/* =====================================================================
   News — year-grouped listing
   ===================================================================== */

.news-year-section + .news-year-section { margin-top: 3rem; }

.news-year {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--color-rule);
}

.news-list__title a {
  color: inherit;
}
.news-list__title a:hover {
  color: var(--color-accent);
}

/* =====================================================================
   News detail page
   ===================================================================== */

.news-detail__back {
  display: inline-flex;
  margin-bottom: 2.5rem;
}
.news-detail__date {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  margin-bottom: .75rem;
}
.news-detail__title {
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 2rem;
  letter-spacing: -.005em;
}
.news-detail__body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-body);
}
.news-detail__body p { margin: 0 0 1.25em; }
.news-detail__body p:last-child { margin-bottom: 0; }
.news-detail__body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.news-detail__body a:hover { color: var(--color-accent-hover); }
.news-detail__body strong { color: var(--color-text); font-weight: 600; }
.news-detail__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: var(--color-bg-soft);
  padding: .1em .4em;
  border-radius: 3px;
}

/* =====================================================================
   Portfolio detail page
   ===================================================================== */

.portfolio-detail__header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-rule);
}
.portfolio-detail__logo {
  background: var(--color-bg-soft);
  border-radius: 4px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}
.portfolio-detail__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.portfolio-detail__name {
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 1rem;
  letter-spacing: -.005em;
}
.portfolio-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.portfolio-detail__tag {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 2px;
  background: var(--color-bg-soft);
  color: var(--color-text-mute);
}
.portfolio-detail__tag--current { color: var(--color-accent); }
.portfolio-detail__website {
  margin: 0;
  font-size: .95rem;
}
.portfolio-detail__website a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.portfolio-detail__website a:hover { color: var(--color-accent-hover); }
.portfolio-detail__body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-body);
}
.portfolio-detail__body p { margin: 0 0 1.25em; }
.portfolio-detail__body p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .portfolio-detail__header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .portfolio-detail__logo { max-width: 220px; }
}

/* =====================================================================
   Team detail page
   ===================================================================== */

.team-detail__header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.team-detail__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  background: var(--color-bg-soft);
}
.team-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-detail__name {
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 .5rem;
  letter-spacing: -.005em;
}
.team-detail__title {
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 0 0 1rem;
}
.team-detail__contact { margin: 0; font-size: .95rem; }
.team-detail__contact a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.team-detail__contact a:hover { color: var(--color-accent-hover); }
.team-detail__contact-sep {
  color: var(--color-text-mute);
  margin: 0 .15rem;
}
.team-detail__body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-body);
}
.team-detail__body p { margin: 0 0 1.25em; }
.team-detail__body p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .team-detail__header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .team-detail__photo { max-width: 220px; }
}

/* =====================================================================
   Portfolio — filter pills + grouped sections
   ===================================================================== */

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.portfolio-filters + .portfolio-filters { margin-bottom: 2.5rem; }

.portfolio-filters__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  margin-right: .5rem;
}

.filter-pill {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .4rem .9rem;
  border: 1px solid var(--color-rule-strong);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.filter-pill:hover {
  border-color: var(--color-text);
}
.filter-pill.is-active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-text-invert);
}

/* Filter-driven hidden state — JS toggles this on cards */
.is-hidden-by-filter { display: none !important; }

.portfolio-empty {
  margin: 3rem 0 0;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--color-text-mute);
  font-size: 1rem;
  border: 1px dashed var(--color-rule);
  border-radius: 4px;
}

/* =====================================================================
   Legal prose (privacy policy, terms)
   ===================================================================== */

.legal-prose {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}
.legal-prose > p:first-child {
  margin-top: 0;
}
.legal-prose p,
.legal-prose ul,
.legal-prose ol {
  margin: 0 0 1.1rem;
}
.legal-prose ul,
.legal-prose ol {
  padding-left: 1.4rem;
}
.legal-prose li {
  margin-bottom: .5rem;
}
.legal-prose h2 {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  margin: 2.75rem 0 1rem;
  line-height: 1.25;
}
.legal-prose h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 2rem 0 .75rem;
}
.legal-prose hr {
  border: 0;
  border-top: 1px solid var(--color-rule);
  margin: 2.5rem 0;
}
.legal-prose a {
  color: var(--color-accent, var(--color-brand));
  text-decoration: underline;
}
.legal-prose a:hover {
  color: var(--color-accent-hover, var(--color-brand));
}
.legal-prose__meta {
  font-size: .9rem;
  color: var(--color-text-mute);
  margin-bottom: 2rem;
}
.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: .95rem;
}
.legal-prose th,
.legal-prose td {
  border: 1px solid var(--color-rule);
  padding: .65rem .85rem;
  text-align: left;
  vertical-align: top;
}
.legal-prose th {
  background: var(--color-bg-soft);
  font-weight: 600;
}

/* =====================================================================
   Misc
   ===================================================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
