/*
Theme Name: Climate Venture Capital Fund
Theme URI: https://climatevcfund.com
Author: 2040 Ventures
Author URI: https://2040ventures.com
Description: Custom theme for the Climate Venture Capital Fund website. Editorial-magazine register, Inter ExtraBold + Source Serif Pro typography, Bloomberg-density layouts. Built on the Phase 4 copy deck and Phase 3 design direction.
Version: 0.7.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: cvcf
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;800&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

/* ========================================================================
   Design tokens
   ======================================================================== */

:root {
  /* Brand-kit colours */
  --colour-dark-blue: #1C1C48;
  --colour-bright-blue: #00598F;
  --colour-green: #1B8F81;
  --colour-aqua: #49C2C2;
  --colour-light-grey: #E6E8F0;

  /* Phase 3 additions */
  --colour-page-bg: #FAFAF7;
  --colour-charcoal: #1A1A1A;
  --colour-disclaimer-sand: #F2EFE6;
  --colour-text-muted: #5A5A5A;
  /* Alternate section background, used on .section.section-alt to break the
     editorial pace between same-toned sections. Cooler/greyer than page-bg
     so the contrast is visible at glance. */
  --colour-section-alt: #ECEEF2;

  /* Semantic tokens */
  --colour-page-bg-dark: var(--colour-dark-blue);
  --colour-text-primary: var(--colour-charcoal);
  --colour-text-on-dark: var(--colour-page-bg);
  --colour-text-secondary: var(--colour-dark-blue);
  --colour-accent-impact: var(--colour-green);
  --colour-accent-aip: var(--colour-bright-blue);
  --colour-accent-feature: var(--colour-aqua);
  --colour-link: var(--colour-bright-blue);
  --colour-link-hover: var(--colour-dark-blue);
  --colour-button-bg: var(--colour-dark-blue);
  --colour-button-text: var(--colour-page-bg);
  --colour-divider: var(--colour-light-grey);

  /* Layout */
  --container-max: 1200px;
  --gutter: 24px;
  --section-gap-desktop: 120px;
  --section-gap-mobile: 80px;

  /* Type families */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
}

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--colour-page-bg);
  color: var(--colour-text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1;
}
.container { text-align: left; }

/* Hide Elementor Pro Theme Builder header/footer injections so the
   cvcf-website nav and footer take over. Targets Elementor theme-location
   wrappers without affecting Elementor body content on pages we keep in
   Elementor. */
[data-elementor-type="header"],
[data-elementor-type="footer"],
.elementor-location-header,
.elementor-location-footer,
header.elementor-section-wrap,
footer.elementor-section-wrap { display: none !important; }

/* Defensive visibility on our own chrome, in case any plugin tries to hide
   them via a generic selector. */
body > nav.nav,
nav.nav { display: block !important; visibility: visible !important; }
body > footer.footer,
footer.footer { display: block !important; visibility: visible !important; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--colour-link); text-decoration: underline; text-underline-offset: 0.2em; }
a:hover { color: var(--colour-link-hover); text-decoration-thickness: 2px; }
button { font: inherit; border: 0; background: 0; cursor: pointer; }
ul { list-style: none; }

/* ========================================================================
   Typography
   ======================================================================== */

/* Display sizes use clamp() for fluid responsive scaling. The vw component
   ensures the headline fits "commercial advantage" on a single line across
   viewports that would otherwise force a wrap. The min/max stops match the
   design-direction.md tokens (88/56 desktop/mobile for display-xl, 64/40
   for display-lg). */
/* text-wrap: balance redistributes words across lines so no line is much
   shorter than the others, eliminating widow / orphan single-word lines on
   editorial headlines. Supported in Chrome 114+, Firefox 121+, Safari 17.5+;
   falls back to default wrapping in older browsers. */
.t-display-xl  { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 5.5vw, 76px); line-height: 1.0; letter-spacing: -0.02em; text-wrap: balance; }
.t-display-lg  { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
.t-headline    { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.t-subhead     { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -0.005em; text-wrap: balance; }
.t-eyebrow     { font-family: var(--font-display); font-weight: 500; font-size: 13px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--colour-text-secondary); }
.t-body-lg     { font-family: var(--font-body); font-weight: 400; font-size: 20px; line-height: 1.5; }
.t-body        { font-family: var(--font-body); font-weight: 400; font-size: 17px; line-height: 1.6; }
.t-body-sm     { font-family: var(--font-body); font-weight: 400; font-size: 15px; line-height: 1.5; }
.t-caption     { font-family: var(--font-display); font-weight: 500; font-size: 13px; line-height: 1.4; letter-spacing: 0.02em; color: var(--colour-text-muted); }
.t-tabular     { font-family: var(--font-body); font-weight: 400; font-feature-settings: 'tnum' 1, 'lnum' 1; }
.t-italic      { font-style: italic; }

@media (max-width: 768px) {
  .t-body-lg    { font-size: 18px; }
  .t-body       { font-size: 16px; }
}

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

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-gap-desktop) 0; }
@media (max-width: 768px) {
  .section { padding: var(--section-gap-mobile) 0; }
}
.section-divider { border-top: 1px solid var(--colour-divider); padding-top: 80px; margin-top: 80px; }
.dark { background: var(--colour-page-bg-dark); color: var(--colour-text-on-dark); }
.dark .t-eyebrow { color: var(--colour-text-on-dark); opacity: 0.7; }
.section.section-alt { background: var(--colour-section-alt); }

/* ========================================================================
   Hero section, full-bleed portfolio-company photo treatment
   Per design-direction.md photography direction: "Home hero: uses one
   rotating portfolio-company image, large; pillar text overlays" and
   "Full-bleed colour where the asset is strong (MGA blocks, Liquium
   hardware, NovoLabs UV system)". This implementation applies a left-to-
   right dark-navy gradient over a full-bleed photo so the headline reads
   white-on-dark on the left while the photo shows on the right.
   Photo source: MGA Thermal blocks on the production line.
   ======================================================================== */

.section.hero {
  position: relative;
  background:
    linear-gradient(to right,
      rgba(28, 28, 72, 0.92) 0%,
      rgba(28, 28, 72, 0.80) 35%,
      rgba(28, 28, 72, 0.45) 70%,
      rgba(28, 28, 72, 0.15) 100%),
    url('assets/images/hero/mga-blocks.jpg') center center / cover no-repeat;
  background-color: var(--colour-dark-blue);
  color: var(--colour-text-on-dark);
  overflow: hidden;
}
.section.hero > .container { position: relative; z-index: 1; }

