/* Placed on the David Fritz home page from website_inputs/hero/block (8f9ce70). One change for placing: on a plain page
   the module's class names are global, so .btn and .btnLine are scoped as .hero .btn and .hero .btnLine (the site has
   its own .btn). Nothing else differs from HeroFilm/HeroFilm.module.css. */
/* HeroFilm: the home page hero, David Fritz Golf Academy (website/BRIEF.md, Hero and Motion).
   One file for both: the Next.js component imports it as a CSS module, the plain demo links it as plain CSS.
   So: no :global, states live in data attributes, every selector holds one of these classes.
   Height: 100svh with a 560 px floor, plus a fixed allowance on touch screens so the film still reaches the
   bottom when Safari's bars hide. Never lvh, dvh, plain vh or safe area insets here; no snap, no pinning. */

.hero {
  --hero-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hero-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);   /* its fades and focus */
  /* Book Now is the site's glass button (css/base.css, "The filled button is glass"; Ry, 10 Nov 2026: no blue).
     It has no colour of its own here: the glass, its rim and its three heights come from the kit. */
  /* Shade strengths, measured by scripts/contrast.mjs: white words at 4.5 to 1 or better on the brightest pixel
     behind them, every 2 s of the film, at 25 screen sizes. Change one, run the script again. */
  --hero-shade: 12 12 14;          /* near black, R G B: every shade on the picture */
  --hero-fade: 0.3;                /* bottom 40 percent of the screen, at its darkest */
  --hero-words-shade: 0.54;        /* soft shade right behind the words */
  --hero-top: 0.56;                /* top shade, so the floating header reads (Ry, 9 Nov: a little darker) */
  --hero-top-h: 180px;
  --hero-allow: 0px;               /* film below the first screen (touch screens: 160 px) */
  --hero-floor: 560px;             /* the least first screen (upright phones: 400 px, so Book Now never drops under
                                      the toolbar on a short phone: an SE's first screen is 460 to 553 px) */
  --hero-gutter: 16px;
  /* The site's fonts: next/font's variables when set on <html> (--font-display, --font-sans, as on Champlain), else by name. */
  --hero-head-font: var(--font-display, "Instrument Serif"), ui-serif, Georgia, serif;
  --hero-text-font: var(--font-sans, "Plus Jakarta Sans"), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: var(--hero-floor);
  overflow: hidden;
  overflow: clip;
  background: #1d1d20;
  color: #fff;
  font-family: var(--hero-text-font);
}
/* The picture runs on below the first screen, where Safari's bars hide on a phone or tablet. Only there: a TV's own
   browser with a remote also has no hover, but no bars, and a hero taller than its screen left the picture's foot off
   the TV (Ry, Mon 16 Nov 2026: Dave put the site on his 100 inch TV and was thrown off). The widest tablet is 1376. */
@media (hover: none) and (pointer: coarse) and (max-width: 1400px) {
  .hero { --hero-allow: 160px; }
}
@supports (height: 100svh) {
  .hero { min-height: calc(max(var(--hero-floor), calc(100svh / var(--vz, 1))) + var(--hero-allow)); }
}
.hero [hidden] { display: none !important; }

/* Picture and film, stacked. The tiny blurred preview paints under the poster until it arrives. */
.media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.poster,
.film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  /* the One Pine film's framing (back on Dave's word, 17 Nov 2026): the pine at the far left, kept in on every screen */
  object-position: 0% 0%;
}
.poster { background: var(--blur-desktop) 0% 0% / cover no-repeat; }
.film {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--hero-ease);
}
.hero[data-film="on"] .film { opacity: 1; }
@media (orientation: portrait) {
  .poster,
  .film { object-position: 70% 50%; }
  .poster {
    background-image: var(--blur-phone);
    background-position: 70% 50%;
  }
}

