/* Home 01 hero: the paper logo builds itself in a cut-paper morning sky.
   Two sheets of paper, one above the other, in the flow of the page (Round 4, 4 Nov):
   - the SKY SHEET (.hero__sheet): the logo on the cut edge of a deeper sky band, the title, what a parent sees every
     evening (four paper things, the FREE rubber stamp, three device badges) and the two calls to action, a paper ticket
     and a kraft tag. Its scissor-cut bottom edge lies over the dawn paper below.
   - the DAWN STRIP (.hero__dawn): the four products as postage stamps, perforated and postmarked, standing on dawn paper
     with their own room, and under them the three hill layers (86% of the hills' box; the next section's torn kraft
     edge lies across the front hill), painted into <canvas> by 01-hero.js (so they never compete with the H1 for LCP;
     without scripting they fall back to CSS backgrounds).
   The sky sheet is as tall as its words, so its cut edge always falls between the calls to action and the stamps,
   whatever the fonts or the width do (Round 3 guessed the stamps' height and the edge drifted onto them). The dawn
   rays of Round 3 are gone: their cut paper ends poked out between the stamps like stray tabs (owner, 4 Nov).
   Motion: the logo assembles on twos (12 fps) in JS; reduced motion, no-JS and phones show the flat lockup. Text is
   never hidden and never sits on the art. */

.hero {
  --hero-sky-top: #C3D8FF;
  --hero-sky: var(--sky);
  --hero-dawn: #FFF0C9;
  --hero-pad: clamp(26px, 3.6vh, 40px);
  --hero-logo-w: clamp(286px, 38vw, 560px);
  --hero-land-w: max(100vw, 860px);
  --hero-land-h: calc(var(--hero-land-w) * 307 / 1440);
  /* the dawn strip: the sky's cut edge hangs --pk-edge-h into it, the stamps start under that, and the visible 71% of
     the land (the hills crest at its top) is the strip's bottom padding, so the stamps always stand clear of the hills */
  --hero-edge-h: clamp(22px, 2.6vw, 38px);
  --hero-sheet-pb: clamp(30px, 3.4vw, 46px);
  --hero-stamps-mt: calc(var(--hero-edge-h) + clamp(22px, 2vw, 32px));
  --hero-stamps-mb: clamp(30px, 3.2vw, 46px);
  --hero-pb: calc(var(--hero-land-h) * .86);
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: var(--hero-dawn);
  color: var(--ink);
  text-align: center;
}
/* Grain drawn as a border-image fill, tiled at its own size. Background and mask images (even on pseudo-elements) are
   LCP candidates sized up to their 256 px tile and would outrank the heading on tablets and phones; a border-image is
   not, so the H1 stays the largest paint. Measured: same texture, same contrast as the background version. */
.hero::before, .hero__sheet::before, .hero__band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  border-image: url(/assets/art/textures/grain-soft-tile.webp) 0 fill / 0 / 0 repeat; mix-blend-mode: multiply; }
.hero::before { z-index: 0; }