/* Hero text colours, inverted for legibility on the dark photo overlay */
.section.hero .t-eyebrow {
  color: var(--colour-accent-feature);
  opacity: 1;
}
.section.hero .t-display-xl,
.section.hero h1 {
  color: var(--colour-text-on-dark);
}
.section.hero .t-body-lg,
.section.hero .hero-body,
.section.hero p.t-body-lg,
.section.hero p.hero-body {
  color: rgba(250, 250, 247, 0.92);
}
.section.hero .hero-body strong {
  color: var(--colour-text-on-dark);
  font-weight: 600;
}

/* CTAs on the dark hero: primary stays dark-on-white-text but with brighter
   border for visibility; secondary inverts to white-on-transparent. */
.section.hero a.btn.btn-primary,
.section.hero .btn.btn-primary {
  background: var(--colour-page-bg);
  color: var(--colour-dark-blue);
  border-color: var(--colour-page-bg);
}
.section.hero a.btn.btn-primary:hover,
.section.hero .btn.btn-primary:hover {
  background: var(--colour-accent-feature);
  color: var(--colour-dark-blue);
  border-color: var(--colour-accent-feature);
}
.section.hero a.btn.btn-secondary,
.section.hero .btn.btn-secondary {
  background: transparent;
  color: var(--colour-text-on-dark);
  border-color: var(--colour-text-on-dark);
}
.section.hero a.btn.btn-secondary:hover,
.section.hero .btn.btn-secondary:hover {
  background: var(--colour-text-on-dark);
  color: var(--colour-dark-blue);
  border-color: var(--colour-text-on-dark);
}

@media (max-width: 900px) {
  /* On narrower viewports, increase the dark gradient extent so the
     headline still has a dark backdrop even when the layout reflows. */
  .section.hero {
    background:
      linear-gradient(to bottom,
        rgba(28, 28, 72, 0.88) 0%,
        rgba(28, 28, 72, 0.78) 60%,
        rgba(28, 28, 72, 0.55) 100%),
      url('assets/images/hero/mga-blocks.jpg') center center / cover no-repeat;
    background-color: var(--colour-dark-blue);
  }
}

/* ========================================================================
   Hero, dark variant without photo (.hero.hero--dark)
   For pages that lead typography-first on a dark background, no photo:
   AIP page, Governance page. Same colour treatment as the photo hero so
   text styling cascades work; no background image.
   ======================================================================== */

.section.hero.hero--dark {
  background:
    linear-gradient(135deg,
      rgba(28, 28, 72, 1) 0%,
      rgba(20, 20, 50, 1) 60%,
      rgba(14, 14, 40, 1) 100%);
  background-color: var(--colour-dark-blue);
  color: var(--colour-text-on-dark);
  overflow: hidden;
  position: relative;
}
.section.hero.hero--dark::before {
  /* Subtle Bloomberg-style data grid that fades out below the hero
     content. Adds depth without decoration. */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(73, 194, 194, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(73, 194, 194, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
  pointer-events: none;
}
.section.hero.hero--dark > .container { position: relative; z-index: 1; }

/* AIP-page hero accent: bright-blue eyebrow per design-direction.md
   `--colour-accent-aip` token. Distinguishes the AIP audience surface
   from the home / CF2 aqua eyebrow. */
.section.hero.hero--aip .t-eyebrow {
  color: var(--colour-accent-aip);
  opacity: 1;
}

/* Hero subhead variant for the IM-quote-as-headline (used on Governance):
   the quote replaces the H1 headline; we render in display-lg italic. */
.hero-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Pull-quote in section context (used on Governance and Climate Fund 2). */
.section.dark .pull-quote { color: var(--colour-text-on-dark); }
.section.dark .pull-attribution { color: var(--colour-text-on-dark); opacity: 0.7; }

/* IRIS+ methodology block (Governance page, custom 2-up). */
.iris-methodology { display: grid; grid-template-columns: 4fr 6fr; gap: 64px; align-items: start; margin-top: 48px; }
.iris-methodology .iris-intro p { font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--colour-text-primary); }
.iris-methodology .iris-steps { display: flex; flex-direction: column; gap: 32px; }
.iris-methodology .iris-step { border-top: 2px solid var(--colour-text-secondary); padding-top: 16px; }
.iris-methodology .iris-step-num { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; color: var(--colour-text-secondary); margin-bottom: 8px; }
.iris-methodology .iris-step h3 { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.iris-methodology .iris-step p { font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--colour-text-primary); }
@media (max-width: 900px) {
  .iris-methodology { grid-template-columns: 1fr; gap: 32px; }
}

/* IM-download lockup section (Climate Fund 2 + Documents hub). */
.im-lockup { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; max-width: 1080px; }
.im-lockup .im-cover {
  aspect-ratio: 0.71;
  background: linear-gradient(180deg, #1c1c48 0%, #00598F 100%);
  position: relative;
  max-width: 360px;
  border-radius: 2px;
}
.im-lockup img.im-cover--image {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 0.71;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  background: var(--colour-light-grey);
}
.im-lockup .im-cover-text { position: absolute; top: 32px; left: 32px; right: 32px; color: var(--colour-page-bg); }
.im-lockup .im-cover-eyebrow { font-family: var(--font-display); font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.im-lockup .im-cover-headline { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.15; margin-top: 12px; }
.im-lockup .im-cover-date { font-family: var(--font-body); font-size: 14px; margin-top: 24px; opacity: 0.8; }
.im-lockup .im-content ul { padding-left: 0; list-style: none; margin-top: 12px; font-family: var(--font-body); font-size: 15px; line-height: 1.7; }
.im-lockup .im-content ul li::before { content: '· '; color: var(--colour-text-secondary); }
@media (max-width: 900px) {
  .im-lockup { grid-template-columns: 1fr; gap: 32px; }
}

/* AIP step block, secondary detail line under step body. */
.aip-step-body--detail { font-size: 13px; opacity: 0.7; margin-top: 12px; }

/* Footnote / small annotation paragraph (after fund-terms tables, etc.). */
.section-footnote {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--colour-text-muted);
  margin-top: 24px;
  max-width: 800px;
}

/* Direct contact block (Contact + AIP forms; left rail). */
.direct-contact { padding-top: 24px; border-top: 1px solid var(--colour-divider); margin-top: 32px; }
.direct-contact-name { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.direct-contact-role { font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--colour-text-muted); margin-top: 4px; }
.direct-contact-detail { font-family: var(--font-body); font-size: 15px; margin-top: 12px; line-height: 1.7; }

/* ========================================================================
   Batch 3 styles
   ======================================================================== */

/* Team grid (CP-16). Used on Raise Capital, Contact, About + Team. */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 80px; margin-top: 64px; }
.team-grid--mini { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.team-member { display: flex; gap: 24px; align-items: flex-start; }
.team-headshot { width: 120px; height: 120px; background: var(--colour-light-grey); border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.team-grid--mini .team-headshot { width: 80px; height: 80px; }
img.team-headshot { display: block; }
.team-content { flex: 1; min-width: 0; }
.team-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.3; }
.team-grid--mini .team-name { font-size: 18px; }
.team-role { font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--colour-text-muted); margin-top: 4px; }
.team-bio { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--colour-text-muted); margin-top: 16px; }
.team-contact { font-family: var(--font-body); font-size: 14px; margin-top: 16px; }
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; gap: 48px; }
  .team-grid--mini { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .team-grid--mini { grid-template-columns: 1fr; }
  .team-member { flex-direction: column; gap: 16px; }
}

