/* KITAMAE — kitamaemusic.com. One stylesheet, no build. Mobile breakpoint: 992px. */
@font-face { font-family: "Bebas Neue"; src: url("/assets/fonts/BebasNeue-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --color-background: #111113;
  --color-surface: #19191d;
  --color-surface-hover: #232329;
  --color-foreground: #f4f1ec;
  --color-foreground-muted: #aaa5a0;
  --color-border: #34343a;
  --color-primary: #f40124;
  --color-primary-hover: #cf001e;
  --color-primary-soft: #3a1118;
  --color-on-primary: #fff8f5;
  --color-primary-text: #ff4258; /* brand red, lifted for small text on near-black (WCAG AA) */

  --font-title: "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --rail: 15.5rem;
  --pad: clamp(1.25rem, 3vw, 3rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --scan: repeating-linear-gradient(to bottom, rgb(0 0 0 / .32) 0 1px, transparent 1px 3px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--color-background); color: var(--color-foreground);
  font: 400 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: .9; letter-spacing: .01em; margin: 0; text-transform: uppercase; }
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.mono { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--color-primary); color: var(--color-on-primary); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
::selection { background: var(--color-primary); color: var(--color-on-primary); }

/* film grain over everything (very light) */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* scrim + scanlines over every background video / photo */
.fx { position: absolute; inset: 0; pointer-events: none;
  background: var(--scan), radial-gradient(120% 90% at 50% 40%, transparent 30%, rgb(10 10 12 / .75) 100%), linear-gradient(to bottom, rgb(17 17 19 / .25), rgb(17 17 19 / .55)); }
.fx::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0, rgb(244 1 36 / .06) 50%, transparent 100%); background-size: 100% 8rem; animation: roll 7s linear infinite; mix-blend-mode: screen; }
@keyframes roll { from { background-position: 0 -8rem; } to { background-position: 0 100vh; } }