/* Shades: top for the header; the bottom 40 percent of the screen (and the allowance below it) for the words.
   Eased stops, so there is never a visible edge. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  top: 0;
  height: var(--hero-top-h);
  background: linear-gradient(
    rgb(var(--hero-shade) / var(--hero-top)) 0%,
    rgb(var(--hero-shade) / calc(var(--hero-top) * 0.82)) 20%,
    rgb(var(--hero-shade) / calc(var(--hero-top) * 0.58)) 40%,
    rgb(var(--hero-shade) / calc(var(--hero-top) * 0.34)) 60%,
    rgb(var(--hero-shade) / calc(var(--hero-top) * 0.13)) 80%,
    rgb(var(--hero-shade) / 0) 100%);
}
.hero::after {
  bottom: 0;
  height: calc(var(--hero-allow) + 224px);
  background: linear-gradient(to top,
    rgb(var(--hero-shade) / var(--hero-fade)) var(--hero-allow),
    rgb(var(--hero-shade) / calc(var(--hero-fade) * 0.82)) calc(var(--hero-allow) * 0.8 + 20%),
    rgb(var(--hero-shade) / calc(var(--hero-fade) * 0.58)) calc(var(--hero-allow) * 0.6 + 40%),
    rgb(var(--hero-shade) / calc(var(--hero-fade) * 0.34)) calc(var(--hero-allow) * 0.4 + 60%),
    rgb(var(--hero-shade) / calc(var(--hero-fade) * 0.13)) calc(var(--hero-allow) * 0.2 + 80%),
    rgb(var(--hero-shade) / 0) 100%);
}
@supports (height: 100svh) {
  .hero::after { height: calc(var(--hero-allow) + 0.4 * max(var(--hero-floor), calc(100svh / var(--vz, 1)))); }
}

/* The words: low and centred on phones, low left from 768 px. They end above the allowance, on the first screen. */
.inner {
  width: 100%;
  max-width: calc(1240px + 2 * var(--hero-gutter));
  margin: 0 auto;
  padding: 0 var(--hero-gutter) calc(var(--hero-allow) + 56px);
}
.words {
  position: relative;
  min-width: 0;
  text-align: center;
}
/* Soft shade right behind the words. Phones: a band the width of the screen that fades in above the words and stays
   on below them (an ellipse would draw an arc in the sky). Wider: an ellipse, flat under the words, fading out well
   past their edges. */
.words::before {
  content: "";
  position: absolute;
  inset: -60% calc(-1 * var(--hero-gutter)) calc(-100% - var(--hero-allow));   /* on to the hero's foot, allowance too */
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    rgb(var(--hero-shade) / 0) 0%,
    rgb(var(--hero-shade) / calc(var(--hero-words-shade) * 0.13)) 4.62%,
    rgb(var(--hero-shade) / calc(var(--hero-words-shade) * 0.34)) 9.23%,
    rgb(var(--hero-shade) / calc(var(--hero-words-shade) * 0.58)) 13.85%,
    rgb(var(--hero-shade) / calc(var(--hero-words-shade) * 0.82)) 18.46%,
    rgb(var(--hero-shade) / var(--hero-words-shade)) 23.08%);
}
@media (min-width: 768px) {
  .words::before {
    /* A wide, slow fade: the words sit inside the solid middle (their corners at 51%), the edge is never seen. */
    inset: -100% -80%;
    background: radial-gradient(closest-side,
      rgb(var(--hero-shade) / var(--hero-words-shade)) 52%,
      rgb(var(--hero-shade) / calc(var(--hero-words-shade) * 0.9)) 60%,
      rgb(var(--hero-shade) / calc(var(--hero-words-shade) * 0.7)) 68%,
      rgb(var(--hero-shade) / calc(var(--hero-words-shade) * 0.45)) 77%,
      rgb(var(--hero-shade) / calc(var(--hero-words-shade) * 0.22)) 86%,
      rgb(var(--hero-shade) / calc(var(--hero-words-shade) * 0.07)) 94%,
      rgb(var(--hero-shade) / 0) 100%);
  }
}
.title {
  margin: 0;
  font: 400 min(3.5rem, calc(14.5vw / var(--vz, 1))) / 1 var(--hero-head-font);
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 24px rgb(var(--hero-shade) / 0.25);
}
.line { display: block; }
.sub {
  max-width: 34ch;
  margin: 16px auto 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.hero .btn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  max-width: 11rem;
  min-height: 56px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--depth-btn);
  color: #fff;
  /* Shrinks a touch on the narrowest phones, so a button's words stay on one line down to 320 wide. */
  font: 600 clamp(0.9375rem, calc(4.6vw / var(--vz, 1)), 1.0625rem) / 1.2 var(--hero-text-font);
  text-align: center;
  text-decoration: none;
  --btn-lh: 1.2em;         /* css/base.css .btn: one line ending in dots, centred by these two */
  --btn-h: 56px;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.2s var(--hero-ease), transform 0.2s var(--hero-ease);
}
/* The words may now wrap inside the pill (css/base.css .btn no longer says nowrap), so on narrow phones the side
   padding steps back and "Meet the coaches" keeps its one line (centred words: nothing moves). */
