/* PixelRadio.FM one-pager. Theme: dark only (the brand is a night radio). Shapes: sharp, stepped pixel corners. */

@font-face { font-family: "Jersey 10"; src: url("assets/fonts/jersey10.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("assets/fonts/pixelify-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("assets/fonts/pixelify-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* brand (sampled from the wordmark) */
  --ink: #0a0a30;          /* navy outline */
  --night: #0b0a24;        /* page */
  --night-2: #121035;      /* raised surface */
  --panel: #0c0b2c;        /* radio display */
  --cream: #fff6e2;
  --peach: #f9d6b0;
  --teal: #41d5ad;         /* the one UI accent */
  --teal-hi: #86eeaa;
  --teal-lo: #00beb0;
  --teal-dim: #2a8f86;
  --pink: #e180cf;
  --pink-lo: #c860c8;
  --text: #fff6e2;
  --muted: #b7b3dc;

  --px: 4px;               /* pixel step for corners and shadows */
  --maxw: 1240px;
  --pad: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* z scale */
  --z-fx: 1; --z-radio: 3; --z-nav: 10; --z-notice: 15; --z-skip: 20;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* Pixelify's "fi" ligature reads like an A. The font shorthand resets these, hence !important. */
* { font-variant-ligatures: none !important; font-feature-settings: "liga" 0, "clig" 0 !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 18px/1.6 "Pixelify Sans", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: var(--z-skip); padding: 8px 14px; background: var(--teal); color: var(--ink); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* stepped "pixel" corners */
.px-corners, .btn, .radio, .compare, .loopfig, .compare__label, .tile img, .facts li {
  clip-path: polygon(0 var(--px), var(--px) var(--px), var(--px) 0, calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px),
    100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%, var(--px) 100%,
    var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px)));
}
/* focus ring: the corners' clip-path cuts off anything outside the box, so a clipped control gets its ring on the inside,
   just within the corner step. A new control with pixel corners belongs in this list. */
.btn:focus-visible, .radio__play:focus-visible, .radio__yt:focus-visible { outline-offset: calc(var(--px) * -1 - 3px); }
.btn--primary:focus-visible, .radio__play:focus-visible { outline-color: var(--ink); }
.radio__yt:focus-visible { outline-color: var(--cream); }

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .7em 1.15em .65em;
  font: 600 1rem/1 "Pixelify Sans", monospace;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--teal); color: var(--ink); box-shadow: inset 0 -4px 0 var(--teal-lo), inset 0 4px 0 var(--teal-hi); }
