:root {
  /* brand palette: folder/ninefold loqo,color,type.pdf */
  --ink: #1c1c20;        /* Charcoal */
  --raise: #26262b;
  --raise-2: #303036;
  --soft: #a5acb2;       /* Soft Blue */
  --bone: #f4f2ec;       /* White 1 C */
  --dim: #a5acb2;
  --signal: #2c5bff;     /* Electric Blue */

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --margin: clamp(16px, 2.2vw, 32px);
  --bar-h: clamp(56px, 8vh, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
/* every page keeps the scrollbar's lane, so the header does not shift between the still home and the scrolling pages */
html { scrollbar-gutter: stable; }
body {
  background: var(--ink);
  color: var(--bone);
  font: 400 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }   /* the controls answer the tap themselves */
img, video { display: block; max-width: 100%; }
ul, ol, dl, dd, p, h1, h2, h3 { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--signal); color: var(--bone); }

/* ---------- primitives ---------- */

.display {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.02em;
  word-spacing: .1em;     /* the condensed cut's own space nearly closes up at display sizes */
  text-wrap: balance;
}
.button {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 24px;
  border-radius: 0;       /* one shape for every control: square, like the tiles, rows and panels */
  background: var(--signal); color: var(--bone);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.button::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); }
.button:hover { background: var(--bone); color: var(--ink); }
.button:hover::after { transform: translateX(3px) rotate(45deg); }
.button:active { transform: scale(.97); }
.button--quiet { background: var(--raise-2); }

/* ---------- frame ---------- */

.page { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.is-home .page { height: 100dvh; overflow: hidden; }

.bar {
  height: var(--bar-h);
  display: flex; align-items: center; gap: clamp(14px, 4vw, 64px);
  padding: 0 var(--margin);
  position: relative; z-index: 10;
  background: var(--ink);
}
/* mark and wordmark scale with the bar, so they keep the same air above and below on any screen height */
.bar__brand { display: flex; align-items: center; gap: calc(var(--bar-h) * .21); font: 600 calc(var(--bar-h) * .52)/1 var(--text); letter-spacing: -0.035em; margin-right: auto; }
.bar__brand img { width: calc(var(--bar-h) * .8); height: calc(var(--bar-h) * .8); transition: transform .8s var(--ease); }
.bar__brand:hover img { transform: rotate(-40deg); }
.bar__nav { display: flex; gap: clamp(14px, 2.6vw, 40px); }
.bar__nav a {
  position: relative;
  font-family: var(--display); font-stretch: 62%; font-weight: 700;
  text-transform: uppercase; font-size: 21px; letter-spacing: .01em;
  color: var(--dim); transition: color .25s;
}
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.bar__nav a:hover, .bar__nav a[aria-current="page"] { color: var(--bone); }
.bar__nav a:hover::after, .bar__nav a[aria-current="page"]::after { transform: scaleX(1); }
.bar .button { height: 44px; padding: 0 18px; font-size: 14px; }
.bar__end { display: flex; align-items: center; }
.bar__burger { display: none; }
.bar__social { display: none; }

/* quiet sentence-case links, the demo (and on phones the burger) sit in their own bays behind one rule, full bar height */
.bar { padding-right: 0; }
.bar__nav a {
  font-family: var(--text); font-stretch: 100%; font-weight: 500;
  text-transform: none; font-size: 17px; letter-spacing: 0; color: var(--bone); opacity: .82;
  transition: opacity .25s;
}
.bar__nav a:hover, .bar__nav a[aria-current="page"] { opacity: 1; }
.bar__nav a::after { bottom: -8px; height: 2px; }
.bar__end { align-self: stretch; }
.bar .button, .bar__burger {
  height: 100%;
  background: none; border: 0; border-left: 1px solid rgba(244, 242, 236, .16); /* taste-skill-ignore: the reference's bay rule */
}
.bar .button { padding: 0 clamp(32px, 4.4vw, 80px); font-size: 17px; font-weight: 600; }
.bar .button::after { display: none; }
.bar .button:hover { background: var(--signal); color: var(--bone); }
.bar .button:active { transform: none; }

/* film grain over everything, like the footage it stands beside */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: var(--grain, none) 0 0 / var(--grain-size, 256px) repeat;
  opacity: .08;
}

