/* ============================================================
   THE NIGHT IS OURS — 10.10. / Salt Pforzheim
   ============================================================ */

@font-face {
  font-family: "Hanson";
  src: url("../fonts/hanson-bold.woff2") format("woff2"),
       url("../fonts/hanson-bold.woff")  format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --ink: #fff;
  --violet: #a020c8;
  --violet-hot: #d36bff;
  --muted: rgba(255, 255, 255, .56);
  --line: rgba(255, 255, 255, .14);

  --display: "Hanson", "Arial Black", Impact, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1280px;
  --gut: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

::selection { background: var(--violet); color: #fff; }

:focus-visible {
  outline: 2px solid var(--violet-hot);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: #000; padding: 12px 18px; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Hintergrund ---------- */

#bg, .bg-fallback {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  pointer-events: none;
}
#bg { display: block; }
.bg-fallback {
  background: #000 url("../img/poster.jpg") center / cover no-repeat;
  opacity: 0;
  transition: opacity .6s linear;
}
.no-webgl .bg-fallback { opacity: 1; }
.no-webgl #bg { display: none; }

.grain {
  position: fixed; inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(3) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2%, 1.5%); }
  66%  { transform: translate(1.5%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Typo-Bausteine ---------- */

.kicker {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.slash { color: var(--violet-hot); }

.h2 {
  font-family: var(--display);
  font-size: clamp(38px, 6.4vw, 88px);
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.h2--display { font-size: clamp(60px, 12vw, 160px); }

.lead {
  font-size: clamp(16px, 1.6vw, 20px);
  max-width: 58ch;
  color: rgba(255, 255, 255, .86);
}
.muted { color: var(--muted); max-width: 54ch; margin-top: 18px; }

.link {
  display: inline-block;
  margin-top: 18px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--violet);
  padding-bottom: 2px;
  transition: border-color .25s, color .25s;
}
.link:hover { color: var(--violet-hot); border-color: var(--violet-hot); }

.btn {
  --pad: 16px 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--pad);
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 999px;
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s;
}
.btn:hover {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -12px var(--violet-hot);
}
.btn--sm { --pad: 11px 20px; font-size: 10px; }
.btn--lg { --pad: 20px 40px; }
.btn--ghost { background: transparent; color: #fff; border-color: var(--line); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; box-shadow: none; }

/* ---------- Header ---------- */

.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gut);
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-head.is-stuck {
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: .06em;
  text-decoration: none;
}
.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav a {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .25s;
}
.nav a:hover { color: #fff; }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px var(--gut) clamp(40px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  z-index: -2;
  transform: scale(1.04);
  animation: drift 24s var(--ease) infinite alternate;
}
@keyframes drift { to { transform: scale(1.12) translateY(-1.5%); } }
.hero__shade {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 22%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, .1) 70%),
    radial-gradient(ellipse at 50% 40%, rgba(90, 40, 255, .12), transparent 60%);
}

.hero__inner { width: 100%; }

/* Headline fills the full width; main.js fine-tunes the size for any text. */
.hero__title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: calc((100vw - 2 * var(--gut)) / 7.4);
  line-height: .84;
  letter-spacing: -.02em;
  margin: 0;
  text-shadow: 0 6px 60px rgba(40, 20, 160, .45);
}
.hero__title .line { display: block; white-space: nowrap; }
@media (max-width: 640px) {
  .hero__title { font-size: calc((100vw - 2 * var(--gut)) / 4.6); line-height: .88; }
  .hero__title .line { white-space: normal; }
}
.hero__title .line:nth-child(2) { color: transparent; -webkit-text-stroke: .02em #fff; }
@supports not (-webkit-text-stroke: 1px #fff) {
  .hero__title .line:nth-child(2) { color: #fff; }
}

.hero__foot {
  margin-top: clamp(28px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  border-top: 1px solid var(--line);
  padding-top: clamp(22px, 3vw, 32px);
}
.hero__copy { max-width: 560px; }
.hero__copy .kicker { margin-bottom: 10px; }
.hero__copy .lead { font-size: clamp(15px, 1.4vw, 18px); }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 12vw, 170px) var(--gut); position: relative; }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.section + .section { border-top: 1px solid var(--line); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 3.4vw, 48px);
}
.fact { border-top: 1px solid var(--line); padding-top: 18px; }
.fact dt {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--violet-hot);
  margin-bottom: 10px;
}
.fact dd { font-size: clamp(17px, 1.8vw, 21px); line-height: 1.35; }

.about { display: grid; gap: clamp(50px, 7vw, 100px); }
.about .lead { max-width: 52ch; }
.about .facts { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- Footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 8vw, 100px) var(--gut) 40px;
  background: rgba(0, 0, 0, .6);
}
.foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(30px, 4vw, 50px);
}
.foot__mark {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: .9;
  text-transform: uppercase;
}
.foot__col p { color: var(--muted); line-height: 1.7; }
.foot__col .link { margin-top: 0; }
.copy {
  margin-top: clamp(40px, 6vw, 70px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .grain, .hero__bg { animation: none; }
  .btn:hover { transform: none; }
}
