/* Anza Fund Manager: website design tokens and shared components.
   Source of brand values: Anza Style Guide (4 May 2020) and document colour palette.
   Web font: Nunito Sans (free, Google Fonts), chosen by Anza in place of a web licence for Avenir Next.
   Web additions (type scale, spacing, contrast rules) are proposals for a web addendum. */

:root {
  --navy: #00233f;
  --navy-600: #1f4260;
  --blue-400: #49799f;
  --blue-200: #90b6db;
  --blue-100: #dce9fa;
  --mist: #f3f7fb;
  --gold: #e9a401;
  --gold-hover: #f2b51e;
  --gold-soft: #f6df77;
  --slate: #4c5e62;
  --ink: #000000;
  --rule: #c9d6e2;
  --white: #ffffff;
  --font: 'Nunito Sans', system-ui, sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --section: clamp(64px, 8vw, 112px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--white); }

/* Base */
.az { font-family: var(--font); color: var(--ink); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.az a { color: var(--navy-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.az a:hover { color: var(--navy); }
.az :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.az img { display: block; max-width: 100%; }
.az h1, .az h2, .az h3, .az h4 { margin: 0; color: var(--navy); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.az p { margin: 0; text-wrap: pretty; }
.az ul, .az ol { margin: 0; padding: 0; }
.az button { font-family: inherit; }

/* Layout */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-sm { padding: clamp(48px, 6vw, 72px) 0; }
.az .stack > * + * { margin-top: 20px; }
.az .stack-sm > * + * { margin-top: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(24px, 4vw, 48px); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(24px, 3vw, 40px); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: clamp(20px, 3vw, 32px); }
.measure { max-width: 720px; }
@media (max-width: 860px) {
  .split, .split-even { grid-template-columns: minmax(0, 1fr); }
}

/* Surfaces */
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy p, .bg-navy li, .bg-navy dd { color: var(--blue-100); }
.bg-navy a { color: var(--white); }
.bg-mist { background: var(--mist); }
.bg-blue { background: var(--blue-100); }
.rule-top { border-top: 1px solid var(--rule); }

/* Type scale */
.display { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.08; letter-spacing: -0.02em; }
.h1 { font-size: clamp(2.125rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -0.02em; }
.h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.15; }
.h3 { font-size: 1.25rem; line-height: 1.35; }
.h4 { font-size: 1.0625rem; line-height: 1.4; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; }
.small { font-size: 0.9375rem; line-height: 1.55; }
.xs { font-size: 0.8125rem; line-height: 1.5; }
.muted { color: var(--slate); }
.bg-navy .muted { color: var(--blue-200); }
.strong { font-weight: 700; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.eyebrow::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.bg-navy .eyebrow { color: var(--gold); }

/* Placeholder marking for unconfirmed content */
.tbc { background: rgba(246, 223, 119, 0.55); padding: 0 3px; border-radius: var(--radius); }
.bg-navy .tbc { background: rgba(246, 223, 119, 0.22); color: var(--white); }
.note { font-size: 0.875rem; line-height: 1.5; color: var(--slate); }
.bg-navy .note { color: var(--blue-200); }

/* Buttons and links */
.btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: var(--radius); font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.az .btn-gold { background: var(--gold); color: var(--navy); }
.az .btn-gold:hover { background: var(--gold-hover); color: var(--navy); }
.az .btn-navy { background: var(--navy); color: var(--white); }
.az .btn-navy:hover { background: var(--navy-600); color: var(--white); }
.az .btn-line { background: transparent; border-color: var(--navy); color: var(--navy); }
.az .btn-line:hover { background: var(--navy); color: var(--white); }
.az .bg-navy .btn-line { border-color: var(--white); color: var(--white); }
.az .bg-navy .btn-line:hover { background: var(--white); color: var(--navy); }
.az .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.az .bg-navy .more { color: var(--white); }
.more::after { content: "\2192"; }

/* Tags */
.tag { display: inline-block; padding: 4px 10px; border-radius: var(--radius); background: var(--gold); color: var(--navy); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4; }
.tag-quiet { background: var(--blue-100); color: var(--navy); }
.bg-navy .tag-quiet { background: var(--navy-600); color: var(--white); }

/* Ruled items: the main alternative to cards */
.ruled > * { border-top: 1px solid var(--rule); padding-top: 22px; }
.ruled-gold > * { border-top: 2px solid var(--gold); padding-top: 20px; }
.bg-navy .ruled > * { border-top-color: rgba(255, 255, 255, 0.22); }
.num { display: block; margin-bottom: 10px; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.08em; color: var(--blue-400); }
.bg-navy .num { color: var(--gold); }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fact { padding: 26px 24px 26px 0; }
.fact + .fact { border-left: 1px solid var(--rule); padding-left: 24px; }
.fact-num { display: block; font-size: clamp(1.875rem, 3.2vw, 2.625rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--navy); }
.fact-label { display: block; margin-top: 8px; font-size: 0.9375rem; line-height: 1.45; color: var(--slate); }
@media (max-width: 960px) {
  .fact + .fact { border-left: 0; padding-left: 0; }
  .fact { border-bottom: 1px solid var(--rule); }
  .fact:last-child { border-bottom: 0; }
}

/* Definition list (key facts) */
.dl { margin: 0; border-top: 2px solid var(--navy); }
.dl > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.dl dt { color: var(--slate); font-weight: 600; font-size: 0.9375rem; }
.dl dd { margin: 0; color: var(--ink); }
.bg-navy .dl { border-top-color: var(--gold); }
.bg-navy .dl > div { border-bottom-color: rgba(255, 255, 255, 0.22); }
.bg-navy .dl dt { color: var(--blue-200); }
.bg-navy .dl dd { color: var(--white); }

/* Cards: only for clickable items (funds, articles, people with bios) */
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--navy); }
.card-feature { border: 2px solid var(--navy); }

/* Photography */
.photo { width: 100%; height: 100%; object-fit: cover; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 24px; }
.portrait { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: var(--mist); }
.caption { margin-top: 10px; font-size: 0.8125rem; color: var(--slate); }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: var(--white); }
.page-hero .wrap { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--blue-100); }
.crumbs { margin: 0 0 18px; font-size: 0.875rem; color: var(--blue-200); }
.crumbs a { color: var(--blue-200); }

/* Section sub-navigation (About) */
.subnav { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.az .subnav a { padding: 12px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--blue-100); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.az .subnav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold); }