/* ---------- left rail ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 50; display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.5rem 1.5rem 1.75rem; border-right: 1px solid var(--color-border);
  background: linear-gradient(to bottom, rgb(17 17 19 / .96), rgb(17 17 19 / .85)); backdrop-filter: blur(6px);
}
.rail__logo img { width: 100%; height: auto; filter: drop-shadow(0 0 18px rgb(244 1 36 / .18)); }
.rail__tag { color: var(--color-foreground-muted); font-size: .62rem; margin: -.5rem 0 0; text-align: center; }
.rail__nav { margin-top: 1.5rem; }
.rail__nav a {
  display: flex; align-items: center; gap: .75rem; padding: .55rem 0; text-decoration: none;
  font-family: var(--font-title); font-size: 1.45rem; letter-spacing: .06em; color: var(--color-foreground-muted); transition: color .2s, transform .3s var(--ease);
}
.rail__nav a::before { content: ""; width: .6rem; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.rail__nav a:hover, .rail__nav a[aria-current="true"] { color: var(--color-foreground); }
.rail__nav a[aria-current="true"]::before { width: 1.6rem; background: var(--color-primary); }
.rail__signal { margin-top: auto; color: var(--color-foreground-muted); font-size: .62rem; display: flex; align-items: center; gap: .5rem; }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 10px var(--color-primary); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.rail__toggle { display: none; }

main, .footer { margin-left: var(--rail); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: grid; gap: 1.5rem var(--pad); padding: var(--pad);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto; align-items: center; position: relative;
}
.hero__copy { position: relative; z-index: 2; }
.hero__title { font-size: clamp(5rem, 10.5vw, 13rem); line-height: .82; color: var(--color-foreground); }
.hero__title span { display: block; }
.hero__title span:last-child { color: var(--color-foreground); text-shadow: 0 0 40px rgb(244 1 36 / .35); }
.hero__radar { position: absolute; width: clamp(7rem, 11vw, 12rem); right: -4rem; top: 31%; fill: none; stroke: var(--color-primary); stroke-width: 1.2; opacity: .9; }
.hero__radar .fill { fill: var(--color-primary); stroke: none; }
.hero__radar .wave { stroke-width: 2.4; filter: drop-shadow(0 0 6px var(--color-primary)); stroke-dasharray: 320; animation: trace 2.8s var(--ease) infinite; }
@keyframes trace { from { stroke-dashoffset: 320; } 60%, to { stroke-dashoffset: 0; } }
.hero__sub { display: grid; margin: 2rem 0 1.5rem; font-size: clamp(1rem, 1.6vw, 1.5rem); letter-spacing: .3em; color: var(--color-foreground); }
.hero__small { color: var(--color-foreground-muted); font-size: .7rem; line-height: 1.9; }

.panel { position: relative; margin: 0; aspect-ratio: 16 / 9; border: 1px solid var(--color-border); background: #000; }
.panel__media, .panel__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel__media { overflow: hidden; }
.hud { position: absolute; inset: 0; color: var(--color-foreground); font-size: .64rem; pointer-events: none; text-shadow: 0 1px 2px #000; }
.hud > span { position: absolute; line-height: 1.5; }
.hud__tl { left: 1rem; top: .9rem; } .hud__tr { right: 2.6rem; top: .9rem; } .hud__bl { left: 1rem; bottom: .9rem; } .hud__br { right: 2.6rem; bottom: .9rem; text-align: right; }
.hud__db { right: .6rem; top: 12%; bottom: 12%; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
  border-right: 1px solid rgb(244 241 236 / .5); padding-right: .4rem; font-style: normal; }
.hud__db i { font-style: normal; font-size: .55rem; }
.hud__db::after { content: ""; position: absolute; right: -3px; width: 5px; background: var(--color-primary); bottom: 0; height: 40%; animation: level 1.1s ease-in-out infinite alternate; }
@keyframes level { from { height: 20%; } to { height: 78%; } }
.corner { position: absolute; width: 1.1rem; height: 1.1rem; border: 2px solid var(--color-foreground); }
.c1 { left: -6px; top: -6px; border-right: 0; border-bottom: 0; } .c2 { right: -6px; top: -6px; border-left: 0; border-bottom: 0; }
.c3 { left: -6px; bottom: -6px; border-right: 0; border-top: 0; } .c4 { right: -6px; bottom: -6px; border-left: 0; border-top: 0; }

.releases {
  grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem 2rem; align-items: center;
  border-top: 1px solid var(--color-border); padding-top: 1.75rem;
}
.releases__label { position: absolute; top: -.6rem; left: 0; background: var(--color-background); padding-right: .75rem; color: var(--color-foreground-muted); font-size: .62rem; }
.release { display: flex; gap: 1.25rem; align-items: center; text-decoration: none; padding: .5rem; border: 1px solid var(--color-border); background: var(--color-surface); transition: background .25s, border-color .25s; }
.release:hover { background: var(--color-surface-hover); border-color: var(--color-primary); }
.release img { width: clamp(8rem, 14vw, 15rem); height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.release__txt { display: grid; }
.release__txt strong { font-family: var(--font-title); font-weight: 400; font-size: clamp(1.8rem, 3vw, 3rem); line-height: .95; }
.release__status { color: var(--color-primary-text); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.3rem; border: 1px solid var(--color-foreground); text-decoration: none;
  font-family: var(--font-title); font-size: 1.5rem; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--color-foreground); background: rgb(17 17 19 / .5);
  transition: background .2s, color .2s, border-color .2s; cursor: pointer;
}
.btn:hover { background: var(--color-foreground); color: var(--color-background); }
.btn--primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: var(--color-on-primary); }
.btn--signal { border-color: var(--color-primary); color: var(--color-foreground); box-shadow: 0 0 0 4px var(--color-background), 0 0 0 5px var(--color-primary-soft); }
.btn--signal:hover { background: var(--color-primary); color: var(--color-on-primary); }

/* ---------- sections ---------- */
.section { padding: clamp(5rem, 12vh, 9rem) var(--pad); }
.section__head { margin-bottom: clamp(2rem, 5vh, 4rem); }
.section__head h2 { font-size: clamp(4rem, 9vw, 9rem); }
.kicker { color: var(--color-primary-text); margin-bottom: .75rem; font-weight: 600; }
.kicker [lang="ja"] { letter-spacing: .3em; }

.news__list { border-top: 1px solid var(--color-border); counter-reset: n; }
.news__item { display: grid; grid-template-columns: 13rem minmax(0, 1.1fr) minmax(0, 1.3fr) 9rem; gap: 1rem 2rem; align-items: baseline; padding: 1.75rem 0; border-bottom: 1px solid var(--color-border); transition: background .25s; }
.news__item:hover { background: linear-gradient(to right, var(--color-primary-soft), transparent 70%); }
.news__item h3 { font-size: clamp(2rem, 3.5vw, 3.25rem); }
.news__item p { margin: 0; color: var(--color-foreground-muted); }
.news__item .links { color: var(--color-foreground); white-space: nowrap; text-align: right; }
.news__item .links a { text-underline-offset: .25em; text-decoration-color: var(--color-primary); }
.news__tag { color: var(--color-primary-text); font-weight: 600; }
.news__tag--dim { color: var(--color-foreground-muted); }

