/* ============================================================
   Infinity Website — FY27 site styles
   Built on Infinity Design System FY27 tokens (colors_and_type.css)
   Lora headings · Source Sans 3 body · V Green 1 chrome · gold hairlines
   ============================================================ */

:root {
  --btn-radius: var(--radius-pill);     /* tweak: pill | square */
  --card-radius: var(--radius-lg);
  --site-max: 1200px;
  --site-max-wide: 1440px;
}
html[data-corners="square"] { --btn-radius: 0; }

html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--charcoal); }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: var(--site-max); margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 48px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.bg-soft { background: var(--color-bg-subtle); }
.bg-wash { background: #f2f7f8; }
.bg-dark { background: var(--v-green-1); color: #ffffff; }
.bg-dark h1, .bg-dark h2, .bg-dark h3,
.ic-band h1, .ic-band h2, .ic-band h3 { color: #ffffff; }
.text-center { text-align: center; }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-2-1 { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 1080px) { .g-3, .g-4 { grid-template-columns: 1fr 1fr; } }
/* Content+sidebar layout stacks on tablet (matches the site's 980 breakpoint used by
   steps, footer, KPI strip and the panel hero) - it was cramped 761-980px before. */
@media (max-width: 980px) { .g-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .container, .container-narrow { padding: 0 24px; }
  .section { padding: 64px 0; }
}

/* ── Type helpers ───────────────────────────────────────── */
.h-display { font-family: var(--font-heading); font-weight: 400; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.1; letter-spacing: 0; color: var(--charcoal); text-wrap: pretty; }
.h-1 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(30px, 5vw, 42px); line-height: 1.12; color: var(--charcoal); text-wrap: pretty; }
.h-2 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(25px, 4vw, 32px); line-height: 1.2; color: var(--charcoal); text-wrap: pretty; }
.h-3 { font-family: var(--font-heading); font-weight: 400; font-size: 24px; line-height: 1.25; color: var(--charcoal); }
.h-4 { font-family: var(--font-heading); font-weight: 400; font-size: 20px; line-height: 1.3; color: var(--charcoal); }
.bg-dark .h-display, .bg-dark .h-1, .bg-dark .h-2, .bg-dark .h-3, .bg-dark .h-4,
.ic-band .h-display, .ic-band .h-1, .ic-band .h-2, .ic-band .h-3, .ic-band .h-4 { color: #ffffff; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 400;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--v-green-2);
  margin-bottom: 14px;
}
.bg-dark .eyebrow, .ic-band .eyebrow, .hero--photo .eyebrow, .hero--panel .eyebrow { color: rgba(255,255,255,0.65); }

.body { font-size: 16px; line-height: 1.65; color: var(--charcoal); }
.body p { margin-bottom: 1em; }
.body p:last-child { margin-bottom: 0; }
.lede { font-size: 18px; line-height: 1.65; color: var(--grey); max-width: 64ch; }
.muted { color: var(--grey); }
.tag-line { font-family: var(--font-heading); font-style: italic; font-size: 22px; color: var(--v-green-4); margin: 8px 0 0; }

/* Gold hairline — one per layout block */
.gold-rule {
  display: block; border: none;
  border-top: 1px solid var(--gold);
  width: 60px; margin: 20px 0 24px;
}
.gold-rule.center { margin-inline: auto; }

/* › bullet list */
.b-list { list-style: none; margin: 0; padding: 0; }
.b-list li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 15px; line-height: 1.55; }
.b-list li::before { content: '›'; position: absolute; left: 0; top: 0; color: var(--v-green-3); }
.bg-dark .b-list li::before { content: '›'; color: var(--v-green-4); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  border-radius: var(--btn-radius);
  padding: 13px 28px; border: 1px solid transparent;
  transition: background var(--duration-normal), color var(--duration-normal), border-color var(--duration-normal);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--v-green-1); color: #ffffff; }
