/* Kaplow! Website — Northwoods Screenprint & Municipal Dispatch System
   Tokens:
     --night:       #0E1A27  (Northwoods twilight indigo)
     --pine-ink:    #162638  (Harbor slate surface)
     --paper:       #F4E9D2  (Municipal screenprint & Gazette stock)
     --plow-orange: #E87A24  (Plow blade & sodium streetlamp)
     --aurora:      #3AD19B  (Northern Lights emerald)
     --stamp-red:   #B8332A  (Public Works rubber stamp)
*/

:root {
  --night: #0E1A27;
  --night-deep: #09121B;
  --pine-ink: #162638;
  --pine-edge: rgba(244, 233, 210, 0.14);
  --paper: #F4E9D2;
  --paper-shade: #E7D6B5;
  --paper-ink: #1C2331;
  --plow-orange: #E87A24;
  --plow-amber: #FFB43A;
  --aurora: #3AD19B;
  --stamp-red: #B8332A;
  --text: #F2ECE0;
  --muted: #A9BACD;

  --font-display: 'Lilita One', 'Trebuchet MS', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--night);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--plow-amber);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--plow-amber);
  color: var(--night);
  font-weight: 800;
  border-radius: 6px;
  text-decoration: none;
}
.skip:focus { left: 12px; }

.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

/* ------------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 9px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}
.btn-lg {
  padding: 15px 26px;
  font-size: 1.04rem;
}
.btn-sm {
  padding: 9px 16px;
  font-size: 0.9rem;
}
.btn-plow {
  background: linear-gradient(180deg, #F58D35 0%, var(--plow-orange) 100%);
  color: #131B26;
  border-color: #26160A;
  box-shadow: 0 4px 0 #7E3A09, 0 10px 24px rgba(0, 0, 0, 0.35);
}
.btn-plow:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #FFA149 0%, #EE8429 100%);
  box-shadow: 0 6px 0 #7E3A09, 0 14px 28px rgba(0, 0, 0, 0.42);
}
.btn-plow:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #7E3A09;
}
.btn-ghost {
  background: rgba(14, 26, 39, 0.72);
  color: var(--paper);
  border-color: rgba(244, 233, 210, 0.34);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(22, 38, 56, 0.92);
  border-color: var(--paper);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------- Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(9, 18, 27, 0.84);
  border-bottom: 1px solid var(--pine-edge);
  backdrop-filter: blur(12px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.03em;
  color: var(--paper);
  text-shadow: 2px 2px 0 var(--plow-orange);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--aurora);
  opacity: 0.9;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--paper);
}

/* ------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: center;
  padding: 64px 0 76px;
  overflow: hidden;
  background: var(--night-deep);
  border-bottom: 1px solid var(--pine-edge);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.1) contrast(1.06);
  pointer-events: none;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 72% 28%, rgba(58, 209, 155, 0.14), transparent 62%),
    radial-gradient(ellipse 65% 55% at 18% 78%, rgba(232, 122, 36, 0.14), transparent 58%),
    linear-gradient(100deg, rgba(9, 18, 27, 0.94) 0%, rgba(14, 26, 39, 0.82) 52%, rgba(9, 18, 27, 0.78) 100%);
  pointer-events: none;
}
.aurora-ribbon {
  position: absolute;
  left: -10%;
  right: -10%;
  top: -120px;
  height: 240px;
  background: radial-gradient(ellipse at 50% 60%, rgba(58, 209, 155, 0.22), rgba(58, 209, 155, 0) 68%);
  filter: blur(26px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(58, 209, 155, 0.36);
  background: rgba(58, 209, 155, 0.1);
  color: var(--aurora);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7.6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: var(--paper);
  text-shadow: 0 4px 0 var(--plow-orange), 0 10px 28px rgba(0, 0, 0, 0.55);
}
.hero-tagline {
  margin: 18px 0 16px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
}
.hero-tagline em {
  font-style: normal;
  color: var(--plow-amber);
}
.hero-lede {
  margin: 0 0 28px;
  max-width: 54ch;
  font-size: 1.04rem;
  color: #D2DCE8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  color: var(--muted);
}
.hero-meta a {
  color: var(--aurora);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Framed Northwoods Screenprint Poster in Hero */
