/* Voletto home: the founder's approved concept of 16 and 17 November 2026 (c4), light ground, cards drifting round
   one line, the phone in three steps, the shared wall at night, three cards to Mum, and ten weeks of days.
   The home pages alone use this file; css/styles.css serves the 404 and the legal pages. The CSP allows no inline
   style, so every place and tilt the concept set inline is a class here. Sizes come from the window alone. */

@font-face { font-family: 'Dela Gothic One'; src: url(/fonts/dela-gothic-one.woff2) format('woff2'); font-display: swap; }
/* Until Dela arrives, a local face shaped to it, so its arrival moves nothing: Arial Black on a Mac or a PC, Arial Bold on
   an iPhone. Widths per language, found by holding Dela back 3 s at 390, 844 and 1440 px until no line wraps differently
   (one size for all three can't). Heights: Dela's hhea, ascent 1.16 and descent 0.288 of the em with no line gap, divided by
   size-adjust, which scales them too. */
@font-face { font-family: 'Dela Arial Black en'; src: local('Arial Black'), local('Arial-Black'); size-adjust: 105%; ascent-override: 110.48%; descent-override: 27.43%; line-gap-override: 0%; }
@font-face { font-family: 'Dela Arial Bold en'; src: local('Arial Bold'), local('Arial-BoldMT'); size-adjust: 122.65%; ascent-override: 94.58%; descent-override: 23.48%; line-gap-override: 0%; }
@font-face { font-family: 'Dela Arial Black ru'; src: local('Arial Black'), local('Arial-Black'); size-adjust: 104.5%; ascent-override: 111%; descent-override: 27.56%; line-gap-override: 0%; }
@font-face { font-family: 'Dela Arial Bold ru'; src: local('Arial Bold'), local('Arial-BoldMT'); size-adjust: 120%; ascent-override: 96.67%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: 'Dela Arial Black lv'; src: local('Arial Black'), local('Arial-Black'); size-adjust: 107.1%; ascent-override: 108.31%; descent-override: 26.89%; line-gap-override: 0%; }
@font-face { font-family: 'Dela Arial Bold lv'; src: local('Arial Bold'), local('Arial-BoldMT'); size-adjust: 124.5%; ascent-override: 93.17%; descent-override: 23.13%; line-gap-override: 0%; }
/* Plex is embedded unmodified, as its OFL reserved name requires: the release's TTF in woff2 (woff2_compress, every table
   kept but the empty DSIG); Medium alone is shipped. */
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; src: url(/fonts/IBMPlexMono-Medium.woff2) format('woff2'); font-display: swap; }

:root {
  color-scheme: light;
  --key: #0E0E0E; --paper: #FFFFFF; --soft: #B9B9BC;
  --pink: #FF74B8; --yellow: #FFD21F; --orange: #FF8B1A;
  --ground: #F6F3EE; --night: #0E0E0E; --tile: #1D1D1F;
  --display: 'Dela Gothic One', 'Dela Arial Black en', 'Dela Arial Bold en', system-ui, sans-serif;
  --sans: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 3.4vw, 48px);
  --gap: clamp(104px, 12vw, 184px);
  --bar: 76px;
}
html[lang="ru"] { --display: 'Dela Gothic One', 'Dela Arial Black ru', 'Dela Arial Bold ru', system-ui, sans-serif; }
html[lang="lv"] { --display: 'Dela Gothic One', 'Dela Arial Black lv', 'Dela Arial Bold lv', system-ui, sans-serif; }
/* The 36 inks (D-164; brand.md, "Colour"), no black. A card's edge and back print in its photo's ink, worked out once by
   the app's own method (design/inks.swift) and kept in data-ink; a stamp keeps its maker's. Key prints on every ink but
   the three dark ones, Navy, Plum and Cocoa, which print Paper; the bands and the bare card take their tones from it. */
