/* AFN Home: global components (afn-) and Home layout (home-). Loads after the AFN design system's tokens.css and bundle.css. */

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + var(--space-4)); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.625;
  background: var(--surface); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--link); }
[hidden] { display: none !important; }
.afn-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.afn-icon { flex: none; display: inline-block; vertical-align: middle; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.afn-container { width: 100%; max-width: calc(var(--container-max) + 2 * var(--margin-sm)); margin-inline: auto; padding-inline: var(--margin-sm); }
@media (min-width: 768px) { .afn-container { max-width: calc(var(--container-max) + 2 * var(--margin-md)); padding-inline: var(--margin-md); } }
@media (min-width: 1024px) { .afn-container { max-width: calc(var(--container-max) + 2 * var(--margin-lg)); padding-inline: var(--margin-lg); } }

/* Focus ring: 2px solid, 2px offset; blue on light, gold on navy. Never removed. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:where([tabindex="-1"]):focus:not(:focus-visible) { outline: none; }

/* Inverse scope for any navy band: remaps semantic tokens so children stay legible. */
.afn-inverse {
  --ink: var(--on-brand); --ink-muted: var(--on-brand-muted); --ink-subtle: var(--on-brand-muted);
  --surface-raised: var(--surface-brand-raised); --surface-sunken: var(--surface-brand);
  --line: var(--line-on-brand); --line-strong: var(--blue-500);
  --link: var(--sky-300); --link-hover: var(--white); --focus: var(--gold-400);
  --primary-ink: var(--red-300); --danger: var(--red-300); --success: var(--green-300); --warning: var(--gold-400); --info: var(--sky-300);
  --secondary: var(--sky-300); --secondary-hover: var(--ice-50); --on-secondary: var(--navy-900);
  --highlight: var(--gold-400);
  color: var(--on-brand);
}

/* ── Section rhythm ───────────────────────────────────────────────────── */
.afn-section { padding-block: var(--space-12); }
.afn-section--sunken { background: var(--surface-sunken); }
@media (min-width: 768px) { .afn-section { padding-block: var(--space-16); } }
@media (min-width: 1024px) { .afn-section { padding-block: var(--space-20); } }

/* ── Type helpers ─────────────────────────────────────────────────────── */

.afn-section-heading { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-8); }
@media (min-width: 768px) {
  .afn-section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.afn-prose { max-width: var(--container-text); }
.afn-prose p { margin: 0 0 var(--space-4); color: var(--ink-muted); }
.afn-prose p:last-child { margin-bottom: 0; }

/* ── Pathways motif (from the design system) ─────────────────────────── */
/* Art layers hold AFN.Pathways; its SVG covers the layer. Tips always point right. */
.afn-pathways { display: block; width: 100%; height: 100%; }

/* ── Logo ─────────────────────────────────────────────────────────────── */
.afn-logo-link { display: inline-flex; align-items: center; flex: none; border-radius: var(--radius-sm); color: inherit; text-decoration: none; }
.afn-logo { width: auto; height: 36px; object-fit: contain; background: none; }
@media (min-width: 1440px) { .afn-logo { height: 44px; } }

/* ── Button ───────────────────────────────────────────────────────────── */
.afn-btn {
  --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-bd: var(--primary); --btn-bg-h: var(--primary-hover); --btn-bd-h: var(--primary-hover); --btn-bg-a: var(--primary-active);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--target-min); padding: 0 var(--space-6); border-radius: var(--radius-pill);
  border: 1.5px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-base);
}
.afn-btn__end { transition: transform var(--duration-base) var(--ease-standard); }
.afn-btn:hover { background: var(--btn-bg-h); border-color: var(--btn-bd-h); }
.afn-btn:hover .afn-btn__end { transform: translateX(3px); }
.afn-btn:active { background: var(--btn-bg-a); border-color: var(--btn-bg-a); transform: translateY(1px) scale(0.98); } /* keeps the touch target at 44px */
.afn-btn--lg { min-height: 52px; padding: 0 var(--space-8); font-size: 16px; }
.afn-btn--secondary { --btn-bg: var(--secondary); --btn-bd: var(--secondary); --btn-fg: var(--on-secondary); --btn-bg-h: var(--secondary-hover); --btn-bd-h: var(--secondary-hover); --btn-bg-a: var(--secondary-hover); }
.afn-btn--accent { --btn-bg: var(--accent); --btn-bd: var(--accent); --btn-fg: var(--on-accent); --btn-bg-h: var(--accent-hover); --btn-bd-h: var(--accent-hover); --btn-bg-a: var(--accent-hover); }
.afn-btn--outline { --btn-bg: transparent; --btn-bd: var(--primary-ink); --btn-fg: var(--primary-ink); --btn-bg-h: var(--danger-soft); --btn-bd-h: var(--primary-ink); --btn-bg-a: var(--danger-soft); }
.afn-btn--inverse { --btn-bg: transparent; --btn-bd: var(--on-brand-muted); --btn-fg: var(--on-brand); --btn-bg-h: var(--surface-brand-raised); --btn-bd-h: var(--on-brand); --btn-bg-a: var(--surface-brand-raised); }
.afn-btn:disabled, .afn-btn[aria-disabled="true"] { background: var(--disabled); border-color: var(--disabled); color: var(--on-disabled); cursor: not-allowed; transform: none; }
@keyframes afn-spin { to { transform: rotate(360deg); } }

