/* KILLABOMB — Home HQ refinements */

/* Ambient layers */

.ambient-scanlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.04) 3px,
    rgba(255, 255, 255, 0.04) 4px
  );
  animation: hq-scanline-drift 12s linear infinite;
}

.ambient-dust {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(184, 24, 24, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 42%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 72%, rgba(184, 24, 24, 0.1) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 84%, rgba(255, 255, 255, 0.06) 0 1px, transparent 2px);
  background-size: 280px 280px, 320px 320px, 260px 260px, 300px 300px;
  animation: hq-dust-drift 48s linear infinite;
}

.ambient-red-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 50% 18%, rgba(139, 0, 0, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 12% 88%, rgba(100, 0, 0, 0.08) 0%, transparent 70%);
}

.noise-overlay {
  animation: hq-noise-flicker 8s steps(4) infinite;
}

@keyframes hq-scanline-drift {
  from { transform: translateY(0); }
  to { transform: translateY(24px); }
}

@keyframes hq-dust-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-40px, -28px, 0); }
}

@keyframes hq-noise-flicker {
  0%, 100% { opacity: 0.035; }
  50% { opacity: 0.05; }
}

/* Header glass — also in style.css site-wide; home-hq duplicates for homepage bundle */

.hero--home {
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  padding-top: var(--space-md);
  padding-bottom: var(--space-lg);
  position: relative;
}

.hero-waveform {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: min(920px, 120%);
  height: 80px;
  transform: translateX(-50%);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.hero-waveform path {
  stroke: var(--blood-red);
  stroke-width: 1;
  fill: none;
  animation: hq-wave-pulse 6s ease-in-out infinite;
}

.hero-waveform path:nth-child(2) {
  stroke: rgba(255, 255, 255, 0.15);
  animation-delay: -2s;
}

@keyframes hq-wave-pulse {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 0.7; transform: translateY(-3px); }
}

.hero--home .hero-inner {
  max-width: 920px;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(
      135deg,
      rgba(18, 16, 16, 0.84),
      rgba(30, 18, 18, 0.74),
      rgba(10, 10, 10, 0.8)
    );
  border: 1px solid rgba(150, 20, 20, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 80px rgba(100, 0, 0, 0.05);
  overflow: visible;
}

.hero--home .hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 2px,
      rgba(0, 0, 0, 0.35) 2px,
      rgba(0, 0, 0, 0.35) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.02) 3px,
      rgba(255, 255, 255, 0.02) 4px
    );
}

.hero--home .hero-inner > * {
  position: relative;
  z-index: 1;
}

.hero-graffiti {
  margin-bottom: clamp(1.35rem, 3.2vw, 2.15rem);
  position: relative;
  padding: 0.55em 0.65em 0.7em;
}

.hero-graffiti::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(360px, 78%);
  height: min(140px, 55%);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(70, 8, 8, 0.12) 0%, transparent 74%);
  filter: blur(32px);
  pointer-events: none;
  z-index: -1;
}

.hero-graffiti-title {
  font-family: var(--font-revolution);
  font-size: clamp(2.6rem, 7.6vw, 7.1rem);
  font-weight: normal;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #eeeae4;
  -webkit-text-fill-color: #eeeae4;
  white-space: nowrap;
  max-width: 95%;
  margin-bottom: clamp(0.85rem, 2.2vw, 1.35rem);
  pointer-events: none;
  text-shadow:
    3px 3px 0 rgba(0, 0, 0, 0.95),
    0 0 12px rgba(110, 0, 0, 0.25);
  background: none;
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  filter: none;
}

.hero-graffiti-title:hover,
.hero-graffiti-title:focus,
.hero-graffiti-title:focus-visible {
  color: #eeeae4;
  -webkit-text-fill-color: #eeeae4;
  transform: none;
  animation: none;
  filter: none;
  text-shadow:
    3px 3px 0 rgba(0, 0, 0, 0.95),
    0 0 12px rgba(110, 0, 0, 0.25);
}

.hero-graffiti-title::before,
.hero-graffiti-title::after {
  content: none !important;
  display: none !important;
}

.hero-intro {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 0 18px rgba(0, 0, 0, 0.45);
}

