/* ── 1 · Hero: the fresco in planes, the words in its middle, a bowl of drifting cloud in front ── */
.hero { position: relative; isolation: isolate; height: max(620px, 100svh); }
.hero.is-pinned { height: 170svh; }
.hero__pin { position: relative; height: max(620px, 100svh); overflow: clip; }
.hero.is-pinned .hero__pin { position: sticky; top: 0; height: 100svh; }
.hero__sky { position: absolute; inset: 0; z-index: 0; background: var(--taupe); }
.hero__sky .still, .hero__sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The still is the painting framed exactly as the stage frames it at rest (engines/boot.js: frame 1585x1057 at the
   fresco's top, cy 0.6, overhang 160), so the live scene takes over at the same size and place. Scale is
   max(W/1585, H/1057); the 0.6 centre line never clamps at any aspect. Pure CSS, so it is right from the first paint. */
.hero__sky { container-type: size; }
.hero__sky .still { inset: auto; left: 50%; translate: -50% 0; width: max(100cqw, 149.953cqh); max-width: none; height: auto;
  top: min(50cqh - 40.013cqw, -10cqh); transition: opacity 700ms var(--ease); }
.hero__sky .still, .hero__sky canvas { filter: brightness(1.07) saturate(1.06); }
.hero__sky canvas { opacity: 0; transition: opacity 900ms var(--ease); }
.hero__sky.is-live canvas { opacity: 1; }
/* the still leaves only once the scene is fully over it, so the two never dip through each other */
.hero__sky.is-live .still { opacity: 0; transition-delay: 900ms; }
/* a dusk under the nav and behind the words, so cream type reads on any part of the painting */
.hero__sky::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 38% at 50% 50%, rgba(21, 23, 26, .26), rgba(21, 23, 26, 0) 72%), linear-gradient(rgba(21, 23, 26, .26), rgba(21, 23, 26, 0) 18%); }
.hero__clouds { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 78%; pointer-events: none;
  transform: translate3d(0, calc(var(--sea, 0) * -62%), 0); will-change: transform; }
.hero__clouds .still, .hero__clouds canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the cream the risen clouds leave beneath them: rises in step with the sea, so the painting never shows under it */
.hero__floor { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: calc(var(--sea, 0) * 49%); background: var(--paper); pointer-events: none; }
.hero__clouds .still { object-fit: cover; object-position: 50% 12%; -webkit-mask-image: linear-gradient(transparent, #000000 34%); mask-image: linear-gradient(transparent, #000000 34%); transition: opacity 900ms var(--ease); }
.hero__clouds canvas { opacity: 0; transition: opacity 1600ms var(--ease); }
.hero__clouds.is-live canvas { opacity: 1; }
.hero__clouds.is-live .still { opacity: 0; }
/* The cloud still is a different bank from the live clouds (a painted study, not a frame of the shader), so where
   WebGL runs it is never shown: the clouds arrive once, as the live bank. It stays for no-WebGL and for a failed engine. */
.js:not(.no-gl) .hero__clouds:not(.is-still) .still { visibility: hidden; }
/* the cloud bank rises once with the page: a large surface, so it may take longer than the interface's 300ms */
.js .hero__clouds { animation: seaIn 1200ms var(--out) both; }
@keyframes seaIn { from { opacity: 0; translate: 0 4%; } }
.hero__copy { position: absolute; z-index: 2; left: 0; right: 0; top: 47%; padding-inline: var(--gutter, 24px); display: grid; justify-items: center; gap: 20px; text-align: center; color: var(--ivory);
  translate: 0 -50%; opacity: calc(1 - var(--fw, 0)); transform: translate3d(0, calc(var(--fw, 0) * -44px), 0); }
/* the words soften only as the visitor scrolls away (app/scroll.jsx sets .is-leaving), never at rest or on load */
.hero.is-leaving .hero__copy { filter: blur(calc(var(--fw, 0) * 7px)); }
.hero__copy .display { color: var(--ivory); font-size: clamp(2.9rem, 1.2rem + 4.8vw, 6.4rem); line-height: .96; letter-spacing: -0.035em; font-weight: 300; text-shadow: 0 2px 40px rgba(16, 18, 21, .38); }
.hero__copy h1 .line { display: block; }
.hero__copy .lede { text-wrap: balance; color: rgba(240, 242, 245, .92); font-size: clamp(17px, 1.3vw, 20px); text-shadow: 0 1px 18px rgba(16, 18, 21, .45); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
/* Intro: the words wait for the display face (html.fonts-in, set by the inline script in index.html once Newsreader
   is ready, or after 2.5s regardless: Newsreader loads with font-display: swap, so past the cap the words rise in the
   metric-matched Georgia fallback from base.css and the late swap keeps their lines), then rise in one short ease-out
   beat with a slight stagger. Transform and
   opacity only, no blur, so it stays on the compositor while the WebGL scene starts. Reduced motion: a11y.css makes
   it instant. */
.js:not(.fonts-in) .hero__copy, .js:not(.fonts-in) .hero__serving { visibility: hidden; }
.fonts-in .hero__copy h1 .line { animation: heroIn 280ms var(--out) both; animation-delay: calc(var(--l, 0) * 50ms); }
.fonts-in .hero__copy > .lede { animation: heroIn 280ms var(--out) 100ms both; }
.fonts-in .hero__copy > .hero__actions { animation: heroIn 280ms var(--out) 150ms both; }
.fonts-in .hero__serving { animation: fadeIn 280ms var(--out) 200ms both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes fadeIn { from { opacity: 0; } }
/* "Now serving": a label and a list that wrap as whole names, centred; commas sit between the shown items only */
.hero__serving { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(26px, 4.6vh, 52px); margin: 0; padding-inline: var(--gutter, 24px);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 8px;
  font: 400 15px/1.7 var(--sans); color: var(--ink-2); opacity: calc(1 - var(--fw, 0)); }
.hero__serving-k { color: var(--ink-3); }
.hero__serving-l { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.hero__serving-m { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--ink); font-weight: 500; }
.hero__serving-m:not(:last-child)::after { content: ","; margin-left: -6px; }
.hero__serving-m img, .hero__serving-m .mono-mark { flex: none; width: 15px; height: 15px; }
@media (max-width: 640px) {
  .hero__copy { top: 42%; gap: 16px; }
  .hero__serving { font-size: 14px; bottom: 22px; }
  /* three names on phones; the third is then the last one shown, so it drops its comma */
  .hero__serving-m:nth-child(n+4) { display: none; }
  .hero__serving-m:nth-child(3)::after { content: none; }
}