/* Range bars (allocations) */
.bar { position: relative; height: 10px; margin-top: 8px; background: var(--blue-100); }
.bar > span { position: absolute; top: 0; bottom: 0; background: var(--navy); }
.bar-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.75rem; color: var(--slate); }

/* Filters (pill buttons) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; min-height: 48px; padding: 10px 12px; border: 1px solid var(--blue-400); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.field textarea { min-height: 132px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* Prototype banner */
.proto { background: var(--gold-soft); color: var(--navy); font-size: 0.8125rem; line-height: 1.4; padding: 8px var(--gutter); text-align: center; }

/* Header */
.hdr { background: var(--white); border-bottom: 1px solid var(--rule); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.hdr-logo { display: flex; align-items: center; }
.hdr-logo img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px 26px; }
.az .nav a { color: var(--navy); text-decoration: none; font-size: 0.9375rem; font-weight: 600; padding: 8px 0; border-bottom: 2px solid transparent; }
.az .nav a:hover { border-bottom-color: var(--blue-200); }
.az .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.az .nav a.btn { padding: 10px 18px; min-height: 44px; border-bottom: 2px solid transparent; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 2px solid var(--navy); border-radius: var(--radius); background: var(--white); color: var(--navy); font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.mnav { display: none; padding: 4px 0 20px; }
.az .mnav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--navy); text-decoration: none; font-size: 1.125rem; font-weight: 600; }
.az .mnav a[aria-current="page"] { color: var(--navy); box-shadow: inset 4px 0 0 var(--gold); padding-left: 14px; }
.az .mnav a.btn { margin-top: 18px; display: inline-flex; border-bottom: 2px solid transparent; font-size: 1rem; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mnav { display: block; }
  .hdr-in { min-height: 72px; }
  .hdr-logo img { height: 52px; }
}

