@font-face {
  font-family: Manrope;
  src: url("./assets/manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #10283b;
  --navy: #092033;
  --muted: #4f6472;
  --warm: #fffbf7;
  --paper: #fff;
  --line: #dbe4e9;
  --pale: #eef4f6;
  --accent: #ff987f;
  --accent-dark: #8c3c2a;
  --hero-height: 568px;
  --ease-out: cubic-bezier(.2, .78, .25, 1);
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }

:focus-visible { outline: 3px solid #bd5f47; outline-offset: 4px; }
main:focus { outline: none; }
main { min-height: 67vh; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.04em; line-height: 1.13; }
h1 { font-size: clamp(2.55rem, 5.6vw, 4.65rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.36rem; }
p { line-height: 1.7; color: var(--muted); }
[hidden] { display: none !important; }

.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 76px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; }
.section-actions { margin-top: 34px; }
.overline { display: block; color: var(--accent-dark); font-size: .8rem; font-weight: 800; letter-spacing: .14em; line-height: 1.45; text-transform: uppercase; }
.overline + h1, .overline + h2, .overline + h3, .overline + h3 a { margin-top: 10px; }
.meta { font-weight: 700; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.skip { position: absolute; z-index: 8; top: 12px; left: 12px; padding: 12px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { position: relative; z-index: 3; border-bottom: 1px solid #e8eef1; background: var(--paper); }
.header-inner { display: flex; min-height: 82px; justify-content: space-between; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: #fff; background: var(--navy); }
.brand-mark svg { width: 28px; height: 28px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.04rem; line-height: 1.2; letter-spacing: -.035em; font-weight: 800; }
.brand small { margin-top: 3px; color: var(--muted); font-size: .73rem; font-weight: 700; letter-spacing: .035em; }
.site-nav, .site-nav > a { display: flex; align-items: center; }
.site-nav { gap: clamp(12px, 1.55vw, 25px); }
.site-nav > a, .program-menu summary { white-space: nowrap; text-decoration: none; font-size: .86rem; font-weight: 800; }
.site-nav > a:not(.button):hover, .site-nav a[aria-current="page"], .program-menu summary:hover { color: var(--accent-dark); }
.program-menu { position: relative; }
.program-menu summary { cursor: pointer; list-style: none; padding: 8px 0; }
.program-menu summary::-webkit-details-marker { display: none; }
.program-menu summary::after { content: ""; display: inline-block; margin: 0 1px 3px 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; padding: 2.5px; transform: rotate(45deg); }
.program-menu > div { position: absolute; top: calc(100% + 9px); right: 0; min-width: 205px; max-width: 320px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 12px 32px #10283b21; background: var(--paper); }
.program-menu a { display: block; padding: 10px 12px; border-radius: 7px; font-size: .875rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.program-menu a:hover { background: var(--pale); }
.menu-toggle { display: none !important; }

.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: .89rem; font-weight: 800; line-height: 1.3; text-align: center; text-decoration: none; transition: background-color .16s, color .16s, border-color .16s; }
.nav-contact { min-height: 41px; padding-inline: 15px; background: var(--navy); color: #fff; }
.nav-contact:hover { background: #25465b; }
.primary { background: var(--accent); color: var(--navy); }
.primary:hover { background: #ffb19e; }
.outline-light { color: white; border-color: #f2f7fa70; }
.outline-light:hover { background: #fff2; }
.outline-dark { color: var(--ink); border-color: #a6b8c1; }
.outline-dark:hover { background: var(--pale); border-color: var(--ink); }
.small-button { min-height: 39px; padding: 8px 12px; }
.danger { color: #a32822; border-color: #d6a49d; }
.danger:hover { background: #fff0ed; }
.text-link { display: inline-block; width: fit-content; text-underline-offset: .23em; text-decoration-thickness: 1px; font-weight: 800; font-size: .91rem; }
.text-link:hover { color: var(--accent-dark); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); }
.icon-button:hover { background: var(--pale); }
.icon-button svg { width: 19px; height: 19px; }

.hero { position: relative; display: grid; align-items: center; min-height: var(--hero-height); overflow: hidden; isolation: isolate; color: #fff; background: #081d2f; }
.hero-image { position: absolute; z-index: -1; inset: 0 0 0 37%; background: url("./assets/lab.jpg") center 52% / cover; }
.hero-image::after { content: ""; display: block; position: absolute; inset: 0; background: linear-gradient(90deg, #081d2f 0%, #081d2fe8 16%, #081d2f75 55%, #06192b2e 100%), linear-gradient(0deg, #071d30b3, transparent 55%); }
.hero-inner { position: relative; padding-block: 68px; }
.hero-content { max-width: 720px; }
.hero .overline { color: #ffb29f; }
.hero h1 { margin-top: 18px; font-size: clamp(3.2rem, 5.05vw, 4.75rem); line-height: 1.03; letter-spacing: -.065em; text-wrap: balance; }
.hero-line { display: block; }
.hero-line + .hero-line { color: #ffb8a7; }
.hero p { max-width: 430px; margin-top: 24px; color: #dfebf2; font-size: 1.035rem; }
.hero .actions { margin-top: 30px; }
.hero-optics { --diameter: clamp(220px, 33vw, 492px); position: absolute; z-index: -1; inset: 50% 6% auto auto; width: var(--diameter); aspect-ratio: 1; border: 1px solid #e7f6ff39; border-radius: 50%; transform: translateY(-50%); pointer-events: none; }
.hero-optics::before, .hero-optics::after { content: ""; position: absolute; inset: 12%; border: 1px solid #e7f6ff26; border-radius: inherit; }
.hero-optics::after { inset: 33%; border-color: #ffb8a744; }
.hero-optics i { position: absolute; inset: 50% 0; height: 1px; background: linear-gradient(90deg, #e7f6ff44, transparent 42% 58%, #e7f6ff44); }
.hero-optics i + i { transform: rotate(90deg); }
.hero-light { display: none; }

.service-grid, .article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.service-visual { position: relative; }
.service-visual img { height: 236px; object-position: center 42%; }
.service-icon, .feature-icon, .topic-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--pale); color: var(--ink); flex-shrink: 0; }
.service-icon { position: absolute; bottom: -18px; right: 24px; background: var(--navy); color: white; }
.service-content { padding: 29px 27px 27px; }
.service-content h3 { font-size: clamp(1.6rem, 2.7vw, 2.1rem); }
.service-content h3 a, .article-card h3 a, .event-row h3 a, .grant-card h2 a { text-decoration: none; }
.service-content h3 a:hover, .article-card h3 a:hover, .event-row h3 a:hover, .grant-card h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.service-content p { margin-top: 11px; }
.service-content .text-link { margin-top: 18px; }
.grant-band { background: #f9ece7; border-block: 1px solid #efdfd8; }
.grant-band-inner { padding-block: 36px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.grant-band .feature-icon { width: 62px; height: 62px; background: #fff8f5; color: var(--accent-dark); }
.grant-band p, .grant-card p { margin-top: 7px; }
.grant-band h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
.updates { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.updates h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }
.updates .section-head { align-items: center; }
.article-card { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.article-image img { height: 235px; }
.article-card > div { padding: 19px 22px 24px; }
.article-card h3, .article-card p { margin-top: 7px; }
.article-stack { display: grid; gap: 10px; }
.article-stack .article-card { display: grid; grid-template-columns: 112px 1fr; }
.article-stack .article-image img { height: 100%; min-height: 114px; }
.article-stack .article-card > div { padding: 14px; }
.article-stack .article-card p { display: none; }
.article-stack .article-card h3 { font-size: 1.12rem; }

.page-heading { min-height: 245px; display: grid; align-items: center; padding-block: 55px; background: var(--pale); border-bottom: 1px solid var(--line); }
.page-heading h1 { max-width: 940px; font-size: clamp(2.25rem, 5vw, 4.15rem); overflow-wrap: anywhere; }
.page-heading p { max-width: 650px; margin-top: 13px; }
.program-hero { min-height: 380px; display: grid; align-items: center; padding-block: 64px; background: #263b31; color: #fff; }
.program-hero .overline { color: #e6cca1; }
.program-hero h1 { max-width: 830px; overflow-wrap: anywhere; }
.program-hero p { max-width: 530px; margin-top: 16px; color: #e3ece6; }
.intro-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 45px; margin-bottom: 32px; }
.intro-panel img { height: 285px; border-radius: 16px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.topic-card { border: 1px solid var(--line); border-radius: 13px; padding: 23px; }
.topic-card h2 { margin: 16px 0 10px; font-size: 1.33rem; }
.prose { font-size: 1.04rem; }
.prose p { white-space: pre-line; overflow-wrap: anywhere; }
.prose p + p { margin-top: 16px; }
.prose h2 { font-size: 1.65rem; margin-top: 32px; margin-bottom: 10px; }
.detail-body { max-width: 740px; }
.detail-body > .meta { margin-bottom: 15px; }
.empty { min-height: 76px; padding: 22px; display: grid; align-items: center; border: 1px dashed #b9c9d1; color: var(--muted); border-radius: 10px; }
.callout { background: var(--pale); border-radius: 12px; border: 1px solid var(--line); padding: 20px 23px; margin: 24px 0; }
.callout h2 { margin-top: 0; }
.callout .button { margin-top: 12px; }
.documents { padding: 0; list-style: none; }
.documents li { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.documents svg { width: 19px; height: 19px; }
.file-link { border: 0; padding: 0; color: inherit; background: none; text-decoration: underline; text-align: left; overflow-wrap: anywhere; }
.local-attachments { margin-bottom: 24px; }
.local-attachments h2 { font-size: 1.65rem; }
.timeline { margin: 18px 0; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; gap: 4px; padding: 4px 8px 15px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline time { font-size: .89rem; color: var(--muted); }

.event-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 15px; }
.tabs button { background: var(--paper); color: var(--ink); border-radius: 7px; border: 1px solid var(--line); padding: 9px 15px; font-weight: 800; font-size: .9rem; }
.tabs button:hover { background: var(--pale); }
.tabs button[aria-pressed="true"] { color: white; background: var(--navy); border-color: var(--navy); }
.events-list { display: grid; gap: 10px; }
.event-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.event-row h3 { font-size: 1.12rem; }
.event-row .meta { margin-top: 4px; overflow-wrap: anywhere; }
.date-tile { display: grid; place-items: center; align-content: center; min-width: 53px; min-height: 57px; border-radius: 8px; background: #f8ece7; color: var(--accent-dark); }
.date-tile small { font-weight: 800; }
.date-tile strong { font-size: 1.3rem; line-height: 1.15; }
.calendar { border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.calendar-head h2 { font-size: 1.25rem; }
.calendar-head .previous svg { transform: rotate(180deg); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.calendar-grid > * { display: grid; place-items: center; min-height: 39px; font-size: .91rem; }
.calendar-grid .weekday { min-height: 29px; font-size: .76rem; font-weight: 800; color: var(--muted); }
.calendar-grid .current-day { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.calendar-grid a { display: grid; width: 100%; height: 100%; place-items: center; border-radius: 5px; color: var(--accent-dark); background: #f8ece7; font-weight: 800; text-decoration: underline; }
.calendar-grid a:hover { background: #f8d8cc; }
.grant-list { display: grid; gap: 13px; }
.grant-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; padding: 23px; align-items: center; border: 1px solid var(--line); border-radius: 13px; }
.grant-card h2 { font-size: 1.65rem; margin-top: 4px; }

.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 45px; }
.contact-layout h2 { font-size: 1.65rem; }
.contact-choices { display: grid; margin: 20px 0; gap: 12px; }
.contact-option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-decoration: none; }
.contact-option.active { border-color: #c57763; background: #fff7f2; }
.contact-option:hover { border-color: #c57763; }
.contact-option small { display: block; color: var(--muted); margin-top: 3px; }
.contact-email { overflow-wrap: anywhere; }
.panel { min-width: 0; padding: clamp(16px, 3vw, 27px); border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.form { display: grid; gap: 16px; }
.form > .button { justify-self: start; }
.form-hint { font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: grid; gap: 6px; min-width: 0; color: var(--ink); font-size: .89rem; font-weight: 800; }
.field :is(input, textarea, select) { display: block; width: 100%; min-width: 0; min-height: 43px; padding: 8px 10px; border: 1px solid #b2c2c9; border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 1rem; font-weight: 500; }
.field select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, #426071 50%), linear-gradient(135deg, #426071 50%, transparent 50%); background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; }
.checkbox-field { display: flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 700; }
.checkbox-field input { width: 17px; height: 17px; accent-color: var(--navy); }

.admin-heading { background: var(--navy); color: white; }
.admin-heading .overline { color: #ffb29f; }
.admin-heading p { color: #dfebf2; }
.admin-layout { display: grid; grid-template-columns: 218px 1fr; align-items: start; gap: 24px; padding-top: 40px; }
.admin-aside { border: 1px solid var(--line); border-radius: 11px; padding: 7px; }
.admin-aside nav { display: grid; gap: 4px; }
.admin-aside a { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 6px; padding: 9px 12px; text-decoration: none; font-size: .9rem; font-weight: 800; }
.admin-aside a:hover { background: var(--pale); }
.admin-aside a[aria-current="page"] { background: var(--navy); color: white; }
.admin-aside a span { font-size: .78rem; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 19px; }
.admin-panel-head h2 { font-size: clamp(1.45rem, 4vw, 2.05rem); }
.admin-records { display: grid; gap: 8px; }
.admin-record { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.admin-record h3 { font-size: 1.13rem; overflow-wrap: anywhere; }
.admin-record .meta { margin-top: 5px; }
.record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.status { display: inline-block; border-radius: 4px; padding: 2px 6px; font-size: .77rem; }
.status.published { background: #e5f3eb; color: #2b5c42; }
.status.draft { background: #f9eee3; color: #855020; }
.editor-form { max-width: 840px; }
.repeat-group { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 14px; }
.repeat-group legend { padding-inline: 6px; font-weight: 800; }
.attachment-fields { display: grid; gap: 9px; }
.repeat-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 1.5fr) auto; gap: 9px; align-items: end; margin-bottom: 10px; }
.message-record { padding: 13px; border: 1px solid var(--line); border-radius: 7px; }
.message-record summary { cursor: pointer; overflow-wrap: anywhere; }
.message-record summary .meta { margin-left: 12px; }
.message-record > p { margin: 8px 0; overflow-wrap: anywhere; }
.notification:not(:empty) { position: fixed; bottom: 18px; right: 18px; z-index: 5; max-width: min(420px, calc(100% - 36px)); border-radius: 9px; border: 1px solid #668797; background: var(--navy); color: #fff; box-shadow: 0 8px 26px #10283b35; padding: 12px 17px; font-weight: 800; }

.site-footer { color: white; background: var(--navy); }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-top { min-height: 96px; padding-block: 16px; }
.site-footer .brand-mark { background: #294457; }
.site-footer .brand small, .footer-bottom { color: #bed0da; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { font-size: .88rem; font-weight: 800; text-underline-offset: 4px; }
.footer-bottom { border-top: 1px solid #ffffff33; padding-block: 15px; font-size: .79rem; }

@media (max-width: 1140px) {
  .wrap { width: calc(100% - 64px); }
  .header-inner { gap: 16px; }
  .site-nav { gap: 11px; }
  .site-nav > a, .program-menu summary { font-size: .81rem; }
}

@media (max-width: 970px) {
  .menu-toggle { display: inline-grid !important; }
  .header-inner { min-height: 68px; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 13px 32px 19px; background: white; border-block: 1px solid var(--line); box-shadow: 0 12px 20px #10283b24; }
  .site-nav.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav > a, .program-menu summary { font-size: .92rem; }
  .site-nav > a:not(.button) { padding: 9px 0; }
  .program-menu > div { position: static; margin-top: 3px; box-shadow: none; }
  .nav-contact { justify-self: start; }
  .event-link { display: none; }
}

@media (max-width: 730px) {
  .wrap { width: calc(100% - 36px); }
  .section { padding-block: 42px; }
  .site-nav { padding-inline: 18px; }
  .hero { min-height: 540px; }
  .hero-inner { padding-block: 58px; }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 4.25rem); }
  .hero-image { left: 0; background-position: 56% 55%; }
  .hero-image::after { background: linear-gradient(90deg, #081d2ff2 0%, #081d2fa8 72%, #081d2f55), linear-gradient(0deg, #081d2fa8, transparent); }
  .hero-optics { right: -18%; opacity: .54; }
  .hero .actions { margin-top: 22px; }
  .hero p { margin-top: 18px; }
  .service-grid, .updates, .event-layout, .contact-layout, .intro-panel, .admin-layout { grid-template-columns: 1fr; }
  .service-grid, .updates, .contact-layout, .intro-panel { gap: 21px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .topic-card { padding: 15px; }
  .intro-panel img { height: 230px; }
  .service-visual img { height: 195px; }
  .grant-band-inner, .grant-card { grid-template-columns: auto 1fr; gap: 12px; }
  .grant-band .button, .grant-card .button { grid-column: 2; justify-self: start; }
  .page-heading { min-height: 220px; padding-block: 39px; }
  .admin-aside nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .brand-mark { width: 37px; height: 37px; }
  .hero h1 { font-size: clamp(2.125rem, 8.4vw, 2.7rem); overflow-wrap: anywhere; }
  .hero .actions { display: grid; justify-items: start; }
  .hero { min-height: 490px; }
  .article-grid, .topic-grid, .form-grid, .repeat-row { grid-template-columns: 1fr; }
  .article-stack .article-card { grid-template-columns: 86px 1fr; }
  .admin-record { align-items: flex-start; flex-direction: column; }
  .repeat-row .button { justify-self: start; }
}

@keyframes hero-image-in {
  from { opacity: .42; transform: scale(1.075); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hero-line-in {
  from { opacity: 0; transform: translateY(20px); clip-path: inset(0 0 90% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(-10% -3% -16% -3%); }
}

@keyframes optics-in {
  from { opacity: 0; transform: translateY(-50%) scale(.8) rotate(-22deg); }
  to { opacity: 1; transform: translateY(-50%) scale(1) rotate(0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-image { animation: hero-image-in 1250ms var(--ease-out) both; transform-origin: 72% 52%; }
  .hero-optics { animation: optics-in 1450ms 120ms var(--ease-out) backwards; }
  .hero-content > .overline { animation: rise-in 480ms var(--ease-out) backwards; }
  .hero-line { animation: hero-line-in 680ms 60ms var(--ease-out) backwards; }
  .hero-line + .hero-line { animation-delay: 155ms; }
  .hero-content p { animation: rise-in 565ms 225ms var(--ease-out) backwards; }
  .hero-content .actions { animation: rise-in 580ms 320ms var(--ease-out) backwards; }
  .hero-content:focus-within :is(.hero-line, .overline, p, .actions) { animation: none; }

  [data-reveal="pending"]:not(:focus-within) { opacity: 0; transform: translateY(22px); }
  [data-reveal="visible"]:not(:focus-within) { animation: rise-in 560ms var(--reveal-delay, 0ms) var(--ease-out) backwards; }
  .service-grid > :nth-child(2), .article-grid > :nth-child(2n), .topic-grid > :nth-child(3n + 2) { --reveal-delay: 90ms; }
  .topic-grid > :nth-child(3n) { --reveal-delay: 150ms; }

  .notification:not(:empty) { animation: rise-in 260ms var(--ease-out) both; }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .hero-light { display: block; position: absolute; z-index: -1; top: 0; left: 0; width: 370px; aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, #eff8ff2b, transparent 67%); transform: translate(calc(var(--light-x, 75vw) - 50%), calc(var(--light-y, 290px) - 50%)); transition: opacity 250ms ease; }
  .hero:hover .hero-light { opacity: 1; }
  .button { transition: transform 220ms var(--ease-out), background-color .16s, color .16s, border-color .16s, box-shadow 220ms var(--ease-out); }
  .button:hover { transform: translateY(-2px); box-shadow: 0 6px 17px #10283b1a; }
  .button:active { transform: translateY(0) scale(.98); }
  .site-nav > a:not(.button), .program-menu summary { position: relative; }
  .site-nav > a:not(.button)::after, .program-menu summary::before { content: ""; position: absolute; inset: auto 0 -5px; height: 2px; border-radius: 2px; background-color: #bd5f47; transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-out); }
  .site-nav > a:not(.button):is(:hover, [aria-current="page"])::after, .program-menu summary:hover::before { transform: scaleX(1); }
  .service-card, .article-card, .topic-card, .event-row, .grant-card, .contact-option { transition: box-shadow 320ms var(--ease-out), border-color 260ms var(--ease-out); }
  .service-card:is(:hover, :focus-within), .article-card:is(:hover, :focus-within), .topic-card:hover, .event-row:is(:hover, :focus-within), .grant-card:is(:hover, :focus-within), .contact-option:hover { box-shadow: 0 10px 28px #10283b13; border-color: #afc1ca; }
  .service-photo, .article-image { display: block; overflow: hidden; }
  .service-visual img, .article-image img { transition: scale 550ms var(--ease-out); }
  .service-card:is(:hover, :focus-within) img, .article-card:is(:hover, :focus-within) img { scale: 1.045; }
  .service-icon, .topic-icon { transition: transform 360ms var(--ease-out), background-color 240ms var(--ease-out), color 240ms var(--ease-out); }
  .service-card:is(:hover, :focus-within) .service-icon { transform: translateY(-5px) rotate(-7deg); background: var(--accent); color: var(--navy); }
  .topic-card:hover .topic-icon, .contact-option:hover .topic-icon { transform: translateY(-3px); background-color: #f8ece7; color: var(--accent-dark); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
