/* Hushtide. The page is one day on the coast: it opens at first light and ends at night.
   Each section is a stretch of sky that begins where the one above it left off. */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: only light;

  /* ink */
  --cream: #fff3d6;
  --deep: #14263a;
  --lamp: #ffc46b;
  --night: #070d20;

  /* the sky, in the order the day passes */
  --first-top: #6f6283;
  --first: #d7a2a2;
  --mist: #d6dad3;
  --morning: #cbe3df;
  --day: #a6d5d0;
  --golden: #f0c592;
  --ember: #e59f78;
  --dusk: #5b3f72;
  --twilight: #2a2a5e;
  --moonlit: #152b50;

  --display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --wide: 72rem;
  --breath: 7s;          /* one slow breath: the pace of everything that moves */
  --ease: cubic-bezier(.22, .61, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--deep);
  font: 400 clamp(1.0625rem, .98rem + .3vw, 1.1875rem)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

/* a little grain, so the long skies never band */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }

h2 {
  font: 400 clamp(2.1rem, 1.2rem + 3.6vw, 4rem)/1.08 var(--display);
  letter-spacing: -.012em;
  text-wrap: balance;
  max-width: 16ch;
}
h3 {
  font: 400 1.35rem/1.25 var(--display);
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  line-height: 1.5;
  max-width: 34rem;
  text-wrap: pretty;
  opacity: .86;
}

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------------ sky */

.sky {
  position: relative;
  padding: clamp(9rem, 22vh, 15rem) var(--gutter) clamp(6rem, 14vh, 10rem);
  /* the change of light eases out, so the sky never shows where it stopped changing */
  background: linear-gradient(var(--from), color-mix(in oklab, var(--from) 45%, var(--to)) calc(var(--turn) * .4), color-mix(in oklab, var(--from) 12%, var(--to)) calc(var(--turn) * .72), var(--to) var(--turn));
  --turn: 30rem;
  color: var(--ink, var(--deep));
}
.sky-first    { --from: var(--first-top); --to: var(--mist); --ink: var(--cream); }
.sky-morning  { --from: var(--mist);     --to: var(--morning); }
.sky-day      { --from: var(--morning);  --to: var(--day); }
.sky-golden   { --from: var(--day);      --to: var(--golden); --ink: #2b2030; }
.sky-dusk     { --from: var(--ember);    --to: var(--dusk); --ink: var(--cream); }
.sky-twilight { --from: var(--dusk);     --to: var(--twilight); --ink: var(--cream); }
.sky-night    { --from: var(--twilight); --to: var(--moonlit); --ink: var(--cream); }

/* golden hour deepens to ember before dusk takes over */
.sky-golden { background: linear-gradient(var(--day), color-mix(in oklab, var(--day) 45%, var(--golden)) 12rem, color-mix(in oklab, var(--day) 12%, var(--golden)) 22rem, var(--golden) 30rem, var(--golden) calc(100% - 26rem), color-mix(in oklab, var(--golden) 60%, var(--ember)) calc(100% - 13rem), var(--ember)); }
/* the first ember of dusk is still bright: keep cream ink off it */
.sky-dusk { padding-top: clamp(15rem, 34vh, 20rem); }

/* the tide mark between one stretch of sky and the next */
.tideline {
  position: absolute;
  top: clamp(4rem, 10vh, 6.5rem);
  left: 50%;
  width: min(30rem, 62vw);
  height: 14px;
  translate: -50% 0;
  overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  opacity: .55;
}
.sky-dusk .tideline { top: clamp(9rem, 22vh, 12rem); }
.tideline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  animation: drift calc(var(--breath) * 2) linear infinite;
}
@keyframes drift { to { transform: translateX(-100px); } }

/* ------------------------------------------------------------------ bar */

