/* ==================================================================== */
/* The homepage hero: five drinks on their own colour fields            */
/* (docs/index.html; behaviour in assets/hero.js, the ink in ink.js)    */
/*                                                                      */
/* The mockup (site-refs/comps/hero-2.png): the drink's flat field, its */
/* name huge in the marker BEHIND the glass, the bowl above the         */
/* lettering so only the clear stem crosses it, the app's pen doodles   */
/* ringed round it, and at the foot the white Nº label between two      */
/* pen-drawn arrows, the h1 bottom left.                                */
/*                                                                      */
/* LAYERS, bottom to top, all inside .hero (isolation: its own stack):  */
/*   .hero-stage   z 0  fills the hero; the ink canvas is its last      */
/*     .hero-scene        child, over the scene                        */
/*       .hero-back       doodles behind the name (the swash, the       */
/*                        orbit's far half)                             */
/*       .hero-name       the drink's name, the marker                  */
/*       .hero-glass      the glass (keyed cutouts, img/hero/)          */
/*       .hero-front      doodles in front (the orbit's near half)      */
/*     canvas.ink-canvas  the next drink, through the ink               */
/*     .hero-motes        the drifting motes, over the ink (they ride   */
/*                        the flood's front): tiny sprites, moved by    */
/*                        transforms                                    */
/*   .hero-copy    z 3  the h1, the lede, the links, the age line       */
/*   .hero-deck    z 5  the arrows, the label, Pause (above the copy:   */
/*                      the h1's box never takes the arrow's click)     */
/*                                                                      */
/* THE PIN (hero.js, GSAP's ScrollTrigger: html.hero-pinned): the hero  */
/* is held for 55vh of scroll on a wide window with a mouse; the Dex's  */
/* brushed edge then slides up over its foot (sections.css).            */
/*                                                                      */
/* SIZES come from the scene box (container units): the glass box is    */
/* --g tall with its foot on --base; every tier of every drink is one   */
/* canvas (1634 x 2000, the foot's centre at x 50%, its baseline at     */
/* 98.83%), so one rule lays them all out. Per drink, hero.js may scale */
/* the box (--gk) and lift it (--gl): a stemless glass (the rocks       */
/* glass, the highball) has no stem to cross the name with, so it       */
/* stands on the name's x-height instead. The name's size and place are */
/* set by hero.js (the fit); the values here are the no-script fallback */
/* for the first drink.                                                 */
/*                                                                      */
/* WIDE (1180+ wide, 600+ high) and LANDSCAPE (760 to 1179 wide, 4:3 or */
/* wider): the hero is the window, the h1 and the lede share its foot.  */
/* WIDE puts the deck between them; LANDSCAPE, with no room for that,   */
/* above them. Otherwise (STACKED) the scene is the window less a band, */
/* and the h1 and lede follow under it on the same field.               */
/*                                                                      */
/* COLOUR: each field's tokens are sipply.css's [data-field]. The name  */
/* is ink, never white script on the Negroni's red; cream on the        */
/* espresso. hero.js times the copy's and the deck's own data-field to  */
/* the flood's front, so text changes colour as the ink reaches it.     */
/* A sparkle is never red (the app's "new" glyph): --spark.             */
/*                                                                      */
/* ENTRANCE: the glass pours in and the name rises from the first       */
/* paint, by CSS alone, by transform only (never from opacity 0: the    */
/* plate is the page's largest paint and is counted from the start).    */
/* Under the welcome they wait, behind a veil of the field's colour.    */
/* ==================================================================== */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  --scene-h: max(600px, 100svh);
  height: var(--scene-h);
}
/* ink.js: a vertical drag still scrolls the page, a sideways one paints; dropped while pinch-zoomed */
.ink-host { touch-action: pan-y pinch-zoom; }
.hero[data-field="negroni"] { --name-c: var(--ink); }
.hero[data-field="espresso"] { --name-c: var(--cream); }
/* the sparkle's colour: white, ink or cream, never the red */
.hero[data-field="daiquiri"], .hero[data-field="paloma"], .hero[data-field="aperol"] { --spark: var(--white); }
.hero[data-field="negroni"] { --spark: var(--ink); }
.hero[data-field="espresso"] { --spark: var(--cream); }
.hero-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-stage .ink-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; pointer-events: none; }
/* the motes: one small canvas over the ink, faded in once the drink is in; none with Reduce Motion */
.hero-motes { position: absolute; inset: 0; overflow: hidden; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero-motes > canvas { position: absolute; left: 0; top: 0; display: block; will-change: transform; }
.hero.has-motes .hero-motes { opacity: 1; }
.hero.has-motes.is-moved .hero-motes { opacity: 0; transition-duration: .3s; }
@media (prefers-reduced-motion: reduce) { .hero-motes { display: none; } }
.hero-scene {
  position: absolute; left: 0; right: 0; top: 0; height: var(--scene-h); z-index: 0;
  container-type: size;
  /* the glass box: its height, and where its foot stands */
  --g: min(75cqh, 118cqw);
  --base: 85cqh;
  perspective: 1500px;
}
.hero-back, .hero-front { position: absolute; inset: 0; }
.hero-back { z-index: 1; }
.hero-name { z-index: 2; }
.hero-glass { z-index: 3; }
.hero-front { z-index: 4; }

/* ---- the name ---- */
.hero-name {
  position: absolute; left: 0; right: 0; top: calc(var(--base) - var(--g) * 0.18 - 0.74em); margin: 0;
  font: 400 min(21cqw, 40cqh)/0.86 var(--f-marker); letter-spacing: 0; text-align: center; white-space: nowrap;
  color: var(--name-c, var(--ink));
  font-kerning: normal; font-variant-ligatures: common-ligatures;
  pointer-events: none; user-select: none; -webkit-user-select: none;
}
.hn-line { display: block; position: relative; }
/* each letter at its kerned place (hero.js), so it can rise on its own and spread on the pin (translate, not transform) */
.hn-c { display: inline-block; }
/*
 * Each line is its own mask, cut just under its descenders (Sedgwick's reach below the line box:
 * 0.36em under a baseline 0.7425em down a 0.86em box), so a letter rises out of its line, never
 * through a fade (black at half strength on a field reads as mud). hero.js rises them (Web
 * Animations on transform). On the pin they spread from the middle (--spread, --off), then fall
 * away, the middle first (--exit, --xd: the ends 30% behind): each drops 1.25em and draws in to 55%
 * as it goes, down behind the Dex's brushed edge coming up over them. Solid all the way (never
 * faded) and with no mask then (.is-exiting), so no letter is ever cut on a straight line.
 */
@media (prefers-reduced-motion: no-preference) {
  .js .hn-line { clip-path: inset(-0.5em -100vw -0.28em -100vw); }
  .js .hero-name.is-exiting .hn-line { clip-path: none; }
  .hn-c {
    --q: clamp(0, calc((var(--exit, 0) - var(--xd, 0) * .3) / .7), 1);
    translate: calc(var(--off, 0) * var(--spread, 0px)) calc(var(--q) * var(--q) * 1.25em);
    transform-origin: 50% 70%;
  }
  .hero-name.is-exiting .hn-c { scale: calc(1 - var(--q) * .45); }
  .hero-pinned .hn-c { will-change: translate, scale; }
  /* the name floats and leans every frame (hero.js): its own layer, so a frame moves it and never repaints it */
  .js .hero-name { will-change: transform; }
}
/* the next drink's name over the ink while the flood finishes (hero.js): the same place and size as the name's own, cut round the incoming glass */
.hero-name-over { z-index: 1; animation: none !important; }
.hero-name-over[hidden] { display: none; }

/* ---- the glass (per drink: --gk scales the box, --gl lifts its foot, --gdx moves it aside on a phone so the stem misses a letter; hero.js) ---- */
.hero-glass {
  --gs: calc(var(--g) * var(--gk, 1));
  position: absolute; left: 50%;
  width: calc(var(--gs) * 0.817); height: var(--gs);
  margin-left: calc(var(--gs) * -0.4085 + var(--gdx, 0px));
  top: calc(var(--base) - var(--gl, 0px) - var(--gs) * 0.98828);
  transform-origin: 50% 98.8%;
  will-change: transform;
}
.hg-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.hg-img:not(.is-on) { display: none; }
.js .hg-img.is-armed { display: block; visibility: hidden; }
/* a plate that failed to load shows nothing (no broken-image box, no alt text over the field) */
.hg-img.is-broken { visibility: hidden !important; }
/* a soft contact shadow on the field, under the foot */
.hg-shadow {
  position: absolute; left: 18%; right: 18%; top: 96.2%; height: 5.2%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .2), rgba(0, 0, 0, .07) 55%, rgba(0, 0, 0, 0));
  mix-blend-mode: multiply; pointer-events: none;
}
/* light catching the glass as it turns: a soft band, masked to the cutout (hero.js sets the mask) */
.hg-glint { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: soft-light; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.hg-glint::before {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -30%; width: 60%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, .85) 48%, rgba(255, 255, 255, .95) 52%, rgba(255, 255, 255, 0) 80%);
  transform: translate3d(var(--glint-x, 0%), 0, 0) skewX(-8deg);
}
.hero.has-glint .hg-glint { opacity: var(--glint-o, 0); }
/* THE LIGHT (hero.js sheenStep): a soft band, white at 22 % in its middle and about 18 % of the glass wide, crosses the glass
   in 1.1 s, 800 ms after each landing and every 7 s after while the hero is idle; masked to the cutout like the glint */
