/* =====================================================================
   Cinder · Underground v2
   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
   Every piece is placed with numbers taken from the design: --x and --y
   (top left corner), sizes, and --r (angle). One design pixel = --u.
   ===================================================================== */

/* Fonts, loaded from the fonts folder (see README to load them from Google instead) */
@font-face { font-family: "Dela Gothic One"; src: url("../../fonts/dela-gothic-one-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url("../../fonts/share-tech-mono-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("../../fonts/permanent-marker-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- 1. Settings. EDIT: colors, fonts and motion live here. */
:root {
  --ink: #0c0c0c;        /* black: text, bands, buttons, the dates block, footer */
  --paper: #e9e7e0;      /* photocopy paper: page background, light labels */
  --lime: #c8ff00;       /* highlighter green: misprint, buttons, title track */
  --grey: #67645c;       /* small print under the barcode (4.8:1 on the paper) */
  --photo-hint: #e9e7e0; /* "replace with photo" text on the empty photo spot */
  --photo-top: #8a8a84;  /* empty photo spot: gradient until a photo is added */
  --photo-bottom: #26261f;
  --slip: rgb(255 255 255 / .65); /* the see-through paper slip on the phone photo */
  --focus: #0c0c0c;      /* focus outline on paper (dark sections use the green) */

  --font-display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --font-mono: "Share Tech Mono", "Courier New", monospace;
  --font-hand: "Permanent Marker", "Comic Sans MS", cursive;

  /* 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: 22;            /* how far text rises while it fades in */
  --motion-paste: 26;           /* how far the cut out words drop while they are glued on */
  --motion-stamp: 1.35;         /* how big the stamps start before they press down */
  --motion-strip: 38s;          /* one loop of the running strip */
  --motion-spin: 1.8s;          /* one turn of the record while a session plays */
  --motion-ease: cubic-bezier(.2, .8, .2, 1);
  --motion-press: cubic-bezier(.3, 1.4, .5, 1);

  --nav-h-compact: 44px;        /* 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(--paper); color: var(--ink); font: 400 16px/1.4 var(--font-mono); 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 16px; background: var(--lime); color: var(--ink); font: 400 16px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dark, .tag--ink, .tag--line, .tag--play, .btn--ink { --focus: var(--lime); }
.dark .tag--paper, .dark .tag--lime, .dark .btn--lime { --focus: var(--paper); }
.desk-only { display: none !important; }

/* Sections: each one is a stage 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: var(--paper) no-repeat; }
.stage { position: absolute; left: 50%; top: var(--stage-top); width: calc(var(--W) * var(--u)); height: calc(var(--H) * var(--u));
  translate: -50% 0; background: no-repeat 0 0 / 100% 100%; }
.pc { position: absolute; margin: 0; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); rotate: var(--r, 0deg); transform-origin: 0 0; }
.dark { background-color: var(--ink); color: var(--paper); }

/* ---------- 3. Shared pieces */
/* Labels: the little printed tags (menu, dates, Play, photo note) */
.tag { display: inline-block; padding: calc(6 * var(--u)) calc(10 * var(--u)); font: 400 calc(12 * var(--u))/1.2 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border: 0; border-radius: 0; cursor: pointer; }
.tag--ink { background: var(--ink); color: var(--paper); }
.tag--lime { background: var(--lime); color: var(--ink); }
.tag--paper { background: var(--paper); color: var(--ink); }
.tag--line { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); }
.tag--play { background: var(--ink); color: var(--lime); }
span.tag { cursor: default; }

/* Buttons with the green offset print behind them */
.btn { display: flex; align-items: center; justify-content: center; border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
  font: 400 calc(15 * var(--u))/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.btn--ink { background: var(--ink); color: var(--lime); box-shadow: calc(6 * var(--u)) calc(6 * var(--u)) 0 var(--lime); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--ink:hover { box-shadow: calc(3 * var(--u)) calc(3 * var(--u)) 0 var(--lime); translate: calc(3 * var(--u)) calc(3 * var(--u)); }
.btn--lime:hover, .tag:hover { filter: brightness(1.08); }

/* Photo spot. 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:not(.photo__xerox) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); }
.photo-slot__hint { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--u));
  width: 90%; color: var(--photo-hint); font: 400 calc(15 * var(--u))/1.2 var(--font-mono); text-align: center; }
.photo-slot__hint svg { width: calc(56 * var(--u)); height: calc(56 * var(--u)); }
/* the copier texture printed over the photo (delete the two <img class="photo__xerox"> to remove it) */
.photo__xerox { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; pointer-events: none; }
.photo__xerox--d { display: none; }
.photo__tag { position: absolute; left: calc(var(--tx) * var(--u)); top: calc(var(--tx) * var(--u)); min-width: calc(var(--tw) * var(--u)); }
/* with a photo in place the hints go away */
.photo-slot > img:not(.photo__xerox) ~ .photo-slot__hint, .photo-slot > img:not(.photo__xerox) ~ .photo__tag { display: none; }
.photo__crops { display: none; }

/* ---------- 4. Menu: the labels sit on the paper; after scrolling a slim bar slides in behind them */
.topbar { position: fixed; z-index: 20; left: 0; right: 0; top: 0; height: 0; --H: 1160; }
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--nav-h-compact); background: rgb(233 231 224 / .96);
  box-shadow: 0 3px 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; }
.nav__a { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); rotate: var(--r); transform-origin: 0 0; transition: top .3s var(--motion-ease); }
.nav__a--1 { --x: 20; --y: 24; --r: 3deg; --cy: 9; }
.nav__a--2 { --x: 92; --y: 32; --r: -2deg; --cy: 10; }
.nav__a--3 { --x: 150; --y: 22; --r: 2deg; --cy: 9; }
.nav__a--4 { --x: 224; --y: 34; --r: -3deg; --cy: 10; }
.nav__a::after { content: ""; position: absolute; inset: calc(-9 * var(--u)) calc(-3 * var(--u)); }
.topbar__logo { position: absolute; right: calc(20 * var(--u)); top: calc(10 * var(--u)); font: 400 calc(20 * var(--u))/1 var(--font-display);
  text-transform: uppercase; letter-spacing: -.03em; text-decoration: none; color: var(--ink); text-shadow: calc(2 * var(--u)) calc(2 * var(--u)) 0 var(--lime);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; padding: calc(4 * var(--u)) 0; }
.topbar.is-scrolled::before { opacity: 1; translate: 0 0; }
.topbar.is-scrolled .nav__a { top: calc(var(--cy) * var(--u)); }
.topbar.is-scrolled .topbar__logo { opacity: 1; visibility: visible; }
.static-nav .topbar { position: absolute; }
/* Phones: a label with three bars opens the four labels in a paper card. The name shows in the slim bar.
   Without JavaScript the four labels stay in the bar, as in the design. */
.nav__toggle, .js .nav__toggle { display: none; }
@media (max-width: 1023px) {
  .topbar__logo { display: none; }
  .js .topbar__logo { display: block; left: calc(20 * var(--u)); right: auto; } /* the three bars are on the right */
  .js .nav__toggle { display: block; position: absolute; left: calc(316 * var(--u)); top: calc(46 * var(--u)); width: calc(52 * var(--u)); height: calc(32 * var(--u)); padding: 0; border: 0;
    rotate: 3deg; transform-origin: 0 0; cursor: pointer; transition: top .3s var(--motion-ease), color .2s; }
  .js .nav__toggle::after { content: ""; position: absolute; inset: calc(-6 * var(--u)); }
  .js .nav__toggle[aria-expanded="true"] { color: var(--lime); }
  .nav__bars, .nav__bars::before, .nav__bars::after { position: absolute; left: calc(14 * var(--u)); top: calc(14.5 * var(--u)); width: calc(24 * var(--u)); height: calc(3 * var(--u)); background: currentColor; }
  .nav__bars::before, .nav__bars::after { content: ""; left: 0; top: calc(-7 * var(--u)); }
  .nav__bars::after { top: calc(7 * var(--u)); }
  .topbar.is-scrolled .nav__toggle { top: calc(6 * var(--u)); }
  .js .nav { position: absolute; right: calc(20 * var(--u)); top: calc(92 * var(--u)); display: flex; flex-direction: column; align-items: flex-end; gap: calc(18 * var(--u));
    padding: calc(22 * var(--u)) calc(26 * var(--u)) calc(24 * var(--u)); background: var(--paper);
    box-shadow: 0 0 0 calc(3 * var(--u)) var(--ink), calc(6 * var(--u)) calc(6 * var(--u)) 0 calc(3 * var(--u)) var(--lime);
    opacity: 0; visibility: hidden; translate: 0 calc(-8 * var(--u)); transition: opacity .2s, visibility .2s, translate .2s, top .3s var(--motion-ease); }
  .topbar.is-scrolled .nav { top: calc(var(--nav-h-compact) + 14px); }
  .menu.is-open .nav { opacity: 1; visibility: visible; translate: 0 0; }
  .js .nav__a, .js .topbar.is-scrolled .nav__a { position: relative; left: 0; top: 0; padding: calc(10 * var(--u)) calc(14 * var(--u)); font-size: calc(17 * var(--u)); }
  /* with the labels folded into the three bars, the name and the whole hero move up into the free space */
  .js .hero { --H: 1120; }
  .js .hero .pc { top: calc((var(--y) - 40) * var(--u)); }
  .js .strip { top: calc(var(--stage-top) + 136 * var(--u)); }
}

/* ---------- 5. Phone layout (390 frame) */
/* HERO */
.hero { --H: 1160; background-image: url("../svg/m-noise-hero.svg"); background-size: calc(390 * var(--u)) calc(1160 * var(--u)); background-position: 50% 0; }
.strip { position: absolute; left: 0; right: 0; top: calc(var(--stage-top) + 176 * var(--u)); height: calc(48 * var(--u)); background: var(--ink); overflow: hidden; z-index: 1; }
.strip__track { position: absolute; top: calc(15 * var(--u)); left: calc(50% - 185 * var(--u)); display: flex; white-space: pre; animation: strip var(--motion-strip) linear infinite;
  color: var(--lime); font: 400 calc(13 * var(--u))/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.strip__track--d { display: none; }
@keyframes strip { to { translate: -50% 0; } }

.hero .stage { z-index: 2; }
.title { --x: 14; --y: 80; --r: 1.5deg; font: 400 calc(47 * var(--u))/.9 var(--font-display); letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; }
.title__ink { position: relative; display: block; }
.title__green { position: absolute; left: calc(var(--gx) * var(--u)); top: calc(var(--gy) * var(--u)); color: var(--lime); mix-blend-mode: multiply; --gx: 6; --gy: 6; }

.photo { --x: 40; --y: 262; --r: 2deg; width: calc(300 * var(--u)); height: calc(340 * var(--u)); --tx: 14; --tw: 219; }
.slip { --x: 30; --y: 248; --r: 8deg; width: calc(90 * var(--u)); height: calc(26 * var(--u)); background: var(--slip); }
.hero__date { --x: 20; --y: 640; font: 400 calc(78 * var(--u))/.92 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.hero__city { --x: 20; --y: 728; font: 400 calc(52 * var(--u))/.95 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.hero__venue { --x: 20; --y: 806; width: calc(340 * var(--u)); font: 400 calc(16 * var(--u))/1.45 var(--font-mono); }
.hero__play { --x: 20; --y: 900; width: calc(240 * var(--u)); height: calc(56 * var(--u)); }
.seal { --x: 262; --y: 520; --r: 10deg; display: flex; align-items: center; justify-content: center; width: calc(120 * var(--u)); height: calc(120 * var(--u));
  border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--ink); text-align: center; z-index: 1;
  font: 400 calc(15 * var(--u))/1 var(--font-display); text-transform: uppercase; }
.seal span { width: calc(100 * var(--u)); }
.arrow, .new { display: none; }
.barcode { --x: 20; --y: 1020; width: calc(210 * var(--u)); height: calc(54 * var(--u)); }
.barcode--d { display: none; }
.caption { --x: 20; --y: 1084; width: calc(340 * var(--u)); color: var(--grey); font: 400 calc(11 * var(--u))/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

/* FLOOR (next dates) */
.lineup { --H: 735; background-color: var(--paper); }
/* the black block, a little turned; it runs past both edges of the screen */
.lineup__block { --bx: -60; --by: 40; --bw: 520; --bh: 700; --d: 50vw; position: absolute; background: var(--ink); rotate: 2deg; transform-origin: 0 0;
  left: calc(50% - var(--W) / 2 * var(--u) + var(--bx) * var(--u) - var(--d) * .99939);
  top: calc(var(--stage-top) + var(--by) * var(--u) - var(--d) * .0349);
  width: calc(var(--bw) * var(--u) + var(--d) * 2); height: calc(var(--bh) * var(--u)); }
.lineup__intro { --x: 20; --y: 90; width: calc(340 * var(--u)); font: 400 calc(14 * var(--u))/1.45 var(--font-mono); }
.lineup__body { --x: 20; --y: 150; width: calc(350 * var(--u)); }
.date { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: calc(2 * var(--u)); }
.date + .date { margin-top: calc(var(--gap) * var(--u)); }
.date__city { display: block; font: 400 calc(var(--fs) * var(--u))/.92 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.size-1 { --fs: 48; } .size-1 .date__city { color: var(--lime); }
.size-2 { --fs: 46; --gap: 22; }
.size-3 { --fs: 32; --gap: 40; }
.size-4 { --fs: 26; --gap: 39; }
.size-5 { --fs: 22; --gap: 38; }
.date__buy { display: none; }
.lineup__foot { margin-top: calc(48 * var(--u)); }
.lineup__foot .btn { width: calc(260 * var(--u)); height: calc(56 * var(--u)); }
.lineup__note { display: none; }
.lineup .stage { z-index: 1; }

/* TAPE (record and sessions) */
.records { --H: 760; background-image: url("../svg/m-noise-discos.svg"); background-size: calc(390 * var(--u)) calc(760 * var(--u)); background-position: 50% 0; }
.records__title { --x: 20; --y: 40; font: 400 calc(72 * var(--u))/.92 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.records__intro { display: none; }
.vinyl { --x: 20; --y: 140; width: calc(200 * var(--u)); height: calc(200 * var(--u)); transform-origin: 50% 50%; }
.vinyl--d { display: none; }
.records.is-playing .vinyl { animation: spin var(--motion-spin) linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.stamp { --x: 210; --y: 160; --r: 12deg; display: flex; align-items: center; justify-content: center; width: calc(150 * var(--u)); height: calc(52 * var(--u));
  background: var(--paper); box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--ink); text-align: center; padding: 0 calc(8 * var(--u));
  font: 400 calc(20 * var(--u))/.95 var(--font-display); text-transform: uppercase; }
.tracks { --x: 20; --y: 380; width: calc(350 * var(--u)); }
.track { position: relative; height: calc(50 * var(--u)); background: url("../svg/dots.svg") 0 100% / calc(10 * var(--u)) calc(3 * var(--u)) repeat-x; }
.track + .track { margin-top: calc(8 * var(--u)); }
.track.is-title { background-color: var(--lime); }
.track__name { position: absolute; left: calc(6 * var(--u)); top: calc(12 * var(--u)); width: calc(260 * var(--u)); font: 400 calc(18 * var(--u))/1 var(--font-display); text-transform: uppercase; }
.is-title .track__name { font-size: calc(22 * var(--u)); }
/* a long name that needs two lines stays above the dotted line (line height .9) */
.track__name { line-height: .9; }
.track__note { display: none; }
.track__play { position: absolute; left: calc(280 * var(--u)); top: calc(12 * var(--u)); width: calc(50 * var(--u)); text-align: left; }
.track__play::after { content: ""; position: absolute; inset: calc(-9 * var(--u)) calc(-6 * var(--u)); }
.track__play[aria-pressed="true"] { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 calc(2 * var(--u)) var(--ink); }

/* ABOUT (the cut out sentence). Each word: --x --y (corner), --r (angle). */
.about { --H: 671; }
.cutout { --x: 20; --y: 50; width: calc(350 * var(--u)); height: calc(440 * var(--u)); }
.cut { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); rotate: var(--r); transform-origin: 0 0;
  padding: calc(4 * var(--u)) calc(10 * var(--u)); font: 400 calc(var(--fs) * var(--u))/.92 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.cut--l { --fs: 44; } .cut--m { --fs: 34; } .cut--s { --fs: 22; }
.cut--paper { background: var(--paper); }
.cut--lime { background: var(--lime); }
.cut--line { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 calc(2 * var(--u)) var(--paper); padding: calc(6 * var(--u)) calc(12 * var(--u)); }
.cut--lime-text { color: var(--lime); }
/* ABOUT WORDS, phone */
.cutout .cut:nth-child(2)  { --x: 2.5;   --y: 0;     --r: 3deg; }
.cutout .cut:nth-child(3)  { --x: 156.3; --y: 6;     --r: -2deg; }
.cutout .cut:nth-child(4)  { --x: 2;     --y: 65.7;  --r: 4deg; }
.cutout .cut:nth-child(5)  { --x: 67.8;  --y: 73.1;  --r: -3deg; }
.cutout .cut:nth-child(6)  { --x: 1.5;   --y: 131;   --r: 2deg; }
.cutout .cut:nth-child(7)  { --x: 0;     --y: 197.5; --r: -2deg; }
.cutout .cut:nth-child(8)  { --x: 185;   --y: 191.4; --r: 3deg; }
.cutout .cut:nth-child(9)  { --x: 0;     --y: 259.1; --r: -2deg; }
.cutout .cut:nth-child(10) { --x: 112.1; --y: 255.5; --r: 2deg; }
.cutout .cut:nth-child(11) { --x: 0;     --y: 330.8; --r: -4deg; }
.cutout .cut:nth-child(12) { --x: 89.1;  --y: 325.3; --r: 2deg; }
.cutout .cut:nth-child(13) { --x: 0;     --y: 391.1; --r: -2deg; }
.about__text { --x: 20; --y: 581; width: calc(340 * var(--u)); font: 400 calc(15 * var(--u))/1.45 var(--font-mono); }

/* CONTACT (the booking coupon) */
.contact { --H: 760; background-image: url("../svg/m-noise-contact.svg"); background-size: calc(390 * var(--u)) calc(760 * var(--u)); background-position: 50% 0; }
.coupon { --x: 20; --y: 60; --r: 1deg; width: calc(350 * var(--u)); height: calc(664 * var(--u)); background: var(--paper); }
.coupon > *, .form > * { position: absolute; }
.coupon__cut { inset: 0; width: 100%; height: 100%; }
.coupon__cut--d, .coupon__scissors, .coupon__barcode { display: none; }
.coupon__title { left: calc(20 * var(--u)); top: calc(20 * var(--u)); font: 400 calc(42 * var(--u))/.92 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.coupon__text { left: calc(22 * var(--u)); top: calc(96 * var(--u)); width: calc(300 * var(--u)); font: 400 calc(15 * var(--u))/1.45 var(--font-mono); }
.form { position: absolute; inset: 0; }
.field { left: calc(var(--fx) * var(--u)); top: calc(var(--fy) * var(--u)); width: calc(var(--fw, 306) * var(--u)); }
.field label { display: block; font: 400 calc(12 * var(--u))/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.field input, .field textarea { display: block; width: 100%; height: calc(var(--fh) * var(--u)); padding: 0 0 calc(2 * var(--u)); border: 0; border-bottom: calc(3 * var(--u)) solid var(--ink);
  border-radius: 0; background: transparent; font: 400 16px/1.3 var(--font-mono); outline-offset: 2px; resize: none; overflow: hidden; }
.field--name  { --fx: 22; --fy: 150; --fh: 32.6; }
.field--email { --fx: 22; --fy: 222; --fh: 32.6; }
.field--date  { --fx: 22; --fy: 294; --fh: 32.6; }
.field--city  { --fx: 22; --fy: 366; --fh: 32.6; }
.field--msg   { --fx: 22; --fy: 438; --fh: 32.6; }
.form__send { left: calc(22 * var(--u)); top: calc(520 * var(--u)); width: calc(200 * var(--u)); height: calc(56 * var(--u)); }
.coupon__mail { left: calc(22 * var(--u)); top: calc(596 * var(--u)); rotate: 2deg; transform-origin: 0 0; padding: calc(6 * var(--u)) calc(10 * var(--u)); background: var(--lime);
  font: 400 calc(14 * var(--u))/1.45 var(--font-mono); text-decoration: none; white-space: nowrap; min-width: calc(202 * var(--u)); }
.coupon__mail::after { content: ""; position: absolute; inset: calc(-6 * var(--u)) 0; }

/* FOOTER */
.footer { --H: 108; }
.footer__copy { --x: 20; --y: 34; width: calc(350 * var(--u)); font: 400 calc(11 * var(--u))/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.footer__links { --x: 20; --y: 62; display: flex; gap: 1.8em; color: var(--lime); font: 400 calc(11 * var(--u))/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.footer__links a { display: block; text-decoration: none; padding: calc(14 * var(--u)) 0; margin: calc(-14 * 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 62 % of the width scale. */
@media (min-width: 1024px) {
  :root { --W: 1440; --nav-h-compact: 56px; --kw: calc(min(100cqi, 1440px) / 1440); }
  .sec, .topbar { --u: max(min(var(--kw), 100svh / var(--H)), var(--kw) * .62); }
  .sec { --sec-h: max(100svh, var(--H) * var(--u)); }
  .desk-only { display: revert !important; }
  .tag { padding: calc(8 * var(--u)) calc(12 * var(--u)); font-size: calc(14 * var(--u)); }
  .btn { font-size: calc(18 * var(--u)); }
  .btn--ink { box-shadow: calc(8 * var(--u)) calc(8 * var(--u)) 0 var(--lime); }
  .btn--ink:hover { box-shadow: calc(4 * var(--u)) calc(4 * var(--u)) 0 var(--lime); translate: calc(4 * var(--u)) calc(4 * var(--u)); }

  /* menu */
  .topbar { --H: 1180; }
  .topbar__stage { top: calc((max(100svh, 1180 * var(--u)) - 1180 * var(--u)) / 2); }
  .topbar.is-scrolled .topbar__stage { top: 0; }
  .topbar__stage { transition: top .3s var(--motion-ease); }
  .nav__a--1 { --x: 56; --y: 36; --cy: 11; }
  .nav__a--2 { --x: 170; --y: 48; --cy: 12; }
  .nav__a--3 { --x: 262; --y: 32; --cy: 11; }
  .nav__a--4 { --x: 372; --y: 50; --cy: 12; }
  .nav__a::after { inset: calc(-6 * var(--u)) calc(-4 * var(--u)); }
  .topbar__logo { display: block; right: calc(70 * var(--u)); top: calc(14 * var(--u)); font-size: calc(26 * var(--u)); text-shadow: calc(3 * var(--u)) calc(3 * var(--u)) 0 var(--lime); }

  /* hero */
  .hero { --H: 1180; background-image: url("../svg/noise-hero.svg"); background-size: calc(1440 * var(--u)) calc(1180 * var(--u)); background-position: 50% var(--stage-top); }
  .strip { top: calc(var(--stage-top) + 400 * var(--u)); height: calc(72 * var(--u)); }
  .strip__track--m { display: none; }
  .strip__track--d { display: flex; top: calc(25 * var(--u)); left: calc(50% - 700 * var(--u)); font-size: calc(20 * var(--u)); }
  .title { --x: 34; --y: 116; font-size: calc(186 * var(--u)); }
  .title__green { --gx: 12; --gy: 10; }
  .photo { --x: 70; --y: 520; width: calc(560 * var(--u)); height: calc(640 * var(--u)); --tx: 24; --tw: 256; }
  .photo__xerox { display: none; } .photo__xerox--d { display: block; }
  .photo__crops { display: block; position: absolute; left: calc(-40 * var(--u)); top: calc(-40 * var(--u)); width: calc(640 * var(--u)); height: calc(720 * var(--u)); pointer-events: none; }
  .slip { display: none; }
  .hero__date { --x: 714; --y: 574; font-size: calc(120 * var(--u)); }
  .hero__city { --x: 716; --y: 700; font-size: calc(72 * var(--u)); }
  .hero__venue { --x: 720; --y: 800; width: calc(560 * var(--u)); font-size: calc(24 * var(--u)); line-height: 1.4; }
  .hero__play { --x: 720; --y: 930; width: calc(300 * var(--u)); height: calc(72 * var(--u)); }
  .seal { --x: 1240; --y: 420; width: calc(190 * var(--u)); height: calc(190 * var(--u)); box-shadow: inset 0 0 0 calc(4 * var(--u)) var(--ink); font-size: calc(24 * var(--u)); }
  .seal span { width: calc(160 * var(--u)); }
  .arrow { display: block; --x: 1040; --y: 885; width: calc(260 * var(--u)); height: calc(140 * var(--u)); }
  .new { display: block; --x: 1110; --y: 900; --r: 6deg; font: 400 calc(38 * var(--u))/1 var(--font-hand); }
  .barcode { display: none; }
  .barcode--d { display: block; --x: 1110; --y: 1060; width: calc(270 * var(--u)); height: calc(70 * var(--u)); }
  .caption { --x: 1110; --y: 1136; width: auto; font-size: calc(14 * var(--u)); white-space: nowrap; }

  /* floor */
  .lineup { --H: 980; }
  .lineup .stage { background-image: url("../svg/noise-lineup.svg"); }
  .lineup__block { --bx: -120; --by: 60; --bw: 1700; --bh: 900; }
  .lineup__intro { --x: 1020; --y: 130; width: calc(340 * var(--u)); font-size: calc(17 * var(--u)); text-align: right; }
  .lineup__body { --x: 80; --y: 190; width: calc(1254 * var(--u)); }
  .date { display: block; height: calc(var(--fs) * .92 * var(--u)); padding-left: calc(150 * var(--u)); }
  .date__day, .date__buy { position: absolute; top: calc(var(--lt) * var(--u)); }
  .date__day { left: 0; min-width: calc(77 * var(--u)); }
  .date__buy { display: block; left: calc(1150 * var(--u)); width: calc(104 * var(--u)); z-index: 1; text-align: center; text-indent: .1em; } /* the indent balances the letter spacing after the last letter */
  .size-1 { --fs: 150; --lt: 52.5; }
  .size-2 { --fs: 108; --gap: 49; --lt: 37.8; }
  .size-3 { --fs: 80; --gap: 38; --lt: 28; }
  .size-4 { --fs: 58; --gap: 30.8; --lt: 20.3; }
  .size-5 { --fs: 42; --gap: 25.1; --lt: 14.7; }
  .lineup__foot { display: flex; align-items: flex-start; gap: calc(30 * var(--u)); margin-top: calc(50.8 * var(--u)); }
  .lineup__foot .btn { width: calc(340 * var(--u)); height: calc(64 * var(--u)); flex: none; }
  .lineup__note { display: block; margin-top: calc(16 * var(--u)); font: 400 calc(17 * var(--u))/1.45 var(--font-mono); }

  /* tape */
  .records { --H: 800; background-image: url("../svg/noise-discos.svg"); background-size: calc(1440 * var(--u)) calc(800 * var(--u)); background-position: 50% var(--stage-top); }
  .records__title { --x: 70; --y: 70; font-size: calc(88 * var(--u)); }
  .records__intro { display: block; --x: 70; --y: 200; width: calc(420 * var(--u)); font: 400 calc(24 * var(--u))/1.4 var(--font-mono); }
  .vinyl { display: none; }
  .vinyl--d { display: block; --x: 70; --y: 330; width: calc(360 * var(--u)); height: calc(360 * var(--u)); }
  .stamp { --x: 300; --y: 300; width: calc(210 * var(--u)); height: calc(70 * var(--u)); box-shadow: inset 0 0 0 calc(4 * var(--u)) var(--ink); font-size: calc(28 * var(--u)); }
  .tracks { --x: 590; --y: 80; width: calc(780 * var(--u)); }
  .track { height: calc(82 * var(--u)); background-size: calc(10 * var(--u)) calc(3 * var(--u)); background-position: 0 calc(78 * var(--u)); }
  .track.is-title { height: calc(100 * var(--u)); background-position: 0 calc(96 * var(--u)); }
  .track__name { position: absolute; left: calc(12 * var(--u)); top: calc(10 * var(--u)); width: calc(540 * var(--u)); font-size: calc(33.12 * var(--u)); line-height: .95; letter-spacing: -.01em; }
  .is-title .track__name { font-size: calc(34 * var(--u)); }
  .track__note { display: block; position: absolute; right: calc(152 * var(--u)); top: calc(25 * var(--u)); font: 400 calc(14 * var(--u))/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
  .is-title .track__note { top: calc(34 * var(--u)); }
  .track__play { left: calc(640 * var(--u)); top: calc(23 * var(--u)); width: calc(59 * var(--u)); }
  .is-title .track__play { top: calc(32 * var(--u)); }
  .track__play::after { inset: calc(-6 * var(--u)) calc(-4 * var(--u)); }

  /* about */
  .about { --H: 700; }
  .cutout { --x: 70; --y: 110; width: calc(1300 * var(--u)); height: calc(480 * var(--u)); }
  .cut { padding: calc(6 * var(--u)) calc(16 * var(--u)); }
  .cut--l { --fs: 84; } .cut--m { --fs: 60; line-height: .95; letter-spacing: -.01em; } .cut--s { --fs: 34; line-height: 1; letter-spacing: 0; }
  .cut--line { box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--paper); padding: calc(9 * var(--u)) calc(19 * var(--u)); }
  /* ABOUT WORDS, desktop */
  .cutout .cut:nth-child(2)  { --x: 4.7;   --y: 0;     --r: 3deg; }
  .cutout .cut:nth-child(3)  { --x: 291.3; --y: 10.5;  --r: -2deg; }
  .cutout .cut:nth-child(4)  { --x: 606.7; --y: 0;     --r: 4deg; }
  .cutout .cut:nth-child(5)  { --x: 711.5; --y: 13.8;  --r: -3deg; }
  .cutout .cut:nth-child(6)  { --x: 2.6;   --y: 121.4; --r: 2deg; }
  .cutout .cut:nth-child(7)  { --x: 385.4; --y: 132.9; --r: -2deg; }
  .cutout .cut:nth-child(8)  { --x: 730.7; --y: 121.4; --r: 3deg; }
  .cutout .cut:nth-child(9)  { --x: 835.6; --y: 127.6; --r: -2deg; }
  .cutout .cut:nth-child(10) { --x: 3.3;   --y: 239.8; --r: 2deg; }
  .cutout .cut:nth-child(11) { --x: 432.1; --y: 248.6; --r: -4deg; }
  .cutout .cut:nth-child(12) { --x: 573.4; --y: 239.8; --r: 2deg; }
  .cutout .cut:nth-child(13) { --x: 0;     --y: 389.9; --r: -2deg; }
  .about__text { --x: 70; --y: 590; width: calc(700 * var(--u)); font-size: calc(24 * var(--u)); line-height: 1.4; }

  /* contact: the coupon and the footer share one screen */
  .contact { --H: 870; --sec-h: calc(max(100svh, 870 * var(--u)) - 110 * var(--u)); --stage-top: calc((var(--sec-h) - 760 * var(--u)) / 2);
    background-image: url("../svg/noise-contact.svg"); background-size: calc(1440 * var(--u)) calc(760 * var(--u)); background-position: 50% var(--stage-top); }
  .contact .stage { height: calc(760 * var(--u)); }
  .coupon { --x: 170; --y: 100; width: calc(1100 * var(--u)); height: calc(560 * var(--u)); }
  .coupon__cut { display: none; } .coupon__cut--d { display: block; }
  .coupon__scissors { display: block; left: calc(30 * var(--u)); top: calc(-12 * var(--u)); font: 400 calc(15 * var(--u))/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
  .coupon__title { left: calc(50 * var(--u)); top: calc(48 * var(--u)); font-size: calc(86 * var(--u)); }
  .coupon__text { left: calc(54 * var(--u)); top: calc(170 * var(--u)); width: calc(420 * var(--u)); font-size: calc(24 * var(--u)); line-height: 1.4; }
  .field { --fw: 240; }
  .field label { font-size: calc(14 * var(--u)); }
  .field input, .field textarea { font-size: calc(18 * var(--u)); }
  .field--name  { --fx: 560; --fy: 60;  --fh: 48.2; }
  .field--email { --fx: 820; --fy: 60;  --fh: 48.2; }
  .field--date  { --fx: 560; --fy: 170; --fh: 48.2; }
  .field--city  { --fx: 820; --fy: 170; --fh: 48.2; }
  .field--msg   { --fx: 560; --fy: 262; --fh: 28; --fw: 500; }
  .field--msg textarea { height: calc(var(--fh) * var(--u) + 10px); margin-top: -10px; padding-top: 10px; } /* grows upward under its label: easier to tap, the line stays put */
  .form__send { left: calc(560 * var(--u)); top: calc(400 * var(--u)); width: calc(300 * var(--u)); height: calc(72 * var(--u)); }
  .coupon__mail { left: calc(54 * var(--u)); top: calc(440 * var(--u)); padding: calc(8 * var(--u)) calc(14 * var(--u)); font-size: calc(24 * var(--u)); line-height: 1.4; min-width: calc(340 * var(--u)); }
  .coupon__barcode { display: block; left: calc(900 * var(--u)); top: calc(460 * var(--u)); width: calc(300 * var(--u)); height: calc(60 * var(--u)); rotate: 1deg; }

  .footer { --H: 870; --sec-h: calc(110 * var(--u)); --stage-top: 0px; }
  .footer .stage { height: calc(110 * var(--u)); }
  .footer__copy { --x: 70; --y: 44; width: auto; white-space: nowrap; font-size: calc(14 * var(--u)); }
  .footer__links { --x: auto; left: auto; right: calc(70 * var(--u)); --y: 44; font-size: calc(14 * var(--u)); }
  .footer__links a { padding: calc(8 * var(--u)) 0; margin: calc(-8 * var(--u)) 0; }
}

/* ---------- 7. Animations (only with the "motion" class, see index.html).
   Nothing starts hidden until main.js adds "ug-reveal", so the page always
   shows up complete without JavaScript. To turn them all off: class="no-motion" on <html>. */
.no-motion .strip__track { animation: none; }
.motion.ug-reveal [data-reveal] { transition: opacity var(--motion-dur) var(--motion-ease), translate var(--motion-dur) var(--motion-ease), scale var(--motion-dur) var(--motion-press), clip-path var(--motion-dur) var(--motion-ease);
  transition-delay: calc(var(--i, 0) * var(--motion-step)); }
/* starting places */
.motion.ug-reveal [data-reveal="rise"]:not(.is-in) { opacity: 0; translate: 0 calc(var(--motion-rise) * var(--u)); }
.motion.ug-reveal [data-reveal="wipe"]:not(.is-in) { clip-path: inset(0 100% 0 0); }
.motion.ug-reveal [data-reveal="scan"]:not(.is-in) { clip-path: inset(0 0 100% 0); }
.motion.ug-reveal [data-reveal="stamp"]:not(.is-in) { opacity: 0; scale: var(--motion-stamp); translate: -17.5% -17.5%; }
.motion.ug-reveal [data-reveal="paste"]:not(.is-in) { opacity: 0; translate: 0 calc(var(--motion-paste) * -1 * var(--u)); }
/* the name: the black print wipes in, then the green misprint slides out from under it */
.motion.ug-reveal [data-reveal="ink"] .title__ink, .motion.ug-reveal [data-reveal="ink"] .title__green { transition: clip-path var(--motion-dur) var(--motion-ease), translate var(--motion-dur) var(--motion-ease) calc(var(--motion-dur) * .55); }
.motion.ug-reveal [data-reveal="ink"]:not(.is-in) .title__ink { clip-path: inset(0 100% 0 0); }
.motion.ug-reveal [data-reveal="ink"]:not(.is-in) .title__green { translate: calc(var(--gx) * -1 * var(--u)) calc(var(--gy) * -1 * var(--u)); }
/* used by main.js: "ug-still" jumps without animating, "ug-measure" puts every piece in its final place */
.ug-still *, .ug-still *::before, .ug-still *::after { transition: none !important; }
.ug-measure [data-reveal], .ug-measure [data-reveal] * { opacity: 1 !important; translate: none !important; scale: none !important; clip-path: none !important; }

/* DEMO ONLY: note after sending the form, template and photo credits under the footer */
.demo-note { left: calc(22 * var(--u)); top: calc(520 * var(--u)); width: calc(200 * var(--u)); height: calc(56 * var(--u)); display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 calc(8 * var(--u)); background: var(--lime); color: var(--ink); font: 400 calc(13 * var(--u))/1.25 var(--font-mono); text-align: center; z-index: 1; }
.demo-note[hidden] { display: none; }
.demo-credit { background: var(--ink); color: var(--paper); padding: 22px 20px 28px; font: 400 13px/1.5 var(--font-mono); }
.demo-credit p { width: min(100%, 390px); margin: 0 auto 6px; opacity: .8; }
@media (min-width: 1024px) { .demo-note { left: calc(560 * var(--u)); top: calc(400 * var(--u)); width: calc(300 * var(--u)); height: calc(72 * var(--u)); font-size: calc(17 * var(--u)); } .demo-credit { padding: 24px 56px 32px; font-size: 14px; } .demo-credit p { width: min(100%, 1328px); } }