/* ---------- music ---------- */
.music > .section__head { padding-bottom: 0; }
.track { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: clip; }
.track__bg { position: absolute; inset: 0; }
.track__bg video { width: 100%; height: 100%; object-fit: cover; }
.track__bg .fx { background: var(--scan), linear-gradient(to right, rgb(17 17 19 / .9) 0%, rgb(17 17 19 / .55) 45%, rgb(17 17 19 / .15) 100%), linear-gradient(to top, rgb(17 17 19 / .95), transparent 45%); }
.track__inner { position: relative; padding: 12vh var(--pad) 10vh; max-width: 54rem; }
.track__title { font-size: clamp(5rem, 13vw, 14rem); line-height: .8; margin-bottom: .5rem; }
.track__status { color: var(--color-primary-text); font-size: .9rem; font-weight: 600; }
.track__desc { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 36rem; color: var(--color-foreground); }
.track__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.sound { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border: 1px solid var(--color-border); background: rgb(17 17 19 / .6); color: var(--color-foreground); cursor: pointer; font: 500 .75rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; border-radius: 999px; }
.sound svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
.sound .w { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sound .ico-on { display: none; }
.sound[aria-pressed="true"] { border-color: var(--color-primary); color: var(--color-on-primary); background: var(--color-primary); }
.sound[aria-pressed="true"] .ico-on { display: block; } .sound[aria-pressed="true"] .ico-off { display: none; }
.sound:hover { border-color: var(--color-foreground); }

.lyrics { border-top: 1px solid var(--color-border); max-width: 40rem; }
.lyrics summary { cursor: pointer; list-style: none; padding: 1rem 0; font-family: var(--font-title); font-size: 1.6rem; letter-spacing: .08em; display: flex; gap: .75rem; align-items: center; }
.lyrics summary::-webkit-details-marker { display: none; }
.lyrics summary::before { content: "+"; color: var(--color-primary); width: 1rem; transition: transform .3s var(--ease); }
.lyrics[open] summary::before { transform: rotate(45deg); }
.lyrics summary [lang="ja"] { font-family: var(--font-body); font-size: .8rem; color: var(--color-foreground-muted); letter-spacing: .3em; }
.lyrics__body { max-height: 46vh; overflow: auto; padding: .25rem 1.25rem 1.5rem 0; background: linear-gradient(rgb(17 17 19 / .55), rgb(17 17 19 / .55)); columns: 2 16rem; column-gap: 2rem; scrollbar-color: var(--color-primary) transparent; }
.ly { break-inside: avoid; margin-bottom: 1.25rem; }
.ly p { margin: 0; line-height: 1.5; }
.ly__label { color: var(--color-primary-text); font-size: .62rem; margin-bottom: .35rem !important; }
.ly__jp small { display: block; color: var(--color-foreground-muted); font-size: .78rem; margin-bottom: .35rem; }

/* ---------- photos ---------- */
.photos { position: relative; }
.carousel { position: relative; height: 100svh; outline-offset: -4px; }
.carousel__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.carousel__ui { position: absolute; left: var(--pad); right: var(--pad); bottom: 2rem; display: flex; align-items: center; gap: 1rem; }
.carousel__ui .kicker { margin: 0 auto 0 0; }
.carousel__count { margin: 0; }
.carousel__btn { width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 1px solid var(--color-foreground); background: rgb(17 17 19 / .55); color: var(--color-foreground); font-size: 1.2rem; cursor: pointer; transition: background .2s; }
.carousel__btn:hover { background: var(--color-primary); border-color: var(--color-primary); }

/* ---------- comments ---------- */
.comments__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.comment { border: 1px solid var(--color-border); background: var(--color-surface); padding: 2rem; position: relative; }
.comment::before { content: "“"; position: absolute; top: -.2rem; right: 1.25rem; font-family: var(--font-title); font-size: 5rem; color: var(--color-primary); line-height: 1; }
.comment blockquote { margin: 0 0 1.25rem; font-size: 1.15rem; }
.comment__by { color: var(--color-foreground-muted); margin: 0; }
.comment[data-placeholder] { border-style: dashed; }
.comment[data-placeholder] blockquote { color: var(--color-foreground-muted); font-style: italic; }

/* ---------- social ---------- */
.social { padding: 3rem var(--pad); border-block: 1px solid var(--color-border); }
.social__list { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.25rem, 4vw, 3.5rem); }
.social__list a { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; border: 1px solid var(--color-border); color: var(--color-foreground); transition: color .2s, border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.social__list a:hover { color: var(--color-primary); border-color: var(--color-primary); transform: translateY(-3px); box-shadow: 0 0 24px rgb(244 1 36 / .3); }
.social__list svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }
.social__list--small { justify-content: flex-start; gap: 1rem; margin: 2rem 0; }
.social__list--small a { width: 2.75rem; height: 2.75rem; }
.social__list--small svg { width: 1.15rem; height: 1.15rem; }