/* footer: home keeps one strip, inner pages close with the name at full width */
.foot { position: relative; z-index: 3; padding: 0 var(--margin) clamp(10px, 2vh, 20px); display: grid; gap: clamp(10px, 2vh, 20px); }
.foot { container-type: inline-size; }
.foot__name {
  /* the word measures 3.323 of its size, so this sets it edge to edge across the footer */
  font-size: calc(100cqw / 3.33); line-height: .78; letter-spacing: -0.03em;
  margin: 0; padding-top: clamp(120px, 14vw, 240px);
  text-align: center; white-space: nowrap; overflow: hidden;
}
.foot__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--dim); }
.foot__row > * { white-space: nowrap; }
.foot__dev { white-space: nowrap; }   /* "Website development: NEOMAX" never splits across lines */
/* wide screens: credits left, the listening tiles in the middle, the motto right */
@media (min-width: 1101px) {
  .foot__row { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); gap: 24px; }
  .foot__social a { gap: 14px; padding: 0 12px; }
  .foot__row > :last-child { justify-self: end; }
}
.credit { transition: color .25s; }
.credit:hover { color: var(--bone); }
.foot__photo { font-size: 10px; opacity: .35; }   /* the Hubble photo's licence credit, kept small on About */
.credit--faint { font-size: 13px; opacity: .32; transition: opacity .3s, color .25s; }
.credit--faint:hover, .credit--faint:focus-visible { opacity: 1; }
.foot__social { display: flex; gap: 3px; }
.foot__social a {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 44px; padding: 0 13px;
  background: var(--raise);
  font-family: var(--display); font-stretch: 62%; font-weight: 700;
  text-transform: uppercase; font-size: 17px; letter-spacing: .02em; color: var(--bone); white-space: nowrap;
  transition: background .25s, color .25s;
}
.foot__social a::after { content: ""; width: 6px; height: 6px; border-top: 1.6px solid var(--dim); border-right: 1.6px solid var(--dim); transform: rotate(45deg); transition: transform .3s var(--ease), border-color .25s; }
.foot__social a:hover { background: var(--bone); color: var(--ink); }
.foot__social a:hover::after { border-color: var(--signal); transform: translateX(3px) rotate(45deg); }

/* ---------- home ---------- */