.btn--primary .icon { filter: brightness(0) saturate(100%) invert(6%) sepia(43%) saturate(4290%) hue-rotate(234deg) brightness(91%) contrast(108%); }
.btn--primary:hover { background: var(--teal-hi); }
.btn--ghost { background: rgb(10 10 48 / .62); color: var(--cream); box-shadow: inset 0 0 0 2px rgb(255 246 226 / .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost .icon { filter: invert(96%) sepia(9%) saturate(533%) hue-rotate(318deg) brightness(104%); }
.btn--ghost:hover { background: rgb(10 10 48 / .85); box-shadow: inset 0 0 0 2px var(--teal); }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: 68px; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 28px;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-solid { background: rgb(11 10 36 / .88); box-shadow: 0 1px 0 rgb(255 246 226 / .08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand img { width: 40px; height: 40px; }
.nav__name { font: 400 28px/1 "Jersey 10", monospace; letter-spacing: .02em; color: var(--cream); filter: drop-shadow(2px 2px 0 var(--ink)); }
.nav__name b { font-weight: 400; color: var(--teal); }
.nav__name i { font-style: normal; color: var(--pink); }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--cream); font-size: 16px; text-shadow: 2px 2px 0 var(--ink); }
.nav__links a:hover { color: var(--teal-hi); }
.nav__cta { font-size: 15px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100dvh; overflow: hidden; isolation: isolate;
  background: linear-gradient(100deg, #1f5a3f 0%, #3f7f5a 22%, #c98a8f 46%, #7a5fb0 66%, #2c2a6e 100%); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; }
.hero__video.is-ready { opacity: 1; }
/* static film grain over the video (the still image already has grain baked in) */
.hero__grain { position: absolute; inset: 0; z-index: var(--z-fx); pointer-events: none; display: none;
  background: 0 0 / 256px 256px repeat; mix-blend-mode: overlay; }
/* the tile is only requested once the video plays (no download for the still-image fallback) */
.hero.has-video .hero__grain { display: block; background-image: url("assets/img/grain.png"); animation: grain-in 1.2s var(--ease); }
@keyframes grain-in { from { opacity: 0; } }
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: var(--z-fx); pointer-events: none; }
.hero__scrim { position: absolute; inset: 0 0 auto 0; height: 140px; z-index: var(--z-fx); pointer-events: none;
  background: linear-gradient(rgb(11 10 36 / .55), rgb(11 10 36 / 0)); }

/* radio: positioned by app.js over the spot where the painted sign was (desktop) or docked at the bottom (mobile) */
.radio {
  --rw: 520px;
  --u: calc(var(--rw) / 100);
  position: absolute; z-index: var(--z-radio);
  left: 50%; top: 50%; width: var(--rw);
  transform: translate(-50%, -50%);
  padding: calc(var(--u) * 3.6) calc(var(--u) * 4.2) calc(var(--u) * 3);
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / .022) 0 2px, transparent 2px 4px),
    var(--panel);
  box-shadow:
    inset 0 0 0 calc(var(--u) * .55) var(--teal-dim),
    inset 0 0 0 calc(var(--u) * 1.1) var(--panel),
    inset 0 0 0 calc(var(--u) * 1.3) rgb(65 213 173 / .18);
  filter: drop-shadow(calc(var(--u) * 1.2) calc(var(--u) * 1.2) 0 rgb(7 6 30 / .85));
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.radio.is-placed { opacity: 1; }
.radio__head { position: relative; display: flex; justify-content: center; }
.wordmark {
  font: 400 calc(var(--u) * 15.5)/.9 "Jersey 10", monospace;
  letter-spacing: .035em;
  color: transparent;
  background: linear-gradient(var(--cream) 0 22%, #fff 22% 30%, var(--cream) 30% 58%, var(--peach) 58%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(calc(var(--u) * .5) calc(var(--u) * .5) 0 #05051a);
  white-space: nowrap;
}
.wordmark .wm-radio { background: linear-gradient(var(--teal-hi) 0 30%, var(--teal) 30% 62%, var(--teal-lo) 62%); -webkit-background-clip: text; background-clip: text; }
.wordmark .wm-fm { background: linear-gradient(#fab0dc 0 30%, var(--pink) 30% 62%, var(--pink-lo) 62%); -webkit-background-clip: text; background-clip: text; }
.radio__led {
  position: absolute; right: calc(var(--u) * -1.6); top: calc(var(--u) * -1.4);
  width: calc(var(--u) * 2.4); height: calc(var(--u) * 1.4);
  background: #5a2440;
}
.radio.is-playing .radio__led { background: #ff5f9e; animation: led 1.6s steps(2, jump-none) infinite; }
@keyframes led { 50% { background: #b23a72; } }

.dial { position: relative; margin: calc(var(--u) * 3.2) calc(var(--u) * 1.5) 0; height: calc(var(--u) * 7.6); }
.dial__scale {
  position: absolute; left: 0; right: 0; top: calc(var(--u) * 1.9); height: calc(var(--u) * 2.2);
  background:
    linear-gradient(var(--teal-dim), var(--teal-dim)) 0 100% / 100% calc(var(--u) * .45) no-repeat,
    repeating-linear-gradient(90deg, var(--teal-dim) 0 calc(var(--u) * .45), transparent calc(var(--u) * .45) calc(100% / 20 - .001px)) 0 100% / 100% 55% no-repeat,
    repeating-linear-gradient(90deg, var(--teal) 0 calc(var(--u) * .45), transparent calc(var(--u) * .45) calc(100% / 5 - .001px)) 0 100% / calc(100% + var(--u) * .45) 100% no-repeat;
}
.dial__labels { position: absolute; left: 0; right: 0; top: calc(var(--u) * 4.6); display: flex; justify-content: space-between;
  font: 400 max(calc(var(--u) * 2.3), 11px)/1 "Pixelify Sans", monospace; color: var(--teal); }
.dial__labels span { width: 0; display: flex; justify-content: center; }
.dial__needle {
  --f: 100.4;
  position: absolute; top: 0; height: calc(var(--u) * 4.4); width: calc(var(--u) * .8);
  left: calc((var(--f) - 88) / 20 * 100%);
  transform: translateX(-50%);
  background: var(--pink);
}
.radio__claim { margin-top: calc(var(--u) * 1.8); text-align: center; font: 400 max(calc(var(--u) * 2.9), 14px)/1.2 "Pixelify Sans", monospace; color: var(--cream); }

.radio__controls {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: calc(var(--u) * 2.4);
  margin-top: calc(var(--u) * 3);
  padding-top: calc(var(--u) * 2.6);
  background: repeating-linear-gradient(90deg, var(--teal-dim) 0 calc(var(--u) * .9), transparent calc(var(--u) * .9) calc(var(--u) * 1.8)) 0 0 / 100% calc(var(--u) * .35) no-repeat;
}
.radio__play {
  width: calc(var(--u) * 9.5); height: calc(var(--u) * 9.5); min-width: 44px; min-height: 44px;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: var(--teal); box-shadow: inset 0 calc(var(--u) * -.8) 0 var(--teal-lo), inset 0 calc(var(--u) * .8) 0 var(--teal-hi);
  clip-path: polygon(0 var(--px), var(--px) var(--px), var(--px) 0, calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px), 100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%, var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px)));
  transition: transform .15s var(--ease), background-color .2s var(--ease);
}
.radio__play:hover { background: var(--teal-hi); }
.radio__play:active { transform: translateY(1px) scale(.96); }
.radio__play .icon { width: 46%; height: 46%; filter: brightness(0) saturate(100%) invert(6%) sepia(43%) saturate(4290%) hue-rotate(234deg) brightness(91%) contrast(108%); }
.radio__play .icon--pause, .radio.is-playing .radio__play .icon--play { display: none; }
.radio.is-playing .radio__play .icon--pause { display: block; }
.radio.is-loading .radio__play { animation: blink .7s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .55; } }

.radio__now { min-width: 0; display: grid; gap: calc(var(--u) * .6); }
.radio__status { font: 600 max(calc(var(--u) * 2.3), 11px)/1 "Pixelify Sans", monospace; color: var(--teal); letter-spacing: .06em; text-transform: uppercase; }
.radio.is-error .radio__status { color: #ff8fb8; }
.radio__track { font: 400 max(calc(var(--u) * 3.2), 16px)/1.15 "Pixelify Sans", monospace; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vu { display: flex; align-items: flex-end; gap: calc(var(--u) * .6); height: calc(var(--u) * 6); }
.vu i { width: calc(var(--u) * 1.1); height: 100%; background:
  linear-gradient(0deg, var(--teal) 0 60%, var(--peach) 60% 82%, var(--pink) 82%);
  transform-origin: bottom; transform: scaleY(.12); opacity: .85; }
.radio__mute { width: calc(var(--u) * 6.5); height: calc(var(--u) * 6.5); min-width: 40px; min-height: 40px; display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer; box-shadow: inset 0 0 0 2px rgb(65 213 173 / .35); }
.radio__mute:hover { box-shadow: inset 0 0 0 2px var(--teal); }
.radio__mute .icon { width: 52%; height: 52%; filter: invert(72%) sepia(43%) saturate(512%) hue-rotate(110deg) brightness(95%); }
.radio__mute .icon--off, .radio.is-muted .radio__mute .icon--on { display: none; }
.radio.is-muted .radio__mute .icon--off { display: block; }

/* scene screen: a little monitor that opens under the controls once its video plays (.has-screen, app.js) */
/* closed it is also invisible, so its YouTube link can't take keyboard focus */
.radio__screen { display: grid; grid-template-rows: 0fr; margin-top: 0; visibility: hidden;
  transition: grid-template-rows .7s var(--ease), margin-top .7s var(--ease), visibility 0s .7s; }
.radio.has-screen .radio__screen { grid-template-rows: 1fr; margin-top: calc(var(--u) * 3); visibility: visible; transition-delay: 0s; }
.radio.is-cramped .radio__screen { display: none; }
.radio__screen-in { position: relative; min-height: 0; overflow: hidden; }
.radio__screen video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  max-height: var(--screen-max, none);
  background: var(--panel); border: calc(var(--u) * .55) solid var(--teal-dim);
  clip-path: polygon(0 var(--px), var(--px) var(--px), var(--px) 0, calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px), 100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%, var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px))); }
/* same static grain as over the hero video (the tile is only requested once the screen opens) */
.radio__screen-in::after { content: ""; position: absolute; inset: calc(var(--u) * .55); pointer-events: none;
  background: 0 0 / 256px 256px repeat; mix-blend-mode: overlay; }
.radio.has-screen .radio__screen-in::after { background-image: url("assets/img/grain.png"); }
/* same label as in "Latest scenes", scaled with the card; on the right the link to the full video */
.radio__screen .compare__label { z-index: 1; left: calc(var(--u) * 2.2); bottom: calc(var(--u) * 2.2);
  padding: .6em .85em .55em; font-size: max(calc(var(--u) * 2.8), 12px); }
.radio__screen .radio__yt { left: auto; right: calc(var(--u) * 2.2); display: inline-flex; align-items: center; gap: .55em;
  text-decoration: none; pointer-events: auto; transition: background-color .2s var(--ease), color .2s var(--ease); }
.radio__yt .icon { width: 1.2em; height: 1.2em; filter: invert(96%) sepia(9%) saturate(533%) hue-rotate(318deg) brightness(104%); }
.radio__yt:hover { background: var(--teal); color: var(--ink); }
.radio__yt:hover .icon { filter: brightness(0) saturate(100%) invert(6%) sepia(43%) saturate(4290%) hue-rotate(234deg) brightness(91%) contrast(108%); }
/* narrow cards (phones): both labels don't fit side by side, the link keeps only its icon */
.radio { container: radio / inline-size; }
@container radio (max-width: 380px) { .radio__yt span { display: none; } }   /* the card's content width */

/* docked radio (phones, portrait tablets): a card at the bottom of the hero */
.radio.is-docked {
  left: 50%; top: auto; bottom: max(30px, calc(env(safe-area-inset-bottom) + 18px));
  transform: translateX(-50%);
  transition: opacity .6s var(--ease), bottom .5s var(--ease);
}
/* while the cookie notice is open, the docked radio sits above it */
.has-notice .radio.is-docked { bottom: calc(var(--notice-h, 0px) + 28px + env(safe-area-inset-bottom)); }

/* ------------------------------------------------------------------ sections */
section:not(.hero) { padding: clamp(72px, 10vw, 136px) var(--pad); }

/* tinted sections: each has its own night colour; a two-step pixel staircase reaches into the neighbours */
.sec { --c: var(--night); --step: 24px; position: relative; z-index: 2; background-color: var(--c); }
.sec::before, .sec::after {
  content: ""; position: absolute; left: 0; right: 0; height: 16px; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) 0 var(--solid-y) / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, var(--c) 0 var(--step), transparent var(--step) calc(var(--step) * 2)) var(--teeth-x, 0) var(--teeth-y) / 100% 8px no-repeat;
}
.sec::before { top: -16px; --solid-y: 100%; --teeth-y: 0; }
.sec::after { bottom: -16px; --solid-y: 0; --teeth-y: 100%; --teeth-x: calc(var(--step) * -1); }
.sec--scene { --c: #0e1838; --step: 24px;
  background-image: radial-gradient(60% 70% at 92% 8%, rgb(65 213 173 / .10), transparent 70%); }
