:root {
  --bg: #020303;
  --cyan: #00cad3;
  --cyan-dark: #005b60;
  --text: #d5d5d5;
  --green: #7dff2d;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  background: #111;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.012) 0,
      rgba(255,255,255,0.012) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 41px,
      rgba(0,202,211,0.008) 42px,
      transparent 43px
    ),
    #0d0e0e;
  font: 14px/1.55 Verdana, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.14;
  background-image:
    radial-gradient(circle, rgba(0,202,211,0.30) 0 0.55px, transparent 0.8px),
    radial-gradient(circle, rgba(255,255,255,0.10) 0 0.45px, transparent 0.75px),
    linear-gradient(90deg, transparent 0 73%, rgba(0,202,211,0.025) 73% 73.15%, transparent 73.15%);
  background-size: 13px 11px, 23px 19px, 173px 100%;
  background-position: 0 0, 7px 5px, 0 0;
  mix-blend-mode: screen;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 34px), var(--max));
  margin: 28px auto;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid #202626;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.34);
}

/* One typeface for the whole site. The machine tone comes from the ">" and
   "//" markers, from capitals plus letter-spacing and from colour, not from
   swapping in a typewriter face. */
.channel-bar {
  min-height: 47px;
  padding: 13px 18px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-dark);
  letter-spacing: 0.09em;
  font-size: 11px;
}

.channel-bar__accent {
  flex: 0 0 auto;
  color: var(--green);
}

/* Old-school underground navigation. Verdana, not the Courier of the
   surrounding chrome, so it reads as a menu rather than as terminal output. */
.main-nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid var(--cyan-dark);
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav a,
.main-nav .nav-separator {
  padding: 7px 0 8px;
}

.main-nav a {
  color: #c2c2c2;
  text-decoration: none;
  transition: color 120ms linear;
}

.main-nav .nav-separator {
  color: #555;
  user-select: none;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"],
.main-nav a.is-active {
  color: var(--cyan);
}

.main-nav a:focus-visible {
  outline: 1px dashed var(--cyan);
  outline-offset: 5px;
}

@media (max-width: 760px) {
  .main-nav {
    gap: 7px;
  }

  .main-nav a,
  .main-nav .nav-separator {
    font-size: 11px;
  }
}

.hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(340px, 41%) 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--cyan-dark);
  background:
    linear-gradient(90deg, rgba(0,202,211,0.022), transparent 26%),
    var(--bg);
}

.hero__brand {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 64px 22px 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Final WHC logo asset: W×H×C× plus the approved Japanese subtitle.
   The file is displayed as-is; no crop, reconstruction or letter repositioning. */
.brand-mark {
  width: 100%;
  max-width: 470px;
  margin: 0;
}

.brand-mark img {
  width: 100%;
  height: auto;
  display: block;
}

/* Descriptor stays directly attached to the finished logo asset. */
.brand-meta {
  width: 100%;
  max-width: 470px;
  margin-top: 8px;
  color: #bdbdbd;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.hero__art {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  background: #020303;
}

.hero__art::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 125px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(2,3,3,0.76) 33%, transparent 100%);
}

.hero__art img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  filter: contrast(1.05);
}

.glitch-line {
  position: absolute;
  left: 5px;
  z-index: 3;
  height: 2px;
  background: var(--cyan-dark);
  pointer-events: none;
}

.glitch-line--1 {
  top: 78px;
  width: 65px;
  animation: glitch-line-one 2.15s steps(1, end) infinite;
}

.glitch-line--2 {
  top: 105px;
  width: 42px;
  animation: glitch-line-two 2.7s steps(1, end) infinite;
}

.glitch-line--3 {
  top: 128px;
  width: 28px;
  opacity: 0.7;
  animation: glitch-line-three 1.9s steps(1, end) infinite;
}

@keyframes glitch-line-one {
  0%, 14%, 28%, 62%, 100% { transform: translateX(0); width: 65px; opacity: 0.8; }
  15% { transform: translateX(34px); width: 24px; opacity: 1; }
  29% { transform: translateX(-8px); width: 92px; opacity: 0.45; }
  63% { transform: translateX(58px); width: 38px; opacity: 1; }
  64%, 76% { opacity: 0; }
}

