.feature-page .mast { min-height:4.05rem; }
.cinema .paper-name { letter-spacing:-.052em; font-optical-sizing:auto; }
.cinema .paper-title { text-wrap:balance; line-height:1.09; letter-spacing:-.027em; }
.cinema .hero-actions .primary { min-height:2.85rem; padding-inline:1.25rem; border-radius:2rem; background:#f2e5cc; }
.cinema .hero-actions .primary:active { background:#ddc7a0; }
.mast nav a { position:relative; }
.mast nav a[aria-current="location"] { text-decoration:underline; text-underline-offset:.38em; text-decoration-thickness:1px; }
.feature-page .mast nav a:active { color:#f6d498; }
@media (hover:hover) {
  .cinema .hero-actions .primary:hover { background:#fff2d8; }
  .cue-shots button:not([aria-pressed="true"]):hover,#cue-toggle:hover { background:#ffffff14; }
}
@media (prefers-reduced-motion:no-preference) {
  .cinema .hero-actions .primary,#cue-toggle { transition:transform 150ms ease-out; }
  .cinema .hero-actions .primary:active,#cue-toggle:active { transform:scale(.96); transition-duration:65ms; }
}
.hero-credits { margin-top:clamp(1.1rem,1.8vw,1.65rem); max-width:38rem; }
.hero-credits .authors,.hero-credits .affiliations { display:block; text-wrap:balance; }
.hero-credits li { display:inline-block; vertical-align:baseline; }
.hero-credits .authors { color:var(--surface); font:460 clamp(1.06rem,1.28vw,1.22rem)/1.46 var(--serif); letter-spacing:-.009em; }
.hero-credits .authors li { margin-right:.48em; white-space:nowrap; }
.hero-credits .authors sup { margin-left:.13em; }
.hero-credits .affiliations { color:#d3e0e5; margin-top:.42rem; font:.89rem/1.52 var(--sans); }
.hero-credits .affiliations li { margin-right:.5em; max-width:100%; white-space:normal; }
.hero-credits :is(.authors,.affiliations) sup { color:#f0cd97; font:600 .66em/0 var(--sans); }
.hero-credits + .hero-actions { margin-top:clamp(1.1rem,1.6vw,1.55rem); }
@media (min-width:751px) and (max-width:1100px) {
  .hero-media::after { background:linear-gradient(90deg,#102632,rgba(16,38,50,.92) 18%,rgba(16,38,50,.7) 35%,transparent 59%),linear-gradient(to bottom,#102632,transparent 8%,transparent 90%,#102632); }
}
@media (max-height:600px) and (orientation:landscape) {
  .cinema .hero-stage { align-items:center; padding-block:clamp(.2rem,1vh,.65rem); }
  .cinema .hero-copy { width:min(70%,45rem); }
  .cinema .paper-name { font-size:clamp(2.7rem,13vh,4.5rem); margin-block:0 .22rem; }
  .cinema .paper-title { font-size:clamp(1.15rem,4.9vh,1.85rem); max-width:29em; }
  .hero-credits { margin-top:.55rem; }
  .hero-credits .authors { font-size:1rem; line-height:1.28; }
  .hero-credits .affiliations { font-size:.84rem; line-height:1.3; margin-top:.25rem; }
  .hero-credits + .hero-actions { margin-top:.65rem; }
  .cinema .button { min-height:2.4rem; padding:.42rem .85rem; }
  .cinema .hero-media { width:min(85%,178svh); aspect-ratio:16/9; top:50%; right:0; bottom:auto; left:auto; transform:translateY(-50%); }
  .cinema .hero-media video { height:100%; }
  .cinema .hero-media::after { background:linear-gradient(90deg,#102632,rgba(16,38,50,.92) 27%,rgba(16,38,50,.68) 55%,transparent 78%); }
  .cue-row { min-height:2.85rem; }
}
#opening .hero-actions .preprint[hidden] { display:none; }
#opening .hero-actions a.preprint { color:#d7e6e9; text-underline-offset:.22em; }

.paper-map { padding-block:var(--chapter-space); }
.paper-map-head { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:1.2rem; }
.map-page-link { padding:.56rem 1rem; border:1px solid var(--blue); border-radius:2rem; background:var(--surface); color:var(--blue); text-decoration:none; font-weight:600; }
.map-page-link:hover { background:var(--selected); }
.paper-map-figure { background:var(--surface); border:1px solid var(--rule); border-radius:var(--panel-radius); }
.paper-map-image { position:relative; display:block; padding:clamp(.55rem,1.6vw,1.4rem); background:var(--surface); border-radius:inherit; cursor:zoom-in; }
.paper-map-image::after { content:"+"; position:absolute; inset:.5rem .5rem auto auto; width:1.9rem; height:1.9rem; display:grid; place-items:center; border:1px solid var(--rule); border-radius:50%; background:var(--surface); color:var(--ink); font:500 1.3rem/1 var(--sans); }
.paper-map-image img { width:100%; height:auto; max-height:clamp(24rem,62svh,43rem); object-fit:contain; }
.paper-map-figure figcaption { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem 1.4rem; padding:.7rem clamp(.65rem,1.6vw,1.4rem); border-top:1px solid var(--rule); }
.paper-map-figure figcaption a { color:var(--blue); text-underline-offset:.19em; font-size:.98rem; }
.paper-map-figure figcaption a:last-child { margin-left:auto; }
@media(max-width:680px) {
 .paper-map-head { display:grid; gap:.65rem; }
 .map-page-link { width:fit-content; }
 .paper-map-figure figcaption { gap:.4rem 1rem; }
 .paper-map-figure figcaption a:last-child { margin-left:0; }
}

@media screen and (min-width: 1500px) {
  /* The 1.72:1 paper plate keeps its native ratio beside the section heading. */
  .paper-map > .wrap {
    width: var(--project-width, 92vw);
    display: grid;
    grid-template-columns: minmax(0, min(19.5%, 27rem)) minmax(0, min(78%, calc(141svh + 1.4rem), 3465px));
    justify-content: center;
    align-items: center;
    column-gap: min(2.5%, 3rem);
  }
  .paper-map-head { display: grid; justify-content: start; justify-items: start; gap: 1.3rem; margin-bottom: 0; }
  #architecture-heading { text-wrap: wrap; }
  .paper-map-image { padding: clamp(.5rem, .7vw, .85rem); }
  .paper-map-image img { max-height: none; }
  #architecture-dialog:has(img[src$="/full.webp"]) { width: min(96vw, calc(3465px + 2.5rem)); max-width: 96vw; max-height: 94dvh; }
  #architecture-dialog:has(img[src$="/full.webp"]) .diagram-scroll { max-height: calc(93dvh - 6rem); }
}

@media (max-width:420px) and (max-height:700px) and (orientation:portrait) {
  .feature-page .mast { min-height:2.85rem; flex-wrap:nowrap; gap:.55rem; padding-block:.2rem; }
  .feature-page .mast .brand { font-size:0; gap:0; }
  .feature-page .mast .brand img { width:1.45rem; height:1.45rem; }
  .feature-page .mast nav { flex:1 1 auto; min-width:0; justify-content:space-between; gap:.3rem; }
  .feature-page .mast nav a { display:inline-flex; align-items:center; min-height:2.6rem; }
  .cinema .hero-stage { padding-bottom:.6rem; }
  .cinema .hero-actions .primary { min-height:2.65rem; }
  .cue-transport { padding:.25rem 0 max(.45rem,env(safe-area-inset-bottom)); }
}
