/* =====================================================================
   Loose Ends · Podcast v1
   Plain CSS, no build step. Sections:
   1. Settings (colors, fonts, motion)   2. Base   3. Shared pieces (bubbles)
   4. Menu   5. Phone layout (drawn on the 390 frame, scaled by --u)
   6. Desktop layout (1024 px and up, drawn on the 1440 frame, scaled by --u)
   7. Animations
   Blocks are placed with numbers from the design: --x and --y (top left
   corner) and sizes, in design pixels. One design pixel = --u.
   Letter spacing follows the design in design pixels (the same value on phone and desktop).
   ===================================================================== */

/* Fonts, loaded from the fonts folder (see README to load them from Google instead) */
@font-face { font-family: "Bricolage Grotesque"; src: url("../../fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../../fonts/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- 1. Settings. EDIT: colors, fonts and motion live here. */
:root {
  --cream: #fff6e6;      /* page, cream bubbles, form fields */
  --ink: #1c1b2e;        /* text, dark bubbles, voice notes section, footer */
  --lilac: #cdbff0;      /* hero, lilac bubbles, guest section */
  --purple: #9a86d6;     /* purple bubbles */
  --orange: #ff5a3c;     /* orange bubbles, buttons, listen section */
  --orange-text: #b52e14;/* orange used for text on lilac (the email, 3.7:1, large text) */
  --grey: #5f5c78;       /* form placeholders (6:1 on the cream) */
  --photo-hint: #fff6e6; /* "Host photo" hint on the empty host photos */
  --focus: #1c1b2e;

  --font-display: "Bricolage Grotesque", "Arial Black", Arial, sans-serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Motion. Durations in ms, distances in design pixels. */
  --motion-dur: 700ms;          /* bubbles popping in */
  --motion-step: 140ms;         /* delay between bubbles that come into view together */
  --motion-rise: 20;            /* how far titles rise while they fade in */
  --motion-typing: 1.2s;        /* one bounce of the "typing" dots (forever) */
  --motion-ease: cubic-bezier(.2, .8, .2, 1);
  --motion-pop: cubic-bezier(.3, 1.45, .5, 1);

  --nav-h-compact: 64px;        /* height of the slim menu bar after scrolling (phones) */

  /* --u: one design pixel. Phones: the 390 frame, up to 430 px wide. */
  --W: 390;
  --u: calc(min(100cqi, 430px) / 390);
}

/* ---------- 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.5 var(--font-text); overflow-x: clip; }
/* the scale units (cqi) are measured on these boxes, not on <body>: a container on <body>
   would make Firefox scroll the fixed menu bar away with the page */
main, footer, .topbar { container-type: inline-size; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: none; }
button, input, textarea { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 18px; border-radius: 40px; background: var(--ink); color: var(--cream); font: 600 16px/1.2 var(--font-text); text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.voices, .footer, .bubble--ink, .btn--orange { --focus: var(--cream); }
.voices .note--cream, .voices .note--lilac, .voices .note--purple { --focus: var(--ink); }

/* Sections: each one is drawn at the design size and scaled by --u */
.sec { --H: 1000; --sec-h: calc(var(--H) * var(--u)); --stage-top: calc((var(--sec-h) - var(--H) * var(--u)) / 2);
  position: relative; overflow: hidden; height: var(--sec-h); background-color: var(--cream); }
.stage { position: absolute; left: 50%; top: var(--stage-top); width: calc(var(--W) * var(--u)); height: calc(var(--H) * var(--u)); translate: -50% 0; }
.pc { position: absolute; margin: 0; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); }

/* ---------- 3. Shared pieces */
/* Chat bubbles: three round corners and one small corner on the side of the speaker.
   bubble--in has the small corner at the bottom left, bubble--out at the bottom right. */
.bubble { border-radius: calc(44 * var(--u)); }
.bubble--in { border-bottom-left-radius: calc(8 * var(--u)); }
.bubble--out { border-bottom-right-radius: calc(8 * var(--u)); }
.bubble--orange { background: var(--orange); color: var(--ink); }
.bubble--cream { background: var(--cream); color: var(--ink); }
.bubble--lilac { background: var(--lilac); color: var(--ink); }
.bubble--purple { background: var(--purple); color: var(--ink); }
.bubble--ink { background: var(--ink); color: var(--cream); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: calc(12 * var(--u)); height: calc(58 * var(--u)); padding: 0 calc(30 * var(--u)) 0 calc(18 * var(--u));
  border: 0; border-radius: calc(40 * var(--u)); cursor: pointer; text-decoration: none; white-space: nowrap; font: 600 calc(18 * var(--u))/1.3 var(--font-text); }
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn:hover { filter: brightness(1.07); }
.play-dot { display: grid; place-items: center; width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; background: var(--cream); color: var(--orange); }
.btn--cream .play-dot { background: var(--ink); color: var(--cream); }
.play-dot svg { width: 100%; height: 100%; fill: currentColor; }
.sec__title { font: 800 calc(var(--tf, 55) * var(--u))/1.2 var(--font-display); letter-spacing: calc(var(--ls, -3) * var(--u)); }

/* Photo spots. EDIT: the gradient shows until a photo is added. */
.photo-slot { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: linear-gradient(170deg, var(--g1), var(--g2)); }
.photo-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot__hint { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: calc(8 * var(--u));
  width: 84%; color: var(--photo-hint); font: 500 calc(14 * var(--u))/1.3 var(--font-text); text-align: center; }
.photo-slot__hint svg { width: calc(var(--hi, 56) * var(--u)); height: calc(var(--hi, 56) * var(--u)); }
.photo-slot > img ~ .photo-slot__hint { display: none; }
.avatar { border-radius: 50%; width: calc(var(--av) * var(--u)); height: calc(var(--av) * var(--u)); }
.avatar--orange, .host__photo--orange { --g1: #ff5a3c; --g2: #8a2a18; }
.host__photo--lilac { --photo-hint: var(--ink); }  /* dark hint on the light lilac photo spot */
.avatar--purple { --g1: #9a86d6; --g2: #3b2f66; }
.avatar--lilac, .host__photo--lilac { --g1: #cdbff0; --g2: #6a55b5; }
.avatar--ink { --g1: #5f5c78; --g2: #1c1b2e; }

/* Sideways rails (phones) */
.rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { flex: none; scroll-snap-align: start; }

/* ---------- 4. Menu */
.topbar { position: fixed; z-index: 20; left: 0; right: 0; top: 0; height: 0; --H: 1078; }
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--nav-h-compact); background: rgb(205 191 240 / .96);
  box-shadow: 0 calc(2 * var(--u)) 0 var(--ink); opacity: 0; translate: 0 -100%; transition: opacity .3s, translate .3s; }
.topbar__stage { position: absolute; left: 50%; top: 0; width: calc(var(--W) * var(--u)); translate: -50% 0; }
.logo { position: absolute; left: calc(var(--lx, 20) * var(--u)); top: calc(var(--ly, 26) * var(--u)); font: 800 calc(30 * var(--u))/1.2 var(--font-display); text-decoration: none; white-space: nowrap; transition: top .3s var(--motion-ease); }
.nav__toggle { position: absolute; left: calc(290 * var(--u)); top: calc(var(--ty, 24) * var(--u)); width: calc(80 * var(--u)); height: calc(40 * var(--u)); border: 0; border-radius: calc(40 * var(--u));
  background: var(--ink); color: var(--cream); font: 600 calc(16 * var(--u))/1 var(--font-text); cursor: pointer; transition: top .3s var(--motion-ease); }
.nav__toggle::after { content: ""; position: absolute; inset: calc(-4 * var(--u)) calc(-2 * var(--u)); }
.nav__panel { position: absolute; left: calc(20 * var(--u)); top: calc(78 * var(--u)); width: calc(350 * var(--u)); padding: calc(18 * var(--u)) calc(26 * var(--u)) calc(24 * var(--u));
  border-radius: calc(44 * var(--u)) calc(8 * var(--u)) calc(44 * var(--u)) calc(44 * var(--u)); background: var(--cream); box-shadow: 0 calc(10 * var(--u)) calc(30 * var(--u)) rgb(28 27 46 / .2);
  opacity: 0; visibility: hidden; translate: 0 calc(-10 * var(--u)); transition: opacity .25s, visibility .25s, translate .25s, top .3s; }
.nav.is-open .nav__panel, .nav__panel:target { opacity: 1; visibility: visible; translate: 0 0; }
/* Menu without JavaScript: the button needs main.js, so a plain link takes its place
   (same look) and the menu opens with :target. A link inside the menu closes it. */
html:not(.js) button.nav__toggle, .js .nav__toggle--link { display: none; }
.nav__toggle--link { text-decoration: none; }
@media (max-width: 1023px) { html:not(.js) .nav__toggle--link { display: grid; place-items: center; } }

.nav__links a { display: block; padding: calc(8 * var(--u)) 0; font: 800 calc(30 * var(--u))/1.25 var(--font-display); text-decoration: none; }
.nav__links a:hover { color: var(--orange-text); }
.nav__listen { margin-top: calc(12 * var(--u)); width: 100%; height: calc(52 * var(--u)); padding: 0; }
.topbar.is-scrolled::before { opacity: 1; translate: 0 0; }
.topbar.is-scrolled .logo { --ly: 14; }
.topbar.is-scrolled .nav__toggle { --ty: 12; }
.topbar.is-scrolled .nav__panel { top: calc(70 * var(--u)); }
.static-nav .topbar { position: absolute; }

/* ---------- 5. Phone layout (390 frame) */
/* HERO */
.hero { --H: 936; background-color: var(--lilac); }
.hero__title { --x: 20; --y: 88; width: calc(350 * var(--u)); height: auto; padding: calc(28 * var(--u)) calc(96 * var(--u)) calc(28 * var(--u)) calc(28 * var(--u)); /* the name keeps two lines */ font: 800 calc(60 * var(--u))/.9 var(--font-display); letter-spacing: calc(-6 * var(--u)); }
.hero__av1 { --x: 20; --y: 276; --av: 52; }
.hero__intro { --x: 20; --y: 352; width: calc(350 * var(--u)); height: auto; padding: calc(28 * var(--u)); font: 500 calc(26 * var(--u))/1.15 var(--font-display); letter-spacing: calc(-1 * var(--u)); }
.hero__av2 { --x: 20; --y: 552; --av: 52; }
.hero__latest { --x: 20; --y: 628; width: calc(350 * var(--u)); height: auto; padding: calc(28 * var(--u)); }
.hero__latest .btn { width: calc(210 * var(--u)); }
.hero__latest p { margin-top: calc(12 * var(--u)); width: calc(296 * var(--u)); font: 500 calc(20 * var(--u))/1.3 var(--font-text); }
.typing { --x: 20; --y: 830; display: flex; gap: calc(8 * var(--u)); align-items: center; justify-content: center; width: calc(114 * var(--u)); height: calc(58 * var(--u));
  border-radius: calc(44 * var(--u)) calc(44 * var(--u)) calc(44 * var(--u)) calc(8 * var(--u)); background: var(--cream); }
.typing i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%; background: var(--ink); }
.typing i:nth-child(2) { opacity: .75; } .typing i:nth-child(3) { opacity: .5; }

/* EPISODES (the thread) */
.episodes { --H: 1856; }
.episodes__title { --x: 20; --y: 56; width: calc(350 * var(--u)); }
.thread { --x: 20; --y: 220; width: calc(350 * var(--u)); display: grid; row-gap: calc(28 * var(--u)); }
.msg { position: relative; display: flex; align-items: flex-start; gap: calc(10 * var(--u)); }
.msg--right { justify-content: flex-start; }
.msg__av { flex: none; position: relative; --av: 44; }
.msg--right .msg__av { order: 2; margin-left: auto; }
.msg__bubble { width: calc(296 * var(--u)); padding: calc(38 * var(--u)) calc(24 * var(--u)) calc(42 * var(--u)); }
.msg__bubble h3 { font: 700 calc(29 * var(--u))/1.1 var(--font-display); letter-spacing: calc(-1 * var(--u)); }
.msg__bubble p { margin-top: calc(18 * var(--u)); font-size: calc(21 * var(--u)); line-height: calc(32 * var(--u)); }
.msg__bubble .btn { margin-top: calc(18 * var(--u)); }

/* VOICE NOTES */
.voices { --H: 666; background-color: var(--ink); color: var(--cream); }
.voices__title { --x: 20; --y: 56; width: calc(350 * var(--u)); --tf: 42; line-height: .95; --ls: -2; }
.voices__intro { --x: 20; --y: 136; width: calc(350 * var(--u)); color: var(--lilac); font-size: calc(21 * var(--u)); line-height: calc(32 * var(--u)); }
.voices__btn { --x: 20; --y: 254; height: calc(55 * var(--u)); padding: 0 calc(30 * var(--u)); }
.notes { --x: 0; --y: 341; width: calc(390 * var(--u)); gap: calc(16 * var(--u)); padding: 0 calc(20 * var(--u)); scroll-padding-left: calc(20 * var(--u)); }
.note { position: relative; width: calc(310 * var(--u)); min-height: calc(269 * var(--u)); padding: calc(30 * var(--u)) calc(28 * var(--u)) calc(28 * var(--u));
  border-radius: calc(44 * var(--u)) calc(44 * var(--u)) calc(44 * var(--u)) calc(8 * var(--u)); --wave: var(--ink); --dot: #000; --tri: var(--cream); }
.note--out { border-radius: calc(44 * var(--u)) calc(44 * var(--u)) calc(8 * var(--u)) calc(44 * var(--u)); }
.note--lilac { background: var(--lilac); color: var(--ink); }
.note--cream { background: var(--cream); color: var(--ink); --dot: var(--orange); --tri: var(--ink); }
.note--orange { background: var(--orange); color: var(--ink); --dot: var(--cream); --tri: var(--orange); }
.note--purple { background: var(--purple); color: var(--ink); }
.note__player { display: flex; align-items: center; gap: calc(16 * var(--u)); height: calc(56 * var(--u)); }
.note__play { flex: none; display: grid; place-items: center; width: calc(56 * var(--u)); height: calc(56 * var(--u)); padding: 0; border: 0; border-radius: 50%; background: var(--dot); color: var(--tri); cursor: pointer; }
.note__play svg { width: calc(34 * var(--u)); height: calc(34 * var(--u)); fill: currentColor; translate: calc(2 * var(--u)) 0; }
.note__play[aria-pressed="true"] svg { opacity: .3; }
.note__wave { flex: 1; height: calc(56 * var(--u)); fill: var(--wave); }
.note.is-playing .note__wave { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.note h3 { margin-top: calc(18 * var(--u)); font: 700 calc(27 * var(--u))/1.12 var(--font-display); }
.note p { margin-top: calc(18 * var(--u)); font: 500 calc(18 * var(--u))/1.3 var(--font-text); }

/* HOSTS */
.hosts { --H: 780; }
.hosts__title { --x: 20; --y: 56; }
.hostlist { --x: 0; --y: 154; width: calc(390 * var(--u)); gap: calc(16 * var(--u)); padding: 0 calc(20 * var(--u)); scroll-padding-left: calc(20 * var(--u)); }
.host { position: relative; width: calc(290 * var(--u)); height: calc(570 * var(--u)); }
.host__photo { inset: auto; left: 0; top: 0; width: 100%; height: calc(280 * var(--u)); border-radius: calc(40 * var(--u)); }
.host__bubble { position: absolute; left: 0; top: calc(300 * var(--u)); width: 100%; min-height: calc(270 * var(--u)); padding: calc(30 * var(--u)) calc(36 * var(--u)); }
.host__bubble h3 { font: 700 calc(32 * var(--u))/1.2 var(--font-display); }
.host__bubble p { margin-top: calc(10 * var(--u)); font-size: calc(21 * var(--u)); line-height: calc(32 * var(--u)); }

/* LISTEN */
.listen { --H: 649; background-color: var(--orange); color: var(--ink); }
.listen__title { --x: 20; --y: 56; width: calc(350 * var(--u)); font: 800 calc(48 * var(--u))/.95 var(--font-display); letter-spacing: calc(-2.5 * var(--u)); }
.platforms { --x: 20; --y: 180; width: calc(350 * var(--u)); display: grid; row-gap: calc(12 * var(--u)); }
.platforms a { display: flex; align-items: center; justify-content: center; height: calc(73 * var(--u)); padding: 0 calc(38 * var(--u)); border-radius: calc(50 * var(--u)); background: var(--cream);
  font: 700 calc(24 * var(--u))/1.2 var(--font-display); text-decoration: none; }
.platforms a:hover { background: #fff; }

/* SAY HI (be a guest) */
.guest { --H: 882; background-color: var(--lilac); }
.guest__title { --x: 20; --y: 56; width: calc(350 * var(--u)); font: 800 calc(48 * var(--u))/.92 var(--font-display); letter-spacing: calc(-2.5 * var(--u)); }
.guest__text { --x: 20; --y: 172; width: calc(350 * var(--u)); font-size: calc(22 * var(--u)); line-height: 1.5; }
.guest__mail { --x: 20; --y: 332; color: var(--orange-text); font: 700 calc(26 * var(--u))/1.2 var(--font-display); text-decoration: none; white-space: nowrap; }
.guest__mail:hover { text-decoration: underline; }
.form { --x: 20; --y: 395; width: calc(350 * var(--u)); display: grid; row-gap: calc(16 * var(--u)); }
.form input, .form textarea { display: block; width: 100%; height: calc(70 * var(--u)); padding: 0 calc(34 * var(--u)); border: 0; border-radius: calc(44 * var(--u)) calc(44 * var(--u)) calc(8 * var(--u)) calc(44 * var(--u));
  background: var(--cream); color: var(--ink); font: 500 max(16px, calc(20 * var(--u)))/1.3 var(--font-text); }
.form textarea { height: calc(168 * var(--u)); padding-top: calc(26 * var(--u)); resize: none; }
.form ::placeholder { color: var(--grey); opacity: 1; }
.form__send { justify-self: end; width: calc(231 * var(--u)); height: calc(75 * var(--u)); border: 0; border-radius: calc(50 * var(--u)) calc(50 * var(--u)) calc(8 * var(--u)) calc(50 * var(--u));
  background: var(--ink); color: var(--cream); font: 700 calc(26 * var(--u))/1.2 var(--font-display); cursor: pointer; --focus: var(--ink); }
.form__send:hover { filter: brightness(1.3); }

/* FOOTER */
.footer { --H: 151; background-color: var(--ink); color: var(--cream); }
.footer__logo { --x: 20; --y: 48; font: 800 calc(27 * var(--u))/1.2 var(--font-display); }
.footer__links { --x: 20; --y: 80; display: flex; gap: calc(32 * var(--u)); color: var(--lilac); font: 500 calc(18 * var(--u))/1.3 var(--font-text); }
.footer__links a { display: block; text-decoration: none; padding: calc(11 * var(--u)) 0; margin: calc(-11 * var(--u)) 0; }
.footer__links a:hover { text-decoration: underline; }

/* ---------- 6. Desktop layout (1440 frame). From 1024 px wide.
   Each section scales to fit the screen: as wide as the screen allows (up to 1440)
   and never taller than the screen, but never smaller than 60 % of the width scale. */
@media (min-width: 1024px) {
  :root { --W: 1440; --nav-h-compact: 72px; --kw: calc(min(100cqi, 1440px) / 1440); }
  .sec, .topbar { --u: max(min(var(--kw), 100svh / var(--H)), var(--kw) * .6); }
  .sec { --sec-h: max(100svh, var(--H) * var(--u)); }

  /* menu */
  .topbar { --H: 1040; }
  .topbar__stage { top: calc((max(100svh, 1040 * var(--u)) - 1040 * var(--u)) / 2); transition: top .3s var(--motion-ease); }
  .topbar.is-scrolled .topbar__stage { top: 0; }
  .logo { --lx: 64; --ly: 32; }
  .topbar.is-scrolled .logo { --ly: 18; }
  .nav__toggle { display: none; }
  .nav__panel { left: calc(865 * var(--u)); top: calc(var(--ny, 26.5) * var(--u)); width: auto; padding: 0; display: flex; align-items: center; gap: calc(36 * var(--u)); background: none; box-shadow: none; border-radius: 0;
    opacity: 1; visibility: visible; translate: none; transition: top .3s var(--motion-ease); }
  .topbar.is-scrolled .nav__panel { --ny: 12.5; top: calc(var(--ny) * var(--u)); }
  .nav__links { display: flex; gap: calc(36 * var(--u)); }
  .nav__links a { padding: calc(12 * var(--u)) 0; font: 500 calc(18 * var(--u))/1.3 var(--font-text); }
  .nav__listen { margin: 0; width: calc(147 * var(--u)); height: calc(47 * var(--u)); padding: 0; }

  /* hero */
  .hero { --H: 1040; }
  .hero__title { --x: 250; --y: 170; width: calc(1066 * var(--u)); height: calc(268 * var(--u)); padding: calc(40 * var(--u)) calc(56 * var(--u)) 0; font-size: calc(200 * var(--u)); white-space: nowrap; }
  .hero__av1 { --x: 64; --y: 360; --av: 150; }
  .hero__intro { --x: 540; --y: 560; width: calc(716 * var(--u)); height: calc(292 * var(--u)); padding: calc(38 * var(--u)) calc(48 * var(--u)) 0; font-size: calc(46 * var(--u)); }
  .hero__av2 { --x: 1226; --y: 630; --av: 150; }
  .hero__latest { --x: 64; --y: 830; width: calc(586 * var(--u)); height: calc(98 * var(--u)); padding: calc(20 * var(--u)); display: flex; align-items: center; gap: calc(18 * var(--u)); }
  .hero__latest p { margin: 0; width: auto; white-space: nowrap; }
  .typing { --x: 940; --y: 850; }

  /* episodes */
  .episodes { --H: 1580; }
  .episodes__title { --x: 64; --y: 130; width: auto; --tf: 110; white-space: nowrap; }
  .thread { --x: 64; --y: 318; width: calc(1312 * var(--u)); }
  .msg { align-items: flex-end; gap: calc(20 * var(--u)); }
  .msg--right { padding-left: calc(296 * var(--u)); gap: calc(20 * var(--u)); }
  .msg__av { --av: 96; }
  .msg__bubble { width: calc(900 * var(--u)); padding: calc(38 * var(--u)) calc(48 * var(--u)) calc(42 * var(--u)); }
  .msg__bubble h3 { font-size: calc(44 * var(--u)); }
  .msg__bubble p { width: calc(800 * var(--u)); }

  /* voice notes */
  .voices { --H: 1373; }
  .voices__title { --x: 64; --y: 120; width: calc(700 * var(--u)); --tf: 84; }
  .voices__intro { --x: 956; --y: 139; width: calc(420 * var(--u)); }
  .voices__btn { --x: 956; --y: 225; }
  .notes { --x: 64; --y: 340; width: calc(1312 * var(--u)); height: calc(903 * var(--u)); padding: 0; overflow: visible; display: block; }
  /* two staggered columns, placed as in the design */
  .notes > li { position: absolute; left: calc(var(--nx) * var(--u)); top: calc(var(--ny) * var(--u)); }
  .notes > li:nth-child(1) { --nx: 0; --ny: 0; }   .notes > li:nth-child(2) { --nx: 0; --ny: 287; }   .notes > li:nth-child(3) { --nx: 0; --ny: 536; }
  .notes > li:nth-child(4) { --nx: 670; --ny: 70; } .notes > li:nth-child(5) { --nx: 670; --ny: 357; } .notes > li:nth-child(6) { --nx: 670; --ny: 644; }
  .note { width: calc(642 * var(--u)); min-height: 0; padding: calc(30 * var(--u)) calc(36 * var(--u)) calc(34 * var(--u)); }
  .note__player { height: calc(60 * var(--u)); }
  .note__wave { flex: none; width: calc(330 * var(--u)); height: calc(60 * var(--u)); }
  .note h3 { font-size: calc(34 * var(--u)); }

  /* hosts */
  .hosts { --H: 1172; }
  .hosts__title { --x: 64; --y: 130; --tf: 110; }
  .hostlist { --x: 64; --y: 318; width: calc(1312 * var(--u)); padding: 0; overflow: visible; gap: calc(32 * var(--u)); }
  .host { width: calc(640 * var(--u)); height: calc(724 * var(--u)); }
  .host__photo { width: calc(616 * var(--u)); height: calc(520 * var(--u)); }
  .host__bubble { top: calc(540 * var(--u)); min-height: calc(184 * var(--u)); }
  .host__bubble h3 { font-size: calc(40 * var(--u)); }

  /* listen */
  /* not stretched to the screen: the same 130 above the title and under the buttons as the other sections */
  .listen { --H: 479; --sec-h: calc(var(--H) * var(--u)); }
  .listen__title { --x: 64; --y: 130; width: auto; font-size: calc(96 * var(--u)); white-space: nowrap; }
  .platforms { --x: 64; --y: 269; width: auto; display: flex; gap: calc(18 * var(--u)); }
  .platforms a { height: calc(80 * var(--u)); font-size: calc(30 * var(--u)); }

  /* guest form and the footer share the last screen */
  /* the title sits 40 px under the slim bar when the page is scrolled to the end (the "Say hi" link) */
  .guest { --H: 802; --sec-h: calc(max(100svh, 802 * var(--u)) - 137 * var(--u)); --stage-top: calc(var(--nav-h-compact) + 40px - 130 * var(--u)); }
  .guest .stage { height: calc(665 * var(--u)); }
  .guest__title { --x: 64; --y: 130; width: calc(520 * var(--u)); font-size: calc(96 * var(--u)); }
  .guest__text { --x: 64; --y: 334; width: calc(480 * var(--u)); }
  .guest__mail { --x: 64; --y: 461; }
  .form { --x: 664; --y: 130; width: calc(712 * var(--u)); }
  .form textarea { height: calc(142 * var(--u)); }
  .form__send { width: calc(271 * var(--u)); }

  .footer { --H: 802; --sec-h: calc(137 * var(--u)); --stage-top: 0px; }
  .footer .stage { height: calc(137 * var(--u)); }
  .footer__logo { --x: 64; --y: 48; font-size: calc(34 * var(--u)); }
  .footer__links { --x: auto; left: auto; right: calc(64 * var(--u)); --y: 57; }
}

/* ---------- 7. Animations (only with the "motion" class, see index.html).
   Nothing starts hidden until main.js adds "pc-reveal", so the page always
   shows up complete without JavaScript. To turn them all off: class="no-motion" on <html>. */
.motion.pc-reveal [data-reveal] { transition: opacity var(--motion-dur) var(--motion-ease), translate var(--motion-dur) var(--motion-ease), scale var(--motion-dur) var(--motion-pop);
  transition-delay: calc(var(--i, 0) * var(--motion-step)); }
/* titles rise */
.motion.pc-reveal [data-reveal="rise"]:not(.is-in) { opacity: 0; translate: 0 calc(var(--motion-rise) * var(--u)); }
/* chat bubbles pop in from their speaker's side, one message after another */
.motion.pc-reveal [data-reveal="chat"]:not(.is-in) { opacity: 0; scale: .85; translate: 0 calc(16 * var(--u)); }
.motion.pc-reveal .bubble--in[data-reveal], .motion.pc-reveal .msg--left[data-reveal], .motion.pc-reveal .note:not(.note--out)[data-reveal] { transform-origin: 0 100%; }
.motion.pc-reveal .bubble--out[data-reveal], .motion.pc-reveal .msg--right[data-reveal], .motion.pc-reveal .note--out[data-reveal], .motion.pc-reveal .form__send { transform-origin: 100% 100%; }
/* avatars and platform pills pop */
.motion.pc-reveal [data-reveal="pop"]:not(.is-in) { opacity: 0; scale: .5; }
/* the "typing" dots keep bouncing */
.motion .typing i { animation: bounce var(--motion-typing) ease-in-out infinite; }
.motion .typing i:nth-child(2) { animation-delay: .15s; } .motion .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { translate: 0 calc(-6 * var(--u)); } 60% { translate: 0 0; } }
/* used by main.js: "pc-still" jumps without animating, "pc-measure" puts every piece in its final place */
.pc-still *, .pc-still *::before, .pc-still *::after { transition: none !important; }
.pc-measure [data-reveal], .pc-measure [data-reveal] * { opacity: 1 !important; translate: none !important; scale: none !important; }

/* DEMO ONLY: note after sending the form, template and photo credits under the footer */
.demo-note { justify-self: end; margin: 0; padding: calc(6 * var(--u)) calc(18 * var(--u)); margin-top: calc(-6 * var(--u)); border-radius: calc(30 * var(--u)) calc(30 * var(--u)) calc(8 * var(--u)) calc(30 * var(--u)); background: var(--cream); color: var(--ink); font: 600 calc(15 * var(--u))/1.3 var(--font-text); }
.demo-credit { background: var(--ink); color: var(--cream); padding: 22px 20px 28px; font: 400 13px/1.5 var(--font-text); }
.demo-credit p { width: min(100%, 390px); margin: 0 auto 6px; opacity: .8; }
@media (min-width: 1024px) { .demo-note { margin-top: 0; padding: calc(12 * var(--u)) calc(20 * var(--u)); font-size: calc(17 * var(--u)); } .demo-credit { padding: 24px 56px 32px; font-size: 14px; } .demo-credit p { width: min(100%, 1328px); } }