@keyframes glitch-line-two {
  0%, 21%, 46%, 73%, 100% { transform: translateX(0); width: 42px; opacity: 0.65; }
  22% { transform: translateX(72px); width: 18px; opacity: 1; }
  47% { transform: translateX(18px); width: 80px; opacity: 0.35; }
  74% { transform: translateX(96px); width: 31px; opacity: 0.9; }
  75%, 86% { opacity: 0; }
}

@keyframes glitch-line-three {
  0%, 32%, 55%, 88%, 100% { transform: translateX(0); width: 28px; opacity: 0.45; }
  33% { transform: translateX(110px); width: 52px; opacity: 0.8; }
  56% { transform: translateX(40px); width: 14px; opacity: 1; }
  89% { transform: translateX(145px); width: 76px; opacity: 0.35; }
}

.raw-line {
  min-height: 44px;
  padding: 12px 18px 9px;
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-dark);
  font-size: 11px;
  letter-spacing: 0.09em;
}

main {
  padding: 24px 18px 42px;
}

.intro {
  padding: 0 0 20px;
}

.intro p {
  max-width: none;
  width: 100%;
  margin: 0;
  color: #c9c9c9;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.58;
}

.news {
  margin-top: 10px;
}

.news h2 {
  margin: 0;
  padding-bottom: 10px;
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-dark);
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: normal;
}

.news-row {
  display: block;
  padding: 0 0 26px;
}

.news-row__content h3 {
  display: inline-block;
  width: auto;
  margin: 10px 0 16px;
  padding: 0 0 5px;
  color: var(--cyan);
  border-bottom: 1px solid #3a3a3a;
  font: 700 13px/1.2 Verdana, Arial, sans-serif;
  letter-spacing: 0;
}

.news-row__content p {
  margin: 0 0 14px;
  max-width: none;
  width: 100%;
  color: #c9c9c9;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.58;
}

.news-row__content p:last-child {
  margin-bottom: 0;
}

.news-row__content em {
  color: #bcbcbc;
}


/* ---------- PLAYER ----------
   One deck with a single transport and a spectrum strip, the track list
   underneath. Everything is drawn in CSS: triangles, meters and lamps use
   clip-path and gradients, no icon font and no image. */
.player {
  position: relative;
  margin: 18px 18px 0;
  border: 1px solid var(--cyan-dark);
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.014) 0,
      rgba(255,255,255,0.014) 1px,
      transparent 1px,
      transparent 3px
    ),
    #040707;
}

.player__head {
  min-height: 34px;
  padding: 7px 12px 6px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #10393b;
}

.player__head h2 {
  margin: 0;
  color: var(--cyan);
  font-size: 11px;
  line-height: 1.2;
  font-weight: normal;
  letter-spacing: 0.025em;
}

/* Volume sits with the transport, not across the player in the title bar. */
.player__volume {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 13px;
  border-left: 1px solid #12393b;
  color: #6f7a7a;
  font-size: 9px;
  letter-spacing: 0.09em;
}

/* ---------- DECK ---------- */
.player__deck {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(210px, 340px);
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  border-bottom: 1px solid #10393b;
  background:
    radial-gradient(120% 150% at 8% 50%, rgba(0,202,211,0.05), transparent 62%),
    transparent;
}

/* CRT sweep. Only runs while a track is playing. */
.player__deck::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    to bottom,
    transparent 0,
    rgba(0,202,211,0.07) 46%,
    rgba(0,202,211,0.13) 50%,
    rgba(0,202,211,0.07) 54%,
    transparent 100%
  );
}

.player.is-playing .player__deck::after {
  opacity: 1;
  animation: deck-sweep 4.6s linear infinite;
}

@keyframes deck-sweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ---------- TRANSPORT BUTTON ----------
   A typed command in brackets, the same language as the "&gt;" and "//" markers
   on the rest of the site. While a track runs the key lights up. */
