/* ============================================================
   KCYI 97.7 FM — The City · "Liner Notes"
   Warm analog: espresso "on air" bands alternating with kraft
   "liner note" bands. Flame orange + dusty blue accents.
   Type: Young Serif (display) · Archivo (body) · IBM Plex Mono (utility)
   ============================================================ */

:root {
  --espresso: #211410;
  --espresso-2: #2c1b12;
  --espresso-3: #160d09;
  --kraft: #ead9b8;
  --kraft-2: #dfcda2;
  --bone: #f6eddc;
  --bone-dim: #cfc0a8;
  --ink: #33241a;
  --ink-soft: #5c4732;
  --flame: #ea5a2e;
  --flame-deep: #c74722;
  --dusty: #9db8cc;
  --denim: #46617a;
  --hairline-dark: rgba(244, 235, 219, 0.16);
  --hairline-ink: rgba(51, 36, 26, 0.25);
  --wrap: 1180px;
  --masthead-h: 4.25rem;
  --tuner-h: 2.1rem;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--masthead-h) + var(--tuner-h) + 0.75rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--espresso);
  color: var(--bone);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1rem; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
  border-radius: 2px;
}
.band-paper :focus-visible { outline-color: var(--denim); }

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--flame);
  color: var(--espresso);
  padding: 0.6rem 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

/* ---------- utility type ---------- */

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.eyebrow-flame { color: var(--flame); }
.eyebrow-denim { color: var(--denim); }
.eyebrow-ink { color: var(--espresso); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--bone-dim);
  max-width: 44ch;
}
.lede-ink { color: var(--ink-soft); }

.microline, .fineprint, .mono-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.microline { color: var(--bone-dim); margin-top: 2rem; }
.fineprint {
  color: var(--bone-dim);
  margin-top: 2.2rem;
  letter-spacing: 0.1em;
  line-height: 1.9;
}
.fineprint a { color: var(--bone); }
.band-paper .fineprint { color: var(--ink-soft); }
.center { text-align: center; }
.mono-note { color: var(--ink-soft); margin-top: 0.6rem; }
.band-dark .mono-note { color: var(--bone-dim); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform 0.15s, background-color 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-flame { background: var(--flame); color: var(--espresso-3); }
.btn-flame:hover { background: #ee6438; }
.btn-ghost { border-color: var(--hairline-dark); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone-dim); }
.btn-espresso { background: var(--espresso); color: var(--bone); }
.btn-espresso:hover { background: var(--espresso-3); }
.btn-small { padding: 0.6rem 1.05rem; font-size: 0.75rem; }

/* ---------- masthead + tuner ---------- */

.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--espresso-3);
  background: color-mix(in srgb, var(--espresso-3) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.masthead-row {
  height: var(--masthead-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-freq {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.3rem;
  color: var(--bone);
}
.brand-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--flame);
  margin-top: 0.18rem;
}
.site-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}
.site-nav a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-dim);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--bone); border-bottom-color: var(--flame); }
.masthead-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.masthead-phone {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  text-decoration: none;
}
.masthead-phone:hover { color: var(--bone); }

.menu { position: relative; display: none; }
.menu summary {
  list-style: none;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.2rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-icon {
  width: 16px; height: 2px;
  background: var(--flame);
  box-shadow: 0 5px 0 var(--flame), 0 -5px 0 var(--flame);
}
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.9rem);
  min-width: 13rem;
  background: var(--espresso-2);
  border: 1px solid var(--hairline-dark);
  border-radius: 4px;
  padding: 0.6rem 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.menu-panel a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  padding: 0.7rem 1.2rem;
}
.menu-panel a:hover { background: var(--espresso-3); color: var(--flame); }