@media (max-width: 380px) {
  .hero .btn { padding-inline: 4px; }
}
.hero .btnLine {
  --btn-bd: 1.5px;         /* css/base.css .btn: its border, so the pill stays the height the flex box drew */
  background: transparent;
  border: 1.5px solid rgb(255 255 255 / 0.85);
  box-shadow: none;
}
.hero .btn:active { background: var(--glass-down); box-shadow: var(--depth-btn-down); transform: scale(0.98); }
.hero .btnLine:active { background: rgb(255 255 255 / 0.14); }
.hero .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) {
  .hero .btn:hover { background: var(--glass-up); box-shadow: var(--depth-btn-up); }
  .hero .btn:hover:active { background: var(--glass-down); box-shadow: var(--depth-btn-down); }
  .hero .btnLine:hover { background: rgb(255 255 255 / 0.14); }
}
html.calm .hero .btn { transform: none; }
@media (prefers-reduced-motion: reduce) { .hero .btn { transform: none; } }


/* Read to screen readers in place of the film. */
.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero {
    --hero-gutter: 48px;
    --hero-fade: 0.5;
    --hero-words-shade: 0.52;        /* the words sit on the left now, over brighter water: 5.3 to 1 at worst */
    --hero-top: 0.62;                /* Ry, 9 Nov: a little darker behind the logo and the menu, edge to edge */
    --hero-top-h: 240px;
  }
  /* Ry, 9 Nov: the logo, the headline and Book Now fully on the left, one line with the header's logo, never in a
     centred column. */
  /* Ry, 4:39 PM Sat 14 Nov, Dan showing the site on a laptop: "Why are the H1 and the Book Now so high... This should
     never happen." Book Now sits one side margin above the bottom, the same as its distance from the left edge (48 px,
     64 px on wide screens), so the words always sit in the corner, whatever the window's shape. Was 6% of the width,
     up to 96 px. */
  .inner { max-width: none; padding-bottom: calc(var(--hero-allow) + var(--hero-gutter)); }
  .words {
    width: fit-content;
    max-width: 100%;
    text-align: left;
  }
  .title { font-size: clamp(3.5rem, calc(6vw / var(--vz, 1)), 7rem); }
  .sub {
    max-width: 36ch;
    margin: 20px 0 0;
    font-size: clamp(1.125rem, calc(1.4vw / var(--vz, 1)), 1.375rem);
  }
  .actions { justify-content: flex-start; margin-top: 32px; }
  .hero .btn {
    flex: 0 0 auto;
    min-width: 10rem;
    max-width: 100%;
    padding: 8px 32px;
    font-size: 1.125rem;
  }
}
@media (min-width: 1280px) {
  .hero { --hero-gutter: 64px; }
}
/* One look on every computer (Ry, just before 9 PM Sun 15 Nov 2026: "on desktop, at all the different sizes, the
   hero, H1, and the Book Now are perfect as well, and relatively like we just did on mobile"). The headline, Book Now
   and the space between them grow and shrink with the screen in one proportion, so every screen shows them as Ry's
   laptop did when he said "it looks perfect" (1512 wide: a 90.7 px headline, a 56 px pill with 18 px words). Was a
   headline capped at 112 px and a pill fixed at 56 px, so a big monitor's words looked small. The unit is 1% of the
   screen's width, or of a 16 to 9 screen as tall as this one when the screen is wider than that, so a wide monitor's
   words never outgrow its height. Book Now never drops under 48 px tall or 16 px words, the headline never under
   56 px. The corner margins stay the site's (48, 64 px): the headline keeps its line with the header's logo. A phone
   on its side (500 px tall or less) keeps its own sizes below. */
