/* Mewamour's landing page, in the app's own look (SPEC.md → Brand: bold, made kinder 2026-11-25):
   a deep green field with a cat's paw prints across it (no grid, no rings), snow sheets, blossom pink
   for "go", ink for words; names of things in heavy expanded type, sentences in sentence case, the
   cat's voice in an italic serif. The system's own type (on Apple devices the app's exact faces; no
   web fonts: nothing goes to a font service). The hero is the app itself, small and live: every
   key, tab and sheet in the phone works, and the twin answers with its real clips. */
:root {
  color-scheme: light;
  --field: #14664a;
  --go: #ffa8c9;
  --ink: #1a1210;
  --snow: #fdfdff;
  --fog: #f0ede9;
  --leaf: #35c28c;
  --soft: #6b615c;
  --groove: #352e2d;
  --sans: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --pad: clamp(20px, 5vw, 72px);
  /* One left and right edge for every band of the page: the padding, or what centres 1280px. */
  --gutter: max(var(--pad), calc((100vw - 1280px) / 2));
  /* One rhythm for the bands below the hero: their top and bottom padding, and the room from a
     band's heading to what it shows. */
  --band: clamp(72px, 9vw, 140px);
  --lead: clamp(40px, 5.5vw, 80px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 18px/1.5 var(--sans);
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; line-height: 1.4; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--go); outline-offset: 3px; }

/* Words that name things or head a page: Black Expanded, as in the app. */
h1, h2, .mark, .foot-mark, .who, .tour-title {
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.01em;
}

/* ───────── The field ─────────
   The brand's green, with a cat's paw prints across it, tone on tone (the app's posters have the
   same: DesignSystem's PawTrail). Generated; the hero's own trail is in the page, so each print
   can land in turn as it opens. */
.field { color: var(--snow); background: var(--field) center / cover no-repeat; }
/* The hero's trail lies across both columns of its grid, from 400px in (clear of the list, whose
   words end at 358px) to the phone, which stands over its last prints; as tall as the room
   under the lede, and out through the bottom padding. */
.trail { grid-area: 1 / 1 / 2 / 3; align-self: end; width: calc(100% - 400px); height: 400px; margin: 0 0 calc(-1 * clamp(40px, 6vw, 80px)) 400px; fill: var(--snow); fill-opacity: 0.08; pointer-events: none; }
.pitch { grid-area: 1 / 1; }
.stage { grid-area: 1 / 2; }
/* (On a narrow laptop the cat's line reaches left of the phone: the trail stops above it.) */
@media (max-width: 1099px) { .trail { margin-bottom: 70px; } }

.hero { position: relative; padding: 0 var(--gutter) clamp(40px, 6vw, 80px); overflow: hidden; }

.bar, .hero-grid { position: relative; z-index: 1; }
.bar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
/* The logo is the wordmark, with the paw's pads (the heart and four toe beans, as on the app icon) in it.
   (Its focus ring takes the page's one radius for controls, 16px, as the “soon” label does.) */
.mark { display: inline-flex; align-items: center; border-radius: 16px; color: inherit; text-decoration: none; }
/* The wordmark: "mew" is the cat's word, "amour" is ours (in the pink, as the hero's last word),
   and its o is the paw with the heart pad: no letter of the name stands taller than the heart,
   so the four toes have the room above. */
.wm { display: inline-flex; align-items: baseline; white-space: nowrap; letter-spacing: -0.02em; }
.wm .am { display: inline-flex; align-items: baseline; color: var(--go); }
/* (The o is the paw's wordmark cut, #pads-o: its box is 820 units for the paw's 760, so 1.192em
   for 1.105; −0.214em lets the heart sit round-beside-stem from the m and the u, and 0.008em
   centres it between them.) */
.wm .o { flex: none; width: 1.192em; height: 1.07em; margin: 0 -0.214em; fill: currentColor; transform: translate(0.008em, 0.012em); transform-origin: 50% 75%; transition: transform 0.4s var(--spring); }
/* (A small turn: at more, a toe meets the m.) */
.mark:hover .wm .o { transform: translate(0.008em, 0.012em) scale(1.08) rotate(-6deg); }
/* (Small enough on the narrowest phone to leave the "soon" label its one line; tracked a hair
   open at this size, where the footer's tight setting would clog.) */
.mark .wm { font-size: clamp(20px, 6.2vw, 26px); letter-spacing: 0.01em; }
h1 em { font-style: normal; color: var(--go); }
.soon {
  padding: 8px 16px;
  border: 3px solid var(--snow);
  border-radius: 16px;
  background: var(--go);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  transform: rotate(2deg);
  /* (A label, not a button: a low shadow, the arrow cursor.) */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  cursor: default;
}

.hero-grid {
  --hero-gap: clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: var(--hero-gap);
  /* (A container, so the stage can know its column's width: see the cat's line.) */
  container-type: inline-size;
  align-items: center;
  padding-top: clamp(8px, 2vw, 28px);
}

/* (The M's stem pulled onto the page's edge by its own side bearing, as the footer's m is.) */
h1 { margin-left: -0.045em; font-size: clamp(38px, 6.7vw, 104px); line-height: 0.96; letter-spacing: -0.025em; }
/* Each line rises out of its own slot as the page opens. */
h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
h1 .line > span { display: block; white-space: nowrap; }

.lede { max-width: 31em; margin-top: clamp(18px, 2.2vw, 30px); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; text-wrap: pretty; }