/* the tuner strip — needle position = scroll progress */
.tuner {
  position: relative;
  height: var(--tuner-h);
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
  background: var(--espresso-3);
  overflow: hidden;
  container-type: inline-size;
}
.tuner-scale {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background:
    repeating-linear-gradient(90deg,
      rgba(244,235,219,0.28) 0 1px, transparent 1px 10.5%),
    repeating-linear-gradient(90deg,
      rgba(244,235,219,0.13) 0 1px, transparent 1px 2.1%);
  background-size: 100% 100%, 100% 55%;
  background-position: bottom, bottom;
  background-repeat: no-repeat;
}
.tuner-freqs {
  position: absolute;
  inset: 0.18rem 0 auto 0;
  display: flex;
  justify-content: space-between;
  padding-inline: 0.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: rgba(244,235,219,0.42);
}
.tuner-home {
  position: absolute;
  left: 48.5%;
  bottom: 0;
  transform: translateX(-50%);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--flame);
  padding-bottom: 0.12rem;
}
.tuner-home i {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 2px;
  height: 0.5rem;
  background: var(--flame);
  transform: translateX(-50%);
  opacity: 0.7;
}
.tuner-needle {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 2px;
  background: var(--bone);
  box-shadow: 0 0 0 1px rgba(36,24,17,0.6);
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes tune {
      to { transform: translateX(calc(100cqw - 2px)); }
    }
    .tuner-needle {
      animation: tune auto linear;
      animation-timeline: scroll(root);
    }
  }
}

/* ---------- bands ---------- */

.band { position: relative; }
.band-dark {
  background: var(--espresso);
  color: var(--bone);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.band-paper {
  background: var(--kraft);
  color: var(--ink);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.band-paper::before,
.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.5;
  pointer-events: none;
}
.band-paper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, rgba(51, 36, 26, 0.3) 0 1px, transparent 1px 13px);
  pointer-events: none;
}
.band-paper-deep { background: var(--kraft-2); }
.band-paper h2, .band-paper h3 { color: var(--ink); }
.band > .wrap { position: relative; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head .lede { margin-bottom: 0.4rem; }

/* ---------- hero ---------- */

.hero {
  padding-top: calc(var(--masthead-h) + var(--tuner-h) + clamp(2.6rem, 6vw, 4.6rem));
  padding-bottom: 0;
  background:
    radial-gradient(58% 52% at 76% 26%, rgba(234, 118, 50, 0.24) 0%, transparent 68%),
    radial-gradient(120% 90% at 85% 0%, #3e2818 0%, transparent 55%),
    var(--espresso);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.7rem);
  line-height: 1.0;
  letter-spacing: -0.018em;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--flame);
}
.hero .lede { max-width: 40ch; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-art {
  margin: 0;
  position: relative;
  transform: rotate(1.6deg);
}
.hero-art img {
  border-radius: 4px;
  border: 7px solid var(--bone);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.62);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.hero-sticker {
  position: absolute;
  top: -1.5rem;
  left: -1.6rem;
  z-index: 2;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  background: var(--flame);
  color: var(--espresso-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(-12deg);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(22, 13, 9, 0.25);
}
.hero-sticker b {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}
.art-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 0.9rem;
}
.art-tag-ink { color: var(--ink-soft); }

/* the big hero dial */
.dial {
  position: relative;
  height: 5.4rem;
  border-block: 1px solid var(--hairline-dark);
  margin-top: 1rem;
  margin-bottom: clamp(2.6rem, 5vw, 4rem);
}
.dial-scale {
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background:
    repeating-linear-gradient(90deg, rgba(244,235,219,0.34) 0 2px, transparent 2px 5%),
    repeating-linear-gradient(90deg, rgba(244,235,219,0.14) 0 1px, transparent 1px 1%);
  background-size: 100% 100%, 100% 52%;
  background-position: bottom, bottom;
  background-repeat: no-repeat;
}
.dial-labels span {
  position: absolute;
  top: 0.55rem;
  left: var(--at);
  transform: translateX(-50%);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--bone-dim);
}
.dial-labels span:first-child { transform: translateX(0); }
.dial-labels span:last-child { transform: translateX(-100%); }
.dial-needle {
  position: absolute;
  left: 48.5%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--flame);
}