/* Footer */
.ftr { border-top: 4px solid var(--gold); background: var(--white); }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 3fr); gap: 32px; padding: 56px 0 32px; }
.ftr-grid img { height: 68px; width: auto; }
.ftr h2 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.ftr nav { display: flex; flex-direction: column; gap: 8px; font-size: 0.9375rem; }
.az .ftr nav a { color: var(--navy); text-decoration: none; }
.az .ftr nav a:hover { text-decoration: underline; }
.ftr-legal { border-top: 1px solid var(--rule); padding: 20px 0 36px; font-size: 0.8125rem; color: var(--slate); }
@media (max-width: 860px) {
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Home hero */
.hero { background: var(--navy); color: var(--white); }
.hero .wrap { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.hero h1 { color: var(--white); }
.hero p { color: var(--blue-100); }
.hero-photo { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }

/* Portfolio name grid */
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 0 24px; }
.names > * { border-top: 1px solid rgba(255, 255, 255, 0.22); padding: 14px 0; font-weight: 600; color: var(--white); }
.names-light > * { border-top-color: var(--rule); color: var(--navy); }

/* Split call to action */
.cta-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); }
.cta-split > * { padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 64px); }

/* Chips: filters and tabs */
.chip { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--blue-200); background: var(--white); color: var(--navy); font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Scorecard bars */
.score { display: grid; grid-template-columns: 110px minmax(0, 1fr) 48px; gap: 14px; align-items: center; }
.score + .score { margin-top: 12px; }
.score-track { height: 12px; background: var(--blue-100); }
.score-track > span { display: block; height: 12px; background: var(--navy); }

/* Text-style button (expand/collapse) */
.linkbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--navy); font-size: 0.9375rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ticks > li { position: relative; padding-left: 18px; }
.ticks > li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.ticks > li + li { margin-top: 6px; }

/* Light cards placed on navy sections keep dark text */
.bg-navy .card h2, .bg-navy .card h3, .bg-navy .card h4 { color: var(--navy); }
.bg-navy .card p, .bg-navy .card li, .bg-navy .card label, .bg-navy .card span { color: var(--ink); }
.bg-navy .card .note, .bg-navy .card .muted { color: var(--slate); }
.bg-navy .card .tbc { background: rgba(246, 223, 119, 0.55); color: var(--ink); }
.az .bg-navy .card .btn-line { border-color: var(--navy); color: var(--navy); }
.az .bg-navy .card .btn-gold { color: var(--navy); }

/* Fixed-count grids for the wide column of a .split */
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
@media (max-width: 700px) { .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); } }