/* What to try: a short list of buttons; each does it in the phone and ticks itself off. */
.tour { max-width: 560px; margin-top: clamp(24px, 3vw, 40px); }
.tour-title { font-size: 15px; letter-spacing: 0.01em; }
/* (The rings stand on the page's left edge; a row's hover plate overhangs it by its padding.) */
.tries { display: grid; gap: 2px; margin-top: 10px; margin-left: -10px; }
.tries button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 9px 14px 9px 10px;
  border-radius: 16px;
  text-align: left;
  font-size: 17px;
  line-height: 1.4;
  transition: background-color 0.2s;
  touch-action: manipulation;
}
.tries button:hover { background: rgba(253, 253, 255, 0.1); }
.tries b { font-weight: 800; }
/* (On a phone a row wraps: balanced, so no word is left alone on its last line.) */
.tries button span { text-wrap: balance; }
.tries i {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2.5px solid rgba(253, 253, 255, 0.7);
  border-radius: 50%;
  transition: background-color 0.25s, border-color 0.25s, transform 0.4s var(--spring);
}
/* The tick: drawn, with round ends. */
.tries i::after { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.6l3 3 6-7' fill='none' stroke='%231a1210' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transform: scale(0); transition: transform 0.3s var(--spring) 0.05s; }
.tries .done i { background: var(--go); border-color: var(--go); transform: scale(1.12); }
.tries .done i::after { transform: scale(1); }
.tries .done span { opacity: 0.8; }

/* ───────── The phone ─────────
   Everything inside is sized in cqw (a hundredth of the screen's width), so the little app keeps
   its proportions at any size. The frame's own bezel and corners are in the stage's cqw, so the
   phone has an iPhone's corners at 280px as at 390px (concentric: 16.6 − 3.2 = 13.4). */
.stage { position: relative; justify-self: center; width: min(100%, 390px, calc((100vh - 190px) * 0.5)); min-width: 280px; perspective: 1400px; container-type: inline-size; }
.phone {
  position: relative;
  padding: 3.2cqw;
  border-radius: 16.6cqw;
  background: var(--ink);
  box-shadow: 0 50px 90px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(253, 253, 255, 0.08) inset;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}
.screen {
  position: relative;
  aspect-ratio: 600 / 1202;
  border-radius: 13.6cqw;
  overflow: hidden;
  background: var(--snow);
  color: var(--ink);
  isolation: isolate;
  container-type: inline-size;
  line-height: 1.3;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
/* (On the screen's children: the screen's own cqw would be the page's.) */
.screen > * { font-size: 4cqw; }
.screen b { font-weight: 900; font-stretch: 125%; }
.screen small { display: block; font-size: 3cqw; color: var(--soft); }
/* Focus inside the phone: ink on its snow pages, sheets and pink keys; over the film an ink ring
   inside a snow one, to show on any picture; snow on the green card. */
.screen :focus-visible { outline-color: var(--ink); outline-offset: 2px; }
.view-home > :focus-visible, .keys :focus-visible { outline-color: var(--snow); box-shadow: 0 0 0 2px var(--ink); }
.cele :focus-visible { outline-color: var(--snow); }
.island { position: absolute; top: 3.2cqw; left: 35%; width: 30%; height: 8.4cqw; border-radius: 999px; background: #000; z-index: 9; pointer-events: none; }

/* (Tabs cross-fade in 0.1s, as iOS 26's do: a blink between peers, not a fade to watch.) */
.view { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.1s, visibility 0s 0.1s; }
.screen[data-tab="home"] .view-home,
.screen[data-tab="diary"] #view-diary,
.screen[data-tab="health"] #view-health,
.screen[data-tab="profile"] #view-profile { opacity: 1; visibility: visible; transition: opacity 0.1s; }

/* Home: the film. The camera leans in as the cat eats or dozes, as it does in the app. */
.view-home { background: #6b4a35 center / cover; }
.film { position: absolute; inset: 0; transform-origin: var(--lean-x, 50%) var(--lean-y, 50%); transform: scale(var(--lean, 1)); transition: transform 1.8s cubic-bezier(0.45, 0, 0.2, 1); }
/* A clip fades in over the one it follows, which stays whole under it and goes once it is covered:
   two half-clear clips would let the poster behind the film show through, and under the camera's
   lean that is a cat in another place. */
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.film video.on { opacity: 1; z-index: 1; transition: opacity 0.45s linear; }
.film video.out { opacity: 1; }
.cat-tap { position: absolute; inset: 24% 0 30% 0; }

/* Glass, over the film. */
.glass {
  background: rgba(253, 253, 255, 0.66);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  color: var(--ink);
  box-shadow: 0 1.6cqw 5cqw rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(253, 253, 255, 0.5) inset;
}
/* (The app's own sizes: rings 44pt, the name 22pt, the age 13pt, on a 402pt screen.) */
.pill { position: absolute; top: 15.5cqw; left: 4.5cqw; display: flex; align-items: center; gap: 3cqw; padding: 1.5cqw 4cqw 1.5cqw 1.5cqw; border-radius: 999px; text-align: left; transition: transform 0.25s var(--spring); }
/* A press goes down fast and shallow (0.95 in 0.1s, as the app's), and springs back on release. */
.pill:active { transform: scale(0.95); transition: transform 0.1s var(--ease-out); }
.pill-rings { width: 10.9cqw; height: 10.9cqw; }
.pill span { display: grid; line-height: 1.15; }
.pill b { font-size: 5.4cqw; }
.pill small { font-size: 3.2cqw; color: #3a302c; }
.track { stroke: var(--groove); }
.ring { stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.9s var(--ease-out); }
.ring-play { stroke: var(--go); }
.ring-meals { stroke: var(--leaf); }
.ring-care { stroke: var(--snow); }

.keys { position: absolute; left: 4.5cqw; right: 4.5cqw; bottom: 23cqw; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4cqw; transition: opacity 0.3s; }
.key {
  display: grid;
  justify-items: center;
  gap: 0.4cqw;
  padding: 2.6cqw 0 2.2cqw;
  border-radius: 7cqw;
  font-size: 2.75cqw;
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 0.25s var(--spring), background-color 0.2s;
}
.key svg { width: 6.4cqw; height: 6.4cqw; fill: currentColor; }
.key:hover { background: rgba(253, 253, 255, 0.86); }
.key:active { transform: scale(0.95); transition: transform 0.1s var(--ease-out), background-color 0.2s; }
/* (A tap flashes snow: pink on a key means a game is on.) */
.key.lit { background: rgba(253, 253, 255, 0.95); }
/* A game is on: the Play key itself is the timer, and stops it (as in the app). */
.key { position: relative; align-content: center; }
.key .timer { display: none; font-stretch: 50%; font-size: 6.4cqw; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.key .timer i { display: inline-block; width: 2.6cqw; height: 2.6cqw; margin-right: 1.4cqw; border-radius: 0.5cqw; background: currentColor; vertical-align: 0.5cqw; }
.key.live, .key.live:hover { background: var(--go); }
.key.live > svg, .key.live > span { display: none; }
.key.live > .timer { display: block; }
/* After the page has opened, Feed beckons three times, then is still. */
.key.beckon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--go); opacity: 0; animation: beckon 1.8s ease-out 1.6s 3; pointer-events: none; }
@keyframes beckon { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.5); } }

/* The stamp: what was just added, said for a moment, with a way back. */
.stamp { position: absolute; left: 4.5cqw; right: 4.5cqw; bottom: 41cqw; display: flex; align-items: center; gap: 2.6cqw; padding: 2cqw 2.4cqw 2cqw 2cqw; border-radius: 6cqw; opacity: 0; visibility: hidden; transform: translateY(4cqw) scale(0.96); transition: opacity 0.3s, transform 0.45s var(--spring), visibility 0s 0.45s; }
.stamp.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.45s var(--spring); }
.stamp > span { flex: 1; display: grid; line-height: 1.2; }
.stamp b { font-size: 4.1cqw; }
/* (The tick is drawn, as the list's is: a text tick comes in whatever face has one.) */
.tick { display: inline-block; width: 0.82em; height: 0.82em; margin-left: 0.32em; vertical-align: -0.06em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.stamp small { font-size: 3.1cqw; font-weight: 600; color: #3a302c; }
.stamp button { padding: 1.6cqw 3.4cqw; border-radius: 999px; background: rgba(26, 18, 16, 0.1); font-size: 3.2cqw; font-weight: 700; }
/* A chip: the kind of care in its ring's colour, with its glyph (ink on pink and fog, snow on
   green and ink), as in the app's lists. */
.chip { flex: none; display: grid; place-items: center; width: 9cqw; height: 9cqw; border-radius: 2.6cqw; background: var(--fog); color: var(--ink); }
.chip svg { width: 52%; height: 52%; fill: currentColor; }
.chip.meal { background: var(--field); color: var(--snow); }
.chip.play { background: var(--go); }
.chip.care { background: var(--ink); color: var(--snow); }

/* The celebration card, slapped on the terrace. */
.cele { position: absolute; left: 4.5cqw; right: 4.5cqw; top: 32cqw; opacity: 0; visibility: hidden; transform: rotate(-2deg) scale(1.5); transition: opacity 0.2s, transform 0.5s var(--spring), visibility 0s 0.5s; z-index: 3; }
.cele.on { opacity: 1; visibility: visible; transform: rotate(-2deg) scale(1); transition: opacity 0.2s, transform 0.5s var(--spring); }
/* (While a sheet is up the stamp steps back, as under the app's full-screen Weigh: a short
   sheet would leave its top showing over the scrim. It comes back if its moment isn't over.) */
.screen.sheeted .stamp { opacity: 0; }
/* (The card stands alone, as in the app: the keys and the stamp step back until "Yay!".) */
.cele.on ~ .stamp, .cele.on ~ .keys { opacity: 0; pointer-events: none; }
.cele-card { position: relative; padding: 5.5cqw 5cqw 5cqw; border: 0.9cqw solid var(--snow); border-radius: 6cqw; background: var(--field); color: var(--snow); box-shadow: 0 5cqw 10cqw rgba(0, 0, 0, 0.35); }
.cele-title { max-width: 62%; font-size: 6.6cqw; font-weight: 900; font-stretch: 125%; line-height: 1.05; }
.cele-voice { max-width: 88%; margin-top: 2.4cqw; font: italic 400 4.2cqw/1.35 var(--serif); }
.cele-yay { margin-top: 3.6cqw; padding: 2.4cqw 8cqw; border-radius: 999px; background: var(--go); color: var(--ink); font-size: 4.2cqw; font-weight: 900; font-stretch: 125%; }
.cele-badge { position: absolute; top: -7cqw; right: -3cqw; width: 25cqw; transform: rotate(12deg); }
.cele-num { font: 900 72px var(--sans); font-stretch: 50%; fill: var(--ink); }
.badge-text { font: 900 22px/1.4 var(--sans); font-stretch: 125%; fill: var(--ink); letter-spacing: 0.02em; }

/* The tab bar. */
.tabs { position: absolute; left: 4.5cqw; right: 4.5cqw; bottom: 4.5cqw; display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.2cqw; border-radius: 999px; z-index: 6; }
.tabs button { display: grid; justify-items: center; gap: 0.2cqw; padding: 1.8cqw 0 1.4cqw; border-radius: 999px; font-size: 2.5cqw; font-weight: 600; transition: background-color 0.25s, color 0.25s; }
.tabs svg { width: 6cqw; height: 6cqw; fill: currentColor; }
/* (The selected tab is marked by its bubble; its words stay ink, as on the phone.) */
.tabs .on { background: rgba(26, 18, 16, 0.1); }

/* The pages: a poster, then a list. */
.page-view { background: var(--snow); overflow: hidden; }
/* The list fades into the page above the bar, as the app's does: nothing cut by the glass's edge,
   nothing read under it. (An overlay, not a mask: a mask would also clear the page's own snow
   beside the bar's round ends. 1 pt = 0.249cqw; the bar's top is 19.8cqw from the foot. The
   Diary also stops on its last whole row, above this ramp: see fitRows.) */
.page-view::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 21.3cqw; background: linear-gradient(to top, var(--snow) 18.3cqw, rgba(253, 253, 255, 0) 21.3cqw); z-index: 5; pointer-events: none; }
.poster {
  position: relative;
  padding: 17cqw 4.5cqw 10cqw;
  background-color: var(--field);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 360 200%22 preserveAspectRatio=%22xMidYMid slice%22 fill=%22%23fdfdff%22 fill-opacity=%220.08%22%3E%3Csymbol id=%22paw%22 overflow=%22visible%22%3E%3Cellipse cx=%220%22 cy=%2216%22 rx=%2227%22 ry=%2221.5%22/%3E%3Cellipse cx=%22-33%22 cy=%22-10%22 rx=%2210.5%22 ry=%2214.5%22 transform=%22rotate%28-22 -33 -10%29%22/%3E%3Cellipse cx=%22-12.5%22 cy=%22-31%22 rx=%2210.5%22 ry=%2215%22 transform=%22rotate%28-8 -12.5 -31%29%22/%3E%3Cellipse cx=%2212.5%22 cy=%22-31%22 rx=%2210.5%22 ry=%2215%22 transform=%22rotate%288 12.5 -31%29%22/%3E%3Cellipse cx=%2233%22 cy=%22-10%22 rx=%2210.5%22 ry=%2214.5%22 transform=%22rotate%2822 33 -10%29%22/%3E%3C/symbol%3E%3Cuse href=%22%23paw%22 transform=%22translate%2827.1 174.8%29 rotate%2853.6%29 scale%280.46%29%22/%3E%3Cuse href=%22%23paw%22 transform=%22translate%2891.9 184.8%29 rotate%2871.6%29 scale%280.46%29%22/%3E%3Cuse href=%22%23paw%22 transform=%22translate%28121.1 126.2%29 rotate%2853.6%29 scale%280.46%29%22/%3E%3Cuse href=%22%23paw%22 transform=%22translate%28185.9 136.2%29 rotate%2871.6%29 scale%280.46%29%22/%3E%3Cuse href=%22%23paw%22 transform=%22translate%28215.1 77.5%29 rotate%2853.6%29 scale%280.46%29%22/%3E%3Cuse href=%22%23paw%22 transform=%22translate%28279.9 87.5%29 rotate%2871.6%29 scale%280.46%29%22/%3E%3Cuse href=%22%23paw%22 transform=%22translate%28309.1 28.8%29 rotate%2853.6%29 scale%280.46%29%22/%3E%3C/svg%3E");
  background-size: cover;
  color: var(--snow);
}
/* The tab's name across the width, as in the app: each word at the size that fills the margins
   (its first stem pulled onto the margin by its own side bearing), all three standing on one
   line in posters of one height, so nothing jumps from tab to tab. */
.poster > b { display: flex; align-items: flex-end; height: 23.4cqw; margin-left: -0.045em; font-size: 26cqw; line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; }
/* (A smaller word's line sits a hair lower in its slot: lifted back onto Diary's.) */
#view-health .poster > b { padding-bottom: 0.3cqw; font-size: 20.3cqw; }
#view-profile .poster > b { padding-bottom: 0.45cqw; font-size: 19.5cqw; }
.tally { position: absolute; left: 4.5cqw; bottom: -5cqw; display: flex; align-items: baseline; gap: 2.4cqw; padding: 1.6cqw 3.4cqw; border: 0.8cqw solid var(--snow); border-radius: 3.6cqw; background: var(--go); color: var(--ink); font-size: 2.7cqw; font-weight: 900; font-stretch: 125%; text-transform: uppercase; transform: rotate(-2deg); box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.18); }
.tally em { font-style: normal; font-stretch: 50%; font-size: 6.4cqw; margin-right: 0.8cqw; }
.entries { margin-top: 8.5cqw; padding: 0 4.5cqw; }
/* (The rule runs from the label, not under the time and the chip.) */
.entries li { display: flex; align-items: center; gap: 3cqw; font-size: 3.9cqw; font-weight: 600; }
.entries .time { width: 17cqw; font-weight: 900; font-stretch: 50%; font-size: 6.4cqw; white-space: nowrap; }
.entries .time small { display: inline; font-size: 2.4cqw; font-weight: 800; font-stretch: 125%; margin-left: 0.8cqw; color: var(--soft); }
.entries .row { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 2cqw; min-height: 14.2cqw; border-bottom: 1px solid rgba(26, 18, 16, 0.1); }
.entries .val { color: var(--soft); white-space: nowrap; }
.entries .val em { font-style: normal; font-weight: 900; font-stretch: 50%; font-size: 5.6cqw; color: var(--ink); }
.entries .val small { display: inline; margin-left: 0.6cqw; font-size: 3.4cqw; font-weight: 500; }
/* (A new row lands as the app's do: quick, and with no overshoot.) */
.entries li.new { animation: arrive 0.35s var(--ease-out); }
/* The live diary ends on whole rows (landing.js, fitRows): the page can't scroll, so a row cut
   by the bar would stay cut. The last one shown drops its rule, as a list's last row does. */
.entries li[hidden], .page-view .head[hidden] { display: none; }
.entries li.last .row { border-bottom: 0; }
@keyframes arrive { from { opacity: 0; transform: translateY(-4cqw) scale(0.96); background: rgba(255, 168, 201, 0.5); } }
/* Yesterday, under today: a day's heading with its totals, then its rows. */
.head.day { display: flex; justify-content: space-between; align-items: baseline; margin-top: 7cqw; }
.head.day small { display: inline; font-weight: 500; font-stretch: 100%; text-transform: none; }
.entries.yday { margin-top: 0; }
.screen[data-cat="luna"] .yday { display: none; }
.empty { display: none; padding: 12cqw 4.5cqw 0; }
.empty b { display: block; font-size: 6.4cqw; line-height: 1.05; }
.empty i { display: block; margin-top: 2.4cqw; font: italic 400 4.4cqw/1.35 var(--serif); color: var(--soft); }
.empty.on { display: block; }

.head { margin: 6cqw 4.5cqw 0; padding-bottom: 1.4cqw; border-bottom: 0.7cqw solid var(--ink); font-size: 3.6cqw; font-weight: 900; font-stretch: 125%; text-transform: uppercase; }
.due { padding: 0 4.5cqw; }
.due li { display: flex; align-items: center; gap: 3cqw; padding: 2.4cqw 0; border-bottom: 1px solid rgba(26, 18, 16, 0.1); line-height: 1.2; }
.due li > span { display: grid; }
.due .when { width: 14cqw; }
.due .when small { font-size: 2.3cqw; font-weight: 800; text-transform: uppercase; }
.due .when b { font-stretch: 50%; font-size: 6.4cqw; white-space: nowrap; }
.due .when b small { display: inline; font-size: 2.4cqw; font-weight: 800; font-stretch: 125%; margin-left: 0.8cqw; color: var(--soft); }
.due b { font-stretch: 100%; font-weight: 600; font-size: 3.9cqw; }
/* Meal times: the same grid, no date; its times under the name, and the list's chevron at the end. */
.due .times { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* (The app's list chevron, measured at 3x: 7 x 11.3 pt, 2.3 pt in from the rule's end, #c4c4c7.) */
.chev { flex: none; width: 1.74cqw; height: 2.82cqw; margin: 0 0.6cqw 0 auto; color: #c4c4c7; }
.weight-card { margin: 5cqw 4.5cqw 0; padding: 4cqw 4.5cqw 3cqw; border-radius: 6cqw; background: var(--ink); color: var(--snow); }
.weight-card small { color: #c9c1bc; font-weight: 600; }
.weight-card p { font-size: 4cqw; font-weight: 700; }
.weight-card p b { font-stretch: 50%; font-size: 16cqw; line-height: 1; }
.weight-card svg { width: 100%; height: 8cqw; margin-top: 1cqw; }

.cats { display: flex; gap: 3cqw; margin: -5cqw 7cqw 0; position: relative; }
/* The cats are stickers, as in the app: a snow keyline, a short shadow, the age under the name,
   and the one on the terrace ticked. */
.cat-card { position: relative; flex: 1; padding: 2.4cqw 2.4cqw 3cqw; border: 0.75cqw solid var(--snow); border-radius: 6cqw; background: var(--fog); text-align: left; line-height: 1.2; box-shadow: 0 1.5cqw 2.5cqw rgba(0, 0, 0, 0.18); transition: transform 0.35s var(--spring), background-color 0.25s; }
.cat-card:nth-child(1) { transform: rotate(-2deg); }
.cat-card:nth-child(2) { transform: rotate(2deg); }
.cat-card:hover { transform: rotate(0deg) scale(1.03); }
.cat-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4.2cqw; margin-bottom: 2cqw; }
.cat-card b { font-size: 4.2cqw; }
.screen[data-cat="mia"] .cat-card[data-pick="mia"], .screen[data-cat="luna"] .cat-card[data-pick="luna"] { background: var(--go); }
.screen[data-cat="mia"] .cat-card[data-pick="mia"] small, .screen[data-cat="luna"] .cat-card[data-pick="luna"] small { color: #3a302c; }
.screen[data-cat="mia"] .cat-card[data-pick="mia"]::after, .screen[data-cat="luna"] .cat-card[data-pick="luna"]::after { content: ""; position: absolute; top: -2.4cqw; right: -2.4cqw; width: 7cqw; height: 7cqw; border: 0.5cqw solid var(--snow); border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.6l3 3 6-7' fill='none' stroke='%23ffa8c9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 52% no-repeat; }
.settings { padding: 0 4.5cqw; }
/* (Each row as the app's: its glyph's chip, then the words; the rule runs from the words.) */
.settings li { display: flex; align-items: stretch; gap: 3cqw; line-height: 1.25; }
.settings .chip { align-self: center; }
.settings .row { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 3cqw; min-height: 14.2cqw; padding: 2.2cqw 0; border-bottom: 1px solid rgba(26, 18, 16, 0.1); }
.settings .row > span { display: grid; }
.settings b { font-stretch: 100%; font-weight: 600; font-size: 3.9cqw; }
.switch { flex: none; position: relative; width: 12cqw; height: 7.2cqw; border-radius: 999px; background: #d9d4cf; transition: background-color 0.25s; }
.switch::after { content: ""; position: absolute; top: 0.7cqw; left: 0.7cqw; width: 5.8cqw; height: 5.8cqw; border-radius: 50%; background: #fff; box-shadow: 0 0.4cqw 1.2cqw rgba(0, 0, 0, 0.25); transition: transform 0.3s var(--spring); }
.switch.on { background: var(--field); }
.switch.on::after { transform: translateX(4.8cqw); }

/* Sheets rise over whatever is on screen. */
.scrim { position: absolute; inset: 0; background: rgba(26, 18, 16, 0.3); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; z-index: 7; }
.scrim.on { opacity: 1; visibility: visible; transition: opacity 0.3s; }
/* (Glass, as the app's sheets and the mock's own keys: what is behind shows through, so the fog
   tiles keep an edge against it. Corners concentric with the screen's: 13.6 − 2.) */
.sheet { position: absolute; left: 2cqw; right: 2cqw; bottom: 2cqw; padding: 5cqw 5cqw 6cqw; border-radius: 11.6cqw; background: rgba(253, 253, 255, 0.72); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); transform: translateY(110%); visibility: hidden; transition: transform 0.32s cubic-bezier(0.4, 0, 1, 1), visibility 0s 0.32s; z-index: 8; }
/* (It rises in 0.5s and leaves faster, gathering speed: an exit is quicker than an entrance.) */
.sheet.on { transform: none; visibility: visible; transition: transform 0.5s var(--ease-out); }
.sheet-x { position: absolute; top: 3.4cqw; left: 4cqw; width: 8cqw; height: 8cqw; border-radius: 50%; background: rgba(26, 18, 16, 0.08); font-size: 5cqw; line-height: 1; }
/* A form's ✓, across from its ✕: the app's pink disc with an ink tick (GoToolbarButton, a 17-pt
   glyph in 44 pt), the same size as the ✕ beside it. */
.sheet-go { position: absolute; top: 3.4cqw; right: 4cqw; display: grid; place-items: center; width: 8cqw; height: 8cqw; border-radius: 50%; background: var(--go); color: var(--ink); transition: transform 0.25s var(--spring); }
.sheet-go:active { transform: scale(0.95); transition: transform 0.1s var(--ease-out); }
.sheet-go svg { width: 3.4cqw; height: 3.4cqw; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* The phone's small controls keep a finger's reach (44px) when the phone is drawn small. */
.sheet-x::before, .sheet-go::before, #stamp-undo::before, .switch::before { content: ""; position: absolute; inset: -11px; }
.tabs button, .scale button { position: relative; }
.tabs button::before, .scale button::before { content: ""; position: absolute; inset: -4px 0; }
#stamp-undo { position: relative; }
.sheet-title { text-align: center; font-size: 4cqw; font-weight: 700; padding: 0 9cqw; }
.sheet-title small { margin-top: 0.4cqw; font-size: 2.9cqw; font-weight: 500; }
.today-top { display: flex; align-items: center; gap: 5cqw; margin-top: 5cqw; }
.today-dial { width: 28cqw; }
.today-score small { font-size: 2.8cqw; font-weight: 900; font-stretch: 125%; text-transform: uppercase; }
.today-score b { display: block; font-stretch: 50%; font-size: 24cqw; line-height: 0.9; font-variant-numeric: tabular-nums; }
/* Round the dial: the cat's name, "today", "care score", as on the app's. */
.dial-text { font: 900 14.5px/1 var(--sans); font-stretch: 125%; fill: var(--ink); letter-spacing: 0.02em; }
.rows { display: grid; margin-top: 4cqw; }
.rows > div { display: flex; align-items: baseline; justify-content: space-between; padding: 2cqw 0; border-bottom: 1px solid rgba(26, 18, 16, 0.1); }
.rows dt { display: flex; align-items: center; gap: 2.4cqw; font-size: 3.5cqw; font-weight: 900; font-stretch: 125%; text-transform: uppercase; }
.rows dd { font-size: 3.2cqw; font-weight: 600; color: var(--soft); }
.rows dd b { color: var(--ink); font-stretch: 50%; font-size: 8cqw; margin-right: 0.6cqw; }
/* Each row's own ring, small, on its ink plate; it fills as the big one does. */
.mini { flex: none; width: 5cqw; height: 5cqw; }
.sheet-note { margin-top: 3.4cqw; font-size: 2.9cqw; line-height: 1.4; color: var(--soft); }
/* (Small words on glass a shade darker, to read over whatever shows through.) */
.sheet small, .sheet-note, .rows dd { color: #4a403c; }

/* Six equal tiles (a long word may not widen its column): the glyph above, the name and one line
   below, so the names stand on two shared lines. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4cqw; margin-top: 5cqw; }
.tile { display: grid; grid-template-rows: 1fr auto auto; min-height: 23cqw; padding: 3cqw 2.4cqw; border-radius: 5cqw; background: var(--fog); text-align: left; line-height: 1.2; transition: transform 0.25s var(--spring); }
.tile:active { transform: scale(0.95); transition: transform 0.1s var(--ease-out); }
.tile svg { width: 6.2cqw; height: 6.2cqw; fill: currentColor; }
/* (One size for all six, the one at which the longest, "Medication", fits its tile.) */
.tile b { font-size: 2.7cqw; letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; }
.tile small { font-size: 2.5cqw; white-space: nowrap; }
.t-meal { background: var(--field); color: var(--snow); }
.t-meal small, .t-care small { color: inherit; opacity: 0.85; }
.t-play { background: var(--go); }
.t-play small { color: #3a302c; }
.t-care { background: var(--ink); color: var(--snow); }

.scale { display: flex; align-items: center; justify-content: space-between; margin-top: 6cqw; }
.scale p { font-size: 5cqw; font-weight: 700; }
.scale p b { font-stretch: 50%; font-size: 23cqw; line-height: 1; font-variant-numeric: tabular-nums; }
.scale button { width: 13cqw; height: 13cqw; border-radius: 50%; background: var(--fog); font-size: 8cqw; line-height: 1; font-weight: 600; transition: transform 0.2s var(--spring); }
.scale button:active { transform: scale(0.95); transition: transform 0.1s var(--ease-out); }

/* A new cat comes onto the terrace: the screen opens from the card that was tapped. */
.screen.swapping .view-home { animation: iris 0.9s var(--ease-out); }
@keyframes iris { from { clip-path: circle(0% at 50% 60%); } to { clip-path: circle(120% at 50% 60%); } }

/* The round badge, slapped on the phone's corner; it turns as the page scrolls. */
.badge { position: absolute; top: 33%; left: -27%; width: 35%; transform: rotate(calc(12deg + var(--turn, 0deg))); filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.3)); pointer-events: none; z-index: 2; transition: opacity 0.3s, scale 0.4s var(--ease-out), visibility 0s 0.4s; }
/* (It says "tap me": once tapped it has done its work, and would only cover the app.) */
.badge.done { opacity: 0; scale: 0.6; visibility: hidden; }

/* The cat, speaking. */
/* (Wider than the phone, so a line stays one line; two lines, if ever, are balanced. On a narrow
   laptop a size smaller, so the opening line keeps clear of the right margin under a small phone.) */
/* The cat's line, centred under the phone: up to 80px wider than it on each side, but never past
   the page's gutter, 8px inside it (the phone is centred in its column, and the column ends on the
   gutter: so the line may be the column's width less 16px). Longer, it balances onto two lines.
   (The column's width is taken in px on the stage, from the hero's own width, so it reaches the
   line inside the phone's container; where @property is not known it stays 10000px, the old
   80px each side.) */
@property --hero-col { syntax: "<length>"; inherits: true; initial-value: 10000px; }
.stage { --hero-col: max(300px, (100cqw - var(--hero-gap)) * 0.375); }
.voice { --voice-box: min(100% + 160px, var(--hero-col) - 16px); width: var(--voice-box); min-height: 1.4em; margin: 20px calc((100% - var(--voice-box)) / 2) 0; font: italic 400 clamp(17px, 1.6vw, 23px)/1.4 var(--serif); text-align: center; text-wrap: balance; transition: opacity 0.25s; }
/* (Quiet while its words change, and while a sheet is open: the cat lets you fill it in.) */
.voice.swap, .voice.hush { opacity: 0; }

.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ───────── The page below ───────── */
h2 { font-size: clamp(34px, 5vw, 76px); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; }
/* (Two sentences in a heading: each keeps to itself, and they break between, never inside.) */
h2 .s { display: inline-block; margin-right: 0.18em; }
/* (30em of this face is at most 75 characters a line; balanced, so no two-word last line.) */
.sub { max-width: 30em; text-wrap: balance; margin-top: 20px; font-size: clamp(18px, 1.4vw, 21px); color: var(--soft); }

.page { padding: var(--band) var(--gutter); }

.fan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 48px);
  max-width: 1040px;
  margin: var(--lead) auto 0;
  align-items: start;
}
/* The picture turns and drops; its caption stays level, under its own phone (a turned picture's
   corner hangs 11px lower, a dropped one takes its drop with it). */
.shot { --lift: 0px; --turn: 0deg; }
.shot img {
  width: 100%;
  height: auto;
  border: 9px solid var(--ink);
  border-radius: clamp(26px, 3.4vw, 46px);
  box-shadow: 0 30px 60px rgba(26, 18, 16, 0.2);
  transform: translateY(var(--lift)) rotate(var(--turn));
}
/* (Wider than its picture by the fan's gap, so each caption is one line from 1024px up; where it
   wraps, the two lines are even, never one word alone.) */
.shot figcaption { margin-inline: -24px; margin-top: calc(31px + var(--lift)); font-size: 16px; font-weight: 600; text-align: center; text-wrap: balance; }
.shot-mid figcaption { margin-top: calc(20px + var(--lift)); }
.shot-mid { --lift: clamp(24px, 4vw, 64px); }

/* Blossom: the reminders. */
.blossom { padding: var(--band) var(--gutter); background: var(--go); }
.blossom h2 { max-width: 15em; }
.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* (Each note as tall as its own words; a short shadow and rows far enough apart that 20px of
     clean pink is left between them.) */
  align-items: start;
  gap: 40px clamp(18px, 3vw, 40px);
  margin-top: var(--lead);
  list-style: none;
}
.notes li {
  padding: 18px 22px 20px;
  border-radius: 26px;
  background: var(--snow);
  box-shadow: 0 4px 12px rgba(26, 18, 16, 0.12);
}
.notes li:nth-child(odd) { transform: rotate(-1.2deg); }
.notes li:nth-child(even) { transform: rotate(1deg) translateY(14px); }
/* A notification's own top line: the app's icon, who it is from, when. */
.who { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; }
.who img { width: 22px; height: 22px; border-radius: 6px; }
.who time { margin-left: auto; font-weight: 600; font-stretch: 100%; text-transform: none; letter-spacing: 0; color: var(--soft); }
/* (A size at which the longest line stays one line in its card: in two columns down to 1001px,
   in one column down to 901px. On phones they wrap; the last two words are tied, so a wrapped
   note never ends on one word.) */
.notes q { display: block; margin-top: 8px; font: italic 400 clamp(20px, 1.95vw, 28px)/1.35 var(--serif); quotes: none; text-wrap: pretty; }

/* The plate: breeds and coats. */
.plate { padding: var(--band) 0; background: var(--ink); color: var(--snow); overflow: hidden; }
.plate-words { padding: 0 var(--gutter); }
.plate p { max-width: 30em; text-wrap: balance; margin-top: 20px; font-size: clamp(18px, 1.4vw, 21px); color: #c9c1bc; }
/* The coats, drawn as the app draws them (Looks/CoatSwatch.swift: the same stripes, bib, patches,
   points and light). One row of thirteen that starts on the page's edge, under the heading, and
   leaves by the right edge only, which is what says it scrolls; the visitor moves it by dragging;
   left alone, it is still and stays on the gutter. */
.coats { margin-top: var(--lead); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.coats::-webkit-scrollbar { display: none; }
.coats.held { cursor: grabbing; scroll-snap-type: none; }
.coat-run { display: flex; gap: clamp(16px, 2.4vw, 32px); width: max-content; margin: 0; padding: 0 var(--gutter); }
.coat {
  flex: none;
  width: clamp(92px, 11vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid var(--snow);
  overflow: hidden;
  background: var(--fog);
  scroll-snap-align: center;
  position: relative;
}
/* (A hairline inside the ring, as the app's: a white coat keeps its edge against the snow.) */
.coat::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(26, 18, 16, 0.16); }
.coat svg { width: 100%; height: 100%; }
/* (A container: its content box is the page's measure, without a classic scrollbar's width.) */
.foot { position: relative; padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(40px, 5vw, 72px); overflow: hidden; container-type: inline-size; }
/* The name from gutter to gutter at every width: its ink, m's stem to r's last pixel, is 6.33
   times its size (measured with the o's cut; re-measure it if the face or the o changes), and the
   m's side bearing is taken back so its stem stands on the margin. The paw's toes stand in the
   room above it. */
.foot-mark { position: relative; margin: 0.42em 0 0 -0.042em; font-size: calc(100cqw / 6.33); line-height: 0.86; letter-spacing: -0.02em; }
.foot-row { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-top: 24px; }
.foot-line { font-size: 18px; text-wrap: pretty; }
.foot-links { display: flex; gap: 28px; }
.foot-links a { display: inline-block; padding: 10px 0; color: inherit; font-size: 16px; font-weight: 600; text-decoration: none; text-underline-offset: 4px; }
.foot-links a:hover { text-decoration: underline; }
/* The prints walk off at the top right, above the name: none behind a letter or the line, and
   none standing on the o's toes (never taller than the room over the toes, not just the letters). */
.foot-trail { position: absolute; top: 0; right: 0; width: min(48vw, calc((clamp(56px, 8vw, 120px) + clamp(64px, 8vw, 116px)) * 1.9)); height: auto; fill: var(--snow); fill-opacity: 0.08; pointer-events: none; }

/* ───────── Motion ─────────
   One opening: the headline's lines rise, the phone lands, the badge is slapped on, the list
   comes in, Feed beckons three times. After that only what answers a tap or the scroll moves. */
@media (prefers-reduced-motion: no-preference) {
  .opening h1 .line > span { transform: translateY(105%); animation: rise 0.9s var(--ease-out) forwards; }
  .opening h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
  .opening .lede, .opening .tour { opacity: 0; animation: settle 0.8s var(--ease-out) 0.55s forwards; }
  .opening .tour { animation-delay: 0.75s; }
  .opening .phone { animation: land 1.1s var(--ease-out) 0.2s backwards; }
  .opening .badge { animation: slap 0.55s var(--spring) 1.15s backwards; }
  .opening .voice { animation: settle 0.6s var(--ease-out) 1.5s backwards; }
  .opening .soon { animation: slap 0.5s var(--spring) 0.9s backwards; }
  /* The cat walks in: each print lands in turn, on its way to the phone. */
  .opening .trail use { opacity: 0; animation: step 0.3s ease-out forwards; animation-delay: calc(0.25s + var(--i) * 0.11s); }
  @keyframes step { to { opacity: 1; } }

  @keyframes rise { to { transform: none; } }
  @keyframes settle { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes land {
    from { opacity: 0; transform: translateY(90px) rotate(5deg) scale(0.94); }
    to { opacity: 1; transform: none; }
  }
  @keyframes slap {
    from { opacity: 0; scale: 1.9; }
    to { opacity: 1; scale: 1; }
  }

  /* The three screens fan out as they come into view (where the browser can tie motion to
     scrolling; elsewhere they simply stand fanned). */
  @supports (animation-timeline: view()) {
    .shot-left img { animation: fan-left linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .shot-right img { animation: fan-right linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .shot-mid img { animation: fan-mid linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes fan-left { from { transform: translate(70%, 90px) rotate(0deg); } to { transform: translate(0, 0) rotate(-4deg); } }
    @keyframes fan-right { from { transform: translate(-70%, 90px) rotate(0deg); } to { transform: translate(0, 0) rotate(4deg); } }
    @keyframes fan-mid { from { transform: translateY(140px) scale(0.94); } to { transform: translateY(var(--lift)) scale(1); } }
  }
}
@supports not (animation-timeline: view()) {
  .shot-left { --turn: -4deg; }
  .shot-right { --turn: 4deg; }
}
@media (prefers-reduced-motion: reduce) {
  .key.beckon::after, .screen.swapping .view-home, .entries li.new { animation: none; }
  /* (A sheet is there at once: its open state set its own slide, which beat the plain rule.) */
  .film, .phone, .view, .sheet, .sheet.on, .badge { transition: none; }
  /* (The springs that answer a tap: there and gone, without the bounce.) */
  .stamp, .stamp.on, .cele, .cele.on, .tries i, .tries i::after, .cat-card { transition-duration: 0.01s; }
  .shot-left { --turn: -4deg; }
  .shot-right { --turn: 4deg; }
}

/* ───────── Narrow ───────── */
/* (A narrow laptop: the phone fills its column, so the cat's line keeps 8px inside the phone and
   takes two even lines when it is longer; two lines' room is kept, so a longer line never moves
   the page. The notes take one column while two would wrap the longest one: under 983px.) */
@media (min-width: 901px) and (max-width: 1060px) {
  .voice { min-height: 2.9em; font-size: 16px; }
}
@media (max-width: 1000px) {
  .notes { grid-template-columns: 1fr; }
  .notes li:nth-child(even) { transform: rotate(1deg); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .trail { display: none; }
  /* (No prints in the hero at this width: under 18px words they would be texture over text. The
     field keeps them in the footer.) */
  .hero { background-image: none; }
  /* (The line fills the phone's width: "mon amour." is 6 times the size long.) */
  h1 { font-size: clamp(40px, 13.3vw, 76px); }
  .stage { order: 2; width: min(90vw, 400px); margin-top: 8px; }
  .tour { order: 3; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; padding-top: 16px; }
  .pitch { display: contents; }
  .pitch > h1 { order: 0; }
  .pitch > .lede { order: 1; }
  .stage { align-self: center; }
  /* (Wholly on screen, on the phone's edge.) */
  .badge { left: -4%; top: 36%; width: 28%; }
  .voice { width: auto; min-height: 2.9em; margin-inline: 0; font-size: 19px; }
  .fan {
    grid-template-columns: repeat(3, 68vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 28px;
    scrollbar-width: none;
  }
  .fan::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: center; --turn: 0deg !important; --lift: 0px !important; }
  .shot img { animation: none !important; transform: none; }
  /* (In the swiped row the caption keeps to its own picture: wider, it would meet its neighbour's
     and the screen's edge; balance gives it two even lines instead.) */
  .shot figcaption { margin-inline: 0; margin-top: 18px; }
  .soon { font-size: 12px; padding: 6px 12px; }
}
/* The narrowest phones: the sticker gives way, not the logo (one line, clear of the wordmark):
   never under 11px, it gives up padding and tracking instead as the room between them closes. */
@media (max-width: 400px) {
  /* (The badge's ink 12px or more off the screen's edge, still on the phone's.) */
  .badge { left: -1%; }
  .soon { font-size: 11px; padding: 5px 10px; border-width: 2px; white-space: nowrap; }
}
@media (max-width: 370px) { .soon { padding: 5px 7px; letter-spacing: -0.01em; } }
@media (max-width: 340px) { .soon { padding: 4px 5px; font-weight: 700; letter-spacing: -0.035em; } }