.bar {
  position: fixed;
  z-index: 30;
  top: max(.85rem, env(safe-area-inset-top));
  left: max(.85rem, env(safe-area-inset-left));
  right: max(.85rem, env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar-name, .sound {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding: 0 1.05rem;
  border: 0;
  border-radius: 99px;
  color: var(--cream);
  background: rgb(12 22 46 / .34);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
  text-decoration: none;
  cursor: pointer;
  transition: background .6s var(--ease), opacity .9s var(--ease), translate .9s var(--ease);
}
.bar-name:hover, .sound:hover { background: rgb(12 22 46 / .5); }
.bar-name { font: 400 1.1rem/1 var(--display); padding-bottom: .1em; }
.js .bar-name { opacity: 0; translate: 0 -6px; visibility: hidden; transition: opacity .9s var(--ease), translate .9s var(--ease), visibility 0s .9s; }
.js .past-hero .bar-name { opacity: 1; translate: 0; visibility: visible; transition-delay: 0s; }
.sound { font: 500 .875rem/1 var(--body); letter-spacing: .02em; margin-left: auto; }
.sound-bars { display: inline-flex; align-items: center; gap: 2.5px; height: 14px; }
.sound-bars i {
  width: 2px; height: 4px; border-radius: 2px; background: currentColor;
  transition: height .8s var(--ease);
}
.sound[aria-pressed="true"] .sound-bars i { animation: bars 2.4s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -1.5s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(4) { animation-delay: -.9s; }
@keyframes bars { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ------------------------------------------------------------------ first light */

.hero {
  --turn: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: linear-gradient(var(--first-top), var(--first) 38%, #e9ada5 52%, var(--mist) 96%);
  overflow: clip;
}
.hero-words {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(.9rem, 2vh, 1.4rem);
  padding: clamp(5.5rem, 15vh, 10rem) var(--gutter) 0;
  text-align: center;
}
.hero-mark { width: min(40rem, 82vw); font-size: 0; }
.wordmark { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 2px 14px rgb(60 30 60 / .22)); }
.wm-band { animation: sway var(--breath) ease-in-out infinite; }
.wm-band1 { animation-delay: -1.4s; }
.wm-band2 { animation-delay: -3.1s; }
.wm-band3 { animation-delay: -4.6s; }
@keyframes sway { 0%, 100% { transform: translateX(-16px); } 50% { transform: translateX(16px); } }
.wm-tide { animation: tide calc(var(--breath) * 3) linear infinite; }
@keyframes tide { to { transform: translateX(-230px); } }
.wm-halo { transform-box: fill-box; transform-origin: center; animation: glow var(--breath) ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: .75; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.08); } }

.hero-line {
  font: 400 clamp(1.3rem, 1rem + 1.5vw, 2rem)/1.25 var(--display);
  text-wrap: balance;
  text-shadow: 0 1px 18px rgb(60 30 60 / .3);
}
.hero-soon {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgb(60 30 60 / .45);
}

.film { position: relative; overflow: hidden; }
.film video { width: 100%; height: 100%; object-fit: cover; }

.hero-film {
  align-self: end;
  width: 100%;
  height: min(74svh, 62vw);
  min-height: 52svh;
  margin-top: -1rem;
  -webkit-mask-image: linear-gradient(transparent, #000 24%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 24%, #000 80%, transparent);
}
.hero-film video { object-position: 50% 30%; }

.hero-hint {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--deep);
  opacity: .7;
}

/* the hero arrives the way the game's title does: one part at a time, slowly */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark, .hero-line, .hero-soon, .hero-film, .hero-hint { animation: arrive 2.4s var(--ease) backwards; }
  .hero-film { animation-duration: 3.2s; }
  .hero-line { animation-delay: .7s; }
  .hero-soon { animation-delay: 1.2s; }
  .hero-hint { animation-delay: 2.2s; }
}
@keyframes arrive { from { opacity: 0; translate: 0 10px; } }

/* ------------------------------------------------------------------ morning */

.say {
  display: grid;
  justify-items: center;
  gap: clamp(2.5rem, 7vh, 4.5rem);
  padding-block: clamp(8rem, 24vh, 15rem);
  text-align: center;
}
.say-big {
  font: 400 clamp(1.9rem, 1.1rem + 3.4vw, 3.6rem)/1.16 var(--display);
  letter-spacing: -.01em;
  max-width: 21ch;
  text-wrap: balance;
}
.say-small {
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  line-height: 1.55;
  opacity: .8;
}

/* ------------------------------------------------------------------ day */

.play-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  max-width: var(--wide);
  margin-inline: auto;
}
.play-words { display: grid; gap: clamp(1.5rem, 3vh, 2.25rem); }