.btn-primary:hover { background: #052d3e; }
.btn-outline { background: transparent; color: var(--charcoal); border-color: #b2b2b2; }
.btn-outline:hover { border-color: var(--v-green-3); color: var(--v-green-3); }
.btn-outline-light { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-ghost {
  background: none; border: none; padding: 0; border-radius: 0;
  color: var(--v-green-3); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px;
}
.btn-ghost:hover { color: var(--v-green-2); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.arrow-link {
  display: inline-block; white-space: nowrap;
  font-size: 14px; font-weight: 700; letter-spacing: var(--tracking-label);
  color: var(--v-green-3); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 2px;
}
.arrow-link:hover { color: var(--v-green-2); }
.ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 28px; }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  background: var(--v-green-1);
  position: sticky; top: 0; z-index: var(--z-dropdown);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  display: flex; align-items: center; height: 72px;
  max-width: var(--site-max-wide); margin: 0 auto; padding: 0 48px;
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-collapse { display: flex; align-items: center; flex: 1; }
.nav-links { display: flex; align-items: center; margin-left: 40px; flex: 1; }
.nav-links a {
  font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.75);
  text-decoration: none; padding: 0 14px; height: 72px;
  display: flex; align-items: center;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color 150ms, border-color 150ms;
}
.nav-links a:hover { color: #ffffff; border-bottom-color: var(--v-green-4); text-decoration: none; }
.nav-links a.active { color: #ffffff; border-bottom-color: var(--gold); }
.nav-ctas { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-btn {
  font-size: 12px; font-weight: 700; letter-spacing: var(--tracking-label);
  padding: 8px 18px; border-radius: var(--btn-radius);
  text-decoration: none; white-space: nowrap;
  transition: background 150ms, color 150ms;
}
.nav-btn:hover { text-decoration: none; }
.nav-btn--outline { color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.25); }
.nav-btn--outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-btn--filled { background: var(--v-green-3); color: #ffffff; border: 1px solid transparent; }
.nav-btn--filled:hover { background: var(--v-green-2); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; margin-left: auto; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }
@media (max-width: 1080px) {
  .nav-collapse { display: none; }
  .nav-burger { display: block; }
  /* Open menu: one dropdown panel holding BOTH the links and the login buttons. */
  .nav.open .nav-collapse {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0; z-index: 60;
    background: var(--v-green-1); margin: 0; padding: 12px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; flex: none; margin: 0;
  }
  .nav.open .nav-links a { height: 48px; border-bottom: none; }
  /* Login buttons stacked full-width below the links. */
  .nav.open .nav-ctas {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    margin: 12px 0 0; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .nav.open .nav-ctas .nav-btn { text-align: center; }
  .nav.open .nav-ctas .nav-btn span { display: block; opacity: 0.7; font-weight: 400; }
}

/* ── Hero variants ──────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center 30%;
}
.hero-media::after { content: ''; position: absolute; inset: 0; background: rgba(7,55,73,0.58); }
.hero-inner { position: relative; z-index: 1; max-width: var(--site-max); margin: 0 auto; padding: 110px 48px 96px; }
.hero.compact .hero-inner { padding: 80px 48px 72px; }

/* photo variant: white type on dark photo */
.hero--photo { color: #ffffff; }
.hero--photo .h-display, .hero--photo .h-1 { color: #ffffff; }
.hero--photo .hero-body { color: rgba(255,255,255,0.78); }
.hero--photo .tag-line { color: var(--v-green-5); }

/* aura variant: charcoal type on white, aura bleeding to the right edge */
.hero--aura { background: #ffffff; }
.hero--aura .hero-media { background-image: none !important; }
.hero--aura .hero-media::after { display: none; }
.hero--aura .hero-aura {
  position: absolute; top: -10%; right: -16%; width: 68%; height: 130%;
  background-size: contain; background-repeat: no-repeat; background-position: right center;
  pointer-events: none;
}
.hero--aura .hero-body { color: var(--grey); }

/* panel variant: photo + dark stat panel on the right */
.hero--panel { color: #ffffff; }
.hero--panel .h-display, .hero--panel .h-1 { color: #ffffff; }
.hero--panel .hero-body { color: rgba(255,255,255,0.72); }
.hero--panel .hero-inner { display: grid; grid-template-columns: 1fr 380px; gap: 72px; align-items: center; }
.hero-panel-card { background: var(--v-green-1); border-radius: var(--card-radius); padding: 36px 40px; }
.hero-stat { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hero-stat:first-child { padding-top: 0; }
.hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
.hero-stat-label { font-size: 11px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.hero-stat-val { font-family: var(--font-heading); font-size: 34px; font-weight: 400; color: #ffffff; line-height: 1.1; }
.hero-stat-sub { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px; }
html[data-hero="photo"] .hero--home .hero-panel-card,
html[data-hero="aura"] .hero--home .hero-panel-card { display: none; }
html[data-hero="photo"] .hero--home .hero-inner,
html[data-hero="aura"] .hero--home .hero-inner { display: block; }
@media (max-width: 980px) {
  .hero--panel .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner { padding: 72px 24px 64px; }
}

.hero-body { font-size: 18px; line-height: 1.65; max-width: 56ch; margin: 0; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 32px;
}
.card.hover { transition: box-shadow var(--duration-normal); }
.card.hover:hover { box-shadow: var(--shadow-2); }
.card.soft { background: var(--color-bg-subtle); border-color: transparent; }
.card.wash { background: #f2f7f8; border-color: transparent; }
.card.gold-wash { background: var(--gold-faded); border-color: transparent; }

/* capability cards (tweakable) */
.cap-card {
  background: var(--color-bg-subtle); border: 1px solid transparent;
  border-radius: var(--card-radius); padding: 48px;
  display: flex; flex-direction: column;
  transition: box-shadow var(--duration-normal);
}
.cap-card:hover { box-shadow: var(--shadow-2); }
html[data-capcards="outline"] .cap-card { background: #ffffff; border-color: var(--color-border); }
.cap-tag {
  font-size: 11px; letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--v-green-2); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.cap-tag::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.cap-name {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(30px, 2.6vw, 40px); line-height: 1.15;
  color: var(--charcoal); margin: 0 0 10px;
}
.cap-sub {
  font-family: var(--font-heading); font-style: italic;
  font-size: 19px; color: var(--v-green-4); margin: 0 0 18px;
}
.cap-detail { font-size: 12px; letter-spacing: 0.08em; color: var(--grey); margin: 0 0 20px; }

/* number device for cards (smoke decorative numerals) */
.card-num { font-family: var(--font-heading); font-size: 52px; font-weight: 400; line-height: 1; color: var(--smoke); margin-bottom: 14px; font-variant-numeric: tabular-nums; }

/* ── Chips / filters ────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Insights search (pill, matches the finder search) */
.ins-search { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 9px 16px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); background: #fff; color: var(--grey); }
.ins-search:focus-within { border-color: var(--v-green-3); }
.ins-search svg { flex: none; color: var(--grey); }
.ins-search input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-family: inherit; font-size: 14px; color: var(--charcoal); }
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-body); font-size: 12px; font-weight: 400;
  letter-spacing: var(--tracking-label);
  padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: #ffffff; color: var(--charcoal); cursor: pointer;
  transition: border-color 120ms, background 120ms, color 120ms;
}
.chip:hover { border-color: var(--v-green-3); color: var(--v-green-3); }
.chip.on { background: var(--v-green-1); border-color: var(--v-green-1); color: #ffffff; }
.chip.tag { cursor: default; background: #f2f7f8; border-color: transparent; color: var(--v-green-2); font-size: 11px; text-transform: uppercase; }
.filter-block { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.filter-row { display: flex; align-items: baseline; gap: 16px; }
.filter-label { font-size: 12px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--v-green-2); flex: none; width: 76px; }
.filter-summary { display: flex; align-items: center; gap: 16px; margin-top: 20px; font-size: 14px; color: var(--grey); }

/* ── Portfolio / insight cards ──────────────────────────── */
.port-card {
  display: block; background: #ffffff;
  border: 1px solid var(--color-border); border-radius: var(--card-radius);
  padding: 26px 28px; text-decoration: none; color: var(--charcoal);
  transition: box-shadow var(--duration-normal), border-color var(--duration-normal);
}
.port-card:hover { box-shadow: var(--shadow-2); border-color: var(--v-green-4); text-decoration: none; }
.port-card .head { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.port-card .pname { font-family: var(--font-heading); font-size: 19px; font-weight: 400; line-height: 1.3; margin: 0; }
/* Card descriptor: clamp a long About to 3 lines so cards stay even (full text on the fund page). */
.port-card .pdesc { font-size: 13px; color: var(--grey); margin: 4px 0 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.port-card .meta { font-size: 13px; color: var(--grey); margin-top: 10px; }
.port-card .plats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.port-card .plats span { font-size: 11px; letter-spacing: var(--tracking-label); color: var(--v-green-2); background: #f2f7f8; padding: 3px 9px; border-radius: var(--radius-sm); }

.insight-card {
  display: flex; flex-direction: column; background: #ffffff;
  border: 1px solid var(--color-border); border-radius: var(--card-radius);
  overflow: hidden; text-decoration: none; color: var(--charcoal);
  transition: box-shadow var(--duration-normal);
}
.insight-card:hover { box-shadow: var(--shadow-2); text-decoration: none; }
.insight-card .thumb { flex: none; aspect-ratio: 16/9; background-size: cover; background-position: center; }
/* Phone: shorter banner so insight cards take less vertical space (keeps the image). */
@media (max-width: 640px) { .insight-card .thumb { aspect-ratio: auto; height: 140px; } }
/* Body fills the card so the date pins to the bottom-left and aligns across a row,
   regardless of how many lines the title takes. */
.insight-card .body-pad { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.insight-card .pname { font-family: var(--font-heading); font-size: 19px; font-weight: 400; line-height: 1.35; margin: 10px 0 8px; }
.insight-card .meta { font-size: 13px; color: var(--grey); margin-top: auto; padding-top: 10px; }
/* Keep the content-type badge hugging its text (flex items stretch by default). */
.insight-card .chip { align-self: flex-start; }

/* strategy tile */
.strat-tile {
  display: flex; flex-direction: column; justify-content: space-between;
  background: #ffffff; border: 1px solid var(--color-border);
  border-radius: var(--card-radius); padding: 28px;
  text-decoration: none; color: var(--charcoal); min-height: 188px;
  transition: box-shadow var(--duration-normal), border-color var(--duration-normal);
}
.strat-tile:hover { box-shadow: var(--shadow-2); border-color: var(--v-green-4); text-decoration: none; }
.strat-tile .sname { font-family: var(--font-heading); font-size: 21px; font-weight: 400; margin: 0 0 8px; }
.strat-tile .sline { font-size: 14px; color: var(--grey); line-height: 1.5; margin: 0; }
.strat-tile .sfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 12px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--v-green-2); }

/* ── Phone: compact the Asset Management finder (filters + tiles + cards) ──────
   Filters stack the label above a single horizontally-scrollable chip row (instead
   of wrapping into many lines), and the result tiles/cards are tightened. Mobile
   only - desktop layout is untouched. */
@media (max-width: 640px) {
  /* Finder filters: label on its own line, chips in one swipeable row */
  .filter-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .filter-label { width: auto; }
  .filter-row .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-row .chips::-webkit-scrollbar { display: none; }
  .filter-row .chip { flex: 0 0 auto; }   /* keep chips on one line */

  /* Strategy tiles: compact - just the strategy name + product count (drop intro line) */
  .strat-tile { min-height: 0; padding: 20px; }
  .strat-tile .sline { display: none; }
  .strat-tile .sfoot { margin-top: 14px; }

  /* Fund cards: compact - strategy bubble + name + platforms (drop description + risk/min) */
  .port-card { padding: 18px 20px; }
  .port-card .pdesc,
  .port-card .meta { display: none; }
}

/* ── KPI / stats ────────────────────────────────────────── */
.kpi { padding: 28px 0; }
.kpi .value { font-family: var(--font-heading); font-size: 44px; font-weight: 400; line-height: 1.05; color: var(--charcoal); }
.kpi .label { font-size: 12px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--v-green-2); margin-bottom: 10px; }
.kpi .sub { font-size: 14px; color: var(--grey); margin-top: 8px; }
.bg-dark .kpi .value { color: #ffffff; }
.bg-dark .kpi .label { color: rgba(255,255,255,0.6); }
.bg-dark .kpi .sub { color: rgba(255,255,255,0.5); }
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid var(--gold); padding-top: 8px; }
.kpi-strip.kpi-5 { grid-template-columns: repeat(5, 1fr); gap: 0; }
.kpi-5 .kpi { padding: 32px 28px; }
.kpi-5 .kpi:first-child { padding-left: 0; }
.kpi-5 .kpi:last-child { padding-right: 0; }
.kpi-5 .kpi + .kpi { border-left: 1px solid rgba(7,55,73,0.14); }
.kpi-5 .kpi .value { font-size: clamp(28px, 2.1vw, 36px); }
.kpi-5 .kpi .sub { font-size: 13px; line-height: 1.5; }
@media (max-width: 980px) {
  .kpi-strip, .kpi-strip.kpi-5 { grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .kpi-5 .kpi, .kpi-5 .kpi:first-child, .kpi-5 .kpi:last-child { padding: 24px 0; border-left: none; border-bottom: 1px solid rgba(7,55,73,0.14); }
  /* Same specificity as the desktop divider selector so the vertical lines actually clear */
  .kpi-5 .kpi + .kpi { border-left: none; }
  .kpi-5 .kpi:last-child { border-bottom: none; }
}
/* Phone: single clean column so the 5th stat isn't stranded in a 2-col grid */
@media (max-width: 640px) {
  .kpi-strip, .kpi-strip.kpi-5 { grid-template-columns: 1fr; }
  .kpi-5 .kpi { padding: 18px 0; }
}

/* ── Inner Circle band ──────────────────────────────────── */
.ic-band { position: relative; padding: 96px 0; background: var(--v-green-1); color: #ffffff; overflow: hidden; }
.ic-band .ic-bg { position: absolute; inset: 0; z-index: 0; }
html[data-icband="aura"] .ic-band .ic-bg {
  background-image: var(--ic-aura, none);
  background-size: cover; background-position: center;
  mix-blend-mode: screen; opacity: 0.55;
}
html[data-icband="photo"] .ic-band .ic-bg {
  background-image: var(--ic-photo, none);
  background-size: cover; background-position: center 35%;
  opacity: 0.22;
}
.ic-band .container { position: relative; z-index: 1; }
.ic-feature { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.ic-feature:last-child { border-bottom: none; }
.ic-feature .glyph { color: var(--v-green-4); font-weight: 700; flex: none; margin-top: 1px; }
.ic-feature .txt { font-size: 15px; color: rgba(255,255,255,0.78); line-height: 1.55; }

/* ── Process steps ──────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 20px; border-top: 1px solid var(--color-border); }
.step .marker { font-family: var(--font-heading); font-size: 44px; font-weight: 400; color: var(--smoke); line-height: 1; margin-bottom: 14px; }
.step h4 { font-family: var(--font-heading); font-size: 20px; font-weight: 400; margin: 0 0 10px; }
.step p { font-size: 14px; color: var(--grey); line-height: 1.6; margin: 0; }

/* ── Imagery ────────────────────────────────────────────── */
.photo {
  background-size: cover; background-position: center;
  border-radius: var(--card-radius); aspect-ratio: 4/3; width: 100%;
}
.photo.wide { aspect-ratio: 16/9; }
.photo.tall { aspect-ratio: 4/5; }
.photo-cap { font-size: 12px; color: var(--grey); margin-top: 10px; }

/* portrait placeholder */
.portrait {
  position: relative; aspect-ratio: 4/5; width: 100%;
  background: linear-gradient(160deg, #e8eff0, var(--cloud));
  border-radius: var(--card-radius);
  display: grid; place-items: center; overflow: hidden;
}
.portrait::before {
  content: attr(data-init);
  font-family: var(--font-heading); font-size: 40px; color: var(--v-green-4);
}
.portrait.has-photo {
  aspect-ratio: 1/1;
  background-size: cover; background-position: center top;
  background-color: #2b2b2b;
}
.portrait.has-photo::before { content: none; }
.portrait .ph-cap {
  position: absolute; bottom: 10px; left: 10px;
  font-size: 10px; letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--v-green-2); background: rgba(255,255,255,0.85);
  padding: 3px 8px; border-radius: var(--radius-sm);
}
.team-card { display: block; text-decoration: none; color: var(--charcoal); }
.team-card:hover { text-decoration: none; }
.team-card:hover .name { color: var(--v-green-3); }
.team-card .name { font-family: var(--font-heading); font-size: 18px; margin-top: 14px; transition: color 120ms; }
.team-card .role { font-size: 13px; color: var(--grey); margin-top: 2px; }
/* Team grid stays 2-up on phones (the generic .g-4 collapses to 1, which made each
   card fill the screen). Smaller cards + tighter type for the two-column view. */
@media (max-width: 760px) {
  .grid.team-grid { grid-template-columns: 1fr 1fr !important; gap: 24px 14px; }
  .grid.team-grid .team-card .name { font-size: 16px; margin-top: 10px; line-height: 1.25; }
  .grid.team-grid .team-card .role { font-size: 12px; }
}

/* ── Tables (key/value) ─────────────────────────────────── */
table.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.kv td { padding: 9px 0; border-bottom: 1px solid rgba(51,51,51,0.12); vertical-align: top; }
table.kv td:first-child { color: var(--grey); width: 44%; padding-right: 12px; }
table.kv tr:last-child td { border-bottom: none; }

/* allocation bar */
.alloc-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 18px 0 16px; }
.alloc-legend .row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 5px 0; }
.alloc-legend .swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.alloc-legend .name { flex: 1; color: var(--charcoal); }
.alloc-legend .pct { color: var(--grey); font-variant-numeric: tabular-nums; }

/* ── Forms ──────────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--v-green-2); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 15px; color: var(--charcoal);
  padding: 11px 14px; border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md); background: #ffffff; outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--v-green-3); box-shadow: 0 0 0 3px rgba(11,106,115,0.12);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-success {
  display: none; margin-top: 18px; font-size: 14px; color: var(--v-green-3);
}
.form-success.show { display: block; }
.form-note { font-size: 12px; color: var(--grey); margin-top: 14px; }

/* hidden attribute must win over display overrides (e.g. .field { display:flex }) */
[hidden] { display: none !important; }

/* radio-style audience toggle */
.audience-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 24px; }
@media (max-width: 640px) { .audience-toggle { grid-template-columns: 1fr; } }
.aud-tab {
  text-align: left; background: #ffffff; cursor: pointer;
  border: 1px solid var(--color-border-strong); border-radius: var(--card-radius);
  padding: 18px 20px; transition: border-color 120ms, box-shadow 120ms;
}
.aud-tab:hover { border-color: var(--v-green-4); }
.aud-tab.on { border-color: var(--v-green-3); box-shadow: 0 0 0 1px var(--v-green-3); }
.aud-tab .aud-eyebrow { font-size: 10px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--v-green-2); margin-bottom: 4px; }
.aud-tab .aud-title { font-family: var(--font-heading); font-size: 18px; color: var(--charcoal); }
.aud-tab .aud-sub { font-size: 13px; color: var(--grey); margin: 6px 0 0; line-height: 1.45; }

/* ── Tabs ───────────────────────────────────────────────── */
.tabs-inline { display: flex; gap: 0; border-bottom: 1px solid var(--color-border); }
.tabs-inline button {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; color: var(--grey);
  padding: 12px 20px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 120ms, border-color 120ms;
}
.tabs-inline button:hover { color: var(--charcoal); }
.tabs-inline button.on { color: var(--v-green-2); border-bottom-color: var(--gold); }

/* ── Events ─────────────────────────────────────────────── */
.event-card { display: flex; gap: 20px; align-items: flex-start; }
.event-date { flex: none; text-align: center; background: #f2f7f8; border-radius: var(--card-radius); padding: 12px 16px; min-width: 64px; }
.event-date .day { font-family: var(--font-heading); font-size: 26px; line-height: 1.1; color: var(--v-green-2); }
.event-date .mo { font-size: 11px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--grey); }
.event-body { flex: 1; }

/* ── Modal ──────────────────────────────────────────────── */
.reg-modal { position: fixed; inset: 0; z-index: var(--z-modal); }
.reg-modal[hidden] { display: none; }
.reg-backdrop { position: absolute; inset: 0; background: rgba(7,55,73,0.55); }
.reg-dialog {
  position: relative; max-width: 520px; margin: 9vh auto 0;
  background: #ffffff; border-radius: var(--card-radius);
  padding: 36px 40px; box-shadow: var(--shadow-2);
}
.reg-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 24px; color: var(--grey); cursor: pointer; line-height: 1;
}

/* Contact enquiry cards: equal height (grid stretch) with the CTA pinned bottom-left. */
.contact-opt { display: flex; flex-direction: column; }
.contact-opt .arrow-link { margin-top: auto; align-self: flex-start; padding-top: 8px; }
button.arrow-link { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
/* Contact popup form dialog scrolls if its form is tall. */
#contact-modal .reg-dialog { max-height: 82vh; overflow-y: auto; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.crumb { font-size: 13px; color: var(--grey); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--v-green-3); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* compliance note */
.compliance-note {
  border-top: 1px solid #c4880a; background: #fff8e8;
  font-size: 12px; color: #8a6203; padding: 10px 16px; line-height: 1.6;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* empty state */
.empty-state { text-align: center; padding: 56px 24px; background: var(--color-bg-subtle); border-radius: var(--card-radius); }
.empty-state .btn { margin-top: 18px; }

/* ── Private Portfolios wholesale gate ──────────────────── */
.pp-gate-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7,55,73,0.78);
  display: grid; place-items: center;
  padding: 24px;
}
.pp-gate-card {
  background: #ffffff; border-radius: var(--card-radius);
  max-width: 680px; max-height: calc(100vh - 48px); overflow-y: auto;
  padding: 44px 48px;
}
.pp-gate-body { font-size: 14px; line-height: 1.6; color: var(--charcoal); }
.pp-gate-body p { margin: 0 0 14px; }
.pp-gate-body p:last-child { margin-bottom: 0; }
.pp-gate-body ul { margin: 0 0 14px; padding-left: 22px; }
.pp-gate-body li { margin-bottom: 10px; }
.pp-gate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pp-gate-actions .btn { cursor: pointer; }
@media (max-width: 640px) {
  /* The long gate buttons are white-space:nowrap by default, which forced the card wider
     than the phone and clipped the text. Stack them full-width and let them wrap. */
  .pp-gate-card { padding: 32px 24px; width: 100%; }
  .pp-gate-actions { flex-direction: column; }
  .pp-gate-actions .btn { width: 100%; white-space: normal; }
}

/* Private Portfolios brochure cards: PDF icon + text + download button. Row on
   desktop/tablet; on phones the download button wraps to its own full-width line. */
.pp-brochure { display: flex; align-items: center; gap: 20px; }
@media (max-width: 640px) {
  .pp-brochure { flex-wrap: wrap; }
  .pp-brochure .btn { width: 100%; text-align: center; white-space: normal; }
}

/* ── Footer ─────────────────────────────────────────────── */
.ft { background: var(--v-green-1); border-top: 1px solid var(--gold); }
.ft-inner { max-width: var(--site-max); margin: 0 auto; padding: 64px 48px 0; }
.ft-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 52px; }
@media (max-width: 980px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ft-grid { grid-template-columns: 1fr; } }
.ft-logo { height: 74px; width: auto; margin-bottom: 18px; }
.ft-tag { font-family: var(--font-heading); font-style: italic; font-size: 21px; color: rgba(255,255,255,0.78); line-height: 1.35; }
.ft h4 { font-family: var(--font-body); font-size: 11px; font-weight: 400; letter-spacing: var(--tracking-label); text-transform: uppercase; color: rgba(255,255,255,0.6); margin: 0 0 18px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ft ul a { font-size: 14px; color: rgba(255,255,255,0.62); text-decoration: none; transition: color 120ms; }
.ft ul a:hover { color: #ffffff; }
.ft-blurb { font-size: 14px; color: rgba(255,255,255,0.62); margin: 0 0 16px; }
.ft-form input[type="email"] {
  width: 100%; font-family: var(--font-body); font-size: 14px;
  padding: 10px 14px; border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff;
  outline: none;
}
.ft-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.ft-form input[type="email"]:focus { border-color: var(--v-green-4); }
.ft-checks { display: flex; gap: 16px; margin: 14px 0 16px; }
.ft-checks label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.7); cursor: pointer; text-transform: none; letter-spacing: 0; }
.ft-msg { display: none; margin-top: 12px; font-size: 13px; color: var(--v-green-5); }
.ft-msg.show { display: block; }
.ft-fine {
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: var(--site-max); margin: 0 auto;
  padding: 24px 48px 32px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.ft-legal { font-size: 11px; color: rgba(255,255,255,0.38); line-height: 1.7; max-width: none; flex: 1 1 auto; }
.ft-legal-links { display: flex; gap: 20px; align-items: flex-start; }
.ft-legal-links a { font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: none; }
.ft-legal-links a:hover { color: #fff; }

/* ── Auth pages ─────────────────────────────────────────── */
body.auth-mode .nav, body.auth-mode .ft { display: none; }
.auth-page { min-height: 100vh; background: #f2f7f8; padding: 48px 24px 64px; }
.auth-card-wrap { max-width: 480px; margin: 0 auto; }
.auth-card-wrap.auth-wide { max-width: 560px; }
.auth-back { margin-bottom: 20px; }
.auth-back a { font-size: 13px; color: var(--grey); text-decoration: none; }
.auth-back a:hover { color: var(--v-green-3); }
.auth-card-site { padding: 40px; margin-bottom: 16px; }
.auth-logo-row { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-logo-row img { height: 78px; }
.auth-pw-wrap { position: relative; }
.auth-pw-wrap input { width: 100%; padding-right: 44px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--grey); cursor: pointer; padding: 6px; }
.pw-eye:hover { color: var(--v-green-3); }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.auth-check { display: flex; align-items: center; gap: 7px; color: var(--grey); cursor: pointer; text-transform: none; letter-spacing: 0; }
.auth-forgot-inline { font-size: 13px; }
.auth-cta { width: 100%; justify-content: center; margin-top: 22px; }
.auth-secondary { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.auth-foot { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; font-size: 12px; color: var(--grey); }
.auth-foot a { color: var(--grey); }
.auth-foot a:hover { color: var(--v-green-3); }
.auth-success { text-align: center; padding: 16px 0; }
.auth-success-icon {
  width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--color-success-subtle); color: var(--color-success);
  display: grid; place-items: center; font-size: 24px;
}
.auth-loader { height: 100%; width: 40%; background: var(--v-green-3); border-radius: inherit; animation: authload 1.2s ease-in-out infinite alternate; }
@keyframes authload { from { margin-left: 0; } to { margin-left: 60%; } }

/* visually hidden */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Phase 3 additions (theme) ───────────────────────────────────────────────
   Moved out of the prototype's inline styles, per manual §7. */

/* Two-line login CTAs in the header (label + small uppercase sub-label). */
.nav-btn--stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
  padding-top: 5px;
  padding-bottom: 5px;
}
.nav-btn--stack span {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-btn--outline.nav-btn--stack span { color: rgba(255,255,255,0.55); }
.nav-btn--filled.nav-btn--stack span  { color: rgba(255,255,255,0.70); }

/* Active link gold underline - WP adds these classes to the current menu item. */
.nav-links li.current-menu-item > a,
.nav-links li.current_page_parent > a,
.nav-links li.current-menu-parent > a {
  color: #fff;
  border-bottom-color: var(--gold);
}

/* WordPress wp_nav_menu wraps links in <ul><li>, unlike the prototype's bare <a>.
   Reset the <ul>/<li> defaults so the prototype's `.nav-links a {height:72px;flex}`
   rules align inside the 72px bar instead of overflowing and clipping descenders. */
ul.nav-links { list-style: none; margin: 0 0 0 40px; padding: 0; }
ul.nav-links li { display: flex; align-items: stretch; }
ul.nav-links li > a { height: 72px; }

/* Mobile dropdown: stack full-width, shorter rows, no clipping. */
.nav.open ul.nav-links { margin: 0; }
.nav.open ul.nav-links li { display: block; }
.nav.open ul.nav-links li > a { height: 48px; }

/* Home hero — editable treatments (ACF: shape / focal / height / corners) */
.hero--split { position: relative; }
.hero--split .hero-split-img { width: 100%; background-color: var(--v-green-1); }
.hero--split .hero-split-img { min-height: 360px; }
@media (max-width: 860px) { .hero--split .hero-split-img { min-height: 280px; } }

/* Full-viewport hero: fills the screen below the sticky 72px nav until you scroll.
   svh variant overrides on mobile browsers that support it (avoids URL-bar jump).
   Vertical-centre the content at the SECTION level (a prototype rule sets
   .hero-inner{display:block}, so we don't centre on the inner). */
.hero--full { min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; }
.hero--full { min-height: calc(100svh - 72px); }
.hero--full .hero-inner { width: 100%; padding-top: 24px; padding-bottom: 24px; }
.hero--full .hero-split-img { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); }

/* Keep the sticky nav below the WordPress admin bar when logged in (stops the
   jump/clip on scroll). Public visitors are unaffected. */
@media screen and (min-width: 783px) { body.admin-bar .nav { top: 32px; } }
@media screen and (max-width: 782px) { body.admin-bar .nav { top: 46px; } }

/* Pull quote (Our Philosophy) */
.ics-pullquote { font-family: var(--font-heading); font-style: italic; color: var(--v-green-2); line-height: 1.3; }

/* Anchor offset so #finder lands below the sticky nav */
#finder { scroll-margin-top: 88px; }

/* ── Contact Form 7: normalise to the design-system .field look ──────────────
   CF7 wraps inputs in <span.wpcf7-form-control-wrap> inside the <label>, defaults
   textareas to 10 rows, and lets controls inherit the label's uppercase/teal. */
.field .wpcf7-form-control-wrap { display: block; width: 100%; margin-top: 6px; }
.field input, .field select, .field textarea { text-transform: none; letter-spacing: normal; color: var(--charcoal); }
.field textarea { height: 120px; min-height: 120px; }       /* CF7's 10-row default is too tall */
.field input::placeholder, .field textarea::placeholder { color: var(--grey); text-transform: none; }

/* Radios ("I am a…") + acceptance checkbox: inline, sentence-case, readable */
.wpcf7-radio .wpcf7-list-item,
.wpcf7-acceptance .wpcf7-list-item { display: inline-flex; align-items: flex-start; gap: 8px; margin: 0 20px 0 0; }
.wpcf7-radio label, .wpcf7-acceptance label { text-transform: none; letter-spacing: normal; font-weight: 400; cursor: pointer; margin: 0; }
.wpcf7-radio .wpcf7-list-item-label { font-size: 14px; color: var(--charcoal); }
.wpcf7-acceptance .wpcf7-list-item-label { font-size: 13px; color: var(--grey); line-height: 1.5; }
.wpcf7-radio input, .wpcf7-acceptance input { width: auto; margin-top: 3px; flex: none; }

/* Validation + response output */
.wpcf7-not-valid-tip { font-size: 12px; color: var(--color-danger); margin-top: 4px; }
.wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; }
.wpcf7-spinner { margin-left: 10px; }

/* CF7 controls must fill their .field. CF7 nests them in label>span, so the flex-stretch
   the prototype relied on doesn't reach select/textarea -> they kept default size, and the
   textarea's cols=40 was widening the whole form column. Force full width + kill min-width. */
.field .wpcf7-form-control { width: 100%; min-width: 0; box-sizing: border-box; }
.field textarea.wpcf7-form-control { height: 120px; }
.wpcf7-form .field, .wpcf7-form .form-row { min-width: 0; }