/* Portfolio index, filterable grid eyebrow + chips. */
.portfolio-index-eyebrow { font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--colour-text-secondary); }
.portfolio-filter-bar { margin-top: 32px; }

/* Single portfolio company hero meta block (4-cell). */
.pc-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--colour-divider); }
@media (max-width: 700px) { .pc-meta { grid-template-columns: repeat(2, 1fr); } }

/* Single blog post / article body (CP-13). */
.article-meta { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--colour-divider); }
.article-meta-avatar { width: 48px; height: 48px; background: var(--colour-light-grey); border-radius: 50%; flex-shrink: 0; }
.article-meta-text { font-family: var(--font-body); font-size: 14px; line-height: 1.5; }
.article-meta-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.3; }
.article-meta-detail { font-family: var(--font-body); font-size: 14px; color: var(--colour-text-muted); }

/* Insights / blog index hero. */
.insights-hero { padding-bottom: 32px; }

/* Documents hub teaser cards (3-up). */
.documents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.document-card { display: block; padding: 32px; background: var(--colour-section-alt); border: 1px solid var(--colour-divider); text-decoration: none; color: var(--colour-text-primary); transition: border-color 150ms ease; }
.document-card:hover { border-color: var(--colour-text-secondary); text-decoration: none; }
.document-card .t-eyebrow { font-size: 11px; }
.document-card h3 { margin-top: 12px; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.3; }
.document-card p { margin-top: 12px; font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--colour-text-muted); }
@media (max-width: 900px) { .documents-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Legal page section. */
.legal-section { max-width: 900px; }
.legal-section h2 { margin-top: 64px; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.2; }
.legal-section h2:first-child { margin-top: 0; }
.legal-section p { font-family: var(--font-body); font-size: 17px; line-height: 1.7; margin-top: 16px; }
.legal-section .btn { margin-top: 24px; }

/* Raise Capital, what-we-fund 2-col list. */
.what-we-fund { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
.what-we-fund h3 { font-family: var(--font-display); font-weight: 800; font-size: 19px; margin-bottom: 16px; }
.what-we-fund ul { list-style: none; padding: 0; }
.what-we-fund li { font-family: var(--font-body); font-size: 16px; line-height: 1.6; padding: 12px 0; border-bottom: 1px solid var(--colour-divider); }
.what-we-fund li:last-child { border-bottom: 0; }
@media (max-width: 768px) {
  .what-we-fund { grid-template-columns: 1fr; gap: 32px; }
}

/* How-we-work, dark 3-col block. */
.how-we-work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 48px; }
.how-we-work .col { border-top: 2px solid var(--colour-accent-feature); padding-top: 24px; }
.how-we-work h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.3; }
.how-we-work p { font-family: var(--font-body); font-size: 16px; line-height: 1.6; margin-top: 16px; opacity: 0.85; }
@media (max-width: 900px) { .how-we-work { grid-template-columns: 1fr; gap: 32px; } }

/* Routing cards (Contact page; 3-up). */
.routing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.routing-card { display: block; padding: 28px; background: var(--colour-section-alt); border: 1px solid var(--colour-divider); text-decoration: none; color: var(--colour-text-primary); }
.routing-card:hover { border-color: var(--colour-text-secondary); text-decoration: none; }
.routing-card .t-caption { text-transform: uppercase; }
.routing-card h3 { margin-top: 8px; font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.3; }
.routing-card p { font-family: var(--font-body); font-size: 14px; line-height: 1.5; margin-top: 12px; color: var(--colour-text-muted); }
@media (max-width: 900px) { .routing-cards { grid-template-columns: 1fr; gap: 16px; } }

/* Track Record FY report block.
   Note: second grid track is pinned at 320px (not 1fr) so .fy-cover gets a real
   box. .fy-cover has only an absolutely-positioned child, so a 1fr track has no
   intrinsic content width to anchor to and aspect-ratio computes off width 0,
   collapsing the cover. */