.sec--worlds { --c: #1b1038; --step: 40px;
  background-image: radial-gradient(55% 60% at 4% 96%, rgb(225 128 207 / .10), transparent 70%); }
.sec--mood { --c: #2a2063; --step: 32px;
  background-image: radial-gradient(50% 70% at 96% 90%, rgb(225 128 207 / .14), transparent 70%); }
.sec--foot { --c: #07061a; --step: 16px; }
.sec--foot::after { display: none; }
.band { position: relative; z-index: 1; padding: clamp(104px, 13vw, 176px) var(--pad); }
.eyebrow { font: 600 14px/1 "Pixelify Sans", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.title { font: 400 clamp(52px, 7.4vw, 96px)/.92 "Jersey 10", monospace; letter-spacing: .02em; color: var(--cream); filter: drop-shadow(4px 4px 0 var(--ink)); }
.t-teal { color: var(--teal); } .t-pink { color: var(--pink); }
.lead { margin-top: 20px; max-width: 34ch; font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); }

/* latest scenes: one row per scene (text column + large picture), newest first, every second row mirrored */
.scene__head { max-width: var(--maxw); margin: 0 auto clamp(28px, 3vw, 44px); }
/* sized so the longest title ("Ocean Beach Hotel", 6.8 em wide) stays on one line in the text column, with a little room to
   spare for other browsers' text metrics; the single column on phones (max-width: 767px) has its own size */
.scene .title { font-size: clamp(44px, 5.75vw, 78px); }
.scene__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.scene__inner + .scene__inner { margin-top: clamp(88px, 10vw, 144px); }
.scene__inner--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); }
.scene__inner--flip .scene__text { order: 2; }