/* ---------- crew ---------- */
.crew__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.member { background: var(--color-surface); border: 1px solid var(--color-border); display: flex; flex-direction: column; transition: border-color .25s; }
.member:hover { border-color: var(--color-primary); }
.member--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: end; }
.member__photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; display: block; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: contrast(1.05) saturate(.95); }
.member--lead .member__photo { aspect-ratio: 4 / 5; }
.member__photo::after { content: ""; position: absolute; inset: 0; background: var(--scan); pointer-events: none; }
.member__photo--tbd { display: grid; place-items: center; color: var(--color-foreground-muted); background: repeating-linear-gradient(135deg, var(--color-surface) 0 12px, var(--color-surface-hover) 12px 24px); }
.member__txt { padding: 1.5rem; }
.member--lead .member__txt { padding: clamp(1.5rem, 4vw, 4rem); }
.member h3 { font-size: clamp(2.2rem, 3vw, 3rem); margin-bottom: .75rem; }
.member--lead h3 { font-size: clamp(4rem, 8vw, 8rem); }
.member h3 [lang="ja"] { color: var(--color-primary); font-family: var(--font-body); font-weight: 700; font-size: .45em; vertical-align: middle; white-space: nowrap; }
.member h3.tbd { color: var(--color-foreground-muted); font-size: 1.9rem; }
.member__role { color: var(--color-primary-text); }
.member p { color: var(--color-foreground-muted); font-size: .95rem; }
.member__quote { color: var(--color-foreground) !important; font-size: 1.25rem !important; }
.member__gear { font-size: .62rem !important; }
.member__falls { font-style: italic; }

/* ---------- gear ---------- */
.gear__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.gear__card { border: 1px solid var(--color-border); padding: clamp(1.5rem, 3vw, 3rem); background: linear-gradient(160deg, var(--color-surface), var(--color-background)); }
.gear__card h3 { font-size: clamp(2.5rem, 4vw, 4rem); margin-bottom: 1rem; }
.gear__card .mono { color: var(--color-primary-text); }
.gear__list li { padding: .75rem 0; border-bottom: 1px solid var(--color-border); color: var(--color-foreground-muted); }
.gear__list strong { color: var(--color-foreground); font-weight: 600; }
.gear__soon { margin: 0; }

/* ---------- footer ---------- */
.footer { padding: clamp(5rem, 12vh, 9rem) var(--pad) 2.5rem; border-top: 1px solid var(--color-border); background: radial-gradient(80% 60% at 0% 100%, var(--color-primary-soft), transparent); }
.footer__big { font-family: var(--font-title); font-size: clamp(3rem, 7vw, 7rem); line-height: .9; text-transform: uppercase; margin-bottom: 1rem; }
.footer__mail { font-size: clamp(1.25rem, 2.5vw, 2rem); text-decoration-color: var(--color-primary); text-underline-offset: .2em; }
.footer__meta { color: var(--color-foreground-muted); margin: 3rem 0 0; }

/* ---------- legal page ---------- */
.legal { max-width: 44rem; padding: clamp(4rem, 10vh, 7rem) var(--pad); color: var(--color-foreground-muted); }
.legal h1 { font-size: clamp(4rem, 8vw, 7rem); color: var(--color-foreground); margin-bottom: 2rem; }
.legal strong { color: var(--color-foreground); }
.legal a { color: var(--color-primary); }
.todo { border: 1px dashed var(--color-primary); padding: .2rem .4rem; color: var(--color-foreground); }

