/* =====================================================================
   Mochi Static · Lo-fi v1
   Plain CSS, no build step. Sections:
   1. Settings (colors, fonts, motion)   2. Base   3. Shared pieces
   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
   Pieces are placed with numbers from the design: --x and --y (top left
   corner), sizes and --r (angle), in design pixels. One design pixel = --u.
   ===================================================================== */

/* Fonts, loaded from the fonts folder (see README to load them from Google instead) */
@font-face { font-family: "Baloo 2"; src: url("../../fonts/baloo-2-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../../fonts/nunito-latin.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

/* ---------- 1. Settings. EDIT: colors, fonts and motion live here. */
:root {
  --teal: #9fc9c0;       /* the striped bedroom wall */
  --stripe: #92beb5;     /* the darker wall stripes (at 55 %) */
  --plum: #5a3b55;       /* titles, player, laptop, footer */
  --ink: #2a1f2d;        /* body text, record discs, button text */
  --cream: #fff4e0;      /* light buttons, calendar, laptop screen */
  --coral: #ff8a6b;      /* buttons, record labels, calendar top, mat */
  --coral-deep: #b94a30; /* "Tickets" links: coral that reads on cream (4.7:1) */
  --yellow: #ffd27a;     /* player keys, laptop bar, footer links */
  --wood: #b98a62;       /* shelf, desk, cork frame */
  --cork: #c99b6d;
  --photo-hint: #fff4e0; /* "replace with photo" text on the empty photo spots */
  --photo-top: #a3707a;  /* empty photo spots: gradient until a photo is added */
  --photo-bottom: #2a1f2d;
  --shadow: drop-shadow(0 calc(10 * var(--u)) calc(8 * var(--u)) rgb(41 31 46 / .3));
  --focus: #2a1f2d;

  --font-display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-text: "Nunito", "Segoe UI", Arial, sans-serif;

  /* Motion. Durations in ms, distances in design pixels. */
  --motion-dur: 900ms;          /* pieces coming in */
  --motion-step: 120ms;         /* delay between pieces that come into view together */
  --motion-rise: 24;            /* how far blocks rise while they fade in */
  --motion-float: 6;            /* how far the window and the lamp drift up and down, forever */
  --motion-float-time: 6s;      /* one slow drift of the window and the lamp */
  --motion-spin: 3s;            /* one turn of a record while the mouse is over it */
  --motion-ease: cubic-bezier(.2, .8, .2, 1);
  --motion-soft: cubic-bezier(.34, 1.3, .5, 1);

  --nav-h-compact: 56px;        /* 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(--teal); 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: 100px; background: var(--plum); color: var(--cream); font: 700 16px/1.2 var(--font-display); text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.footer, .player { --focus: var(--yellow); }

/* Sections: each one is a piece of the striped wall 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); --sw: 30;
  position: relative; overflow: hidden; height: var(--sec-h); background-color: var(--teal);
  background-image: linear-gradient(90deg, rgb(146 190 181 / .55) 0 50%, transparent 0);
  background-size: calc(var(--sw) * 2 * var(--u)) 100%; background-position: calc((100cqi - var(--W) * var(--u)) / 2) 0; }
.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)); rotate: var(--r, 0deg); transform-origin: var(--o, 0 0); }

/* ---------- 3. Shared pieces */
.btn { display: flex; align-items: center; justify-content: center; border: 0; border-radius: 100px; cursor: pointer; text-decoration: none;
  font: 700 calc(22 * var(--u))/1.6 var(--font-display); filter: var(--shadow); }
.btn--coral { background: var(--coral); color: var(--ink); }
.btn--cream { background: var(--cream); color: var(--plum); }
.btn:hover { filter: var(--shadow) brightness(1.06); translate: 0 calc(-2 * var(--u)); }
.sec__title { color: var(--plum); font: 800 calc(var(--tf, 56) * var(--u))/1.05 var(--font-display); letter-spacing: -.018em; }

/* Photo spots. EDIT: the gradient shows until a photo is added. */
.photo-slot { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, var(--photo-top), var(--photo-bottom)); }
.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: 600 calc(var(--hf, 11) * var(--u))/1.25 var(--font-text); text-align: center; }
.photo-slot__hint svg { width: calc(var(--hi, 34) * var(--u)); height: calc(var(--hi, 34) * var(--u)); }
.photo-slot > img ~ .photo-slot__hint { display: none; }

/* 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: 1214.6; }
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--nav-h-compact); background: rgb(255 244 224 / .96);
  box-shadow: 0 calc(3 * var(--u)) 0 var(--plum); 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, 72.6) * var(--u)); color: var(--plum); font: 700 calc(var(--lf, 30) * var(--u))/1.6 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, 76.6) * var(--u)); width: calc(80 * var(--u)); height: calc(40 * var(--u)); border: 0; border-radius: 100px;
  background: var(--cream); color: var(--plum); font: 700 calc(18 * var(--u))/1 var(--font-display); cursor: pointer; filter: var(--shadow); transition: top .3s var(--motion-ease); }
.nav__toggle::after { content: ""; position: absolute; inset: calc(-4 * var(--u)) calc(-2 * var(--u)); }
.nav__links { position: absolute; left: calc(20 * var(--u)); top: calc(126 * var(--u)); width: calc(350 * var(--u)); padding: calc(16 * var(--u)) calc(24 * var(--u));
  border-radius: calc(20 * var(--u)); background: var(--cream); box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--plum); filter: var(--shadow);
  opacity: 0; visibility: hidden; translate: 0 calc(-10 * var(--u)); transition: opacity .25s, visibility .25s, translate .25s, top .3s; }
.nav.is-open .nav__links, .nav__links: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; color: var(--plum); font: 800 calc(28 * var(--u))/1.3 var(--font-display); text-decoration: none; }
.nav__links a:hover { color: var(--coral-deep); }
.topbar.is-scrolled::before { opacity: 1; translate: 0 0; }
.topbar.is-scrolled .logo { --ly: 4; }
.topbar.is-scrolled .nav__toggle { --ty: 8; }
.topbar.is-scrolled .nav__links { top: calc(62 * var(--u)); }
.static-nav .topbar { position: absolute; }

/* ---------- 5. Phone layout (390 frame) */
/* HERO */
.hero { --H: 1214.6; }
.bunting { position: absolute; left: calc((100% - var(--W) * var(--u)) / 2); top: var(--stage-top); width: calc(var(--W) * var(--u)); z-index: 1; pointer-events: none; }
.bunting img { width: 100%; height: auto; }
.hero__title { --x: 20; --y: 136.6; color: var(--plum); font: 800 calc(104 * var(--u))/.78 var(--font-display); letter-spacing: -.018em; margin-top: calc(-1 * var(--u)); }
.hero__intro { --x: 20; --y: 314.6; width: calc(350 * var(--u)); font-size: calc(20 * var(--u)); line-height: 1.5; }
.hero__play { --x: 20; --y: 420.6; width: calc(350 * var(--u)); height: calc(68 * var(--u)); }
.hero__shows { --x: 20; --y: 500.6; width: calc(350 * var(--u)); height: calc(68 * var(--u)); }
.window { --x: 20; --y: 594.6; width: calc(304 * var(--u)); height: calc(368 * var(--u)); }
.lamp { --x: 248; --y: 624.6; width: calc(120 * var(--u)); height: calc(256 * var(--u)); }
.player { --x: 20; --y: 994.6; width: calc(350 * var(--u)); height: calc(161 * var(--u)); border-radius: calc(16.8 * var(--u)); background: var(--plum); filter: var(--shadow); --k: .7; }
.player > * { position: absolute; }
.player__screen { left: calc(18 * var(--k) * var(--u)); top: calc(18 * var(--k) * var(--u)); width: calc(464 * var(--k) * var(--u)); height: calc(126 * var(--k) * var(--u)); border-radius: calc(14 * var(--k) * var(--u)); background: var(--cream); overflow: hidden; }
.player__tape { width: 100%; height: 100%; }
.player__now { left: calc(22 * var(--k) * var(--u)); top: calc(156 * var(--k) * var(--u)); color: var(--cream); font: 600 calc(20 * var(--k) * var(--u))/1.35 var(--font-text); white-space: nowrap; }
.player__keys { left: calc(22 * var(--k) * var(--u)); top: calc(186 * var(--k) * var(--u)); display: flex; gap: calc(12 * var(--k) * var(--u)); }
.player__keys i { width: calc(76 * var(--k) * var(--u)); height: calc(34 * var(--k) * var(--u)); border-radius: calc(8 * var(--k) * var(--u)); background: var(--yellow); }
.player__keys i:first-child { background: var(--coral); }

/* NEW SONGS (records) */
.songs { --H: 549; }
.shelf { display: none; }
.songs__title { --x: 20; --y: 40; }
.songs__intro { --x: 20; --y: 115; width: calc(350 * var(--u)); font-size: calc(18 * var(--u)); line-height: 1.5; }
.records { --x: 0; --y: 185; width: calc(390 * var(--u)); gap: calc(12 * var(--u)); padding: 0 calc(20 * var(--u)); scroll-padding-left: calc(20 * var(--u)); }
.record { position: relative; width: calc(306 * var(--u)); height: calc(324 * var(--u)); --k: .6875; }
.record > * { position: absolute; }
.record__disc { left: calc(100 * var(--u)); top: calc(14 * var(--u)); width: calc(206 * var(--u)); height: calc(206 * var(--u)); border-radius: 50%; background: var(--ink); transition: rotate .6s var(--motion-ease); }
.record__label { left: calc(172 * var(--u)); top: calc(86 * var(--u)); width: calc(62 * var(--u)); height: calc(62 * var(--u)); border-radius: 50%; background: var(--coral); }
.record__cover { inset: auto; left: calc(2 * var(--u)); top: calc(8 * var(--u)); width: calc(220 * var(--u)); height: calc(220 * var(--u)); rotate: var(--cr, 2deg); transform-origin: 0 0; filter: var(--shadow); }
.record:nth-child(2) { --cr: -1.5deg; } .record:nth-child(3) { --cr: 1deg; }
.record__name { left: 0; top: calc(246 * var(--u)); font: 700 calc(28 * var(--u))/1.6 var(--font-display); white-space: nowrap; }
.record__meta { left: 0; top: calc(301 * var(--u)); color: var(--plum); font: 600 calc(17 * var(--u))/1.35 var(--font-text); white-space: nowrap; }
.record__meta a { position: relative; margin-left: .35em; text-decoration: none; }
.record__meta a::after { content: ""; position: absolute; inset: calc(-12 * var(--u)) calc(-5 * var(--u)); }
.record__meta a:hover { text-decoration: underline; }

/* SHOWS (the calendar) */
.shows { --H: 1156; }
.shows__title { --x: 20; --y: 40; }
.calendar { --x: 20; --y: 115; width: calc(350 * var(--u)); height: calc(865 * var(--u)); border-radius: calc(6 * var(--u)); background: var(--cream); filter: var(--shadow); }
.calendar__head { height: calc(82 * var(--u)); padding: calc(22 * var(--u)) calc(24 * var(--u)) 0; border-radius: calc(6 * var(--u)) calc(6 * var(--u)) 0 0; background: var(--coral); color: var(--ink);
  font: 800 calc(44 * var(--u))/1.05 var(--font-display); }
.calendar__pins i { position: absolute; top: calc(-10 * var(--u)); width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; background: var(--ink); z-index: 1; }
.calendar__pins i:nth-child(1) { left: calc(60 * var(--u)); } .calendar__pins i:nth-child(2) { left: calc(160 * var(--u)); } .calendar__pins i:nth-child(3) { left: calc(260 * var(--u)); }
.calendar__list { position: absolute; left: calc(24 * var(--u)); top: calc(90 * var(--u)); width: calc(302 * var(--u)); }
.show { position: relative; height: calc(153 * var(--u)); border-bottom: calc(2 * var(--u)) solid rgb(42 31 45 / .2); }
.show:last-child { border-bottom: 0; }
.show > * { position: absolute; left: 0; }
.show__date { top: calc(14 * var(--u)); color: var(--plum); font: 800 calc(36 * var(--u))/1.6 var(--font-display); }
.show__venue { top: calc(74 * var(--u)); font: 700 calc(24 * var(--u))/1.6 var(--font-display); }
.show__city { top: calc(114 * var(--u)); color: var(--plum); font-size: calc(17 * var(--u)); line-height: 1.35; }
.show__tix { left: auto; right: 0; top: calc(27 * var(--u)); color: var(--coral-deep); font: 700 calc(20 * var(--u))/1.6 var(--font-display); text-decoration: none; }
.show__tix::after { content: ""; position: absolute; inset: calc(-6 * var(--u)) calc(-8 * var(--u)); }
.show__tix:hover { text-decoration: underline; }
.plant { width: calc(120 * var(--u)); height: calc(120 * var(--u)); }
.plant--1 { --x: 20; --y: 996; } .plant--2 { --x: 250; --y: 996; }

/* PHOTOS (cork board). BOARD: each photo has --px --py (corner), --pw --ph (size), --pr (angle) and a pin color. */
.photos { --H: 865; }
.photos__title { --x: 20; --y: 40; width: calc(350 * var(--u)); }
.board { --x: 20; --y: 174; width: calc(350 * var(--u)); height: calc(651 * var(--u)); border-radius: calc(6 * var(--u)); background: var(--cork) url("../svg/m-cork.svg") 0 0 / 100% 100%; }
.pin-photo { position: absolute; left: calc(var(--px) * var(--u)); top: calc(var(--py) * var(--u)); width: calc(var(--pw) * var(--u)); height: calc(var(--ph) * var(--u)); rotate: var(--pr); transform-origin: 0 0; filter: var(--shadow); --hf: 9; --hi: 24; }
.pin-photo::after { content: ""; position: absolute; left: calc(50% - var(--pd) * var(--u) / 2); top: calc(var(--pd) * -.55 * var(--u)); width: calc(var(--pd) * var(--u)); height: calc(var(--pd) * var(--u)); border-radius: 50%; background: var(--pin); --pd: 14; }
/* BOARD, phone (two columns) */
.pin-photo:nth-child(1) { --px: 22; --py: 34; --pw: 140; --ph: 140; --pr: 3deg; --pin: var(--coral); }
.pin-photo:nth-child(2) { --px: 187; --py: 34; --pw: 140; --ph: 184.8; --pr: -2deg; --pin: var(--yellow); }
.pin-photo:nth-child(3) { --px: 22; --py: 206; --pw: 140; --ph: 110.3; --pr: 2deg; --pin: var(--plum); }
.pin-photo:nth-child(4) { --px: 187; --py: 251; --pw: 140; --ph: 150; --pr: -3deg; --pin: var(--coral); }
.pin-photo:nth-child(5) { --px: 22; --py: 348; --pw: 140; --ph: 95; --pr: -2deg; --pin: var(--yellow); }
.pin-photo:nth-child(6) { --px: 187; --py: 433; --pw: 140; --ph: 84; --pr: 2deg; --pin: var(--plum); }
.pin-photo:nth-child(7) { --px: 22; --py: 475; --pw: 140; --ph: 127.3; --pr: -3deg; --pin: var(--coral); }
.board__note { position: absolute; left: calc(181 * var(--u)); top: calc(539 * var(--u)); width: calc(151 * var(--u)); color: var(--plum); font: 700 calc(20 * var(--u))/1.1 var(--font-display); }

/* SAY HI (contact on the laptop) */
.hi { --H: 841; }
.hi__title { --x: 20; --y: 40; color: var(--plum); font: 800 calc(64 * var(--u))/1.05 var(--font-display); letter-spacing: -.02em; }
.hi__text { --x: 20; --y: 121; width: calc(350 * var(--u)); font-size: calc(18 * var(--u)); line-height: 1.5; }
.hi__mail { --x: 20; --y: 216; color: var(--plum); font: 800 calc(24 * var(--u))/1.6 var(--font-display); text-decoration: none; white-space: nowrap; }
.hi__mail:hover { text-decoration: underline; }
.laptop { --x: 20; --y: 268; width: calc(350 * var(--u)); height: calc(470 * var(--u)); border-radius: calc(14 * var(--u)); background: var(--plum); filter: var(--shadow); }
.laptop__screen { position: absolute; left: calc(10 * var(--u)); top: calc(10 * var(--u)); width: calc(330 * var(--u)); height: calc(450 * var(--u)); overflow: hidden; border-radius: calc(6 * var(--u)); background: var(--cream); }
.laptop__bar { position: absolute; left: 0; top: 0; width: 100%; height: calc(40 * var(--u)); background: var(--yellow); }
.laptop__bar i { position: absolute; top: calc(13 * var(--u)); width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%; background: var(--coral); }
.laptop__bar i:nth-child(1) { left: calc(16 * var(--u)); } .laptop__bar i:nth-child(2) { left: calc(40 * var(--u)); background: var(--plum); } .laptop__bar i:nth-child(3) { left: calc(64 * var(--u)); background: var(--teal); }
.laptop__title { position: absolute; left: calc(16 * var(--u)); top: calc(54 * var(--u)); font: 700 calc(24 * var(--u))/1.6 var(--font-display); }
.form { position: absolute; left: calc(16 * var(--u)); top: calc(106 * var(--u)); width: calc(298 * var(--u)); display: grid; row-gap: calc(14 * var(--u)); }
.form input, .form textarea { display: block; width: 100%; height: calc(52 * var(--u)); padding: 0 calc(20 * var(--u)); border: 0; border-radius: calc(12 * var(--u)); background: var(--teal); color: var(--ink);
  font: 400 max(16px, calc(20 * var(--u)))/1.35 var(--font-text); }
.form textarea { height: calc(110 * var(--u)); padding-top: calc(14 * var(--u)); resize: none; }
.form ::placeholder { color: var(--plum); opacity: 1; }
.form__send { height: calc(56 * var(--u)); }
.desk { display: none; }
.mat { --x: 20; --y: 752; width: calc(350 * var(--u)); height: calc(49 * var(--u)); border-radius: 100px; background: var(--coral); --k: .7; }
.mat i { position: absolute; top: calc(28 * var(--k) * var(--u)); width: calc(70 * var(--k) * var(--u)); height: calc(14 * var(--k) * var(--u)); border-radius: 100px; background: var(--cream); }
.mat i:nth-child(1) { left: calc(50 * var(--k) * var(--u)); } .mat i:nth-child(2) { left: calc(160 * var(--k) * var(--u)); } .mat i:nth-child(3) { left: calc(270 * var(--k) * var(--u)); } .mat i:nth-child(4) { left: calc(380 * var(--k) * var(--u)); }

/* FOOTER */
.footer { --H: 234; background: var(--plum); color: var(--cream); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(12 * var(--u)); background: var(--wood); }
.footer__logo { --x: 20; --y: 40; font: 800 calc(44 * var(--u))/1.05 var(--font-display); }
.footer__links { --x: 20; --y: 100; width: calc(350 * var(--u)); display: flex; flex-wrap: wrap; column-gap: calc(20 * var(--u)); row-gap: calc(8 * var(--u)); }
.footer__links a { color: var(--yellow); font: 600 calc(22 * var(--u))/1.35 var(--font-text); }
.footer__copy { --x: 20; --y: 182; color: var(--teal); font-size: calc(15 * var(--u)); line-height: 1.35; }

/* ---------- 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. */
/* TOUCH AREA
   Small text links get an invisible area at least 26 px tall around them (WCAG target size).
   It only makes the clickable area bigger: nothing on screen moves. */
.nav__links a, .footer__links a { position: relative; }
.nav__links a::after, .footer__links a::after { content: ""; position: absolute; left: 0; right: 0; top: min(0px, calc(50% - 13px)); bottom: min(0px, calc(50% - 13px)); }

@media (min-width: 1024px) {
  :root { --W: 1440; --nav-h-compact: 64px; --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)); --sw: 60; }

  /* menu */
  .topbar { --H: 1000; }
  .topbar__stage { top: calc((max(100svh, 1000 * var(--u)) - 1000 * var(--u)) / 2); transition: top .3s var(--motion-ease); }
  .topbar.is-scrolled .topbar__stage { top: 0; }
  .logo { --lx: 50; --ly: 92; --lf: 32; }
  .topbar.is-scrolled .logo { --ly: 6; }
  .nav__toggle { display: none; }
  .nav__links { left: calc(800 * var(--u)); top: calc(var(--ny, 96) * var(--u)); width: auto; padding: 0; display: flex; gap: calc(38 * var(--u)); border-radius: 0; background: none; box-shadow: none; filter: none;
    opacity: 1; visibility: visible; translate: none; transition: top .3s var(--motion-ease); }
  .nav__links a { padding: 0; color: var(--ink); font: 600 calc(21 * var(--u))/1.35 var(--font-text); text-decoration: underline; text-underline-offset: .15em; }
  .topbar.is-scrolled .nav__links { --ny: 17; top: calc(var(--ny) * var(--u)); }
  .sec__title { --tf: 110; line-height: 1.6; }

  /* hero */
  .hero { --H: 1000; }
  .hero__title { --x: 46; --y: 170; font-size: calc(220 * var(--u)); line-height: .812; margin-top: calc(-3.5 * var(--u)); }
  .hero__intro { --x: 60; --y: 520; width: calc(520 * var(--u)); font-size: calc(26 * var(--u)); }
  .hero__play { --x: 60; --y: 700; width: calc(220 * var(--u)); }
  .hero__shows { --x: 300; --y: 700; width: calc(240 * var(--u)); }
  .window { --x: 980; --y: 150; width: calc(380 * var(--u)); height: calc(460 * var(--u)); }
  .lamp { --x: 1260; --y: 180; width: calc(150 * var(--u)); height: calc(320 * var(--u)); }
  .player { --x: 880; --y: 680; width: calc(500 * var(--u)); height: calc(230 * var(--u)); border-radius: calc(24 * var(--u)); --k: 1; }

  /* new songs */
  .songs { --H: 780; }
  .shelf { display: block; position: absolute; left: 0; right: 0; top: calc(var(--stage-top) + 540 * var(--u)); height: calc(34 * var(--u));
    background: linear-gradient(var(--wood) 0 calc(24 * var(--u)), rgb(90 59 85 / .35) 0); }
  .songs__title { --x: 50; --y: 60; }
  .songs__intro { --x: 900; --y: 100; width: calc(420 * var(--u)); font-size: calc(24 * var(--u)); }
  .records { --x: 0; --y: 0; width: 100%; height: 100%; padding: 0; overflow: visible; display: block; }
  .record { position: absolute; left: calc(var(--rx) * var(--u)); top: calc(240 * var(--u)); width: calc(480 * var(--u)); height: calc(440 * var(--u)); }
  .record:nth-child(1) { --rx: 100; } .record:nth-child(2) { --rx: 530; } .record:nth-child(3) { --rx: 960; }
  .record__disc { left: calc(190 * var(--u)); top: calc(10 * var(--u)); width: calc(300 * var(--u)); height: calc(300 * var(--u)); }
  .record__label { left: calc(295 * var(--u)); top: calc(115 * var(--u)); width: calc(90 * var(--u)); height: calc(90 * var(--u)); }
  .record__cover { left: 0; top: 0; width: calc(320 * var(--u)); height: calc(320 * var(--u)); }
  .record__name { top: calc(360 * var(--u)); font-size: calc(36 * var(--u)); }
  .record__meta { top: calc(410 * var(--u)); font-size: calc(20 * var(--u)); }

  /* shows */
  .shows { --H: 980; }
  .shows__title { --x: 50; --y: 60; }
  .calendar { --x: 380; --y: 200; --r: 1.2deg; width: calc(680 * var(--u)); height: calc(720 * var(--u)); border-radius: calc(20 * var(--u)); }
  .calendar__head { height: calc(110 * var(--u)); padding: calc(12 * var(--u)) calc(36 * var(--u)) 0; border-radius: calc(20 * var(--u)) calc(20 * var(--u)) 0 0; font-size: calc(60 * var(--u)); line-height: 1.6; }
  .calendar__pins i:nth-child(1) { left: calc(120 * var(--u)); } .calendar__pins i:nth-child(2) { left: calc(320 * var(--u)); } .calendar__pins i:nth-child(3) { left: calc(520 * var(--u)); }
  .calendar__list { left: calc(36 * var(--u)); top: calc(144 * var(--u)); width: calc(608 * var(--u)); }
  .show { height: calc(116 * var(--u)); border-bottom: 0; }
  .show::after { content: ""; position: absolute; left: 0; top: calc(96 * var(--u)); width: calc(608 * var(--u)); height: calc(2 * var(--u)); background: rgb(42 31 45 / .2); }
  .show:last-child::after { display: none; }
  .show__date { top: 0; font-size: calc(46 * var(--u)); }
  .show__venue { left: calc(204 * var(--u)); top: calc(4 * var(--u)); font-size: calc(26 * var(--u)); }
  .show__city { left: calc(204 * var(--u)); top: calc(42 * var(--u)); font-size: calc(19 * var(--u)); }
  .show__tix { left: calc(504 * var(--u)); right: auto; top: calc(18 * var(--u)); font-size: calc(22 * var(--u)); }
  .plant { width: calc(200 * var(--u)); height: calc(200 * var(--u)); }
  .plant--1 { --x: 150; --y: 720; } .plant--2 { --x: 1100; --y: 720; }

  /* photos */
  .photos { --H: 900; }
  .photos__title { --x: 50; --y: 60; width: auto; white-space: nowrap; }
  .board { --x: 50; --y: 230; width: calc(1340 * var(--u)); height: calc(600 * var(--u)); border-radius: calc(14 * var(--u)); box-shadow: inset 0 0 0 calc(14 * var(--u)) var(--wood); background-image: url("../svg/cork.svg"); }
  .pin-photo { --hf: 11; --hi: 34; }
  .pin-photo::after { --pd: 18; }
  /* BOARD, desktop (positions inside the board) */
  .pin-photo:nth-child(1) { --px: 40; --py: 50; --pw: 300; --ph: 300; --pr: 3deg; }
  .pin-photo:nth-child(2) { --px: 360; --py: 30; --pw: 250; --ph: 330; --pr: -2deg; }
  .pin-photo:nth-child(3) { --px: 640; --py: 70; --pw: 330; --ph: 260; --pr: 2deg; }
  .pin-photo:nth-child(4) { --px: 1000; --py: 40; --pw: 280; --ph: 300; --pr: -3deg; }
  .pin-photo:nth-child(5) { --px: 100; --py: 380; --pw: 280; --ph: 190; --pr: -2deg; }
  .pin-photo:nth-child(6) { --px: 420; --py: 400; --pw: 300; --ph: 180; --pr: 2deg; }
  .pin-photo:nth-child(7) { --px: 760; --py: 370; --pw: 220; --ph: 200; --pr: -3deg; }
  .board__note { left: calc(1010 * var(--u)); top: calc(420 * var(--u)); width: calc(260 * var(--u)); font-size: calc(28 * var(--u)); }

  /* say hi */
  /* say hi and the footer share the last screen */
  .hi { --H: 1120; --sec-h: calc(max(100svh, 1120 * var(--u)) - 260 * var(--u)); --stage-top: calc((var(--sec-h) - 860 * var(--u)) / 2); }
  .hi .stage { height: calc(860 * var(--u)); }
  .hi__title { --x: 50; --y: 60; font-size: calc(140 * var(--u)); line-height: 1.6; margin-top: calc(-40 * var(--u)); }
  .hi__text { --x: 60; --y: 260; width: calc(460 * var(--u)); font-size: calc(26 * var(--u)); }
  .hi__mail { --x: 60; --y: 480; font-size: calc(32 * var(--u)); }
  .laptop { --x: 560; --y: 120; width: calc(820 * var(--u)); height: calc(560 * var(--u)); border-radius: calc(24 * var(--u)); }
  .laptop__screen { left: calc(22 * var(--u)); top: calc(22 * var(--u)); width: calc(776 * var(--u)); height: calc(516 * var(--u)); border-radius: calc(10 * var(--u)); }
  .laptop__title { left: calc(40 * var(--u)); top: calc(70 * var(--u)); font-size: calc(28 * var(--u)); }
  .form { left: calc(40 * var(--u)); top: calc(120 * var(--u)); width: calc(696 * var(--u)); row-gap: calc(24 * var(--u)); justify-items: start; }
  .form input { height: calc(56 * var(--u)); }
  .form textarea { height: calc(150 * var(--u)); }
  .form__send { width: calc(200 * var(--u)); margin-top: calc(-4 * var(--u)); }
  .desk { display: block; --x: 500; --y: 676; width: calc(940 * var(--u)); height: calc(22 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--wood); }
  .mat { --x: 100; --y: 740; width: calc(500 * var(--u)); height: calc(70 * var(--u)); --k: 1; }

  /* footer */
  .footer { --H: 1120; --sec-h: calc(260 * var(--u)); --stage-top: 0px; }
  .footer .stage { height: calc(260 * var(--u)); }
  .footer::before { height: calc(16 * var(--u)); }
  .footer__logo { --x: 50; --y: 60; font-size: calc(64 * var(--u)); line-height: 1.6; }
  .footer__links { --x: 50; --y: 170; width: auto; flex-wrap: nowrap; column-gap: calc(38 * var(--u)); }
  .footer__copy { --x: 1000; --y: 174; font-size: calc(17 * var(--u)); }
}