/* radio chyron — real station facts on a loop */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--hairline-dark);
  background: var(--espresso-3);
}
.ticker-track {
  display: flex;
  width: max-content;
}
.ticker-track span {
  white-space: nowrap;
  padding-block: 0.62rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.ticker-track em {
  font-style: normal;
  color: var(--flame);
  font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
  .ticker-track {
    animation: chyron 52s linear infinite;
  }
  @keyframes chyron {
    to { transform: translateX(-50%); }
  }
}
.dial-needle b {
  position: absolute;
  bottom: calc(100% + 0.05rem);
  left: 50%;
  transform: translate(-50%, 50%);
  background: var(--flame);
  color: var(--espresso-3);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
  white-space: nowrap;
}
.dial-needle i {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--flame);
}

/* ---------- about (paper) ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-copy p { max-width: 54ch; }
.about-callout {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--flame-deep);
  border-left: 3px solid var(--flame);
  padding-left: 1.1rem;
  margin-block: 1.6rem;
}
.fact-chips {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.fact-chips li {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--hairline-ink);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  color: var(--ink-soft);
}
.about-art { margin: 0; transform: rotate(-1.4deg); }
.about-art img {
  border: 6px solid var(--bone);
  border-bottom-width: 2.6rem;
  border-radius: 3px;
  box-shadow: 0 16px 40px rgba(51, 36, 26, 0.35);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-art .art-tag-ink { text-align: center; margin-top: -1.9rem; position: relative; }

/* ---------- soundroom crate ---------- */

#soundroom {
  background:
    radial-gradient(50% 55% at 88% 4%, rgba(157, 184, 204, 0.1) 0%, transparent 65%),
    var(--espresso);
}

/* channel cards as kraft record sleeves; each 45 peeks out of the top */
.crate {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.7rem 1.15rem;
}
.crate-card {
  position: relative;
  background: linear-gradient(178deg, #f0e2c3 0%, #e4d1a8 100%);
  color: var(--ink);
  border-radius: 4px;
  padding: 1.9rem 1.25rem 1.15rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  transition: transform 0.18s;
}
.crate-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.55rem;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(51, 36, 26, 0.22), transparent);
}
.crate-card:hover { transform: translateY(-4px); }
.crate-slot {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--flame-deep);
}
.disc {
  position: absolute;
  top: -1.5rem;
  right: 1rem;
  display: block;
  width: 4.3rem;
  height: 4.3rem;
  border-radius: 50%;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.4);
  background:
    radial-gradient(circle,
      #171310 0 7%,
      var(--label, var(--flame)) 7% 37%,
      #171310 37% 40%,
      #241d18 40% 46%,
      #171310 46% 49%,
      #241d18 49% 55%,
      #171310 55% 58%,
      #241d18 58% 64%,
      #171310 64% 67%,
      #241d18 67% 100%);
  transition: transform 0.45s ease;
}
.crate-card:hover .disc { transform: translateY(-7px) rotate(-24deg); }
.crate-card h3 { font-size: 1.16rem; margin: 0.55rem 0 0.35rem; color: var(--ink); }
.crate-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- silk & suede liner notes ---------- */

.liner-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.9rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.liner-head .eyebrow { margin: 0; }
.liner-when {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.liner-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.liner-title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.liner-host {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame-deep);
  margin-bottom: 1.6rem;
}
.liner-quote {
  margin: 0;
  border-left: 3px solid var(--flame);
  padding-left: 1.2rem;
  max-width: 52ch;
}
.liner-quote p {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.14rem;
  line-height: 1.5;
  color: var(--ink);
}
.liner-quote cite {
  font-family: "IBM Plex Mono", monospace;
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.liner-art { margin: 0; transform: rotate(1.2deg); }
.liner-art img {
  border: 6px solid var(--bone);
  border-radius: 3px;
  box-shadow: 0 16px 40px rgba(51, 36, 26, 0.35);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.liner-sets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  border-top: 1px solid var(--hairline-ink);
  padding-top: 1.8rem;
}
.set h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--flame-deep);
  margin-bottom: 0.9rem;
}
.set ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: track;
}
.set li {
  counter-increment: track;
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0 0.6rem 1.9rem;
  position: relative;
  border-bottom: 1px solid var(--hairline-ink);
  font-family: "Young Serif", Georgia, serif;
  font-size: 0.98rem;
  color: var(--ink);
}
.set li::before {
  content: counter(track, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--ink-soft);
}
.set li span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.12rem;
}