.fy-report { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: center; margin-top: 48px; }
.fy-report .fy-cover { width: 320px; aspect-ratio: 0.71; background: linear-gradient(180deg, #1c1c48 0%, #1B8F81 100%); position: relative; }
.fy-report img.fy-cover--image { width: 320px; aspect-ratio: 0.71; object-fit: cover; display: block; background: var(--colour-light-grey); }
.fy-report .fy-cover-text { position: absolute; top: 32px; left: 32px; right: 32px; color: var(--colour-page-bg); }
.fy-report .fy-cover-eyebrow { font-family: var(--font-display); font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.fy-report .fy-cover-headline { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.15; margin-top: 12px; }
.fy-report .fy-cover-detail { font-family: var(--font-body); font-size: 13px; margin-top: 24px; opacity: 0.8; }
@media (max-width: 900px) {
  .fy-report { grid-template-columns: 1fr; gap: 32px; }
  .fy-report .fy-cover,
  .fy-report img.fy-cover--image { width: 100%; max-width: 320px; }
}

/* HubSpot Impact Report gate form on the Track Record page. Form sits in
   the left column of .fy-report on the light .section-alt background, so
   inputs and labels use the light-bg palette (charcoal on cream) and the
   submit button matches the cvcf-website .btn-primary. */
.fy-report-form { max-width: 440px; }
.fy-report-form .hs-form { font-family: var(--font-body); }
.fy-report-form .hs-form fieldset { max-width: 100%; }
.fy-report-form .hs-form .hs-form-field { margin-bottom: 16px; }
.fy-report-form .hs-form .hs-form-field > label,
.fy-report-form .hs-form .hs-form-field > label span {
  color: var(--colour-text-muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.fy-report-form .hs-input {
  width: 100% !important;
  padding: 12px 14px;
  background: var(--colour-page-bg);
  border: 1px solid var(--colour-divider);
  color: var(--colour-text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  border-radius: 2px;
  box-sizing: border-box;
}
.fy-report-form .hs-input:focus {
  outline: 2px solid var(--colour-link);
  outline-offset: 1px;
  border-color: var(--colour-link);
}
.fy-report-form .legal-consent-container,
.fy-report-form .hs-form-booleancheckbox,
.fy-report-form .hs-form-booleancheckbox label,
.fy-report-form .hs-form-booleancheckbox label span,
.fy-report-form .legal-consent-container p {
  color: var(--colour-text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.fy-report-form .inputs-list { list-style: none; padding: 0; margin: 0; }
.fy-report-form .inputs-list li { margin-bottom: 4px; list-style: none; }
.fy-report-form .hs-form-booleancheckbox input[type="checkbox"] {
  width: auto !important;
  margin: 0 6px 0 0;
  vertical-align: middle;
}
.fy-report-form .hs-button,
.fy-report-form input[type="submit"].hs-button {
  background: var(--colour-dark-blue);
  color: var(--colour-page-bg);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  width: auto;
  margin-top: 8px;
}
.fy-report-form .hs-button:hover { opacity: 0.9; }
.fy-report-form .hs-error-msgs,
.fy-report-form .hs-error-msg {
  color: var(--colour-accent-feature);
  font-size: 13px;
  list-style: none;
  padding: 0;
  margin-top: -8px;
  margin-bottom: 8px;
}
.fy-report-form .submitted-message {
  color: var(--colour-text-primary);
  font-size: 16px;
}

/* ========================================================================
   Top navigation
   ======================================================================== */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--colour-page-bg);
  border-bottom: 1px solid var(--colour-divider);
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Nav logo, two states:
   1. Text fallback when no custom logo is set in Customize → Site Identity.
   2. Image (WP's the_custom_logo() output) when one is set. WP wraps the
      image in its own <a class="custom-logo-link">; the header.php emits
      that directly (no nested-anchor issue). Both states styled here. */
.nav .nav-logo,
.nav a.custom-logo-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--colour-text-secondary);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}
.nav .nav-logo:hover,
.nav a.custom-logo-link:hover { color: var(--colour-text-secondary); text-decoration: none; }

/* Constrain custom-logo image size in the nav. */
.nav .custom-logo,
.nav a.custom-logo-link img,
.nav-logo img {
  max-height: 36px;
  width: auto;
  height: auto;
  display: block;
}
.nav-items { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-items a { color: var(--colour-text-primary); text-decoration: none; }
.nav-items a:hover { color: var(--colour-link); text-decoration: none; }
nav.nav a.btn-invest,
nav.nav .btn-invest,
.nav a.btn-invest,
.nav .btn-invest {
  background-color: var(--colour-button-bg);
  background-image: none;
  color: var(--colour-button-text);
  padding: 10px 18px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 0;
  transition: background-color 150ms ease;
  display: inline-block;
  white-space: nowrap;
}
nav.nav a.btn-invest:link,
nav.nav a.btn-invest:visited,
.nav a.btn-invest:link,
.nav a.btn-invest:visited { color: var(--colour-button-text); background-color: var(--colour-button-bg); }
nav.nav a.btn-invest:hover,
nav.nav .btn-invest:hover,
.nav a.btn-invest:hover,
.nav .btn-invest:hover { background-color: var(--colour-bright-blue); color: var(--colour-button-text); text-decoration: none; }

@media (max-width: 900px) {
  .nav-items { display: none; }
}

/* ========================================================================
   Buttons
   ======================================================================== */

a.btn,
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 150ms ease;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
a.btn:hover, .btn:hover { text-decoration: none; }

a.btn.btn-primary,
.btn.btn-primary {
  background: var(--colour-button-bg);
  color: var(--colour-button-text);
  border-color: var(--colour-button-bg);
}
a.btn.btn-primary:hover,
a.btn.btn-primary:visited,
.btn.btn-primary:hover {
  background: var(--colour-bright-blue);
  color: var(--colour-button-text);
  border-color: var(--colour-bright-blue);
  text-decoration: none;
}
a.btn.btn-primary:visited { background: var(--colour-button-bg); border-color: var(--colour-button-bg); }

a.btn.btn-secondary,
.btn.btn-secondary {
  background: transparent;
  color: var(--colour-text-primary);
  border: 1px solid var(--colour-text-primary);
}
a.btn.btn-secondary:hover,
.btn.btn-secondary:hover {
  background: var(--colour-text-primary);
  color: var(--colour-page-bg);
  text-decoration: none;
}
.dark a.btn.btn-secondary,
.dark .btn.btn-secondary { color: var(--colour-text-on-dark); border-color: var(--colour-text-on-dark); }
.dark a.btn.btn-secondary:hover,
.dark .btn.btn-secondary:hover { background: var(--colour-text-on-dark); color: var(--colour-dark-blue); }

/* ========================================================================
   Hero phrase-reveal animation (the thesis signature)
   Each .phrase is a block; the trailing period sits inside the last
   .phrase span so it does not orphan to a new line.
   ======================================================================== */

.phrase-reveal { display: block; }
.phrase-reveal .phrase { display: block; opacity: 0; transform: translateY(8px); animation: phrase-in 600ms cubic-bezier(0.2, 0.65, 0.35, 1) forwards; }
.phrase-reveal .phrase:nth-child(1) { animation-delay: 100ms; }
.phrase-reveal .phrase:nth-child(2) { animation-delay: 350ms; }
.phrase-reveal .phrase:nth-child(3) { animation-delay: 600ms; }
.phrase-reveal .phrase:nth-child(4) { animation-delay: 850ms; }
@keyframes phrase-in {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .phrase-reveal .phrase { animation: none; opacity: 1; transform: none; }
}

/* ========================================================================
   Video section
   ======================================================================== */

.video-section { background: var(--colour-page-bg-dark); color: var(--colour-text-on-dark); padding: 80px 0; }
.video-frame {
  max-width: 1000px; margin: 32px auto 0; aspect-ratio: 16/9;
  background-color: #1c1c48;
  background-image: linear-gradient(135deg, #2a2a5c 0%, #1c1c48 60%, #0e0e30 100%);
  background-size: cover;
  background-position: center;
  position: relative; overflow: hidden; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: 0;
}
.video-frame::before {
  /* Very light vignette for play-button legibility against any thumbnail.
     Editorial register: minimum darkening, let the still frame show. */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.20) 100%);
  pointer-events: none;
}
.video-play {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--colour-page-bg); color: var(--colour-dark-blue);
  display: flex; align-items: center; justify-content: center;
  transition: transform 150ms ease;
  position: relative; z-index: 1;
}
.video-frame:hover .video-play { transform: scale(1.05); }
.video-play svg { width: 32px; height: 32px; transform: translateX(2px); }
.video-meta { display: flex; justify-content: space-between; max-width: 1000px; margin: 16px auto 0; opacity: 0.7; }

/* When the Vimeo iframe is injected by the click-to-play handler */
.video-frame iframe { width: 100%; height: 100%; border: 0; position: absolute; inset: 0; }

/* ========================================================================
   Three-pillar block
   ======================================================================== */

.three-pillar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 48px; }
.pillar { border-top: 2px solid var(--colour-text-secondary); padding-top: 24px; }
.dark .pillar { border-top-color: var(--colour-accent-feature); }
.pillar-num { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; opacity: 0.5; margin-bottom: 12px; }
.pillar-headline { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.2; letter-spacing: -0.005em; margin-bottom: 16px; }
.pillar-body { font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
@media (max-width: 768px) {
  .three-pillar { grid-template-columns: 1fr; gap: 32px; }
  .pillar-headline { font-size: 22px; }
}

/* ========================================================================
   Climate Impact Committee block
   ======================================================================== */

.cic-pull { font-family: var(--font-body); font-weight: 400; font-style: italic; font-size: 32px; line-height: 1.35; max-width: 920px; margin: 0 auto 16px; }
.cic-pull-attribution { font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; }
.cic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; margin-top: 64px; }
.cic-member { display: flex; flex-direction: column; gap: 10px; }
.cic-headshot {
  width: 96px; height: 96px;
  background: var(--colour-light-grey);
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
img.cic-headshot { display: block; }
.dark .cic-headshot { background: rgba(255,255,255,0.08); }
.cic-name { font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.3; margin-top: 4px; }
.cic-role { font-family: var(--font-body); font-size: 13px; line-height: 1.45; opacity: 0.75; }
@media (max-width: 768px) {
  .cic-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .cic-pull { font-size: 22px; }
  .cic-headshot { width: 80px; height: 80px; }
}

/* ========================================================================
   Portfolio grid + card
   ======================================================================== */

.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; }
.portfolio-card { display: flex; flex-direction: column; gap: 14px; }
.portfolio-image { aspect-ratio: 4/3; background: var(--colour-light-grey); position: relative; width: 100%; height: auto; object-fit: cover; display: block; }
/* Placeholder label only renders on the <div> variant; the ::after pseudo doesn't
   apply to <img> elements, so the real photo replaces the gradient cleanly. */
div.portfolio-image::after {
  content: attr(data-company);
  position: absolute; left: 16px; bottom: 16px;
  font-family: var(--font-display); font-weight: 500; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--colour-text-muted);
  opacity: 0.6;
}
.portfolio-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.3; }
.portfolio-desc { font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
.portfolio-tag { font-family: var(--font-display); font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--colour-text-muted); }
.portfolio-metric { font-family: var(--font-body); font-size: 14px; line-height: 1.4; color: var(--colour-text-secondary); padding-top: 8px; border-top: 1px solid var(--colour-divider); }
@media (max-width: 1000px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* ========================================================================
   Impact stat block
   ======================================================================== */

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { border-top: 2px solid var(--colour-text-secondary); padding-top: 16px; }
.dark .stat { border-top-color: var(--colour-accent-feature); }
.stat-number { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -0.02em; font-feature-settings: 'tnum' 1, 'lnum' 1; }
.stat-unit { font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 12px; opacity: 0.7; }
.stat-label { font-family: var(--font-body); font-size: 15px; line-height: 1.4; margin-top: 8px; }
.stat-footnote { font-family: var(--font-body); font-size: 13px; line-height: 1.4; margin-top: 32px; opacity: 0.7; }
@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-number { font-size: 48px; }
}

/* ========================================================================
   Fund-terms block
   ======================================================================== */

.fund-terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; margin-top: 32px; }
.fund-terms-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--colour-divider);
  padding: 18px 0;
  font-family: var(--font-body);
  font-size: 15px;
}
.dark .fund-terms-row { border-bottom-color: rgba(255,255,255,0.12); }
.fund-terms-label { font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; }
.fund-terms-value { font-feature-settings: 'tnum' 1, 'lnum' 1; }
@media (max-width: 768px) {
  .fund-terms { grid-template-columns: 1fr; gap: 0; }
}

