/* The first screen: visuals first. The title block (wordmark with the drone, the paper's title, authors, venue,
   buttons) stands beside a camera film of one scene with its people and objects moving (hero.js); on a narrow screen
   the film follows the title directly, so that it is on the first screen there as well. Under the two, the two parts
   of the work side by side, each with its colour, one line and its numbers: the benchmark, first and wider, and the
   reference method. Every colour is a token of page.css (:root, "hero"). */

/* ---- title block and film ---- */
.hero { position: relative; padding-top: 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); grid-template-areas: "head film" "meta film"; column-gap: 52px; }
.hero-head { grid-area: head; align-self: end; min-width: 0; } .hero-meta { grid-area: meta; align-self: start; min-width: 0; } .hero-film { grid-area: film; align-self: center; }
.hero .wordmark { font-size: clamp(50px, 6.1vw, 86px); margin-top: .28em; }
.hero .rule { margin: 14px 0 14px; }
.sub { font: 500 clamp(19px, 1.72vw, 24px)/1.28 var(--display); letter-spacing: -.01em; margin: 0 0 18px; max-width: none; text-wrap: balance; }
.authors { font-size: 16px; color: var(--ink); margin: 0 0 6px; max-width: none; text-wrap: pretty; }
.authors span, .affil span { white-space: nowrap; } .authors sup, .affil sup { font-size: .7em; color: var(--ink-2); }
.affil { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0 0 18px; max-width: none; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero.nofilm .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "meta"; text-align: center; justify-items: center; }
.hero.nofilm .rule { margin-inline: auto; } .hero.nofilm .actions { justify-content: center; }

.hero-film { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; border: 1px solid var(--media-line); background: var(--s3-void); }
.hero-film[hidden] { display: none; }
.hf-view { position: absolute; inset: 0; cursor: pointer; }
.hf-poster, .hf-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hf-video { opacity: 0; transition: opacity .3s linear; } .hero-film.live .hf-video { opacity: 1; }
.hf-more { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 13px; border-radius: 999px; background: var(--tag-glass); color: var(--ink); font: 500 13.5px/1 var(--body); text-decoration: none; }
.hf-more::after { content: "\2193"; color: var(--world); font-weight: 600; transition: translate .3s; }
.hf-more:hover::after { translate: 0 2px; }
@media (max-width: 860px) {
  .hero { padding-top: 22px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "film" "meta"; }
  .hero .wordmark { margin-top: .2em; } .sub { max-width: 26ch; margin-bottom: 16px; } .hero-film { width: 100%; max-width: 620px; }
  .hero-meta { margin-top: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .drone { animation: hero-land 1.5s cubic-bezier(.2, .7, .2, 1) both, hero-bob 5.5s ease-in-out 1.6s infinite; }
  .hero[data-idle] .drone { animation-play-state: paused; }
  @keyframes hero-land { from { transform: translate(-46vw, 30vh) rotate(-34deg) scale(.8); } 70% { transform: translate(.06em, -.05em) rotate(14deg); } to { transform: rotate(8deg); } }
  @keyframes hero-bob { 50% { translate: 0 -.035em; } }
}
@media (prefers-reduced-motion: reduce) { .hf-video, .hf-more::after { transition: none; } }
@media (any-pointer: coarse), (max-width: 760px) { .hf-more { min-height: 40px; } }

/* ---- the two parts: each a link to its chapter, with its colour as a short rule that runs the whole width under a
   pointer; the numbers are always there ---- */
.parts { display: grid; grid-template-columns: 58fr 42fr; margin-top: 30px; margin-bottom: 44px; text-align: left; border-block: 1px solid var(--line); background: var(--bg); }
.half { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 18px 26px 18px; color: var(--ink); text-decoration: none; }
.half.bench { --c: var(--bench); --c-ink: var(--bench); --wash: var(--bench-wash); padding-left: 0; }
.half.raum { --c: var(--raum); --c-ink: var(--raum-ink); --wash: var(--raum-wash); border-left: 1px solid var(--line); padding-right: 0; }
.half::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 2px; background: var(--c); }
.half::after { content: "\2192"; position: absolute; right: 26px; top: 14px; font: 500 16px/1 var(--body); color: var(--c-ink); transition: translate .3s; }
.half.raum::after { right: 2px; }
.half:focus-visible { outline-color: var(--c); outline-offset: -2px; border-radius: 0; }
.eyebrow { font: 600 12.5px/1 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--c-ink); margin-bottom: 9px; }
.half-name { display: inline-flex; align-items: center; gap: .3em; font: 500 clamp(26px, 2.7vw, 33px)/1.02 var(--display); letter-spacing: -.025em; margin-bottom: 8px; }
.half-say { font-size: 15.5px; line-height: 1.45; max-width: 60ch; text-wrap: pretty; }
.half-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-top: 10px; }
.fact { font-size: 13.5px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; }
.fact b { font: 500 19px/1 var(--display); letter-spacing: -.01em; color: var(--ink); margin-right: 5px; font-variant-numeric: tabular-nums; }
.fact.aside { font-size: 13px; white-space: normal; }
.ramp { display: inline-flex; gap: 2px; margin-left: 5px; }
.ramp i { width: 9px; height: 9px; border-radius: 2px; background: var(--lv-0); }
.ramp i:nth-child(2) { background: var(--lv-1); } .ramp i:nth-child(3) { background: var(--lv-2); } .ramp i:nth-child(4) { background: var(--lv-3); }
@media (max-width: 760px) {                                   /* phones: one part under the other */
  .parts { grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
  .half, .half.bench, .half.raum { padding: 16px 0 15px; }
  .half.raum { border-left: 0; border-top: 1px solid var(--line); }
  .half::after, .half.raum::after { right: 2px; }
}
@media (hover: hover) {
  .half::before { transition: width .55s cubic-bezier(.2, .7, .2, 1); }
  .half:hover::before, .half:focus-visible::before { width: 100%; }
  .half:hover::after, .half:focus-visible::after { translate: 4px 0; }
}
@media (prefers-reduced-motion: reduce) { .half::before, .half::after { transition: none !important; } }

/* the benchmark's clock beside its name: the stopwatch of the Budget tile; one flight of 300 s passes in 30 s, again
   and again. At rest (reduced motion) it stands part way through a flight. */
.half-clock { flex: none; width: 1.25em; height: 1.25em; margin-top: -.2em; overflow: visible; }
.hc-case { fill: var(--think); }
.hc-track, .hc-arc { fill: none; stroke-width: 17; }
.hc-track { stroke: var(--line); }
.hc-arc { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 68 100; }
.hc-hand { stroke: var(--think); stroke-width: 10; stroke-linecap: round; transform-box: view-box; transform-origin: 100px 112px; rotate: .68turn; }
@media (prefers-reduced-motion: no-preference) {
  .hc-arc { animation: hc-fill 30s linear infinite; }
  .hc-hand { animation: hc-turn 30s linear infinite; }
  .hero[data-idle] .hc-arc, .hero[data-idle] .hc-hand { animation-play-state: paused; }
  @keyframes hc-fill { from { stroke-dasharray: 0 100; opacity: 1; } 93% { stroke-dasharray: 100 100; opacity: 1; } to { stroke-dasharray: 100 100; opacity: 0; } }
  @keyframes hc-turn { from { rotate: 0turn; } 93%, to { rotate: 1turn; } }
}