/* ---------- reveal / scroll-driven motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* JS fallback (IntersectionObserver) for browsers without scroll-driven animations */
  .js .reveal { opacity: 0; transform: translateY(2.5rem); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .hero__title span { animation: rise 1.1s var(--ease) both; }
  .hero__title span:last-child { animation-delay: .12s; }
  .hero__sub, .hero__small, .hero__radar { animation: fade 1.4s .35s var(--ease) both; }
  .hero__panel { animation: tune 1.3s .15s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(40%); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
  @keyframes fade { from { opacity: 0; } }
  @keyframes tune { 0% { opacity: 0; filter: brightness(3) saturate(0); clip-path: inset(49% 0 49% 0); } 40% { opacity: 1; clip-path: inset(0); } 100% { filter: none; } }

  @supports (animation-timeline: view()) {
    .js .reveal { opacity: 1; transform: none; transition: none; animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(3rem) scale(.98); } }
    /* Apple-like: track titles grow and tighten as the clip scrolls into place */
    .track__title { animation: title-in linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    @keyframes title-in { from { opacity: 0; letter-spacing: .25em; transform: translateX(-4%); } to { opacity: 1; letter-spacing: .01em; transform: none; } }
    .track__bg video { animation: zoom linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
    /* hero recedes while leaving */
    .hero__copy { animation: leave linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes leave { to { opacity: .15; transform: translateY(-12vh) scale(.96); } }
    .slide img { animation: drift linear both; animation-timeline: view(inline); }
    @keyframes drift { from { transform: scale(1.15) translateX(-4%); } to { transform: scale(1.15) translateX(4%); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .grain { display: none; }
}

/* ---------- mobile ≤ 992px ---------- */
@media (max-width: 992px) {
  :root { --rail: 0px; }
  .rail { inset: 0 0 auto 0; width: auto; height: 4.25rem; flex-direction: row; align-items: center; padding: .5rem var(--pad); border-right: 0; border-bottom: 1px solid var(--color-border); }
  .rail__logo { width: 6.5rem; }
  .rail__tag, .rail__signal { display: none; }
  .rail__toggle { display: grid; gap: 6px; margin-left: auto; width: 2.75rem; height: 2.75rem; place-content: center; background: none; border: 1px solid var(--color-border); border-radius: 50%; cursor: pointer; }
  .rail__toggle i { display: block; width: 1.1rem; height: 2px; background: var(--color-foreground); transition: transform .3s var(--ease); }
  .rail__toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .rail__toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .rail__nav { position: fixed; inset: 4.25rem 0 0 0; margin: 0; padding: 2rem var(--pad); background: rgb(17 17 19 / .98); display: none; }
  .rail.is-open .rail__nav { display: block; }
  .rail__nav a { font-size: 2.6rem; }
  html { scroll-padding-top: 4.5rem; }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto; padding-top: 6rem; min-height: auto; }
  .hero__title { font-size: clamp(4.5rem, 22vw, 9rem); }
  .hero__radar { width: 6rem; top: 1rem; right: 0; }
  .hero__sub { margin: 1.25rem 0 1rem; letter-spacing: .22em; }
  .panel { aspect-ratio: 4 / 5; }
  .hud__db { display: none; } .hud__tr, .hud__br { right: 1rem; }
  .releases { grid-template-columns: 1fr; }
  .releases .btn--signal { order: 3; justify-content: center; }
  .release img { width: 7.5rem; }

  .news__item { grid-template-columns: 1fr; gap: .4rem; }
  .news__item .links { text-align: left; }
  .track { align-items: end; }
  .track__bg .fx { background: var(--scan), linear-gradient(to top, rgb(17 17 19 / .96) 15%, rgb(17 17 19 / .35) 60%, rgb(17 17 19 / .2)); }
  .track__inner { padding: 30vh var(--pad) 3.5rem; }
  .track__title { font-size: clamp(4rem, 19vw, 8rem); }
  .lyrics__body { columns: 1; max-height: 55vh; }
  .crew__grid, .gear__grid { grid-template-columns: 1fr; }
  .member--lead { grid-template-columns: 1fr; }
  .member { flex-direction: row; }
  .member:not(.member--lead) .member__photo { flex: 0 0 34%; aspect-ratio: 3 / 4; }
  .member:not(.member--lead) .member__photo span { font-size: .55rem; text-align: center; }
  .carousel { height: 80svh; }
}
@media (max-width: 560px) {
  .member:not(.member--lead) { flex-direction: column; }
  .member:not(.member--lead) .member__photo { flex: none; aspect-ratio: 4 / 5; }
}