/* scene picture: the still (grain baked in); with a scene loop, the video fades in over it, plus the same grain overlay as the hero video */
.loopfig { position: relative; margin: 0; aspect-ratio: 16 / 9; background: var(--night-2); --px: 6px; }
.loopfig__img, .loopfig__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.loopfig__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.loopfig.is-playing .loopfig__video { opacity: 1; }
.loopfig.is-playing::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("assets/img/grain.png") 0 0 / 256px 256px repeat; mix-blend-mode: overlay; }
.loopfig .compare__label { z-index: 1; }
.facts { list-style: none; margin: 32px 0 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { padding: 8px 12px 7px; background: rgb(10 10 48 / .6); color: var(--muted); font-size: 15px; box-shadow: inset 0 0 0 2px rgb(65 213 173 / .18); }
.facts strong { color: var(--cream); font-weight: 600; }
.scene__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* mood row between the scenes: the bento from "Stay a while" on a band of its own colour across the full width
   (out of the section padding), with the same pixel staircase at its edges as the sections */
.scene__mood { margin: clamp(72px, 8vw, 112px) calc(var(--pad) * -1) 0; padding: clamp(56px, 6vw, 88px) var(--pad); }
.scene__mood > .bento { max-width: var(--maxw); margin: 0 auto; }
.scene__mood + .scene__inner { margin-top: clamp(72px, 8vw, 112px); }

.compare { --pos: 50%; position: relative; margin: 0; aspect-ratio: 16 / 9; background: var(--night-2); --px: 6px; cursor: ew-resize; user-select: none; touch-action: pan-y; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__img--night { clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; transform: translateX(-50%); background: var(--cream); box-shadow: 0 0 0 2px var(--ink); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%); background: var(--cream); box-shadow: 0 0 0 3px var(--ink), inset 0 -4px 0 var(--peach); }
.compare__handle span::before, .compare__handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; transform: translateY(-50%); }
.compare__handle span::before { left: 4px; border-right-color: var(--ink); }
.compare__handle span::after { right: 4px; border-left-color: var(--ink); }
.compare__label { --px: 3px; position: absolute; bottom: 16px; padding: 9px 13px 8px; font: 600 15px/1 "Pixelify Sans", monospace; letter-spacing: .1em; text-transform: uppercase;
  background: rgb(10 10 48 / .9); color: var(--cream); box-shadow: inset 0 0 0 2px rgb(65 213 173 / .5); pointer-events: none; }