/* Icon button */
.afn-icon-btn { display: inline-grid; place-items: center; width: var(--target-min); height: var(--target-min); padding: 0; border-radius: var(--radius-pill); border: 1.5px solid transparent; background: transparent; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast) var(--ease-standard); }
.afn-icon-btn:hover { background: var(--surface-sunken); }
.afn-icon-btn:active { transform: scale(0.94); }
.afn-icon-btn--inverse { color: var(--on-brand); border-color: var(--line-on-brand); }
.afn-icon-btn--inverse:hover { background: var(--surface-brand-raised); }

/* Text link */
.afn-link { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--link); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; border-radius: var(--radius-xs); transition: color var(--duration-fast); }
.afn-link:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
.afn-link--arrow { text-decoration: none; min-height: var(--target-min); }
.afn-link--arrow .afn-icon { transition: transform var(--duration-base) var(--ease-standard); }
.afn-link--arrow:hover span { text-decoration: underline; text-underline-offset: 0.2em; }
.afn-link--arrow:hover .afn-icon { transform: translateX(3px); }

/* ── Skip link ────────────────────────────────────────────────────────── */
.afn-skip { position: absolute; left: var(--space-4); top: var(--space-3); z-index: var(--z-toast); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; transform: translateY(-200%); transition: transform var(--duration-base) var(--ease-standard); }
.afn-skip:focus { transform: none; outline: 2px solid var(--on-accent); outline-offset: 2px; }

/* ── Site header + navigation ─────────────────────────────────────────── */
.afn-header { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--surface-brand); border-bottom: 1px solid var(--line-on-brand); transition: box-shadow var(--duration-slow) var(--ease-standard), background-color var(--duration-slow); }
.afn-header__inner { display: flex; align-items: center; gap: var(--space-4); min-height: 64px; padding: var(--space-2) var(--margin-sm); max-width: calc(var(--container-max) + 2 * var(--margin-lg)); margin: 0 auto; }
.afn-header__burger { margin-left: auto; }
.afn-header__burger .afn-burger { position: relative; width: 20px; height: 14px; }
.afn-burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--duration-base) var(--ease-standard), opacity var(--duration-fast); }
.afn-burger span:nth-child(1) { top: 0; } .afn-burger span:nth-child(2) { top: 6px; } .afn-burger span:nth-child(3) { top: 12px; }
[aria-expanded="true"] .afn-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .afn-burger span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .afn-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile and tablet: the nav is a panel that drops below the bar. */
.afn-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 64px); overflow-y: auto; padding: var(--space-2) var(--margin-sm) var(--space-8); background: var(--surface-brand); border-top: 1px solid var(--line-on-brand); box-shadow: var(--shadow-lg); }
.js .afn-nav { visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard), visibility 0s linear var(--duration-base); }
.js .afn-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.no-js .afn-nav { position: static; box-shadow: none; }
.no-js .afn-header__inner { flex-wrap: wrap; }
.no-js .afn-header__burger { display: none; }
.afn-nav__list { list-style: none; margin: 0 0 var(--space-6); padding: 0; }
.afn-nav__list > li { border-bottom: 1px solid var(--line-on-brand); }
.afn-nav__link { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: var(--on-brand); font-weight: 600; font-size: 17px; text-decoration: none; border-radius: var(--radius-sm); transition: color var(--duration-fast); }
.afn-nav__link:hover { color: var(--white); }
.afn-nav__link .afn-icon { color: var(--sky-300); transition: transform var(--duration-base) var(--ease-standard); }
.afn-nav__link:hover .afn-icon { transform: translateX(3px); }
.afn-nav__link[aria-current="page"] { color: var(--accent); }
.afn-nav__cta { width: 100%; }
.js .afn-nav.is-open .afn-nav__list > li { animation: afn-rise var(--duration-slow) var(--ease-standard) both; animation-delay: calc(var(--i, 0) * 40ms); }