@media (min-width: 768px) and (min-height: 501px) {
  .hero { --u: calc(1vw / var(--vz, 1)); }
  .title { font-size: max(3.5rem, 6 * var(--u)); }
  .actions { margin-top: max(24px, 2.1164 * var(--u)); }
  .hero .btn {
    --btn-h: max(48px, 3.7037 * var(--u));
    min-height: var(--btn-h);
    min-width: max(9rem, 10.582 * var(--u));
    padding-inline: max(24px, 2.1164 * var(--u));
    font-size: max(1rem, 1.1905 * var(--u));
  }
}
@supports (height: 100svh) {
  @media (min-width: 768px) and (min-height: 501px) {
    .hero { --u: min(calc(1vw / var(--vz, 1)), calc(1.7778svh / var(--vz, 1))); }
  }
}
/* The hero's own top shade grows with the top bar (css/base.css --k), so the bigger logo and menu keep the same shade
   under them. */
@supports (transition-behavior: allow-discrete) {
  @media (min-width: 1100px) and (min-height: 501px) {
    .hero { --hero-top-h: calc(240px * var(--k)); }
  }
}
/* A phone on its side (short and wide): one screen, no floor and no allowance, smaller words, so the headline and
   its button show at once. */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { --hero-allow: 0px; min-height: 320px; }
  .inner { padding-bottom: 20px; }
  .title { font-size: 2.5rem; font-size: clamp(2.25rem, calc(13svh / var(--vz, 1)), 3.25rem); }
  .sub { max-width: 46ch; margin-top: 8px; font-size: 1rem; }
  .actions { margin-top: 16px; }
  .hero .btn { min-height: 48px; --btn-h: 48px; }
}
@supports (height: 100svh) {
  @media (orientation: landscape) and (max-height: 500px) {
    .hero { min-height: max(320px, calc(100svh / var(--vz, 1))); }
  }
}

/* Phones, upright. Ry, 9 Nov: "we need to see much more lower on the image ... the golf course, the full tree, the
   sunset". The picture fits the first screen, not the allowance, so the whole tree, the sun, the green and the flag
   show; its last tenth melts into the dark. The words sit small on the rock at the bottom, out of the way.
   No allowance in a desktop window this narrow (Dan's side, 10 Nov: it was only a dark band between Book Now and the
   finder). A phone in the hand gets one again, filled with picture: see "Full screen to the bottom" below. */