[data-ink="pink"] { --ink: #FF74B8; } [data-ink="lime"] { --ink: #C9F02A; } [data-ink="navy"] { --ink: #1D2C6B; }
[data-ink="sky"] { --ink: #63CBFF; } [data-ink="orange"] { --ink: #FF8B1A; } [data-ink="plum"] { --ink: #8A1F7E; }
[data-ink="butter"] { --ink: #FFEFA3; } [data-ink="denim"] { --ink: #86A6E0; } [data-ink="green"] { --ink: #22C76F; }
[data-ink="terracotta"] { --ink: #E8774F; } [data-ink="sand"] { --ink: #F0D9AC; } [data-ink="lavender"] { --ink: #D2C2FF; }
[data-ink="mint"] { --ink: #6BEBCB; } [data-ink="violet"] { --ink: #A77BFF; } [data-ink="honey"] { --ink: #F2B830; }
[data-ink="raspberry"] { --ink: #FF5C86; } [data-ink="blush"] { --ink: #FFD2C0; } [data-ink="pistachio"] { --ink: #C6E89A; }
[data-ink="periwinkle"] { --ink: #A4B0FF; } [data-ink="aqua"] { --ink: #5EE2F2; } [data-ink="cocoa"] { --ink: #5A3426; }
[data-ink="yellow"] { --ink: #FFD21F; } [data-ink="coral"] { --ink: #FF7E6B; } [data-ink="teal"] { --ink: #2CC4BE; }
[data-ink="stone"] { --ink: #D6CEC2; } [data-ink="moss"] { --ink: #B0CC40; } [data-ink="fuchsia"] { --ink: #F266E0; }
[data-ink="red"] { --ink: #FF4B2E; } [data-ink="rose"] { --ink: #FFC6DE; } [data-ink="caramel"] { --ink: #DFA15F; }
[data-ink="leaf"] { --ink: #8CD23C; } [data-ink="sage"] { --ink: #B9D2B0; } [data-ink="orchid"] { --ink: #F5A8EC; }
[data-ink="apricot"] { --ink: #FFB27A; } [data-ink="blue"] { --ink: #5580FF; } [data-ink="ice"] { --ink: #D3EFFF; }
[data-ink] { --print: var(--key); --full: color-mix(in srgb, var(--ink) 90%, var(--key)); --empty: color-mix(in srgb, var(--ink) 55%, var(--paper)); --bare: color-mix(in srgb, var(--ink) 40%, var(--paper)); }
:is([data-ink="navy"], [data-ink="plum"], [data-ink="cocoa"]) { --print: var(--paper); --full: color-mix(in srgb, var(--ink) 93%, var(--paper)); --empty: color-mix(in srgb, var(--ink) 78%, var(--paper)); --bare: color-mix(in srgb, var(--ink) 82%, var(--paper)); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--key); font: 400 18px/1.5 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--key); outline-offset: 3px; border-radius: 2px; }
.wall :focus-visible, .life :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
/* Read by screen readers, not shown. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 10px 14px; background: var(--key); color: var(--paper); border-radius: 2px; font-weight: 600; }
.skip-link:focus { top: 8px; }
.c { text-align: center; }
.nw { white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border-radius: 999px; background: var(--key); color: var(--paper); font: 650 17px/1 var(--sans); text-decoration: none; }
.btn:hover { background: #2a2a2a; }
.btn.y { background: var(--yellow); color: var(--key); }
.btn.y:hover { background: #FFE15C; }

/* The card: the kit's 900 x 600 units, one unit (--u) a 900th of the card's width (--cw). */
.flip { --u: calc(var(--cw) / 900); position: relative; display: grid; justify-items: center; row-gap: 16px; width: var(--cw); text-align: left; }
.scene { position: relative; width: 100%; height: calc(600 * var(--u)); perspective: calc(3 * var(--cw)); transform: rotate(var(--tilt, -1.2deg)); }
/* Nothing on .turn may flatten the 3D scene in Safari: no overflow, filter, opacity, clip, mask or isolation. */
.turn { position: relative; height: 100%; transform-style: preserve-3d; }
/* Each face carries the card's shadow, so it turns with the card and the hidden face takes its shadow away with it:
   nothing stays flat behind a turning card. */
.face { position: absolute; inset: 0; overflow: hidden; border-radius: calc(6 * var(--u)); -webkit-backface-visibility: hidden; backface-visibility: hidden; background: var(--ink, var(--pink)); box-shadow: var(--card-shadow, none); }
.face img { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.face.front img { position: absolute; left: calc(30 * var(--u)); top: calc(30 * var(--u)); width: calc(100% - 60 * var(--u)); height: calc(100% - 60 * var(--u)); object-fit: cover; object-position: 50% 56%; }
.face.front { transform: rotateY(0deg); }
.face.back { color: var(--print); transform: rotateY(180deg); }
.flip-in:checked + .scene .turn { transform: rotateY(180deg); }
.flip-hit { position: absolute; inset: 0; z-index: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* The switch lies, unseen, over its button: a tap, a click and VoiceOver's focus all land on the button's place. */
.flip-in, .flip-btn { grid-area: 2 / 1; width: 200px; min-height: 48px; }
.flip-in { -webkit-appearance: none; appearance: none; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.flip-btn { display: grid; place-items: center; padding: 0 16px; border-radius: var(--btn-radius, 2px); background: var(--btn-bg, var(--yellow)); color: var(--btn-fg, var(--key)); font: 650 17px/1.2 var(--sans); text-align: center; }
.flip-in:hover ~ .flip-btn { filter: brightness(1.08); }
.flip-in:focus-visible ~ .flip-btn { outline: 3px solid var(--btn-ring, var(--yellow)); outline-offset: 3px; }
.b-head { position: absolute; left: calc(44 * var(--u)); top: calc(36 * var(--u)); font: 400 calc(40 * var(--u))/1 var(--display); letter-spacing: calc(.5 * var(--u)); }
/* Eight lines of 18 characters at most; the box always holds eight, so each count of the time shows one. */
.b-msg { position: absolute; left: calc(44 * var(--u)); top: calc(112 * var(--u)); width: calc(372 * var(--u)); min-height: calc(8 * 1.27em); font: 500 calc(34 * var(--u))/1.27 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: calc(-.7 * var(--u)); }
.b-voice { position: absolute; left: calc(44 * var(--u)); bottom: calc(26 * var(--u)); display: flex; align-items: center; gap: calc(15 * var(--u)); font: 400 calc(74 * var(--u))/1 var(--display); letter-spacing: calc(-1 * var(--u)); }
.b-voice svg { width: calc(60 * var(--u)); height: calc(48 * var(--u)); flex: none; }
/* The time's last digit, which the script counts 1 to 8 as the words come up (js/home.js); at rest it shows 8. */
.d { display: inline-block; }
.b-div { position: absolute; left: calc(442 * var(--u)); top: calc(40 * var(--u)); bottom: calc(40 * var(--u)); width: calc(3 * var(--u)); background: currentColor; }
.b-stamp { position: absolute; right: calc(32 * var(--u)); top: calc(32 * var(--u)); width: calc(190 * var(--u)); height: calc(230 * var(--u)); }
.stamp { filter: drop-shadow(0 calc(1 * var(--u)) calc(1.2 * var(--u)) rgba(0, 0, 0, .28)); }
.b-pm { position: absolute; left: calc(487 * var(--u)); top: calc(52 * var(--u)); width: calc(372 * var(--u)); height: calc(224.8 * var(--u)); }
:is([data-ink="navy"], [data-ink="plum"], [data-ink="cocoa"]) .pm { filter: brightness(0) invert(1); }   /* the postmark prints Paper on a dark ink */
.b-addr { position: absolute; left: calc(482 * var(--u)); right: calc(32 * var(--u)); bottom: calc(44 * var(--u)); }
.b-addr p, .b-addr::after { margin: 0; display: flex; align-items: flex-end; height: calc(66 * var(--u)); padding-bottom: calc(10 * var(--u)); border-bottom: calc(3 * var(--u)) solid; font: 500 calc(35 * var(--u))/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: calc(-1.2 * var(--u)); white-space: nowrap; }
.b-addr::after { content: ""; }

/* The soft window (D-153; design_app.md, "Front"): the photo set into the card's stock in a window with rounded
   corners, a shadow inside it and a fine line along its edge, all in card units (--u). An open card's edge is 30 and
   its window's corner 24; a small card's (the first screen, the wall) 46 and 36. The outer corner stays 6. */
.drift.f, .pc { --e: 46; --r: 36; }
.face.front, .app .ff { --e: 30; --r: 24; }
:is(.drift.f, .pc) > img:not(.tape), .face.front > img, .app .ff > * { border-radius: calc(var(--r) * var(--u)); }
:is(.drift.f, .pc, .face.front, .app .ff)::after { content: ""; position: absolute; inset: calc(var(--e) * var(--u)); border-radius: calc(var(--r) * var(--u)); box-shadow: inset 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(0,0,0,.35), inset 0 0 0 max(1px, calc(1.5 * var(--u))) rgba(0,0,0,.12); pointer-events: none; }

/* The voice's loudness as 16 bands behind the print (D-153; design_app.md, "Back"), drawn in each back's markup:
   tone on tone, the ink mixed with 10 % Key (a dark ink with 7 % Paper). On a back that plays (.roll) the card stays in
   full ink and only the bands fill as the voice plays (the founder, 17 November 2026; D-154): they arrive empty, a light
   tint of the ink, and their filled copy (.inked) is uncovered left to right. --roll runs 0 to 1 (js/home.js); at rest
   it is 1, full. */
.bands { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--full); }
.roll { --roll: 1; }
.roll > .bands { fill: var(--empty); }
.roll > .inked { position: absolute; inset: 0; clip-path: inset(0 calc((1 - var(--roll)) * 100%) 0 0); }
@supports not (color: color-mix(in srgb, red 50%, blue)) {   /* the same tones as a veil, where color-mix is missing */
  .bands { fill: var(--key); fill-opacity: .1; }
  .roll > .bands { fill: var(--paper); fill-opacity: .45; }
  :is([data-ink="navy"], [data-ink="plum"], [data-ink="cocoa"]) .bands { fill: var(--paper); fill-opacity: .07; }
  :is([data-ink="navy"], [data-ink="plum"], [data-ink="cocoa"]) .roll > .bands { fill-opacity: .22; }
}
@media (prefers-reduced-motion: no-preference) {
  .turn { transition: transform .7s cubic-bezier(.45, 0, .2, 1); }
}

/* The phone: Apple's iPhone bezel in Silver (the founder's choice, 17 November 2026), never cropped, over one screen
   (.screen: a screenshot or the wall), which fills the bezel's opening, 1206 x 2622 of its 1350 x 2760 px. The bezel
   draws the Dynamic Island; the screens keep the status bar and the home indicator. A new frame changes this block. */
.phone { position: relative; aspect-ratio: 1350 / 2760; }
/* The shadow follows the bezel's body: the box is wider by the side buttons, and its corners are rounder. */
.phone::before { content: ""; position: absolute; inset: .77% 1.86%; border-radius: 20% / 8.9%; box-shadow: 0 34px 60px rgba(14,14,14,.18), 0 6px 14px rgba(14,14,14,.12); }
.phone > .screen { position: absolute; left: 5.333%; top: 2.5%; width: 89.333%; height: 95%; overflow: hidden; border-radius: 12.4% / 5.7%; container-type: inline-size; isolation: isolate; background: var(--yellow); }
.phone > .bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* iOS round the wall, in units of the screen's width: the status bar level with the island, the home indicator. */
.screen .sb { position: absolute; top: 8.04cqw; left: 0; right: 0; z-index: 9; translate: 0 -50%; display: flex; justify-content: space-between; align-items: center; padding: 0 9% 0 13%; color: var(--key); font: 650 4.8cqw/1 var(--sans); letter-spacing: -.01em; }
.screen .sb svg { height: 3.8cqw; width: auto; display: block; }
.screen .sb .ic { display: flex; gap: 1.6cqw; align-items: center; }
.screen .home { position: absolute; left: 50%; bottom: 2cqw; width: 33%; height: 1.3cqw; transform: translateX(-50%); border-radius: 1cqw; background: var(--key); z-index: 9; }

/* The header: the sections, the wordmark, the languages and the address. */
header.bar { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--bar); padding: 0 var(--pad); }
.bar .sections { display: flex; gap: 28px; font: 550 16px/1 var(--sans); }
.bar .sections a { text-decoration: none; padding: 14px 0; color: #4a4a4c; }
.bar .sections a:hover { color: var(--key); }
.wordmark { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; }
.wordmark .wm { height: 24px; width: auto; display: block; }
.bar .end { justify-self: end; display: flex; align-items: center; gap: 14px; }
.lang-switch ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; font: 500 15px/1 var(--sans); }
.lang-switch a { display: grid; place-items: center; min-width: 40px; min-height: 44px; color: #4a4a4c; text-decoration: none; }
.lang-switch a:hover { color: var(--key); }
.lang-switch a[aria-current] { color: var(--key); font-weight: 700; }
.bar .btn { min-height: 44px; padding: 0 20px; font-size: 16px; }

/* No section may widen the page: the cards round the first screen, and anything moving, are cut at the window's sides.
   clip, unlike hidden, makes no scroll box (Chrome 90, Safari 16, Firefox 81). */
.hero, .parts, .wall, .story, .life { overflow-x: clip; }

/* 1. The first screen: one centred line, the cards round it, fronts and backs, some far off; with motion they ride
   three slow rings round it (D-154). */
.hero { position: relative; height: max(700px, calc(100svh - var(--bar))); margin-top: calc(-1 * var(--bar)); padding-top: var(--bar); }
.hero .wallbox { position: absolute; inset: 0; container-type: inline-size; }
.drift { --u: calc(var(--w) / 900); position: absolute; left: calc(var(--xn) * 1%); top: calc(var(--yn) * 1%); width: var(--w); opacity: var(--o, 1); transform: translate(-50%, -50%) rotate(var(--t, 0deg)); }
.drift.f { background: var(--ink); padding: calc(46 * var(--u)); border-radius: calc(6 * var(--u)); box-shadow: 0 calc(var(--w) * .04) calc(var(--w) * .08) rgba(14,14,14,.16), 0 1px 3px rgba(14,14,14,.14); }
.drift.f img { display: block; width: 100%; height: auto; aspect-ratio: 808 / 508; object-fit: cover; }
.drift.b { --cw: var(--w); height: calc(600 * var(--u)); border-radius: calc(6 * var(--u)); box-shadow: 0 calc(var(--w) * .04) calc(var(--w) * .08) rgba(14,14,14,.16), 0 1px 3px rgba(14,14,14,.14); text-align: left; }
.drift.b .face { transform: none; }
.drift.far { filter: saturate(.8); }
/* Each card's place in % of the first screen (--xn, --yn), width and tilt; with motion, its ring and its start on it
   in degrees (--ring, --a: D-154, js/home.js). Ring 1 is the inner one, 2 the near, large cards, 3 the far, faint ones. */
.s1 { --xn: 11; --yn: 27; --w: 14cqw; --t: -14deg; --ring: 2; --a: -50; }
.s2 { --xn: 87; --yn: 26; --w: 16cqw; --t: 9deg; --ring: 2; --a: 22; }
.s3 { --xn: 20; --yn: 76; --w: 14cqw; --t: 11deg; --ring: 2; --a: 94; }
.s4 { --xn: 80; --yn: 77; --w: 15.5cqw; --t: -8deg; --ring: 2; --a: 166; }
.s5 { --xn: 37; --yn: 13; --w: 9cqw; --t: 7deg; --ring: 1; --a: 20; }
.s6 { --xn: 66; --yn: 14; --w: 10cqw; --t: -10deg; --ring: 1; --a: 92; }
.s7 { --xn: 8; --yn: 56; --w: 12.5cqw; --t: 12deg; --ring: 2; --a: 238; }
.s8 { --xn: 95; --yn: 56; --w: 9.5cqw; --t: -16deg; --ring: 1; --a: 164; }
.s9 { --xn: 35; --yn: 89; --w: 9.5cqw; --t: -9deg; --ring: 1; --a: 236; }
.s10 { --xn: 64; --yn: 89; --w: 10cqw; --t: 9deg; --ring: 1; --a: 308; }
.s11 { --xn: 47; --yn: 95; --w: 6.5cqw; --t: -6deg; --o: .35; --ring: 3; --a: 65; }
.s12 { --xn: 3; --yn: 15; --w: 8cqw; --t: -18deg; --o: .4; --ring: 3; --a: 110; }
.s13 { --xn: 97; --yn: 88; --w: 8cqw; --t: 16deg; --o: .4; --ring: 3; --a: 200; }
.s14 { --xn: 2; --yn: 92; --w: 6.5cqw; --t: -12deg; --o: .35; --ring: 3; --a: 155; }
.s15 { --xn: 99; --yn: 42; --w: 6cqw; --t: 19deg; --o: .35; --ring: 3; --a: 245; }
.s16 { --xn: 4; --yn: 76; --w: 6.5cqw; --t: 14deg; --o: .35; --ring: 3; --a: 290; }
.s17 { --xn: 96; --yn: 73; --w: 6cqw; --t: -10deg; --o: .35; --ring: 3; --a: 335; }
.s18 { --xn: 22; --yn: 96; --w: 6cqw; --t: 8deg; --o: .35; --ring: 3; --a: 380; }
.hero-in { position: relative; z-index: 5; height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 var(--pad); }
h1 { margin: 0; font: 400 clamp(36px, 5.1vw, 78px)/1 var(--display); letter-spacing: -.03em; }
h1 span { display: block; white-space: nowrap; }
.hero .btn { margin-top: 44px; }
.kind { margin: 20px 0 0; display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1.2 var(--sans); }
.kind::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
/* Pauses every motion on the page and starts it again (WCAG 2.2.2); only while something moves (.m, js/home.js). */
.hold { display: none; }
.m .hold { position: absolute; right: var(--pad); bottom: 20px; z-index: 6; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--key); box-shadow: 0 1px 3px rgba(14,14,14,.16); cursor: pointer; }
.hold svg { width: 14px; height: 14px; fill: currentColor; }
.hold[aria-pressed="true"] .ps, .hold[aria-pressed="false"] .pl { display: none; }

h2 { margin: 0; font: 400 clamp(32px, 3.8vw, 58px)/1.02 var(--display); letter-spacing: -.025em; text-wrap: balance; }

/* 2. What one postcard holds: three screens, standing loose. */
.parts { padding: var(--gap) var(--pad) 0; }
.parts ol { list-style: none; margin: 64px auto 0; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 72px); }
.parts .phone { width: 74%; margin: 0 auto; }
.parts .steps > li:nth-child(2) .phone { transform: translateY(-28px); }
.parts h3 { margin: 40px 0 0; font: 400 clamp(22px, 1.9vw, 28px)/1.1 var(--display); letter-spacing: -.01em; }
.parts .txt p { margin: 10px auto 0; max-width: 20em; font: 450 18px/1.45 var(--sans); color: #2c2c2e; text-wrap: pretty; }
.num { display: block; margin-bottom: 12px; font: 400 18px/1 var(--display); letter-spacing: .02em; color: #6E6E73; }

/* The app's screens on the phones (docs/app_scenarios.md, 8 and 3), drawn in HTML so each page shows its own language.
   Places in % of the screen, sizes in its width (cqw), so a screen looks the same at every phone size. */
.app { color: var(--key); text-align: left; }
.app .pill { position: absolute; left: 3.5%; top: 7%; height: 11cqw; display: flex; align-items: center; gap: 1.6cqw; padding: 0 4.4cqw; border-radius: 99cqw; background: #FFE04F; box-shadow: inset 0 0 0 .3cqw rgba(255,255,255,.5), 0 .8cqw 2.2cqw rgba(110,80,0,.18); font: 500 4.3cqw/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.app .pill svg { width: 2.2cqw; height: auto; margin-left: -1cqw; display: block; }
.app :is(.ocard, .rcard) { --u: calc(90.6cqw / 900); position: absolute; left: 4.7%; top: 29.9%; width: 90.6cqw; aspect-ratio: 3 / 2; perspective: 170cqw; }
.app .rcard { --u: calc(95.6cqw / 900); left: 2.2%; top: 13.3%; width: 95.6cqw; }
.app .turn3 { position: relative; height: 100%; transform-style: preserve-3d; }
.app .turns .turn3 { transform: rotateY(180deg); }
.app :is(.ff, .fb) { position: absolute; inset: 0; border-radius: .6cqw; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 1.4cqw 3cqw rgba(90,60,0,.22), 0 .2cqw .5cqw rgba(90,60,0,.18); }
.app .ff { background: var(--ink); transform: rotateY(0deg); }
.app .ff > * { position: absolute; left: calc(30 * var(--u)); top: calc(30 * var(--u)); width: calc(100% - 60 * var(--u)); height: calc(100% - 60 * var(--u)); object-fit: cover; }
.app .ff .bare { background: var(--bare); }
/* The back: the kit's 900 units on the card's width; as the voice plays its bands fill (.roll). */
.app .fb { --cw: 90.6cqw; --u: calc(var(--cw) / 900); transform: rotateY(180deg); background: var(--ink); }
.app .peek { position: absolute; left: 97.4%; top: 29.9%; width: 6cqw; height: 60.4cqw; border-radius: .6cqw; background: var(--ink); }
.app .peek::after { content: ""; position: absolute; inset: 3.02cqw 0 3.02cqw 3.02cqw; border-radius: 2.42cqw 0 0 2.42cqw; background: url(/images/windy-beach-shirt-600.webp) left center / auto 100%; box-shadow: inset 0 .3cqw .8cqw rgba(0,0,0,.35), inset 0 0 0 max(1px, .15cqw) rgba(0,0,0,.12); }   /* the next card's edge: its window, 30 units in */
.app .acts { position: absolute; left: 3.5%; right: 3.5%; top: 60.4%; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.app .acts li { display: grid; justify-items: center; gap: 1.4cqw; font: 450 3.5cqw/1 var(--sans); }
.app .acts svg { width: 6.2cqw; height: 6.2cqw; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app .primary { position: absolute; left: 3.5%; right: 3.5%; top: 89.4%; height: 14.5cqw; display: grid; place-items: center; border-radius: 99cqw; background: var(--key); color: var(--paper); font: 600 4.3cqw/1 var(--sans); letter-spacing: -.01em; }
.app .count { position: absolute; left: 0; right: 0; top: 56.8%; text-align: center; font: 400 14.4cqw/1 var(--display); letter-spacing: -.03em; }
.app :is(.halo, .stop, .ring) { position: absolute; left: 50%; top: 74.5%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; }
.app .halo { width: 31cqw; background: #EEC31B; }
.app .stop { width: 23cqw; background: var(--key); }
.app .stop::after { content: ""; position: absolute; inset: 0; margin: auto; width: 6.4cqw; height: 6.4cqw; border-radius: 1.1cqw; background: var(--paper); }
.app .ring { display: none; width: 31cqw; border: .9cqw solid #E1B91C; }

/* 3. The shared wall, at night. */
.wall { margin-top: var(--gap); background: var(--night); color: var(--paper); }
.wall .pin { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(72px, 8vw, 128px) max(var(--pad), calc((100vw - 1180px) / 2)); }
.wall h2 { font-size: clamp(26px, 2.6vw, 42px); }
.wall h2 .sn { display: block; white-space: nowrap; }
.wall p { margin: 22px 0 0; max-width: 24em; font: 450 clamp(18px, 1.5vw, 21px)/1.45 var(--sans); color: #E5E5EA; }
.wall .phone { justify-self: center; width: min(350px, 80vw, 42vh); }
.wall .phone::before { content: none; }
.wall .screen { background: url(/images/wall-yellow-760.webp) center / cover; }
.wall .screen .wallbox { position: relative; height: 100%; }
.screen .hang { position: absolute; left: 5cqw; right: 5cqw; bottom: 8.5cqw; min-height: 16cqw; display: grid; place-items: center; border-radius: 999px; background: var(--key); color: var(--paper); font: 650 5cqw/1 var(--sans); z-index: 9; }
.pc { position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: translate(-50%, -50%) rotate(var(--t, 0deg));
  --u: calc(var(--w) / 900); background: var(--ink); padding: calc(46 * var(--u)); border-radius: calc(6 * var(--u));
  box-shadow: calc(var(--w) * .008) calc(var(--w) * .012) calc(var(--w) * .015) rgba(0,0,0,.30), calc(var(--w) * .03) calc(var(--w) * .05) calc(var(--w) * .09) rgba(0,0,0,.16); }
.pc > img:not(.tape) { display: block; width: 100%; height: auto; aspect-ratio: 808 / 508; object-fit: cover; }
.pc.portrait { --u: calc(var(--w) / 600); }   /* a portrait card is the card turned a quarter: its width is 600 units */
.pc.portrait > img:not(.tape) { aspect-ratio: 508 / 808; }
.tape { position: absolute; left: 50%; top: 0; width: 46%; height: auto; pointer-events: none; z-index: 3;
  transform: translate(-50%, -48%) rotate(var(--tt, 0deg)) scaleX(-1); opacity: .93; filter: drop-shadow(0 1px 1px rgba(0,0,0,.12)); }
/* Each card's spot on the wall, and where it flies in from (--fx, --fy) in its turn (--j). */
.w1 { --j: 0; --fx: -70cqw; --fy: -30cqw; --x: 26%; --y: 16%; --w: 36cqw; --t: -2.2deg; } .w1 .tape { --tt: -5deg; }
.w2 { --j: 1; --fx: 70cqw; --fy: -30cqw; --x: 75%; --y: 18%; --w: 35cqw; --t: 1.8deg; } .w2 .tape { --tt: 4deg; }
.w3 { --j: 2; --fx: 0cqw; --fy: -80cqw; --x: 50%; --y: 28%; --w: 30cqw; --t: -1deg; } .w3 .tape { --tt: 3deg; }
.w4 { --j: 3; --fx: -70cqw; --fy: 10cqw; --x: 23%; --y: 63%; --w: 24cqw; --t: 1.5deg; } .w4 .tape { --tt: 6deg; }
.w5 { --j: 4; --fx: 70cqw; --fy: 10cqw; --x: 75%; --y: 61%; --w: 34cqw; --t: -1.6deg; } .w5 .tape { --tt: -4deg; }
.w6 { --j: 5; --fx: -70cqw; --fy: 40cqw; --x: 29%; --y: 81%; --w: 33cqw; --t: .6deg; } .w6 .tape { --tt: 2deg; }
.w7 { --j: 6; --fx: 70cqw; --fy: 40cqw; --x: 73%; --y: 78%; --w: 22cqw; --t: -1.2deg; } .w7 .tape { --tt: -3deg; }
.plate { --x: 50%; --y: 45%; --w: 56cqw; --t: -.8deg; position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: 1344 / 826; transform: translate(-50%, -50%) rotate(var(--t, 0deg)); }
/* The plate and its shadow on a layer under the words: a filter over the handwriting drew it in pieces in Chrome at 1x. */
.plate::before { content: ""; position: absolute; inset: 0; background: url(/images/name-plate-640.webp) center / 100% 100% no-repeat;
  filter: drop-shadow(calc(var(--w) * .0055) calc(var(--w) * .009) calc(var(--w) * .011) rgba(0,0,0,.30)) drop-shadow(calc(var(--w) * .022) calc(var(--w) * .037) calc(var(--w) * .06) rgba(0,0,0,.18)); }
.plate .tape { --tt: 3deg; width: 24%; transform: translate(-50%, -30%) rotate(var(--tt, 0deg)) scaleX(-1); }
.plate .hand { position: absolute; left: 9%; top: 38%; width: 64%; height: 50%; display: flex; flex-direction: column; justify-content: center; margin: 0;
  font: 700 calc(var(--w) * .1)/1.12 Noteworthy, 'Bradley Hand', 'Segoe Print', cursive; color: rgba(14,14,14,.86); mix-blend-mode: multiply; }
.plate .hand span { display: block; white-space: nowrap; }
.plate .mark { position: absolute; right: 7%; top: 9%; width: 17%; }
.plate .mark svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }

/* 4. The birthday: three cards to Mum. */
.story { padding: var(--gap) var(--pad) 0; }
.story h2 { max-width: 17em; margin-inline: auto; }
.daytag { display: table; margin: 30px auto 0; padding: 8px 14px; border-radius: 999px; background: var(--key); color: var(--paper); font: 650 15px/1 var(--sans); }
.row { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 44px); }
.row li { --cw: calc((100vw - 2 * var(--pad) - 2 * clamp(20px, 2.6vw, 44px)) / 3); display: grid; justify-items: center; }
.row .flip { align-content: start; --btn-bg: var(--key); --btn-fg: var(--paper); --btn-radius: 999px; --btn-ring: var(--key); --card-shadow: 0 22px 44px rgba(14,14,14,.16), 0 3px 8px rgba(14,14,14,.12); }
.row li:nth-child(1) .flip { --tilt: -3deg; } .row li:nth-child(2) .flip { --tilt: 2deg; margin-top: 36px; } .row li:nth-child(3) .flip { --tilt: -1.4deg; margin-top: 8px; }
/* Up to 1099 px three cards side by side would be too small to read: one row that scrolls sideways, edge to edge, the
   next card showing on at least 15% of the width. Its padding keeps the tilt and the shadows inside the scroll box. */
@media (min-width: 720px) and (max-width: 1099px) {
  .row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; margin: 24px calc(-1 * var(--pad)) 0; padding: 32px var(--pad) 72px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); }
  .row li { --cw: min(66vw, 600px); scroll-snap-align: start; }
}

/* 5. The close, after 1 Second Everyday: a life in days, some of them postcards. */
.life { margin-top: var(--gap); background: var(--night); color: var(--paper); padding: clamp(88px, 10vw, 152px) var(--pad) 0; }
.days { position: relative; list-style: none; margin: 64px auto 0; padding: 0; max-width: 780px; display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(5px, .7vw, 10px); }
.day { position: relative; aspect-ratio: 1; border-radius: clamp(8px, 1.1vw, 16px); overflow: hidden; background: var(--tile); }
.day img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: grayscale(.5); }
.day b { position: absolute; left: 11%; top: 9%; font: 650 clamp(9px, 1vw, 15px)/1.05 var(--sans); color: rgba(255,255,255,.42); text-align: left; }
.day b i { display: block; font-style: normal; font-size: 1.55em; letter-spacing: -.02em; }
.day.lit { background: var(--ink); }
:is([data-ink="navy"], [data-ink="plum"], [data-ink="cocoa"]).day { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }   /* a dark ink on the night keeps a Paper hairline (design_app.md, "Dark mode") */
.day.lit img { inset: 6%; width: 88%; height: 88%; opacity: 1; filter: none; border-radius: 3px; }
.day.lit b { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.55); }
.life .cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 72px; }
.life .addr { display: inline-flex; align-items: center; min-height: 44px; font: 600 17px/1 var(--sans); color: var(--paper); text-decoration: none; }
.life .addr:hover { text-decoration: underline; }
.btn.y:focus-visible { outline-color: var(--yellow); }
@media (max-width: 899px) {
  .days { max-width: min(780px, max(300px, calc((100svh - 240px) * .7))); }   /* ten rows fit the window (D-155) */
}
@media (min-width: 900px) {
  .days { grid-template-columns: repeat(14, 1fr); max-width: 1180px; gap: 8px; }
  .day { border-radius: 10px; }
  .day b { font-size: clamp(8px, .78vw, 12px); }
}
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 24px; padding: clamp(72px, 9vw, 120px) var(--pad) 16px; background: var(--night); color: var(--soft); font: 500 14px/1.4 var(--sans); }
.foot ul { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .83em; margin: 0; padding: 0; list-style: none; clip-path: inset(-1em -1em -1em -3.5px); }
.foot li { position: relative; }
.foot li::before { content: "·"; position: absolute; top: 0; bottom: 0; right: 100%; width: .83em; display: flex; align-items: center; justify-content: center; }
.foot li:first-child::before { content: none; }
.foot a { display: inline-block; padding-block: 12px; color: var(--soft); }
.foot a:hover { color: var(--paper); }
.foot a:focus-visible { outline-offset: 0; }   /* inside the clip that hides a line's first dot */

@media (max-width: 719px) {
  :root { --gap: 88px; --bar: 64px; }
  header.bar { grid-template-columns: 1fr auto; }
  .bar .sections, .bar .btn { display: none; }
  .wordmark { justify-self: start; }
  .lang-switch ul { margin-right: -8px; }
  .hero { height: 760px; }
  html:not(.m) .drift:not(.mob) { display: none; }   /* without motion a phone keeps eight cards in their own places */
  .m :is(.s1, .s2, .s3, .s4, .s7) { --w: 36cqw; } .m :is(.s5, .s6, .s8, .s9, .s10) { --w: 25cqw; } .m :is(.s11, .s12, .s13, .s14, .s15, .s16, .s17, .s18) { --w: 19cqw; }
  .hero .wallbox { --hr: 1.9; }
  /* The eight cards a phone keeps, in their own places. */
  .s1 { --xn: 22; --yn: 19; --w: 34cqw; } .s2 { --xn: 80; --yn: 15; --w: 40cqw; } .s3 { --xn: 20; --yn: 88; --w: 32cqw; }
  .s4 { --xn: 80; --yn: 89; --w: 38cqw; } .s5 { --xn: 54; --yn: 31; --w: 24cqw; } .s7 { --xn: 85; --yn: 31; --w: 27cqw; }
  .s9 { --xn: 50; --yn: 96; --w: 24cqw; } .s12 { --xn: 4; --yn: 33; --w: 22cqw; }
  .hero-in { place-content: center; padding-top: 30px; }
  h1 { font-size: min(31px, 8vw); }   /* the Russian first line fits 320 px */
  .parts ol { grid-template-columns: 1fr; gap: 72px; }
  .parts .phone { width: 62%; }
  .parts .steps > li:nth-child(2) .phone { transform: none; }
  .wall .pin { grid-template-columns: 1fr; }
  .wall h2 { font-size: 30px; }
  .wall h2 .sn { white-space: normal; text-wrap: balance; }
  .wall .phone { width: 290px; }
  .row { grid-template-columns: 1fr; gap: 56px; }
  .row li { --cw: calc(100vw - 2 * var(--pad) - 16px); }
  .row li .flip { margin-top: 0; }
  .nw { white-space: normal; }
  .days { gap: 5px; }
  .day b { font-size: 9px; left: 9%; top: 7%; }
  .day b i { font-size: 1.6em; }
  .foot { flex-direction: column; align-items: flex-start; row-gap: 2px; }
}

/* Motion (D-148 to D-151, D-155). No scene is driven by the scroll, and the page scrolls freely: each scene plays by
   itself, on time, from the moment its block is whole in the window. /js/home.js sets .tb on <html> before the body
   paints (the three steps become tabs, with or without motion), and .m unless the reader asks for reduced motion; then GSAP plays the scenes, started by ScrollTrigger. Only transform and opacity
   move, so the layout never shifts. Without script every scene stands in its final state: three phones side by side,
   every card hung, every day lit. */

/* The first screen: the cards come in once round the line, as soon as their photos are here; then their rings turn
   (js/home.js sets each card's translate). The pause stops the rings, never a card's arrival. */
@media (prefers-reduced-motion: no-preference) {
  .m .drift { --ad: calc((max(var(--xn) - 50, 50 - var(--xn)) + max(var(--yn) - 50, 50 - var(--yn))) * .004);
    animation: arrive .9s cubic-bezier(.4, 0, .2, 1) calc(var(--ad) * 1s) backwards; }
  .m .hero:not(.live) .drift { animation-play-state: paused; }
}
@keyframes arrive { from { opacity: 0; scale: .92; } }
/* The near ring over the inner one, the far one under both. */
.m :is(.s11, .s12, .s13, .s14, .s15, .s16, .s17, .s18) { z-index: 1; }
.m :is(.s5, .s6, .s8, .s9, .s10) { z-index: 2; }
.m :is(.s1, .s2, .s3, .s4, .s7) { z-index: 3; }

/* «Что в одной открытке» as tabs: one phone (phones 2 and 3 lie exactly over phone 1, which casts the one shadow) and
   the three steps. Wide: the heading and the steps beside the phone, the steps as tabs with their lines; the active
   one is full ink and its thin line fills while it plays. Phone: a row of three tabs over the phone, the active step's
   words under it. */
.tabs { display: none; }
.tb .parts .pin { display: grid; grid-template-columns: auto minmax(0, 30em); grid-template-rows: 1fr auto auto 1fr; grid-template-areas: "p ." "p h" "p t" "p ."; column-gap: clamp(48px, 7vw, 120px); justify-content: center; max-width: 1180px; margin: 0 auto; text-align: left; }
.tb .parts h2 { grid-area: h; }
.tb .parts .tabs { grid-area: t; display: grid; align-content: start; margin-top: clamp(20px, 3.4vh, 36px); }
.tb .parts .steps { grid-area: p; margin: clamp(40px, 6vh, 64px) 0 0; max-width: none; display: grid; grid-template-columns: auto; gap: 0; }
.tb .parts .steps > li { grid-area: 1 / 1; display: block; }
.tb .parts .phone { --ph-h: min(calc(100svh - 120px), 680px); height: var(--ph-h); width: calc(var(--ph-h) * 1350 / 2760); margin: 0; }
.tb .parts .steps > li .phone { transform: none; }
.m .parts .steps > li:not(:first-child) .phone::before { box-shadow: none; }   /* with motion phone 1 is always under them */
.tb .parts .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tb:not(.m) .parts .steps > li:not(.on) { visibility: hidden; }
.tabs [role="tab"] { display: grid; justify-items: start; gap: 6px; width: 100%; margin: 0; padding: 16px 0 14px; border: 0; background: none; color: var(--key); font: inherit; text-align: left; cursor: pointer; opacity: .7; transition: opacity .3s ease; -webkit-tap-highlight-color: transparent; }
.tabs [role="tab"]:hover, .tabs [aria-selected="true"] { opacity: 1; }
.tabs .num { margin: 0; font: 400 15px/1 var(--display); letter-spacing: .02em; color: var(--key); }
.tabs .tt { font: 400 clamp(24px, 2.2vw, 32px)/1.1 var(--display); letter-spacing: -.01em; }
.tabs .td { max-width: 24em; font: 450 clamp(17px, 1.3vw, 19px)/1.45 var(--sans); color: #2c2c2e; text-wrap: pretty; }
.tabs .bar { display: block; width: 100%; height: 2px; margin-top: 8px; border-radius: 1px; overflow: hidden; background: rgba(14,14,14,.12); }
.tabs .bar i { display: block; height: 100%; background: var(--key); transform: scaleX(0); transform-origin: 0 50%; }
.tb:not(.m) .tabs [aria-selected="true"] .bar i { transform: none; }
.m .parts .steps > li:not(:first-child) .phone { opacity: 0; }
.m .parts .steps > li:first-child :is(.ocard, .pill, .peek, .acts, .primary) { opacity: 0; }
/* 01 opens on Apple's photo picker (docs/app_scenarios.md, 2; the concept's sheet 2): three columns of the library,
   the close button, «Фото · Коллекции», the search. Only the moving page shows it. */
.picker { display: none; }
.m .picker { display: block; position: absolute; inset: 0; z-index: 7; background: #fff; }
.pg { position: absolute; left: 0; right: 0; top: 12.5cqw; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6cqw; }
.pg li { position: relative; aspect-ratio: 1; overflow: hidden; background: #E9E9EC; }
.pg img { width: 100%; height: 100%; object-fit: cover; }
/* The tap: the photo darkens, as a pressed cell does on iOS, under a white ring where the finger is. */
.pg .tap { position: absolute; inset: 0; background: rgba(14,14,14,.32); opacity: 0; }
.pg .tap::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15cqw; height: 15cqw; margin: -7.5cqw 0 0 -7.5cqw; border: 1.1cqw solid #fff; border-radius: 50%; box-shadow: 0 0 0 .4cqw rgba(0,0,0,.25), inset 0 0 0 .4cqw rgba(0,0,0,.2); }
.pk-x, .pk-find, .pk-tabs { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 99cqw; background: rgba(255,255,255,.9); box-shadow: 0 .6cqw 2.4cqw rgba(0,0,0,.2); color: var(--key); }
.pk-x, .pk-find { width: 11cqw; height: 11cqw; }
.pk-x { left: 3.5cqw; top: 15.5cqw; } .pk-find { right: 4cqw; bottom: 9cqw; }
.pk-x svg, .pk-find svg { width: 4.8cqw; height: 4.8cqw; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pk-tabs { left: 17cqw; top: 15.5cqw; height: 11cqw; padding: 0 1cqw; gap: .4cqw; font: 500 4.1cqw/1 var(--sans); letter-spacing: -.01em; }
.pk-tabs span { padding: 2.7cqw 3.4cqw; border-radius: 99cqw; }
.pk-tabs span:first-child { background: rgba(14,14,14,.09); font-weight: 600; }
/* The chosen photo, lifted out of the grid by the script: it grows, straight, from its square to the card's photo. */
.pick { position: absolute; left: calc(4.7% + 3.02cqw); top: calc(29.9% + 3.02cqw); z-index: 8; width: 84.56cqw; height: 54.36cqw; overflow: hidden; border-radius: 2.42cqw; transform-origin: 0 0; opacity: 0; pointer-events: none; }
.pick img { width: 100%; height: 100%; object-fit: cover; }
.m .app .ring { display: block; opacity: 0; }
.m .app :is(.halo, .ring) { translate: none; transform: translate(-50%, -50%); }   /* the script scales them round their centres */

/* «У каждого свой город»: when its block stands, «Повесить открытку» is pressed and the cards come in from
   every side and hang, round the plate, in about 2.5 s. The phone stays straight (Apple asks that its bezel is never
   tilted). */
.m .wall .pc, .m .wall .pc .tape { opacity: 0; }

/* «Жизнь это больше…»: when its block stands, a camera close on 17 October, Серёжа's day, pulls back to the
   ten weeks in about 2.5 s, inside the grid's own frame (.dframe, the script's), so the line above stays clear; the
   tile is never re-cropped, the whole grid scales round it. Then the other five postcards light in date order. */
.dframe { overflow: hidden; margin-top: 64px; }
.dframe .days { margin-top: 0; }
.life h2 { position: relative; z-index: 1; }
.day .dim { position: absolute; inset: 0; z-index: 1; background: var(--tile); opacity: .86; }
.day b { z-index: 3; }

/* What moves gets its own layer only while its section is on screen (.live, from the script). */
.m .hero.live .drift { will-change: transform, translate, opacity; }
.m .parts.live :is(.phone, .txt, .pill, .peek, .acts, .primary, .rcard, .ocard, .count, .halo, .ring, .stop, .picker, .chosen, .tap, .pick, .pick img),
.m .wall.live :is(.pc, .hang), .m .life.live .days { will-change: transform, opacity; }

@media (max-width: 719px) {
  .tb .parts .pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "h" "t" "p"; text-align: center; }
  .tb .parts .tabs { grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 0; }
  .tabs [role="tab"] { justify-items: center; min-height: 44px; padding: 10px 0 8px; text-align: center; }
  .tabs .num { font-size: 17px; }
  .tabs .td, .tb .parts .txt .num { display: none; }
  .tabs .tt { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* .vh: the tab's name */
  .tb .parts .steps { margin-top: 16px; justify-items: center; }
  .tb .parts .steps > li { display: grid; justify-items: center; align-content: start; gap: 16px; }
  /* Each block fits the window whole, with about 30 px to spare, down to a floor (D-155). */
  .tb .parts .phone { --ph-h: min(460px, max(330px, calc(100svh - 340px))); }
  .wall .phone { width: min(290px, max(160px, calc((100svh - 310px) * 1350 / 2760))); }
  .tb .parts .txt { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .tb .parts .txt h3 { margin: 0; font-size: 24px; }
  .tb .parts .txt p { margin: 10px auto 0; font-size: 17px; }
}
