/* House of SoCo . Soco at Kaap: Glitch */
:root {
  --bg: #070907;
  --cream: #f0e9d8;
  --green: #39ff88;
  --green-glow: rgba(57, 255, 136, 0.45);
  --green-line: rgba(57, 255, 136, 0.25);
  --on-green: #06130b;
  --magenta: #ff2d9d;
  --cyan: #00e6ff;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2 { margin: 0; font-weight: inherit; font-size: inherit; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cream); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  padding: 10px 16px; background: var(--green); color: var(--on-green);
  font-weight: 500; text-decoration: none; border-radius: 4px;
}
.skip:focus { top: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 9vw, 72px) 20px clamp(64px, 10vw, 88px);
  display: flex; justify-content: center; text-align: center;
}
.rain {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(57, 255, 136, 0.7));
  /* rustig achter de content: midden vervaagt zodat er nooit regen over tekst valt */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 12%, transparent 30%, transparent 70%, #000 88%, #000 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 12%, transparent 30%, transparent 70%, #000 88%, #000 100%);
}
.hero__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 820px;
}
.hero__title { display: flex; flex-direction: column; align-items: center; width: 100%; }

.status {
  font-size: 13px; letter-spacing: 3px; color: var(--green);
  line-height: 1.4;
}
.logo {
  width: clamp(220px, 40vw, 420px);
  margin-top: 28px;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
}
.presents {
  font-size: 15px; letter-spacing: 7px; margin: 10px 0 0 7px; opacity: 0.92; line-height: 1.4;
}
.wordmark {
  position: relative;
  display: block;
  width: clamp(300px, 80vw, 760px);
  max-width: calc(100% + 24px);
  margin-top: 2px;
}
.wordmark__img { width: 100%; mix-blend-mode: screen; }
/* Twee gekleurde kopieën die alleen tijdens een storing verschijnen.
   Woordmerk is groen/wit op zwart: hue-rotate maakt van groen magenta of cyaan, screen laat zwart wegvallen. */
.wordmark__ghost {
  position: absolute; inset: 0;
  background: url(/assets/img/glitch-wordmark-konijn.png) center / 100% 100% no-repeat;
  background-image: url(/assets/img/glitch-wordmark-konijn.webp);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.wordmark__ghost--m { filter: hue-rotate(180deg) saturate(1.6); }
.wordmark__ghost--c { filter: hue-rotate(42deg) saturate(1.6); }

.wordmark.is-glitching .wordmark__img     { animation: wm-shake .62s steps(1, end) 1; }
.wordmark.is-glitching .wordmark__ghost--m { animation: wm-ghost-m .62s steps(1, end) 1; }
.wordmark.is-glitching .wordmark__ghost--c { animation: wm-ghost-c .62s steps(1, end) 1; }

@keyframes wm-shake {
  0%   { transform: translate(0, 0); clip-path: none; }
  10%  { transform: translate(-4px, 0); clip-path: inset(0 0 55% 0); }
  20%  { transform: translate(5px, 1px); clip-path: inset(30% 0 20% 0); }
  30%  { transform: translate(0, 0); clip-path: none; }
  45%  { transform: translate(-2px, 0) skewX(-6deg); }
  55%  { transform: translate(3px, 0); clip-path: inset(60% 0 0 0); }
  65%  { transform: none; clip-path: none; }
  80%  { transform: translate(-1px, 0); }
  100% { transform: none; clip-path: none; }
}
@keyframes wm-ghost-m {
  0%   { opacity: .85; transform: translate(-7px, 0);  clip-path: inset(8% 0 62% 0); }
  15%  { opacity: .85; transform: translate(10px, 0);  clip-path: inset(48% 0 30% 0); }
  30%  { opacity: .7;  transform: translate(-4px, 0);  clip-path: inset(70% 0 5% 0); }
  45%  { opacity: 0; }
  55%  { opacity: .8;  transform: translate(-12px, 0); clip-path: inset(22% 0 50% 0); }
  70%  { opacity: .6;  transform: translate(3px, 0);   clip-path: inset(0 0 80% 0); }
  85%  { opacity: 0; }
  100% { opacity: 0; transform: none; clip-path: none; }
}
@keyframes wm-ghost-c {
  0%   { opacity: .85; transform: translate(7px, 0);   clip-path: inset(40% 0 35% 0); }
  15%  { opacity: .7;  transform: translate(-9px, 0);  clip-path: inset(10% 0 70% 0); }
  30%  { opacity: 0; }
  40%  { opacity: .8;  transform: translate(11px, 0);  clip-path: inset(58% 0 15% 0); }
  60%  { opacity: .6;  transform: translate(-3px, 0);  clip-path: inset(30% 0 52% 0); }
  80%  { opacity: 0; }
  100% { opacity: 0; transform: none; clip-path: none; }
}
.tagline { font-size: clamp(14px, 2.2vw, 18px); letter-spacing: 3px; opacity: 0.95; }
.date {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(34px, 5vw, 48px); letter-spacing: 5px; line-height: 1.1;
  margin-top: 34px;
}
.where { font-size: clamp(13px, 2vw, 17px); letter-spacing: 4px; margin-top: 8px; line-height: 1.5; }
.price { font-size: 13px; margin-top: 12px; opacity: 0.75; }

/* ---------- CTA ---------- */
.cta {
  display: inline-block;
  margin-top: 40px;
  padding: 22px clamp(40px, 8vw, 60px);
  background: var(--green);
  color: var(--on-green);
  text-decoration: none;
  font-family: var(--head); font-weight: 700;
  font-size: clamp(26px, 4vw, 32px); letter-spacing: 5px; line-height: 1;
  border-radius: 4px;
  box-shadow: 0 0 34px var(--green-glow);
  transition: box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}
.cta:hover, .cta:focus-visible {
  color: var(--on-green);
  background: #5cff9f;
  box-shadow: 0 0 48px rgba(57, 255, 136, 0.7), -3px 0 0 var(--magenta), 3px 0 0 var(--cyan);
  transform: translateY(-1px);
}
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline-color: var(--cream); }