@media (orientation: portrait) and (max-width: 767px) {
  .hero { --hero-allow: 0px; --hero-floor: 400px; }
  .media {
    bottom: var(--hero-allow);
    -webkit-mask-image: linear-gradient(#000 90%, transparent);
    mask-image: linear-gradient(#000 90%, transparent);
  }
  .poster,
  .film { object-position: 80% 70%; }
  .poster { background-position: 80% 70%; }
  /* One look on every phone (Ry, 8:52 PM Sun 15 Nov 2026: on the bigger iPhones the headline and Book Now "feel small"
     proportionally). The headline, Book Now and the space round them grow with the phone's width, so every phone
     shows them in the same proportion as a 375 wide iPhone (where they were 35.6 px, a 48 px pill, 17 px words). Book
     Now never drops under 48 px tall or 15 px words, on the narrowest phones too. */
  .inner { padding-bottom: calc(var(--hero-allow) + calc(6.4vw / var(--vz, 1))); }
  .title { font-size: calc(9.5vw / var(--vz, 1)); letter-spacing: -0.02em; }
  .actions { margin-top: calc(4.8vw / var(--vz, 1)); }
  .hero .btn {
    --btn-h: max(48px, calc(12.8vw / var(--vz, 1)));
    min-height: var(--btn-h);
    max-width: max(11rem, calc(46.93vw / var(--vz, 1)));
    font-size: clamp(0.9375rem, calc(4.533vw / var(--vz, 1)), 1.25rem);
  }
}

/* Full screen to the bottom, on every phone (Ry, Sat 14 Nov 2026: an iPhone showed the white page and the next title
   under Safari's bottom toolbar; "How do we fix this so it doesn't happen on any of the pages?" ... "at the bottom,
   it's full screen. It's important. On every phone size").
   Safari draws the page on under its see through toolbar, but 100svh ends above that toolbar. So on a phone in the
   hand the hero runs 140 px past the first screen (the most Safari's bars ever take away: 882 against 742 on a Pro
   Max), and the picture fills it: the first screen's picture exactly as before, then its own mirror image below it
   (-webkit-box-reflect), so the ground simply goes on, under the shade, with no seam. The title and Book Now still
   sit inside the first screen (.inner adds the same 140 px under them), so nothing moves where people look.
   Never lvh, dvh or insets: a fixed allowance never jumps. A browser without the mirror fades into the dark. */
@media (orientation: portrait) and (max-width: 767px) and (hover: none) {
  .hero { --hero-allow: 140px; }
}
@supports (-webkit-box-reflect: below 0px) {
  @media (orientation: portrait) and (max-width: 767px) and (hover: none) {
    .media {
      -webkit-box-reflect: below 0px;
      -webkit-mask-image: none;
      mask-image: none;
    }
  }
}
/* No mirror (Firefox on Android): the 140 px stood dark under the picture. Its toolbar is not see through, so the
   first screen already shows the whole picture to the bottom: no allowance there (screens check, Firefox, 15 Nov 2026).
   The program pages' hero says the same in css/program.css. */
@supports not (-webkit-box-reflect: below 0px) {
  @media (orientation: portrait) and (max-width: 767px) and (hover: none) {
    .hero { --hero-allow: 0px; }
  }
}

/* Load, in the site's one motion language (css/base.css "Motion"): the picture settles 104 to 100 percent over 1.6 s;
   the headline rises line by line out of its own mask, 100 ms apart, sharp all the way. The picture, the line under the
   headline and the buttons are there in full from the first frame: nothing in the hero fades in (Dan, 11 Nov 2026: "I
   don't like when you load the hero and it fades in ... I like the animation on the H1"). The fills are "backwards":
   once each has played, nothing of it stays on the element.
   Calm mode (reduced motion, or data-calm on html for Save Data, 2g, slow devices and the visitor's own switch): none
   of it. */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-calm]) .hero:not(:has(.title[data-chars])) .media { animation: hero-settle 1.6s var(--hero-ease) both; }
  html:not([data-calm]) .title:not([data-chars]) { animation: hero-focus 1s var(--hero-ease-soft) 80ms backwards; }
  html:not([data-calm]) .title:not([data-chars]) .line { animation: hero-line 1.15s var(--hero-ease) 80ms backwards; }
  html:not([data-calm]) .title:not([data-chars]) .line:nth-child(2) { animation-delay: 180ms; }
  html:not([data-calm]) .title:not([data-chars]) .line:nth-child(3) { animation-delay: 280ms; }
  html:not([data-calm]) .title:not([data-chars]) .line:nth-child(4) { animation-delay: 380ms; }
}
/* Only when the site is opened (Ry, 23 Nov 2026: going from page to page "there's a slight zoom on the hero images"
   after the picture loads; it read as a jump): a move from one of our pages to another (the head script sets
   data-moved) draws the picture still, at 100 percent from its first frame; the headline still rises. */