.compare__label--l { left: 16px; } .compare__label--r { right: 16px; }
/* "on air" LED, like the radio's */
.compare__label--live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; vertical-align: 1px; background: #ff5f9e; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
/* focus ring, keyboard only (dragging with the mouse shows none). The photos paint over an outline, so it is a layer above them,
   in the handle's colours to stand out on the bright day side and the dark night side alike */
.compare:has(.compare__range:focus-visible)::after { content: ""; position: absolute; inset: var(--px); z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 3px var(--cream), inset 0 0 0 5px var(--ink); }

/* worlds: intro + asymmetric bento (1 big + 2 stacked) */
.worlds__inner { max-width: var(--maxw); margin: 0 auto; }
.worlds__intro { margin-bottom: clamp(40px, 5vw, 64px); }
.bento { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: clamp(20px, 2.4vw, 32px); }
.tile { margin: 0; display: grid; gap: 16px; align-content: start; }
.bento + .bento { margin-top: clamp(20px, 2.4vw, 32px); }
.bento--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.tile--big { grid-row: span 2; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; --px: 6px; transition: transform .6s var(--ease); }
.tile--big img { aspect-ratio: 3 / 4; }
.tile--wide img { aspect-ratio: 28 / 15; }
.tile:hover img { transform: scale(1.015); }
.tile h3 { font: 400 clamp(32px, 3vw, 42px)/1 "Jersey 10", monospace; color: var(--cream); letter-spacing: .02em; }
.tile p { margin-top: 6px; color: var(--muted); max-width: 40ch; }