/* Theory of change ladder: fill and border signal how strongly each level can be claimed */
.toc { border-bottom: 1px solid var(--rule); }
.toc-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px 32px; padding: 20px 0; border-top: 1px solid var(--rule); }
.toc-key { display: flex; flex-direction: column; gap: 4px; }
.toc-level { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.toc-claim { font-size: 0.8125rem; line-height: 1.45; color: var(--slate); }
.toc-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.toc-box { padding: 14px 16px; font-size: 0.9375rem; line-height: 1.45; border-radius: var(--radius); background: var(--white); border: 1px solid var(--rule); color: var(--navy); }
.toc-problem .toc-box { background: var(--mist); font-weight: 600; }
.toc-control .toc-box { background: var(--navy); border-color: var(--navy); color: var(--white); }
.toc-influence .toc-box { background: var(--blue-100); border-color: var(--blue-100); }
.toc-indirect .toc-box { border: 1px dashed var(--blue-400); }
.toc-impact .toc-box { border: 2px solid var(--gold); font-size: 1.0625rem; font-weight: 600; }
@media (max-width: 760px) { .toc-row { grid-template-columns: minmax(0, 1fr); } }

/* Responsive data table: rows stack with inline labels on small screens */
.mtable { border-bottom: 1px solid var(--rule); }
.mrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 6px 24px; padding: 16px 0; border-top: 1px solid var(--rule); font-size: 0.9375rem; line-height: 1.5; }
.mrow > .mcell:first-child { font-weight: 700; color: var(--navy); }
.mhead { padding: 12px 0; border-top: 2px solid var(--navy); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.mhead > .mcell:first-child { color: var(--slate); }
@media (max-width: 900px) {
  .mrow { grid-template-columns: minmax(0, 1fr); }
  .mhead { display: none; }
  .mcell[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
}

/* Founder fit check */
.fit { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.fit-item { display: flex; gap: 14px; align-items: center; width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--blue-200); border-radius: var(--radius); background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4; text-align: left; cursor: pointer; }
.fit-item:hover { border-color: var(--navy); }
.fit-item[aria-pressed="true"] { border-color: var(--navy); background: var(--blue-100); color: var(--navy); }
.fit-box { flex: 0 0 24px; height: 24px; border: 2px solid var(--blue-400); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: var(--white); background: var(--white); }
.fit-item[aria-pressed="true"] .fit-box { background: var(--navy); border-color: var(--navy); }
.fit-item[aria-pressed="true"] .fit-box::after { content: "\2713"; }
.fit-result { margin-top: 20px; padding: 18px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--rule); color: var(--navy); }
.fit-result[data-state="ok"] { background: var(--navy); border-color: var(--navy); }
.az .fit-result[data-state="ok"] p, .az .fit-result[data-state="ok"] h3 { color: var(--white); }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 0 28px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; border-top: 2px solid var(--navy); padding: 18px 0 24px; }
.steps > li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 10px; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.08em; color: var(--blue-400); }
.bg-navy .steps > li { border-top-color: var(--gold); }
.bg-navy .steps > li::before { color: var(--gold); }

/* Portfolio cards with logos */
.port-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.port-grid sc-if, .logo-wall sc-if { display: contents; }
.port-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.port-logo { height: 108px; display: flex; align-items: center; justify-content: center; padding: 18px 28px; border-bottom: 1px solid var(--rule); }
.port-logo img { display: block; max-height: 60px; max-width: 75%; width: auto; height: auto; }
.port-body { padding: 18px 22px 22px; }

/* Logo wall on navy */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.logo-wall li { height: 72px; display: flex; align-items: center; justify-content: center; padding: 10px 14px; background: var(--white); border-radius: var(--radius); }
.logo-wall img { display: block; max-height: 38px; max-width: 88%; width: auto; height: auto; }

/* Quotes and story */
.quote { margin: 0; border-top: 2px solid var(--gold); padding-top: 20px; }
.az .quote p { font-size: 1.125rem; line-height: 1.6; color: var(--navy); }
.quote footer { margin-top: 12px; font-size: 0.9375rem; color: var(--slate); }
.story-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: var(--radius); }

/* Home: short logo wall with a link tile */
.logo-wall-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.logo-wall-3 li { height: 92px; }
.logo-wall .logo-more { background: var(--navy-600); }
.az .logo-wall .logo-more a { color: var(--white); font-weight: 700; font-size: 0.9375rem; text-align: center; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
@media (max-width: 480px) { .logo-wall-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.people-5 { grid-template-columns: repeat(auto-fit, minmax(min(128px, 100%), 1fr)); gap: 20px; }

/* Video link card (the canvas format cannot embed a player) */
.video-card { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--navy); text-decoration: none; }
.video-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.video-card::after { content: ""; position: absolute; inset: 0; background: rgba(0, 35, 63, 0.62); }
.video-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; transition: transform 0.15s ease; }
.video-card:hover .video-play { transform: scale(1.06); }
.video-meta { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 24px; display: flex; flex-direction: column; gap: 6px; }
.az .video-meta .h3 { color: var(--white); }