.poster-frame {
  margin: 0;
}
.poster-mat {
  position: relative;
  padding: 12px;
  background: var(--paper);
  border-radius: 12px;
  border: 2px solid #4A3A28;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.14);
  transform: rotate(1.1deg);
  transition: transform 0.25s ease;
}
.poster-mat:hover {
  transform: rotate(0deg);
}
.poster-mat img {
  width: 100%;
  border-radius: 6px;
}
.poster-play {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px 9px 10px;
  border-radius: 999px;
  border: 2px solid var(--paper);
  background: rgba(14, 26, 39, 0.9);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.poster-play:hover {
  transform: scale(1.04);
  background: var(--plow-orange);
  color: var(--night);
  border-color: var(--night);
}
.poster-play-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--plow-amber);
  color: var(--night);
}
.poster-play-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.poster-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ------------------------------------------------------------------ Sections */
.section {
  padding: clamp(68px, 9vw, 108px) 0;
  border-bottom: 1px solid var(--pine-edge);
}
.section-head {
  max-width: 700px;
  margin-bottom: clamp(32px, 4.5vw, 48px);
}
.kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aurora);
}
.section h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: 0.015em;
  color: var(--paper);
}
.section-lede {
  margin: 0;
  font-size: 1.06rem;
  color: var(--muted);
}

/* ---------------------------------------------------------- Band 1: The Shift */
.shift-section {
  background: linear-gradient(180deg, var(--night) 0%, #122132 100%);
}
.shift-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: stretch;
}
.shift-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.shift-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.shift-specs div {
  padding: 13px 14px;
  background: var(--pine-ink);
  border: 1px solid var(--pine-edge);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shift-specs strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--plow-amber);
  line-height: 1.1;
}
.shift-specs span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.media-plate {
  margin: 0;
  background: var(--pine-ink);
  border: 1px solid var(--pine-edge);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}
.media-plate img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.plate-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 13px 18px;
  border-top: 1px solid var(--pine-edge);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.plate-caption span:first-child {
  color: var(--plow-amber);
  font-weight: 700;
}

/* Municipal paper Work Order */
.work-order {
  background:
    repeating-linear-gradient(0deg, rgba(72, 56, 38, 0.04) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, #F8F0DF 0%, var(--paper) 100%);
  color: var(--paper-ink);
  border: 2.5px solid #564330;
  border-radius: 12px;
  padding: 22px 24px 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}
.wo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px dashed rgba(42, 34, 26, 0.34);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}
.wo-stamp {
  padding: 2px 9px;
  border: 2px solid var(--stamp-red);
  border-radius: 4px;
  color: var(--stamp-red);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transform: rotate(-4deg);
}
.wo-list {
  margin: 0;
  display: grid;
  gap: 14px;
}
.wo-item {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(42, 34, 26, 0.16);
}
.wo-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.wo-item dt {
  font-weight: 800;
  font-size: 1rem;
  color: #141C2B;
  margin-bottom: 4px;
}
.wo-item dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.52;
  color: #383C45;
}