/* listen band (Mirai Rain Café at night, whichever scene is on the radio); app.js adds .is-near to every .band after the page has loaded, once it is near, so the photos
   never compete with the hero on slow connections. Until then a band shows its photo's average colour. */
.band--listen { --band-photo: none; background:
  linear-gradient(90deg, rgb(11 10 36 / .82) 0%, rgb(11 10 36 / .6) 40%, rgb(11 10 36 / .3) 68%, rgb(11 10 36 / 0) 90%),
  var(--band-photo) center 42% / cover no-repeat, #3b4782; }
.band--listen.is-near { --band-photo: url("assets/img/mirai-band.webp"); }
.band__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 56px); }
.band--listen .title { font-size: clamp(44px, 5.4vw, 72px); }
.band--listen .lead { margin-top: 12px; color: var(--cream); text-shadow: 2px 2px 0 rgb(10 10 48 / .55); }
.band--listen .eyebrow { text-shadow: 2px 2px 0 rgb(10 10 48 / .55); }
.band--listen .band__inner { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 32px; }

/* subscribe band: Kyūkei Café by day, loaded like the listen band (.is-near); until then its average colour, darkened so the
   text keeps AA contrast without the photo */
.sub { --band-photo: none; background:
  linear-gradient(90deg, rgb(11 10 36 / .94), rgb(11 10 36 / .72) 55%, rgb(11 10 36 / .45)),
  var(--band-photo) center 42% / cover no-repeat, #284652; }
.sub.is-near { --band-photo: url("assets/img/kyukei-day-band.webp"); }
.sub__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(24px, 4vw, 56px); }
.sub__logo { width: clamp(96px, 11vw, 150px); height: auto; filter: drop-shadow(6px 6px 0 rgb(7 6 30 / .8)); }
.sub .title { font-size: clamp(44px, 5.4vw, 72px); }
.sub .lead { margin-top: 12px; }
.sub__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* footer */
.foot { padding: 64px var(--pad) 56px; }
.foot__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: end; }
.foot__brand img { width: 200px; height: auto; }
.foot__brand p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.foot__links a { color: var(--muted); text-decoration: none; }
.foot__links a:hover { color: var(--teal-hi); }
.foot__copy { grid-column: 1 / -1; color: rgb(183 179 220 / .7); font-size: 14px; border-top: 2px solid rgb(65 213 173 / .12); padding-top: 20px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px) scale(.96); transform-origin: 50% 70%; transition: opacity .95s var(--ease), transform .95s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2) { transition-delay: .08s; } .bento .reveal:nth-child(3) { transition-delay: .16s; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 767px) {
  body { font-size: 17px; }
  .nav { height: 60px; gap: 12px; }
  .nav__name { font-size: 24px; }
  .nav__cta span { display: none; }
  .nav__cta { padding: .6em .7em; }
  .scene__inner { grid-template-columns: 1fr; }
  .scene .title { font-size: clamp(40px, 13vw, 56px); }
  .band__inner { grid-template-columns: 1fr; justify-items: start; }
  .band--listen { background:
    linear-gradient(0deg, rgb(11 10 36 / .8) 0%, rgb(11 10 36 / .66) 60%, rgb(11 10 36 / .64) 100%),
    var(--band-photo) 30% 42% / cover no-repeat, #3b4782; }
  /* text spans the full width here, so the subscribe band needs a stronger veil on the right as well */
  .sub { background:
    linear-gradient(90deg, rgb(11 10 36 / .94), rgb(11 10 36 / .82) 60%, rgb(11 10 36 / .7)),
    var(--band-photo) center 42% / cover no-repeat, #284652; }
  .scene__inner--flip { grid-template-columns: 1fr; }
  .compare, .loopfig { order: -1; }
  .bento { grid-template-columns: 1fr; }
  .tile--big { grid-row: auto; }
  .sub__inner { grid-template-columns: 1fr; justify-items: start; }
  .foot__inner { grid-template-columns: 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .radio, .tile img, .btn { transition: none; }
  .radio.is-playing .radio__led, .radio.is-loading .radio__play { animation: none; }
}

/* cookie notice (notice.js): informational only, the site sets no cookies */
.notice {
  position: fixed; z-index: var(--z-notice); right: 24px; bottom: 24px; width: min(440px, calc(100vw - 32px));
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 14px; align-items: start;
  padding: 18px 20px 20px; background: var(--panel); color: var(--muted); font-size: 15px; line-height: 1.5;
  box-shadow: inset 0 0 0 3px var(--teal-dim);
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.notice.is-in { opacity: 1; transform: none; }
.notice__icon { width: 28px; height: 28px; margin-top: 2px; fill: var(--peach); }
.notice__title { margin-bottom: 4px; font: 400 26px/1 "Jersey 10", monospace; letter-spacing: .02em; color: var(--cream); }
.notice a { color: var(--teal-hi); text-underline-offset: 3px; }
.notice a:hover { color: var(--cream); }
.notice__ok { grid-column: 2; justify-self: start; font-size: 15px; }
@media (max-width: 767px) {
  .notice { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: auto; padding: 14px 16px 16px; font-size: 14px; }
  .notice__title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .notice, .radio.is-docked { transition: none; }
}

/* legal pages */
.legal__main { max-width: 760px; margin: 0 auto; padding: 132px var(--pad) 96px; }
.legal__main .title { font-size: clamp(52px, 9vw, 88px); }
.legal__body { margin: 40px 0 56px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal__body > * + * { margin-top: 14px; }
.legal__body h2 { margin-top: 56px; padding-top: 20px; border-top: 2px solid rgb(65 213 173 / .14);
  font: 400 34px/1 "Jersey 10", monospace; letter-spacing: .02em; color: var(--cream); }
.legal__body h3 { margin-top: 32px; font: 600 18px/1.35 "Pixelify Sans", monospace; color: var(--cream); }
.legal__body h4 { margin: 22px 0 0; font: 600 16px/1.45 "Pixelify Sans", monospace; color: var(--peach); }
.legal__body h2 + h3 { margin-top: 18px; }
.legal__body :is(h3, h4) + * { margin-top: 6px; }
.legal__body address { font-style: normal; color: var(--cream); }
.legal__body a { color: var(--teal-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__body a:hover { color: var(--cream); }
.legal__body ul { margin-bottom: 0; padding: 0; list-style: none; }
.legal__body li { position: relative; padding-left: 22px; }
.legal__body li + li { margin-top: 8px; }
.legal__body li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; background: var(--teal); }
/* boxed paragraphs: the summary, the Art. 21 notice (must stand apart from the rest) and the YouTube placeholder */
.legal__summary, .legal__caps, .legal__note { padding: 16px 20px; color: var(--cream); background: var(--night-2); box-shadow: inset 4px 0 0 var(--teal); }
.legal__summary { font-size: 17px; }
.legal__note { background: rgb(225 128 207 / .1); box-shadow: inset 4px 0 0 var(--pink); }
.legal__note > * + * { margin-top: 8px; }
.legal__note-label { font: 600 13px/1 "Pixelify Sans", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.legal .foot__links a[aria-current] { color: var(--cream); }
@media (max-width: 767px) {
  .legal__main { padding-top: 104px; }
  .legal__body h2 { font-size: 30px; }
}

/* 404 page: the radio from the hero, out of range. The needle hunts along the dial and the screen shows static.
   Hovering or focusing "Back to the radio" tunes it in: needle on the station's 100.4, LEDs on, static clears. CSS only. */
.lost { position: relative; z-index: 1; min-height: 100dvh; display: grid; align-items: center;
  padding: 116px var(--pad) clamp(72px, 9vw, 112px);
  background:
    linear-gradient(90deg, rgb(11 10 36 / .86) 0%, rgb(11 10 36 / .64) 40%, rgb(11 10 36 / .24) 72%, rgb(11 10 36 / .1) 100%),
    url("assets/img/kyukei-night.webp") 50% 40% / cover no-repeat, #1a3046; }
.lost__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 5vw, 72px); }
.lost .title { font-size: clamp(88px, 10vw, 136px); }
.lost .lead { max-width: 32ch; color: var(--cream); }
.lost__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.radio--lost { --rw: clamp(400px, 38vw, 520px); position: relative; left: auto; top: auto; transform: none; opacity: 1; }
/* parked (and at every stop of the hunt) off the station's 62% = 100.4 */
.radio--lost .dial__needle { left: 31%; animation: lost-hunt 15s steps(8) infinite; }
@keyframes lost-hunt {
  0%, 8% { left: 14%; }
  20%, 26% { left: 38%; }
  34%, 46% { left: 31%; }
  60%, 66% { left: 83%; }
  76%, 84% { left: 55%; }
  100% { left: 14%; }
}
/* static over the scene: the same photo as the page, so tuning in costs no extra download */
.lost__screen { position: relative; overflow: hidden; min-height: 0; aspect-ratio: 16 / 9;
  background: url("assets/img/kyukei-night.webp") 78% 62% / cover no-repeat, var(--panel);
  border: calc(var(--u) * .55) solid var(--teal-dim);
  clip-path: polygon(0 var(--px), var(--px) var(--px), var(--px) 0, calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px), 100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%, var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px))); }
.lost__static { position: absolute; inset: -128px; background: url("assets/img/static.png") 0 0 / 256px 256px repeat; image-rendering: pixelated;
  animation: lost-static .7s steps(1) infinite; transition: opacity .6s var(--ease); }
/* whole --px steps, so the noise stays on its pixel grid */
@keyframes lost-static {
  0% { transform: none; }
  14% { transform: translate(-76px, 44px); }
  28% { transform: translate(52px, -92px); }
  42% { transform: translate(-116px, -28px); }
  56% { transform: translate(88px, 104px); }
  70% { transform: translate(-36px, 116px); }
  84% { transform: translate(120px, -60px); }
}
.lost__label::before { background: #5a2440; }
.lost__on { display: none; }

/* tuned in: the station's name and claim are back */
.lost:has(.lost__home:is(:hover, :focus-visible)) .dial__needle { left: 62%; animation: none; }
.lost:has(.lost__home:is(:hover, :focus-visible)) .radio__led,
.lost:has(.lost__home:is(:hover, :focus-visible)) .lost__label::before { background: #ff5f9e; }
.lost:has(.lost__home:is(:hover, :focus-visible)) .lost__static { opacity: 0; }
.lost:has(.lost__home:is(:hover, :focus-visible)) .lost__off { display: none; }
.lost:has(.lost__home:is(:hover, :focus-visible)) .lost__on { display: inline; }

@media (max-width: 899px) {
  /* message and way out first, the radio below them */
  .lost { align-items: start; padding-top: 100px; background:
    linear-gradient(rgb(11 10 36 / .86), rgb(11 10 36 / .62) 60%, rgb(11 10 36 / .4)),
    url("assets/img/kyukei-night.webp") 62% 40% / cover no-repeat, #1a3046; }
  .lost__inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .radio--lost { --rw: min(520px, calc(100vw - 2 * var(--pad))); }
}
@media (prefers-reduced-motion: reduce) {
  .radio--lost .dial__needle, .lost__static { animation: none; }
  .lost__static { transition: none; }
}