@media (min-width: 1280px) {
  .afn-header__inner { min-height: var(--header-height); padding-inline: var(--margin-md); }
  .afn-header__burger { display: none; }
  .afn-nav, .js .afn-nav { position: static; display: flex; align-items: center; gap: var(--space-4); margin-left: auto; max-height: none; overflow: visible; padding: 0; background: none; border: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none; transition: none; }
  .afn-nav__list { display: flex; gap: var(--space-1); margin: 0; }
  .afn-nav__list > li { border: 0; animation: none !important; }
  .afn-nav__link { min-height: var(--target-min); padding: 0 var(--space-3); font-size: 15px; }
  .afn-nav__link .afn-icon { display: none; }
  .afn-nav__link::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 4px; height: 3px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-base) var(--ease-standard); }
  .afn-nav__link:hover::after, .afn-nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .afn-nav__link:hover::after { background: var(--line-strong); }
  .afn-nav__cta { width: auto; }
}
@media (min-width: 1440px) { .afn-header__inner { padding-inline: var(--margin-lg); } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
/* Mobile and tablet: the art sits above the copy. Desktop: to the right. */
.afn-hero { position: relative; overflow: hidden; background: var(--surface-brand); padding: 0 0 var(--space-20); }
.afn-hero__inner { position: relative; width: 100%; max-width: calc(var(--container-max) + 2 * var(--margin-lg)); margin: 0 auto; padding-inline: var(--margin-sm); }
.afn-hero__copy { max-width: 640px; }
.afn-hero__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 40px; line-height: 46px; letter-spacing: -0.01em; color: var(--on-brand); }
.afn-hero__lede { margin: var(--space-5) 0 0; font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 32px; color: var(--on-brand-muted); max-width: 40ch; }
.afn-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
@media (max-width: 479px) { .afn-hero__actions .afn-btn { width: 100%; } }
@media (min-width: 768px) {
  .afn-hero { padding: 0 0 var(--space-24); }
  .afn-hero__inner { padding-inline: var(--margin-md); }
  .afn-hero__title { font-size: 52px; line-height: 58px; }
  .afn-hero__lede { font-size: 26px; line-height: 36px; }
}
@media (min-width: 1024px) {
  .afn-hero { padding: var(--space-24) 0 calc(var(--space-24) + var(--space-12)); }
  .afn-hero__inner { padding-inline: var(--margin-lg); }
  .afn-hero__title { font-size: 64px; line-height: 68px; }
}
/* Entrance on load */
.js .afn-hero [data-enter] { opacity: 0; transform: translateY(18px); animation: afn-enter var(--duration-reveal) var(--ease-standard) forwards; animation-delay: calc(120ms + var(--i, 0) * 110ms); }
@keyframes afn-enter { to { opacity: 1; transform: none; } }

/* ── Quick nav strip ──────────────────────────────────────────────────── */

/* ── Media slot (fillable image frame) ────────────────────────────────── */
/* Every image sits in .afn-media. If the file is missing, JS adds .is-empty
   and a single Pathways fold fills the frame, so no slot ever shows broken art. */
.afn-media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-brand); isolation: isolate; }
.afn-media--xl { border-radius: var(--radius-xl); } .afn-media--45 { aspect-ratio: 4 / 5; } .afn-media--1 { aspect-ratio: 1; }
.afn-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-standard), opacity var(--duration-slow); } /* PNGs: let the transparency show */

/* ── Cards ────────────────────────────────────────────────────────────── */

/* Stretched link: makes the whole card clickable from its title link. */
.afn-stretch { color: inherit; text-decoration: none; }
.afn-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-md); }
.afn-stretch:focus-visible { outline: none; }
.afn-stretch:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; }
.afn-stretch:hover { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }

/* Event card */

/* Badge */
.afn-badge { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-xs); font: 600 12px/16px var(--font-sans); letter-spacing: 0.02em; background: var(--surface-sunken); color: var(--ink); white-space: nowrap; }
.afn-badge__dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: currentColor; }
.afn-badge--success { background: var(--success-soft); color: var(--success); }
.afn-badge--neutral { background: var(--disabled); color: var(--slate-600); }

/* ── Tabs ─────────────────────────────────────────────────────────────── */
@keyframes afn-rise { from { opacity: 0; transform: translateY(12px); } }

/* ── Quote band + stats ───────────────────────────────────────────────── */

/* ── Forms ────────────────────────────────────────────────────────────── */
.afn-form { display: flex; flex-direction: column; gap: var(--space-5); }
.afn-form__row { display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .afn-form__row--2 { grid-template-columns: 1fr 1fr; } }
.afn-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.afn-field__label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.afn-field__req { color: var(--primary-ink); font-weight: 600; }
.afn-field__opt { font-weight: 400; color: var(--ink-muted); }
.afn-input {
  width: 100%; min-height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: var(--surface-raised); color: var(--ink);
  font: 400 16px/24px var(--font-sans); transition: border-color var(--duration-fast), box-shadow var(--duration-base);
}
.afn-input:hover { border-color: var(--ink-muted); }
.afn-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.afn-input[aria-invalid="true"] { border-color: var(--danger); }
.afn-textarea { padding: var(--space-3) var(--space-4); min-height: 148px; resize: vertical; }
.afn-select-wrap { position: relative; display: flex; align-items: center; }
.afn-select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.afn-select-wrap .afn-icon { position: absolute; right: var(--space-4); pointer-events: none; color: var(--ink-muted); }
@keyframes afn-flash { 0%, 40% { box-shadow: 0 0 0 4px var(--highlight); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ── Alert ────────────────────────────────────────────────────────────── */
.afn-alert { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-md); background: var(--info-soft); color: var(--ink); }
.afn-alert:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.afn-alert > .afn-icon { margin-top: 2px; color: var(--info); }
.afn-alert--danger { background: var(--danger-soft); } .afn-alert--danger > .afn-icon { color: var(--danger); }
.afn-alert__title { margin: 0; font-weight: 600; font-size: 16px; line-height: 24px; }
.afn-alert ul { margin: var(--space-2) 0 0; padding-left: var(--space-5); font-size: 14px; line-height: 22px; }
.afn-alert ul a { color: var(--danger); font-weight: 600; }
.js .afn-alert:not([hidden]) { animation: afn-rise var(--duration-slow) var(--ease-standard); }

/* ── Contact list ─────────────────────────────────────────────────────── */
.afn-contact-list { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; padding: 0; list-style: none; font-style: normal; }
.afn-contact-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.afn-contact-list__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink); }
.afn-contact-list__label { display: block; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-muted); }
.afn-contact-list a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; border-radius: var(--radius-xs); }
.afn-contact-list a:hover { text-decoration-color: currentColor; }

/* Social links */