.hg-sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.hs-band { position: absolute; top: -10%; bottom: -10%; left: 0; width: 40%; transform: translate3d(-100%, 0, 0); background: linear-gradient(110deg, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 72%); }
@media (prefers-reduced-motion: reduce) { .hg-sheen { display: none; } }

/* ---- the doodles (hero.js places them; pen.js draws them) ---- */
/* .hd: where it sits, and the pointer's and the scroll's push (hero.js, written only when they change);
   .hd-o inside it: the slow drift, a compositor animation (hero.js, Web Animations) */
.hd { position: absolute; left: 0; top: 0; will-change: transform; }
.hd-o { display: block; }
.hd-o > [data-pen] { display: block; }
.hd[hidden] { display: none; }
/* the orbit round the stem: one ring, its far half behind the glass, its near half in front */
.hd-orbit-far { clip-path: inset(0 0 52% 0); }
.hd-orbit-near { clip-path: inset(48% 0 0 0); }

/* ---- the deck: arrows, label, pause ---- */
.hero-deck {
  position: absolute; z-index: 5; left: 50%; bottom: clamp(22px, 4.2svh, 44px);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px);
  color: var(--fg);
}
/* On the Paloma's pink the red pen reads at 2.7:1: the arrows' rings are ink there (as on the Aperol). */
.hero-deck[data-field="paloma"] .hd-btn { --pen: var(--ink); }
.hd-btn {
  position: relative; flex: none; width: var(--btn, clamp(52px, 4.6vw, 70px)); aspect-ratio: 1; padding: 0; margin: 0;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.hd-nudge > [data-pen="ring"] { position: absolute; inset: 3px; }
.hd-nudge > [data-pen="arrow"] { position: absolute; left: 25%; right: 25%; top: 38%; bottom: 38%; }
.hd-btn .hd-nudge { position: absolute; inset: 0; transition: transform .5s var(--spring); }
@media (hover: hover) {
  .hd-btn:hover .hd-nudge.is-next { transform: translateX(3px); }
  .hd-btn:hover .hd-nudge.is-prev { transform: translateX(-3px); }
}
.hd-btn:active .hd-nudge { transform: scale(.92); transition-duration: .12s; }
.hd-btn:focus-visible { outline-offset: 3px; }
.js .hero-deck:not(.is-live) .hd-btn, .js .hero-deck:not(.is-live) .hero-pause { visibility: hidden; }
html:not(.js) .hd-btn, html:not(.js) .hero-pause { display: none; }
/* fewer than two plates could load: nothing to switch between */
.hero-deck.is-single .hd-btn, .hero-deck.is-single .hero-pause, .hero-deck.is-single .hl-progress { display: none; }

.hero-label {
  position: relative; margin: 0; flex: none;
  display: flex; align-items: center; justify-content: center;
  height: clamp(3rem, 2.6rem + .5vw, 4rem); padding: 0 clamp(18px, 1.7vw, 28px);
  background: var(--white); color: var(--ink); border-radius: var(--r);
  font: 600 clamp(1.0625rem, .95rem + .45vw, 1.625rem)/1 var(--f-text); letter-spacing: -0.005em; font-variant-numeric: tabular-nums; white-space: nowrap;
  box-sizing: border-box;
  /* as wide as the widest of the five labels (hero.js fixLabel: --lab-w on the deck), so the arrows either side never move */
  width: var(--lab-w, auto);
}
/* the names stack in one cell and cross-fade there (hero.js setLabel), centred in the fixed box */
.hl-view { position: relative; display: grid; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.hl-text { display: block; grid-area: 1 / 1; justify-self: center; white-space: nowrap; }
.hl-text .hl-dot { padding: 0 .42em; }
.hl-frame { position: absolute; inset: 0; pointer-events: none; --pen: var(--red); }
.hl-frame > [data-pen="rule"] { position: absolute; left: 5px; right: 5px; }
.hl-frame > .t { top: 2px; }
.hl-frame > .b { bottom: 3px; }
.hl-frame > [data-pen="vrule"] { position: absolute; top: 5px; bottom: 5px; }
.hl-frame > .l { left: 2px; }
.hl-frame > .r { right: 3px; }
.hl-progress { position: absolute; left: 6px; right: 6px; bottom: -13px; height: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .hl-text { transition: opacity .18s var(--ease-out), transform .18s var(--ease-out); }
  .hl-text.is-enter { opacity: 0; transform: translateY(28%); transition: none; }
  .hl-text.is-leaving { opacity: 0; transform: translateY(-28%); }
}

/* Pause stops all of the hero's own motion (the drift, the sway, the motes, the auto-advance); the brush and the arrows still work.
   A squared 32 x 32 icon key at the deck's end (its name, "Pause the drinks", is its aria-label); its word shows on focus. */
.hero-pause {
  position: relative; flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; margin: 0 0 0 -6px;
  border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  border-radius: var(--r);
  transition: background-color .18s ease, color .18s ease;
}
.hero-pause .hp-t {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  padding: 5px 8px; border-radius: var(--r); background: var(--ink); color: var(--white);
  font: 600 .8125rem/1 var(--f-text); letter-spacing: 0.01em; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .16s ease;
}
.hero-pause:focus-visible .hp-t { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .hero-pause:hover .hp-t { opacity: 1; } .hero-pause:hover { background: var(--fg); color: var(--bg); } }
.hero-pause .hp-i { position: relative; width: 10px; height: 12px; }
.hero-pause .hp-i::before, .hero-pause .hp-i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; border-radius: 1px; background: currentColor; }
.hero-pause .hp-i::before { left: 1px; }
.hero-pause .hp-i::after { right: 1px; }
.hero-pause.is-paused .hp-i::before { left: 1px; width: 0; height: 0; top: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; border-radius: 0; }
.hero-pause.is-paused .hp-i::after { display: none; }

/* ---- the copy: the h1, the lede, the two links and who it is for ---- */
.hero-copy { position: relative; z-index: 3; color: var(--fg); }
.hero-h1 {
  margin: 0; max-width: 14.2em;
  font: 500 clamp(1.625rem, 1.3rem + .7vw, 2.25rem)/1.14 var(--f-text); letter-spacing: -0.022em;
  text-wrap: balance;
}
/* the aside: the lede as a small caption and who it is for (the head's key and Start your Dex's are the page's two keys) */
.hero-aside { display: grid; gap: 8px; justify-items: start; max-width: 34em; }
/* the caption at 16px (its ink 80% strong: --muted), at most 30 characters to the line */
.hero-lede { margin: 0; max-width: 30ch; color: var(--muted); font: 400 1rem/1.45 var(--f-text); letter-spacing: -0.006em; text-wrap: balance; }
.hero-age { margin: 0; color: var(--muted); font: 500 .8125rem/1.4 var(--f-text); letter-spacing: 0; }
/* live: Apple's badge beside who it is for; the copy row ignores the pointer on wide windows, the badge must not */
.hero-get { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 6px 0 0; pointer-events: auto; }

/* WIDE: everything on the one window; the copy on its foot, either side of the deck */
@media (min-width: 1180px) and (min-height: 600px) {
  .hero-copy {
    position: absolute; left: 0; right: 0; bottom: clamp(22px, 4.2svh, 44px);
    display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
    pointer-events: none;
  }
  .hero-copy > * { pointer-events: auto; }
  /* the h1 has no links: its box never takes a click meant for the arrow beside it, and it ends before the deck */
  .hero-copy .hero-h1 { pointer-events: none; max-width: min(14.2em, var(--h1-max, 14.2em)); }
  /* as wide as the room beside the deck allows (hero.js --aside-max), so the caption takes as few lines as it can and the name has room above it */
  .hero-aside { justify-items: end; text-align: right; max-width: min(30rem, var(--aside-max, 26rem)); }
}
/* LANDSCAPE (a tablet held sideways, a small laptop): the window too, the deck above the copy's row */
@media (min-width: 760px) and (max-width: 1179.98px) and (min-height: 600px) and (min-aspect-ratio: 4/3) {
  .hero-copy {
    position: absolute; left: 0; right: 0; bottom: clamp(22px, 4.2svh, 44px);
    display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
    pointer-events: none;
  }
  .hero-copy > * { pointer-events: auto; }
  .hero-copy .hero-h1 { pointer-events: none; max-width: 12em; }
  .hero-aside { justify-items: end; text-align: right; max-width: 26rem; }
  .hero-deck { bottom: calc(var(--copy-h, 172px) + clamp(22px, 4.2svh, 44px) + 18px); }
  .hero-scene {
    --base: calc(100cqh - var(--copy-h, 172px) - clamp(22px, 4.2svh, 44px) - 112px);
    --g: min(60cqh, calc(100cqh - var(--copy-h, 172px) - clamp(22px, 4.2svh, 44px) - 150px));
  }
}
/* STACKED: the scene, then the copy under it on the same field */
@media (max-width: 759.98px), (max-width: 1179.98px) and (max-aspect-ratio: 1333/1000), (max-width: 1179.98px) and (max-height: 599.98px), (max-height: 599.98px) {
  .hero { --scene-h: clamp(540px, calc(100svh - 84px), 980px); height: auto; padding: var(--scene-h) 0 clamp(40px, 7vw, 72px); }
  .hero-scene { --g: min(56cqh, 106cqw); --base: calc(100cqh - 124px); }
  .hero-deck { top: calc(var(--scene-h) - 100px); bottom: auto; }
  .hero-copy { display: grid; gap: 22px; padding-top: 8px; }
  .hero-h1 { max-width: 15em; }
  .hero-aside { max-width: 40ch; }
}
@media (min-width: 760px) and (max-width: 1179.98px) and (max-aspect-ratio: 1333/1000), (min-width: 760px) and (max-height: 599.98px) {
  .hero-copy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 40px; }
  .hero-scene { --g: min(60cqh, 92cqw); }
}
/* a phone held sideways: the scene is the window, the glass a little smaller */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { --scene-h: max(340px, 100svh); }
  .hero-scene { --g: 72cqh; --base: calc(100cqh - 84px); }
  .hero-deck { top: calc(var(--scene-h) - 70px); }
}
/* a phone: the label on its own row (a long name needs the whole width), and under it the two arrows and Pause, one group, centred, 12px apart */
@media (max-width: 560px) {
  .hero-deck {
    display: grid; grid-template-columns: 1fr auto auto auto 1fr; grid-template-areas: "label label label label label" ". prev next pause .";
    justify-content: center; justify-items: center; align-items: center; gap: 18px 12px;
    width: max-content; min-width: min(300px, calc(100vw - 32px)); max-width: calc(100vw - 24px); top: calc(var(--scene-h) - 140px);
  }
  .hero-scene { --base: calc(100cqh - 162px); }
  /* a fixed size (the label's row, the gap and the keys' row): a name changing can never resize anything round it */
  .hero-deck { block-size: 112px; align-content: center; }
  .hero-label { grid-area: label; padding: 0 14px; font-size: clamp(12px, 3.4vw, 14px); height: 46px; white-space: nowrap; }
  #hero-prev { grid-area: prev; }
  #hero-next { grid-area: next; }
  .hero-pause { grid-area: pause; justify-self: center; margin: 0 0 0 4px; }
  .hd-btn { --btn: 46px; }
}

