/* ============================================================
   BERGHAIN GARTEN — PETITION
   Raw, brutalist, monochrome. Berlin techno aesthetic.
   ============================================================ */

:root {
  --bg: #050505;
  --bg2: #0c0c0c;
  --fg: #ededed;
  --muted: #6e6e6e;
  --line: #1c1c1c;
  --accent: #d6001c;     /* a single brutal red */
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

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

/* film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(5,5,5,0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  mix-blend-mode: difference;
}
.topbar__mark { font-weight: 700; }
.topbar__nav { display: flex; gap: 22px; }
.topbar__nav a { opacity: 0.7; transition: opacity .2s; }
.topbar__nav a:hover { opacity: 1; }
.topbar__status { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 22px 60px;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?q=80&w=2000&auto=format&fit=crop")
    center/cover no-repeat;
  filter: grayscale(1) contrast(1.15) brightness(0.5);
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.25) 35%, rgba(5,5,5,0.95) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; }

.kicker {
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.hero__title {
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 26px;
}
.hero__title em { font-style: normal; color: var(--accent); }
.strike { position: relative; }
.strike::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  top: 52%;
  height: 0.09em;
  background: var(--accent);
  transform: rotate(-2deg);
}
.hero__sub {
  max-width: 620px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #c9c9c9;
  margin: 0 0 36px;
}
.hero__cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 22px; right: 22px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  animation: bob 2s infinite;
}
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background .15s, color .15s, transform .05s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: #fff; border-color: #fff; color: #000; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- counter ---------- */
.counter { display: flex; flex-direction: column; line-height: 1; }
.counter__num {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.counter__label { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); margin-top: 6px; }
.counter--big .counter__num { font-size: clamp(3rem, 12vw, 6rem); color: var(--accent); }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--accent);
  color: #fff;
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 0;
  animation: scroll 22s linear infinite;
}
.marquee__track span { padding-right: 1rem; }
@keyframes scroll { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- generic block ---------- */
.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 22px;
  border-bottom: 1px solid var(--line);
}
.block--dark { max-width: none; background: var(--bg2); border-bottom: 1px solid var(--line); }
.block--dark .block__head, .block--dark .demands { max-width: var(--max); margin-left: auto; margin-right: auto; }
.block__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.block__head .num { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: 0.1em; }
.block__head h2 {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}
.block__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.block__grid p { margin: 0; color: #bdbdbd; }
.block__grid .lead { font-size: 1.3rem; color: var(--fg); line-height: 1.35; }

/* ---------- photo strip ---------- */
.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}
.photos__cell { height: 42vh; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.1) brightness(0.7); transition: filter .4s, transform .4s; }
.photos__cell:hover { filter: grayscale(0) contrast(1.05) brightness(0.95); transform: scale(1.01); }
.photos__cell--a { background-image: url("https://images.unsplash.com/photo-1571266028243-e4733b0f0bb0?q=80&w=1400&auto=format&fit=crop"); }
.photos__cell--b { background-image: url("https://images.unsplash.com/photo-1493676304819-0d7a8d026dcf?q=80&w=1400&auto=format&fit=crop"); }
.photos__cell--c { background-image: url("https://images.unsplash.com/photo-1429962714451-bb934ecdc4ec?q=80&w=1400&auto=format&fit=crop"); }

/* ---------- demands ---------- */
.demands { list-style: none; margin: 0; padding: 0; }
.demands li {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.demands li:last-child { border-bottom: none; }
.demands__n {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 800;
  color: var(--accent);
  min-width: 1.4em;
}
.demands h3 { margin: 0 0 6px; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.01em; }
.demands p { margin: 0; color: var(--muted); }

/* ---------- sign ---------- */
.block--sign { max-width: none; background: var(--bg); }
.block--sign .block__head { max-width: var(--max); margin: 0 auto 40px; }
.sign {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.sign__big { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; text-transform: uppercase; margin: 0 0 18px; line-height: 1; }
.sign__left p { color: #bdbdbd; }
.sign__form { display: flex; flex-direction: column; gap: 18px; }
.sign__form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.sign__form input[type="text"],
.sign__form input[type="email"] {
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 15px 16px;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color .2s;
}
.sign__form input:focus { outline: none; border-color: var(--accent); }
.check { flex-direction: row !important; align-items: flex-start; gap: 12px !important; text-transform: none !important; letter-spacing: normal !important; color: #bdbdbd !important; font-size: 14px !important; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.sign__msg { font-size: 14px; min-height: 1.2em; margin: 4px 0 0; letter-spacing: 0.02em; }
.sign__msg.ok { color: #6bd968; }
.sign__msg.err { color: var(--accent); }

/* ---------- wall ---------- */
.wall { max-width: var(--max); margin: 0 auto; padding: 90px 22px; }
.wall__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wall__list li {
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #cfcfcf;
}
.wall__list li .wc { color: var(--muted); }
.wall__empty { color: var(--muted) !important; border: none !important; padding-left: 0 !important; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 22px 50px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
}
.footer__big {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 0.85;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.03em;
}
.footer__meta { color: var(--muted); font-size: 13px; align-self: flex-end; max-width: 360px; }
.footer__meta p { margin: 0 0 6px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .topbar__nav { display: none; }
  .block__grid { grid-template-columns: 1fr; gap: 22px; }
  .sign { grid-template-columns: 1fr; gap: 40px; }
  .photos { grid-template-columns: 1fr; }
  .photos__cell { height: 38vh; }
}