/* ---------- art & culture gallery ---------- */

.gallery-wall {
  list-style: none;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.2rem);
}
.frame { padding: 12px 12px 0; }
.frame img {
  border: 10px solid var(--bone);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow:
    0 0 0 11px #2a1a11,
    0 30px 50px rgba(51, 36, 26, 0.45);
  transition: transform 0.25s ease;
}
.frame:hover img { transform: scale(1.015); }
.frame:nth-child(2) { transform: translateY(1.4rem); }
.placard {
  margin-top: 2.1rem;
  background: var(--bone);
  border: 1px solid var(--hairline-ink);
  border-radius: 2px;
  padding: 0.7rem 0.9rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}
.placard strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.placard span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.culture-rows {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
}
.culture-card {
  background: var(--kraft);
  border: 1px solid var(--hairline-ink);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}
.culture-card:last-child { grid-template-columns: 1fr; }
.culture-art { margin: 0; }
.culture-art img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.culture-body { padding: 1.6rem 1.7rem; align-self: center; }
.culture-body p { color: var(--ink-soft); max-width: 46ch; }
.culture-body a { color: var(--flame-deep); font-weight: 600; }

/* ---------- sponsorship ---------- */

#sponsor {
  background:
    radial-gradient(52% 55% at 84% 8%, rgba(157, 184, 204, 0.12) 0%, transparent 65%),
    var(--espresso);
}

.avenues {
  list-style: none;
  margin: 0 0 clamp(1.6rem, 3vw, 2.4rem);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.avenue {
  background: var(--espresso-2);
  border: 1px solid var(--hairline-dark);
  border-top: 3px solid var(--flame);
  border-radius: 6px;
  padding: 1.5rem 1.5rem 1.2rem;
}
.avenue-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 0.9rem;
}
.avenue p:last-child { color: var(--bone-dim); margin: 0; }

.pitches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.pitch {
  background: linear-gradient(178deg, var(--bone) 0%, #ecdfc4 100%);
  color: var(--ink);
  border-radius: 3px;
  padding: 1.7rem 1.8rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
  transform: rotate(-0.5deg);
}
.pitch:last-child { transform: rotate(0.45deg); }
.pitch h3 { color: var(--ink); }
.pitch-for {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flame-deep);
  margin-bottom: 0.9rem;
}
.pitch p:last-child { color: var(--ink-soft); margin: 0; }

.thanks {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border-block: 1px solid var(--hairline-dark);
  padding-block: 1.1rem;
  margin-block: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 2;
}
.thanks strong { color: var(--bone); }
.thanks a { color: var(--bone-dim); }
.thanks a:hover { color: var(--bone); }

/* ---------- station sponsor spotlight ---------- */
.sponsor-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  background: linear-gradient(135deg, var(--espresso-2) 0%, #2d1b14 100%);
  border: 1px solid var(--hairline-dark);
  border-left: 3px solid var(--flame);
  border-radius: 6px;
  padding: clamp(1.3rem, 3vw, 1.9rem) clamp(1.3rem, 3vw, 2rem);
  margin-block: clamp(1.8rem, 4vw, 2.6rem);
}
.sponsor-photo {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 3px solid var(--flame);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  flex: none;
}
.sponsor-body h3 { margin: 0 0 0.25rem; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.sponsor-body .avenue-tag { margin-bottom: 0.55rem; }
.sponsor-role {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0 0 0.6rem;
}
.sponsor-blurb { color: var(--bone-dim); font-size: 0.95rem; margin: 0; max-width: 34rem; }
.sponsor-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex: none;
}
.sponsor-logo {
  width: auto;
  height: 6.6rem;
  max-width: 17.2rem;
  object-fit: contain;
}
.sponsor-links .btn { white-space: nowrap; }