/* ----------------------------------------------------------- Band 2: Towns */
.towns-section {
  background: var(--night-deep);
}
.towns-board {
  display: grid;
  gap: 22px;
}
.town-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.town-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 15px 16px;
  text-align: left;
  background: var(--pine-ink);
  color: var(--text);
  border: 1.5px solid var(--pine-edge);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 0.16s, background-color 0.16s, transform 0.16s;
}
.town-tab:hover {
  border-color: rgba(244, 233, 210, 0.42);
  transform: translateY(-2px);
}
.town-tab.active {
  background: linear-gradient(180deg, #1E344D 0%, #162638 100%);
  border-color: var(--plow-amber);
  box-shadow: 0 0 0 1px var(--plow-amber), 0 10px 24px rgba(0, 0, 0, 0.35);
}
.town-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--aurora);
}
.town-tab.active .town-code {
  color: var(--plow-amber);
}
.town-tab strong {
  font-size: 1.02rem;
  line-height: 1.25;
}
.town-tab small {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.town-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: 28px;
  padding: 22px;
  background: var(--pine-ink);
  border: 1px solid var(--pine-edge);
  border-radius: 16px;
  align-items: center;
}
.town-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.town-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.town-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(9, 18, 27, 0.86);
  border: 1px solid rgba(255, 180, 58, 0.55);
  color: var(--plow-amber);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.town-info h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  color: var(--paper);
}
.town-info p {
  margin: 0 0 18px;
  color: #D2DCE8;
  font-size: 0.98rem;
}
.town-facts {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}
.town-facts strong {
  color: var(--paper);
}
.town-rng-note {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(58, 209, 155, 0.09);
  border: 1px solid rgba(58, 209, 155, 0.3);
  font-size: 0.88rem;
  color: #D9F7EA;
}
.town-rng-note span {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--aurora);
  margin-right: 4px;
}

/* ---------------------------------------------------------- Band 3: Garage */
.garage-section {
  background: linear-gradient(180deg, #122132 0%, var(--night) 100%);
}
.garage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4.5vw, 52px);
  align-items: center;
}
.gadget-rack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 22px;
}
.gadget-card {
  padding: 14px 16px;
  background: rgba(9, 18, 27, 0.65);
  border: 1px solid var(--pine-edge);
  border-radius: 10px;
}
.gadget-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(232, 122, 36, 0.16);
  color: var(--plow-amber);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}
.gadget-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--paper);
}
.gadget-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}
.upgrade-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.upgrade-strip span:first-child {
  color: var(--muted);
  margin-right: 4px;
}
.upgrade-strip span:not(:first-child) {
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--pine-ink);
  border: 1px solid var(--pine-edge);
  color: var(--paper);
}
.garage-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.garage-note {
  font-size: 0.86rem;
  color: var(--muted);
}
.garage-shot {
  margin: 0;
  background: var(--pine-ink);
  border: 1.5px solid var(--pine-edge);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.5);
}
.garage-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.garage-shot figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--pine-edge);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--plow-amber);
}

/* ------------------------------------------- Band 4: Signature Cab Radio */
.radio-section {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(232, 122, 36, 0.12), transparent 65%),
    var(--night-deep);
}
.radio-unit {
  max-width: 960px;
  margin-inline: auto;
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, #4B4E57 0%, #262930 50%, #191B20 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    0 26px 60px rgba(0, 0, 0, 0.62);
}
.radio-bezel {
  background: #14161A;
  border-radius: 14px;
  padding: 22px 24px 24px;
  border: 2px solid #090A0D;
}
.radio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #9FA6B3;
}
.radio-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.radio-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #55615C;
  box-shadow: 0 0 0 2px #090A0D;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.radio-unit.playing .radio-led {
  background: var(--aurora);
  box-shadow: 0 0 12px var(--aurora);
}
.radio-meters {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 16px;
}
.radio-meters i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: #3B4049;
  transition: height 0.15s ease, background-color 0.2s ease;
}
.radio-unit.playing .radio-meters i {
  background: var(--plow-amber);
  animation: eq 0.65s ease-in-out infinite alternate;
}
.radio-unit.playing .radio-meters i:nth-child(2) { animation-delay: 0.12s; }
.radio-unit.playing .radio-meters i:nth-child(3) { animation-delay: 0.26s; }
.radio-unit.playing .radio-meters i:nth-child(4) { animation-delay: 0.08s; }
.radio-unit.playing .radio-meters i:nth-child(5) { animation-delay: 0.2s; }
@keyframes eq {
  0% { height: 4px; }
  100% { height: 16px; }
}

