@font-face {
  font-family: "DM Sans"; src: url("fonts/DM-Sans.ttf") format("truetype");
  font-weight: 100 1000; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif"; src: url("fonts/Instrument-Serif-Regular.ttf") format("truetype"); font-display: swap;
}
@font-face {
  font-family: "Instrument Serif"; src: url("fonts/Instrument-Serif-Italic.ttf") format("truetype"); font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #fff1d8;
  --muted: #c5d0c9;
  --accent: #ffbf83;
  --night: #19292e;
  --edge: clamp(1.15rem, 4.2vw, 5.25rem);
  --serif: "Instrument Serif", Georgia, serif;
  font: 100%/1.45 "DM Sans", sans-serif;
  color: var(--paper);
  background: var(--night);
}
*, *::before, *::after { box-sizing: border-box; }
body, p, h1, h2, h3, figure { margin: 0; }
a, button { color: inherit; font: inherit; touch-action: manipulation; }
button { cursor: pointer; }
a { text-underline-offset: .26em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #ffbd78; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: 100%; max-width: 108rem; margin-inline: auto; padding-inline: var(--edge); }
.skip { position: fixed; left: 1rem; top: .5rem; z-index: 10; padding: .6rem 1rem; color: #101918; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }
.mast { background: #0a1214; }
.mast-inner, .mast nav, .wordmark { display: flex; align-items: center; }
.mast-inner { justify-content: space-between; min-height: clamp(3.7rem, 5vw, 4.75rem); }
.mast nav { gap: clamp(1rem, 3vw, 3rem); }
.mast a { text-decoration: none; }
.mast nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; }
.wordmark { gap: .23em; font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 750; letter-spacing: -.065em; }
.wordmark i { width: .68em; height: 1.08em; margin-right: .08em; background: var(--accent); transform: skew(-7deg); clip-path: polygon(42% 0,100% 0,65% 39%,95% 39%,9% 100%,36% 55%,0 55%); }
.wordmark span { align-self: flex-end; margin-bottom: .34em; font-size: .48em; font-weight: 650; letter-spacing: .025em; }

.radio { position: relative; isolation: isolate; overflow: hidden; background: #081214; }
.radio-picture { position: absolute; inset: 0; z-index: -2; overflow: hidden; --frame-x: 58%; --frame-y: 56%; touch-action: pan-y pinch-zoom; cursor: pointer; }
.radio-picture:focus-visible { outline-offset: -5px; }
.radio-picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--frame-x) var(--frame-y); }
.registration { display: none; }
@supports (width: 1cqw) {
  .radio-picture { container-type: size; }
  .registration {
    display: block; position: absolute; width: max(100cqw, 177.6833cqh); aspect-ratio: 1672/941;
    left: var(--frame-x); top: var(--frame-y); transform: translate(calc(-1 * var(--frame-x)), calc(-1 * var(--frame-y))); pointer-events: none;
  }
  .tuning-glass { position: absolute; left: 65.1%; top: 34.9%; width: 17.4%; height: 9.6%; transform: skewY(-3deg); overflow: hidden; }
  .tuning-glass::after { content: ""; position: absolute; width: max(2px, .14cqw); top: 7%; bottom: 7%; left: var(--needle, 10%); background: #ffd693; box-shadow: 0 0 .4rem #ff9c20; transition: left .45s ease; }
}
body[data-tuned="crash-the-dead"] { --needle: 36%; }
body[data-tuned="fuel-and-fire"] { --needle: 62%; }
body[data-tuned="bacteries-war"] { --needle: 86%; }
.radio::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg,#061014ee 0%,#081114c9 21%,#08111460 40%,transparent 65%); }
.radio-layout { min-height: clamp(27rem, 40vw, 45rem); display: flex; flex-direction: column; justify-content: center; gap: clamp(1.25rem, 2.8vw, 3rem); padding-block: 2.5rem; pointer-events: none; }
.radio-layout a { pointer-events: auto; }
.channel, .place { text-transform: uppercase; font-size: .8rem; font-weight: 700; letter-spacing: .12em; }
.channel { display: flex; align-items: center; gap: .9rem; color: #e5e7d9; }
.channel span { color: var(--accent); border-right: 1px solid #80715c; padding-right: .9rem; }
.signal h1 { font: 700 clamp(4.6rem, 8.8vw, 9.5rem)/.81 "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; letter-spacing: -.026em; margin: .82rem 0 1.25rem; }
.explore { display: inline-flex; gap: .7em; align-items: center; min-height: 44px; border-bottom: 1px solid var(--accent); font-weight: 600; text-decoration: none; }
.tuner > span { display: block; color: #e3d1b5; margin-bottom: .4rem; font-size: .84rem; }
.tuner div { display: inline-flex; gap: .35rem; }
.tuner a { display: grid; place-items: center; min-width: 3.15rem; min-height: 44px; border: 1px solid #756e60; border-radius: .17rem; background: #0b1519db; font: 600 .92rem "DM Sans", sans-serif; text-decoration: none; font-variant-numeric: tabular-nums; }
.tuner a[aria-current] { background: var(--accent); border-color: var(--accent); color: #24190e; }

.route { --plate-height: clamp(27rem, min(46vw, 68svh), 49rem); background: var(--night); }
.route-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; padding-block: clamp(1.35rem, 2.65vw, 2.9rem); }
.route-heading h2, .credits h2, .field-notes h2 { font: 400 clamp(3.2rem, 6.6vw, 7rem)/.91 var(--serif); letter-spacing: -.046em; }
.route-heading h2 i { color: #ffcc9f; }
.route-heading p, .back { color: #e1e4d6; font-size: clamp(.86rem, 1.1vw, 1.05rem); }
.back { display: inline-flex; min-height: 44px; align-items: center; }
.detail .route-heading { padding-block: .6rem; }
.route-display { display: grid; grid-template-areas: "scene" "stops"; grid-template-columns: minmax(0, 1fr); }
.landscape {
  position: relative; isolation: isolate; height: var(--plate-height); grid-area: scene;
  overflow: hidden; background: #28373a; color: #fff2d8;
}
.landscape[data-stage] { touch-action: pan-y pinch-zoom; cursor: grab; user-select: none; }
.landscape[data-stage]:focus-visible { outline-offset: -4px; }
.landscape.dragging { cursor: grabbing; }
.paintings { position: absolute; inset: 0; display: flex; transform: translateX(calc(var(--stop-x, 0%) + var(--drag-x, 0px))); transition: transform .64s cubic-bezier(.21,.72,.2,1); }
.dragging .paintings { transition: none; }
.route[data-tuned="crash-the-dead"] { --stop-x: -100%; }
.route[data-tuned="fuel-and-fire"] { --stop-x: -200%; }
.route[data-tuned="bacteries-war"] { --stop-x: -300%; }
.route.detail .paintings { transform: none; }
.painting { position: relative; height: 100%; flex: 0 0 100%; overflow: hidden; }
.painting img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 49%;
  transform: translate(var(--look-x, 0px),var(--look-y, 0px)) scale(1.022); transition: transform .32s ease-out; pointer-events: none;
}
.landscape::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg,#0c1c22ec 0%,#10232aac 16%,#13242a28 43%,transparent 63%); }
.caption-wrap { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(1.35rem, 2.8vw, 3rem); pointer-events: none; }
.captions { max-width: 51%; }
.place { color: #ffd3a1; text-shadow: 0 1px 4px #182728; }
.captions h1, .captions h3 { margin: .16rem 0 .45rem; font: 400 clamp(3.5rem, 6.3vw, 7rem)/.92 var(--serif); letter-spacing: -.045em; text-wrap: balance; }
.pitch { max-width: 38ch; font-size: clamp(1rem, 1.24vw, 1.2rem); line-height: 1.35; text-shadow: 0 1px 6px #132329; }
.actions { display: flex; align-items: center; gap: 1.35rem; margin-top: .8rem; }
.actions a { display: inline-flex; align-items: center; min-height: 44px; pointer-events: auto; }
.watch { gap: .84em; padding: .5rem 1.16rem; border-radius: 3rem; color: #182523; background: #faeacb; font-weight: 700; text-decoration: none; }
.watch:hover { color: #151e19; background: #ffd4a4; }
.notes-link { font-size: .94rem; }

.screen-home { grid-area: scene; position: relative; z-index: 2; align-self: center; justify-self: end; margin-right: max(var(--edge), calc((100% - 108rem)/2 + var(--edge))); }
.screen { max-width: 100%; width: clamp(16.5rem, 33vw, 32rem); overflow: hidden; border: 1px solid #dac9a48a; border-radius: .35rem; background: #101b1e; box-shadow: 0 .9rem 2.8rem #07111787; }
.screen[data-format="portrait"] { width: clamp(9.5rem, calc(var(--plate-height) * .5625 - 3rem), 18rem); }
.screen figcaption { min-height: 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .18rem .75rem; padding: .42rem .68rem; border-bottom: 1px solid #b5bdad4a; color: #e5e6d7; }
.capture { display: inline-flex; align-items: center; gap: .42em; font-size: .65rem; line-height: 1; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.capture i { width: .48em; height: .48em; border-radius: 50%; background: #ffb875; }
.film-name { color: #e1d4bc; font: italic .99rem/1 var(--serif); }
.screen video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: #0a1013; }
.screen[data-format="portrait"] video { aspect-ratio: 9/16; }
.film-error { padding: .6rem .8rem; font-size: .82rem; }
.stops { grid-area: stops; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding-block: 1.25rem 1.6rem; }
.stops a { min-width: 0; display: grid; align-content: start; text-decoration: none; color: #d0d8ce; }
.track { position: relative; display: flex; align-items: center; height: 1.15rem; margin-bottom: .22rem; }
.track::before { content: ""; position: absolute; height: 1px; left: .35rem; right: -.35rem; background: #87948c; }
.stops a:last-child .track::before { right: 0; background: linear-gradient(90deg,#87948c,transparent); }
.track i { position: relative; width: .61rem; height: .61rem; border: 1px solid #babfb0; border-radius: 50%; background: var(--night); }
.stops strong { font-size: clamp(.89rem, 1.15vw, 1.13rem); line-height: 1.24; font-weight: 680; }
.stops small { padding-top: .16rem; font-size: clamp(.77rem, 1vw, .93rem); }
.stops [aria-current] strong, .stops a:hover strong { color: #ffca94; }
.stops [aria-current] .track i { background: #ffbb7c; border-color: #ffd29f; box-shadow: 0 0 0 3px #e8ad7659; }

.studio { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid #687c704d; background: #15252b; }
.endpapers { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); position: absolute; inset: 0; z-index: -2; }
.endpapers img { width: 115%; margin-left: -7.5%; height: 100%; object-fit: cover; mask-image: linear-gradient(90deg,transparent,#000 13%,#000 87%,transparent); }
.studio::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#14262de0,#122126b8 48%,#14262de0),linear-gradient(0deg,#14262dbb,transparent 50%); }
.credits { padding-block: clamp(3rem, 6vw, 6rem); text-align: center; }
.credits p { font-size: .92rem; }
.credits h2 { margin: .6rem 0 1.15rem; display: flex; align-items: center; justify-content: center; gap: clamp(.65rem,4vw,4rem); }
.credits h2::before, .credits h2::after { content: ""; width: clamp(1rem,11vw,11rem); height: 1px; background: #d1cbab78; }
.credits h2 span { flex: 0 0 auto; }
.credits nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .15rem 1.4rem; }
.credits nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }
.field-notes { padding-block: clamp(2.8rem,6vw,6rem); display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--edge); border-top: 1px solid #6d796a80; }
.field-notes .place { margin-bottom: .7rem; }
.field-notes h2 { font-size: clamp(2.8rem,5vw,5rem); }
.genre { color: var(--muted); margin-top: .6rem; }
.notes-copy { align-self: center; max-width: 56ch; font-size: clamp(1rem,1.35vw,1.2rem); }
.notes-copy p + p { margin-top: .9rem; }
.theater { width: min(94vw, 65rem); max-height: 96svh; margin: auto; padding: clamp(.7rem, 1.6vw, 1.25rem); border: 1px solid #8d9889; border-radius: .45rem; background: #132226; color: var(--paper); }
.theater::backdrop { background: #050c10e8; }
.theater-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .5rem; }
.theater-head h2 { font: 400 clamp(1.75rem, 3.5vw, 3rem)/1.05 var(--serif); }
.theater-head button { min-height: 44px; padding: .25rem .85rem; border: 1px solid #8d9889; border-radius: 2rem; background: transparent; }
.theater-head button span { margin-left: .3rem; }
.theater .screen { width: min(100%,calc((100svh - 9rem) * 1.7778)); margin-inline: auto; border: 0; border-radius: 0; box-shadow: none; }
.theater .screen[data-format="portrait"] { width: min(100%,calc((100svh - 9rem) * .5625)); }
.theater .screen figcaption { min-height: 1.7rem; }

@media (max-width: 38.75rem) {
  .route { --plate-height: clamp(25.5rem, 80vw, 32rem); }
  .route-heading h2 { font-size: clamp(2.9rem, 9vw, 4rem); }
  .route-heading p { max-width: 16ch; line-height: 1.3; }
  .route-display { grid-template-areas: "scene" "stops" "film"; }
  .detail .route-display { grid-template-areas: "scene" "film"; }
  .screen-home { grid-area: film; justify-self: stretch; margin: 0; padding: 0 var(--edge) 1.45rem; }
  .detail .screen-home { padding-top: 1.25rem; }
  .screen-home .screen { width: min(100%, 31rem); margin-inline: auto; box-shadow: 0 .35rem 1.25rem #0c171b70; }
  .screen-home .screen[data-format="portrait"] { width: min(100%, clamp(13rem, 34svh, 19rem)); }
  .captions { max-width: 95%; }
  .caption-wrap { bottom: 1.2rem; }
  .stops { padding-block: 1rem 1.2rem; }
  .stops a { padding-right: .3rem; }
  .track::before { right: -.65rem; }
  .stops strong { overflow-wrap: break-word; }
  .field-notes { grid-template-columns: 1fr; gap: 1.3rem; }
}
@media (max-width: 38rem) {
  .credits h2::before, .credits h2::after { display: none; }
  .radio-picture { position: relative; display: block; height: clamp(11rem, 55vw, 18rem); --frame-x: 75%; --frame-y: 51%; }
  .radio::after { display: none; }
  .radio-layout { min-height: 0; gap: 1.15rem; padding-block: 1.3rem 1.4rem; }
  .signal h1 { margin: .5rem 0 .35rem; font-size: clamp(3.6rem, 12vw, 4.7rem); }
  .signal h1 br { display: none; }
  .signal h1 br::after { content: " "; }
  .tuner { display: flex; align-items: center; gap: .75rem; }
  .tuner > span { margin: 0; }
  .tuner a { min-width: 2.75rem; }
  .captions h1, .captions h3 { font-size: clamp(3.2rem, 12vw, 4.65rem); }
  .pitch { max-width: 33ch; }
  .actions { margin-top: .6rem; }
  .stops { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: .45rem; }
  .stops a:nth-child(2) .track::before { right: 0; background: linear-gradient(90deg,#87948c,transparent); }
  .track { margin-bottom: .08rem; height: .9rem; }
  .painting img { object-position: 44% center; }
}
@media (prefers-reduced-motion: reduce) {
  .paintings, .painting img, .tuning-glass::after { transition: none; }
  .painting img { transform: none; }
}