/* ── Footer ───────────────────────────────────────────────────────────── */
.afn-footer { background: var(--navy-950); padding-top: var(--space-16); }
.afn-footer__inner { display: grid; gap: var(--space-10); max-width: calc(var(--container-max) + 2 * var(--margin-lg)); margin: 0 auto; padding: 0 var(--margin-sm) var(--space-12); }
.afn-footer__tag { margin: var(--space-4) 0 0; max-width: 40ch; color: var(--on-brand-muted); font-size: 15px; line-height: 24px; }
.afn-footer__contact { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-5); font-style: normal; font-size: 14px; line-height: 22px; color: var(--on-brand-muted); }
.afn-footer__contact span { display: flex; gap: var(--space-2); align-items: flex-start; }
.afn-footer__contact .afn-icon { margin-top: 2px; width: 18px; height: 18px; color: var(--sky-300); }
.afn-footer a { color: var(--on-brand); text-decoration: none; border-radius: var(--radius-xs); }
.afn-footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; color: var(--white); }
.afn-footer__heading { margin: 0 0 var(--space-4); font: 600 13px/16px var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.afn-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.afn-footer__col a { display: inline-flex; align-items: center; min-height: 32px; font-size: 15px; line-height: 24px; }
.afn-footer__legal { display: flex; flex-direction: column; gap: var(--space-3); max-width: calc(var(--container-max) + 2 * var(--margin-lg)); margin: 0 auto; padding: var(--space-6) var(--margin-sm); border-top: 1px solid var(--line-on-brand); font-size: 13px; line-height: 20px; color: var(--on-brand-muted); }
.afn-footer__legal p { margin: 0; }
@media (min-width: 768px) {
  .afn-footer__inner { grid-template-columns: 1fr 1fr 1fr; padding-inline: var(--margin-md); }
  .afn-footer__brand { grid-column: 1 / -1; }
  .afn-footer__legal { flex-direction: row; justify-content: space-between; padding-inline: var(--margin-md); }
}
@media (min-width: 1280px) {
  .afn-footer__inner { grid-template-columns: 2.2fr 1fr 1fr 1fr; padding-inline: var(--margin-lg); }
  .afn-footer__brand { grid-column: auto; }
  .afn-footer__legal { padding-inline: var(--margin-lg); }
}

/* ── Back to top ──────────────────────────────────────────────────────── */

/* ── Scroll reveal ────────────────────────────────────────────────────── */
/* Only hidden when JS runs, so content is never lost without it. */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--duration-reveal) var(--ease-standard), transform var(--duration-reveal) var(--ease-standard); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-24px); }
@media (max-width: 767px) { .js [data-reveal] { transform: translateY(14px); } .js [data-reveal="left"] { transform: translateY(14px); } }

/* ── Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .afn-hero [data-enter] { opacity: 1; transform: none; }
}

/* Quick links overlap the hero */

/* Events */

/* About: what we do + mission */

/* Get involved */

/* Spreading awareness: the lead way to help, full width */

/* Contact */

/* Canvas only: image frames hold a Pathways fold until a photo is dropped in. */
.afn-media > img { position: relative; z-index: 1; }


/* ── Home hero: Pathways as a background layer ──────────────────────── */
/* Copy on the left where the ribbon tails fade; folds on the right. */
.home-hero { position: relative; overflow: hidden; isolation: isolate; padding: 260px 0 var(--space-16); }
.home-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.home-hero__ribbons { position: absolute; top: 0; left: 0; right: 0; height: 300px; transition: transform 700ms var(--ease-standard); will-change: transform; }
.home-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0, transparent 200px, var(--surface-brand) 300px); }
.home-hero__copy { position: relative; max-width: 620px; }
.home-hero__intro { margin: var(--space-4) 0 0; max-width: 48ch; font-size: 17px; line-height: 28px; color: var(--on-brand-muted); }
@media (min-width: 768px) {
  .home-hero { padding: 340px 0 var(--space-20); }
  .home-hero__ribbons { height: 380px; }
  .home-hero__scrim { background: linear-gradient(180deg, transparent 0, transparent 260px, var(--surface-brand) 380px); }
}
@media (min-width: 1024px) {
  .home-hero { min-height: 640px; display: flex; align-items: center; padding: var(--space-20) 0 var(--space-24); }
  .home-hero > .afn-hero__inner { width: 100%; }
  .home-hero__ribbons { inset: 0; height: auto; }
  .home-hero__scrim { display: none; }
}
@media (prefers-reduced-motion: reduce) { .home-hero__ribbons { transition: none; transform: none !important; } }

/* ── What AFN does: editorial layout, no cards ──────────────────────── */

/* ── Latest news & events ─────────────────────────────────────────────── */
.home-news__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.home-news__item { position: relative; display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-5) var(--space-10) var(--space-5) 0; transition: padding-left var(--duration-base) var(--ease-standard); }
.home-news__item::after { content: ""; position: absolute; right: var(--space-2); top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--primary-ink); border-right: 2px solid var(--primary-ink); transform: translateY(-50%) rotate(45deg); transition: right var(--duration-base) var(--ease-standard); }
.home-news__item:hover { padding-left: var(--space-2); }
.home-news__item:hover::after { right: 0; }
.home-news__meta { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-ink); }
.home-news__title { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.home-news__text { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink-muted); }

/* ── Find a doctor ────────────────────────────────────────────────────── */

/* ── Become a member ──────────────────────────────────────────────────── */

/* Empty image frames: a quiet tint, no motif. The ribbon motif is kept for page heroes. */