.moves h3 { margin-bottom: 1.2rem; }
.moves-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.moves-list li {
  border: 1px solid var(--hairline-dark);
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.moves-list span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.moves-list a {
  text-decoration: none;
  color: var(--bone);
  font-weight: 600;
}
.moves-list a:hover { color: var(--flame); }

/* ---------- donate ---------- */

.band-flame {
  background: var(--flame);
  color: var(--espresso-3);
  padding-block: clamp(3.4rem, 7vw, 5.2rem);
}
.band-flame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.4;
  pointer-events: none;
}
.band-flame h2 {
  color: var(--espresso-3);
  font-size: clamp(2.4rem, 5vw, 3.9rem);
}
.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.donate-lede {
  color: rgba(27, 17, 12, 0.82);
  max-width: 46ch;
  margin: 0;
  font-size: 1.08rem;
}
.donate-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.donate-pending {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--espresso-3);
  border: 1px dashed rgba(27, 17, 12, 0.55);
  border-radius: 3px;
  padding: 0.7rem 1rem;
  margin: 0;
}

/* ---------- contact ---------- */

#contact {
  background:
    radial-gradient(55% 60% at 16% 92%, rgba(234, 118, 50, 0.13) 0%, transparent 65%),
    var(--espresso);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.contact-cards li {
  border: 1px solid var(--hairline-dark);
  border-radius: 6px;
  padding: 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-cards span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.contact-cards a {
  color: var(--bone);
  font-weight: 600;
  text-decoration: none;
}
.contact-cards a:hover { color: var(--flame); }
.contact-cards address { font-style: normal; color: var(--bone); font-weight: 600; }
.dir-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame) !important;
}
.socials { color: var(--bone); font-weight: 600; margin: 0; }
.contact-art { margin: 0; transform: rotate(1.1deg); }
.contact-art img {
  border-radius: 4px;
  border: 7px solid var(--bone);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

/* ---------- footer ---------- */

.site-foot {
  position: relative;
  background: var(--espresso-3);
  border-top: 1px solid var(--hairline-dark);
  padding-block: 2.8rem;
}
.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, rgba(246, 237, 220, 0.22) 0 1px, transparent 1px 13px);
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.foot-brand {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.foot-brand span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--flame);
  margin-top: 0.3rem;
}
.foot-line { color: var(--bone-dim); max-width: 40ch; margin: 0; }
.foot-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  line-height: 2.1;
  margin: 0;
  text-align: right;
}

/* ---------- page-load motion (hero only; scroll motion lives in the tuner) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-in {
    from { opacity: 0; transform: translateY(14px); }
  }
  .hero-copy > * { animation: hero-in 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.3s; }
  .hero-art { animation: hero-in 0.9s 0.2s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
}

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

@media (max-width: 1020px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .masthead-phone { display: none; }
  .masthead-actions { margin-left: auto; }
  .crate { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .moves-list { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .sponsor-card { grid-template-columns: auto 1fr; }
  .sponsor-links { grid-column: 1 / -1; }
  .hero-grid,
  .about-grid,
  .liner-grid,
  .donate-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 26rem; margin-top: 1.2rem; }
  .hero-sticker { top: -1.2rem; left: -0.8rem; width: 5.4rem; height: 5.4rem; font-size: 0.52rem; }
  .hero-sticker b { font-size: 1.2rem; }
  .liner-sets { grid-template-columns: 1fr; gap: 1.2rem; }
  .gallery-wall { grid-template-columns: 1fr; }
  .frame:nth-child(2) { transform: none; }
  .frame img { aspect-ratio: 4 / 3; }
  .culture-rows { grid-template-columns: 1fr; }
  .culture-card { grid-template-columns: 1fr; }
  .culture-art img { aspect-ratio: 16 / 9; }
  .avenues { grid-template-columns: 1fr; }
  .pitches { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .crate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-meta { text-align: left; }
}

@media (max-width: 560px) {
  .sponsor-card { grid-template-columns: 1fr; text-align: left; }
  .sponsor-links { align-items: flex-start; }
}

@media (max-width: 460px) {
  .crate { gap: 2rem 0.7rem; }
  .crate-card { padding: 1.5rem 0.9rem 0.9rem; }
  .crate-card h3 { font-size: 1rem; }
  .crate-slot { left: 0.9rem; top: 0.85rem; }
  .crate-sub { font-size: 0.62rem; }
  .disc { width: 3.2rem; height: 3.2rem; top: -1.1rem; right: 0.7rem; }
}

/* ---------- live-stream control (masthead + hero) ----------
   The stream starts on its own where the browser allows it, otherwise on the visitor's
   first tap anywhere. These buttons show the state and pause / resume. ---------- */