/* ========================================================================
   Insights teasers
   ======================================================================== */

.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; align-items: start; }
.insight-card { display: flex; flex-direction: column; gap: 12px; }
/* Applies to both the placeholder <div class="insight-image"> and the <img class="insight-image">
   emitted by the_post_thumbnail(). object-fit: cover crops to 16:10 instead of squishing. */
.insight-image { aspect-ratio: 16/10; background: var(--colour-light-grey); width: 100%; height: auto; object-fit: cover; display: block; }
.insight-tag { font-family: var(--font-display); font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--colour-text-muted); }
.insight-headline { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.25; letter-spacing: -0.005em; }
.insight-excerpt { font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
.insight-byline { font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 0.04em; color: var(--colour-text-muted); }
@media (max-width: 900px) { .insights-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Pagination, used on the Insights index (page-insights.php). WP renders
   paginate_links() with type=list as <nav class="pagination"><ul class="page-numbers">
   <li><a|span class="page-numbers ...">N</a|span></li>...</ul></nav>. */
.pagination { text-align: center; margin-top: 16px; }
.pagination ul.page-numbers {
  list-style: none; padding: 0; margin: 0;
  display: inline-flex; flex-wrap: wrap; gap: 4px;
  justify-content: center; align-items: center;
}
.pagination ul.page-numbers li { margin: 0; list-style: none; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  font-family: var(--font-body); font-size: 15px;
  color: var(--colour-text-primary);
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--colour-page-bg);
  border-radius: 2px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pagination .page-numbers:hover {
  border-color: var(--colour-accent-feature);
  color: var(--colour-accent-feature);
  text-decoration: none;
}
.pagination .page-numbers.current {
  background: var(--colour-dark-blue);
  border-color: var(--colour-dark-blue);
  color: var(--colour-page-bg);
  font-weight: 500;
}
.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: var(--colour-text-muted);
  cursor: default;
}
.pagination .prev,
.pagination .next {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0 16px;
}

/* ========================================================================
   Awards strip
   ======================================================================== */

.awards-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--colour-divider);
  border-bottom: 1px solid var(--colour-divider);
  margin-top: 0;
}
.award { text-align: left; }
/* Fixed-height slot reserves consistent vertical space so text below aligns
   across cards regardless of each logo's intrinsic aspect ratio. */
