/* Transparent footer: preserve the page artwork under restrained colour washes. */
footer.site-footer{--footer-height:116px;position:relative;display:block;isolation:isolate;overflow:hidden;width:100%;padding:0;border:0;border-radius:0;color:#ededec;background:transparent;opacity:1;font-family:var(--sans);text-shadow:none}
footer.site-footer::before{content:'';position:absolute;inset:0;width:auto;height:auto;background:radial-gradient(ellipse at 8% 50%,rgba(57,113,146,.11),transparent 38%),radial-gradient(ellipse at 89% 50%,rgba(178,131,45,.07),transparent 45%);opacity:1;animation:none;transform:none;z-index:-1;pointer-events:none}
footer.site-footer[data-footer-page=about]::before{background:radial-gradient(ellipse at 70% 40%,#5086af1a,transparent 65%)}
footer.site-footer[data-footer-page=research]::before{background:radial-gradient(ellipse at 70% 40%,#a0782d18,transparent 65%)}
footer.site-footer[data-footer-page=publications]::before{background:radial-gradient(ellipse at 75% 40%,#51768f12,transparent 65%)}
footer.site-footer[data-footer-page=contact]::before{background:radial-gradient(ellipse at 75% 40%,#b4832d1b,transparent 65%),radial-gradient(ellipse at 8% 50%,#39719212,transparent 35%)}
.site-footer .footer-topline{position:absolute;inset:0 0 auto;height:3px;background:var(--footer-line);box-shadow:0 0 10px #b68a3726;overflow:hidden}
.site-footer .footer-topline i{display:block;position:absolute;inset:0;width:100%;animation:footer-glint 10s linear infinite}
.site-footer .footer-topline i::after{content:'';position:absolute;left:-28px;top:-3px;width:38px;height:9px;background:radial-gradient(ellipse,#fff0c4b3,#f9bf5355 40%,transparent 75%);filter:blur(2px)}
@keyframes footer-glint{to{transform:translateX(105%)}}
.site-footer[data-footer-active=false] .footer-topline i{animation-play-state:paused}
.site-footer .footer-inner{min-height:var(--footer-height);padding:20px clamp(22px,4vw,64px);display:grid;grid-template-columns:190px minmax(0,1fr) auto;gap:24px;align-items:center;max-width:1800px;margin:auto}
.site-footer .footer-identity{display:flex;align-items:center;gap:16px;min-width:0}
.site-footer .footer-page{font-size:10px;font-weight:600;letter-spacing:.15em;color:#f2c15c;line-height:1.4}
.site-footer .footer-page small{display:block;font-size:9px;font-weight:400;letter-spacing:.1em;color:#a7afb3;margin-top:5px;white-space:nowrap}
.site-footer .footer-message{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:44px;padding:8px 0;border:0;background:none;color:#ededec;font-family:inherit;text-align:left;cursor:pointer}
.site-footer .footer-phrases{display:grid;min-width:0}
.site-footer .footer-phrase{grid-area:1/1;align-self:center;font-size:clamp(15px,1.2vw,17px);line-height:1.35;font-weight:400;letter-spacing:-.015em;opacity:0;visibility:hidden;transition:opacity 180ms ease,color 180ms ease,visibility 180ms;pointer-events:none}
.site-footer .footer-phrase.is-current{opacity:1;visibility:visible}
.site-footer .footer-message:hover{color:#f4c66a}
.site-footer .footer-actions{display:flex;align-items:center;gap:22px;white-space:nowrap}
.site-footer .footer-actions a{display:inline-flex;align-items:center;gap:5px;min-height:44px;font-size:12px;line-height:1.4;font-weight:400;text-decoration:none;color:#a7afb3;transition:color 180ms}
.site-footer .footer-actions a:hover{color:#f2c15c}
.site-footer .footer-actions small{font-size:10px;line-height:1.4;color:#858e94}
.site-footer :is(button,a):focus-visible{outline:1px solid #f2c15c;outline-offset:5px;border-radius:2px}
.research-summary footer.site-footer,.about-second-scene footer.site-footer{position:absolute;inset:auto 0 0;z-index:3;padding:0;opacity:1}
/* Reserve the strip inside the existing final slides, keeping copy scrollable. */
.research-summary:has(.site-footer)>.research-slide-copy{max-height:calc(88svh - 136px)}
.about-second-scene:has(.site-footer) .about-scene-copy{max-height:min(70%,calc(88svh - 136px))}
@media(max-width:1100px){.site-footer .footer-inner{grid-template-columns:165px minmax(0,1fr) auto;gap:18px;padding-inline:24px}.site-footer .footer-actions{gap:15px}.site-footer .footer-actions a{font-size:11px}.site-footer .footer-phrase{font-size:15px}}
@media(max-width:850px) and (min-width:701px){.site-footer .footer-inner{grid-template-columns:150px minmax(0,1fr) auto;gap:12px;padding-inline:20px}.site-footer .footer-identity{gap:12px}.site-footer .footer-actions{gap:10px}.site-footer .footer-actions a{font-size:10px}.site-footer .footer-actions small{font-size:9px}.site-footer .footer-phrase{font-size:14px}}
@media(max-width:700px){
 footer.site-footer{--footer-height:144px}
 .site-footer .footer-inner{grid-template-columns:90px minmax(0,1fr);gap:12px 16px;padding:19px 20px 10px;min-height:144px}
 .site-footer .footer-identity{grid-column:1;grid-row:1;display:flex}
 .site-footer .footer-message{grid-column:2;grid-row:1;justify-content:flex-start;padding:0;gap:9px}
 .site-footer .footer-phrase{font-size:14px;line-height:1.4}
 .site-footer .footer-page{font-size:8px;letter-spacing:.08em;overflow:visible;align-self:start}
 .site-footer .footer-page small{font-size:8px;letter-spacing:0;margin-top:4px}
 .site-footer .footer-actions{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;gap:0 16px;align-self:start;padding-left:0}
 .site-footer .footer-actions a{font-size:11px;min-height:25px}
 .site-footer .footer-actions small{font-size:9px;margin-left:auto}
 .research-summary:has(.site-footer)>.research-slide-copy{max-height:calc(100svh - 225px)}
 .about-second-scene:has(.site-footer) .about-scene-copy{max-height:min(calc(54svh - 35px),calc(93svh - 164px))}
}
@media(prefers-reduced-motion:reduce){.site-footer *{animation:none!important;transition:none!important}}