/* Brand motif: "Anza" means multiply in great numbers. Dots double from column to column. */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: clamp(16px, 3vw, 48px); top: 28px; bottom: 28px; width: min(36vw, 440px); background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20420%20340%22%3E%3Cg%20fill%3D%22%23e9a401%22%3E%3Ccircle%20cx%3D%2230.0%22%20cy%3D%22170.0%22%20r%3D%227.0%22/%3E%3Ccircle%20cx%3D%22102.0%22%20cy%3D%2220.0%22%20r%3D%225.6%22/%3E%3Ccircle%20cx%3D%22102.0%22%20cy%3D%22320.0%22%20r%3D%225.6%22/%3E%3Ccircle%20cx%3D%22174.0%22%20cy%3D%2220.0%22%20r%3D%224.4%22/%3E%3Ccircle%20cx%3D%22174.0%22%20cy%3D%22120.0%22%20r%3D%224.4%22/%3E%3Ccircle%20cx%3D%22174.0%22%20cy%3D%22220.0%22%20r%3D%224.4%22/%3E%3Ccircle%20cx%3D%22174.0%22%20cy%3D%22320.0%22%20r%3D%224.4%22/%3E%3Ccircle%20cx%3D%22246.0%22%20cy%3D%2220.0%22%20r%3D%223.4%22/%3E%3Ccircle%20cx%3D%22246.0%22%20cy%3D%2262.9%22%20r%3D%223.4%22/%3E%3Ccircle%20cx%3D%22246.0%22%20cy%3D%22105.7%22%20r%3D%223.4%22/%3E%3Ccircle%20cx%3D%22246.0%22%20cy%3D%22148.6%22%20r%3D%223.4%22/%3E%3Ccircle%20cx%3D%22246.0%22%20cy%3D%22191.4%22%20r%3D%223.4%22/%3E%3Ccircle%20cx%3D%22246.0%22%20cy%3D%22234.3%22%20r%3D%223.4%22/%3E%3Ccircle%20cx%3D%22246.0%22%20cy%3D%22277.1%22%20r%3D%223.4%22/%3E%3Ccircle%20cx%3D%22246.0%22%20cy%3D%22320.0%22%20r%3D%223.4%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%2220.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%2240.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%2260.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%2280.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%22100.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%22120.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%22140.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%22160.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%22180.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%22200.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%22220.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%22240.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%22260.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%22280.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%22300.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22318.0%22%20cy%3D%22320.0%22%20r%3D%222.6%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%2220.0%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%2229.7%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%2239.4%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%2249.0%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%2258.7%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%2268.4%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%2278.1%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%2287.7%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%2297.4%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22107.1%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22116.8%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22126.5%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22136.1%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22145.8%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22155.5%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22165.2%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22174.8%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22184.5%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22194.2%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22203.9%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22213.5%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22223.2%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22232.9%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22242.6%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22252.3%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22261.9%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22271.6%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22281.3%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22291.0%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22300.6%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22310.3%22%20r%3D%222.0%22/%3E%3Ccircle%20cx%3D%22390.0%22%20cy%3D%22320.0%22%20r%3D%222.0%22/%3E%3C/g%3E%3C/svg%3E") no-repeat right center / contain; opacity: 0.22; pointer-events: none; }
.page-hero > .wrap { position: relative; z-index: 1; }
@media (max-width: 760px) { .page-hero::after { width: 55vw; top: auto; height: 34vw; bottom: 12px; opacity: 0.14; } }