.player__toggle {
  height: 48px;
  padding: 0 18px;
  display: grid;
  place-items: center;
  border: 1px solid #16585c;
  background: #061112;
  color: var(--cyan);
  cursor: pointer;
  transition: background 120ms linear, border-color 120ms linear, color 120ms linear;
}

.player__cmd {
  font: 700 12px/1 Verdana, Arial, sans-serif;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.player__toggle:hover,
.player__toggle:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #001819;
  outline: none;
}

.player__toggle:focus-visible {
  box-shadow: 0 0 0 1px var(--cyan), 0 0 9px rgba(0,202,211,0.5);
}

.player.is-playing .player__toggle {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #001819;
}

.player.is-playing .player__toggle:hover,
.player.is-playing .player__toggle:focus-visible {
  background: #061112;
  color: var(--cyan);
}

/* ---------- DISPLAY ---------- */
.player__display {
  min-width: 0;
}

.player__status {
  margin: 0 0 3px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6f7a7a;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.player__lamp {
  width: 7px;
  height: 7px;
  background: #14484b;
}

.player.is-playing .player__lamp {
  background: var(--green);
  box-shadow: 0 0 6px rgba(125,255,45,0.55);
  animation: lamp-pulse 1.1s steps(1, end) infinite;
}

@keyframes lamp-pulse {
  0%, 59% { opacity: 1; }
  60%, 100% { opacity: 0.28; }
}

.player__now {
  margin: 0 0 7px;
  overflow: hidden;
  color: #e6eaea;
  font: 700 13px/1.25 Verdana, Arial, sans-serif;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Rare RGB split on the running title, the same idea as the glitch lines
   in the header. */
.player.is-playing .player__now {
  animation: now-flicker 5.4s steps(1, end) infinite;
}

@keyframes now-flicker {
  0%, 90%, 100% { text-shadow: none; }
  91% { text-shadow: -2px 0 var(--cyan), 2px 0 rgba(125,255,45,0.75); }
  92% { text-shadow: 1px 0 rgba(0,202,211,0.9); }
  93% { text-shadow: none; }
  96% { text-shadow: -1px 0 var(--cyan); }
}

.player__transport {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px auto;
  align-items: center;
  gap: 9px;
}

.player__time {
  color: #7d8787;
  font-size: 9px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- SLIDERS ----------
   The visible rail stays thin, the input itself keeps a tall hit area so the
   control can be grabbed on a phone. */
.player__seek {
  display: block;
  min-width: 0;
}

.player__seek input,
.player__volume input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.player__seek input {
  height: 26px;
  --progress: 0%;
}

.player__volume input {
  width: 84px;
  height: 24px;
  --progress: 80%;
}

.player__seek input::-webkit-slider-runnable-track,
.player__volume input::-webkit-slider-runnable-track {
  height: 6px;
  border: 1px solid #14383a;
  background:
    linear-gradient(90deg, var(--cyan) 0 var(--progress), #08191a var(--progress) 100%);
}

.player__seek input::-moz-range-track,
.player__volume input::-moz-range-track {
  height: 6px;
  border: 1px solid #14383a;
  background:
    linear-gradient(90deg, var(--cyan) 0 var(--progress), #08191a var(--progress) 100%);
}

.player__seek input::-webkit-slider-thumb,
.player__volume input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 9px;
  height: 18px;
  margin-top: -7px;
  border: 0;
  border-radius: 0;
  background: #d8fbfc;
  box-shadow: 0 0 5px rgba(0,202,211,0.7);
}

.player__seek input::-moz-range-thumb,
.player__volume input::-moz-range-thumb {
  width: 9px;
  height: 18px;
  border: 0;
  border-radius: 0;
  background: #d8fbfc;
  box-shadow: 0 0 5px rgba(0,202,211,0.7);
}

.player__seek input:focus-visible,
.player__volume input:focus-visible {
  outline: 1px dashed var(--cyan);
  outline-offset: 3px;
}

/* ---------- SPECTRUM ---------- */
.player__viz {
  height: 58px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 2px;
  border: 1px solid #103335;
  background:
    linear-gradient(to top, rgba(0,202,211,0.05), transparent 55%),
    #030808;
}

/* At rest the strip keeps a low uneven pattern instead of a flat line. */
.player__viz span {
  flex: 1 1 0;
  min-width: 0;
  height: var(--idle, 9%);
  background: linear-gradient(to top, #00595e 0%, var(--cyan) 72%, var(--green) 100%);
}

/* Fallback pattern while no live signal is available. Duration and delay come
   from the markup so the bars never move as one block. */
.player.is-playing .player__viz:not(.is-live) span {
  animation: viz-bar var(--dur, 0.6s) steps(4, end) var(--delay, 0s) infinite alternate;
}

@keyframes viz-bar {
  0% { height: 7%; }
  100% { height: var(--peak, 82%); }
}

/* ---------- TRACK LIST ---------- */
.player__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.track {
  position: relative;
  border-bottom: 1px dashed #103335;
}

.track:last-child {
  border-bottom: 0;
}

.track__select {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, max-content) minmax(14px, 1fr) 58px 52px;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 120ms linear;
}

.track__select:hover,
.track__select:focus-visible {
  background: rgba(0,202,211,0.06);
  outline: none;
}

.track__select:focus-visible {
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.track__no {
  color: #55625f;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.track__title {
  min-width: 0;
  overflow: hidden;
  color: #c8cdcd;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dotted leader between title and data, the way a sleeve lists its tracks.
   It fills the gap instead of leaving it empty. */
.track__lead {
  height: 0;
  margin-top: 3px;
  border-bottom: 1px dotted #22403f;
}

.track.is-current .track__lead {
  border-bottom-color: #2f5c5c;
}

.track__year {
  color: #6c7676;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.track__len {
  color: #6c7676;
  font-size: 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Selected row keeps a cyan edge and a brighter title. */
.track.is-current .track__select {
  background: linear-gradient(90deg, rgba(0,202,211,0.09), transparent 46%);
  box-shadow: inset 3px 0 0 #0c6165;
}

.track.is-current .track__no,
.track.is-current .track__title {
  color: #e8ecec;
}

.player.is-playing .track.is-current .track__select {
  box-shadow: inset 3px 0 0 var(--cyan);
}

.player__note {
  margin: 0;
  padding: 6px 12px 7px;
  color: #57605f;
  border-top: 1px solid #0d2c2e;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

/* ---------- PLAYER, NARROW ---------- */
@media (max-width: 780px) {
  .player {
    margin: 13px 10px 0;
  }

  .player__deck {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 12px 10px;
  }

  .player__toggle {
    height: 52px;
    padding: 0 13px;
  }

  /* Spectrum moves under the transport and keeps the full width. */
  .player__viz {
    grid-column: 1 / -1;
    height: 42px;
  }

  .player__head {
    padding-left: 10px;
    padding-right: 10px;
  }

  .track__select {
    padding-left: 10px;
    padding-right: 10px;
    grid-template-columns: 28px minmax(0, max-content) minmax(12px, 1fr) 46px;
  }

  .track__year {
    display: none;
  }
}

/* Volume drops to its own line before the seek rail gets too short to grab. */
@media (max-width: 640px) {
  .player__transport {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    row-gap: 8px;
  }

  .player__volume {
    grid-column: 1 / -1;
    justify-self: start;
    padding-left: 0;
    border-left: 0;
  }

  .player__volume input {
    width: 108px;
  }
}

@media (max-width: 520px) {
  .player__now {
    font-size: 12px;
  }

  .player__viz span:nth-child(n + 25) {
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  min-height: 58px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  color: var(--cyan);
  border-top: 1px solid var(--cyan-dark);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.site-footer__jp {
  color: #9a9f9f;
  text-align: right;
  font-family: "Yu Gothic", "Meiryo", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

@media (max-width: 850px) {
  .page-shell {
    width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  .channel-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .main-nav {
    min-height: auto;
    padding: 13px 10px;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__brand {
    padding: 44px 24px 30px;
    align-items: center;
    text-align: center;
  }

  .brand-mark {
    max-width: 520px;
  }

  .brand-meta {
    max-width: 520px;
  }

  .hero__art::before,
  .glitch-line {
    display: none;
  }

  .hero__art img {
    min-height: 0;
    height: auto;
    object-fit: contain;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .site-footer__jp {
    text-align: left;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 13px;
  }

  main {
    padding-left: 13px;
    padding-right: 13px;
  }

  .channel-bar,
  .raw-line {
    font-size: 10px;
  }

  .hero__brand {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-meta {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.news-row__content { width: 100%; }


/* V20: shared navigation position + flat-file subpage masthead */
.subpage-masthead {
  min-height: 252px;
  height: 252px;
  display: grid;
  grid-template-columns: minmax(270px, 38%) minmax(0, 1fr);
  /* Pin the row to the container height, otherwise the row would size itself
     to the logo and push the cells past the 1px bottom border. */
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  border-bottom: 1px solid var(--cyan-dark);
  background:
    linear-gradient(90deg, rgba(0,202,211,0.025), transparent 33%),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.009) 0,
      rgba(255,255,255,0.009) 1px,
      transparent 1px,
      transparent 4px
    ),
    #020303;
}

/* No fixed height: the cell stretches into the grid row so the masthead's
   1px bottom border stays visible across the full width. */
.subpage-masthead__brand {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 30px 24px 28px 38px;
}

/* max-height keeps the logo inside its cell whatever the asset's own size is. */
.subpage-masthead__brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 320px);
  max-height: 100%;
}

@media (max-width: 760px) {
  .subpage-masthead {
    min-height: 0;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .subpage-masthead__brand {
    padding: 24px 18px 20px;
    border-bottom: 1px solid rgba(0,202,211,0.16);
  }

  .subpage-masthead__brand img {
    width: min(76vw, 285px);
  }
}

@media (max-width: 520px) {
  .subpage-masthead__brand {
    padding-left: 13px;
    padding-right: 13px;
  }
}


/* ---------- BAND HISTORY ---------- */
body.subpage .history-page {
  padding: 24px 18px 42px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.58;
}

.history-intro,
.history-outro,
.history-period,
.history-period__body {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

.history-intro {
  padding: 0 0 20px;
}

.history-period {
  padding: 0 0 26px;
}

.history-outro {
  padding: 8px 0 2px;
}

.history-intro p,
.history-period__body p,
.history-outro p {
  display: block;
  max-width: none;
  margin: 0 0 14px;
  padding: 0;
  color: #c9c9c9;
}

.history-period__body p:last-child {
  margin-bottom: 0;
}

.history-outro p:first-child {
  margin-bottom: 18px;
}

/* Callout keeps the paragraph rhythm; only colour and weight differ.
   Written as p.history-callout so it outranks the paragraph rule above
   without needing !important. */
p.history-callout {
  color: #e7e7e7;
  font-weight: 700;
}

.history-outro .history-callout {
  margin: 0;
  font-size: 12px;
}

.history-period h2 {
  display: inline-block;
  width: auto;
  margin: 10px 0 16px;
  padding: 0 0 5px;
  color: var(--cyan);
  border-bottom: 1px solid #3a3a3a;
  font: 700 13px/1.2 Verdana, Arial, sans-serif;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  body.subpage .history-page {
    padding: 20px 14px 34px;
  }

  .history-period {
    padding-bottom: 22px;
  }
}

@media (max-width: 520px) {
  body.subpage .history-page {
    padding-left: 12px;
    padding-right: 12px;
    line-height: 1.55;
  }
}

/* V24: Band History artwork + code-generated cyan glitches */
.subpage-masthead__visual {
  position: relative;
  min-width: 0;
  align-self: stretch;
  overflow: hidden;
  background: #000;
}

.subpage-masthead__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* One glitch definition for both subpages. Only the positions and the
   animation offsets differ per page, so the effect stays in sync. */
.history-glitch,
.discography-glitch {
  position: absolute;
  z-index: 2;
  display: block;
  height: 1px;
  background: var(--cyan);
  opacity: 0.72;
  pointer-events: none;
  transform-origin: left center;
  animation: historyGlitchDrift 6.8s steps(1, end) infinite;
}

.history-glitch::after,
.discography-glitch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 28%;
  width: 36%;
  height: 1px;
  background: var(--cyan);
  opacity: 0.35;
}

.history-glitch--1 {
  top: 22%;
  left: 5%;
  width: 15%;
  animation-delay: -1.1s;
}

.history-glitch--2 {
  top: 41%;
  right: 4%;
  width: 10%;
  animation-delay: -3.4s;
}

.history-glitch--3 {
  bottom: 24%;
  left: 11%;
  width: 7%;
  animation-delay: -5.2s;
}

.history-glitch--4 {
  bottom: 13%;
  right: 12%;
  width: 18%;
  animation-delay: -2.3s;
}

@keyframes historyGlitchDrift {
  0%, 11%, 100% {
    opacity: 0.18;
    transform: translateX(0) scaleX(0.72);
  }
  12%, 14% {
    opacity: 0.78;
    transform: translateX(7px) scaleX(1);
  }
  15%, 46% {
    opacity: 0.28;
    transform: translateX(1px) scaleX(0.86);
  }
  47%, 49% {
    opacity: 0.68;
    transform: translateX(-5px) scaleX(1.08);
  }
  50%, 78% {
    opacity: 0.20;
    transform: translateX(0) scaleX(0.64);
  }
  79%, 81% {
    opacity: 0.88;
    transform: translateX(10px) scaleX(0.94);
  }
  82%, 99% {
    opacity: 0.22;
    transform: translateX(0) scaleX(0.78);
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* The global reduce block already stops the animation; this only dims the
   glitch lines so they read as static hairlines rather than bright marks. */
@media (prefers-reduced-motion: reduce) {
  .history-glitch,
  .discography-glitch {
    opacity: 0.35;
  }
}

/* Stacked masthead on phones: one shared rule for both subpages.
   The artwork keeps its own proportions but never grows past 220px,
   so the header stays compact on tablets. */
@media (max-width: 760px) {
  .subpage-masthead__visual img,
  .discography-masthead__visual img {
    height: auto;
    max-height: 220px;
  }
}


/* V28: Discography */
.discography-masthead {
  position: relative;
}

.discography-masthead__visual {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  background: #010202;
}

.discography-masthead__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.discography-glitch--1 {
  top: 30%;
  left: 11%;
  width: 11%;
  animation-delay: -0.9s;
}

.discography-glitch--2 {
  top: 61%;
  right: 12%;
  width: 7%;
  animation-delay: -3.1s;
}

.discography-glitch--3 {
  bottom: 16%;
  left: 35%;
  width: 16%;
  animation-delay: -5.0s;
}

/* ---------- DISCOGRAPHY ----------
   Every release is one record in an archive: a bordered block with a header
   strip and three cells (cover, data fields, prose). Blocks share their
   borders so the page reads as one continuous listing. */
.discography-page {
  --cover-cell: 272px;
  container-type: inline-size;
  container-name: disco;
  padding: 30px 18px 48px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

.release-entry {
  display: block;
  margin: 0 0 -1px;
  padding: 0;
  border: 1px solid #223030;
  background: #040606;
}

.release-entry h2 {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin: 0;
  padding: 7px 12px 6px;
  border: 0;
  border-bottom: 1px solid #223030;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.016) 0,
      rgba(255,255,255,0.016) 1px,
      transparent 1px,
      transparent 3px
    ),
    #0b1010;
  font: 400 11px/1.35 Verdana, Arial, sans-serif;
  letter-spacing: 0.07em;
}

.release-year {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.release-year::after {
  content: " //";
  color: #3d4d4c;
}

.release-name {
  color: #e4e4e4;
  font-weight: 700;
}

.release-entry h2 small {
  margin-left: auto;
  color: #6d7777;
  font: inherit;
  letter-spacing: 0.12em;
}

.release-entry h2 small::before { content: "["; }
.release-entry h2 small::after  { content: "]"; }

/* Cover fixed, data and prose share the rest so the prose column lands on
   reading width and no cell is left half empty. */
.release-entry__layout {
  display: grid;
  grid-template-columns: var(--cover-cell) minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
}

.release-art {
  padding: 11px;
  border-right: 1px solid #223030;
}

.release-art img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #35403f;
  background: #000;
}

/* Field list. No column gap and a rule per row, otherwise a value that wraps
   over several lines runs into the next field. */
.release-data {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-content: start;
  gap: 0;
  margin: 0;
  padding: 0 13px 11px;
  border-right: 1px solid #223030;
  font: 400 11px/1.5 Verdana, Arial, sans-serif;
}

.release-data dt,
.release-data dd {
  padding: 5px 0;
  border-top: 1px solid #1b2424;
}

.release-data dt {
  padding-right: 12px;
  color: #64706f;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.release-data dd {
  color: #ccd1d1;
}

.release-data dt:first-of-type,
.release-data dd:first-of-type {
  padding-top: 11px;
  border-top: 0;
}

.release-copy {
  min-width: 0;
  padding: 11px 14px 13px;
}

.release-copy p {
  margin: 0 0 9px;
  color: #b7bcbc;
  font-size: 11px;
  line-height: 1.55;
  text-wrap: pretty;
}

.release-copy p:last-child {
  margin-bottom: 0;
}

/* Written as p.release-shout so it outranks .release-copy p without !important. */
p.release-shout {
  color: #e5e5e5;
  font-weight: 700;
}

/* Index table. It opens the archive: what is in here, newest first.
   Released rows jump down to their own entry. */
.release-index {
  margin: 0 0 30px;
}

.release-index > h2 {
  margin: 0 0 12px;
  padding: 0 0 8px;
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-dark);
  font: 400 12px/1.3 Verdana, Arial, sans-serif;
}

.release-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #223030;
  font: 400 11px/1.5 Verdana, Arial, sans-serif;
}

.release-table th {
  padding: 6px 12px 5px;
  color: #8d9797;
  text-align: left;
  border-bottom: 1px solid #223030;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.016) 0,
      rgba(255,255,255,0.016) 1px,
      transparent 1px,
      transparent 3px
    ),
    #0b1010;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.release-table td {
  padding: 5px 12px;
  color: #c3c8c8;
  border-bottom: 1px solid #141b1b;
}

.release-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.017);
}

.release-table tbody tr:last-child td {
  border-bottom: 0;
}

.cat-year {
  width: 72px;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cat-type {
  width: 112px;
  color: #8d9797;
  white-space: nowrap;
}

.cat-name a {
  color: #d8dcdc;
  text-decoration: none;
  border-bottom: 1px dotted #3a4747;
}

.cat-name a:hover,
.cat-name a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.cat-name a:focus-visible {
  outline: 1px dashed var(--cyan);
  outline-offset: 3px;
}

.cat-soon {
  color: var(--green);
  font-style: normal;
  letter-spacing: 0.05em;
}

/* A jump target should not sit flush against the top edge. */
.release-entry {
  scroll-margin-top: 16px;
}

/* Data and prose stack next to the cover once three cells stop fitting. */
@container disco (max-width: 1000px) {
  .release-entry__layout {
    grid-template-columns: var(--cover-cell) minmax(0, 1fr);
  }

  .release-art {
    grid-row: 1 / span 2;
  }

  .release-data {
    grid-column: 2;
    grid-row: 1;
    border-right: 0;
    border-bottom: 1px dashed #1f2a2a;
  }

  .release-copy {
    grid-column: 2;
    grid-row: 2;
  }
}

/* Full stack on phones. */
@container disco (max-width: 620px) {
  .release-entry__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .release-art {
    grid-row: auto;
    border-right: 0;
    border-bottom: 1px solid #223030;
  }

  .release-data,
  .release-copy {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .discography-page {
    padding: 24px 14px 38px;
  }
}

@media (max-width: 520px) {
  .discography-page {
    padding-left: 12px;
    padding-right: 12px;
  }
}
