:root {
    color-scheme: light;
    --text: #152a35;
    --muted: #4e6069;
    --accent: #086676;
    --border: #d3dfe2;
    --surface: #ffffff;
    --shadow: 0 12px 40px rgb(21 42 53 / 7%);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body {
    margin: 0;
    color: var(--text);
    background: #fafbf9;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: break-word;
}
h1, h2, h3, .eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}
h1, h2, h3 { text-wrap: balance; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, video:focus-visible {
    outline: 3px solid #087789;
    outline-offset: 5px;
    border-radius: 3px;
}
button { font: inherit; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 18px;
    background: white;
    color: var(--text);
    border: 2px solid var(--accent);
    border-radius: 6px;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.back-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fafbf9;
    border-bottom: 1px solid var(--border);
}
.back-bar .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 16px;
    min-height: 68px;
    padding-block: 9px;
}
.back-link, .page-label { font-size: 14px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.back-divider { color: #657983; }
.page-label { color: var(--muted); }
.nav-abstract { margin-left: auto; gap: 8px; }
.article-hero {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    overflow: hidden;
    background: #18333f;
}
.hero-video, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; z-index: -2; }
.hero-overlay { background: linear-gradient(180deg, rgb(11 29 40 / 26%) 0%, rgb(11 29 40 / 80%) 55%, #0b1d28 100%); z-index: -1; }
.hero-text { width: min(1160px, calc(100% - 48px)); margin-inline: auto; padding: 100px 0 52px; color: white; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; }
.hero-text .eyebrow { color: #e0f4f5; }
.hero-text h1 { max-width: 800px; font-size: clamp(2.25rem, 5.4vw, 4rem); font-weight: 600; letter-spacing: -.045em; margin: 0 0 18px; }
.dateline { font-size: 15px; color: #e2eaec; margin: 0; }
.motion-toggle {
    position: absolute;
    top: 24px;
    right: max(24px, calc((100% - 1160px) / 2));
    min-height: 44px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: white;
    border: 1px solid #a7bcc4;
    border-radius: 6px;
    background: #132e3b;
    cursor: pointer;
}
.motion-toggle:hover { background: #204553; }
.motion-toggle:focus-visible { outline-color: white; }
.article-body { max-width: 800px; margin: 0 auto; padding: 72px 24px 96px; }
.article-section { margin-bottom: 64px; }
.article-section + .article-section { border-top: 1px solid var(--border); padding-top: 48px; }
.article-section h2 { font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.025em; margin: 0 0 24px; }
.article-section p, .article-close p, .abstract-section p { margin: 0 0 22px; }
strong { font-weight: 700; }
.media-block { margin: 32px 0; background: #f0f4f3; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.media-block img, .media-block video { width: 100%; display: block; max-height: 540px; object-fit: contain; background: #102730; }
.media-caption { padding: 14px 18px 16px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.media-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 18px; margin-block: 32px; }
.media-pair .media-block { margin: 0; }
.pull-quote { margin: 32px 0; padding: 8px 0 8px 24px; border-left: 3px solid var(--accent); }
.pull-quote p { margin: 0; font-size: 20px; line-height: 1.7; }
.poster-card { padding: 32px; background: #edf5f3; border: 1px solid #bdd6d3; border-radius: 10px; margin-top: 32px; }
.poster-card h3 { font-size: 24px; margin: 0 0 14px; }
.poster-card p { font-size: 15px; }
.poster-card .poster-authors { color: var(--muted); font-size: 13px; line-height: 1.7; }
.abstract-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; }
.article-close { border-top: 1px solid var(--border); padding-top: 40px; }
.article-close p:last-child { font-weight: 600; }
.footer { border-top: 1px solid var(--border); background: #f0f4f3; color: var(--muted); padding-block: 28px; }
.footer-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer p { font-size: 13px; margin: 0; }
.footer a { font-size: 14px; }
.social-links { display: flex; gap: 10px; }
.social-link { display: grid; place-items: center; width: 44px; height: 44px; background: white; border: 1px solid var(--border); border-radius: 8px; }
.social-link img { width: 22px; height: 22px; object-fit: contain; }
.abstract-body { max-width: 848px; margin-inline: auto; padding: 72px 24px 88px; }
.abstract-header { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 2px solid var(--accent); }
.abstract-header h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.17; letter-spacing: -.035em; font-weight: 600; margin: 0 0 28px; }
.abstract-authors { font-size: 16px; line-height: 1.9; margin: 0 0 10px; }
.abstract-affiliation { font-size: 14px; color: var(--muted); margin: 0; }
sup { font-size: .7em; }
.nowrap { white-space: nowrap; }
.abstract-section { margin-bottom: 38px; }
.abstract-section h2 { font-size: 22px; margin: 0 0 16px; }
.abstract-resources { border-top: 1px solid var(--border); padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; font-size: 14px; }
.abstract-resources a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 640px) {
    body { font-size: 16px; line-height: 1.8; }
    .container, .hero-text { width: calc(100% - 40px); }
    .back-bar .container { gap: 4px 10px; }
    .nav-abstract { font-size: 12px; gap: 4px; }
    .article-hero { min-height: 410px; }
    .hero-text { padding-bottom: 36px; }
    .hero-text h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .motion-toggle { top: 20px; right: 20px; }
    .article-body, .abstract-body { padding: 44px 20px 64px; }
    .article-section { margin-bottom: 40px; }
    .article-section + .article-section { padding-top: 34px; }
    .media-pair { grid-template-columns: minmax(0, 1fr); }
    .poster-card { padding: 22px; }
    .pull-quote { padding-left: 20px; }
    .pull-quote p { font-size: 18px; }
    .abstract-header h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
}
@media (max-width: 370px) {
    .back-bar .container { gap: 0 8px; }
    .back-link, .page-label { font-size: 12px; }
    .nav-abstract { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
@media print {
    .back-bar, .motion-toggle, .skip-link, .social-links, .abstract-resources { display: none; }
    body { color: #111; background: white; font-size: 11pt; }
    .article-hero { min-height: 0; }
    .hero-video, .hero-overlay { display: none; }
    .hero-text { color: #111; padding: 24px 0; }
    .hero-text .eyebrow, .dateline { color: #333; }
    .article-body, .abstract-body { max-width: none; padding: 20px 0; }
    .article-section, .abstract-section { break-inside: avoid; }
    .media-block { break-inside: avoid; }
}