/* Motion: calm, purposeful movement. Everything here is off for visitors who ask for reduced motion, and off in print. */
@keyframes az-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: none; } }
@keyframes az-motif { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
  /* Page heroes: content eases up in sequence, then the doubling-dot motif "multiplies" into view from left to right */
  .page-hero .wrap > * { animation: az-rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
  .page-hero .wrap > :nth-child(2) { animation-delay: 0.08s; }
  .page-hero .wrap > :nth-child(3) { animation-delay: 0.16s; }
  .page-hero .wrap > :nth-child(4) { animation-delay: 0.24s; }
  .page-hero .wrap > :nth-child(n+5) { animation-delay: 0.32s; }
  .page-hero::after { animation: az-motif 1.8s cubic-bezier(.3,.6,.2,1) 0.35s both; }
  .hero .stack > * { animation: az-rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
  .hero .stack > :nth-child(2) { animation-delay: 0.08s; }
  .hero .stack > :nth-child(3) { animation-delay: 0.16s; }
  .hero .stack > :nth-child(n+4) { animation-delay: 0.24s; }

  /* Cards and photos rise gently as they scroll into view (browsers without scroll timelines simply show them) */
  @supports (animation-timeline: view()) {
    .az :is(.port-card, .icard, .toc-card, .rs-card, .nf-card, .exit-card, .pcard, .work-card, .sh-card, .gov-card, .ex-card, .bn-card, .road-card, .risk-card, .pl-card, .path-card, .pf-card, .video-card, .stack-sm > .portrait, .story-photo, .quote, .logo-wall li, .gd-box) {
      animation: az-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 220px;
    }
  }

  /* Linked cards lift on hover */
  html .az :is(.icard, .pcard, .nf-card, .rs-card, .port-card, .work-card) { transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease, border-color 0.2s ease; }
  html .az :is(.icard, .nf-card, .rs-card):hover { transform: translateY(-4px); }
  html .az .port-card:hover, html .az .work-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -16px rgba(0,35,63,0.35); }

  /* Photos zoom slowly inside their frame on hover (the clip keeps the frame still) */
  .icard-img { clip-path: inset(0); transition: filter 0.3s ease, transform 0.7s cubic-bezier(.2,.7,.2,1), clip-path 0.7s cubic-bezier(.2,.7,.2,1) !important; }
  .az .icard:hover .icard-img { transform: scale(1.0526); clip-path: inset(2.5%); }
  .pcard-img img { transition: transform 0.7s cubic-bezier(.2,.7,.2,1) !important; }
  .ex-card img { transition: filter 0.3s ease, transform 0.9s cubic-bezier(.2,.7,.2,1) !important; }
  .az .ex-card:hover img { transform: scale(1.06) !important; }
}

/* Data in motion: charts build as they scroll into view; office markers pulse gently */
@keyframes az-grow-y { from { scale: 1 0; } to { scale: 1 1; } }
@keyframes az-grow-x { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes az-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes az-pulse { 0% { transform: scale(1); opacity: 0.9; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
.az-pulse { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .gv-bar { transform-origin: bottom; animation: az-grow-y linear both; animation-timeline: view(); animation-range: entry 25% entry 100%; }
    .bar > span { transform-origin: left; animation: az-grow-x linear both; animation-timeline: view(); animation-range: entry 25% entry 100%; }
    .own-bar, .mix-bar { animation: az-wipe linear both; animation-timeline: view(); animation-range: entry 20% entry 100%; }
  }
  .az-pulse { transform-box: fill-box; transform-origin: center; animation: az-pulse 2.8s cubic-bezier(.2,.6,.3,1) infinite; }
  .fp-office + .fp-office .az-pulse { animation-delay: 1.4s; }
}

/* Count-up figures: the real number stays in the text; the animated copy is decorative */
@property --n { syntax: '<integer>'; initial-value: 0; inherits: false; }
.cu { display: none; }
@keyframes az-count { from { --n: 0; } to { --n: var(--to); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .cu { display: inline; --n: var(--to); counter-reset: n var(--n); animation: az-count linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    .cu::before { content: attr(data-p); }
    .cu::after { content: counter(n) attr(data-s); }
    .cu-dec::after { content: counter(n, decimal-leading-zero) attr(data-s); }
    .cu + .cu-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  }
}

/* Micro-interactions: links and buttons respond to the pointer */
@keyframes az-sheen { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@media (prefers-reduced-motion: no-preference) {
  .more::after { transition: transform 0.25s cubic-bezier(.2,.7,.2,1); }
  .az .more:hover::after { transform: translateX(5px); }
  .az .more { background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 2px no-repeat; transition: background-size 0.35s ease; }
  .az .more:hover { background-size: 100% 2px; }
  .az .btn { position: relative; overflow: hidden; transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease; }
  .az .btn:active { transform: translateY(1px) scale(0.98); }
  .az .btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
  .az .btn-gold:hover::after { animation: az-sheen 0.8s ease; }
}

/* Brand film motif: thin gold and blue orbit lines on the horizon of each page header */
.az .page-hero { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201200%20400%22%20fill%3D%22none%22%3E%3Cellipse%20cx%3D%22600%22%20cy%3D%22420%22%20rx%3D%22760%22%20ry%3D%22150%22%20stroke%3D%22%23e9a401%22%20stroke-width%3D%221.6%22%20stroke-opacity%3D%220.55%22/%3E%3Cellipse%20cx%3D%22760%22%20cy%3D%22440%22%20rx%3D%22620%22%20ry%3D%22120%22%20stroke%3D%22%2390b6db%22%20stroke-width%3D%221%22%20stroke-opacity%3D%220.35%22/%3E%3Cellipse%20cx%3D%22380%22%20cy%3D%22460%22%20rx%3D%22520%22%20ry%3D%22110%22%20stroke%3D%22%2390b6db%22%20stroke-width%3D%221%22%20stroke-opacity%3D%220.25%22/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 1800px auto; background-position: center bottom -135px; }
@keyframes az-orbit { 0%, 100% { background-position: calc(50% - 80px) bottom -135px; } 50% { background-position: calc(50% + 80px) bottom -128px; } }
@media (prefers-reduced-motion: no-preference) { .az .page-hero { animation: az-orbit 26s ease-in-out infinite; } }
@media print { .az .page-hero { background-image: none !important; } }

/* Print: investors print and save pages as PDF. Clean A4 output, no navigation or forms. */
@media print {
  @page { size: A4; margin: 16mm 14mm 18mm; }
  html, body, .az { background: #ffffff !important; }
  .az, .az * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .az .glance { background: #c9d6e2 !important; }
  .az .glance > div { background: #ffffff !important; }
  .az .glance-lbl { color: #33454f !important; }
  .az .glance-num { color: #00233f !important; }
  .az { color: #000000 !important; font-size: 10.5pt; }
  .proto, .raise, .skip, .nav, .hdr-tools, .srch, .mnav, .mbar, .news, .jump, .subnav, .pl-btn, .kf-head .pl-btn, .faq-ico,
  .ftr-grid > div:not(:first-child), .ftr-top, form, .form-grid, .btns, .btn, .no-print, .news-lnk .news-k + span + span, video, iframe { display: none !important; }
  .hdr { position: static !important; border-bottom: 2px solid #00233f; box-shadow: none !important; }
  .hdr-in { min-height: 0 !important; padding-top: 0 !important; padding-bottom: 8px !important; }
  .hdr-logo img { height: 44px; }
  .wrap { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
  .section, .section-sm, .page-hero { padding-top: 18pt !important; padding-bottom: 18pt !important; }
  .bg-navy, .bg-mist, .page-hero { background: #ffffff !important; }
  .az .bg-navy, .az .bg-navy *, .az .page-hero, .az .page-hero * { color: #000000 !important; border-color: #9aa9b5 !important; }
  .page-hero { border-bottom: 1px solid #c9d6e2; }
  .page-hero::after { display: none !important; }
  .h1 { font-size: 24pt !important; }
  .h2 { font-size: 16pt !important; }
  h1, h2, h3, h4, .eyebrow { break-after: avoid; page-break-after: avoid; }
  li, figure, img, table, .card, .port-card, .fact, .dl > div, .quote, .gd, .pl-x { break-inside: avoid; page-break-inside: avoid; }
  img { max-width: 100% !important; max-height: 90mm !important; object-fit: cover; }
  .port-logo img, .logo-wall img, .hdr-logo img, .ftr img { object-fit: contain; }
  main p a[href^="http"]::after, main li a.small[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #4c5e62; word-break: break-all; }
  .ftr { border-top: 2px solid #00233f; padding-bottom: 0 !important; }
  .ftr-grid { display: block !important; }
  .ftr-legal { font-size: 8pt; }
}

/* Static site: conditional blocks driven by site.js */
.dc-if { display: contents; }
.dc-if[hidden] { display: none !important; }

/* Larger tap targets for breadcrumb links on small screens */
@media (max-width: 760px) { .crumbs a { display: inline-block; padding: 8px 0; } }