.gauge {
  width: min(100%, 23rem);
  padding: 1.1rem 1.1rem .9rem;
  border-radius: 1.6rem;
  background: rgb(255 255 255 / .34);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5);
}
.gauge svg { width: 100%; height: auto; border-radius: .9rem; overflow: hidden; }
.g-stones rect { fill: #6b5a48; }
.g-stones rect:nth-child(2) { fill: #74624e; }
.g-stones rect:nth-child(3) { fill: #7d6a55; }
.g-water { transform: translateY(131px); animation: water 12s var(--ease) infinite; }
.g-water rect { fill: rgb(48 126 138 / .62); }
.g-water path { fill: none; stroke: #fff; stroke-opacity: .8; stroke-width: 1.5; animation: drift 9s linear infinite; }
/* low, mid, high, mid: the water rests on each, then moves one level */
@keyframes water {
  0%, 17%   { transform: translateY(131px); }
  25%, 42%  { transform: translateY(87px); }
  50%, 67%  { transform: translateY(59px); }
  75%, 92%  { transform: translateY(87px); }
  100%      { transform: translateY(131px); }
}
.beats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: .8rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}
.beats li { opacity: .35; animation: beat 12s linear infinite; }
.beats li:nth-child(2) { animation-delay: 3s; }
.beats li:nth-child(3) { animation-delay: 6s; }
.beats li:nth-child(4) { animation-delay: 9s; }
@keyframes beat { 0%, 20% { opacity: 1; } 27%, 100% { opacity: .35; } }

.notes { display: grid; gap: 1.5rem; max-width: 34rem; }
.notes dt { font: 400 1.3rem/1.25 var(--display); }
.notes dd { margin-top: .3rem; opacity: .82; text-wrap: pretty; }

.phone { display: grid; justify-items: center; gap: 1.25rem; }
.phone-glass {
  width: clamp(15rem, 27vw, 20.5rem);
  aspect-ratio: 780 / 1688;
  border-radius: clamp(2.2rem, 4vw, 3rem);
  border: clamp(7px, .8vw, 10px) solid #0c1424;
  background: #0c1424;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / .35),
    0 2.5rem 5rem -1.5rem rgb(20 60 70 / .55),
    0 .8rem 1.8rem -.6rem rgb(20 60 70 / .35);
}
.phone-glass video { border-radius: inherit; }
.phone figcaption { font-size: .875rem; opacity: .7; text-align: center; max-width: 18rem; text-wrap: balance; }

/* ------------------------------------------------------------------ golden */

.coasts { padding-inline: 0; }
.coasts-head {
  display: grid;
  gap: 1.5rem;
  max-width: calc(var(--wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.coasts-head h2 { max-width: 19ch; }
.rail-wrap { position: relative; margin-top: clamp(3rem, 7vh, 4.5rem); }
.rail {
  --card: clamp(14.5rem, 23vw, 19rem);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--card);
  gap: clamp(1rem, 2vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100vw - var(--wide)) / 2);
  padding: .5rem max(var(--gutter), (100vw - var(--wide)) / 2) 2rem;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.coast { scroll-snap-align: start; display: grid; align-content: start; }
.coast img {
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 1100;
  border-radius: 1.75rem;
  background: rgb(0 0 0 / .08);
  box-shadow: 0 1.6rem 3rem -1.4rem rgb(90 40 30 / .5);
  transition: scale 1.6s var(--ease);
}
.coast:hover img { scale: 1.015; }
.coast-n {
  margin-top: 1.3rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  opacity: .55;
  font-variant-numeric: tabular-nums;
}
.coast-n::before { content: "Coast "; text-transform: uppercase; }
.coast h3 { margin-top: .25rem; font-size: 1.5rem; }
.coast-rule { margin-top: .35rem; line-height: 1.4; }
.coast-air { margin-top: .5rem; font-size: .875rem; opacity: .62; }

.rail-keys {
  display: flex;
  gap: .6rem;
  justify-content: flex-end;
  max-width: calc(var(--wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.rail-keys button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .38);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5);
  color: inherit;
  cursor: pointer;
  transition: background .5s var(--ease), opacity .5s var(--ease);
}
.rail-keys button:hover { background: rgb(255 255 255 / .6); }
.rail-keys button:disabled { opacity: .3; cursor: default; }
.rail-keys svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .rail-keys { display: none; } }

/* ------------------------------------------------------------------ dusk */

.toys-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  max-width: var(--wide);
  margin-inline: auto;
}
.toys-words { display: grid; gap: clamp(1.5rem, 3vh, 2.25rem); }
.joe img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(255 243 214 / .14), 0 0 7rem rgb(255 196 107 / .2);
}
.bottle {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  margin: clamp(6rem, 16vh, 10rem) auto 0;
  max-width: 46rem;
  text-align: center;
}
.bottle-kicker, .bottle-how { font-size: .9375rem; opacity: .66; }
.bottle-line {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: .25rem .5rem;
  font: 400 clamp(1.8rem, 1.1rem + 3vw, 3.2rem)/1.15 var(--display);
  letter-spacing: -.01em;
  text-wrap: balance;
  min-height: 2.4em;
}
.bottle-line span { display: block; transition: opacity 1.1s var(--ease), translate 1.1s var(--ease), filter 1.1s var(--ease); }
.bottle-line.sinking span { opacity: 0; translate: 0 14px; filter: blur(4px); }

/* ------------------------------------------------------------------ twilight */

.calm-inner { display: grid; gap: clamp(3.5rem, 9vh, 6rem); max-width: var(--wide); margin-inline: auto; }
.counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}
.counts li { display: grid; gap: .5rem; align-content: start; }
.counts b {
  font: 400 clamp(3.6rem, 2rem + 7vw, 7.5rem)/.95 var(--display);
  font-variant-numeric: lining-nums;
  color: var(--lamp);
  text-shadow: 0 0 3.5rem rgb(255 196 107 / .35);
}
.counts span { max-width: 15rem; opacity: .8; text-wrap: balance; }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid rgb(255 243 214 / .16);
}
.pillars > div { display: grid; gap: .6rem; align-content: start; }
.pillars p { opacity: .8; text-wrap: pretty; }
.ease { display: grid; gap: 1.1rem; }
.ease ul { display: flex; flex-wrap: wrap; gap: .6rem; }
.ease li {
  padding: .5rem 1rem;
  border-radius: 99px;
  font-size: .9375rem;
  background: rgb(255 243 214 / .07);
  box-shadow: inset 0 0 0 1px rgb(255 243 214 / .16);
}