.radio-display {
  padding: 20px 22px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 180, 58, 0.18), transparent 72%),
    linear-gradient(180deg, #1E1911 0%, #15120C 100%);
  border: 2px solid #3D3324;
  box-shadow: inset 0 4px 16px rgba(0, 0, 0, 0.68);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
  align-items: center;
}
.dial-scale {
  grid-column: 1 / -1;
}
.dial-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 200, 114, 0.72);
  margin-bottom: 6px;
}
.dial-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 180, 58, 0.35) 0 1px, transparent 1px 12px),
    rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 180, 58, 0.25);
}
.dial-needle {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 22%;
  width: 4px;
  border-radius: 3px;
  background: #FF6B4A;
  box-shadow: 0 0 12px #FF6B4A;
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.radio-freq-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}
.radio-freq {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--plow-amber);
  text-shadow: 0 0 14px rgba(255, 180, 58, 0.45);
}
.radio-station {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--paper);
}
.radio-tagline {
  margin: 6px 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #F6DCAA;
}
.radio-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #B4A894;
}

.radio-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.btn-tune {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 9px;
  border: 2px solid #FFB43A;
  background: linear-gradient(180deg, #FFB43A 0%, #E07A1F 100%);
  color: #16110A;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.14s ease, filter 0.14s ease;
}
.btn-tune:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.btn-tune svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn-tune .icon-stop { display: none; }
.radio-unit.playing .btn-tune .icon-play { display: none; }
.radio-unit.playing .btn-tune .icon-stop { display: block; }
.radio-status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #9A9385;
  text-align: right;
}

.radio-presets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.preset {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1.5px solid #353944;
  background: linear-gradient(180deg, #272B33 0%, #1C1F26 100%);
  color: #C7CFDC;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 0 #0B0D11;
  transition: border-color 0.15s, background-color 0.15s, transform 0.12s;
}
.preset:hover {
  border-color: #6B7282;
}
.preset b {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--plow-amber);
}
.preset span {
  font-size: 0.84rem;
  font-weight: 700;
}
.preset.active {
  border-color: var(--plow-amber);
  background: linear-gradient(180deg, #3A2C1A 0%, #261D12 100%);
  color: var(--paper);
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45), 0 0 14px rgba(255, 180, 58, 0.22);
}

/* ----------------------------------------------------- Band 5: Mini-Games */
.modes-section {
  background: var(--night);
}
.modes-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.mode-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--pine-ink);
  border: 1px solid var(--pine-edge);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.mode-card.mode-featured {
  grid-column: span 3;
}
.mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 180, 58, 0.46);
}
.mode-media {
  position: relative;
  overflow: hidden;
}
.mode-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.mode-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(9, 18, 27, 0.88);
  border: 1px solid rgba(244, 233, 210, 0.28);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.mode-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.mode-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--paper);
}
.mode-body p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}
.mode-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--plow-amber);
  text-decoration: none;
}
.mode-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ------------------------------------------- Band 6: Gazette Clipboard Join */
.join-section {
  background: linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  border-bottom: 0;
}
.clipboard {
  position: relative;
  max-width: 1020px;
  margin-inline: auto;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #7A5C3E 0%, #5B422B 100%);
  border: 2.5px solid #3A291A;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.56);
}
.clipboard-clasp {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  width: 148px;
  height: 30px;
  border-radius: 9px 9px 5px 5px;
  background: linear-gradient(180deg, #CED4DE 0%, #8C95A4 52%, #636B7A 100%);
  border: 2.5px solid #2A2F3A;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.42);
}
.clipboard-clasp::before,
.clipboard-clasp::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3E4554;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
.clipboard-clasp::before { left: 16px; }
.clipboard-clasp::after { right: 16px; }

.clipboard-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 10px;
  background:
    repeating-linear-gradient(0deg, rgba(84, 66, 44, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #FBF4E4 0%, var(--paper) 100%);
  color: var(--paper-ink);
  border: 1.5px solid #C9B794;
  align-items: center;
  overflow: hidden;
}
.gazette-wrap {
  position: relative;
}
.clipboard-art img {
  width: 100%;
  border-radius: 6px;
  border: 1.5px solid rgba(30, 36, 51, 0.22);
}
.gazette-masthead {
  position: absolute;
  left: 4.5%;
  top: 7.5%;
  width: 37%;
  height: 27%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  color: #1F2633;
}
.gazette-masthead strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.55rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: #1F2633;
}
.gazette-masthead span {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: clamp(0.46rem, 0.72vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8B3418;
}
.clipboard-caption {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #5C5246;
}
.paper-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stamp-red);
}
.clipboard-body h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: #161E2E;
}
.paper-lede {
  margin: 0 0 22px;
  font-size: 1rem;
  color: #363C47;
}
.field {
  display: flex;
  gap: 10px;
}
.field input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border-radius: 9px;
  border: 2px solid #4A3E31;
  background: #FFFDF8;
  color: #161E2E;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}
