/*
Theme Name: Ascent Funds
Author: Ascent Funds
Description: Custom block theme for ascent-funds.com, built from the rev15 private-preview design. Includes page patterns for Home, Approach, Companies, Atomic Fund, People, Perspectives, Contact and Privacy, plus templates for existing posts.
Version: 1.0.11
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary. All rights reserved.
Text Domain: ascent-funds
*/

/* Ascent Funds — private preview */
:root {
  --paper: #ffffff;
  --paper-2: #f5f6f3;
  --ink: #0f1a2a;
  --body: #46505c;
  --muted: #6b7480;
  --line: #dde2e8;
  --accent: #aa8e59;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1120px;
  --pad-x: 24px;
  --section-y: 96px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: calc(var(--max) + 2 * var(--pad-x)); margin: 0 auto; padding: 0 var(--pad-x); }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Preview bar */
.preview-bar {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 12px;
  line-height: 1.4;
  padding: 6px var(--pad-x);
  text-align: center;
}
.preview-bar .variant {
  display: inline-block; margin-left: 8px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; position: relative; }
.brand { display: inline-block; line-height: 0; }
.brand img { width: 150px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a { font-size: 15px; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.menu-toggle {
  display: none; font: inherit; font-size: 15px; color: var(--ink);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; cursor: pointer;
}

/* Header on the dark hero */
.site-header--dark { background: transparent; border-bottom-color: rgba(255,255,255,.18); }
.site-header--dark .site-nav a, .site-header--dark .menu-toggle { color: #fff; }
.site-header--dark .menu-toggle { border-color: rgba(255,255,255,.5); }
.site-header--dark .site-nav a:hover { border-bottom-color: #fff; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .no-js .menu-toggle { display: none; }
  .site-header .wrap { flex-wrap: wrap; }
  .js .site-nav { display: none; width: 100%; padding: 4px 0 20px; }
  .js .site-nav.is-open { display: block; }
  .no-js .site-nav { width: 100%; padding-bottom: 16px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 0; }
  .site-header--dark .site-nav li { border-top-color: rgba(255,255,255,.18); }
}

/* Sections */
.section { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.section--first { border-top: 0; }
.section--alt { background: var(--paper-2); }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); flex: none; }
.section--alt .eyebrow, .card--alt .eyebrow { color: var(--body); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--body); max-width: 720px; }
.page-head { padding: 88px 0 64px; }
.page-head h1 { max-width: 820px; }

/* Buttons */
.btn {
  display: inline-block; font-size: 16px; line-height: 1.2; text-decoration: none;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  padding: 14px 26px; border-radius: 999px;
}
.btn:hover { background: #1d2c42; border-color: #1d2c42; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--paper-2); border-color: var(--paper-2); }
.link-arrow { font-size: 16px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.link-arrow--light { color: #fff; text-decoration-color: rgba(255,255,255,.6); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }


/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15,26,42,.88) 0%, rgba(15,26,42,.78) 55%, rgba(15,26,42,.45) 100%);
}
.hero__inner { min-height: calc(80vh - 80px); display: flex; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero__text { max-width: 640px; }
.hero .eyebrow { color: #fff; }
.hero h1 { color: #fff; }
.hero__sub { font-size: 1.25rem; line-height: 1.55; color: #fff; max-width: 560px; }
.hero__credit {
  position: absolute; right: var(--pad-x); bottom: 14px; margin: 0;
  font-size: 11px; line-height: 1.4; color: #fff; background: rgba(15,26,42,.75); padding: 3px 8px; border-radius: 4px;
}
@media (max-width: 760px) {
  .hero::before { background: rgba(15,26,42,.8); }
  .hero__inner { min-height: 0; padding-top: 56px; padding-bottom: 88px; }
}

/* Proof strip */
.proof { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.proof ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-size: 15px; color: var(--body); }
.proof li { display: flex; align-items: center; }
.proof li + li::before { content: "·"; margin: 0 14px; color: var(--accent); }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid--4 { grid-template-columns: 1fr; } }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; display: flex; flex-direction: column; }
.card--alt { background: var(--paper-2); }
.card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__body > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .3em; }
.card p { font-size: 16px; }
.card .meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.card--alt .meta { color: var(--body); }
.card__foot { margin-top: auto; padding-top: 12px; }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Person cards */
.tag {
  align-self: flex-start; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--body); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px;
}
.tag--advisor { border-color: var(--accent); color: var(--ink); }
.person .portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; background: var(--paper-2); }
.person .role { font-size: 14px; color: var(--muted); margin-bottom: 10px; line-height: 1.45; }
.placeholder-portrait {
  aspect-ratio: 4 / 5; background: var(--paper-2); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 3.5rem; color: var(--ink); letter-spacing: .02em; border-bottom: 1px solid var(--line);
}
.below-row { margin-top: 32px; }