/* ---- the welcome (first visit in a session, motion allowed; hero.js) ---- */
.wel-c { position: absolute; z-index: 6; left: 0; top: 0; pointer-events: none; transform-origin: 0 0; will-change: transform; }
.wel-cup { position: absolute; z-index: 6; pointer-events: none; --pen: var(--red); }
.wel .site-head .brand-mark { opacity: 0; }
/* the veil: the field's own colour over the scene, so the pen writes on a clear field; the scene under it
   is painted all along (its plate is the page's largest paint), and the veil lifts as the drink pours in */
.hero-scene::after { content: ""; position: absolute; inset: 0; z-index: 5; background: var(--bg); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s var(--ease-out), visibility 0s linear .16s; }
.wel:not(.wel-run) .hero-scene::after { opacity: 1; visibility: visible; transition: none; }
/* After the welcome the landing is hero.js's (entrance): the letters rise out of their lines (held under them all through
   the welcome, so the veil never goes over a half-strong name) and the glass springs up on its own springs. No CSS pour or
   rise under them. */
.js.wel .hero-name, .js.wel-run .hero-name, .js.wel .hero-glass, .js.wel-run .hero-glass { animation: none; }
/* the deck and the caption wait with the scene and rise in 120 ms after the drink starts landing (the h1 is never hidden) */
.hero-deck, .hero-aside { transition: opacity .3s var(--ease-out) .12s, translate .52s var(--spring) .12s; }
.wel:not(.wel-run) .hero-deck, .wel:not(.wel-run) .hero-aside { opacity: 0; translate: 0 14px; transition: none; }
/* scrubbed by the pin (hero.js): no transition lagging behind the scroll */
.hero.is-moved .hero-deck { transition: none; }