.play-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font: inherit;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}
.play-toggle.btn-small { font-size: 0.75rem; }
.play-toggle svg { width: 0.95rem; height: 0.95rem; flex: none; }
.play-toggle[data-state="playing"] { background: var(--espresso-3); color: var(--flame); border-color: var(--flame); }
.play-toggle[data-state="playing"]:hover { background: #2b1a14; }
.play-toggle[data-state="unavailable"] { background: transparent; color: var(--bone-dim); border-color: var(--hairline-dark); cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  .play-toggle.is-armed { animation: toggle-pulse 2.6s ease-in-out infinite; }
  @keyframes toggle-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(234, 90, 46, 0.55); }
    50% { box-shadow: 0 0 0 9px rgba(234, 90, 46, 0); }
  }
}
.play-toggle { white-space: nowrap; }
.brand-sub { white-space: nowrap; }
@media (min-width: 701px) {
  /* a fixed width so the masthead does not shift as the label changes state */
  .play-toggle.btn-small { min-width: 9.8rem; justify-content: center; }
}
@media (max-width: 700px) {
  .play-toggle.btn-small { padding: 0.55rem 0.7rem; gap: 0.4rem; font-size: 0.68rem; }
}
@media (max-width: 380px) {
  .play-toggle.btn-small .play-label { display: none; }
  .play-toggle.btn-small { padding: 0.6rem 0.75rem; }
  .play-toggle.btn-small svg { width: 1.1rem; height: 1.1rem; }
}

/* ---------- wave strip inside the stream buttons ----------
   A row of thin bars along the inside bottom edge. Visible only while the stream plays;
   driven by the real audio where that is safe (script.js), otherwise self-animating. */
.play-toggle { position: relative; overflow: hidden; }
.play-toggle .wave {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 6px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.play-toggle[data-state="playing"] .wave { opacity: 0.85; }
.play-toggle .wave i {
  flex: 1 1 0;
  height: 100%;
  background: currentColor;
  border-radius: 1px 1px 0 0;
  transform: scaleY(0.15);
  transform-origin: bottom;
  will-change: transform;
}
.play-toggle.sim[data-state="playing"] .wave i {
  animation: wave-bar var(--d, 0.8s) ease-in-out var(--l, 0s) infinite alternate;
}
@keyframes wave-bar {
  from { transform: scaleY(0.15); }
  to { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .play-toggle.sim[data-state="playing"] .wave i { animation: none; transform: scaleY(0.4); }
}
@media (max-width: 700px) {
  .play-toggle.btn-small .wave { height: 5px; left: 0.6rem; right: 0.6rem; }
}

/* ---------- scrollbar in the site's palette ----------
   Standard properties for Firefox and current Chrome/Edge; the WebKit rules cover Safari
   and older Chrome. `color-scheme: dark` also makes the browser's own chrome (form
   controls, the default scrollbar where custom ones are ignored) render dark. */
:root { color-scheme: dark; }
html {
  scrollbar-color: var(--flame-deep) var(--espresso-3);
  scrollbar-width: thin;
}
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: var(--espresso-3); }
  ::-webkit-scrollbar-thumb {
    background: var(--flame-deep);
    border-radius: 999px;
    border: 2px solid var(--espresso-3);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--flame); }
  ::-webkit-scrollbar-corner { background: var(--espresso-3); }
}

/* ---------- footer credit ---------- */
.foot-credit {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-dark);
}
.foot-credit:hover { color: var(--bone); border-bottom-color: var(--bone-dim); }
/* one line on desktop; wraps naturally on small screens */
@media (min-width: 821px) {
  .foot-copy-line { white-space: nowrap; }
}