/* Leadership (large person cards) */
.bio-card { display: grid; grid-template-columns: 280px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.bio-card + .bio-card { margin-top: 24px; }
.bio-card .portrait, .bio-card .placeholder-portrait { width: 100%; height: 100%; min-height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-bottom: 0; }
.bio-card__body { padding: 36px 40px; }
.bio-card__body p { font-size: 17px; }
.bio-card .role { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
@media (max-width: 760px) {
  .bio-card { grid-template-columns: 1fr; }
  .bio-card .portrait, .bio-card .placeholder-portrait { height: auto; max-height: 420px; }
  .bio-card__body { padding: 28px 24px; }
}
.note { font-size: 15px; color: var(--muted); }
.group-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.group-title h2 { margin: 0; }
.group + .group { margin-top: 72px; }

/* Doors */
.door .card__media img { aspect-ratio: 3 / 2; }
.door .card__body { padding: 32px; gap: 8px; }
.door h3 { font-size: 1.75rem; }
.door .actions { margin-top: 16px; }
.small { font-size: 14px; color: var(--muted); }

/* Teasers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 16px; } }

/* Numbered blocks */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .num { font-family: var(--serif); font-size: 1.5rem; color: var(--accent); line-height: 1.3; }
.steps h2 { font-size: 1.625rem; }
.steps p { max-width: 640px; margin: 0; }
@media (max-width: 640px) { .steps li { grid-template-columns: 1fr; gap: 8px; padding: 32px 0; } }

/* Companies */
.company { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.company + .company { margin-top: 24px; }
.company__media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.company__body { padding: 40px; display: flex; flex-direction: column; gap: 6px; }
.company__logo { width: 140px; height: auto; margin-bottom: 16px; }
.company--text { grid-template-columns: 1fr; }
.company--text .company__body { max-width: 760px; }
@media (max-width: 860px) {
  .company { grid-template-columns: 1fr; }
  .company__body { padding: 28px 24px; }
}
.nasdaq img { object-position: center top; }

/* Contact band */
.band { background: var(--ink); color: #fff; border-top: 0; }
.band h2 { color: #fff; }
.band p { color: #fff; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* Prose pages */
.prose { max-width: 720px; }
.prose p { margin-bottom: 1.1em; }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 15px; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.site-footer .brand img { width: 140px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.legal { margin: 24px 0 0; max-width: 860px; font-size: 13px; line-height: 1.6; color: var(--body); }

@media (max-width: 760px) {
  :root { --section-y: 64px; --pad-x: 20px; }
  body { font-size: 17px; }
  .page-head { padding: 56px 0 40px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Header over the home hero */
.stage { position: relative; }
.stage > .site-header--dark { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.stage .hero__inner { padding-top: 152px; }
@media (max-width: 860px) {
  .js .site-header--dark .site-nav.is-open { background: var(--ink); margin: 0 calc(-1 * var(--pad-x)); padding-left: var(--pad-x); padding-right: var(--pad-x); width: calc(100% + 2 * var(--pad-x)); }
}
@media (max-width: 760px) { .stage .hero__inner { padding-top: 128px; } }

@media (max-width: 640px) {
  .proof ul { flex-direction: column; align-items: center; gap: 4px; }
  .proof li + li::before { content: none; }
}
@media (max-width: 560px) {
  .person .portrait, .person .placeholder-portrait { aspect-ratio: 1 / 1; }
}

/* ===== Revision 2 ===== */
/* Bios */
details.bio { margin-top: 4px; }
details.bio summary { cursor: pointer; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .2em; width: fit-content; list-style: none; }
details.bio summary::-webkit-details-marker { display: none; }
details.bio summary::after { content: " +"; color: var(--accent); }
details.bio[open] summary::after { content: " \2212"; }
details.bio p { margin-top: 14px; }
.grid--people .card p { font-size: 15px; }

/* Captioned door image */
.card__media--captioned { margin: 0; }
.card__media--captioned figcaption { padding: 10px 24px 0 32px; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* Dark Mark Gordon section */
.dark { background: var(--ink); color: #fff; border-top: 0; }
.dark h2, .dark p { color: #fff; }
.dark .eyebrow { color: #fff; }
.dark a { color: #fff; text-decoration-color: var(--accent); }
.mg__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.mg__text > p { max-width: 560px; }
.pull { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--accent); max-width: 560px; }
.pull blockquote { margin: 0; }
.pull blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.35; margin: 0 0 12px; }
.pull figcaption { font-size: 14px; color: #fff; }
.mg__caption { font-size: 13px; margin: 28px 0 0; opacity: .9; }
.mg__video { margin: 0; }
.mg__video figcaption { font-size: 13px; color: #fff; margin-top: 12px; line-height: 1.5; }
.ytf { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #000; }
.ytf img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: filter .2s; }
.ytf .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.ytf:hover img, .ytf:focus-visible img { filter: brightness(.85); }
.ytf-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
@media (max-width: 900px) { .mg__grid { grid-template-columns: 1fr; gap: 40px; } }

/* Perspectives photo cards */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { position: relative; display: flex; align-items: flex-end; min-height: 320px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); isolation: isolate; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease, filter .4s ease; }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(15,26,42,.94) 0%, rgba(15,26,42,.8) 40%, rgba(15,26,42,.45) 75%, rgba(15,26,42,.3) 100%); }
.pcard:hover img, .pcard:focus-visible img { transform: scale(1.04); filter: brightness(1.08); }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 22px; }
.pcard__cat { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.pcard__title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.pcard__meta { font-size: 14px; opacity: .92; }
.pcard__ex { font-size: 15px; line-height: 1.5; margin-top: 2px; }
.pcard__act { font-size: 15px; margin-top: 8px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.pcard--featured { grid-column: span 2; min-height: 400px; }
.pcard--featured .pcard__title { font-size: 1.75rem; }
.pcard--featured .pcard__ex { max-width: 560px; }
.pgrid--teaser .pcard { min-height: 280px; }
.pgrid--teaser .pcard__title { font-size: 1.15rem; }
.credits { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 28px 0 0; max-width: 860px; }
@media (max-width: 1024px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .pcard--featured { grid-column: span 2; }
  .pgrid--teaser .pcard:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .pgrid { grid-template-columns: 1fr; }
  .pcard--featured, .pgrid--teaser .pcard:last-child { grid-column: auto; min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) { .pcard img, .ytf img { transition: none; } .pcard:hover img { transform: none; } }

/* Photo-card legibility: taller cards, darker text zone, faces kept clear */
.pcard { min-height: 460px; }
.pcard::before { background: linear-gradient(to top, rgba(15,26,42,.96) 0%, rgba(15,26,42,.9) 42%, rgba(15,26,42,.55) 66%, rgba(15,26,42,.25) 100%); }
.pcard--featured { min-height: 540px; }
.pcard--featured .pcard__body { max-width: 58%; }
.pcard--featured::before { background: linear-gradient(to right, rgba(15,26,42,.96) 0%, rgba(15,26,42,.88) 45%, rgba(15,26,42,.35) 70%, rgba(15,26,42,.15) 100%); }
/* Home teaser: smaller cards, no excerpt; the Hedgeye card reads from the top so the faces at the foot of the image stay clear */
.pgrid--teaser .pcard { min-height: 360px; }
.pgrid--teaser .pcard--hedgeye { align-items: flex-start; }
.pgrid--teaser .pcard--hedgeye::before { background: linear-gradient(to bottom, rgba(15,26,42,.96) 0%, rgba(15,26,42,.9) 45%, rgba(15,26,42,.4) 70%, rgba(15,26,42,.15) 100%); }
.pgrid--teaser .pcard--hedgeye img { object-position: center !important; }
@media (max-width: 640px) {
  .pcard { min-height: 480px; }
  .pcard--featured { min-height: 480px; align-items: flex-start; }
  .pcard--featured .pcard__body { max-width: none; }
  .pcard--featured::before { background: linear-gradient(to bottom, rgba(15,26,42,.97) 0%, rgba(15,26,42,.93) 62%, rgba(15,26,42,.45) 82%, rgba(15,26,42,.2) 100%); }
  .pcard--featured img { object-position: center bottom !important; }
}

/* Approach page (modelled on the Transition Point layout: two-column intro, ruled three-column list, dark rounded panel) */
.ap-intro { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; padding-top: 88px; padding-bottom: 72px; }
.ap-intro > * { min-width: 0; }
.ap-intro h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); margin: 20px 0 0; }
.ap-prose { font-size: 1.25rem; line-height: 1.7; color: var(--body); padding-top: 8px; }
.ap-prose p { margin: 0; }
.ap-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.ap-grid3 article { border-top: 1px solid var(--line); padding-top: 28px; min-width: 0; }
.ap-icon { width: 48px; height: 48px; color: var(--accent); }
.ap-grid3 h2 { font-size: 1.375rem; margin: 22px 0 12px; line-height: 1.3; }
.ap-grid3 p { margin: 0; font-size: 1rem; line-height: 1.65; }
.ap-panel-wrap { margin-top: 96px; }
.ap-panel { background: var(--ink); color: #fff; border-radius: 24px; padding: 56px; }
.ap-panel .eyebrow { color: #e3d9c2; }
.ap-panel__head { max-width: 780px; }
.ap-panel__head h2 { color: #fff; margin: 18px 0 20px; font-size: clamp(1.875rem, 3.2vw, 2.75rem); }
.ap-panel__head p:last-child { color: #dbe3ec; font-size: 1.0625rem; line-height: 1.7; margin: 0; }
.ap-panel__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; margin-top: 44px; align-items: start; }
.ap-panel__grid > * { min-width: 0; }
.ap-panel .mg__video { margin: 0; }
.ap-panel .mg__video figcaption { color: #dbe3ec; font-size: 13px; margin-top: 12px; line-height: 1.5; }
.ap-quotes { display: flex; flex-direction: column; gap: 16px; }
.ap-quote { margin: 0; padding: 26px 26px 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(255,255,255,.04); }
.ap-quote blockquote { margin: 0; }
.ap-quote blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.4; color: #fff; margin: 0 0 14px; }
.ap-quote figcaption { font-size: 14px; color: #dbe3ec; }
.ap-quote a { color: #fff; }
.ap-next { padding-top: 56px; padding-bottom: 88px; }
@media (max-width: 1024px) { .ap-panel__grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .ap-intro { grid-template-columns: 1fr; gap: 20px; padding-top: 56px; padding-bottom: 48px; }
  .ap-grid3 { grid-template-columns: 1fr; gap: 32px; }
  .ap-panel-wrap { margin-top: 64px; }
}
@media (max-width: 640px) { .ap-panel { padding: 32px 22px; border-radius: 20px; } .ap-prose { font-size: 1.125rem; } }

/* ===== Revision 3 ===== */
/* Home platforms: three even cards; one column of side-by-side cards on tablet; stacked on phones */
.grid--doors { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid--doors .door .card__body { padding: 28px; }
.grid--doors .door h3 { font-size: 1.5rem; }
.grid--doors .door .actions { margin-top: auto; padding-top: 16px; }
.grid--doors .door .card__media img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.door__note { margin: 4px 0 0; }
.grid--doors .door .actions .link-arrow { line-height: 46px; }
@media (max-width: 1000px) and (min-width: 641px) {
  .grid--doors { grid-template-columns: 1fr; }
  .grid--doors .door { flex-direction: row; }
  .grid--doors .door > .card__media { flex: 0 0 44%; margin: 0; }
  .grid--doors .door > .card__media img { height: 100%; min-height: 240px; aspect-ratio: auto; }
  .grid--doors .door > .card__media--captioned { display: flex; flex-direction: column; }
  .grid--doors .door > .card__media--captioned img { flex: 1; height: auto; }
}
@media (max-width: 640px) { .grid--doors { grid-template-columns: 1fr; } }

/* Ascent Atomic Fund page */
.af-figure { margin: 0; }
.af-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 60% center; border-radius: var(--radius); }
.af-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.steps h3 { font-size: 1.5rem; }
.af-notice { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); padding: 28px 32px; max-width: 860px; }
.af-notice h2 { font-size: 1.25rem; margin-bottom: .6em; }
.af-notice p { font-size: 15px; color: var(--body); margin: 0; }
/* caption sits on the photo so the three card bodies line up */
.grid--doors .card__media--captioned { position: relative; }
.grid--doors .card__media--captioned figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); padding: 4px 10px; font-size: 12px; line-height: 1.4; color: #fff; background: rgba(15,26,42,.78); border-radius: 6px; }

/* ===== Revision 5 ===== */
/* Approach: Industry 5.0 panel (light counterpart to the Mark Gordon panel) */
.ap-panel--light { background: var(--paper-2); color: var(--body); border: 1px solid var(--line); }
.ap-panel--light .eyebrow { color: var(--body); }
.ap-panel--light h2 { color: var(--ink); margin: 18px 0 8px; font-size: clamp(1.875rem, 3.2vw, 2.75rem); }
.i5__grid { margin-top: 0; align-items: center; grid-template-columns: 1fr 1.15fr; gap: 40px; }
.i5-quote { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--accent); }
.i5-quote blockquote { margin: 0; }
.i5-quote blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; color: var(--ink); margin: 0 0 14px; }
.i5-quote figcaption { font-size: 14px; color: var(--body); }
.i5__video { margin: 0; }
.i5__video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; }
.i5__video figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.ap-panel-wrap + .ap-panel-wrap { margin-top: 32px; }
@media (max-width: 1024px) { .i5__grid { grid-template-columns: 1fr; } }

/* Perspectives: Ascent Funds news group */
.pnews { margin-top: 72px; }
.pgrid--news { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .pgrid--news { grid-template-columns: 1fr; } }

/* ===== Revision 9: quote ticker under the Home hero ===== */
.ticker { position: relative; background: var(--ink); color: #fff; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker__viewport { overflow: hidden; padding: 26px 0 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.ticker__viewport:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.ticker__track { display: flex; width: max-content; animation: ticker-scroll 57s linear infinite; will-change: transform; }
.ticker__group { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.ticker__item { flex: none; display: flex; align-items: center; padding-right: 72px; }
.ticker__item::after { content: ""; width: 28px; height: 1px; background: var(--accent); margin-left: 72px; }
.ticker__item figure { margin: 0; display: flex; align-items: baseline; gap: 16px; white-space: nowrap; }
.ticker__item blockquote { margin: 0; }
.ticker__item blockquote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.4; color: #fff; }
.ticker__item figcaption { font-size: 14px; color: #dbe3ec; }
.ticker__name { color: #fff; }
.ticker__viewport:hover .ticker__track, .ticker__viewport:focus .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker__toggle { position: absolute; right: 12px; bottom: 6px; font: inherit; font-size: 12px; line-height: 1; color: #dbe3ec; background: rgba(15,26,42,.9); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.ticker__toggle:hover { color: #fff; border-color: #fff; }
.no-js .ticker__toggle { display: none; }
@media (max-width: 640px) {
  .ticker__viewport { padding: 20px 0 30px; }
  .ticker__item { padding-right: 48px; }
  .ticker__item::after { margin-left: 48px; }
  .ticker__item figure { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ticker__item blockquote p { font-size: 1.0625rem; }
  .ticker__item figcaption { font-size: 13px; }
}
/* Reduced motion: no scrolling; the three quotes sit still, stacked and wrapped */
@media (prefers-reduced-motion: reduce) {
  .ticker__viewport { -webkit-mask-image: none; mask-image: none; padding: 40px 0; }
  .ticker__track { animation: none; width: auto; display: block; max-width: calc(var(--max) + 2 * var(--pad-x)); margin: 0 auto; padding: 0 var(--pad-x); }
  .ticker__group[aria-hidden="true"] { display: none; }
  .ticker__group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .ticker__item { padding: 0; align-items: flex-start; }
  .ticker__item::after { content: none; }
  .ticker__item figure { white-space: normal; flex-direction: column; gap: 10px; }
  .ticker__toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 900px) { .ticker__group { grid-template-columns: 1fr; gap: 24px; } }
@media (min-width: 641px) {
  .ticker__viewport { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 86%, transparent 97%);
                              mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 86%, transparent 97%); }
  .ticker__toggle { top: 50%; bottom: auto; transform: translateY(-50%); background: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .ticker__viewport { -webkit-mask-image: none; mask-image: none; } }

/* ===== Revision 11: logo-led ticker items + footer disclosure ===== */
.ticker__item figure { align-items: center; gap: 18px; }
.ticker__item figcaption { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #dbe3ec; flex: none; }
.ticker__logo { display: block; height: 22px; width: auto; flex: none; }
.ticker__who { white-space: nowrap; }
@media (max-width: 640px) {
  .ticker__item figure { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ticker__item figcaption { font-size: 13px; gap: 10px; }
  .ticker__logo { height: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__group { grid-template-columns: repeat(2, 1fr); }
  .ticker__item figure { align-items: flex-start; gap: 12px; }
  .ticker__item figcaption { flex-wrap: wrap; }
  .ticker__who { white-space: normal; }
}
.legal--disclosure { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) and (max-width: 900px) { .ticker__group { grid-template-columns: 1fr; } }
/* two-line marks (HKEX, LSE) get a little more height so their wording stays legible */
.ticker__logo--tall { height: 28px; }
@media (max-width: 640px) { .ticker__logo--tall { height: 24px; } }
@media (prefers-reduced-motion: reduce) {
  .ticker__item figcaption { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===== Revision 12: hold the first quote still for about 3s on load, then scroll ===== */
/* The track gets a lead-in gap so the first quote starts clear of the left fade.
   Scroll distance stays exactly one quote set (50% of the track minus half the lead-in), so the loop is still seamless. */
@media (prefers-reduced-motion: no-preference) {
  .ticker { --ticker-lead: max(calc(6vw + 20px), calc((100vw - var(--max)) / 2 + var(--pad-x))); }
  .ticker__track { padding-left: var(--ticker-lead); animation-name: ticker-scroll-lead; animation-delay: 3s; }
}
@keyframes ticker-scroll-lead { from { transform: translateX(0); } to { transform: translateX(calc(var(--ticker-lead) / 2 - 50%)); } }

/* ===== Revision 20: monthly letters matrix (Ascent Oil Fund) and Waste to Fuels figures ===== */
.letters { display: grid; gap: 28px; }
.letters__year { display: grid; grid-template-columns: 172px 1fr; gap: 16px; align-items: start; }
.letters__label { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ink); margin: 12px 0 0; white-space: nowrap; }
.letters__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.letter { margin: 0; min-height: 76px; display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.letter.is-pending { border-style: dashed; border-color: #c3cad3; background: transparent; }
.letter__date { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.letter__status { font-size: 12px; line-height: 1.3; color: var(--muted); }
.letter__link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.letter__link:hover .letter__status { text-decoration: underline; text-decoration-color: var(--accent); }
@media (max-width: 1100px) {
  .letters__year { grid-template-columns: 1fr; gap: 10px; }
  .letters__label { margin: 0; }
  .letters__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .letters__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.essays { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.essay { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.essay__title { font-family: var(--serif); font-size: 1.375rem; color: var(--ink); }
.essay__meta { font-size: 15px; color: var(--muted); }
.hold-badge { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #8a5a00; border: 1px solid #d9b26a; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
@media (max-width: 640px) { .essay { grid-template-columns: 1fr; } .hold-badge { justify-self: start; } }
.letters-earlier { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.letters-earlier h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.letters-earlier__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.letters-earlier__list li { font-size: 13px; color: var(--ink); border: 1px dashed #c3cad3; border-radius: 999px; padding: 4px 12px; }
.w2f-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.w2f-figs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 760px) { .w2f-figs { grid-template-columns: 1fr; } }

/* ===== Revision 21: text column beside the video in the Oil Fund panel ===== */
.ap-panel__text p { color: #dbe3ec; font-size: 1.0625rem; line-height: 1.7; margin: 0 0 1em; }
.ap-panel__text p:last-child { margin-bottom: 0; }

/* ===== Revision 21: Platforms dropdown in the main navigation; Industry 5.0 on Home ===== */
.site-nav .has-sub { position: relative; }
.sub-toggle { font: inherit; font-size: 15px; line-height: inherit; color: var(--ink); background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 0; margin: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; -webkit-tap-highlight-color: transparent; }
.sub-toggle::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.sub-toggle:hover, .has-sub.is-current > .sub-toggle { border-bottom-color: var(--accent); }
.sub-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.has-sub.is-open > .sub-toggle::after { transform: translateY(2px) rotate(-135deg); }
.site-header--dark .sub-toggle { color: #fff; }
.site-header--dark .sub-toggle:hover, .site-header--dark .has-sub.is-current > .sub-toggle { border-bottom-color: #fff; }
.site-nav .sub-menu { display: none; list-style: none; margin: 0; }
@media (min-width: 861px) {
  .site-nav .sub-menu { position: absolute; top: 100%; left: -16px; z-index: 20; min-width: 220px; flex-direction: column; gap: 0; padding: 8px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 26, 42, .14); }
  .site-nav .has-sub:hover > .sub-menu, .site-nav .has-sub.is-open > .sub-menu, .no-js .site-nav .has-sub:focus-within > .sub-menu { display: flex; }
  .site-nav .sub-menu a, .site-header--dark .site-nav .sub-menu a { display: block; padding: 10px 16px; color: var(--ink); border-bottom: 0; white-space: nowrap; }
  .site-nav .sub-menu a:hover, .site-nav .sub-menu a:focus-visible { background: var(--paper-2); }
  .site-nav .sub-menu a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--accent); }
}
@media (max-width: 860px) {
  .sub-toggle { display: flex; width: 100%; justify-content: space-between; padding: 12px 6px 12px 0; border-bottom: 0; }
  .sub-toggle:hover, .has-sub.is-current > .sub-toggle { border-bottom-color: transparent; }
  .site-nav .has-sub.is-open > .sub-menu, .no-js .site-nav .sub-menu { display: block; }
  .site-nav .sub-menu { padding: 0 0 8px 16px; }
  .site-nav .sub-menu li { border-top: 0; }
  .site-nav .sub-menu a { padding: 10px 0; }
  .site-nav .sub-menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .25em; }
}
.i5__grid--home .i5-quote { margin: 0; }
@media (max-width: 860px) { .i5__grid--home { grid-template-columns: 1fr; gap: 32px; } }

/* ===== Revision 22: neutral image panel until the Oil Fund photo is supplied ===== */
.card__media--pending { aspect-ratio: 3 / 2; background: linear-gradient(135deg, #1b2a40 0%, var(--ink) 100%); }

/* ===== Revision 22: Platforms sits exactly in line with the other header items (desktop) ===== */
@media (min-width: 861px) {
  .site-nav > ul { align-items: baseline; }
  .sub-toggle { line-height: normal; }
}

/* ===== WordPress theme additions (v1) =====
   Everything above this line is the rev15 static stylesheet, unchanged.
   Below: wrappers WordPress adds, plus layouts for existing posts and simple text pages. */

/* Designed pages: WordPress's block-gap rules zero the margins of top-level sections.
   Restore the few the static design uses (Approach panels), at a specificity that wins in every WordPress version. */
body .page-designed .wp-block-post-content > .ap-panel-wrap { margin-top: 96px; }
body .page-designed .wp-block-post-content > .ap-panel-wrap + .ap-panel-wrap { margin-top: 32px; }
@media (max-width: 860px) {
  body .page-designed .wp-block-post-content > .ap-panel-wrap { margin-top: 64px; }
  body .page-designed .wp-block-post-content > .ap-panel-wrap + .ap-panel-wrap { margin-top: 32px; }
}

/* Existing news posts, blog/archive listings and simple text pages */
.post-single, .post-list, .page-simple { padding: 72px 0 96px; }
body .post-single .wp-block-post-title,
body .page-simple .wp-block-post-title,
body .post-list .wp-block-query-title { max-width: 900px; margin: 0 0 32px; }
body .post-single .wp-block-post-date { margin: 0 0 16px; }
body .post-single .post-single__image { margin: 0 0 40px; max-width: 960px; }
.post-single__image img { width: 100%; height: auto; border-radius: var(--radius); }
.post-single .wp-block-post-content,
.page-simple .wp-block-post-content { max-width: 760px; }
.post-single .wp-block-post-content > *,
.page-simple .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 1.1em; }
.post-single .wp-block-post-content > h2,
.post-single .wp-block-post-content > h3,
.page-simple .wp-block-post-content > h2,
.page-simple .wp-block-post-content > h3 { margin-block-start: 1.6em; margin-block-end: .6em; }
.post-single .wp-block-post-content img,
.page-simple .wp-block-post-content img { max-width: 100%; height: auto; }
.post-single .wp-block-post-content figure,
.page-simple .wp-block-post-content figure { margin-left: 0; margin-right: 0; }
.post-single .wp-block-post-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.post-single .wp-block-post-content .alignfull,
.post-single .wp-block-post-content .alignwide { max-width: 100%; margin-left: 0; margin-right: 0; }

.post-list__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; }
.post-list__grid > li { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.post-list .wp-block-post-date { margin-bottom: 10px; }
.post-list .wp-block-post-title { font-size: 1.5rem; line-height: 1.25; margin: 0 0 12px; }
.post-list .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.post-list .wp-block-post-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.post-list .wp-block-post-excerpt__excerpt { margin: 0; font-size: 16px; line-height: 1.55; }
.post-list__pager { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 64px; font-size: 16px; }
@media (max-width: 760px) {
  .post-single, .post-list, .page-simple { padding: 48px 0 72px; }
  .post-list__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* WordPress's own accessibility helper class */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* Existing Salient-era posts (v1.0.1): content cleaned by inc/legacy-content.php, plus safety nets
   in case the WPBakery / Salient plugins stay active without the Salient theme. */
body .post-single { overflow-x: clip; }
.post-single .legacy-image { margin: 0 0 1.1em; }
.post-single .legacy-image img { border-radius: 12px; }
.post-single .legacy-button { margin-top: 1.4em; }
.post-single .wp-block-post-content iframe,
.post-single .wp-block-post-content video,
.post-single .wp-block-post-content embed { max-width: 100%; }
.post-single .wp-block-post-content iframe[src*="youtube"],
.post-single .wp-block-post-content iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.post-single .wp-block-post-content blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.post-single .wp-block-post-content ul,
.post-single .wp-block-post-content ol { padding-left: 1.3em; }
.post-single .wp-block-post-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post-single .wp-block-post-content th,
.post-single .wp-block-post-content td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.post-single .wpb_animate_when_almost_visible,
.post-single .img-with-animation,
.post-single [data-animation] { opacity: 1 !important; transform: none !important; animation: none !important; visibility: visible !important; }
.post-single .vc_row[data-vc-full-width] { left: auto !important; width: auto !important; padding-left: 0 !important; padding-right: 0 !important; }
.post-single .vc_row { margin-left: 0; margin-right: 0; }
.post-list .wp-block-post-excerpt__excerpt { overflow-wrap: anywhere; }