.hero { position: relative; min-height: 0; display: flex; align-items: flex-end; }
.is-home .bar { background: transparent; }
/* Hubble's M101 with its black turned to transparency; the sky reaches up under the bar so its fade mask never crops the arms */
.hero { --under: 140px; }      /* how far the sky runs on below the hero, under the footer */
.hero__sky { position: absolute; inset: calc(-16px - var(--bar-h)) -16px calc(-16px - var(--under)); }
.hero__film {
  position: absolute; top: calc(50% + (var(--bar-h) - var(--under)) / 2); right: clamp(-120px, -4vw, 0px);
  height: min((100% - var(--bar-h) - var(--under)) * 1.18, 64vw); width: auto; aspect-ratio: 1; max-width: none;
  translate: 0 -50%;
  /* the square's edge would sweep across the sky as it turns; a soft disc has no edge to show */
  -webkit-mask-image: radial-gradient(closest-side, #000 80%, rgba(0, 0, 0, .6) 90%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 80%, rgba(0, 0, 0, .6) 90%, transparent 100%);
}
/* the sky fades out under the headline: a mask, not a translucent overlay, so the flat charcoal gets no dither bands */
.hero__sky {
  -webkit-mask-image: linear-gradient(90deg, transparent 12%, rgba(0, 0, 0, .04) 20%, rgba(0, 0, 0, .12) 28%, rgba(0, 0, 0, .26) 35%, rgba(0, 0, 0, .44) 42%, rgba(0, 0, 0, .63) 49%, rgba(0, 0, 0, .8) 56%, rgba(0, 0, 0, .92) 63%, #000 70%);
          mask-image: linear-gradient(90deg, transparent 12%, rgba(0, 0, 0, .04) 20%, rgba(0, 0, 0, .12) 28%, rgba(0, 0, 0, .26) 35%, rgba(0, 0, 0, .44) 42%, rgba(0, 0, 0, .63) 49%, rgba(0, 0, 0, .8) 56%, rgba(0, 0, 0, .92) 63%, #000 70%); /* taste-skill-ignore: eased fade */
}
.hero__copy {
  position: relative; z-index: 2; min-width: 0;
  display: grid; gap: clamp(16px, 4vh, 40px); justify-items: start;
  padding: 0 var(--margin) clamp(20px, 6vh, 64px);
}
.hero__title { font-size: clamp(56px, min(10vw, 19vh), 240px); }
/* desktop: the copy sits exactly midway between the header and the footer, on any screen */
@media (min-width: 901px) { .hero { align-items: center; } .hero__copy { padding-block: 0; } }
.hero__title > span { display: block; overflow: hidden; padding-top: .04em; }
.hero__title > span > span { display: block; }
.hero__lede { max-width: 38ch; font-size: clamp(18px, min(1.25vw, 2.2vh), 20px); }
/* same brand blue as the buttons; thin strokes blend into the charcoal and read duller, so the name is set heavier */
.hero__name { color: var(--signal); font-weight: 750; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- inner pages ---------- */

.inner { min-width: 0; padding: clamp(24px, 6vh, 72px) var(--margin) 0; display: grid; gap: clamp(28px, 6vh, 64px); align-content: start; }
.inner__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; }
.inner__title { font-size: clamp(64px, min(12vw, 20vh), 220px); }
.inner__lede { font-size: clamp(18px, 1.35vw, 21px); padding-bottom: .3em; width: 17.5em; max-width: 100%; }   /* measured in its own size, so every page breaks it into the same three lines */

/* music: the catalogue as a list, the cover follows the title you point at */
.catalogue { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.catalogue__cover { position: sticky; top: 24px; aspect-ratio: 1; max-width: 100%; background: var(--raise); overflow: hidden; }
.catalogue__cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.catalogue__cover canvas.is-on { opacity: 1; transform: none; }
.catalogue__list { display: grid; gap: 4px; }
.track {
  width: 100%; border: 0; border-radius: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 6px 20px;
  padding: clamp(14px, 2.2vh, 22px) 20px;
  background: var(--raise);
  transition: background .3s, color .3s;
}
.track__title { font-size: clamp(40px, 5.2vw, 88px); }
.track__cat { font-size: 15px; color: var(--dim); padding-bottom: .4em; font-variant-numeric: tabular-nums; }
.track__by { grid-column: 2; font-size: 15px; color: var(--dim); }
.track__go { grid-row: 1 / span 2; grid-column: 3; align-self: center; width: 12px; height: 12px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .4; transition: transform .3s var(--ease), opacity .3s; }
.track.is-on, .track:hover, .track:focus-visible { background: var(--bone); color: var(--ink); }
.track.is-on .track__cat, .track.is-on .track__by, .track:hover .track__cat, .track:hover .track__by { color: #5d6268; }
.track.is-on .track__go, .track:hover .track__go { opacity: 1; transform: translateX(4px) rotate(45deg); color: var(--signal); }
/* the rest of the catalogue lives on Spotify: one quiet row closes the list */
.more {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  height: 56px; padding: 0 20px; background: var(--signal); color: var(--bone);
  font-size: 16px; font-weight: 600;
  transition: background .25s, color .25s;
}
.more__go { width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); }
.more:hover { background: var(--bone); color: var(--ink); }
.more:hover .more__go { transform: translateX(4px) rotate(45deg); }
/* while "view all" is pointed at, the last release you passed lets go of its highlight */
.catalogue__list:has(.more:hover, .more:focus-visible) .track.is-on { background: var(--raise); color: var(--bone); }
.catalogue__list:has(.more:hover, .more:focus-visible) .track.is-on :is(.track__cat, .track__by) { color: var(--dim); }
.catalogue__list:has(.more:hover, .more:focus-visible) .track.is-on .track__go { opacity: .4; transform: rotate(45deg); color: inherit; }
/* while "view all" is pointed at, the last release you passed lets go of its highlight */

/* artists: panels open on hover / focus, each artist owns a field of colour */
.roster { display: flex; gap: 4px; height: clamp(420px, 62vh, 720px); }
.roster li { flex: 1 1 0; min-width: 0; display: flex; transition: flex-grow .7s var(--ease); }
.roster li.is-open { flex-grow: 3.2; }
.artist {
  position: relative; flex: 1; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; background: var(--raise);
}
.artist--signal { background: var(--signal); color: var(--bone); }
.artist--soft { background: var(--soft); color: var(--ink); }
.artist--bone { background: var(--bone); color: var(--ink); }
.artist__label { display: flex; flex-direction: column; gap: 10px; writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; white-space: nowrap; }
.artist__name { font-size: clamp(40px, 4.6vw, 84px); }
.artist__genre { font-size: 16px; font-weight: 500; }
.roster li.is-open .artist__label { writing-mode: horizontal-tb; transform: none; }
/* desktop: artists and about fill exactly one screen under the bar at any size; the big name waits below */
@media (min-width: 901px) {
  .is-artists .inner, .is-about .inner, .is-music .inner {
    height: max(560px, calc(100dvh - var(--bar-h)));
    grid-template-rows: auto minmax(0, 1fr); align-content: stretch;
    padding-bottom: var(--margin);
  }
  .is-artists .roster { height: auto; }
  /* at least one screen, but free to grow: on a short laptop screen the text never runs past the bottom edge */
  .is-about .inner { height: auto; min-height: max(640px, calc(100dvh - var(--bar-h))); }
  .is-about .about__film { min-height: 0; }
  .is-about .about__body { gap: clamp(14px, 2.6vh, 24px); }
  .is-about .facts dd { font-size: clamp(22px, min(2.4vw, 4.6vh), 40px); }
  .is-about .about__text .about__statement { font-size: clamp(16px, min(1.45vw, 2.4vh), 26px); }
  @media (max-height: 820px) { .is-about .facts div { padding: 10px 18px; } }
  /* music: a square cover as tall as the room allows, the four releases share its height */
  .is-music .catalogue { min-height: 0; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
  .is-music .catalogue__cover { position: relative; top: 0; height: 100%; width: auto; max-width: 46vw; }
  .is-music .catalogue__list { min-height: 0; grid-template-rows: repeat(4, minmax(0, 1fr)) auto; }
  .is-music .catalogue__list li { display: flex; min-height: 0; }
  .is-music .track { align-content: center; padding-block: clamp(6px, 1.2vh, 14px); }
  .is-music .track__title { font-size: clamp(34px, min(5.2vw, 6.6vh), 88px); }
}

/* about: the label's own footage beside the statement */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: stretch; }
.about__film { position: relative; min-height: clamp(360px, 64vh, 760px); background: #000; overflow: hidden; }
.about__film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; }
.about__body { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.about__statement { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; max-width: 32ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.facts div { background: var(--raise); padding: 18px 20px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; min-width: 0; }
.facts dt { font-size: 15px; color: var(--dim); }
.facts dd { font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 40px); line-height: .95; }
.about__intro { display: grid; gap: 28px; }
.about__text { display: grid; gap: 12px; max-width: 34em; }
.about__text .about__statement { font-size: clamp(18px, min(1.45vw, 2.5vh), 26px); max-width: none; }
.about__text + .contact { margin-top: -6px; }
.about__note { font-size: clamp(15px, 1vw, 17px); color: var(--dim); max-width: 44ch; }
.contact { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 17px; }
.contact span { user-select: all; }

/* ---------- motion: entrances only when motion is welcome, so the reduced page is the finished page ---------- */

@keyframes lift { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes bloom { from { opacity: 0; transform: scale(1.08); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { from { scale: 1; } to { scale: 1.06; } }

@media (prefers-reduced-motion: no-preference) {
  .in { animation: lift .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .bar .in { animation: none; }   /* the header stays put from page to page */
  .about__film img { animation: breathe 24s ease-in-out infinite alternate; }
  .is-away .hero__film, .is-away .about__film img { animation-play-state: paused; }
  .hero__title > span > span { animation: rise 1.1s var(--ease) both; }
  .hero__title > span + span > span { animation-delay: .12s; }
  /* one turn every ten minutes, trailing its arms, and a slow breath: both loop with no seam */
  .hero__film { animation: bloom 2.6s var(--ease) both, spin 600s linear var(--sky-t, 0s) infinite, breathe 24s ease-in-out var(--sky-t, 0s) infinite alternate; }
  /* back after Chrome reloaded the tab: no second bloom, the turn carries on from where it was */
  .sky-resume .hero__film { animation: spin 600s linear var(--sky-t) infinite, breathe 24s ease-in-out var(--sky-t) infinite alternate; }
  .foot__social li { animation: lift .8s var(--ease) both; }
  .foot__social li:nth-child(2) { animation-delay: 60ms; } .foot__social li:nth-child(3) { animation-delay: 120ms; }
  .foot__social li:nth-child(4) { animation-delay: 180ms; } .foot__social li:nth-child(5) { animation-delay: 240ms; }
  .foot__social li:nth-child(6) { animation-delay: 300ms; }
  .foot__row > span, .foot__row > .foot__photo, .foot__name { animation: lift 1s .2s var(--ease) both; }
  .catalogue__list li, .roster > li, .facts div { animation: lift .9s var(--ease) both; }
  .catalogue__list li:nth-child(2), .roster > li:nth-child(2), .facts div:nth-child(2) { animation-delay: 80ms; }
  .catalogue__list li:nth-child(3), .roster > li:nth-child(3), .facts div:nth-child(3) { animation-delay: 160ms; }
  .catalogue__list li:nth-child(4), .roster > li:nth-child(4), .facts div:nth-child(4) { animation-delay: 240ms; }
  .roster > li:nth-child(5) { animation-delay: 320ms; } .roster > li:nth-child(6) { animation-delay: 400ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */

@media (max-height: 620px) {
  .hero__lede { display: none; }
  .hero__title { font-size: clamp(48px, min(10vw, 22vh), 200px); }
}

@media (max-width: 1100px) {
  .foot__row { flex-wrap: wrap; }
  .foot__row > * { white-space: normal; }
  .foot__social { order: -1; width: 100%; }
  .foot__social li { flex: 1; }
  .foot__social a { padding: 0 12px; gap: 8px; }
}

@media (max-width: 900px) {
  .hero__film { top: var(--bar-h); right: 50%; translate: 50% -16%; height: auto; width: min(118vw, 64vh); }
  .hero__sky {
    /* stops measured on the hero itself, past the stretch that runs under the footer */
    --h: (100% - var(--under) - var(--bar-h));
    --fade: linear-gradient(0deg, transparent calc(var(--under) + var(--h) * .34), rgba(0, 0, 0, .1) calc(var(--under) + var(--h) * .42), rgba(0, 0, 0, .3) calc(var(--under) + var(--h) * .5), rgba(0, 0, 0, .55) calc(var(--under) + var(--h) * .58), rgba(0, 0, 0, .78) calc(var(--under) + var(--h) * .66), rgba(0, 0, 0, .93) calc(var(--under) + var(--h) * .74), #000 calc(var(--under) + var(--h) * .82));
    -webkit-mask-image: var(--fade);
            mask-image: var(--fade); /* taste-skill-ignore: eased fade */
  }
  .hero__title { font-size: clamp(52px, min(16vw, 12vh), 160px); }
  .catalogue, .about, .inner__head { grid-template-columns: 1fr; }
  .catalogue__cover { position: relative; top: 0; max-height: 52vh; width: auto; }
  /* swipe deck: tall cards in the desktop's colours and vertical names, snapping one at a time,
     the next card peeking in from the right edge */
  .roster {
    height: clamp(380px, 60svh, 640px);   /* svh: steady while the browser bar slides away, so the page does not jump */
    margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin);
    scrollbar-width: none;
  }
  .roster::-webkit-scrollbar { display: none; }
  .roster li, .roster li.is-open { flex: 0 0 min(76%, 340px); scroll-snap-align: start; }
  .artist { padding: 22px; }
  .roster li.is-open .artist__label { writing-mode: vertical-rl; transform: rotate(180deg); }
  .artist__name { font-size: clamp(52px, 16vw, 84px); }
}

/* phone: wordmark left, demo and burger right; the menu opens over the whole screen */
@media (max-width: 760px) {
  .bar__brand { gap: 10px; }
  .bar__brand img { width: 36px; height: 36px; }   /* outline-only mark, swapped in by <picture> */
  .bar__brand span { font-size: 27px; }
  .bar .button { padding: 0 20px; font-size: 15px; border-left: 0; }
  /* phones: the credit takes its own line under the copyright */
  .foot__sep { display: none; }
  /* home: one line, copyright on the left and the developer credit on the right; the motto stays for wide screens */
  .is-home .foot__row { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: baseline; gap: 8px 12px; font-size: min(13px, 3.2vw); }
  .is-home .foot__row > * { white-space: nowrap; }
  .is-home .foot__copy { display: contents; }
  .is-home .foot__caption { display: none; }
  .is-home .foot__dev { grid-row: 1; grid-column: 2; }
  .about__film { min-height: 0; aspect-ratio: 4 / 3; }
  /* phones: the facts lead, then the photo, then the story and the demo button */
  .about__body { display: contents; }
  .about .facts { order: -1; }
  .bar__burger {
    display: grid; place-content: center; gap: 6px; width: var(--bar-h); padding: 0; border-radius: 0; cursor: pointer;
    color: var(--bone); transition: background-color .4s var(--ease), scale .25s var(--ease);
  }
  .bar__burger span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
  .bar__burger:active { scale: .94; }
  .menu-open .bar__burger { background-color: var(--signal); }
  .menu-open .bar__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .bar__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .bar__nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 6px;
    padding: var(--bar-h) var(--margin);
    background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s;
  }
  .menu-open .bar__nav { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
  /* the links rise in one after another, the listening tiles follow */
  .bar__nav > a, .bar__social {
    opacity: 0; transform: translateY(28px);
    transition: opacity .45s var(--ease), transform .7s var(--ease);
  }
  .menu-open .bar__nav > a, .menu-open .bar__social { opacity: 1; transform: none; }
  .menu-open .bar__nav > a:nth-child(1) { transition-delay: .08s; }
  .menu-open .bar__nav > a:nth-child(2) { transition-delay: .14s; }
  .menu-open .bar__nav > a:nth-child(3) { transition-delay: .2s; }
  .menu-open .bar__social { transition-delay: .28s; }
  .menu-open { overflow: hidden; }
  .bar__nav a { font-size: clamp(56px, 17vw, 96px); line-height: 1.02; letter-spacing: -0.035em; align-self: flex-start; }
  .bar__nav a::after { bottom: 0; height: 3px; }
  /* where to listen sits at the foot of the menu, the same square tiles as the desktop footer */
  .bar__social {
    position: absolute; left: var(--margin); right: var(--margin); bottom: calc(var(--margin) + env(safe-area-inset-bottom, 0px));
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  }
  .bar__nav .bar__social a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    height: 48px; padding: 0 14px; background: var(--raise); opacity: 1;
    font-family: var(--display); font-stretch: 62%; font-weight: 700; text-transform: uppercase;
    font-size: 18px; line-height: 1; letter-spacing: .02em; color: var(--bone);
    transition: background .25s, color .25s;
  }
  .bar__nav .bar__social a::after {
    content: ""; position: static; width: 6px; height: 6px; background: none;
    border-top: 1.6px solid var(--dim); border-right: 1.6px solid var(--dim); transform: rotate(45deg);
  }
  .bar__nav .bar__social a:hover { background: var(--bone); color: var(--ink); }
  .foot__social { display: none; }

  .hero__actions { display: none; }

  /* the phone is a poster: the motto runs edge to edge, the footer is only the credits */
  .hero__title { font-size: clamp(56px, 20.5vw, 120px); line-height: .84; }
  .foot { gap: 10px; padding-top: 14px; }
  .foot__row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 560px) {
  .inner__title { font-size: clamp(44px, 14.5vw, 80px); }
  .facts { grid-template-columns: 1fr; }
  .track { padding: 14px; }
  .foot__row > span:last-child:not(.foot__caption) { display: none; }
  .foot__row { font-size: 13px; }
}

/* for now the site is the home page alone: the page links and the phone menu are switched off */
.bar__nav, .bar__burger, .hero__actions, .foot__social { display: none !important; }
/* with the listening tiles gone, the footer row is just copyright left and motto right */
@media (min-width: 1101px) { .foot__row { display: flex; } }
/* without the burger beside it, "Send demo" lines up with the page margin on phones */
@media (max-width: 760px) { .bar { padding-right: max(0px, calc(var(--margin) - 20px)); } }
