/* Kisspresso welcome page v3. A dark room with one colour per chapter, read in beats: a heart that beats at the
   bottom of the first screen, the chapters on the right edge (laptop) or across the top (phone). Brand values from
   20_BRAND: no gradients, no shadows, never #C70017. Motion lives in assets/js/kp.js; without it every word stays readable. */

@font-face { font-family: "Platypi"; src: url("assets/fonts/platypi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Platypi"; src: url("assets/fonts/platypi-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* the two initials take any letter: one the small file above lacks (Romanian ș, Polish ł, Czech ř, Vietnamese ạ) comes
   from the brand's full Platypi Italic, a Cyrillic or Greek one from the brand's Roboto Serif Italic; the browser
   fetches either file only when such a letter is typed */
@font-face { font-family: "Platypi"; src: url("assets/fonts/Platypi-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Platypi"; src: url("assets/fonts/RobotoSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0400-052F; }
@font-face { font-family: "Roboto Serif"; src: url("assets/fonts/roboto-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Serif"; src: url("assets/fonts/roboto-serif-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #1A1B1C;
  --ink-2: #2A2B2D;
  --milk: #F9F9F5;
  --milk-2: #C4C4BE;
  --red: #AC2B37;
  --burgundy: #77253C;
  --atelier: #B89B82;
  --origine: #2F3F90;
  --piacere: #C0B462;
  --sealed: #242721;
  --sealed-dim: #7A8070;
  --line: rgba(249, 249, 245, .42);
  --ghost: rgba(249, 249, 245, .36);
  --halo: var(--ink);
  --serif: "Roboto Serif", Georgia, "Times New Roman", serif;
  --display: "Platypi", Georgia, "Times New Roman", serif;
  /* any screen: up to 1920 x 1080 nothing changes. Past it the page grows in proportion (--s is one pixel of a
     1920 x 1080 screen) inside a 16:9 frame centred on the screen (--fw, with --vw one hundredth of it); on an
     ultra-wide screen the rooms' colours run on to both edges while their words and pictures stay in the frame */
  --s: max(1px, min(100vw / 1920, 100vh / 1080));
  --fw: min(100vw, 1920 * var(--s));
  --vw: calc(var(--fw) / 100);
  --frame: calc((100vw - var(--fw)) / 2);
  --g: clamp(16px, calc(3.4 * var(--vw)), calc(56 * var(--s)));
  --gl: calc(var(--frame) + max(var(--g), env(safe-area-inset-left, 0px)));
  --gr: calc(var(--frame) + max(var(--g), env(safe-area-inset-right, 0px)));
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* the page script keeps the reader's place across a resize itself (kp.js), so the browser's own anchoring stays out */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); overflow-anchor: none; }
body { margin: 0; background: var(--ink); color: var(--milk); font: 400 calc(17 * var(--s))/1.6 var(--serif); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
/* V9.0.6: a room photograph waits for kp-head.js (data-srcset); without scripts its <noscript> copy shows */
html:not(.js) img[data-srcset] { display: none; }
a { color: inherit; }
p, h1, h2, h3, dl, dd, figure { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* the focus ring is two rings, the text's own colour between two of the room's, so it reads over a photograph,
   a dark room and a light one alike */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; box-shadow: 0 0 0 7px var(--halo); }
.bar.is-ink, .rail.is-ink, .card--atelier, .card--piacere { --halo: var(--milk); }
/* a chapter link hands the keyboard to its section; the whole room needs no ring */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
::selection { background: var(--red); color: var(--milk); }
.mark { width: 100%; height: auto; }
.mark path { fill: currentColor; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: text-decoration-thickness .3s var(--ease), text-underline-offset .3s var(--ease); }
.link:hover { text-decoration-thickness: 3px; text-underline-offset: .12em; }

/* opening: two hearts meet, the kiss opens into the photograph, the logo settles (kp.js); a tap skips it */
.opening { display: none; position: fixed; inset: 0; z-index: 60; cursor: pointer; }
html.is-opening .opening { display: block; animation: kp-gone .4s 4.6s forwards; }
.opening__heart { --h: clamp(56px, calc(5.4 * var(--vw)), calc(92 * var(--s))); position: absolute; left: 50%; top: 50%; width: var(--h); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--h) / -2); fill: var(--red); opacity: 0; }
.opening__logo { position: absolute; left: 50%; top: 50%; width: min(calc(60 * var(--vw)), calc(460 * var(--s))); color: var(--milk); opacity: 0; }
html.is-opening .story__pin { clip-path: circle(0 at 50% 50%); animation: kp-open .8s 4.6s forwards; }
html.is-opening .bar__home, html.is-opening .bar__write, html.is-opening .motto, html.is-opening .house, html.is-opening .pause { opacity: 0; animation: kp-show .6s 4.6s forwards; }
html.is-opening.opening-live .opening, html.is-opening.opening-live .story__pin, html.is-opening.opening-live .bar__home, html.is-opening.opening-live .bar__write,
html.is-opening.opening-live .motto, html.is-opening.opening-live .house, html.is-opening.opening-live .pause { animation: none; }
@keyframes kp-gone { to { opacity: 0; visibility: hidden; } }
@keyframes kp-open { to { clip-path: circle(150% at 50% 50%); } }
@keyframes kp-show { to { opacity: 1; } }

/* chapter 1: the couples, then the kiss becomes coffee */
.story { position: relative; height: 100vh; height: 100svh; }
html.kp .story { height: 160vh; }
/* V9.0.6: the same heights before kp.js runs, so the four rooms' photographs start beyond the lazy-load distance */
html.js:not(.no-kp) .story { height: 160vh; }
.story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.slide { position: absolute; inset: 0; z-index: 2; overflow: hidden; opacity: 0; }
.slide.is-on { opacity: 1; }
.slide picture { display: block; width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
#kiss img { object-position: 47% 50%; }
html.kp #kiss { inset: auto; left: 0; top: 0; }
.pack { display: none; position: absolute; left: 0; top: 0; z-index: 1; opacity: 0; }
html.kp .pack { display: block; }
/* flat pouches lose the studio ground by a display crop to the pouch edge (tools/pouch_box.py, plus 0.6% inward) */
.pack img { width: 100%; height: 100%; object-fit: cover; clip-path: inset(8.6% 10.2% 8.4% 10.35% round 3% / 2.4%); }
.veil { position: absolute; inset: 0; z-index: 5; background: var(--ink); opacity: .34; pointer-events: none; }

/* the lockup: the logo large on the first screen with the House line under it; on the first flick the logo docks
   small in the corner and stays there over every room, milk on the dark ones and ink on the light ones (kp.js) */
.bar { --fade: calc(24 * var(--s)); position: absolute; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: max(calc(20 * var(--s)), env(safe-area-inset-top, 0px)) var(--gr) 0 var(--gl); color: var(--milk); pointer-events: none; transition: color .5s var(--ease); }
html.kp .bar { position: fixed; }
html.kp .bar.is-ink { color: var(--ink); }
/* from the sealed room down the text scrolls freely under the docked logo; a band in the colour of the room
   beneath hides it there, so the band itself never shows (kp.js sets its height and its room) */
.bar::before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: var(--band, 0px); pointer-events: none; }
.bar[data-band="sealed"]::before { background: var(--sealed); }
.bar[data-band="ink"]::before { background: var(--ink); }
.bar[data-band="red"]::before { background: var(--red); }
.bar[data-band="burgundy"]::before { background: var(--burgundy); }
.bar[data-band="atelier"]::before { background: var(--atelier); }
.bar[data-band="origine"]::before { background: var(--origine); }
.bar[data-band="piacere"]::before { background: var(--piacere); }
/* where the text scrolls freely (the sealed room down) the band's lower edge fades over 24 px, so a line passing
   under the logo dissolves rather than being cut through its letters; the rooms' own bands keep a clean edge on the photograph */
.bar[data-band="sealed"]::before, .bar[data-band="ink"]::before, .bar[data-band="red"]::before { height: calc(var(--band, 0px) + var(--fade)); -webkit-mask-image: linear-gradient(#000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(#000 calc(100% - var(--fade)), transparent); }
.bar a { pointer-events: auto; }
.bar__home { display: block; width: clamp(min(200px, calc(100vw - 112px)), calc(22 * var(--vw)), calc(340 * var(--s))); color: inherit; transform-origin: 0 0; }
/* the House line hangs under the logo out of the flow, so once it has gone the bar is only as tall as the logo */
.bar__lockup { position: relative; }
.house { position: absolute; left: 0; top: 100%; margin-top: clamp(10px, var(--vw), calc(16 * var(--s))); white-space: nowrap; font: italic 400 clamp(25px, calc(2.2 * var(--vw)), calc(34 * var(--s)))/1.2 var(--display); }
.house span { display: block; }
.bar__write { font: 600 calc(13 * var(--s))/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: calc(16 * var(--s)) 0 calc(16 * var(--s)) calc(16 * var(--s)); transition: opacity .3s var(--ease); }
.bar__write:hover { opacity: .7; }

.motto { position: absolute; z-index: 7; left: var(--gl); bottom: calc(var(--g) + 8 * var(--s)); font: italic 400 clamp(60px, calc(9.6 * var(--vw)), calc(170 * var(--s)))/1 var(--display); letter-spacing: -.012em; white-space: nowrap; transform-origin: 0 0; }
.motto span { display: block; width: fit-content; }
html.kp .motto { left: 0; top: 0; bottom: auto; }
html.kp .motto__b { opacity: 0; }
.origin { position: absolute; z-index: 7; left: 0; top: 0; opacity: 0; font: italic 400 clamp(19px, calc(1.6 * var(--vw)), calc(24 * var(--s)))/1.4 var(--display); color: var(--milk); }
html:not(.kp) .origin { display: none; }
.origin span + span::before { content: " · "; }
.pause { position: absolute; z-index: 9; right: calc(var(--gr) - 10 * var(--s)); bottom: calc(var(--g) - 2 * var(--s)); width: calc(44 * var(--s)); height: calc(44 * var(--s)); display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--milk); cursor: pointer; }
.pause svg { width: calc(22 * var(--s)); height: calc(22 * var(--s)); fill: currentColor; }
.pause__play, .pause[aria-pressed="true"] .pause__bars { display: none; }
.pause[aria-pressed="true"] .pause__play { display: inline; }
html:not(.kp) .pause, .pause[hidden] { display: none; }

/* the heartbeat: the small red heart of the opening stays at the bottom centre and beats; a drop falls from it.
   A tap plays the first beat; the first scroll fades it, the top brings it back (kp.js). The pause button stills it too */
.cue { display: none; }
html.kp .cue { position: absolute; z-index: 8; left: 50%; bottom: calc(var(--g) - 6 * var(--s) + env(safe-area-inset-bottom, 0px)); width: calc(96 * var(--s)); margin-left: calc(-48 * var(--s)); display: grid; justify-items: center; gap: calc(10 * var(--s)); padding-top: calc(8 * var(--s)); color: var(--milk); text-decoration: none; }
.cue__word { padding-left: .24em; font: 600 calc(13 * var(--s))/1 var(--serif); letter-spacing: .24em; text-transform: uppercase; }
.cue__heart { width: calc(24 * var(--s)); height: calc(24 * var(--s)); fill: var(--red); transform-origin: 50% 60%; animation: kp-lubdub 1.2s ease-out infinite; }
.cue__line { position: relative; width: calc(9 * var(--s)); height: calc(54 * var(--s)); overflow: hidden; }
.cue__line::before { content: ""; position: absolute; left: calc(4 * var(--s)); top: 0; bottom: 0; width: max(1px, var(--s)); background: var(--milk); opacity: .42; }
.cue__drop { position: absolute; left: calc(2 * var(--s)); top: 0; width: calc(5 * var(--s)); height: calc(7 * var(--s)); border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; background: var(--red); animation: kp-drop 2.4s cubic-bezier(.55, 0, .9, .45) infinite; }
.cue:hover .cue__heart { animation-duration: .8s; }
html.is-still .cue__heart, html.is-still .cue__drop { animation-play-state: paused; }
@keyframes kp-lubdub { 0%, 40%, 100% { transform: scale(1); } 8% { transform: scale(1.24); } 16% { transform: scale(1); } 24% { transform: scale(1.14); } }
@keyframes kp-drop { 0%, 12% { transform: translateY(calc(-8 * var(--s))); opacity: 1; } 52% { opacity: 1; } 60%, 100% { transform: translateY(calc(54 * var(--s))); opacity: 0; } }

/* the chapters: six ticks on the right edge of a laptop screen, with four short marks under the Collections for its
   rooms, and six segments across the top of a phone (kp.js) */
.rail, .steps { display: none; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  /* the right margin widens to clear the rail, so no room's words or photograph run under its ticks */
  html.kp { --gr: calc(var(--frame) + max(calc(80 * var(--s)), calc(var(--g) + 28 * var(--s)), env(safe-area-inset-right, 0px))); }
  html.kp .rail { position: fixed; z-index: 30; right: calc(var(--frame) + max(calc(4 * var(--s)), env(safe-area-inset-right, 0px))); top: 50%; display: block; color: var(--milk); transform: translateY(-50%); transition: color .5s var(--ease); }
  .rail ol { display: grid; margin: 0; padding: 0; list-style: none; }
  .rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; width: calc(52 * var(--s)); height: calc(24 * var(--s)); padding-right: calc(10 * var(--s)); text-decoration: none; }
  .rail__tick { width: calc(18 * var(--s)); height: max(1px, var(--s)); background: currentColor; opacity: .75; transform-origin: 100% 50%; transition: transform .5s var(--ease), opacity .5s var(--ease); }
  .rail [aria-current] .rail__tick { opacity: 1; transform: scale(2, 2); }
  .rail a:hover .rail__tick { opacity: 1; }
  /* the name shows only under the pointer or on focus, on a small plate in its chapter's own colour, so it reads
     over a light photograph as well as over a dark room */
  .rail__label { position: absolute; right: calc(52 * var(--s)); top: 50%; padding: calc(7 * var(--s)) calc(10 * var(--s)) calc(6 * var(--s)); background: var(--ink); color: var(--milk); white-space: nowrap; pointer-events: none; font: italic 400 calc(15 * var(--s))/1 var(--display); opacity: 0; transform: translate(8px, -50%); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .rail a[href="#collections"] .rail__label { background: var(--burgundy); }
  .rail a[href="#sealed"] .rail__label { background: var(--sealed); }
  .rail a[href="#write"] .rail__label { background: var(--red); }
  .rail a:hover .rail__label, .rail a:focus-visible .rail__label { opacity: 1; transform: translate(0, -50%); }
  /* the room you are in draws its own short mark out, under the Collections' long one; each mark keeps a full
     24 px row, so a finger or a pointer finds it (WCAG 2.2 target size) */
  .rail .rail__room { height: calc(24 * var(--s)); }
  .rail__sub { width: calc(9 * var(--s)); height: max(1px, var(--s)); background: currentColor; opacity: .5; transform-origin: 100% 50%; transition: transform .5s var(--ease), opacity .5s var(--ease); }
  .rail__room:hover .rail__sub { opacity: 1; }
  .rail__room.is-here .rail__sub { opacity: 1; transform: scale(2, 2); }
  .rail__room .rail__label { font-size: calc(14 * var(--s)); }
  .rail a[href="#classica"] .rail__label { background: var(--burgundy); }
  .rail a[href="#atelier"] .rail__label { background: var(--atelier); color: var(--ink); }
  .rail a[href="#origine"] .rail__label { background: var(--origine); }
  .rail a[href="#piacere"] .rail__label { background: var(--piacere); color: var(--ink); }
  html.kp .rail.is-ink { color: var(--ink); }
}
@media not all and (min-width: 900px) and (min-aspect-ratio: 1/1) {
  html.kp .steps { position: fixed; z-index: 55; top: calc(env(safe-area-inset-top, 0px) + 8px); left: var(--gl); right: var(--gr); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; pointer-events: none; color: var(--milk); transition: color .5s var(--ease); }
  .steps > span { position: relative; height: 2px; overflow: hidden; }
  .steps > span::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .32; }
  .steps__fill { position: absolute; inset: 0; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; }
  html.kp .steps.is-ink { color: var(--ink); }
}

/* chapter 2: the House, one line at a time; the room warms to burgundy at the end */
/* centred rooms take the wider right margin on both sides, so their middle is the screen's middle */
.house-lines { position: relative; background: var(--ink); padding: 18vh max(var(--gl), var(--gr)); }
.house-lines__pin { display: grid; gap: 6vh; justify-items: center; text-align: center; }
.line { max-width: 20ch; font: italic 400 clamp(34px, calc(7 * var(--vw)), calc(124 * var(--s)))/1.08 var(--display); text-wrap: balance; }
/* one screen plus 10vh per line: one beat per line, and one wheel notch per line for a reader who scrolls freely */
html.kp .house-lines { height: calc(100vh + 6 * 10vh); padding: 0; }
html.js:not(.no-kp):not(.kp) .house-lines { min-height: calc(100vh + 6 * 10vh); }
html.kp .house-lines__pin { position: sticky; top: 0; height: 100vh; height: 100svh; place-items: center; padding: 0 max(var(--gl), var(--gr)); }
/* two small hearts start at the two edges and close the space between them, line by line (kp.js) */
.hh { display: none; }
html.kp .hh { --hw: clamp(26px, calc(2.4 * var(--vw)), calc(40 * var(--s))); position: absolute; left: 50%; top: 30%; display: block; width: var(--hw); height: var(--hw); margin-left: calc(var(--hw) / -2); fill: var(--red); opacity: 0; visibility: hidden; }
/* one line on show; the others are hidden outright, and screen readers get all six from the hidden paragraph */
html.kp .line { grid-area: 1 / 1; opacity: 0; visibility: hidden; }

/* chapter 3: the four rooms, stacking */
.cards { position: relative; }
/* every room fills the screen, so a beat never rests with the next room's colour showing under it */
.card { position: sticky; top: 0; overflow: hidden; min-height: 100vh; min-height: 100svh; }
.card__in { min-height: inherit; align-content: center; }
.card--classica { background: var(--burgundy); color: var(--milk); }
.card--atelier { background: var(--atelier); color: var(--ink); }
.card--origine { background: var(--origine); color: var(--milk); }
.card--piacere { background: var(--piacere); color: var(--ink); }
.card__in { position: relative; display: grid; gap: calc(30 * var(--s)); padding: 13vh var(--gr) 9vh var(--gl); transform-origin: 50% 0; }
.card__text { display: grid; gap: calc(18 * var(--s)); align-content: center; max-width: calc(640 * var(--s)); }
.card__name { font: 400 clamp(38px, calc(3.8 * var(--vw)), calc(64 * var(--s)))/1.02 var(--display); letter-spacing: -.01em; text-wrap: balance; }
/* "La Collezione" stands small over "Classica", so the room keeps one dominant word as the others do */
.card__of { display: block; font-size: max(20px, .34em); line-height: 1.2; margin-bottom: .12em; }
.card__line { font: italic 400 clamp(22px, calc(1.9 * var(--vw)), calc(30 * var(--s)))/1.25 var(--display); }
.card__body { max-width: 34ch; }
.pairs { display: grid; gap: calc(12 * var(--s)); margin-top: calc(6 * var(--s)); }
.pairs div { display: grid; gap: 2px; }
.pairs dt { font: italic 400 calc(21 * var(--s))/1.25 var(--display); }
.pairs dd { font-size: calc(16 * var(--s)); line-height: 1.45; }
.card__photo { width: min(100%, 720px); overflow: hidden; }
.card__photo img { width: 100%; }
.card__pack { position: relative; z-index: 2; justify-self: end; width: min(56vw, 360px); margin: -24% 5% 0 0; }
.card__pack--one { width: min(40vw, 260px); margin-top: -30%; }
.card__pack--one img { clip-path: inset(10.3% 11.2% 9.5% 11.4% round 3% / 2.4%); }
/* the angled pair cannot be cropped clean, so it is shown as a print in a milk frame, like the Polaroid */
.card__pack--pair { padding: clamp(8px, calc(.8 * var(--vw)), calc(14 * var(--s))) clamp(8px, calc(.8 * var(--vw)), calc(14 * var(--s))) clamp(26px, calc(2.6 * var(--vw)), calc(44 * var(--s))); background: var(--milk); transform: rotate(2.5deg); }
.card__pack img { width: 100%; }
/* portrait screens: a room opens on its photograph, edge to edge and cropped tall, with the name right under it;
   a band of the room's colour stays above it for the story bar and the docked logo, and the pack sits in the photograph's corner */
@media not all and (min-aspect-ratio: 1/1) {
  .card__in { align-content: start; gap: 20px; padding-top: calc(max(20px, env(safe-area-inset-top, 0px)) + 52px); padding-bottom: 5vh; }
  .card__photo { grid-row: 1; grid-column: 1; width: auto; margin-inline: calc(-1 * var(--gl)) calc(-1 * var(--gr)); }
  .card__photo img { aspect-ratio: 1; object-fit: cover; }
  @media (max-width: 599px) { .card__photo img { aspect-ratio: 4 / 5; } }
  .card--classica .card__photo img { object-position: 52% 50%; }
  .card--origine .card__photo img { object-position: 47% 50%; }
  .card--piacere .card__photo img { object-position: 46% 50%; }
  .card__pack { grid-row: 1; grid-column: 1; align-self: end; margin: 0 2% 18px 0; }
  .card__pack--pair { width: min(46vw, 300px); }
  /* the single pouch is smaller and sits on the photograph's bottom edge, clear of the hands' heart */
  .card__pack--one { width: min(30vw, 200px); margin-top: 0; margin-bottom: 0; }
  .card__name { font-size: min(12vw, 80px); }
}
@media (min-aspect-ratio: 1/1) and (min-height: 600px) {
  .card { height: 100vh; height: 100svh; }
  .card__in { height: 100%; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: calc(var(--g) * 1.4); padding: 7vh var(--gr) 7vh var(--gl); }
  .card__text { grid-column: 1; grid-row: 1; }
  .card__photo { grid-column: 2; grid-row: 1; }
  /* the name is set twice the phone's scale; the photographs give up a little width so its longest word fits */
  .card__text { max-width: calc(704 * var(--s)); }
  .card__name { font-size: clamp(48px, calc(7.6 * var(--vw)), calc(128 * var(--s))); line-height: .98; }
  .card__photo--54 { width: min(98vh, calc(49 * var(--vw))); }
  /* Atelier's photograph is a little narrower, so "Aromatico" ends clear of the rail */
  .card__photo--75 { width: min(110vh, calc(46 * var(--vw))); }
  .card--atelier .card__in { grid-template-columns: auto minmax(0, 1fr); }
  .card--atelier .card__photo { grid-column: 1; }
  .card--atelier .card__text { grid-column: 2; }
  .pairs { grid-template-columns: max-content minmax(0, 1fr); column-gap: calc(28 * var(--s)); row-gap: calc(10 * var(--s)); }
  .pairs div { display: contents; }
  .pairs dd { align-self: center; }
  .card__pack { position: absolute; margin: 0; bottom: max(3vh, calc(50% - min(98vh, calc(49 * var(--vw))) * .4 - 6vh)); }
  .card__pack--pair { width: calc(18 * var(--vw)); right: calc(var(--gr) + 2 * var(--vw)); }
  .card__pack--one { width: calc(12 * var(--vw)); right: calc(var(--gr) + 3 * var(--vw)); }
  /* the wide picture takes the right; the words stand beside it as one block, centred, as in the other rooms */
  .card--piacere .card__photo { grid-column: 2; grid-row: 1; width: min(100vh, calc(54 * var(--vw))); }
  .card--piacere .card__text { grid-column: 1; grid-row: 1; }
  /* the two wide photographs are cropped by the box, never retouched, to stand as tall as the screen allows */
  .card--atelier .card__photo, .card--piacere .card__photo { height: min(78vh, calc(49 * var(--vw))); }
  .card--atelier .card__photo img, .card--piacere .card__photo img { height: 100%; object-fit: cover; }
  .card--atelier .card__photo img { object-position: 40% 50%; }
  .card--piacere .card__photo img { object-position: 46% 50%; }
}
/* any short wide screen (down to a laptop zoomed to 400 %, 320 x 256): the room's first line starts under the logo's band */
@media (min-aspect-ratio: 1/1) and (max-height: 599px) { .card__in { padding-top: calc(var(--band, 64px) + 6px); } }
/* a phone turned sideways, or a laptop window zoomed to 200 %: the room keeps its words and its photograph side by
   side under the docked logo's band, the photograph as tall as the screen allows, the pack on its lower edge */
@media (min-aspect-ratio: 1/1) and (max-height: 599px) and (min-width: 480px) {
  .card__in { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); align-items: center; column-gap: calc(var(--g) * 1.2); padding: calc(var(--band, 64px) + 6px) var(--gr) 5vh var(--gl); }
  .card__text { grid-column: 1; grid-row: 1; gap: 10px; max-width: none; }
  .card__photo { grid-column: 2; grid-row: 1; width: 100%; height: calc(100vh - var(--band, 64px) - 6px - 5vh); height: calc(100svh - var(--band, 64px) - 6px - 5vh); }
  .card__photo img { height: 100%; object-fit: cover; }
  .card--atelier .card__in { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
  .card--atelier .card__photo { grid-column: 1; }
  .card--atelier .card__text { grid-column: 2; }
  .card--atelier .card__photo img { object-position: 40% 50%; }
  .card--piacere .card__photo img { object-position: 46% 50%; }
  .card__name { font-size: clamp(30px, 5.6vw, 56px); line-height: 1; }
  .card__line { font-size: clamp(18px, 2.4vw, 24px); }
  .card__body { font-size: 15px; line-height: 1.5; }
  .pairs { grid-template-columns: max-content minmax(0, 1fr); column-gap: 18px; row-gap: 4px; margin-top: 2px; }
  .pairs div { display: contents; }
  .pairs dt { font-size: 18px; }
  .pairs dd { font-size: 14px; align-self: center; }
  .card__pack { grid-column: 2; grid-row: 1; align-self: end; justify-self: end; margin: 0 4% -1vh 0; }
  .card__pack--pair { width: 15vw; }
  .card__pack--one { width: 9.5vw; }
}

/* chapter 4: sealed. The first line clears the docked logo's band on every screen */
.sealed { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: calc(24 * var(--s)); padding: max(16vh, calc(var(--band, 0px) + 3vh)) max(var(--gl), var(--gr)) 16vh; background: var(--sealed); color: var(--milk); text-align: center; }
.sealed__more { font: italic 400 clamp(22px, calc(2.2 * var(--vw)), calc(32 * var(--s)))/1.3 var(--display); }
/* the padding keeps the letters' glyph boxes, taller than the .95 line, clear of the lines above and below; the word
   is never wider than the screen between its margins (its width is 5.7 times its size, tracking included) */
.sealed__word { padding: .1em 0 .1em .06em; font: 400 min(clamp(48px, calc(13 * var(--vw)), calc(220 * var(--s))), calc((var(--fw) - 2 * var(--g)) / 5.7))/.95 var(--display); letter-spacing: .06em; color: var(--sealed-dim); }
@media (min-aspect-ratio: 1/1) and (max-height: 599px) { .sealed__word { font-size: min(clamp(48px, calc(13 * var(--vw)), calc(220 * var(--s))), calc((var(--fw) - 2 * var(--g)) / 5.7), 24vh); } }
.sealed__line { max-width: 30ch; text-wrap: balance; }
.sealed__soon { font: italic 400 clamp(20px, calc(1.8 * var(--vw)), calc(26 * var(--s)))/1.3 var(--display); color: var(--milk-2); }

/* chapter 5: the Polaroid of two */
.gift { background: var(--ink); padding: max(14vh, calc(var(--band, 0px) + 3vh)) var(--gr) 14vh var(--gl); }
.gift__in { display: grid; gap: calc(56 * var(--s)); align-items: center; }
.gift__text { display: grid; gap: calc(40 * var(--s)); }
.gift__title { max-width: 24ch; font: italic 400 clamp(28px, calc(3.5 * var(--vw)), calc(54 * var(--s)))/1.14 var(--display); text-wrap: balance; }
.gift__form { display: flex; align-items: end; gap: calc(18 * var(--s)); }
.field { display: grid; gap: calc(10 * var(--s)); }
.field__label { font: italic 400 calc(18 * var(--s))/1.2 var(--display); }
/* a fine milk outline with a ghost initial inside, so the empty square reads as a place to write, not a gap */
.field__input { width: 92px; height: 92px; padding: 0; border: 1px solid var(--line); border-bottom: 2px solid var(--milk-2); border-radius: 0; background: transparent; color: var(--milk); caret-color: var(--red); text-align: center; font: italic 400 50px/1 var(--display); transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.field__input::placeholder { color: var(--ghost); opacity: 1; }
.field__input:hover { background: var(--ink-2); border-color: var(--milk); }
.field__input:focus { border-color: var(--milk); border-bottom-color: var(--red); }
.field__input:focus::placeholder { color: transparent; }
@media (min-width: 900px) { .field__input { width: calc(156 * var(--s)); height: calc(156 * var(--s)); font-size: calc(84 * var(--s)); } }
.field__input:focus-visible { outline: 2px solid var(--milk); outline-offset: 3px; }
.gift__and { padding-bottom: 18px; font: italic 400 44px/1 var(--display); }
@media (min-width: 900px) { .gift__and { padding-bottom: calc(36 * var(--s)); font-size: calc(68 * var(--s)); } }
.polaroid { justify-self: center; width: min(calc(76 * var(--vw)), calc(400 * var(--s))); padding: 6% 6% 0; background: var(--milk); color: var(--ink); transform: rotate(-3deg); transition: transform .6s var(--ease); }
.polaroid:hover { transform: rotate(-1deg) translateY(-6px); }
.polaroid__picture { aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: calc(20 * var(--s)); background: var(--red); color: var(--milk); }
.polaroid__angel { width: 34%; min-width: min(96px, 40%); }
.polaroid__names { min-height: 1em; font: italic 400 clamp(46px, calc(5.6 * var(--vw)), calc(72 * var(--s)))/1 var(--display); }
.polaroid__amp { padding-inline: .12em; }
/* before anyone writes, the two places show as pale letters, so the square tells what the initials will do */
#pa:empty::before { content: "A"; }
#pb:empty::before { content: "B"; }
.polaroid__names span:empty::before, .polaroid__names:has(#pa:empty):has(#pb:empty) .polaroid__amp { opacity: .45; }
.polaroid__caption { padding: 8% 0 9%; text-align: center; font: italic 400 clamp(20px, calc(1.9 * var(--vw)), calc(26 * var(--s)))/1.2 var(--display); }
@media (min-width: 900px) { .gift__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
/* the last beat lands on the gift: on a wide screen it fills the frame, so no band of the next room shows under it */
@media (min-aspect-ratio: 1/1) and (min-height: 600px) { .gift { display: grid; align-content: center; min-height: 100vh; min-height: 100svh; } }

/* chapter 6: write, on red */
.write { min-height: 84vh; min-height: 84svh; display: grid; align-content: center; gap: calc(24 * var(--s)); padding: max(16vh, calc(var(--band, 0px) + max(3vh, 20px))) var(--gr) 14vh var(--gl); background: var(--red); color: var(--milk); }
.write__title { font: italic 400 clamp(46px, calc(8.6 * var(--vw)), calc(150 * var(--s)))/1.02 var(--display); letter-spacing: -.01em; }
.write__title a { text-decoration: underline; text-decoration-thickness: max(2px, calc(2 * var(--s))); text-underline-offset: .14em; transition: text-decoration-thickness .35s var(--ease), text-underline-offset .35s var(--ease); }
.write__title a:hover { text-decoration-thickness: max(6px, calc(6 * var(--s))); text-underline-offset: .08em; }
.write__address { font: 400 clamp(22px, calc(2.4 * var(--vw)), calc(34 * var(--s)))/1.25 var(--display); user-select: all; }
.write__body { max-width: 46ch; }
.write__trade { font: 600 calc(13 * var(--s))/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; }
.write__trade .link { display: inline-block; padding: calc(14 * var(--s)) 0; }
.write__soon { font: italic 400 clamp(20px, calc(1.8 * var(--vw)), calc(26 * var(--s)))/1.3 var(--display); }
/* a short landscape screen: the sealed room, the gift and the Polaroid tighten so each fits one screen */
@media (min-aspect-ratio: 1/1) and (max-height: 599px) and (min-width: 480px) {
  .sealed { gap: 12px; padding-block: calc(var(--band, 0px) + max(2vh, 20px)) 4vh; }
  .gift__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; }
  .gift__text { gap: 24px; }
  .polaroid { width: min(38vw, 56vh); width: min(38vw, 56svh); }
}
@media (max-aspect-ratio: 1/1) {
  /* the title lands clear of the docked logo's band (kp.js sets --band), with a little air under it */
  .gift { padding-block: calc(var(--band, 76px) + 3vh) 6vh; }
  .write { min-height: 56vh; min-height: 56svh; padding-block: max(12vh, calc(var(--band, 0px) + 3vh)) 6vh; }
}

/* footer: the page ends on the logo as the House signs it, then the motto, then the company in three columns */
.foot { padding: 11vh var(--gr) calc(36 * var(--s) + env(safe-area-inset-bottom, 0px)) var(--gl); background: var(--ink); color: var(--milk); }
.foot__mark { width: clamp(220px, calc(28 * var(--vw)), calc(440 * var(--s))); margin-bottom: 5vh; }
.foot__motto { margin-bottom: 9vh; font: italic 400 max(40px, calc(8 * var(--vw)))/1 var(--display); letter-spacing: -.012em; text-wrap: balance; }
.foot__legal { display: grid; gap: calc(12 * var(--s)); color: var(--milk-2); font-size: calc(15 * var(--s)); line-height: 1.7; }
/* each piece of the company line stays whole, so no register number or street breaks across two lines; on a phone
   a group's pieces flow a clear space apart, with no dots, so a piece that does not fit starts the next line and no
   separator is left hanging at a line's end; on a wide screen they stand one per line in three columns */
.foot__legal span { white-space: nowrap; }
@media (max-width: 319.98px) { .foot__legal span { white-space: normal; } }
.foot__legal p { display: flex; flex-wrap: wrap; column-gap: 1.4em; }
/* "a brand of" reads on into the company's name, a word space apart, not a gap */
.foot__of { margin-inline-end: -1.1em; }
/* the AI sentence is the page's last line and the only place it is said (Mihai's pick, 04.11): after the company
   lines, across all three columns on a wide screen, a size below them (11 px at the base scale, never less), in the
   company lines' colour, which reads 9.8:1 on ink (WCAG asks 4.5:1). It stays in the page's flow, never fixed */
.foot__notice { grid-column: 1 / -1; font-size: calc(11 * var(--s)); }
/* the third-party trademark line (05.11): the AI sentence's size and colour, just above it, so the AI sentence
   stays the page's last line */
.foot__marks { grid-column: 1 / -1; font-size: calc(11 * var(--s)); }
@media (min-width: 900px) {
  .foot__legal { grid-template-columns: repeat(3, max-content); column-gap: clamp(40px, calc(6 * var(--vw)), calc(112 * var(--s))); }
  .foot__legal p { display: grid; }
  .foot__of { margin-inline-end: 0; }
  .foot__marks { margin-top: calc(12 * var(--s)); }
  .foot__notice { margin-top: calc(12 * var(--s)); }
  .foot__marks + .foot__notice { margin-top: 0; }
}
/* on a phone the footer and the red room above it give up a little air for the AI sentence, so the page stays
   inside ten screens */
@media not all and (min-width: 900px) {
  .foot { padding-top: 4.5vh; }
  .foot__mark { margin-bottom: 2.5vh; }
  .foot__motto { margin-bottom: 4.5vh; }
}

/* without the page script the browser glides to a chapter; with it, kp.js glides, and native smoothing would fight it */
@media (prefers-reduced-motion: no-preference) { html:not(.kp) { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  .bar, .polaroid, .link, .write__title a, .rail, .rail__tick, .rail__sub, .rail__label, .steps { transition: none; }
  .cue__heart { animation: none; }
  .cue__drop { top: calc(22 * var(--s)); animation: none; }
  .polaroid:hover { transform: rotate(-3deg); }
  /* "Then coffee." has no fade: hidden on load, it must not show over the heart while the page starts */
  .slide, .pack, .motto, .origin, .house, .veil, #kiss img { transition: opacity .5s linear; }
  .sealed__word { color: var(--milk-2); }
}
