/* AIPAF - corporate site styles
   Palette is taken from the seal: deep green (#02521d) and plumb-bob gold (#d28503).
   Layout and hero pattern follow the supplied reference (glass nav, video hero, feature panel on the right). */

:root {
  --g950: #03140a;
  --g900: #061f10;
  --g850: #0a2c16;
  --g800: #02521d;
  --g700: #0b6b2b;
  --g300: #8fb79b;
  --g200: #cfe3d4;
  --g100: #e6f0e8;
  --g50: #f3f7f4;
  --gold: #d28503;
  --gold-hi: #f2ac1f;
  --gold-soft: #f7d68a;
  --gold-ink: #86550a;
  --text: #12231a;
  --muted: #475a4f;
  --line: #d5e0d8;
  --white: #fff;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6.5rem; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--g800); text-underline-offset: .2em; }
a:hover { color: var(--g700); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.012em; color: inherit; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold-hi); color: var(--g950); padding: .7rem 1rem; border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 1.05rem 1.9rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--g950); box-shadow: 0 8px 28px -8px rgba(242, 172, 31, .55); }
.btn-gold:hover { color: var(--g950); transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(242, 172, 31, .7); }
.btn-glass { background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-green { background: var(--g800); color: #fff; }
.btn-green:hover { background: var(--g700); color: #fff; transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--g800); border-color: var(--g800); }
.btn-line:hover { background: var(--g800); color: #fff; }
.btn-nav { padding: .8rem 1.4rem; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: .9rem var(--gutter) 0; pointer-events: none; }
.nav-shell {
  pointer-events: auto; max-width: 1280px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: .6rem .7rem .6rem .8rem;
  border-radius: 22px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(6, 31, 16, .55); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .6);
  transition: background .3s, border-color .3s;
}
.site-header.is-scrolled .nav-shell { background: rgba(4, 24, 12, .88); border-color: rgba(255, 255, 255, .1); }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-badge { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.brand-badge img { width: 40px; height: 40px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-word { font: 600 1.35rem/1 var(--serif); letter-spacing: .06em; }
.brand-line { font-size: .74rem; color: var(--gold-soft); letter-spacing: .04em; margin-top: .22rem; }
.primary-nav { display: flex; align-items: center; gap: 1.4rem; }
.primary-nav > ul { list-style: none; display: flex; align-items: center; gap: .15rem; }
.primary-nav ul a, .primary-nav ul button { display: block; padding: .6rem .8rem; border: 0; border-radius: 999px; color: rgba(255, 255, 255, .86); text-decoration: none; font: 500 .98rem var(--sans); background: transparent; cursor: pointer; transition: color .2s, background .2s; }
.primary-nav ul a:hover, .primary-nav ul button:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.primary-nav ul a[aria-current="page"] { color: var(--gold-hi); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu { position: absolute; top: calc(100% + .4rem); left: 0; min-width: 12rem; padding: .35rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(4, 24, 12, .96); box-shadow: 0 16px 32px -20px rgba(0,0,0,.8); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.nav-dropdown-menu li + li { margin-top: .1rem; }
.nav-dropdown-menu a { padding: .7rem .9rem; border-radius: 9px; }
.nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown.is-open > .nav-dropdown-trigger, .nav-dropdown-trigger[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .09); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 50%; width: 18px; height: 2px; background: #fff; border-radius: 2px; transform: translateX(-50%); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before { top: -6px; left: 50%; }
.nav-toggle-bars::after { top: 6px; left: 50%; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .brand-line { display: none; }
  .primary-nav { gap: .7rem; }
  .primary-nav > ul { gap: .05rem; }
  .primary-nav ul a, .primary-nav ul button { padding: .5rem .56rem; font-size: .86rem; }
  .primary-nav ul { gap: .05rem; }
  .primary-nav ul a { padding: .5rem .56rem; font-size: .86rem; }
  .btn-nav { padding: .7rem 1rem; font-size: .86rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-shell { position: relative; }
  .primary-nav {
    position: absolute; top: calc(100% + .5rem); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .75rem; padding: 1rem;
    background: rgba(4, 24, 12, .96); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; }
  .primary-nav ul a, .primary-nav ul button { padding: .85rem 1rem; font-size: 1.05rem; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-trigger { width: 100%; text-align: left; }
  .nav-dropdown-menu { position: static; margin-top: .35rem; padding: .25rem; background: rgba(255,255,255,.03); box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-dropdown:not(.is-open) .nav-dropdown-menu { display: none; }
  .btn-nav { padding: 1rem; }
}

/* ---------- Hero (video) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; align-items: safe center; color: #fff; background: var(--g950); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(3, 20, 10, .93) 0%, rgba(3, 20, 10, .78) 38%, rgba(3, 20, 10, .35) 70%, rgba(3, 20, 10, .5) 100%),
  linear-gradient(180deg, rgba(3, 20, 10, .55) 0%, transparent 22%, transparent 70%, rgba(3, 20, 10, .92) 100%); }
.hero-inner { width: 100%; max-width: 1280px; margin-inline: auto; padding: 5.5rem var(--gutter) 2.5rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .7rem; color: var(--gold-hi); font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }
.hero-eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: var(--gold-hi); }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.6rem); font-weight: 500; line-height: 1.08; letter-spacing: -.022em; max-width: 14.5em; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--gold-hi); }
.hero-sub { max-width: 34rem; font-size: clamp(.95rem, 1.2vw, 1.05rem); line-height: 1.5; color: rgba(255, 255, 255, .86); margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-seal { margin: 0; justify-self: end; width: 100%; max-width: 40rem; }
.hero-seal-inner { position: relative; will-change: transform, opacity; transform: translate3d(0, calc(var(--p, 0) * -40px), 0) scale(calc(1 - var(--p, 0) * .2)) rotate(calc(var(--p, 0) * -5deg)); opacity: calc(1 - var(--p, 0) * .95); }
.hero-seal video { width: 100%; aspect-ratio: 1.18; object-fit: cover; object-position: 50% 50%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }

/* scroll-linked hero: --p runs 0 to 1 as the hero scrolls away (set in main.js) */
.hero-copy { transform: translate3d(0, calc(var(--p, 0) * -70px), 0); opacity: calc(1 - var(--p, 0) * 1.2); will-change: transform, opacity; }
.hero-media video { transform: scale(calc(1.02 + var(--p, 0) * .14)); will-change: transform; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: var(--g950); opacity: calc(var(--p, 0) * .75); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; width: 22px; height: 38px; margin-left: -11px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 12px; opacity: calc(1 - var(--p, 0) * 6); pointer-events: none; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-hi); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

.hero .ruler { position: absolute; left: 0; right: 0; bottom: 0; }

/* page-load sequence: one orchestrated moment */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy > *, .hero-seal { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: .1s; }
.hero-copy > :nth-child(2) { animation-delay: .22s; }
.hero-copy > :nth-child(3) { animation-delay: .36s; }
.hero-copy > :nth-child(4) { animation-delay: .5s; }
.hero-seal { animation-delay: .5s; }

/* graduated ruler (from the seal's reference bar) */
.ruler { height: 18px; opacity: .75; background:
  repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 96px) left bottom / 100% 18px no-repeat,
  repeating-linear-gradient(90deg, rgba(210, 133, 3, .75) 0 2px, transparent 2px 24px) left bottom / 100% 9px no-repeat,
  linear-gradient(var(--gold), var(--gold)) left bottom / 100% 2px no-repeat; }

/* ---------- Motto band ---------- */
.motto-band { background: var(--g800); color: #fff; text-align: center; padding: 1.7rem var(--gutter); }
.motto-band p { margin: 0; font: italic 500 clamp(1.35rem, 2.6vw, 2rem)/1.2 var(--serif); letter-spacing: -.005em; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--g50); }
.section-dark { background: var(--g900); color: #fff; }
.section-dark a:not(.btn) { color: var(--gold-hi); }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-weight: 600; font-size: .98rem; color: var(--gold-ink); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: var(--gold); flex: none; }
.section-dark .eyebrow { color: var(--gold-hi); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 22em; }
.h2-wide { max-width: 30em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 40rem; }
.section-dark .lead { color: rgba(255, 255, 255, .78); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.prose { max-width: 42rem; }
.prose h3 { font-size: 1.5rem; margin-top: 2rem; }
.prose ul, .list { padding-left: 1.2rem; margin-bottom: 1.2rem; }
.prose li, .list li { margin-bottom: .55rem; padding-left: .25rem; }
.prose li::marker, .list li::marker { color: var(--gold); }

/* mandate */
.mandate-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.triad { list-style: none; display: grid; }
.triad li { padding: 1.3rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; }
.triad li:last-child { border-bottom: 1px solid var(--line); }
.triad strong { font: 500 1.7rem/1.1 var(--serif); color: var(--g800); }
.triad span { color: var(--muted); }

/* lifecycle columns joined by the plumb line */
.cycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; position: relative; }
.cycle-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.7rem 1.8rem; position: relative; transition: border-color .25s, box-shadow .25s; }
.cycle-item:hover { border-color: var(--g300); box-shadow: 0 24px 50px -30px rgba(2, 82, 29, .5); }
.cycle-step { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--g800); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 1.2rem; }
.cycle-item:nth-child(2) .cycle-step { background: var(--gold); color: var(--g950); }
.cycle-item h3 { font-size: 2rem; margin-bottom: .2rem; }
.cycle-tag { font: italic 500 1.2rem/1.3 var(--serif); color: var(--gold-ink); margin-bottom: .9rem; }
.cycle-item p:last-child { margin-bottom: 0; color: var(--muted); }
.cycle-link { display: inline-block; margin-top: 1rem; font-weight: 600; }

/* credentials */
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cred { background: var(--g850); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: 2rem 1.7rem; display: flex; flex-direction: column; }
.cred .cred-code { font: 500 3.1rem/1 var(--serif); color: var(--gold-hi); letter-spacing: -.02em; margin-bottom: .6rem; }
.cred h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; margin-bottom: .3rem; }
.cred-fn { display: inline-block; align-self: flex-start; font-size: .9rem; font-weight: 600; padding: .25rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: var(--g200); margin-bottom: 1.1rem; }
.cred p { color: rgba(255, 255, 255, .78); margin-bottom: 0; }
.callout { margin-top: 1.5rem; padding: 1.6rem 1.8rem; border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(242, 172, 31, .16), rgba(242, 172, 31, .05)); border: 1px solid rgba(242, 172, 31, .4); display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.callout-icon { width: 2.6rem; height: 2.6rem; }
.callout p { margin: 0; font-size: 1.1rem; }
.callout-light { background: var(--g50); border-color: var(--g200); color: var(--text); }
.callout-title { display: block; font: 500 1.35rem/1.2 var(--serif); margin-bottom: .35rem; }

/* pathway */
.path { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2rem; align-items: stretch; }
.path-card { border-radius: var(--radius-lg); padding: 2.2rem 2rem; border: 1px solid var(--line); background: #fff; }
.path-card.is-chartered { background: var(--g800); color: #fff; border-color: var(--g800); }
.path-card h3 { font-size: 1.9rem; margin-bottom: .2rem; }
.path-tag { font-weight: 600; font-size: .95rem; color: var(--gold-ink); margin-bottom: 1rem; }
.is-chartered .path-tag { color: var(--gold-soft); }
.path-card p:last-child { margin-bottom: 0; }
.path-arrow { align-self: center; width: 3.4rem; height: 3.4rem; color: var(--gold); }

/* membership ladder */
.ladder { list-style: none; display: grid; gap: .75rem; counter-reset: grade; }
.ladder li { display: grid; grid-template-columns: 4.2rem minmax(0, 14rem) 1fr; gap: 1.2rem; align-items: center; padding: 1.1rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ladder li::before { counter-increment: grade; content: counter(grade); width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--g100); color: var(--g800); }
.ladder li:nth-child(4)::before { background: var(--g800); color: #fff; }
.ladder li:nth-child(5)::before { background: var(--gold); color: var(--g950); }
.ladder strong { font: 500 1.35rem/1.15 var(--serif); }
.ladder span { color: var(--muted); }
.ladder-note { margin-top: 1rem; color: var(--muted); font-size: .98rem; }

/* values / why */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--g800); }
.value { padding: 1.8rem 1.8rem 1.6rem 0; }
.value + .value { padding-left: 1.8rem; border-left: 1px solid var(--line); }
.value h3 { font-size: 1.8rem; margin-bottom: .6rem; }
.value p { color: var(--muted); margin: 0; }
.value-grid-6 { grid-template-columns: repeat(3, 1fr); }
.value-grid-6 .value { border-left: 0; padding: 1.8rem 1.8rem 1.6rem 0; border-bottom: 1px solid var(--line); }
.value-grid-6 .value:nth-child(3n+2), .value-grid-6 .value:nth-child(3n+3) { padding-left: 1.8rem; border-left: 1px solid var(--line); }

/* founders */
.founders { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; list-style: none; }
.founder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem; }
.founder h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.founder p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.founder-role { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--g800); background: var(--g100); padding: .15rem .65rem; border-radius: 999px; margin-bottom: .6rem; }
.founders-wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* split with image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); border-radius: inherit; pointer-events: none; }
.split-reverse .split-media { order: 2; }

/* CTA */
.cta { position: relative; color: #fff; text-align: center; padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--g950); overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 20, 10, .88), rgba(3, 20, 10, .76) 50%, rgba(3, 20, 10, .92)); }
.cta .eyebrow { justify-content: center; color: var(--gold-hi); }
.cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin-inline: auto; max-width: 14em; }
.cta .lead { margin-inline: auto; color: rgba(255, 255, 255, .82); }
.cta .hero-actions { justify-content: center; margin-top: 2rem; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; color: #fff; padding: 11rem 0 4.5rem; background: var(--g950); overflow: hidden; isolation: isolate; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 20, 10, .95) 0%, rgba(3, 20, 10, .8) 55%, rgba(3, 20, 10, .55) 100%); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 17em; margin-bottom: 1.1rem; }
.page-hero .lead { color: rgba(255, 255, 255, .84); margin: 0; }
.page-hero .eyebrow { color: var(--gold-hi); }
.page-hero .ruler { position: absolute; left: 0; right: 0; bottom: 0; }
.crumbs { font-size: .92rem; color: rgba(255, 255, 255, .65); margin-bottom: 1.6rem; }
.crumbs a { color: rgba(255, 255, 255, .85); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 1rem; }
th, td { text-align: left; padding: 1rem 1.2rem; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--g800); color: #fff; font-weight: 600; font-size: 1rem; border-bottom: 0; }
thead th small { display: block; font-weight: 400; color: var(--g200); margin-top: .15rem; }
tbody th { font-weight: 600; color: var(--g800); background: var(--g50); width: 11rem; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td ul { list-style: none; }
td li + li { margin-top: .3rem; }

/* ---------- Cards / lists ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem 1.6rem; }
.card h3 { font-size: 1.5rem; }
.card p { color: var(--muted); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-tinted { background: var(--g50); border-color: var(--g100); }
.num-list { list-style: none; counter-reset: n; display: grid; gap: 1rem; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; }
.num-list li::before { content: counter(n); width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--g800); color: #fff; margin-top: .1rem; }
.num-list strong { display: block; }
.vision { font: italic 500 clamp(1.5rem, 2.8vw, 2.2rem)/1.3 var(--serif); color: var(--g800); border-left: 4px solid var(--gold); padding: .3rem 0 .3rem 1.6rem; margin: 0; max-width: 46rem; }
.stack { display: grid; gap: 1.1rem; }
.check-list { list-style: none; display: grid; gap: .8rem; }
.check-list li { padding-left: 2rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 1rem; height: 2px; background: var(--gold); }
.check-list strong { display: block; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; position: relative; }
.phase { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem 1.6rem; border-top: 4px solid var(--g800); }
.phase:nth-child(2) { border-top-color: var(--gold); }
.phase:nth-child(3) { border-top-color: var(--g300); }
.phase h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.phase-tag { font-weight: 600; font-size: .9rem; color: var(--gold-ink); margin-bottom: .9rem; }
.phase ul { padding-left: 1.1rem; color: var(--muted); font-size: .98rem; }
.phase li { margin-bottom: .5rem; }
.phase li::marker { color: var(--gold); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: 0 30px 60px -40px rgba(2, 82, 29, .45); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; padding: .85rem 1rem; border-radius: 10px; border: 1px solid #b5c7bb; background: #fff; color: var(--text); width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--g800); box-shadow: 0 0 0 3px rgba(2, 82, 29, .18); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field-error { color: #b42318; font-size: .9rem; min-height: 1.2em; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form-status { margin: 0; font-weight: 500; }
.form-status.is-ok { color: var(--g800); }
.form-status.is-err { color: #b42318; }
.form-note { font-size: .92rem; color: var(--muted); margin-top: 1rem; margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 1.3rem; margin-top: 1.6rem; }
.contact-list strong { display: block; font: 500 1.2rem/1.2 var(--serif); margin-bottom: .2rem; }
.join-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--g950); color: rgba(255, 255, 255, .78); position: relative; }
.site-footer .ruler { position: absolute; top: 0; left: 0; right: 0; bottom: auto; background-position: left top, left top, left top; transform: scaleY(-1); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding-top: 4.5rem; padding-bottom: 3rem; }
.brand-footer img { width: 64px; height: 64px; }
.footer-about p { max-width: 24rem; margin-top: 1.2rem; }
.motto-small { font: italic 500 1.25rem/1.3 var(--serif); color: var(--gold-hi); }
.footer-h { font: 600 1rem/1 var(--sans); color: #fff; letter-spacing: 0; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--gold-hi); text-decoration: underline; }
.site-footer .brand { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .94rem; }
.footer-base p { margin: 0; }
.strap { color: var(--gold-soft); font-weight: 500; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; background: var(--g950); padding: 8rem var(--gutter) 4rem; }
.notfound img { width: 120px; margin: 0 auto 1.5rem; }
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.notfound p { color: rgba(255, 255, 255, .78); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { min-height: 100svh; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 7.5rem; padding-bottom: 3.5rem; }
  .hero-copy { max-width: 42rem; }
  .hero-seal { justify-self: center; max-width: 30rem; }
  .mandate-grid, .split, .contact-grid, .join-grid { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .cycle, .cred-grid, .timeline { grid-template-columns: 1fr; }
  .value-grid, .value-grid-6 { grid-template-columns: 1fr; }
  .value, .value + .value, .value-grid-6 .value, .value-grid-6 .value:nth-child(3n+2), .value-grid-6 .value:nth-child(3n+3) { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .path { grid-template-columns: 1fr; }
  .path-arrow { transform: rotate(90deg); margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-inner { padding-top: 7rem; padding-bottom: 3rem; }
  .hero-eyebrow { margin-bottom: .7rem; font-size: .85rem; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.7rem); margin-bottom: .8rem; }
  .hero-sub { font-size: .95rem; margin-bottom: 1.2rem; }
  .hero-actions { gap: .7rem; }
  .hero-actions .btn { width: 100%; }
  .hero-seal { max-width: 13rem; }
  .triad li { grid-template-columns: 1fr; gap: .2rem; }
  .ladder li { grid-template-columns: 3rem 1fr; }
  .ladder li span { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .page-hero { padding-top: 8.5rem; }

  .scroll-cue { display: none; }
}
@media (max-width: 960px) {
  #aipaf-header { padding-top: max(.9rem, env(safe-area-inset-top)); }
  #aipaf-header .ah-shell {
    background: rgba(4, 24, 12, .94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .page-inner main .page-hero {
    padding-top: max(7rem, calc(4.5rem + env(safe-area-inset-top)));
  }
}
@media (hover: none) and (pointer: coarse) {
  .page-inner main [data-reveal],
  .page-inner main .mp [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    filter: none !important;
    transition: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