html[data-moved] { --hero-settle-from: 1; --hero-open-from: 1; }
@keyframes hero-settle { from { transform: scale(var(--hero-settle-from, 1.04)); } to { transform: none; } }
/* the line is its own mask: the clip moves down with it by exactly as much as it rose, so the window holds still */
@keyframes hero-line {
  from { transform: translate3d(0, calc(100% + 0.35em), 0); clip-path: inset(-0.4em -0.5em calc(100% + 0.05em) -0.5em); }
  to { transform: none; clip-path: inset(-0.4em -0.5em -0.3em -0.5em); }
}
@keyframes hero-focus { from { opacity: 1; } }   /* was a soft focus in: words are never blurred, opening included (Dan, 11 Nov: "Yes, sharp too") */

/* Leaving: the words scroll away with the page like any other text. No drift, no fade, no slide: a headline that
   drifted slower than the page slid in behind Book Now and faded on the way (Dan, 11 Nov 2026: "the H1, as you scroll,
   goes behind the Book Now button ... That shouldn't move like that ... it also starts fading out, which shouldn't
   happen. That looks like a mistake"). Only the picture leans in 6 percent as it goes, on the browser's own scroll
   timeline; where there is none, nothing moves. Never in calm mode. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero { view-timeline: --df-hero block; }
    html:not([data-calm]) .hero :is(.poster, .film) { animation: hero-lean linear both; animation-timeline: --df-hero; animation-range: exit 0% exit 100%; }
  }
}
@keyframes hero-lean { to { scale: 1.06; } }

/* The plainest film (js/hero.js, the crash ladder's rung 1: a phone whose page crashed on the film once): no mirror
   under it, the picture fades into the dark as in a browser without the mirror, and no lean as it scrolls away. */