.hero-statement__role {
  color: #b8b2aa;
}

.hero-statement__line {
  color: #8f8982;
}

.hero-graffiti-tagline {
  color: #ff3a3a;
}

/* Homepage colour hierarchy */

.page-home {
  --hq-heading: #eeeae4;
  --hq-body: #b8b2aa;
  --hq-secondary: #8f8982;
  --hq-accent: #d62424;
  --hq-accent-bright: #ff3a3a;
  --hq-border-red: rgba(160, 20, 20, 0.45);
  --hq-card-bg: rgba(10, 10, 10, 0.58);
  --hq-card-border: rgba(255, 255, 255, 0.12);
}

.page-home .text-accent {
  color: var(--hq-accent-bright);
}

.page-home .section-header h2,
.page-home .glitch-heading,
.page-home .hq-cta__panel .section-title,
.page-home .discography-entry__title,
.page-home .history-card__title {
  color: var(--hq-heading);
}

.page-home .section-header .text-muted,
.page-home .hq-cta__panel p,
.page-home .history-card p:not(.history-card__year),
.page-home .highlight-card__label,
.page-home .stat-card__label,
.page-home .discography-entry__label {
  color: var(--hq-secondary);
}

.page-home .hq-history__intro {
  color: var(--hq-body);
}

.page-home .panel {
  background: var(--hq-card-bg);
  border: 1px solid var(--hq-card-border);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.page-home .panel:hover,
.page-home a.panel:hover,
.page-home a.panel:focus-visible {
  background: rgba(20, 10, 10, 0.76);
  border-color: rgba(210, 30, 30, 0.65);
  box-shadow: 0 0 24px rgba(150, 0, 0, 0.18);
  transform: translateY(-3px);
}

.page-home .section-header {
  background: rgba(10, 10, 10, 0.52);
  border: 1px solid var(--hq-card-border);
  border-bottom: 1px solid var(--hq-border-red);
}

.page-home .history-card__year,
.page-home .stat-card__value,
.page-home .discography-entry__year,
.page-home .highlight-card__value,
.page-home .discography-entry__code {
  color: var(--hq-accent-bright);
}

.page-home .stat-card__value--text {
  color: var(--hq-accent);
}

.page-home .btn {
  border-color: var(--hq-border-red);
}

.page-home .btn:hover,
.page-home .btn:focus-visible {
  border-color: var(--hq-accent-bright);
  color: var(--hq-heading);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.page-home .btn-primary {
  background: var(--dark-red);
  border-color: var(--hq-accent);
  color: var(--hq-heading);
  text-decoration: none;
}

.page-home .btn-primary:hover,
.page-home .btn-primary:focus-visible {
  background: var(--hq-accent);
  border-color: var(--hq-accent-bright);
  color: #fff;
  text-decoration: none;
}

.page-home .hq-cta__label {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hq-accent-bright);
}

.page-home .hq-cta__panel .section-title {
  font-family: var(--font-display);
  color: var(--hq-heading);
}

.page-home .hq-cta__rule {
  width: min(120px, 40%);
  height: 2px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(90deg, transparent, var(--hq-accent), transparent);
}

.page-home .home-section-cta .btn {
  color: var(--hq-heading);
}

.page-home .site-nav a {
  color: #eeeae4;
  text-decoration: none;
}

.page-home .site-nav a:hover,
.page-home .site-nav a:focus-visible {
  color: #ff3333;
}

.page-home .site-nav a[aria-current="page"],
.page-home .site-nav a.active {
  color: #ff3333;
}

.hero-statement--home {
  max-width: 640px;
  margin: 0 auto clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero-statement__role {
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.hero-statement__line {
  margin-top: 0;
  line-height: 1.65;
}

.hero--home .btn-group {
  justify-content: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.hero--home .btn-primary {
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(184, 24, 24, 0.28);
}

.hero--home .btn:not(.btn-primary) {
  background: transparent;
  border-color: rgba(184, 24, 24, 0.45);
}

.hero--home .btn:not(.btn-primary):hover,
.hero--home .btn:not(.btn-primary):focus-visible {
  background: rgba(184, 24, 24, 0.08);
  border-color: var(--blood-red-bright);
  box-shadow: 0 0 20px rgba(184, 24, 24, 0.22);
}

/* Scroll indicator */

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--muted-grey);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  animation: hq-scroll-fade 2.8s ease-in-out infinite;
}

.scroll-indicator__line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--blood-red-bright), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-indicator__line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 50%;
  background: var(--blood-red-bright);
  box-shadow: 0 0 8px rgba(255, 51, 51, 0.6);
  animation: hq-scroll-line 2.2s ease-in-out infinite;
}

