/* The reference uses a 240vh introduction with a sticky 100vh video stage. */
.site-nav { position: fixed; inset: 0 0 auto; z-index: 50; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px; background: #fffffff2; border-bottom: 1px solid #1112; }
.site-mark { font-size: 13px; font-weight: 700; text-transform: uppercase; }
.site-nav nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav nav a { padding: 8px 10px; font-size: 12px; font-weight: 500; color: #505050; }
.nav-toggle { display: none; }
.hero { --hero-progress: 1; position: relative; color: #fff; background: #111; }
.hero.is-enhanced { min-height: 240svh; }
.hero-stage { position: sticky; top: 0; height: 100svh; min-height: 680px; overflow: hidden; isolation: isolate; }
#scene-video.hero-background { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; background: #111; opacity: calc(1 - var(--hero-progress) * .28); }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--hero-progress); background: linear-gradient(90deg, #05080cd6, #05080c94 46%, #05080c45), linear-gradient(#05080c30 52%, #05080cad); }
.hero-content { width: min(1180px, calc(100% - 48px)); height: 100%; display: flex; flex-direction: column; justify-content: center; margin: 0 auto; padding: 92px 0 calc(var(--hero-controls-height, 128px) + 24px); text-align: center; opacity: var(--hero-progress); transform: translateY(calc((1 - var(--hero-progress)) * 72px)); }
.hero.is-enhanced:not(.is-info-visible) .hero-content { visibility: hidden; pointer-events: none; }
.hero h1 { max-width: none; margin: 0; font-size: clamp(36px, 4.65vw, 56px); line-height: 1.04; font-weight: 650; letter-spacing: 0; text-wrap: balance; }
.hero h1 strong { font-weight: inherit; }
.hero .keep-together { white-space: nowrap; }
.authors { display: grid; gap: 10px; margin: 28px auto 0; font-size: clamp(16px, 2vw, 22px); font-weight: 520; line-height: 1.45; }
.author-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.author-row>span { white-space: nowrap; }
.authors a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
.authors a:hover { text-decoration: underline; }
.authors sup, .affiliations sup { margin-left: 2px; font-size: .7em; line-height: 0; }
.affiliations { display: grid; gap: 6px; max-width: 1020px; margin: 18px auto 0; font-size: clamp(15px, 1.6vw, 18px); font-weight: 560; line-height: 1.5; }
.affiliation-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; }
.author-notes { margin-top: 8px; color: #eee; font-size: 13px; }
.resource-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px auto 0; }
.hero .button { min-height: 44px; padding: 0 18px; color: #fff; border: 1px solid #ffffff66; border-radius: 8px; background: #ffffff24; font-size: 14px; font-weight: 700; line-height: 1; box-shadow: 0 10px 30px #0002; }
.hero .button:hover { color: #fff; background: #ffffff3d; border-color: #ffffffaa; }
.hero-controls { position: absolute; z-index: 2; inset: auto 0 0; width: 100%; padding: 38px max(24px, calc((100% - 1180px) / 2)) 22px; background: linear-gradient(transparent, #000a); }
.hero-controls-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero .scene-tabs { gap: 6px; margin: 0; }
.hero .scene-tabs button, .hero-playback button { min-height: 38px; padding: 8px 16px; font-size: 13px; color: #fff; border: 1px solid #ffffff88; border-radius: 5px; background: #0006; }
.hero .scene-tabs button[aria-pressed="true"] { color: #111; background: #fff; border-color: #fff; }
.hero .scene-tabs button:hover, .hero-playback button:hover { border-color: #fff; box-shadow: none; }
.hero-playback { display: flex; gap: 8px; }
.hero .scene-caption { padding: 10px 0 0; font-size: 12px; color: #eee; }
.hero .authors, .hero .authors a, .hero .authors a:visited,
.hero .authors a:hover, .hero .authors sup, .hero .affiliations,
.hero .affiliations sup { color: #fff; }
.hero .author-notes { color: #eee; }
.hero .hero-explore, .hero .hero-explore:visited { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 14px; border: 1px solid #ffffff99; border-radius: 5px; background: #0008; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hero .hero-explore:hover, .hero .hero-explore:focus-visible { background: #fff; color: #111; border-color: #fff; }
.hero a:focus-visible, .hero button:focus-visible { outline-color: #fff; }
.hero.is-watching .hero-background { object-fit: contain !important; }
.scene-showcase { padding-top: 16px; }
/* When the metadata is taller than the viewport, use normal document flow. */
.hero.is-compact { min-height: 0; }
.hero.is-static { min-height: 0; }
.hero.is-static .hero-stage { position: relative; }
.hero.is-compact .hero-stage { position: relative; height: auto; min-height: 100svh; }
.hero.is-compact .hero-content { height: auto; min-height: 100svh; padding-bottom: calc(var(--hero-controls-height, 192px) + 24px); }
.hero:not(.is-enhanced) .hero-stage { position: relative; height: auto; }
.hero:not(.is-enhanced) .hero-content { min-height: 100svh; height: auto; }
@media (max-width: 700px) {
  .site-nav { padding: 8px 18px; min-height: 54px; flex-wrap: wrap; gap: 0 12px; }
  .site-nav.is-enhanced .nav-toggle { display: block; padding: 6px 10px; border: 1px solid #ccc; border-radius: 5px; background: #fff; font-size: 12px; }
  .site-nav nav { width: 100%; padding-top: 8px; }
  .site-nav.is-enhanced:not(.nav-open) nav { display: none; }
  .site-nav nav a { padding: 8px 7px; font-size: 12px; }
  .hero-stage { min-height: 0; }
  .hero-content { width: calc(100% - 36px); padding: 78px 0 calc(var(--hero-controls-height, 186px) + 24px); }
  .hero h1 { font-size: clamp(27px, 5.2vw, 36px); line-height: 1.12; }
  .authors { margin-top: 22px; gap: 8px; font-size: 16px; }
  .author-row { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 18px; }
  .affiliations { margin-top: 18px; gap: 6px 14px; font-size: 14px; }
  .affiliation-row { column-gap: 14px; }
  .author-notes { font-size: 12px; }
  .resource-links { gap: 8px; margin-top: 22px; }
  .hero .button { min-height: 40px; padding: 0 14px; font-size: 12px; }
  .hero-controls { padding: 32px 18px 18px; }
  .hero-controls-row { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .hero .scene-tabs { width: 100%; }
  .hero .scene-tabs button { flex: 1; padding-inline: 8px; }
  .hero-playback button { padding: 6px 12px; min-height: 34px; font-size: 12px; }
  .hero .scene-caption { flex-direction: column; align-items: center; gap: 5px; text-align: center; }
}
@media (max-width: 380px) {
  .author-row { column-gap: 10px; }
  .authors { font-size: 15px; }
  .affiliations { font-size: 13px; }
}

/* Keep the expanded section navigation on one row; use the menu on tablets. */
@media (min-width: 701px) and (max-width: 1000px) {
  .site-nav { padding: 8px 18px; min-height: 54px; flex-wrap: wrap; gap: 0 12px; }
  .site-nav.is-enhanced .nav-toggle { display: block; padding: 6px 10px; border: 1px solid #ccc; border-radius: 5px; background: #fff; font-size: 12px; }
  .site-nav nav { width: 100%; padding-top: 8px; }
  .site-nav.is-enhanced:not(.nav-open) nav { display: none; }
  .site-nav nav a { padding: 8px 7px; font-size: 12px; }
}