.field input::placeholder {
  color: #7D766A;
}
.trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.form-msg {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}
.form-msg.ok { color: #196B38; }
.form-msg.err { color: var(--stamp-red); }

.paper-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(42, 34, 26, 0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.paper-fine {
  margin: 0;
  font-size: 0.82rem;
  color: #5C5549;
}
.paper-play-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #A84D0C;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.roster-stamp {
  position: absolute;
  right: 22px;
  bottom: 18px;
  padding: 4px 12px;
  border: 3px solid var(--stamp-red);
  border-radius: 6px;
  color: var(--stamp-red);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  transform: rotate(-11deg) scale(1.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.clipboard.done .roster-stamp {
  opacity: 0.85;
  transform: rotate(-11deg) scale(1);
}

/* ------------------------------------------------------------------- Footer */
.foot {
  background: var(--night-deep);
  border-top: 1px solid var(--pine-edge);
  padding: 28px 0 42px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.foot-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}
.foot-brand strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--paper);
}
.foot-brand span {
  font-size: 0.86rem;
  color: var(--muted);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}
.foot nav a,
.linkish {
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.foot nav a:hover,
.linkish:hover {
  color: var(--paper);
}

/* ------------------------------------------------------------ Trailer Modal */
.trailer-dialog {
  width: min(980px, 94vw);
  padding: 0;
  border: 2px solid rgba(244, 233, 210, 0.3);
  border-radius: 14px;
  background: #09121B;
  color: var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.82);
}
.trailer-dialog::backdrop {
  background: rgba(5, 10, 16, 0.84);
  backdrop-filter: blur(6px);
}
.trailer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--pine-edge);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--plow-amber);
}
.trailer-close {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(244, 233, 210, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.trailer-close:hover {
  background: rgba(255, 255, 255, 0.18);
}
.trailer-box video {
  width: 100%;
  max-height: 78vh;
  background: #000;
}

/* --------------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid,
  .shift-stage,
  .town-stage,
  .garage-grid,
  .clipboard-inner {
    grid-template-columns: 1fr;
  }
  .town-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .radio-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .modes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mode-card,
  .mode-card.mode-featured {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .wrap { width: min(1160px, 100% - 28px); }
  .brand-sub { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero-actions .btn { width: 100%; }
  .poster-mat { transform: none; }
  .town-tabs,
  .gadget-rack,
  .modes-grid {
    grid-template-columns: 1fr;
  }
  .radio-display {
    grid-template-columns: 1fr;
  }
  .radio-controls {
    align-items: flex-start;
  }
  .radio-status {
    text-align: left;
  }
  .radio-presets,
  .shift-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field {
    flex-direction: column;
  }
  .field .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .poster-mat,
  .btn,
  .dial-needle,
  .mode-card,
  .roster-stamp {
    transition: none;
  }
  .radio-unit.playing .radio-meters i {
    animation: none;
    height: 11px;
  }
}