.award-logo-slot { height: 72px; display: flex; align-items: center; margin-bottom: 16px; }
.award-logo { display: block; max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; object-position: left center; }
.award-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.award-detail { font-family: var(--font-body); font-size: 14px; line-height: 1.4; opacity: 0.75; }
.award-year { font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 0.04em; color: var(--colour-text-muted); margin-top: 6px; }
@media (max-width: 900px) { .awards-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 600px) { .awards-strip { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; } }

/* ========================================================================
   Pull-quote
   ======================================================================== */

.pull-quote {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 36px;
  line-height: 1.35;
  max-width: 900px;
  margin: 0 auto;
}
.pull-attribution {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 24px;
}
@media (max-width: 768px) { .pull-quote { font-size: 24px; } }

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

/* Footer chrome. Specificity is bumped (footer.footer ...) so the colour
   rules win against Hello Elementor / Elementor Pro CSS that may target
   `a` or `.menu a` from a stylesheet loaded after ours. */
footer.footer { background: var(--colour-page-bg-dark) !important; color: var(--colour-text-on-dark); padding: 80px 0 32px; margin-top: 0; }
footer.footer .container { color: var(--colour-text-on-dark); }
footer.footer p,
footer.footer li,
footer.footer h4 { color: var(--colour-text-on-dark); }
footer.footer a,
footer.footer a:link,
footer.footer a:visited { color: var(--colour-text-on-dark); text-decoration: none; }
footer.footer a:hover { color: var(--colour-accent-feature); text-decoration: none; }

.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; margin-bottom: 64px; }
footer.footer .footer-col h4 { font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; margin-bottom: 18px; color: var(--colour-text-on-dark); }
footer.footer .footer-col ul,
footer.footer .footer-col .menu { list-style: none; padding: 0; margin: 0; }
footer.footer .footer-col li,
footer.footer .footer-col .menu-item { margin-bottom: 10px; list-style: none; }
footer.footer .footer-col a {
  color: var(--colour-text-on-dark);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
}
footer.footer .footer-col a:hover { color: var(--colour-accent-feature); text-decoration: none; }
.footer-subscribe input {
  width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18); color: var(--colour-text-on-dark);
  font-family: var(--font-body); font-size: 15px; margin-bottom: 12px; border-radius: 2px;
}
.footer-subscribe input::placeholder { color: rgba(255,255,255,0.45); }
.footer-subscribe label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: var(--colour-text-on-dark);
  opacity: 0.7;
  margin-bottom: 12px;
}
/* HubSpot form embed overrides for the dark footer. The embed renders
   .hbspt-form > .hs-form with HubSpot's default light-background styling.
   These rules force inputs, labels, checkboxes, and the submit button to
   match the cvcf-website footer's dark palette. */
.footer-subscribe .hs-form { font-family: var(--font-body); }
.footer-subscribe .hs-form fieldset { max-width: 100%; }
.footer-subscribe .hs-form .hs-form-field > label,
.footer-subscribe .hs-form .hs-form-field > label span {
  color: var(--colour-text-on-dark);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
  display: block;
}
.footer-subscribe .hs-input {
  width: 100% !important;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--colour-text-on-dark);
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 12px;
  border-radius: 2px;
  box-sizing: border-box;
}
.footer-subscribe .hs-input::placeholder { color: rgba(255,255,255,0.45); }
.footer-subscribe .hs-input:focus {
  outline: 2px solid var(--colour-accent-feature);
  outline-offset: 1px;
  border-color: var(--colour-accent-feature);
}
.footer-subscribe .legal-consent-container,
.footer-subscribe .hs-form-booleancheckbox,
.footer-subscribe .hs-form-booleancheckbox label,
.footer-subscribe .hs-form-booleancheckbox label span,
.footer-subscribe .legal-consent-container p {
  color: var(--colour-text-on-dark);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.7;
}
.footer-subscribe .inputs-list { list-style: none; padding: 0; margin: 0; }
.footer-subscribe .inputs-list li { margin-bottom: 4px; list-style: none; }
.footer-subscribe .hs-form-booleancheckbox input[type="checkbox"] {
  width: auto !important;
  margin: 0 6px 0 0;
  vertical-align: middle;
}
.footer-subscribe .hs-button,
.footer-subscribe input[type="submit"].hs-button {
  background: var(--colour-page-bg);
  color: var(--colour-dark-blue);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  width: auto;
}
.footer-subscribe .hs-button:hover { opacity: 0.9; }
.footer-subscribe .hs-error-msgs,
.footer-subscribe .hs-error-msg {
  color: var(--colour-accent-feature);
  font-size: 12px;
  list-style: none;
  padding: 0;
  margin-top: -8px;
  margin-bottom: 8px;
}
.footer-subscribe .submitted-message {
  color: var(--colour-text-on-dark);
  font-size: 14px;
}
.footer-subscribe button {
  background: var(--colour-page-bg); color: var(--colour-dark-blue);
  padding: 10px 18px; font-family: var(--font-display); font-weight: 500;
  font-size: 14px; border-radius: 2px;
}
footer.footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 13px;
  opacity: 0.7;
}
footer.footer .footer-bottom p,
footer.footer .footer-bottom a,
footer.footer .footer-bottom a:link,
footer.footer .footer-bottom a:visited { color: var(--colour-text-on-dark); }
footer.footer .footer-bottom a:hover { color: var(--colour-accent-feature); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }

/* ========================================================================
   Forms
   ======================================================================== */

.form-card { background: var(--colour-page-bg); border: 1px solid var(--colour-divider); padding: 40px; max-width: 640px; }
.form-card-dark { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); }
.form-row { margin-bottom: 24px; }
.form-row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--colour-text-muted); margin-bottom: 8px; }
.dark .form-label { color: rgba(255,255,255,0.6); }
.form-input, .form-textarea {
  width: 100%; padding: 12px 14px;
  background: var(--colour-page-bg); border: 1px solid var(--colour-divider);
  font-family: var(--font-body); font-size: 16px; line-height: 1.4; color: var(--colour-text-primary);
  border-radius: 2px;
}
.dark .form-input, .dark .form-textarea {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: var(--colour-text-on-dark);
}
.form-input:focus, .form-textarea:focus { outline: 2px solid var(--colour-link); outline-offset: 1px; border-color: var(--colour-link); }
.form-help { font-family: var(--font-body); font-size: 13px; color: var(--colour-text-muted); margin-top: 6px; }
.form-radio-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.form-radio { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--colour-divider); border-radius: 2px; cursor: pointer; font-family: var(--font-body); font-size: 14px; }
.form-radio:hover { border-color: var(--colour-text-secondary); }
.form-radio input { accent-color: var(--colour-link); }
.form-consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-family: var(--font-body); font-size: 14px; line-height: 1.5; }
.form-consent input { margin-top: 4px; accent-color: var(--colour-link); flex-shrink: 0; }
.form-submit { display: block; width: 100%; padding: 14px 24px; background: var(--colour-button-bg); color: var(--colour-button-text); border: 0; font-family: var(--font-display); font-weight: 500; font-size: 15px; border-radius: 2px; cursor: pointer; margin-top: 8px; transition: background 150ms ease; letter-spacing: 0.01em; }
.form-submit:hover { background: var(--colour-bright-blue); }

/* ========================================================================
   Article body (single blog post)
   ======================================================================== */

/* ========================================================================
   Single blog post (single.php). Editorial typography in a 720px column,
   with defensive rules for old WP / Gutenberg / Classic / Elementor content.
   ======================================================================== */

/* Article body: the column that holds post content from the WP editor. */
.article-body { max-width: 720px; margin: 0 auto; font-size: 19px; line-height: 1.7; color: var(--colour-text-primary); }
.article-body p { font-family: var(--font-body); font-size: 19px; line-height: 1.7; margin-bottom: 24px; color: var(--colour-text-primary); }
.article-body h2 { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.25; letter-spacing: -0.01em; margin: 64px 0 24px; }
.article-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.3; margin: 48px 0 16px; }
.article-body h4 { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.35; margin: 32px 0 12px; letter-spacing: 0.02em; text-transform: uppercase; }
.article-body blockquote { border-left: 3px solid var(--colour-accent-feature); padding-left: 24px; margin: 32px 0; font-style: italic; font-size: 22px; line-height: 1.5; color: var(--colour-text-secondary); }
.article-body blockquote p { font-size: inherit; line-height: inherit; margin-bottom: 8px; color: inherit; }
.article-body blockquote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; color: var(--colour-text-muted); font-family: var(--font-display); font-weight: 500; letter-spacing: 0.04em; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 24px; }
.article-body ul li, .article-body ol li { font-family: var(--font-body); font-size: 19px; line-height: 1.7; margin-bottom: 8px; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body a { color: var(--colour-link); text-decoration: underline; text-underline-offset: 0.2em; }
.article-body a:hover { color: var(--colour-text-primary); }
.article-body strong, .article-body b { font-weight: 600; }
.article-body em, .article-body i { font-style: italic; }
.article-body hr { border: 0; height: 1px; background: var(--colour-divider); margin: 48px auto; max-width: 120px; }

/* Defensive rules for inline media. WP and old Elementor posts embed images,
   videos, figures, tables, and iframes at varying sizes. These rules force
   them to behave within the 720px column. */
.article-body img,
.article-body video,
.article-body iframe,
.article-body embed,
.article-body object {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 32px auto;
}
.article-body figure { margin: 32px 0; max-width: 100%; }
.article-body figure img { margin: 0 auto; }
.article-body figcaption,
.article-body .wp-caption-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--colour-text-muted);
  margin-top: 12px;
  text-align: left;
}

/* Gutenberg image alignment classes. Wide breaks out to 1080px; full to viewport. */
.article-body .alignwide,
.article-body figure.alignwide {
  max-width: min(1080px, 100vw);
  width: 100%;
  margin-left: 50%;
  transform: translateX(-50%);
}
.article-body .alignfull,
.article-body figure.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
.article-body .alignleft { float: left; margin: 8px 24px 24px 0; max-width: 50%; }
.article-body .alignright { float: right; margin: 8px 0 24px 24px; max-width: 50%; }
.article-body .aligncenter { margin-left: auto; margin-right: auto; }

/* Responsive iframes for embeds (YouTube, Vimeo, Twitter, etc.) when WP wraps
   them in <p> or a div without aspect-ratio handling. */
.article-body iframe { aspect-ratio: 16/9; height: auto; }
.article-body .wp-block-embed,
.article-body .wp-embed-aspect-16-9 .wp-block-embed__wrapper,
.article-body .wp-embed-responsive .wp-has-aspect-ratio iframe {
  width: 100%;
  margin: 32px auto;
}

/* Tables: responsive horizontal scroll, editorial border + padding. */
.article-body table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 16px;
  display: block;
  overflow-x: auto;
}
.article-body thead { background: var(--colour-section-alt); }
.article-body th,
.article-body td {
  padding: 12px 16px;
  border: 1px solid var(--colour-divider);
  text-align: left;
  vertical-align: top;
}
.article-body th { font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--colour-text-muted); }

/* Inline code + preformatted blocks. */
.article-body code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 2px 6px;
  background: var(--colour-section-alt);
  border-radius: 2px;
}
.article-body pre {
  background: var(--colour-section-alt);
  padding: 20px 24px;
  margin: 32px 0;
  overflow-x: auto;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.5;
}
.article-body pre code { padding: 0; background: transparent; font-size: inherit; }

