/* ================================================================
   STOMP × Britt — Verjaardagskaart 2026
   ================================================================ */

/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  --black:   #080808;
  --dark:    #111111;
  --mid:     #1a1a1a;
  --surface: #232323;
  --red:     #D41F26;
  --yellow:  #FFE600;
  --silver:  #B8C0C4;
  --light:   #F0EDE8;
  --white:   #FFFFFF;

  --ff-disp: 'Bebas Neue', Impact, sans-serif;
  --ff-body: 'Barlow', system-ui, sans-serif;
  --ff-cond: 'Barlow Condensed', sans-serif;

  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1.0);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--black);
  color: var(--light);
  font-family: var(--ff-body);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; }
figure { margin: 0; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Layout ────────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
section { padding: clamp(80px, 10vw, 130px) 0; }

/* ── Typography ────────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--ff-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}

h2 {
  font-family: var(--ff-disp);
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 32px;
  text-wrap: balance;
}

.bdy {
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--silver);
  line-height: 1.8;
  max-width: 68ch;
  margin-bottom: 20px;
}
.bdy strong { color: var(--yellow); font-weight: 600; }
.bdy em     { color: var(--light);  font-style: italic; }

/* ── Scroll reveal ─────────────────────────────────────────────── */
.ri {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.ri.visible { opacity: 1; transform: none; }

/* ================================================================
   LOADER
   ================================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.out { opacity: 0; visibility: hidden; pointer-events: none; }

#loader-rings { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.l-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 10px;
  border: 3px solid rgba(255, 230, 0, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: lRingBurst 0.95s var(--ease-out) forwards;
}

#loader-letters {
  display: flex;
  position: relative;
  z-index: 1;
}
#loader-letters span {
  display: inline-block;
  font-family: var(--ff-disp);
  font-size: clamp(72px, 16vw, 200px);
  color: var(--white);
  opacity: 0;
  transform: scale(4) rotate(-4deg);
  line-height: 1;
}
#loader-letters span.stamp {
  animation: letterStamp 0.36s var(--ease) forwards;
}

#loader-voor {
  font-family: var(--ff-cond);
  font-size: clamp(16px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--silver);
  opacity: 0;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 1;
}
#loader-voor strong { color: var(--yellow); }
#loader-voor.show  { opacity: 1; }

/* ================================================================
   HERO
   ================================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 65% center;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,  rgba(8,8,8,.94) 0%, rgba(8,8,8,.48) 55%, rgba(8,8,8,.04) 100%),
    linear-gradient(to top,    rgba(8,8,8,.80) 0%, transparent 40%);
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 8vw, 120px);
}

.stomp-mark {
  font-family: var(--ff-disp);
  font-size: clamp(100px, 20vw, 300px);
  line-height: 0.85;
  color: var(--yellow);
  text-shadow: 4px 4px 0 rgba(0,0,0,.72), 0 0 90px rgba(255,230,0,.22);
  animation: glitchLoop 10s ease 4s infinite;
}

.hero-recipient {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}
.voor-word {
  font-family: var(--ff-cond);
  font-size: clamp(18px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--silver);
}
.britt-word {
  font-family: var(--ff-disp);
  font-size: clamp(58px, 11vw, 160px);
  line-height: 0.9;
  color: var(--white);
}

.hero-sub {
  font-family: var(--ff-cond);
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 52px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--yellow);
  text-decoration: none;
  font-family: var(--ff-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: gap 0.3s ease, opacity 0.3s ease;
  animation: ctaBounce 2.2s ease infinite;
}
.hero-cta:hover { gap: 18px; opacity: 0.75; }

/* Pulsing rings */
.hero-rings {
  position: absolute;
  right: 18%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}
.hero-ring {
  display: block;
  position: absolute;
  top: 0; left: 0;
  border: 1.5px solid rgba(255, 230, 0, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hero-ring:nth-child(1) { width: 160px; height: 160px; animation: ringPulse 2.6s ease-out 0.0s infinite; }
.hero-ring:nth-child(2) { width: 280px; height: 280px; animation: ringPulse 2.6s ease-out 0.4s infinite; }
.hero-ring:nth-child(3) { width: 420px; height: 420px; animation: ringPulse 2.6s ease-out 0.8s infinite; }

/* ================================================================
   BIRTHDAY
   ================================================================ */
#birthday { background: var(--dark); }

.tease-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 52px;
  opacity: 0.65;
}
.tease-icon  { font-size: 36px; animation: bounce 1.4s ease infinite; }
.tease-label {
  font-family: var(--ff-cond);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--silver);
}

/* ================================================================
   GIFT REVEAL
   ================================================================ */
#gift { background: var(--black); }

.gift-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── 3-D ticket flip ─ */
.ticket-persp {
  perspective: 1400px;
  width: 100%;
  max-width: 860px;
  cursor: pointer;
}
.ticket-card {
  position: relative;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.95s var(--ease);
  height: 540px;
}
.ticket-card.flipped { transform: rotateY(180deg); }

.ticket-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Front */
.t-front {
  background: var(--mid);
  border: 2px solid rgba(255,230,0,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.t-front:hover {
  border-color: rgba(255,230,0,.4);
  box-shadow: 0 0 60px rgba(255,230,0,.08);
}

.t-seal { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px; }
.t-seal-icon  { font-size: 64px; animation: bounce 1.6s ease infinite; }
.t-seal-title { font-family: var(--ff-disp); font-size: clamp(28px, 4vw, 42px); color: var(--white); }
.t-seal-hint  { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--silver); }
.t-btn {
  margin-top: 8px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--ff-cond);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 8px;
  animation: pulseCTA 2.4s ease infinite;
}

/* Back — real ticket image */
.t-back {
  transform: rotateY(180deg);
  background: var(--dark);
  border: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.t-real-ticket {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 0;
}

.t-ticket-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(255,230,0,.18) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 2.4s ease-in-out infinite;
}

.t-ticket-img {
  width: 100%;
  max-height: calc(100% - 52px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0,0,0,.75), 0 0 0 1px rgba(255,230,0,.15);
  position: relative;
  z-index: 1;
}

.t-ticket-ribbon {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 10px 0 12px;
  font-family: var(--ff-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1.0; }
}

/* Confetti */
#confetti-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}
.confetti-bit {
  position: absolute;
  top: -20px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

/* ================================================================
   ABOUT
   ================================================================ */
#about { background: var(--mid); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.about-imgs { display: flex; flex-direction: column; gap: 14px; }
.a-img {
  border-radius: 10px;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.07);
  transition: transform 0.5s var(--ease);
}
.a-img:hover { transform: scale(1.02); }

.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.a-tag {
  background: rgba(212,31,38,.1);
  border: 1px solid rgba(212,31,38,.3);
  color: var(--light);
  font-family: var(--ff-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
}

/* ================================================================
   TRAILER
   ================================================================ */
#trailer { background: var(--black); }

.trailer-head { text-align: center; margin-bottom: 48px; }

.embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 28px 80px rgba(0,0,0,.85);
}
.embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ================================================================
   GALLERY
   ================================================================ */
#gallery { background: var(--dark); }

.gallery-head { text-align: center; margin-bottom: 48px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 10px;
}
.g-item {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.g-item:hover img { transform: scale(1.07); }
.g-wide { grid-column: span 2; }

/* ================================================================
   COUNTDOWN
   ================================================================ */
#countdown { background: var(--red); text-align: center; }

.cd-block { max-width: 820px; margin: 0 auto; }

.cd-eye { color: rgba(255,255,255,.75); }

.cd-title {
  font-family: var(--ff-disp);
  font-size: clamp(40px, 6vw, 76px);
  color: var(--white);
  text-shadow: 2px 2px 0 rgba(0,0,0,.25);
  margin-bottom: 52px;
}

.cd-display {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}
.cd-unit { text-align: center; padding: 0 20px; }
.cd-num {
  font-family: var(--ff-disp);
  font-size: clamp(64px, 12vw, 130px);
  line-height: 1;
  color: var(--white);
  text-shadow: 3px 3px 0 rgba(0,0,0,.28);
  display: block;
  min-width: 2ch;
}
.cd-lbl {
  font-family: var(--ff-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: 6px;
}
.cd-sep {
  font-family: var(--ff-disp);
  font-size: clamp(48px, 8vw, 100px);
  color: rgba(255,255,255,.32);
  padding-bottom: 32px;
  line-height: 1;
}
.cd-venue {
  font-family: var(--ff-cond);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

/* ================================================================
   DRUM PADS
   ================================================================ */
#drums { background: var(--black); }

.drums-head   { text-align: center; margin-bottom: 56px; }
.drums-intro  { text-align: center; max-width: 52ch; margin: 0 auto; }

.pad-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.drum-pad {
  background: var(--surface);
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.drum-pad:hover {
  border-color: rgba(255,255,255,.22);
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(0,0,0,.55);
}
.drum-pad.hit {
  transform: scale(0.92);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 40px rgba(212,31,38,.55);
}
.p-emoji { font-size: 44px; display: block; line-height: 1.2; }
.p-name  {
  font-family: var(--ff-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light);
}
.p-sfx { font-family: var(--ff-disp); font-size: 22px; color: var(--yellow); }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--black);
  padding: 72px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.05);
}
.ft-brand {
  font-family: var(--ff-disp);
  font-size: clamp(60px, 12vw, 120px);
  color: rgba(255,255,255,.05);
  line-height: 1;
  margin-bottom: 28px;
}
.ft-wish  { font-size: 22px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.ft-quote { font-size: 16px; color: var(--silver); font-style: italic; margin-bottom: 18px; }
.ft-info  {
  font-family: var(--ff-cond);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--silver);
  opacity: .45;
}

/* ================================================================
   RIPPLE
   ================================================================ */
#ripple-layer { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.ripple-dot {
  position: absolute;
  width: 8px; height: 8px;
  margin: -4px;
  border: 2px solid rgba(255,230,0,.72);
  border-radius: 50%;
  animation: rippleOut 0.85s ease-out forwards;
  pointer-events: none;
}

/* ================================================================
   KEYFRAMES
   ================================================================ */

@keyframes lRingBurst {
  from { width: 10px; height: 10px; opacity: 0.8; }
  to   { width: 100vmax; height: 100vmax; border-color: rgba(255,230,0,0); opacity: 0; }
}

@keyframes letterStamp {
  0%   { opacity: 0; transform: scale(4) rotate(-4deg); }
  60%  { opacity: 1; transform: scale(0.92) rotate(1deg); }
  80%  { transform: scale(1.07) rotate(-0.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes ringPulse {
  0%   { transform: translate(-50%,-50%) scale(0.55); opacity: 0.65; }
  100% { transform: translate(-50%,-50%) scale(1.9);  opacity: 0; }
}

@keyframes glitchLoop {
  0%, 90%, 100% {
    clip-path: none; transform: none;
    text-shadow: 4px 4px 0 rgba(0,0,0,.72), 0 0 90px rgba(255,230,0,.22);
  }
  91% { clip-path: polygon(0 18%, 100% 18%, 100% 38%, 0 38%); transform: translateX(-7px); text-shadow: -5px 4px 0 rgba(212,31,38,.7); }
  92% { clip-path: polygon(0 58%, 100% 58%, 100% 78%, 0 78%); transform: translateX(7px);  text-shadow:  5px 4px 0 rgba(0,80,255,.5); }
  93% { clip-path: none; transform: none; text-shadow: 4px 4px 0 rgba(0,0,0,.72); }
}

@keyframes ctaBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes pulseCTA {
  0%, 100% { box-shadow: 0 0 0 0   rgba(255,230,0,.55); }
  60%       { box-shadow: 0 0 0 20px rgba(255,230,0,.0);  }
}

@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

@keyframes rippleOut {
  0%   { width: 8px;   height: 8px;   margin: -4px;   opacity: 0.8; }
  100% { width: 190px; height: 190px; margin: -95px;  opacity: 0;   }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-imgs { flex-direction: row; }
  .a-img { height: 160px; }
  .hero-rings { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .g-wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  h2 { font-size: 48px; }
  .stomp-mark  { font-size: 26vw; }
  .britt-word  { font-size: 18vw; }
  .ticket-card { height: 480px; }
  .cd-sep  { display: none; }
  .cd-unit { padding: 0 10px; }
  .pad-grid { gap: 10px; }
  .drum-pad { min-width: 100px; padding: 20px 12px; }
  .p-emoji  { font-size: 32px; }
}

@media (max-width: 480px) {
  .t-detail-row { flex-direction: column; gap: 10px; }
  .ticket-card  { height: 580px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .about-imgs   { flex-direction: column; }
}

@media (max-width: 380px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .g-wide { grid-column: span 1; }
}