.hero[data-film-plain] .media { -webkit-box-reflect: none; }
@media (orientation: portrait) and (max-width: 767px) {
  .hero[data-film-plain] .media {
    -webkit-mask-image: linear-gradient(#000 90%, transparent);
    mask-image: linear-gradient(#000 90%, transparent);
  }
}
html:not([data-calm]) .hero[data-film-plain] :is(.poster, .film) { animation: none; }

/* ---------- The home page's opening: first light (Ry, 2:20 PM Wed 11 Nov 2026: "I don't really even notice too much
   motion. For example, take the hero. What else can be done ... with the lettering and with things coming in smoothly
   and beautifully?") ----------
   Ry, 2:27 PM: "a tad too slow ... a little bit faster", and the glint's colour more like the light through Book Now.
   Ry, 2:35 PM: "the light looks like it's blurry. It only should be in the letters themselves. It shouldn't come out of
   the letters." So the light is no glow: nothing paints outside a letter's own shape.
   About three and a half seconds, every move eased, nothing quick enough to miss (the eye keeps up):
   0 s     the picture is there in full colour from the first frame (Dan, 11 Nov 2026: "I don't like when you load the
           hero and it fades in": the dark veil that lifted over 2 s is gone); the camera settles from 112 percent.
   0.15 s  the headline arrives letter by letter, 22 ms apart: each letter rises out of its word's own slot, turning up
           from a slight tilt, sharp all the way.
           Book Now is there from the first frame (it rose and faded in at 0.95 s; nothing in the hero fades in now).
   2.0 s   the letters cool a shade toward pearl and one crisp slanted band of pure white runs through them left to
           right, inside the letters only, both lines together; then they are white again.
   2.5 s   the band carries on across Book Now's glass, once.
   The header is there from the first frame too (its menu dropped and faded in at 0.7 s).
   Leaving: nothing. The words scroll with the page (see "Leaving" above).
   With a mouse: the words and Book Now follow the pointer a few pixels (the script in 01-hero.html). The picture stays
   still (Ry, 2:51 PM: "I don't like how you can click on the video of the hero in the background, and it moves the
   screen ... but I love being able to click on the 'Book Now' and move it around").
   Calm mode, reduced motion and no JavaScript: the plain headline, still. */
.title[data-chars] .w,
.title[data-chars] .c { display: inline-block; }
.title[data-chars] .c { transform-origin: 0% 100%; margin-right: var(--k, 0); }   /* --k: the font's own kerning */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-calm]) .hero:has(.title[data-chars]) .media { animation: hero-open 3s var(--hero-ease) both; }
  /* each word is its letters' slot only while they rise (after that a slot would clip the headline's soft shadow) */
  html:not([data-calm]) .title[data-chars] .w { animation: hero-slot 1.95s; }
  html:not([data-calm]) .title[data-chars] .c {
    position: relative;
    animation: hero-char 1s var(--hero-ease) calc(150ms + var(--i) * 22ms) backwards;
  }
  /* The light, inside the letters only. Each letter carries a copy of itself on top (data-c), painted only within its
     own shape: a pearl tint everywhere but one narrow slanted gap, where the white letter shows through as the band.
     The copy only ever darkens, never adds light, so nothing can glow past an edge. Every letter places the band by
     its own spot across the headline (--x and --len, set by the script in 01-hero.html), so it is one band crossing
     each letter in turn, as Book Now's slanted band crosses the glass. The second line runs 60 ms behind. */
  .title[data-chars] .l2 { --late: 60ms; }
  html:not([data-calm]) .title[data-chars] .c::after {
    content: attr(data-c);
    position: absolute;
    left: -0.25em;
    top: -0.3em;
    padding: 0.3em 0.25em;
    color: transparent;
    text-shadow: none;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(105deg,
      rgb(var(--hero-shade) / 0.15) calc(50% - 0.12em), transparent calc(50% - 0.095em),
      transparent calc(50% + 0.095em), rgb(var(--hero-shade) / 0.15) calc(50% + 0.12em)) no-repeat;
    background-size: 60em 100%;
    background-origin: content-box;
    -webkit-background-clip: text;
    background-clip: text;
    animation: hero-light 1.3s ease-in-out calc(2000ms + var(--late, 0ms));
  }
  html:not([data-calm]) .hero:has(.title[data-chars]) .btn { animation: hero-sheen 1.2s cubic-bezier(0.45, 0, 0.2, 1) 2500ms; }
}
/* Second light: the line under the headline (Ry, 5:28 PM Fri 13 Nov 2026: "this ... has no effect or anything that
   fits beautifully with the H1 ... How do we fix that next line so it really comes in beautifully?"). It speaks the
   headline's own language, a size down: as the headline's last letters land (1.0 s), each word of the line rises out of
   its own slot, 45 ms apart, turning up from a slight tilt, on the same ease. Sharp all the way and never faded: below
   its slot a word is simply not there yet (Dan, 11 Nov: nothing in the hero fades in). It has landed by about 2.7 s,
   as the light crosses the headline. A word's slot clips only while it rises, so the soft shadow comes back after.
   Calm mode, reduced motion and no JavaScript: the plain line, still. */