/* Defensive: tame any unstyled wrappers from Classic editor or older Elementor */
.article-body > div,
.article-body > section,
.article-body .elementor-widget-container { max-width: 100%; }
.article-body p:empty { display: none; }

/* Article header + byline. */
.article-header { max-width: 880px; margin: 0 auto; text-align: left; }
.single-eyebrow { color: var(--colour-accent-impact); }
.single-title { margin-top: 16px; }
.single-deck { margin-top: 24px; font-size: 22px; line-height: 1.5; color: var(--colour-text-secondary); font-family: var(--font-body); font-style: italic; max-width: 720px; }
.article-byline { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--colour-divider); }
.byline-avatar { width: 56px; height: 56px; background: var(--colour-light-grey); border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.byline-avatar--img { width: 56px; height: 56px; }
.byline-text { font-family: var(--font-body); font-size: 15px; line-height: 1.4; }
.byline-name { font-family: var(--font-display); font-weight: 800; font-size: 16px; margin: 0; }
.byline-detail { color: var(--colour-text-muted); margin: 4px 0 0; }
.byline-sep { margin: 0 6px; opacity: 0.5; }

/* Breadcrumb above the article header. */
.single-breadcrumb { padding: 24px 0; border-bottom: 1px solid var(--colour-divider); }
.single-breadcrumb a { color: var(--colour-text-muted); text-decoration: none; transition: color 0.15s; }
.single-breadcrumb a:hover { color: var(--colour-text-primary); }
.single-breadcrumb-sep { margin: 0 8px; color: var(--colour-text-muted); opacity: 0.5; }

/* Single header section: tighten the bottom padding so it flows into the hero image. */
.section.single-header { padding-bottom: 48px; }

/* Featured image, full-container width with caption underneath. */
.single-hero-image { margin: 0 0 80px; padding: 0; }
.single-hero-image-img {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--colour-light-grey);
}
.single-hero-image-caption {
  max-width: 1200px;
  margin: 12px auto 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--colour-text-muted);
}

/* Body section spacing. */
.single-body { padding-bottom: 96px; }

/* End-of-article meta footer: tags + back link. */
.single-meta-footer { padding: 48px 0 96px; border-top: 1px solid var(--colour-divider); }
.single-meta-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.single-tags { flex: 1 1 auto; }
.single-tags-label { color: var(--colour-text-muted); margin-bottom: 12px; }
.single-tags-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.single-tags-list li { list-style: none; margin: 0; }
.single-tags-list a {
  display: inline-block;
  padding: 6px 12px;
  background: var(--colour-section-alt);
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--colour-text-primary);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.single-tags-list a:hover {
  background: var(--colour-dark-blue);
  color: var(--colour-page-bg);
}
.single-back-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--colour-link);
  text-decoration: none;
  flex-shrink: 0;
}
.single-back-link:hover { color: var(--colour-text-primary); }

/* Subscribe block grid (carried from previous template; scoped to .single-subscribe so other surfaces don't inherit). */
.single-subscribe .single-subscribe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .single-subscribe .single-subscribe-grid { grid-template-columns: 1fr; gap: 32px; }
  .single-meta-footer-inner { flex-direction: column; gap: 24px; }
}

/* ========================================================================
   Portfolio-company hero
   ======================================================================== */

.pc-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.pc-hero-image { aspect-ratio: 4/3; background: var(--colour-light-grey); position: relative; }
img.pc-hero-image,
img.pc-hero-image--photo { width: 100%; height: auto; object-fit: cover; display: block; }
.pc-hero-image::after { content: attr(data-company); position: absolute; left: 24px; bottom: 24px; font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--colour-text-muted); opacity: 0.6; }
.pc-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--colour-divider); }
.pc-meta-item { font-family: var(--font-body); font-size: 14px; }
.pc-meta-label { font-family: var(--font-display); font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--colour-text-muted); margin-bottom: 4px; }
@media (max-width: 900px) { .pc-hero { grid-template-columns: 1fr; gap: 32px; } }

/* ========================================================================
   AIP step block
   ======================================================================== */

.aip-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.aip-step { border-top: 2px solid var(--colour-accent-aip); padding-top: 20px; }
.aip-step-num { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; color: var(--colour-accent-aip); margin-bottom: 12px; }
.aip-step-headline { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.25; margin-bottom: 12px; }
.aip-step-body { font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
@media (max-width: 768px) { .aip-steps { grid-template-columns: 1fr; gap: 32px; } }

/* ========================================================================
   FAQ accordion
   ======================================================================== */

.faq { max-width: 880px; margin: 32px auto 0; }
.faq details { border-bottom: 1px solid var(--colour-divider); padding: 24px 0; }
.faq details[open] summary { color: var(--colour-link); }
.faq summary {
  font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.4;
  cursor: pointer; list-style: none; position: relative; padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 0;
  font-weight: 800; font-size: 24px; transition: transform 200ms ease;
}
.faq details[open] summary::after { content: '−'; }
.faq-answer { font-family: var(--font-body); font-size: 16px; line-height: 1.6; margin-top: 16px; max-width: 720px; color: var(--colour-text-primary); }
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ========================================================================
   Disclaimer block (FMCA Warning surface)
   ======================================================================== */

.disclaimer-block { background: var(--colour-disclaimer-sand); padding: 40px; border-left: 3px solid var(--colour-text-secondary); max-width: 900px; }
.disclaimer-block h3 { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.disclaimer-block p { font-family: var(--font-body); font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.disclaimer-block p:last-child { margin-bottom: 0; }

/* ========================================================================
   Filter chips
   ======================================================================== */

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 0; }
.filter-chip { display: inline-block; padding: 8px 14px; background: var(--colour-page-bg); border: 1px solid var(--colour-divider); font-family: var(--font-display); font-weight: 500; font-size: 13px; cursor: pointer; border-radius: 2px; transition: all 150ms ease; color: var(--colour-text-primary); text-decoration: none; }
.filter-chip:hover { border-color: var(--colour-text-secondary); text-decoration: none; }
.filter-chip.active { background: var(--colour-text-secondary); color: var(--colour-page-bg); border-color: var(--colour-text-secondary); }
.portfolio-card.is-hidden { display: none; }

/* ========================================================================
   WordPress core blocks (defensive overrides; the editorial register
   prevails when the active theme is cvcf-website)
   ======================================================================== */

.alignwide { max-width: var(--container-max); }
.alignfull { max-width: 100vw; }