/* THE GLASS LANDS IN THE DEX (hero.js fly()): the glass's copy over the page, in the scene's own box and perspective */
.hero-fly { position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none; perspective: 1500px; visibility: hidden; }
.hero-fly.is-on { visibility: visible; }
.hf-glass { position: absolute; transform-origin: 50% 98.8%; will-change: transform; transition: opacity .18s var(--ease-out); }
.hf-glass > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.hf-glass > .hg-glint { opacity: 0; }
.hero-fly.is-landed .hf-glass { opacity: 0; }
@media print { .hero-fly { display: none; } }

/* entering, from the first paint: the glass pours in, the name rises (transform only; backwards fill, so
   hero.js's springs take the glass over the moment it lands). Held at the start under the welcome's veil. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-glass { animation: hero-pour 1.25s var(--spring) backwards; }
  .js .hero-name { animation: hero-rise .95s var(--ease-out) .08s backwards; }
  .wel:not(.wel-run) .hero-glass, .wel:not(.wel-run) .hero-name { animation-play-state: paused; }
}
@keyframes hero-pour {
  0% { transform: translate3d(0, 22%, 0) rotate(-5deg) scale(.94); }
  100% { transform: none; }
}
@keyframes hero-rise {
  0% { transform: translate3d(0, 0.26em, 0) rotate(1.5deg); }
  100% { transform: none; }
}

/* Type that moves (motion.js data-split): words rise out of their own line's mask. */
.split .sw { display: inline-block; vertical-align: top; overflow: hidden; padding: 0.06em 0.02em 0.14em; margin: -0.06em -0.02em -0.14em; }
.split .sw-i { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-split]:not(.is-in) .sw-i { transform: translate3d(0, 112%, 0); }
  .js [data-split] .sw-i { transition: transform .95s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
  /* already on screen when the script arrived: it is simply there, never taken away to rise again */
  .js [data-split].split-now .sw-i { transition: none; }
}

@media print {
  .hero-stage .ink-canvas, .hero-deck { display: none; }
  .hero { height: auto; }
}
@media (forced-colors: active) {
  .hero-label { border: 2px solid CanvasText; }
}