/* ---------- the sky sheet: a sheet of sky paper, as tall as its words, cut along its bottom */
.hero__sheet { position: relative; z-index: 2; padding: var(--hero-pad) 0 var(--hero-sheet-pb); background: var(--hero-sky);
  --pk-c: var(--hero-sky); --pk-tex: url(/assets/art/textures/grain-soft-tile.webp); --pk-tex-size: 256px 256px; --pk-blend: multiply; --pk-rim: #F4F8FF; }
.hero__sheet::before { z-index: 0; }
.hero__edge { --pk-edge-h: var(--hero-edge-h); }
.hero__sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__band { position: absolute; left: 0; right: 0; top: 0; background: var(--pk-c);
  --pk-tex: url(/assets/art/textures/grain-soft-tile.webp); --pk-tex-size: 256px 256px; --pk-blend: multiply; }
/* the top band ends behind the logo's lower half, so the logo sits on its cut edge */
.hero__band--top { --pk-c: var(--hero-sky-top); z-index: 2; height: calc(var(--hero-pad) + var(--hero-logo-w) * 227 / 775 * .82); }
.hero__band .pk-edge { --pk-edge-h: var(--hero-edge-h); }

.hero__cloud { position: absolute; z-index: 3; height: auto; will-change: transform; }
.hero__cloud--a { width: clamp(150px, 19vw, 297px); left: -2.5vw; top: calc(var(--hero-pad) + var(--hero-logo-w) * 227 / 775 * .82 - clamp(150px, 19vw, 297px) * .12); }
/* cloud b sits on the top band's cut edge (never on the title): its top is measured from the edge, in its own height */
.hero__cloud--b { width: clamp(118px, 15vw, 227px); right: 3.5vw; top: calc(var(--hero-pad) + var(--hero-logo-w) * 227 / 775 * .82 - clamp(118px, 15vw, 227px) * .34); }
.hero__cloud--c { width: clamp(84px, 10vw, 162px); right: -1vw; top: 82%; }

.hero__birds { position: absolute; z-index: 3; left: 17vw; top: 6%; width: clamp(110px, 11vw, 168px); aspect-ratio: 198 / 70; }
.hero__birds img { position: absolute; height: auto; }
.hero__birds img:nth-child(1) { left: 25.3%; top: 0; width: 39.4%; }
.hero__birds img:nth-child(2) { left: 68.7%; top: 48.6%; width: 31.3%; animation-delay: -.17s; }
.hero__birds img:nth-child(3) { left: 0; top: 68.6%; width: 25.8%; animation-delay: -.33s; }

/* ---------- the dawn strip: the stamps on dawn paper, the hills along its foot */
.hero__dawn { position: relative; z-index: 1; overflow: clip; padding: var(--hero-stamps-mt) 0 var(--hero-pb); }
/* the land: a box in the hills' own units (1440 x 307 at 1x), bottom-centred, never narrower than 860 px; its lowest
   14% is cropped by the strip (the torn kraft edge of the next section lies over the rest of the front hill), and its
   top is the top of the strip's bottom padding, under the stamps' room */
.hero__land { position: absolute; z-index: 0; left: 50%; bottom: calc(var(--hero-land-h) * -.14); width: var(--hero-land-w); aspect-ratio: 1440 / 307; translate: -50% 0; pointer-events: none; }
.hero__paint { position: absolute; display: block; max-width: none; height: auto; background: none no-repeat 0 0 / 100% 100%; }
.hero__hill { left: -.5556%; width: 101.111%; }
.hero__hill--back { top: 0; aspect-ratio: 1456 / 252; }
.hero__hill--mid { top: 23.453%; aspect-ratio: 1456 / 248; }
.hero__hill--front { top: 54.072%; aspect-ratio: 1456 / 154; }

/* ---------- copy */
.hero__inner { position: relative; z-index: 1; width: var(--wrap); margin-inline: auto; display: flex; flex-direction: column; align-items: center; }

.hero__brand { position: relative; width: var(--hero-logo-w); }
.hero-logo { position: relative; width: 100%; aspect-ratio: 775 / 227; background: none no-repeat 0 0 / 100% 100%; }
.hero-logo picture { position: absolute; inset: 0; }
.hero-logo__flat { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.hero-logo__kit { position: absolute; inset: 0; pointer-events: none; }
.hero-logo__kit > * { position: absolute; display: block; max-width: none; height: auto; transform-origin: 50% 50%; backface-visibility: hidden; }
.hero-logo__kit .hero-eye > img { position: absolute; display: block; max-width: none; height: auto; }

/* One text block (inline lines with a forced break), so the whole heading is measured as one paint. The heading's own
   size is line 2's, so its strut never adds height to the smaller line. */
.hero__title { margin-top: clamp(14px, 1.6vw, 22px); font: 800 clamp(23px, 2.8vw, 40px)/1.12 var(--font-display); color: var(--ink); letter-spacing: -.012em; }
.hero__title-1 { font-family: var(--font-brand); font-weight: 700; font-size: clamp(38px, 8.2vw, 86px); line-height: 1.1; color: var(--ink);
  letter-spacing: 0; text-shadow: 0 1px 0 rgba(90, 42, 0, .2), 0 .05em .09em rgba(90, 42, 0, .16); }
.hero__title-1::after { content: "\A"; white-space: pre; }

/* ---------- every evening, for tomorrow: the four paper things, the FREE stamp, the devices.
   One row on a clean grid: the stamp, the things and the badges as three columns with the same gap between them. */
.hero__tonight { margin-top: clamp(14px, 1.8vw, 24px); width: 100%; display: grid; justify-items: center; }
.hero__every { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.2; color: var(--ink); }
.hero__every img { width: 30px; height: 30px; rotate: -14deg; flex: none; }
.hero__row { margin-top: clamp(10px, 1.2vw, 16px); width: 100%; display: grid; grid-template-columns: auto auto auto; justify-content: center;
  align-items: center; column-gap: clamp(28px, 3.6vw, 56px); }
.hero__free { margin: 0; padding: 6px 4px; }
.hero__stamp { --pk-rubber-fs: clamp(38px, 3.3vw, 48px); --pk-rubber-turn: -9deg; --pk-rubber-at: 1450ms; }

.hero__things { display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 2vw, 30px); }
.hero-thing { --h: 100px; display: grid; justify-items: center; align-content: end; gap: 6px; }
.hero-thing__art { display: flex; align-items: flex-end; justify-content: center; height: var(--h); }
.hero-thing__art img { width: auto; height: 100%; max-width: none; }
.hero-thing--hw { --h: 104px; }
.hero-thing--bag { --h: 96px; }
.hero-thing--form { --h: 104px; }
.hero-thing--notice { --h: 100px; }
.hero-thing--bag .hero-thing__art img { height: 88%; margin-bottom: 6px; }
.hero-thing__label { position: relative; font: 800 15.5px/1.2 var(--font-body); color: var(--ink); text-align: center; max-width: 8.5em; text-wrap: balance; }
/* a short coloured stroke under each label, like a highlighter swipe */
.hero-thing__label::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -5px; height: 4px; border-radius: 4px; background: var(--k, var(--sun)); opacity: .9; }
.hero-thing--hw { --k: var(--sun); }
.hero-thing--bag { --k: #FF9A92; }
.hero-thing--form { --k: #7FCB8F; }
.hero-thing--notice { --k: #8FB2F2; }

/* the three device badges: a straight column of small paper tiles, the same left edge, the same gap */
.hero__devices { display: grid; justify-items: start; gap: 8px; }
.hdev { display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 42px; padding: 5px 12px 5px 6px; border-radius: 10px 12px 11px 9px / 9px 11px 12px 10px;
  background: var(--card) url(/assets/art/textures/paper-tile.webp) 0 0 / 512px 512px; color: var(--ink); font: 800 15.5px/1.15 var(--font-body);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(30, 60, 140, .22), 0 6px 10px -7px rgba(30, 60, 140, .45); }
.hdev__icon { width: 32px; height: 32px; flex: none; }
.hdev__name { white-space: nowrap; }
.hdev__state { margin-left: 2px; padding: 3px 8px 4px; border-radius: 6px; font: 900 15px/1 var(--font-body); background: var(--mint); color: #1F6B3A; }
.hdev--soon .hdev__state { background: var(--pink); color: #8A2440; }

/* ---------- the two calls to action: a paper ticket and a kraft tag (never generic pills) */
.hero__actions { margin-top: clamp(22px, 2.4vw, 32px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 26px; }
.tkt, .htag { position: relative; display: inline-block; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform 360ms var(--m-spring, cubic-bezier(.16, 1, .3, 1)); }
.tkt:focus-visible, .htag:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 12px; }

/* the ticket: blue paper, notched at both ends, a perforated stub with an arrow */
.tkt { --tkt-stub: 56px; color: #FFFFFF; rotate: -1.4deg;
  filter: drop-shadow(0 1px 1px rgba(11, 26, 85, .4)) drop-shadow(0 8px 9px rgba(11, 26, 85, .22)); }
.tkt__paper { position: relative; display: flex; align-items: stretch; min-height: 60px; border-radius: 8px;
  background: var(--blue) url(/assets/art/textures/blue-paper-tile.webp) 0 0 / 512px 512px;
  -webkit-mask: radial-gradient(circle 11px at 0 50%, #0000 calc(100% - .6px), #000 100%), radial-gradient(circle 11px at 100% 50%, #0000 calc(100% - .6px), #000 100%),
    radial-gradient(circle 7px at calc(100% - var(--tkt-stub)) 0, #0000 calc(100% - .6px), #000 100%), radial-gradient(circle 7px at calc(100% - var(--tkt-stub)) 100%, #0000 calc(100% - .6px), #000 100%);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 11px at 0 50%, #0000 calc(100% - .6px), #000 100%), radial-gradient(circle 11px at 100% 50%, #0000 calc(100% - .6px), #000 100%),
    radial-gradient(circle 7px at calc(100% - var(--tkt-stub)) 0, #0000 calc(100% - .6px), #000 100%), radial-gradient(circle 7px at calc(100% - var(--tkt-stub)) 100%, #0000 calc(100% - .6px), #000 100%);
  mask-composite: intersect; }
/* a thin printed frame inside the ticket */
.tkt__paper::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 16px; right: calc(var(--tkt-stub) + 8px); border: 1.5px solid rgba(255, 255, 255, .34); border-radius: 4px; pointer-events: none; }
.tkt__text { display: flex; align-items: center; padding: 0 24px 0 32px; font: 800 18px/1.1 var(--font-body); letter-spacing: .01em; white-space: nowrap; }
.tkt__stub { position: relative; flex: none; width: var(--tkt-stub); display: grid; place-items: center; }
.tkt__stub::before { content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; border-left: 2px dashed rgba(255, 255, 255, .6); }
.tkt__stub svg { width: 24px; height: 24px; transition: translate 360ms var(--m-spring, ease); }
@media (hover: hover) and (pointer: fine) {
  .tkt:hover { transform: translateY(-3px) rotate(.8deg); }
  .tkt:hover .tkt__stub svg { translate: 0 3px; }
  .htag:hover { transform: rotate(-3.5deg); }
}
.tkt:active { transform: translateY(1px) scale(.97); transition-duration: 100ms; }

/* the tag: kraft card with cut corners, a punched eyelet and its string */
.htag { color: var(--ink); transform-origin: 25px 50%; rotate: 1.2deg;
  filter: drop-shadow(0 1px 1px rgba(90, 42, 0, .36)) drop-shadow(0 8px 9px rgba(90, 42, 0, .2)); }
.htag__paper { display: flex; align-items: center; min-height: 60px; padding: 0 28px 0 52px;
  background: var(--kraft) url(/assets/art/textures/kraft-tile.webp) 0 0 / 512px 512px;
  clip-path: polygon(22px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 22px 100%, 0 calc(100% - 20px), 0 20px);
  -webkit-mask: radial-gradient(circle 6.5px at 25px 50%, #0000 calc(100% - .6px), #000 100%); mask: radial-gradient(circle 6.5px at 25px 50%, #0000 calc(100% - .6px), #000 100%); }
.htag__text { font: 800 18px/1.1 var(--font-body); white-space: nowrap; }
/* the metal eyelet round the hole */
.htag::before { content: ""; position: absolute; z-index: 1; left: 25px; top: 50%; width: 21px; height: 21px; translate: -50% -50%; border-radius: 50%;
  border: 3.5px solid #CDB894; box-shadow: inset 0 1px 1px rgba(90, 42, 0, .35), 0 1px 0 rgba(255, 255, 255, .5); pointer-events: none; }
.htag__string { position: absolute; z-index: 2; left: -8px; top: calc(50% - 21px); width: 60px; height: 40px; overflow: visible; pointer-events: none; }
.htag:active { transform: scale(.97); transition-duration: 100ms; }

/* ---------- the four products, as postage stamps: one row as wide as the hero's words (Round 4).
   Four equal columns, each stamp the full width of its column (up to 276 px), straight, the same height: one picture
   shape, the name on one line and room for three lines of words, so every bottom lines up. Each stamp has a rounded
   notch perforation (a mask), a thin inner frame in its own colour, paper grain, a small printed scene for a picture
   and a postmark inked over its top right corner (the same spot on all four). */
.hero__stamps { position: relative; z-index: 1; width: var(--wrap); margin: 0 auto var(--hero-stamps-mb); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center; align-items: stretch; gap: clamp(14px, 2.6vw, 36px); }
.pstamp { --ac: #2346C6; --pic: var(--sky); width: 100%; max-width: 276px; display: flex; }
.pstamp--sun { --ac: #D98A12; --pic: linear-gradient(#BCD6FF 0 56%, #FFEDB8 100%); }
.pstamp--moon { --ac: #2346C6; --pic: linear-gradient(#27367A, #18224D); }
.pstamp--kuru { --ac: #C97A00; --pic: linear-gradient(#FFE595, #FFCB3D); }
.pstamp--games { --ac: #2E8B57; --pic: linear-gradient(#DDF6E8, #B3E6C8); }
.pstamp__link { position: relative; display: flex; width: 100%; color: var(--ink); text-decoration: none;
  filter: drop-shadow(0 1px 1px rgba(90, 42, 0, .34)) drop-shadow(0 10px 12px rgba(90, 42, 0, .2));
  transition: transform 420ms var(--m-spring, cubic-bezier(.16, 1, .3, 1)); }
.pstamp__link:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 6px; }
@media (hover: hover) and (pointer: fine) { .pstamp__link:hover { transform: translateY(-4px); } }
.pstamp__link:active { transform: scale(.98); transition-duration: 100ms; }
.pstamp__paper { --r: 5px; position: relative; width: 100%; display: grid; grid-template-rows: auto auto 1fr; justify-items: center; align-content: start; padding: 18px 18px 20px; text-align: center;
  background: #FFFDF8 url(/assets/art/textures/paper-tile.webp) 0 0 / 512px 512px;
  -webkit-mask: radial-gradient(var(--r), #0000 96%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  mask: radial-gradient(var(--r), #0000 96%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r)); }
/* the thin inner frame, in the stamp's own colour, inside the perforation */
.pstamp__paper::before { content: ""; position: absolute; inset: 9px; border: 1.2px solid color-mix(in srgb, var(--ac) 38%, transparent); border-radius: 2px; pointer-events: none; }
.pstamp__pic { position: relative; width: 100%; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; border-radius: 2px;
  background: var(--pic); box-shadow: inset 0 0 0 1px rgba(30, 42, 90, .22); }
/* the printed scene behind the character, and a fine grain over the whole picture */
.pstamp__scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pstamp__pic::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-image: url(/assets/art/textures/grain-soft-tile.webp) 0 fill / 0 / 0 repeat; mix-blend-mode: multiply; opacity: .55; }
/* R5: the character's face peeks up from the stamp window's foot (clay stickers, same crop for all four) */
.pstamp__pic { place-items: end center; }
.pstamp__pic img { position: relative; z-index: 1; width: 70%; height: auto; translate: 0 2%; filter: drop-shadow(0 8px 8px rgba(40, 30, 10, .22)); }
.pstamp__val { position: absolute; z-index: 2; left: 8px; top: 8px; padding: 3px 7px 4px; border-radius: 3px; background: rgba(255, 253, 248, .94); color: var(--ink);
  font: 900 12px/1 var(--font-body); letter-spacing: .08em; white-space: nowrap; }
.pstamp__name { margin-top: 14px; font: 800 clamp(16px, 1.6vw, 22px)/1.1 var(--font-display); letter-spacing: -.005em; white-space: nowrap; }
.pstamp__line { margin-top: 5px; font: 700 clamp(15px, 1.2vw, 16.5px)/1.3 var(--font-body); color: var(--ink-2); text-wrap: balance; }
/* the postmark: inked over every stamp's top right corner in the same place, its three short waves running a little
   way off the stamp into the gap */
.pstamp__mark { position: absolute; z-index: 2; right: -18px; top: -16px; width: 88px; height: auto; color: rgba(30, 42, 90, .58); rotate: -9deg; pointer-events: none; overflow: visible; }
.pstamp__pm { font: 800 8px/1 var(--font-body); letter-spacing: .15em; fill: currentColor; }

/* ---------- tablets: the things on their own line, the stamp and the devices side by side under them */
@media (max-width: 1100px) {
  .hero__cloud--c { display: none; }
  .hero__row { grid-template-columns: auto auto; justify-content: center; align-items: center; row-gap: 14px; }
  .hero__things { grid-column: 1 / -1; grid-row: 1; }
  .hero__free { grid-row: 2; justify-self: end; }
  .hero__devices { grid-row: 2; }
}
@media (min-width: 700px) and (max-width: 1100px) {
  .pstamp__paper { padding: 14px 12px 16px; }
  .pstamp__paper::before { inset: 7px; }
  .pstamp__val { left: 6px; top: 6px; font-size: 10.5px; padding: 3px 5px; }
  .pstamp__mark { width: 70px; right: -12px; top: -12px; }
}
@media (min-width: 700px) and (max-width: 860px) {
  .pstamp__line { font-size: 15px; }
  .pstamp__name { font-size: 15px; margin-top: 10px; }
}
/* ---------- phones: the logo on its own; the four things in one row; actions full width; stamps two by two */
@media (max-width: 699px) {
  .hero { --hero-pad: 24px; --hero-logo-w: min(330px, 84vw); --hero-sheet-pb: 30px; --hero-stamps-mt: calc(var(--hero-edge-h) + 22px); --hero-stamps-mb: 30px; }
  .hero__band--top { height: calc(var(--hero-pad) + var(--hero-logo-w) * 227 / 775 + 20px); }
  .hero__title { margin-top: 26px; font-size: clamp(25px, 7vw, 30px); line-height: 1.14; }
  .hero__title-1 { font-size: clamp(50px, 15.4vw, 68px); line-height: 1.02; }
  .hero__every { font-size: 19px; }
  .hero__every img { width: 26px; height: 26px; }
  .hero__things { gap: 10px; width: 100%; justify-content: space-between; align-items: flex-end; }
  .hero-thing { flex: 1 1 0; min-width: 0; }
  .hero-thing--hw { --h: 66px; }
  .hero-thing--bag { --h: 62px; }
  .hero-thing--form { --h: 66px; }
  .hero-thing--notice { --h: 64px; }
  .hero-thing__label { font-size: 15px; }
  /* the stamp on its own line, the three devices as a row of small paper tiles under it */
  .hero__row { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .hero__free { grid-row: 2; justify-self: center; }
  .hero__stamp { --pk-rubber-fs: 36px; }
  .hero__devices { grid-row: 3; justify-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hdev { width: auto; flex-direction: column; justify-content: center; gap: 4px; min-height: 0; padding: 9px 4px 10px; font-size: 15px; text-align: center; }
  .hdev__icon { width: 30px; height: 30px; }
  .hdev__state { margin: 0; }
  .hero__actions { width: 100%; max-width: 420px; margin-top: 22px; flex-direction: column; align-items: stretch; gap: 14px; }
  .tkt, .htag { rotate: 0deg; }
  .tkt__text { flex: 1; justify-content: center; padding-left: 26px; }
  .htag__paper { justify-content: center; }
  /* two by two, every stamp the full width of its column (a centred, shrink-to-fit item would be sized by its own
     words, so the four came out four different sizes: the owner's screenshot, 4 Nov) */
  .hero__stamps { width: min(100%, 420px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .pstamp { max-width: 190px; }
  .pstamp__paper { padding: 13px 11px 15px; }
  .pstamp__paper::before { inset: 6px; }
  .pstamp__waves { display: none; }
  .pstamp__mark { right: -10px; top: -12px; width: 60px; }
  .pstamp__val { left: 5px; top: 5px; font-size: 10px; padding: 3px 5px; }
  .pstamp__name { font-size: 16.5px; margin-top: 10px; }
  .pstamp__line { font-size: 15px; }
  .hero__cloud--a, .hero__cloud--c, .hero__birds { display: none; }
  .hero__cloud--b { top: calc(var(--hero-pad) + var(--hero-logo-w) * 227 / 775 - 8px); right: -46px; width: 128px; }
}
@media (max-width: 359.98px) {
  .hdev__name { white-space: normal; }
}

/* ---------- motion pre-states: only where the logo really builds (scripting, motion welcome, a wide screen) */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) and (min-width: 700px) {
  html:not(.hero-live) .hero-logo { animation: hero-logo-failsafe 1ms 3s both; }
}
/* the four things arrive one by one, the products are stuck on as stamps (01-hero.js adds the classes; a failsafe
   shows them if the script never runs) */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  html:not(.rm) .hero [data-thing]:not(.is-in), html:not(.rm) .hero [data-stamp]:not(.is-in) { opacity: 0; animation: hero-show-failsafe 1ms 3.4s both; }
  html:not(.rm) .hero [data-thing].is-in { animation: hero-thing-drop 720ms linear var(--at, 0ms) both; }
  html:not(.rm) .hero [data-thing].is-in .hero-thing__label { animation: hero-label-in 420ms steps(1, end) calc(var(--at, 0ms) + 330ms) both; }
  html:not(.rm) .hero [data-stamp].is-in { animation: hero-stamp-slap 680ms linear var(--at, 0ms) both; }
  html:not(.rm) .hero [data-stamp].is-in .pstamp__mark { animation: hero-postmark 420ms steps(1, end) calc(var(--at, 0ms) + 420ms) both; }
}
@keyframes hero-show-failsafe { to { opacity: 1; } }
/* dropped from the hand onto the paper (paper motion language): falls big, lands with a squash, settles on a spring */
@keyframes hero-thing-drop {
  0% { opacity: 0; transform: translateY(-38px) scale(1.2) rotate(-6deg); animation-timing-function: var(--pm-fall); }
  24% { opacity: 1; }
  44% { opacity: 1; transform: translateY(0) scale(1.06, .93) rotate(.8deg); animation-timing-function: var(--pm-spring); }
  100% { opacity: 1; transform: none; }
}
@keyframes hero-label-in { 0% { opacity: 0; transform: translateY(5px); } 40% { opacity: 1; transform: translateY(1px); } 80%, 100% { opacity: 1; transform: none; } }
/* a stamp slapped on: big and turned, then flat with a squash, settling on a spring */
@keyframes hero-stamp-slap {
  0% { opacity: 0; rotate: -16deg; }
  35% { opacity: 1; rotate: 7deg; }
  60% { rotate: -4deg; }
  82% { rotate: 1.6deg; }
  100% { rotate: 0deg; }
}
@keyframes hero-postmark { 0% { opacity: 0; transform: scale(1.4); } 25% { opacity: 1; transform: scale(.94); } 50%, 100% { opacity: 1; transform: none; } }

@media (scripting: enabled) {
  .hero__paint { opacity: 0; transition: opacity 450ms var(--m-settle, ease-out); }
  .hero__paint.is-painted { opacity: 1; }
  /* the hero script never ran: show the art as backgrounds after 3 s (late on purpose: never an LCP candidate) */
  html:not(.hero-live) .hero__hill--back { animation: hero-back-failsafe 1ms 3s both; }
  html:not(.hero-live) .hero__hill--mid { animation: hero-mid-failsafe 1ms 3s both; }
  html:not(.hero-live) .hero__hill--front { animation: hero-front-failsafe 1ms 3s both; }
}
@keyframes hero-logo-failsafe { to { background-image: image-set(url(/assets/art/hero/lockup.webp) 1x, url(/assets/art/hero/lockup@2x.webp) 2x); } }
@keyframes hero-back-failsafe { to { opacity: 1; background-image: url(/assets/art/scene/hills--back.webp); } }
@keyframes hero-mid-failsafe { to { opacity: 1; background-image: url(/assets/art/scene/hills--mid.webp); } }
@keyframes hero-front-failsafe { to { opacity: 1; background-image: url(/assets/art/scene/hills--front.webp); } }

/* no scripting: the canvases show their art as CSS backgrounds */
@media (scripting: none) {
  .hero__hill--back { background-image: url(/assets/art/scene/hills--back.webp); }
  .hero__hill--mid { background-image: url(/assets/art/scene/hills--mid.webp); }
  .hero__hill--front { background-image: url(/assets/art/scene/hills--front.webp); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__paint { transition: none; }
  .tkt, .htag, .pstamp__link, .tkt__stub svg { transition: none; }
}
@media (forced-colors: active) {
  .tkt__paper, .htag__paper, .pstamp__paper { border: 2px solid CanvasText; -webkit-mask: none; mask: none; clip-path: none; }
  .tkt, .htag, .pstamp__link { filter: none; }
  .hdev { border: 1px solid CanvasText; }
}

/* R5: live 3D toys in the hero: the four things for tomorrow, and the character in each product stamp */
.hero-thing__art .hero-prop { width: clamp(64px, 6vw, 88px); margin-inline: auto; }
.pstamp__pic .toy3d { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; z-index: 1; }
.pstamp__pic .toy3d__poster { width: 100%; height: 100%; translate: none; object-fit: contain; object-position: 50% 100%; filter: none; }

/* R6 (9 Nov): plain paper buttons under the hero; the device chips are gone (only what exists is shown) */
.hero__row { grid-template-columns: auto auto; }
.hero__cta { min-height: 58px; padding: 0 30px; font-size: 18px; }
.hero__more { display: inline-flex; align-items: center; gap: 8px; font: 800 16px/1 var(--font-body); color: var(--ink); text-decoration: none; opacity: .85; }
.hero__more svg { width: 20px; height: 20px; transition: translate 300ms var(--ease-settle); }
.hero__more:hover { opacity: 1; }
@media (max-width: 639.98px) { .hero__row { grid-template-columns: minmax(0, 1fr); } .hero__cta { width: 100%; } .hero__more { width: 100%; justify-content: center; } }

/* R6 (9 Nov): five stamps, the felt family on them */
@media (min-width: 1100px) { .hero__stamps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); } .pstamp { max-width: 240px; } }
.pstamp--sings { --ac: #7A4AA8; --pic: linear-gradient(#EDE6FF, #D9CCFF); }
.pstamp__pic img { width: 62%; translate: 0 1%; }
/* R6 (9 Nov): on phones the fifth stamp (Kuru Sings) sits centred under the two-column grid, not orphaned left */
@media (max-width: 760px) { .hero__stamps > .pstamp:nth-child(5) { grid-column: 1 / -1; justify-self: center; max-width: calc(50% - 8px); } }

/* the launch offer pill: its own line under the buttons, whatever the row is (flex or grid) */
.hero__actions { flex-wrap: wrap; }
.hero__offer { flex-basis: 100%; grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 4px; text-decoration: none; }
.hero__offer-in { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px; background: #FFF1D6; color: var(--ink); font: 700 14px/1.25 var(--font-body); box-shadow: var(--sh-paper); }
.hero__offer b { padding: 5px 9px; border-radius: 999px; background: #E5483D; color: #fff; font: 800 11px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.hero__offer:hover .hero__offer-in { background: #FFE7B8; }
@media (max-width: 639.98px) { .hero__offer-in { width: 100%; justify-content: center; text-align: left; } }


/* ---------- 9 Nov, owner: "change the stamp, some other creativity": five felt pennants on a string (bunting). The markup
   is the stamp markup; the postmark and the perforated paper are hidden, the picture box becomes the flag. */
.hero__stamps { --rope: #A86C3C; position: relative; padding-top: 0; column-gap: clamp(10px, 1.6vw, 24px); align-items: start; }
.hero__stamps::before { content: ""; position: absolute; left: -1%; right: -1%; top: 0; height: 36px; border-bottom: 3px solid var(--rope); border-radius: 0 0 50% 50% / 0 0 100% 100%; box-shadow: 0 2px 0 rgba(255, 255, 255, .35); pointer-events: none; }
.hero__stamps .pstamp { max-width: 236px; margin-top: var(--sag, 0px); transform-origin: 50% -12px; }
.hero__stamps .pstamp:nth-child(1), .hero__stamps .pstamp:nth-child(5) { --sag: 20px; }
.hero__stamps .pstamp:nth-child(2), .hero__stamps .pstamp:nth-child(4) { --sag: 31px; }
.hero__stamps .pstamp:nth-child(3) { --sag: 34px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__stamps .pstamp { animation: pennant-sway 3.6s ease-in-out infinite alternate; }
  .hero__stamps .pstamp:nth-child(2) { animation-delay: -.7s; } .hero__stamps .pstamp:nth-child(3) { animation-delay: -1.4s; }
  .hero__stamps .pstamp:nth-child(4) { animation-delay: -2.1s; } .hero__stamps .pstamp:nth-child(5) { animation-delay: -2.8s; }
  .hero__stamps .pstamp:hover { animation-play-state: paused; }
}
@keyframes pennant-sway { from { rotate: -1.4deg; } to { rotate: 1.4deg; } }
.hero__stamps .pstamp__link { display: block; width: 100%; text-decoration: none; color: inherit; }
.hero__stamps .pstamp__paper { padding: 0; background: none; box-shadow: none; border: 0; -webkit-mask: none; mask: none; clip-path: none; display: grid; grid-template-rows: auto auto auto; justify-items: center; align-content: start; row-gap: 0; }
.hero__stamps .pstamp__paper::before { display: none; }
.hero__stamps .pstamp__mark { display: none; }
.hero__stamps .pstamp__pic { position: relative; width: 100%; aspect-ratio: 4 / 4.7; border-radius: 0; overflow: hidden; display: grid; place-items: end center;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); background: var(--pic); box-shadow: none; }
.hero__stamps .pstamp__pic::after { opacity: .5; }
.hero__stamps .pstamp__pic::before { content: ""; position: absolute; left: 50%; top: 0; width: 22px; height: 22px; translate: -50% -50%; border-radius: 50%; background: var(--ac); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 2px 2px rgba(0, 0, 0, .18); z-index: 4; }
.hero__stamps .pstamp__pic img, .hero__stamps .pstamp__pic .toy3d__poster { width: 72%; translate: 0 -6%; filter: drop-shadow(0 8px 8px rgba(40, 30, 10, .22)); }
.hero__stamps .pstamp__pic .toy3d { inset: 10% 0 14%; height: auto; }
.hero__stamps .pstamp__scene { opacity: .35; }
.hero__stamps .pstamp__val { position: absolute; left: 10px; top: 12px; z-index: 4; padding: 5px 9px; border-radius: 999px; background: var(--card); color: var(--ac); font: 800 11.5px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.hero__stamps .pstamp__name { margin-top: 12px; font: 800 clamp(16px, 1.3vw, 19px)/1.2 var(--font-display); color: var(--ink); }
.hero__stamps .pstamp__line { margin-top: 3px; font: 600 13.5px/1.35 var(--font-body); color: var(--ink-2); text-align: center; }
.hero__stamps .pstamp--moon .pstamp__val { color: #2346C6; }
@media (max-width: 1099.98px) { .hero__stamps { padding-top: 24px; } .hero__stamps .pstamp { --sag: 0px !important; } .hero__stamps::before { display: none; } }

/* 9 Nov, owner: the three tiny paper birds read as specks in the sky at every width; hidden until a felt flock is drawn */
.hero .hero__birds { display: none !important; }

.hero__more { white-space: nowrap; }

/* the string is drawn across first, then the pennants hang on it */
@media (prefers-reduced-motion: no-preference) {
  .hero__stamps::before { transform-origin: 50% 0; animation: hero-string 600ms cubic-bezier(.2, .8, .2, 1) 1100ms both; }
  .hero__stamps .pstamp__pic::before { animation: hero-pin 300ms cubic-bezier(.2, 1.4, .3, 1) calc(var(--at, 0ms) + 240ms) both; }
}
@keyframes hero-string { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes hero-pin { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }




/* ======================================================================================================================
   R6 first screen: the real diary (owner, 9 Nov night: "generate it, every alignment matters"). The book is one felt render
   (Flow, keyed: web/assets/art/hero/diary.webp, measured by tools/diary_key.py into diary.json). The two pages are placed
   on the paper from those measurements, so the live words, the ticks, the pencil and the stamp always sit on the paper.
   Sizes are container units of the diary (cqw), so the whole drawing scales as one. Motion: the book lands, the pencil
   writes the four lines, a tick pops after each, the stamp presses; then calm. Reduced motion: the written page.
   ====================================================================================================================== */
.hero__stage { position: relative; width: 100%; margin-top: clamp(14px, 2vw, 28px); display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(20px, 3.4vw, 56px); align-items: center; }
.hero__copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hero__copy .hero__title { margin: 0; text-align: left; }
.hero__copy .hero__title-1 { display: block; font-size: clamp(44px, 5.4vw, 80px); line-height: 1; }
.hero__copy .hero__title-1::after { content: none; }
.hero__copy .hero__title-2 { display: block; margin-top: 10px; font: 800 clamp(19px, 1.6vw, 24px)/1.3 var(--font-display); color: var(--ink); }
.hero__copy .hero__every { display: inline-flex; margin: 18px 0 0; font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); }
.hero__copy .hero__every img { width: 26px; height: 26px; }
.hero__lead { margin: 10px 0 0; max-width: 34rem; font: 600 clamp(15px, 1.15vw, 17.5px)/1.55 var(--font-body); color: var(--ink-2); }
.hero__copy .hero__actions { margin-top: 22px; justify-content: flex-start; gap: 12px 16px; }
.hero__copy .hero__cta { min-height: 50px; }
.hero__copy .hero__offer { margin-top: 12px; justify-content: flex-start; }
.hero__copy .hero__free { position: absolute; right: -28px; top: -50px; margin: 0; padding: 0; rotate: -9deg; transform: scale(.78); transform-origin: 100% 0; }

.hero__scene { position: relative; perspective: 1500px; }
.diary { --px: 0; --py: 0; position: relative; width: min(100%, 680px); margin-inline: auto; aspect-ratio: 792 / 719; container-type: inline-size;
  transform: rotateX(calc(var(--py) * -3deg)) rotateY(calc(var(--px) * 4deg)) rotate(-2deg); transition: transform 600ms cubic-bezier(.2, .8, .2, 1); }
.diary__img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; filter: drop-shadow(0 26px 30px rgba(60, 30, 0, .28)); }
.diary__page { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); }
.diary__date { position: absolute; left: 2.8cqw; top: 2.4cqw; margin: 0; font: 800 3.1cqw/1 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.diary__date::after { content: ""; position: absolute; left: .1cqw; bottom: -1.1cqw; width: 7.6cqw; height: .8cqw; border-radius: 1cqw; background: var(--sun); }
.diary__date--tmr { color: var(--blue); left: 5.6cqw; }
.diary__date--tmr::after { background: var(--blue); width: 11.5cqw; }
.diary__done, .diary__lines { list-style: none; margin: 0; padding: 0; position: absolute; left: 2.8cqw; right: 5.4cqw; top: 11.2cqw; }
.diary__lines { left: 5.6cqw; right: 2.6cqw; }
.diary__done li, .dy__row { position: relative; display: flex; align-items: center; gap: 1.2cqw; height: 5.4cqw; border-bottom: .22cqw solid #D6E3F4; font: 700 2.15cqw/1.2 var(--font-body); color: #2A3B8F; white-space: nowrap; overflow: hidden; }
.diary__done li { color: #6B7BA8; }
.diary__done li .dy__tick { margin: 0 .3cqw 0 0; }
.dy__row img { width: 4cqw; height: 4cqw; object-fit: contain; flex: none; filter: drop-shadow(0 .35cqw .45cqw rgba(60, 30, 0, .25)); }
.dy__text { display: inline-block; clip-path: inset(0 0 0 0); }
.dy__tick { position: relative; flex: none; width: 2.8cqw; height: 2.8cqw; margin-left: auto; border-radius: 50%; background: #1F7A3A; box-shadow: 0 .2cqw 0 rgba(0, 0, 0, .15); }
.dy__tick::after { content: ""; position: absolute; left: .95cqw; top: .45cqw; width: .65cqw; height: 1.3cqw; border: solid #fff; border-width: 0 .4cqw .4cqw 0; rotate: 45deg; }
.diary__by { position: absolute; left: 2.8cqw; bottom: 3.2cqw; margin: 0; font: 600 1.9cqw/1.2 var(--font-body); color: var(--ink-2); }
.diary__sticker { position: absolute; right: 6.4cqw; bottom: 2.4cqw; width: 9.5cqw; height: auto; rotate: 10deg; filter: drop-shadow(0 .5cqw .7cqw rgba(60, 30, 0, .28)); }
.diary__stamp { position: absolute; right: 2.4cqw; bottom: 3cqw; rotate: -8deg; transform: scale(.8); transform-origin: 100% 100%; }
.diary__pencil { position: absolute; left: 0; top: 0; width: 10.0cqw; height: auto; max-width: none; transform-origin: 50% 100%; pointer-events: none;
  filter: drop-shadow(0 .8cqw .8cqw rgba(60, 30, 0, .3)); transform: translate(19.00cqw, 38.84cqw) rotate(-34deg); }
@media (prefers-reduced-motion: no-preference) {
  .diary { animation: diary-land 900ms cubic-bezier(.2, .8, .2, 1) 150ms both; }
  .dy__text { animation: dy-write 560ms linear var(--at, 1400ms) both; }
  .dy__tick:not(.is-on) { animation: dy-tick 380ms cubic-bezier(.2, 1.4, .3, 1) calc(var(--at, 1400ms) + 600ms) both; }
  .diary__stamp { animation: dy-stamp 640ms cubic-bezier(.2, 1.4, .3, 1) 4100ms both; }
  .diary__pencil { animation: dy-pencil 2700ms linear 1300ms both; }
  .diary__sticker { animation: dy-sticker 520ms cubic-bezier(.2, 1.4, .3, 1) 900ms both; }
  .hero__facts li { animation: hero-row-in 420ms cubic-bezier(.2, .9, .3, 1.1) both; }
  .hero__facts li:nth-child(1) { animation-delay: 1500ms; } .hero__facts li:nth-child(2) { animation-delay: 1620ms; } .hero__facts li:nth-child(3) { animation-delay: 1740ms; } .hero__facts li:nth-child(4) { animation-delay: 1860ms; }
}
@keyframes diary-land { from { opacity: 0; transform: translateY(26px) rotate(-6deg) scale(.96); } }
@keyframes dy-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes dy-tick { from { transform: scale(0) rotate(-40deg); } 60% { transform: scale(1.25) rotate(6deg); } to { transform: none; } }
@keyframes dy-stamp { from { opacity: 0; transform: scale(2); } 60% { opacity: 1; transform: scale(.74); } to { transform: scale(.78); } }
@keyframes dy-sticker { from { opacity: 0; transform: scale(.3) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes dy-pencil {
  0% { opacity: 0; transform: translate(5.60cqw, 0.74cqw) rotate(-34deg); }
  3% { opacity: 1; }
  21% { transform: translate(31.00cqw, 0.74cqw) rotate(-34deg); }
  24% { transform: translate(5.60cqw, 6.14cqw) rotate(-34deg); }
  43% { transform: translate(31.00cqw, 6.14cqw) rotate(-34deg); }
  46% { transform: translate(5.60cqw, 11.54cqw) rotate(-34deg); }
  65% { transform: translate(31.00cqw, 11.54cqw) rotate(-34deg); }
  68% { transform: translate(5.60cqw, 16.94cqw) rotate(-34deg); }
  88% { transform: translate(31.00cqw, 16.94cqw) rotate(-34deg); }
  100% { opacity: 1; transform: translate(19.00cqw, 38.84cqw) rotate(-34deg); }
}
@keyframes hero-row-in { from { opacity: 0; transform: translateX(-10px); } }
.hero__facts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; }
.hero__facts li { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .55); color: var(--ink); font: 700 13px/1 var(--font-body); box-shadow: inset 0 0 0 1.5px rgba(30, 42, 90, .14); }
.hero__facts li:not(:last-child)::before { content: "\2713  "; color: #1F7A3A; }
.hero__facts li:last-child { background: none; box-shadow: none; padding: 0 0 0 6px; }
.hero__facts .hero__more { font-size: 14px; }
@media (max-width: 1099.98px) {
  .hero__stage { grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: center; }
  .hero__copy { display: contents; }
  .hero__stage .hero__title { order: 1; text-align: center; }
  .hero__stage .hero__scene { order: 2; width: 100%; max-width: 640px; margin-top: 14px; }
  .hero__stage .hero__every { order: 3; margin: 6px 0 0; }
  .hero__stage .hero__lead { order: 4; margin: 6px 0 0; text-align: center; }
  .hero__stage .hero__actions { order: 5; justify-content: center; margin-top: 14px; }
  .hero__stage .hero__offer { order: 6; justify-content: center; }
  .hero__stage .hero__free { order: 7; position: static; rotate: -6deg; transform: scale(.8); margin-top: 8px; }
  .hero__copy .hero__title-1 { font-size: clamp(40px, 9vw, 64px); }
}
@media (max-width: 639.98px) {
  .diary { transform: rotate(-1.5deg); }
  .hero__stage .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__stage .hero__cta { width: 100%; }
  .hero__stage .hero__offer-in { width: 100%; justify-content: center; }
}
