/* =====================================================================
   The Alley Voice · Streetwear 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
   Blocks are placed with numbers from the design: --x and --y (top left
   corner) and sizes, 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: "Anton"; src: url("../../fonts/anton-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../../fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Special Elite"; src: url("../../fonts/special-elite-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- 1. Settings. EDIT: colors, fonts and motion live here. */
:root {
  --paper: #e3dbc6;      /* newsprint: page, ads, letter */
  --ink: #151412;        /* black ink: text, stages, boxes, footer */
  --red: #d9261c;        /* spot red: rules, dates, prices, newsroom, overprint */
  --red-deep: #b51d15;   /* darker red for small text and for red boxes with small text (4.8:1) */
  --red-light: #f04a3e;  /* lighter red for small text on black (5:1) */
  --grey: #675f4c;       /* captions and small notes (4.6:1 on the paper) */
  --sep: #8c846f;        /* the | between menu links */
  --photo-hint: #e3dbc6; /* "replace with photo" text on the empty photo spots */
  --photo-top: #6a6a66;  /* empty photo spots: gradient until a photo is added */
  --photo-bottom: #222222;
  --focus: #151412;      /* focus outline on paper (dark and red areas use the paper color) */

  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-text: "Archivo", Arial, sans-serif;
  --font-type: "Special Elite", "Courier New", monospace;

  /* Motion. Durations in ms, distances in design pixels. */
  --motion-dur: 850ms;          /* blocks coming in */
  --motion-step: 110ms;         /* delay between blocks that come into view together */
  --motion-rise: 20;            /* how far text rises while it fades in */
  --motion-stamp: 1.4;          /* how big the stamp starts before it presses down */
  --motion-ease: cubic-bezier(.2, .8, .2, 1);
  --motion-press: cubic-bezier(.3, 1.45, .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.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, blockquote { 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(--ink); color: var(--paper); font: 700 14px/1.2 var(--font-text); text-transform: uppercase; letter-spacing: .12em; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dark, .newsroom, .box, .ad--cta, .product--ink, .product--red, .press, .btn--ink, .btn--red { --focus: var(--paper); }
.newsroom .letter, .ad:not(.ad--cta) { --focus: var(--ink); }
.desk-only { display: none !important; }
.phone-br { display: inline; }

/* 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; }
.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 */
/* small caps lines (kickers, captions, links) */
.kicker, .caption, .pull__who, .ad__link, .product__buy, .field label, .letter__label, .footer__copy, .footer__links, .nav__list, .topbar__price {
  font: 700 calc(var(--sm, 10) * var(--u))/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; }
.rule { display: block; background: var(--ink); width: calc(var(--rw) * var(--u)); height: calc(var(--rh) * var(--u)); }

.btn { display: flex; align-items: center; justify-content: center; border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
  font: 700 calc(13 * var(--u))/1.2 var(--font-text); letter-spacing: .12em; text-transform: uppercase; }
.btn--red { background: var(--red-deep); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn:hover { filter: brightness(1.15); }

/* 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(12 * var(--u));
  width: 90%; color: var(--photo-hint); font: 500 calc(15 * var(--u))/1.2 var(--font-text); text-align: center; }
.photo-slot__hint svg { width: calc(56 * var(--u)); height: calc(56 * var(--u)); }
.photo-slot > img ~ .photo-slot__hint { display: none; }
/* the front page photo: red overprint and print dots over it
   (delete <span class="photo__print"> to see the photo clean) */
.photo__print { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: radial-gradient(circle, rgb(0 0 0 / .3) calc(1.3 * var(--u)), transparent calc(1.5 * var(--u))) 0 0 / calc(9 * var(--u)) calc(9 * var(--u)), rgb(217 38 28 / .55); }

/* ---------- 4. Menu: the section line under the masthead; after scrolling it moves into a slim bar */
.topbar { position: fixed; z-index: 20; left: 0; right: 0; top: 0; height: 0; --H: 1908; }
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--nav-h-compact); background: rgb(227 219 198 / .97);
  border-bottom: 4px solid var(--ink); box-shadow: 0 -6px 0 -5px var(--ink) inset; 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 { position: absolute; left: calc(var(--nx) * var(--u)); top: calc(var(--ny) * var(--u)); width: calc(var(--nw) * var(--u)); transition: top .3s var(--motion-ease), left .3s var(--motion-ease);
  --nx: 20; --ny: 238; --nw: 336; --cy: 15; --cx: 20; }
.nav__list { --sm: 11; display: flex; justify-content: space-between; }
.nav__list a { position: relative; display: block; text-decoration: none; }
.nav__list a::after { content: ""; position: absolute; inset: calc(-15 * var(--u)) calc(-5 * var(--u)); }
.nav__list a:hover { color: var(--red-deep); }
.nav__sep { display: none; color: var(--sep); }
.topbar__price, .topbar__logo { display: none; }
.topbar.is-scrolled::before { opacity: 1; translate: 0 0; }
.topbar.is-scrolled .nav { top: calc(var(--cy) * var(--u)); left: calc(var(--cx) * var(--u)); }
.static-nav .topbar { position: absolute; }
/* Phones: three bars at the end of the section line open the links in a boxed column, like a page index.
   The paper name shows in the slim bar. Without JavaScript the links stay in the line, as in the design. */
.nav__toggle { display: none; }
@media (max-width: 1023px) {
  .js .nav__toggle { display: block; position: absolute; right: calc(-6 * var(--u)); top: calc(-12 * var(--u)); width: calc(40 * var(--u)); height: calc(36 * var(--u));
    padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .js .nav__toggle[aria-expanded="true"] { color: var(--red-deep); }
  .nav__bars, .nav__bars::before, .nav__bars::after { position: absolute; left: calc(8 * var(--u)); top: calc(16.5 * var(--u)); width: calc(26 * var(--u)); height: calc(3 * var(--u)); background: currentColor; }
  .nav__bars::before, .nav__bars::after { content: ""; left: 0; top: calc(-8 * var(--u)); }
  .nav__bars::after { top: calc(8 * var(--u)); }
  .js .nav__list { position: absolute; right: 0; top: calc(30 * var(--u)); --sm: 15; flex-direction: column; justify-content: flex-start; min-width: calc(210 * var(--u));
    padding: calc(6 * var(--u)) calc(22 * var(--u)); background: var(--paper); border-top: calc(4 * var(--u)) solid var(--ink); border-bottom: calc(4 * var(--u)) solid var(--ink);
    box-shadow: 0 0 0 calc(3 * var(--u)) var(--paper), 0 calc(9 * var(--u)) 0 calc(-2 * var(--u)) var(--ink); /* paper edge keeps the box apart from dark sections */
    opacity: 0; visibility: hidden; translate: 0 calc(-8 * var(--u)); transition: opacity .2s, visibility .2s, translate .2s; }
  .nav.is-open .nav__list { opacity: 1; visibility: visible; translate: 0 0; }
  .js .nav__list li + li:not(.nav__sep) { border-top: calc(1 * var(--u)) solid var(--ink); }
  .js .nav__list a { padding: calc(14 * var(--u)) 0; }
  .js .nav__list a::after { display: none; }
  .js .topbar__logo { display: block; position: absolute; left: calc(20 * var(--u)); top: calc(9 * var(--u)); font: 400 calc(24 * var(--u))/1 var(--font-display); text-transform: uppercase;
    text-decoration: none; padding: calc(2 * var(--u)) 0; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .topbar.is-scrolled .topbar__logo { opacity: 1; visibility: visible; }
  /* the three bars sit at the top, in the line above the masthead; the empty section line under it closes up */
  .js .nav { --ny: 19.5; }
  .js .topbar:not(.is-scrolled) .nav__toggle { right: calc(-20 * var(--u)); } /* the bars end on the right margin */
  .js .kicker--r { --x: 162; }
  .js .rule--nav { display: none; }
  .js .hero { --H: 1792; }
  .js .hero .pc { top: calc((var(--y) - var(--up, 40)) * var(--u)); }
  .js .hero :is(.kicker, .rule--top4, .rule--top1, .masthead, .rule--mid1, .rule--mid4) { --up: 0; }
}

/* ---------- 5. Phone layout (390 frame) */
/* FRONT PAGE */
.hero { --H: 1832; background-image: url("../svg/m-noise-hero.svg"); background-size: calc(390 * var(--u)) calc(1908 * var(--u)); background-position: 50% 0; }
.kicker { --sm: 10; --y: 18; }
.kicker--l { --x: 20; }
.kicker--c { display: none; }
.kicker--r { --x: 210; width: calc(160 * var(--u)); text-align: right; }
.rule--top4 { --x: 20; --y: 40; --rw: 350; --rh: 3; }
.rule--top1 { --x: 20; --y: 46; --rw: 350; --rh: 1; }
.masthead { --x: 16; --y: 48; width: calc(360 * var(--u)); font: 400 calc(84 * var(--u))/.92 var(--font-display); text-transform: uppercase; }
.rule--mid1 { --x: 20; --y: 218; --rw: 350; --rh: 1; }
.rule--mid4 { --x: 20; --y: 223; --rw: 350; --rh: 3; }
.rule--nav { --x: 20; --y: 264; --rw: 350; --rh: 1; }
.lead { --x: 20; --y: 284; width: calc(350 * var(--u)); }
.lead__head { font: 400 calc(60 * var(--u))/.92 var(--font-display); text-transform: uppercase; }
.lead__sub { margin-top: calc(37 * var(--u)); color: var(--red-deep); font: 400 calc(20 * var(--u))/1.1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.lead__cols { position: absolute; left: 0; top: calc(876 * var(--u)); width: 100%; font-size: calc(17 * var(--u)); line-height: 1.5; }
.lead__cols p + p { margin-top: calc(14 * var(--u)); }
.lead__col3 { display: none; }
.photo { --x: 20; --y: 726; width: calc(350 * var(--u)); height: calc(380 * var(--u)); }
.stamp { --x: 216; --y: 1046; --r: -8deg; display: flex; align-items: center; justify-content: center; width: calc(150 * var(--u)); height: calc(56 * var(--u));
  box-shadow: inset 0 0 0 calc(4 * var(--u)) var(--red); color: var(--red); font: 400 calc(18 * var(--u))/1.1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; text-align: center; }
.caption { --sm: 10; --x: 20; --y: 1116; width: calc(350 * var(--u)); color: var(--grey); }
.rule--red { --x: 20; --y: 1422; --rw: 350; --rh: 4; background: var(--red); }
.pull { --x: 20; --y: 1442; width: calc(350 * var(--u)); font: 400 calc(38 * var(--u))/1 var(--font-display); text-transform: uppercase; }
.pull__who { display: none; }
.box { --x: 20; --y: 1592; width: calc(350 * var(--u)); height: calc(210 * var(--u)); background: var(--ink); color: var(--paper); }
.box__title { position: absolute; left: calc(20 * var(--u)); top: calc(24 * var(--u)); width: calc(310 * var(--u)); font: 400 calc(32 * var(--u))/1 var(--font-display); text-transform: uppercase; }
.box__btn { position: absolute; left: calc(20 * var(--u)); top: calc(136 * var(--u)); width: calc(170 * var(--u)); height: calc(48 * var(--u)); }

/* STAGES (the show ads). Each ad: date, city, venue line and tickets link. */
.stages { --H: 1561; }
.stages__title { --x: 20; --y: 40; width: calc(350 * var(--u)); font: 400 calc(56 * var(--u))/.92 var(--font-display); text-transform: uppercase; }
.ads { --x: 20; --y: 231; width: calc(350 * var(--u)); display: grid; gap: calc(16 * var(--u)); }
.ad { position: relative; height: calc(210 * var(--u)); background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 calc(4 * var(--u)) var(--ink); }
.ad > * { position: absolute; left: calc(18 * var(--u)); }
.ad__date { top: calc(14 * var(--u)); color: var(--red); font: 400 calc(36 * var(--u))/1 var(--font-display); text-transform: uppercase; }
.ad__city { top: calc(58 * var(--u)); font: 400 calc(40 * var(--u))/1 var(--font-display); text-transform: uppercase; }
.ad__venue { top: calc(112 * var(--u)); width: calc(310 * var(--u)); font: 400 calc(15 * var(--u))/1.5 var(--font-type); }
.ad__link { --sm: 12; top: calc(178 * var(--u)); text-decoration: none; }
.ad__link::after { content: ""; position: absolute; inset: calc(-15 * var(--u)) calc(-6 * var(--u)); }
.ad__link:hover { color: var(--red-deep); }
.ad--cta { height: calc(160 * var(--u)); background: var(--red); color: var(--paper); box-shadow: none; }
.ad__ask { top: calc(18 * var(--u)); width: calc(310 * var(--u)); font: 400 calc(30 * var(--u))/1 var(--font-display); text-transform: uppercase; }
.ad__btn { top: calc(94 * var(--u)); width: calc(220 * var(--u)); height: calc(48 * var(--u)); }

/* SHOP (product ads). EDIT: the color of each ad is its class (product--ink, --red, --paper). */
.shop { --H: 1075; background-image: url("../svg/m-noise-shop.svg"); background-size: calc(390 * var(--u)) calc(1100 * var(--u)); background-position: 50% 0; }
.rule--shop { --x: 20; --y: 30; --rw: 350; --rh: 4; }
.shop__title { --x: 20; --y: 50; font: 400 calc(64 * var(--u))/.92 var(--font-display); text-transform: uppercase; white-space: nowrap; }
.products { --x: 20; --y: 145; width: calc(350 * var(--u)); display: grid; grid-template-columns: repeat(2, 1fr); column-gap: calc(8 * var(--u)); row-gap: calc(20 * var(--u)); }
.product { position: relative; height: calc(440 * var(--u)); }
.product::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--ink); pointer-events: none; }
.product--ink { background: var(--ink); color: var(--paper); --price: var(--red); }
.product--red { background: var(--red-deep); color: var(--paper); --price: var(--paper); }
.product--paper { background: var(--paper); color: var(--ink); --price: var(--red); }
.product > :not(.product__photo) { position: absolute; left: calc(14 * var(--u)); }
.product__photo { inset: 0 0 auto; height: calc(190 * var(--u)); }
.product__photo .photo-slot__hint { font-size: calc(13 * var(--u)); gap: calc(8 * var(--u)); }
.product__photo .photo-slot__hint svg { width: calc(44 * var(--u)); height: calc(44 * var(--u)); }
.product__name { top: calc(206 * var(--u)); width: calc(145 * var(--u)); font: 400 calc(26 * var(--u))/1 var(--font-display); text-transform: uppercase; }
.product__text { display: none; }
.product__price { top: calc(296 * var(--u)); color: var(--price); font: 400 calc(34 * var(--u))/1 var(--font-display); }
.product__buy { --sm: 12; top: calc(380 * var(--u)); text-decoration: none; }
.product__buy::after { content: ""; position: absolute; inset: calc(-15 * var(--u)) calc(-8 * var(--u)); }
.product__buy:hover { text-decoration: underline; }

/* PROFILE (the interview) */
.profile { --H: 915; }
.rule--profile { --x: 20; --y: 0; --rw: 350; --rh: 4; }
.profile__quote { --x: 20; --y: 30; width: calc(350 * var(--u)); font: 400 calc(54 * var(--u))/.92 var(--font-display); text-transform: uppercase; }
.qa { --x: 20; --y: 215; width: calc(350 * var(--u)); }
.qa__item { border-top: calc(2 * var(--u)) solid var(--ink); padding-top: calc(12 * var(--u)); }
.qa__item + .qa__item { margin-top: calc(34 * var(--u)); }
.qa h3 { color: var(--red); font: 400 calc(30 * var(--u))/1 var(--font-display); text-transform: uppercase; }
.qa p { margin-top: calc(14 * var(--u)); font-size: calc(17 * var(--u)); line-height: 1.5; }
.press { --x: 20; --y: 725; width: calc(350 * var(--u)); height: calc(150 * var(--u)); background: var(--ink); color: var(--paper); }
.press p { position: absolute; left: calc(20 * var(--u)); top: calc(24 * var(--u)); width: calc(310 * var(--u)); font: 400 calc(28 * var(--u))/1 var(--font-display); text-transform: uppercase; }

/* NEWSROOM (contact) */
.newsroom { --H: 874; background-color: var(--red); color: var(--paper); }
.newsroom__title { --x: 20; --y: 40; width: calc(350 * var(--u)); font: 400 calc(64 * var(--u))/.92 var(--font-display); text-transform: uppercase; }
.newsroom__sub { --x: 20; --y: 194; width: calc(350 * var(--u)); color: var(--ink); font: 400 calc(24 * var(--u))/1.1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.newsroom__mail { display: none; }
.letter { --x: 20; --y: 284; --r: -1deg; width: calc(350 * var(--u)); height: calc(530 * var(--u)); background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 calc(4 * var(--u)) var(--ink); }
.letter > *, .form > * { position: absolute; }
.form { position: absolute; inset: 0; }
.letter__label { display: none; }
.field { left: calc(20 * var(--u)); top: calc(var(--fy) * var(--u)); width: calc(310 * var(--u)); }
.field label { --sm: 11; display: block; }
.field input, .field textarea { display: block; width: 100%; height: calc(var(--fh) * var(--u)); padding: 0 0 calc(4 * var(--u)); border: 0; border-bottom: calc(2 * var(--u)) solid var(--ink);
  border-radius: 0; background: transparent; font: 400 16px/1.4 var(--font-text); resize: none; outline-offset: 2px; }
.field--name { --fy: 24; --fh: 44.8; }
.field--email { --fy: 144; --fh: 44.8; }
.field--msg { --fy: 264; --fh: 78.8; }
.form__send { left: calc(20 * var(--u)); top: calc(400 * var(--u)); width: calc(200 * var(--u)); height: calc(48 * var(--u)); }
.letter__mail { left: calc(20 * var(--u)); top: calc(480 * var(--u)); font: 400 calc(15 * var(--u))/1.5 var(--font-text); text-decoration: none; }
.letter__mail::after { content: ""; position: absolute; inset: calc(-11 * var(--u)) 0; }
.letter__mail:hover { text-decoration: underline; }

/* FOOTER */
.footer { --H: 160; }
.footer__brand { --x: 20; --y: 30; font: 400 calc(34 * var(--u))/1 var(--font-display); text-transform: uppercase; white-space: nowrap; }
.footer__copy { --sm: 10; --x: 20; --y: 84; width: calc(350 * var(--u)); }
.footer__links { --sm: 10; --x: 20; --y: 124; display: flex; gap: 1.6em; color: var(--red-light); }
.footer__links a { display: block; text-decoration: none; padding: calc(15 * var(--u)) 0; margin: calc(-15 * 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: 52px; --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)); }
  .desk-only { display: revert !important; }
  .phone-br { display: none; }
  .btn { font-size: calc(14 * var(--u)); }

  /* menu */
  .topbar { --H: 1320; }
  .topbar__stage { top: calc((max(100svh, 1320 * var(--u)) - 1320 * var(--u)) / 2); transition: top .3s var(--motion-ease); }
  .topbar.is-scrolled .topbar__stage { top: 0; }
  .nav { --nx: 56; --ny: 352; --nw: auto; --cy: 19; --cx: 300; }
  .nav__list { --sm: 12; justify-content: flex-start; gap: calc(19 * var(--u)); }
  .nav__list a::after { inset: min(calc(-8 * var(--u)), calc(50% - 13px)) calc(-4 * var(--u)); } /* at least 26 px tall to tap */
  .nav__sep { display: block; }
  .topbar__price { display: block; position: absolute; --sm: 12; right: calc(56 * var(--u)); top: calc(352 * var(--u)); color: var(--red-deep); transition: top .3s var(--motion-ease); }
  .topbar.is-scrolled .topbar__price { top: calc(19 * var(--u)); }
  .topbar__logo { display: block; position: absolute; left: calc(56 * var(--u)); top: calc(10 * var(--u)); font: 400 calc(28 * var(--u))/1 var(--font-display); text-transform: uppercase;
    text-decoration: none; padding: calc(2 * var(--u)) 0; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .topbar.is-scrolled .topbar__logo { opacity: 1; visibility: visible; }

  /* front page */
  .hero { --H: 1320; background-image: url("../svg/noise-hero.svg"); background-size: calc(1440 * var(--u)) calc(1320 * var(--u)); background-position: 50% var(--stage-top); }
  .kicker { --sm: 12; --y: 36; }
  .kicker--l { --x: 56; }
  .kicker--c { display: block; --x: 560; width: calc(320 * var(--u)); text-align: center; }
  .kicker--r { --x: 1100; width: calc(284 * var(--u)); }
  .rule--top4 { --x: 56; --y: 64; --rw: 1328; --rh: 4; }
  .rule--top1 { --x: 56; --y: 72; --rw: 1328; --rh: 1; }
  .masthead { --x: 56; --y: 70; width: calc(1316 * var(--u)); font-size: calc(220 * var(--u)); line-height: .9; white-space: nowrap; text-transform: none; }
  .rule--mid1 { --x: 56; --y: 330; --rw: 1328; --rh: 1; }
  .rule--mid4 { --x: 56; --y: 336; --rw: 1328; --rh: 4; }
  .rule--nav { --x: 56; --y: 382; --rw: 1328; --rh: 1; }
  .lead { --x: 56; --y: 410; width: calc(840 * var(--u)); }
  .lead__head { font-size: calc(104 * var(--u)); }
  .lead__sub { margin-top: calc(18 * var(--u)); width: calc(820 * var(--u)); color: var(--red); font-size: calc(26 * var(--u)); }
  .lead__cols { position: static; display: grid; grid-template-columns: repeat(3, calc(264 * var(--u))); column-gap: calc(24 * var(--u)); margin-top: calc(20 * var(--u));
    border-top: calc(1 * var(--u)) solid var(--ink); padding-top: calc(25 * var(--u)); }
  .lead__cols p + p { margin-top: 0; position: relative; }
  .lead__cols p + p::before { content: ""; position: absolute; left: calc(-14 * var(--u)); top: 0; width: calc(1 * var(--u)); height: calc(170 * var(--u)); background: var(--ink); }
  .lead__col3 { display: block; }
  .photo { --x: 930; --y: 410; width: calc(454 * var(--u)); height: calc(560 * var(--u)); }
  .stamp { --x: 960; --y: 440; width: calc(190 * var(--u)); height: calc(76 * var(--u)); box-shadow: inset 0 0 0 calc(5 * var(--u)) var(--red); font-size: calc(24 * var(--u)); }
  .caption { --sm: 12; --x: 930; --y: 984; width: calc(454 * var(--u)); }
  .box { --x: 930; --y: 1060; width: calc(454 * var(--u)); height: calc(230 * var(--u)); }
  .box__title { left: calc(24 * var(--u)); top: calc(36 * var(--u)); width: calc(406 * var(--u)); font-size: calc(34 * var(--u)); }
  .box__btn { left: calc(24 * var(--u)); top: calc(156 * var(--u)); width: calc(210 * var(--u)); height: calc(52 * var(--u)); }
  .rule--red { --x: 56; --y: 1110; --rw: 840; --rh: 4; }
  .pull { --x: 56; --y: 1130; width: calc(840 * var(--u)); font-size: calc(52 * var(--u)); }
  .pull__who { display: block; --sm: 12; --x: 56; --y: 1260; color: var(--grey); }

  /* stages */
  .stages { --H: 900; }
  .stages__title { --x: 56; --y: 64; width: calc(900 * var(--u)); font-size: calc(92 * var(--u)); }
  .ads { --x: 56; --y: 300; width: calc(1312 * var(--u)); grid-template-columns: repeat(3, calc(420 * var(--u))); column-gap: calc(26 * var(--u)); row-gap: calc(28 * var(--u)); }
  .ad { height: calc(262 * var(--u)); }
  .ad > * { left: calc(20 * var(--u)); }
  .ad__date { top: calc(16 * var(--u)); font-size: calc(46 * var(--u)); }
  .ad__city { top: calc(76 * var(--u)); font-size: calc(54 * var(--u)); }
  .ad:not(.ad--cta)::before { content: ""; position: absolute; left: calc(20 * var(--u)); top: calc(150 * var(--u)); width: calc(380 * var(--u)); height: calc(1 * var(--u)); background: var(--ink); }
  .ad__venue { top: calc(162 * var(--u)); width: calc(380 * var(--u)); font-size: calc(17 * var(--u)); }
  .ad__link { top: calc(226 * var(--u)); }
  .ad__link::after { inset: calc(-10 * var(--u)) calc(-6 * var(--u)); }
  .ad--cta { height: calc(262 * var(--u)); }
  .ad--cta > * { left: calc(24 * var(--u)); }
  .ad__ask { top: calc(34 * var(--u)); width: calc(372 * var(--u)); font-size: calc(44 * var(--u)); }
  .ad__btn { top: calc(176 * var(--u)); height: calc(52 * var(--u)); font-size: calc(13 * var(--u)); }

  /* shop */
  .shop { --H: 820; background-image: url("../svg/noise-shop.svg"); background-size: calc(1440 * var(--u)) calc(820 * var(--u)); background-position: 50% var(--stage-top); }
  .rule--shop { --x: 56; --y: 50; --rw: 1328; --rh: 4; }
  .shop__title { --x: 56; --y: 72; font-size: calc(92 * var(--u)); }
  .products { --x: 56; --y: 250; width: calc(1327 * var(--u)); grid-template-columns: repeat(4, calc(316 * var(--u))); column-gap: calc(21 * var(--u)); }
  .product { height: calc(520 * var(--u)); }
  .product > :not(.product__photo) { left: calc(20 * var(--u)); }
  .product__photo { height: calc(290 * var(--u)); }
  .product__photo .photo-slot__hint { font-size: calc(15 * var(--u)); gap: calc(12 * var(--u)); }
  .product__photo .photo-slot__hint svg { width: calc(56 * var(--u)); height: calc(56 * var(--u)); }
  .product__name { top: calc(308 * var(--u)); width: calc(280 * var(--u)); font-size: calc(34 * var(--u)); }
  .product__text { display: block; top: calc(356 * var(--u)); width: calc(280 * var(--u)); font-size: calc(15 * var(--u)); line-height: 1.5; }
  .product__price { top: calc(452 * var(--u)); font-size: calc(40 * var(--u)); }
  .product__buy { left: auto !important; right: calc(20 * var(--u)); top: calc(468 * var(--u)); }
  .product__buy::after { inset: calc(-10 * var(--u)) calc(-6 * var(--u)); }

  /* profile */
  .profile { --H: 760; }
  .rule--profile { --x: 56; --y: 0; --rw: 1328; --rh: 4; }
  .profile__quote { --x: 56; --y: 46; width: calc(1000 * var(--u)); font-size: calc(84 * var(--u)); }
  .qa { --x: 56; --y: 330; width: calc(1296 * var(--u)); display: grid; grid-template-columns: repeat(3, calc(400 * var(--u))); column-gap: calc(48 * var(--u)); }
  .qa__item { padding-top: calc(18 * var(--u)); }
  .qa__item + .qa__item { margin-top: 0; }
  .qa h3 { font-size: calc(34 * var(--u)); }
  .qa p { margin-top: calc(26 * var(--u)); }
  .press { --x: 56; --y: 580; width: calc(1328 * var(--u)); height: calc(150 * var(--u)); }
  .press p { left: calc(32 * var(--u)); top: calc(50 * var(--u)); width: calc(1264 * var(--u)); font-size: calc(36 * var(--u)); }

  /* newsroom */
  /* the newsroom and the footer share the last screen */
  .newsroom { --H: 840; --sec-h: calc(max(100svh, 840 * var(--u)) - 120 * var(--u)); --stage-top: calc((var(--sec-h) - 720 * var(--u)) / 2); }
  .newsroom .stage { height: calc(720 * var(--u)); }
  .newsroom__title { --x: 56; --y: 60; width: calc(660 * var(--u)); font-size: calc(96 * var(--u)); }
  .newsroom__sub { --x: 56; --y: 260; width: calc(560 * var(--u)); font-size: calc(28 * var(--u)); }
  .newsroom__mail { display: block; --x: 56; --y: 560; font: 400 calc(44 * var(--u))/1 var(--font-display); text-transform: uppercase; text-decoration: none; white-space: nowrap; }
  .newsroom__mail:hover { text-decoration: underline; }
  .letter { --x: 764; --y: 100; --r: -1.2deg; width: calc(620 * var(--u)); height: calc(520 * var(--u)); }
  .letter__label { display: block; --sm: 12; left: calc(32 * var(--u)); top: calc(30 * var(--u)); color: var(--red-deep); }
  .field { left: calc(32 * var(--u)); width: calc(556 * var(--u)); }
  .field label { --sm: 12; }
  .field input, .field textarea { font-size: calc(17 * var(--u)); }
  .field--name { --fy: 80; --fh: 43.6; }
  .field--email { --fy: 190; --fh: 43.6; }
  .field--msg { --fy: 300; --fh: 67.6; }
  .form__send { left: calc(32 * var(--u)); top: calc(424 * var(--u)); width: calc(240 * var(--u)); height: calc(56 * var(--u)); }
  .letter__mail { display: none; }

  /* footer */
  .footer { --H: 840; --sec-h: calc(120 * var(--u)); --stage-top: 0px; }
  .footer .stage { height: calc(120 * var(--u)); }
  .footer__brand { --x: 56; --y: 34; font-size: calc(40 * var(--u)); }
  .footer__copy { --sm: 12; --x: 420; --y: 52; width: auto; white-space: nowrap; }
  .footer__links { --sm: 12; left: auto; right: calc(56 * var(--u)); --y: 52; gap: 1.1em; }
  .footer__links a { padding: calc(10 * var(--u)) 0; margin: calc(-10 * var(--u)) 0; }
}

/* ---------- 7. Animations (only with the "motion" class, see index.html).
   Nothing starts hidden until main.js adds "sw-reveal", so the page always
   shows up complete without JavaScript. To turn them all off: class="no-motion" on <html>. */
.motion.sw-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)); }
/* the masthead settles on the page like fresh ink: it fades in while it rises a little and settles to size */
.motion.sw-reveal [data-reveal="press"] { transform-origin: 0 100%; transition: opacity calc(var(--motion-dur) * 1.5) var(--motion-ease),
  translate calc(var(--motion-dur) * 1.5) var(--motion-ease), scale calc(var(--motion-dur) * 1.6) var(--motion-ease); }
.motion.sw-reveal [data-reveal="press"]:not(.is-in) { opacity: 0; translate: 0 calc(16 * var(--u)); scale: 1.035; }
/* the photo is inked from left to right, then the red overprint lands */
.motion.sw-reveal [data-reveal="ink"]:not(.is-in) { clip-path: inset(0 100% 0 0); }
.motion.sw-reveal [data-reveal="ink"] .photo__print { transition: opacity var(--motion-dur) var(--motion-ease) calc(var(--motion-dur) * .6); }
.motion.sw-reveal [data-reveal="ink"]:not(.is-in) .photo__print { opacity: 0; }
/* the stamp presses down */
.motion.sw-reveal [data-reveal="stamp"]:not(.is-in) { opacity: 0; scale: var(--motion-stamp); translate: -20% -20%; }
/* text and boxes rise a little */
.motion.sw-reveal [data-reveal="rise"]:not(.is-in) { opacity: 0; translate: 0 calc(var(--motion-rise) * var(--u)); }
/* used by main.js: "sw-still" jumps without animating, "sw-measure" puts every piece in its final place */
.sw-still *, .sw-still *::before, .sw-still *::after { transition: none !important; }
.sw-measure [data-reveal], .sw-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(20 * var(--u)); top: calc(400 * var(--u)); width: calc(200 * var(--u)); height: calc(48 * var(--u)); display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 calc(8 * var(--u)); background: var(--red-deep); color: var(--paper); font: 700 calc(12 * var(--u))/1.2 var(--font-text); text-align: center; }
.demo-note[hidden] { display: none; }
.demo-credit { background: var(--ink); color: var(--paper); 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 { left: calc(32 * var(--u)); top: calc(424 * var(--u)); width: calc(240 * var(--u)); height: calc(56 * var(--u)); font-size: calc(13 * var(--u)); } .demo-credit { padding: 24px 56px 32px; font-size: 14px; } .demo-credit p { width: min(100%, 1328px); } }