.sub[data-words] .sw,
.sub[data-words] .s { display: inline-block; }
.sub[data-words] .s { transform-origin: 0% 100%; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-calm]) .sub[data-words] .sw { animation: hero-sub-slot calc(2100ms + var(--j) * 45ms); }
  html:not([data-calm]) .sub[data-words] .s { animation: hero-sub-word 1.1s var(--hero-ease) calc(1000ms + var(--j) * 45ms) backwards; }
}
/* The lean under the mirror (iPhone check, 16 Nov 2026: iPhone Safari on iOS 26 crashed the page about a third of a
   second after it loaded, every hero page, then reloaded it; the crash guard then took the mirror away). The cause is
   in Safari itself: an animation run by the scroll, on the picture INSIDE the mirrored frame. Either one alone is fine,
   and iOS 27 is fine with both. So where the mirror is (a phone in the hand), the lean moves onto the frame itself,
   joining its opening: the same 6 percent as the hero leaves, mirror and all, and nothing inside the frame is moved by
   the scroll. Proved on iOS 26.5 by loading and scrolling every hero page; a computer keeps the lean as above.
   On the crash ladder's rung 1 (no mirror) the lean stays off, as before: its timeline is none. */
@supports (animation-timeline: view()) and (-webkit-box-reflect: below 0px) {
  @media (prefers-reduced-motion: no-preference) and (orientation: portrait) and (max-width: 767px) and (hover: none) {
    html:not([data-calm]) .hero :is(.poster, .film) { animation: none; }
    html:not([data-calm]) .hero:not(:has(.title[data-chars])) .media {
      animation: hero-settle 1.6s var(--hero-ease) both, hero-lean linear both;
      animation-timeline: auto, --df-hero;
      animation-range: normal, exit 0% exit 100%;
    }
    html:not([data-calm]) .hero:has(.title[data-chars]) .media {
      animation: hero-open 3s var(--hero-ease) both, hero-lean linear both;
      animation-timeline: auto, --df-hero;
      animation-range: normal, exit 0% exit 100%;
    }
    html:not([data-calm]) .hero[data-film-plain]:not(:has(.title[data-chars])) .media,
    html:not([data-calm]) .hero[data-film-plain]:has(.title[data-chars]) .media { animation-timeline: auto, none; }
  }
}
@keyframes hero-sub-slot { from, to { clip-path: inset(-0.3em -0.2em 0 -0.2em); } }
@keyframes hero-sub-word { from { transform: translate3d(0, 1.35em, 0) rotate(3deg); } to { transform: none; } }
@keyframes hero-open { from { transform: scale(var(--hero-open-from, 1.12)); } to { transform: none; } }
@keyframes hero-slot { from, to { clip-path: inset(-0.45em -0.3em -0.24em -0.3em); } }
@keyframes hero-char {
  from { opacity: 0; transform: translate3d(0, 1.05em, 0) rotate(7deg); }   /* never blurred (Dan, 11 Nov) */
  45% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
/* the band sits mid gradient (30em in): it starts 1em before the headline's left and leaves 1em past its right */
@keyframes hero-light {
  from { opacity: 0; background-position: calc(-31em - var(--x, 0px)) 0; }
  14% { opacity: 1; background-position: calc(-31em - var(--x, 0px)) 0; }
  86% { opacity: 1; background-position: calc(var(--len, 12em) - 29em - var(--x, 0px)) 0; }
  to { opacity: 0; background-position: calc(var(--len, 12em) - 29em - var(--x, 0px)) 0; }
}
@keyframes hero-sheen {
  from {
    background-image: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 0.4) 50%, transparent 62%), var(--glass);
    background-size: 300% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: 100% 0, 0 0;
  }
  to {
    background-image: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 0.4) 50%, transparent 62%), var(--glass);
    background-size: 300% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: 0% 0, 0 0;
  }
}

/* The first screen's key facts under the title (fresh eyes walks, 23 Nov 2026: no first screen named a place, an
   age or a price; Ry, of the sketch: "Yes, the sketch is perfect"). Small glass chips, words only, never presses; set
   like the actions (centred on a phone, from the left on wider screens), the site's 15 px. */
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: 500 15px / 1.3 var(--hero-text-font); white-space: nowrap; }