@keyframes hq-scroll-fade {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes hq-scroll-line {
  0% { top: -60%; }
  100% { top: 120%; }
}

/* Stats grid */

.hq-stats {
  padding: var(--space-md) 0 var(--space-lg);
}

.hq-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.stat-card {
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 24, 24, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(184, 24, 24, 0.14);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  color: #ff3a3a;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin: 0;
}

.stat-card__value--text {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  letter-spacing: 0.1em;
  max-width: 12rem;
  text-wrap: balance;
}

.stat-card__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-grey);
  line-height: 1.35;
}

.stat-card--website .stat-card__url {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--dirty-white);
}

.stat-card--website .stat-card__icon {
  width: 22px;
  height: 22px;
  color: var(--blood-red-bright);
  margin-bottom: 0.15rem;
}

.stat-card--website .btn {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
}

/* Discography rail */

.discography-rail {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: var(--space-sm) var(--space-xs) var(--space-md);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.discography-rail::-webkit-scrollbar {
  height: 6px;
}

.discography-rail::-webkit-scrollbar-thumb {
  background: rgba(184, 24, 24, 0.45);
  border-radius: 3px;
}

.discography-entry {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
  padding: var(--space-md);
  position: relative;
}

.discography-entry__year {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--blood-red-bright);
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
}

.discography-entry__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.discography-entry__label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted-grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.discography-entry__code {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(184, 24, 24, 0.55);
  text-transform: uppercase;
}

/* History */

.hq-history__intro {
  max-width: 720px;
  margin: 0 auto var(--space-md);
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #b8b2aa;
}

.hq-history__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.history-card {
  padding: var(--space-md);
}

.history-card__year {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blood-red-bright);
  letter-spacing: 0.1em;
  margin: 0 0 0.35rem;
}

.history-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.history-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-grey);
}

/* Live highlights */

.hq-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.hq-card-grid--live {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight-card {
  padding: var(--space-md);
  text-align: center;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 24, 24, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(184, 24, 24, 0.14);
}

.highlight-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff3a3a;
  margin: 0;
}

.highlight-card__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-grey);
}

/* Approach */

.hq-approach__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
}

.approach-card {
  padding: var(--space-md);
  min-height: 160px;
}

.approach-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  color: var(--dirty-white);
}

.approach-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-grey);
}

/* Final CTA */

.hq-cta {
  padding: var(--space-lg) 0;
}

.hq-cta__panel {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
}

.hq-cta__panel::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse, rgba(139, 0, 0, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.hq-cta__panel .section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #eeeae4;
}

.hq-cta__panel p {
  max-width: 560px;
  margin: 0 auto var(--space-md);
  line-height: 1.7;
  color: var(--muted-grey);
}

.hq-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* Responsive */

@media (max-width: 1024px) {
  .hq-stats__grid,
  .hq-history__grid,
  .hq-card-grid,
  .hq-approach__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hq-stats__grid,
  .hq-history__grid,
  .hq-card-grid,
  .hq-card-grid--live,
  .hq-approach__grid {
    grid-template-columns: 1fr;
  }

  .hero--home .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .hero--home .btn-group .btn {
    width: 100%;
  }

  .hq-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .hq-cta__actions .btn {
    width: 100%;
  }

  .hero-graffiti-title {
    white-space: nowrap;
    font-size: clamp(2.2rem, 9.5vw, 3.3rem);
    letter-spacing: 0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-scanlines,
  .ambient-dust,
  .noise-overlay,
  .hero-waveform path,
  .scroll-indicator,
  .scroll-indicator__line::after {
    animation: none !important;
  }
}
