:root {
  --bg: #050404;
  --text: #e4d5bf;
  --muted: rgba(228, 213, 191, 0.68);
  --line: rgba(228, 213, 191, 0.14);

}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 50% 18%, #1b120d 0%, #090707 34%, #020202 100%);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
.hero-shell { min-height: 100vh; display: grid; place-items: center; }

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.04) saturate(0.92) brightness(0.86);
  transform: scale(1.015);
}

.hero-background-soften {
  position: absolute;
  inset: -2%;
  z-index: 1;
  pointer-events: none;
  background: url("assets/hero-darkfabrik-background-soft.webp") center center / cover no-repeat;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.78) 34%, rgba(0,0,0,0.16) 58%, rgba(0,0,0,0) 72%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.78) 34%, rgba(0,0,0,0.16) 58%, rgba(0,0,0,0) 72%);
  opacity: 0.45;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 22%, rgba(0, 0, 0, 0.16) 54%, rgba(0, 0, 0, 0.54) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.3));
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 52%, transparent 18%, rgba(0, 0, 0, 0.16) 55%, rgba(0, 0, 0, 0.58) 100%);
}

.hero-noise {
  position: absolute;
  inset: -10%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22) 0 0.7px, transparent 1px),
    radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.14) 0 0.7px, transparent 1px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.1) 0 0.7px, transparent 1px);
  background-size: 14px 14px, 19px 19px, 23px 23px;
  animation: grainDrift 16s linear infinite;
}


.warning-light {
  position: absolute;
  left: 74%;
  top: 17.6%;
  z-index: 6;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 90, 55, 0.95);
  box-shadow: 0 0 10px rgba(255, 90, 55, 0.65);
  animation: lightBlink 3.8s linear infinite;
}

.warning-light__glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 105, 60, 0.32) 0%, rgba(255, 90, 55, 0.12) 35%, transparent 70%);
}

.corner-ribbon-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  overflow: hidden;
  z-index: 7;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  top: 32px;
  left: -52px;
  width: 200px;
  padding: 9px 0;
  background: #b8001a;
  text-align: center;
  transform: rotate(-45deg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: auto;
}

.hero-copy h1 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.audio-toggle {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(3.75rem, 8vw, 5.5rem);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.4rem;
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(228, 213, 191, 0.16);
  background: linear-gradient(180deg, rgba(12, 10, 10, 0.7), rgba(10, 8, 8, 0.34));
  color: rgba(228, 213, 191, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.audio-toggle:hover {
  border-color: rgba(228, 213, 191, 0.3);
  color: rgba(241, 229, 210, 0.92);
  transform: translateY(-1px);
}

.audio-toggle:focus-visible {
  outline: 2px solid rgba(241, 229, 210, 0.7);
  outline-offset: 2px;
}

.audio-toggle[aria-pressed="true"] {
  border-color: rgba(255, 108, 74, 0.34);
  color: rgba(255, 225, 210, 0.96);
  background: linear-gradient(180deg, rgba(22, 12, 10, 0.8), rgba(16, 8, 8, 0.42));
}

.audio-toggle__label { opacity: 0.74; }
.audio-toggle__state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  padding-left: 0.1rem;
  font-weight: 700;
  color: rgba(241, 229, 210, 0.98);
}

.hero-footer {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(0.75rem, 2vw, 1.4rem);
  z-index: 7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(228, 213, 191, 0.54);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.hero-footer__mark { font-weight: 700; color: rgba(228, 213, 191, 0.74); }

@keyframes lightBlink {
  0%, 18%, 22%, 100% { opacity: 0.18; transform: scale(0.92); }
  20% { opacity: 0.96; transform: scale(1); }
}
@keyframes grainDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(4%, 2%, 0); }
}

@media (max-width: 900px) {
  .audio-toggle {
    right: auto;
    left: clamp(1rem, 3vw, 2rem);
    bottom: clamp(4.9rem, 9vw, 6rem);
  }
  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    letter-spacing: 0.12em;
  }
  .warning-light { left: 74.1%; top: 18.5%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-noise,
  .warning-light {
    animation: none !important;
  }

  .audio-toggle {
    transition: none;
  }
}