/* ------------------------------------------------------------------ night */

.last {
  padding: clamp(9rem, 22vh, 15rem) 0 0;
  background: linear-gradient(var(--twilight), color-mix(in oklab, var(--twilight) 40%, var(--moonlit)) 14rem, var(--moonlit) 34rem, var(--moonlit) 60%, var(--night));
  overflow: clip;
}
.last-words {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding-inline: var(--gutter);
  text-align: center;
}
.last-words h2 { max-width: 14ch; }
.lamp {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, var(--cream) 0 22%, var(--lamp) 50%);
  box-shadow: 0 0 1.6rem .3rem rgb(255 196 107 / .6), 0 0 7rem 2.5rem rgb(255 196 107 / .26);
  animation: lamp var(--breath) ease-in-out infinite;
}
@keyframes lamp { 0%, 100% { scale: .94; opacity: .82; } 50% { scale: 1.06; opacity: 1; } }
.last-film {
  width: 100%;
  height: min(78svh, 58vw);
  min-height: 54svh;
  margin-top: clamp(1rem, 4vh, 3rem);
  -webkit-mask-image: linear-gradient(transparent, #000 26%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 26%, #000 78%, transparent);
}

.foot {
  display: grid;
  justify-items: center;
  gap: .6rem;
  padding: 2rem var(--gutter) max(3.5rem, env(safe-area-inset-bottom));
  background: var(--night);
  color: var(--cream);
  text-align: center;
  font-size: .9375rem;
}
.foot p { opacity: .62; max-width: 34rem; text-wrap: balance; }
.foot .foot-name { font: 400 1.5rem/1 var(--display); opacity: 1; margin-bottom: .6rem; }
.foot .foot-small { font-size: .8125rem; opacity: .45; }

/* ------------------------------------------------------------------ rising into view */

@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] {
    opacity: 0;
    translate: 0 16px;
    transition: opacity 1.8s var(--ease), translate 1.8s var(--ease);
    transition-delay: calc(var(--i, 0) * 160ms);
  }
  .js [data-rise].risen { opacity: 1; translate: 0; }
}

/* ------------------------------------------------------------------ touching the water */

.ring {
  position: absolute;
  z-index: 20;
  width: 12.5rem;
  height: 12.5rem;
  margin: -6.25rem 0 0 -6.25rem;
  border-radius: 50%;
  pointer-events: none;
  border: 1.5px solid rgb(255 255 255 / .9);
  box-shadow: 0 0 0 1px rgb(20 40 60 / .07), inset 0 0 1.5rem rgb(255 255 255 / .12);
  scale: .04 .028;
  opacity: 0;
  animation: ring 3.2s cubic-bezier(.16, .6, .3, 1) forwards;
}
/* a ring on water is seen from above and to one side, so it opens as an ellipse */
@keyframes ring {
  0% { scale: .04 .028; opacity: 0; }
  12% { opacity: .85; }
  100% { scale: 1 .62; opacity: 0; }
}

/* ------------------------------------------------------------------ narrower */

@media (max-width: 56rem) {
  .play-grid, .toys-grid { grid-template-columns: minmax(0, 1fr); }
  .phone-glass { width: min(17rem, 68vw); }
  .joe { max-width: 22rem; margin-inline: auto; }
  .pillars, .counts { grid-template-columns: minmax(0, 1fr); }
  .counts li { grid-template-columns: 7.75rem 1fr; align-items: center; gap: 1rem; }
  .counts b { font-size: 3.6rem; }
  .play-words, .toys-words { justify-items: start; }
}
@media (max-width: 40rem), (orientation: portrait) {
  .hero-film { height: 70svh; margin-top: -9svh; }
  .hero-film video { object-position: 50% 62%; }
  .last-film { height: 70svh; }
  .rail { --card: min(72vw, 17rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .g-water { transform: translateY(87px); }
  .beats li { opacity: .7; }
}
