/* Navigation, image composition, and discoverability refinement. */
.global-hero h1 { font-size: clamp(48px,4.7vw,66px); line-height: 1.04; letter-spacing: -1.4px; }
.global-hero .hero-intro { max-width: 520px; }
.frontier-video-frame { display: grid; place-items: center; width: 100%; background: #0a1319; border: 1px solid #8da68e30; border-radius: 3px; overflow: hidden; }
.frontier-video-frame video { display: block; width: min(100%,292.5px); height: auto; aspect-ratio: 9/16; object-fit: contain; object-position: center; background: #05090c; }
.frontier-video-frame video:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.frontier-detail-grid figcaption .video-badge { display: inline-block; margin-left: 16px; color: #d3c199; font-size: 8px; }
.frontier-detail-grid .video-description { font-size: 11px; line-height: 1.8; color: #8fa79b; margin-top: 10px; }
html { scroll-padding-top: 112px; scrollbar-gutter: stable; }
html:has(.site-finder[open]) { overflow: hidden; }
.link-arrow, .directory-result > svg, .footer-directory svg, .finder-bottom svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; }
.refined-header { min-height: 88px; gap: 24px; position: sticky; top: 0; z-index: 50; background: #0c1218f5; backdrop-filter: blur(16px); }
.refined-header .desktop-nav { gap: 18px; font-size: 13px; margin-left: auto; }
.refined-header .desktop-nav > a, .refined-header .nav-projects a { padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.nav-projects { display: flex; align-items: center; gap: 18px; border-left: 1px solid var(--rule); padding-left: 18px; }
.nav-projects .nav-project { color: #c5d5c4; }
.refined-header .desktop-nav .nav-contact-link { padding: 10px 14px; border: 1px solid #a990654d; border-radius: 2px; color: var(--gold); }
.header-tools { display: flex; gap: 8px; align-items: center; }
.site-search-trigger { width: 44px; height: 44px; display: grid; place-items: center; color: #b9c8c3; background: transparent; border: 1px solid transparent; border-radius: 2px; cursor: pointer; }
.site-search-trigger svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.site-search-trigger:hover { border-color: var(--rule); color: var(--gold); }
.refined-header .brand span { font-size: 15px; letter-spacing: 1.8px; }
.section-navigation { border-bottom: 1px solid var(--rule); background: #111d24; }
.section-navigation > div { display: flex; align-items: center; gap: 35px; }
.section-navigation > div > span { font: 8px/1.5 var(--mono); letter-spacing: 1.1px; color: #809c93; white-space: nowrap; }
.section-navigation nav { display: flex; align-items: center; gap: 28px; overflow-x: auto; scrollbar-width: thin; }
.section-navigation a { display: inline-flex; align-items: center; min-height: 48px; font-size: 12px; color: #a3b7b3; white-space: nowrap; border-bottom: 2px solid transparent; }
.section-navigation a[aria-current=page] { border-bottom-color: var(--gold); color: #e6dfc9; }
.refined-header .mobile-nav { max-height: calc(100dvh - 88px); overflow-y: auto; padding: 25px 24px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; overscroll-behavior: contain; }
.mobile-nav-group > span { font: 8px/1.7 var(--mono); letter-spacing: .9px; color: #8fa99c; display: block; margin-bottom: 9px; }
.mobile-nav-group > a { min-height: 44px; display: flex; align-items: center; font-size: 15px; line-height: 1.35; padding-block: 10px; }
.mobile-nav-group > a[aria-current=page] { color: var(--gold); }

/* All media rules are driven by content/image-focus.json. */
img[data-media][data-fit] { object-position: var(--focus-x,50%) var(--focus-y,50%); }
img[data-media][data-fit=contain] { object-fit: contain !important; object-position: 50% 50% !important; }
.feature-row > figure > img { height: auto; aspect-ratio: 4/3; }
.water-foundation > figure > img { aspect-ratio: 3/2; }
.page-hero-image img { height: auto; aspect-ratio: 4/3; }
body[data-page=about] .page-hero-image img { height: auto; aspect-ratio: 6/5; }
.frontier-detail-grid figure > img { height: auto; aspect-ratio: 4/3; }
.engagement-grid img { height: auto; aspect-ratio: 4/3; }
img[data-media="cop29-panel.jpg"] { padding: 16px; background: #17262d; filter: none !important; border: 1px solid #82998a20; }
img[data-media="vitalis.jpg"] { padding: 20px; background: #17262d; filter: none !important; }
img[data-media="philippines-coverage.jpg"], img[data-media="shape-cover.jpg"] { object-position: center !important; }
body[data-page=resonance] .page-hero-image { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; }
body[data-page=resonance] .page-hero-image img { width: auto; max-width: 100%; height: 440px; max-height: none; aspect-ratio: auto; object-position: center; }
body[data-page=resonance] .page-hero-image figcaption { width: 100%; margin-top: 18px; }
.app-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.app-preview img { object-position: center; margin-inline: auto; }
.frontier-detail-grid figure.product-photo { display: flex; flex-direction: column; align-items: center; }
.frontier-detail-grid figure.product-photo img { width: auto; max-width: 100%; height: 330px; aspect-ratio: auto; }
.page-hero-image, .feature-row figure, .frontier-detail-grid figure { min-width: 0; }

/* A complete footer index replaces the flat list of destinations. */
.refined-footer { border-top: 1px solid var(--rule); padding-top: 38px; }
.footer-identity { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-bottom: 35px; }
.footer-identity > p { font: 26px var(--serif); color: #b8c4b7; }
.footer-identity > .footer-thesis { font-size: 24px; line-height: 1.25; }
.footer-directory { display: inline-flex; align-items: center; gap: 20px; font-size: 13px; color: #d6c49f; min-height: 44px; }
.footer-directory-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 40px; border-top: 1px solid var(--rule); padding-block: 30px 35px; }
.footer-directory-grid h2 { font: 30px var(--serif); color: #dce0ce; margin-bottom: 13px; }
.footer-directory-grid a { display: flex; align-items: center; min-height: 38px; font-size: 13px; line-height: 1.5; color: #a6bab4; padding-block: 7px; }
.footer-directory-grid a:hover { color: var(--gold); }
.refined-footer .footer-bottom { border-top: 1px solid var(--rule); display: flex; gap: 22px; justify-content: space-between; align-items: center; padding-block: 22px; flex-wrap: wrap; font-size: 10px; color: #839e95; }

/* Native modal page finder; all destinations also exist at explore.html. */
.site-finder { width: min(830px,calc(100vw - 48px)); max-height: min(830px,calc(100dvh - 48px)); padding: 0; border: 1px solid #8da68e4d; border-radius: 4px; background: #101c24; color: var(--text); box-shadow: 0 25px 100px #0009; }
.site-finder[open] { display: flex; flex-direction: column; }
.site-finder::backdrop { background: #04090de3; backdrop-filter: blur(5px); }
.finder-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 26px 30px 18px; flex-shrink: 0; }
.finder-heading .eyebrow { font-size: 8px; }
.finder-heading h2 { font-size: 44px; margin-top: 12px; }
.finder-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 2px; background: transparent; color: #c6d1c2; font: 27px/1 var(--sans); }
.finder-controls { padding: 0 30px 18px; border-bottom: 1px solid var(--rule); flex-shrink: 0; }
.finder-controls label, .directory-search-label { display: block; color: #bccac1; font-size: 12px; }
.finder-controls input, .directory-search-label input { width: 100%; margin-top: 9px; background: #18282f; border: 1px solid #8da68e45; padding: 14px 16px; color: #e7e9dd; font: 16px var(--sans); border-radius: 2px; }
.finder-controls input:focus-visible, .directory-search-label input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.finder-count { margin-top: 15px; color: #94b0a0; font: 10px/1.7 var(--mono); }
.finder-results { padding-inline: 30px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.directory-result { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--rule); padding: 22px 0; min-width: 0; }
.directory-result:hover { background: #a4baa207; }
.directory-result-text { display: block; min-width: 0; }
.result-type { display: block; font: 8px/1.7 var(--mono); letter-spacing: .8px; text-transform: uppercase; color: #98b29f; }
.directory-result strong { display: block; font: 31px/1.15 var(--serif); color: #e2e4d6; margin-top: 7px; }
.result-description { display: block; font-size: 13px; line-height: 1.8; color: #9db3ae; margin-top: 10px; }
.directory-result > svg { color: var(--gold); flex-shrink: 0; }
.finder-results .directory-result { padding-block: 17px; }
.finder-results .directory-result strong { font-size: 25px; margin-top: 4px; }
.finder-results .result-description { font-size: 12px; margin-top: 5px; }
.finder-bottom { border-top: 1px solid var(--rule); padding: 15px 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-shrink: 0; }
.finder-bottom a { display: inline-flex; align-items: center; gap: 14px; color: #d7c59d; font-size: 12px; min-height: 38px; }
.finder-bottom > span { font: 9px var(--mono); color: #819e92; }
.directory-empty { font-size: 14px; color: #b5c5b9; line-height: 1.9; padding: 30px; }
.site-directory { padding-bottom: 65px; }
.directory-search-label { max-width: 700px; }
.directory-filters { display: flex; gap: 25px; margin-top: 18px; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.directory-filters button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: #9db2ad; min-height: 50px; font: 13px var(--sans); padding: 13px 0; }
.directory-filters button[aria-pressed=true] { color: var(--gold); border-bottom-color: var(--gold); }
.directory-results { display: grid; grid-template-columns: 1fr 1fr; column-gap: 55px; margin-top: 10px; }
.site-directory .directory-result strong { font-size: 29px; }

@media(max-width:1250px) {
 .refined-header .desktop-nav { gap: 13px; font-size: 12px; }
 .refined-header .brand span { font-size: 13px; letter-spacing: 1.5px; }
 .refined-header .brand { gap: 10px; }
 .nav-projects { gap: 13px; padding-left: 13px; }
 .refined-header { gap: 16px; }
}
@media(max-width:1100px) {
 .refined-header .desktop-nav { display: none; }
 .refined-header .header-tools { margin-left: auto; }
 .refined-header .brand span { font-size: 16px; letter-spacing: 2px; }
 .refined-header .brand { gap: 15px; }
 .section-navigation > div { gap: 25px; }
 .section-navigation nav { gap: 23px; }
 .footer-identity > p { font-size: 22px; }
}
@media(max-width:900px) {
 .footer-identity { flex-wrap: wrap; }
 .footer-directory-grid { gap: 26px; }
 .footer-directory-grid h2 { font-size: 27px; }
 .footer-directory-grid a { font-size: 12px; }
 .section-navigation > div > span { display: none; }
 .directory-results { column-gap: 35px; }
}
@media(max-width:650px) {
 .global-hero h1 { font-size: clamp(44px,10vw,60px); line-height: 1.05; letter-spacing: -.6px; }
 html { scroll-padding-top: 100px; }
 .refined-header { min-height: 78px; gap: 10px; }
 .refined-header .brand { gap: 10px; }
 .refined-header .brand img { width: 42px; }
 .refined-header .brand span { font-size: 12px; letter-spacing: 1.3px; }
 .refined-header .mobile-nav { max-height: calc(100dvh - 78px); padding: 23px 20px 28px; gap: 22px; }
 .mobile-nav-group > a { font-size: 14px; }
 .header-tools { gap: 0; }
 .site-search-trigger { width: 44px; }
 .section-navigation nav { gap: 23px; }
 .section-navigation a { min-height: 46px; font-size: 11px; }
 .section-navigation nav[aria-label="Research section navigation"] { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 14px; overflow: visible; padding-block: 4px; width: 100%; }
 .section-navigation nav[aria-label="Research section navigation"] a { white-space: normal; line-height: 1.35; min-height: 44px; padding-block: 8px; }
 img[data-media][data-fit] { object-position: var(--mobile-focus-x,50%) var(--mobile-focus-y,50%); }
 .feature-row > figure > img, .frontier-detail-grid figure > img, .engagement-grid img, .page-hero-image img { height: auto; aspect-ratio: 4/3; }
 .water-foundation > figure > img { aspect-ratio: 3/2; }
 body[data-page=about] .page-hero-image img { height: auto; aspect-ratio: 6/5; }
 body[data-page=resonance] .page-hero-image { padding: 25px; }
 body[data-page=resonance] .page-hero-image img { width: min(230px,100%); height: auto; aspect-ratio: auto; }
 .frontier-detail-grid figure.product-photo img { width: auto; max-width: 100%; height: 340px; aspect-ratio: auto; }
 .resonate-feature { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
 .resonate-feature > div { width: 100%; }
 .resonate-feature .project-stage { font-size: 7px; }
 .resonate-feature h3 { font-size: 47px; }
 .resonate-feature p { font-size: 14px; max-width: none; }
 .resonate-feature .button-dark, .resonate-feature .text-link { font-size: 12px; }
 .resonate-feature .button-dark { min-height: 47px; }
 .app-preview { width: min(190px,100%); margin-inline: auto; justify-self: center; }
 .app-preview img { width: 100%; height: auto; max-height: none; }
 .app-preview figcaption { font-size: 6px; }
 .footer-identity { display: block; padding-bottom: 24px; }
 .footer-identity > p { margin-top: 20px; font-size: 28px; }
 .footer-directory { margin-top: 16px; }
 .footer-directory-grid { grid-template-columns: 1fr 1fr; gap: 25px; padding-block: 25px; }
 .footer-directory-grid h2 { font-size: 29px; }
 .footer-directory-grid a { font-size: 13px; min-height: 42px; }
 .refined-footer .footer-bottom { display: block; line-height: 1.9; }
 .refined-footer .footer-bottom > * { display: block; margin-top: 7px; }
 .site-finder { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
 .finder-heading { padding: 22px 20px 17px; }
 .finder-heading h2 { font-size: 38px; }
 .finder-controls { padding-inline: 20px; }
 .finder-results { padding-inline: 20px; }
 .finder-bottom { padding-inline: 20px; }
 .finder-bottom > span { display: none; }
 .finder-results .directory-result strong { font-size: 25px; }
 .directory-results { grid-template-columns: 1fr; }
 .site-directory .directory-result strong { font-size: 30px; }
 .directory-filters { gap: 23px; }
 .directory-filters button { font-size: 12px; }
 .directory-empty { padding-inline: 20px; }
}
@media(max-width:360px) {
 .refined-header .brand span { font-size: 10px; letter-spacing: 1px; }
 .refined-header .brand img { width: 34px; }
 .refined-header .brand { gap: 7px; }
 .refined-header .menu-toggle { width: 44px; }
 .refined-header .site-search-trigger { width: 44px; }
 .resonate-feature { padding: 25px 22px; }
 .mobile-nav-group > a { font-size: 13px; }
 .finder-heading h2 { font-size: 34px; }
}
@media(prefers-reduced-motion:reduce) {
 .site-finder::backdrop, .refined-header { backdrop-filter: none; }
}