/* ---------- Secties ---------- */
.section {
  padding: 64px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border-top: 1px solid var(--green-line);
}
.intro__text {
  max-width: 680px; text-align: left;
  display: flex; flex-direction: column; gap: 20px;
}
.hl { font-style: normal; color: var(--green); }

.lineup { padding: 56px 24px; }
.kicker { font-size: 13px; letter-spacing: 4px; color: var(--green); line-height: 1.4; }
.lineup__names {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(30px, 5vw, 52px); letter-spacing: 4px; line-height: 1.15;
  margin-top: 16px;
}

.tickets { padding: 64px 24px 72px; scroll-margin-top: 8px; }
.tickets__title {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(28px, 4vw, 38px); letter-spacing: 4px; line-height: 1.15;
}
.tickets__where { font-size: 15px; letter-spacing: 2px; margin-top: 12px; line-height: 1.6; }
.tickets__where span, .tickets__title span, .lineup__names span { white-space: nowrap; }
.tickets .cta { margin-top: 32px; }
.ticket-note { font-size: 12px; margin-top: 12px; opacity: 0.7; }

.footer {
  padding: 32px 24px 40px; text-align: center;
  border-top: 1px solid var(--green-line);
  font-size: 12px; letter-spacing: 3px;
}
.footer p { opacity: 0.7; }

/* ---------- Sticky CTA (alleen mobiel) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 60%, rgba(7, 9, 7, 0));
  transform: translateY(110%);
  transition: transform .25s ease;
  display: none;
}
.sticky-cta.is-visible { transform: none; }
.cta--sticky {
  display: flex; justify-content: center; align-items: baseline; gap: 14px;
  width: 100%; margin: 0; padding: 18px 20px;
  font-size: 26px;
}
.cta--sticky { font-size: 24px; letter-spacing: 4px; }
.cta--sticky span { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0; white-space: nowrap; }
@media (max-width: 600px) {
  /* smaller scherm: regen alleen in een smalle rand, tekst krijgt meer lucht */
  .rain {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 5%, transparent 11%, transparent 89%, #000 95%, #000 100%);
            mask-image: linear-gradient(90deg, #000 0%, #000 5%, transparent 11%, transparent 89%, #000 95%, #000 100%);
  }
  .hero { padding-left: 44px; padding-right: 44px; }
  .status { font-size: 12px; letter-spacing: 1.5px; }
  .tagline { letter-spacing: 1px; margin-top: 6px; }
  .where { letter-spacing: 1px; }
  .wordmark { max-width: calc(100% + 56px); }
  .lineup__names { font-size: clamp(24px, 7.4vw, 30px); letter-spacing: 2px; }
}
.where span { white-space: nowrap; }
/* heel smal: langste statusregels breken af, reserveer twee regels zodat de layout niet verspringt */
@media (max-width: 365px) { .status { min-height: 2.8em; } }
@media (max-width: 720px) {
  .sticky-cta { display: block; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* ---------- Glitch op de statusregel (omgeving, nooit het logo) ---------- */
.status.is-glitching { animation: glitch .38s steps(2, end) 1; }
@keyframes glitch {
  0%   { text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan); transform: translateX(1px); }
  33%  { text-shadow: 2px 0 var(--magenta), -2px 0 var(--cyan); transform: translateX(-2px); clip-path: inset(10% 0 40% 0); }
  66%  { text-shadow: -1px 0 var(--magenta), 1px 0 var(--cyan); transform: translateX(1px); clip-path: inset(50% 0 0 0); }
  100% { text-shadow: none; transform: none; clip-path: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .sticky-cta { transition: none; }
  .status.is-glitching { animation: none; }
  .wordmark.is-glitching .wordmark__img,
  .wordmark.is-glitching .wordmark__ghost { animation: none; }
}