/* ---------- 7. Animations (only with the "motion" class, see index.html).
   Nothing starts hidden until main.js adds "lf-reveal", so the page always
   shows up complete without JavaScript. To turn them all off: class="no-motion" on <html>. */
.motion.lf-reveal [data-reveal] { transition: opacity var(--motion-dur) var(--motion-ease), translate var(--motion-dur) var(--motion-ease), transform var(--motion-dur) var(--motion-soft);
  transition-delay: calc(var(--i, 0) * var(--motion-step)); }
/* blocks rise softly */
.motion.lf-reveal [data-reveal="rise"]:not(.is-in) { opacity: 0; translate: 0 calc(var(--motion-rise) * var(--u)); }
/* the window and the lamp fade in, then keep drifting slowly, like a sleepy room */
.motion.lf-reveal [data-reveal="float"]:not(.is-in), .motion.lf-reveal [data-reveal="glow"]:not(.is-in) { opacity: 0; }
.motion [data-reveal="float"].is-in { animation: drift var(--motion-float-time) ease-in-out 1s infinite; }
.motion [data-reveal="glow"].is-in { animation: drift var(--motion-float-time) ease-in-out 2.5s infinite reverse; }
@keyframes drift { 50% { translate: 0 calc(var(--motion-float) * -1 * var(--u)); } }
/* the calendar swings on its pins; photos are pinned to the board */
.motion.lf-reveal [data-reveal="swing"]:not(.is-in) { opacity: 0; transform: rotate(-4deg); }
.motion.lf-reveal [data-reveal="swing"] { transform-origin: 50% 0; }
.motion.lf-reveal [data-reveal="pin"]:not(.is-in) { opacity: 0; transform: translateY(calc(-16 * var(--u))) scale(1.05); }
/* records spin a little when the mouse is over them (any time) */
.record:hover .record__disc { rotate: 200deg; }
.no-motion .record:hover .record__disc { rotate: none; }
/* used by main.js: "lf-still" jumps without animating, "lf-measure" puts every piece in its final place */
.lf-still *, .lf-still *::before, .lf-still *::after { transition: none !important; }
.lf-measure [data-reveal], .lf-measure [data-reveal] * { opacity: 1 !important; translate: none !important; transform: none !important; animation: none !important; }

/* DEMO ONLY: note after sending the form, template and photo credits under the footer */
.demo-note { position: absolute; left: calc(16 * var(--u)); right: calc(16 * var(--u)); bottom: calc(14 * var(--u)); margin: 0; font: 700 calc(14 * var(--u))/1.3 var(--font-text); color: var(--plum); }
.demo-credit { background: var(--plum); color: var(--cream); padding: 0 20px 28px; font: 400 13px/1.5 var(--font-text); }
.demo-credit p { width: min(100%, 390px); margin: 0 auto 6px; opacity: .85; }
@media (min-width: 1024px) {
  .demo-note { left: calc(264 * var(--u)); right: auto; bottom: auto; top: calc(467 * var(--u)); font-size: calc(17 * var(--u)); }
  .demo-credit { padding: 0 56px 32px; font-size: 14px; }
  .demo-credit p { width: min(100%, 1328px); }
}
