/* ============================================================
   Underbara Events – stilmall
   Palett: varmsvart klubbmiljö, neonrosa, guld bara för VIP/priser.
   Porterat från källsajten (neonskylt, flicker, marquee,
   magnetiska knappar, kortreveals) med guld ersatt av rosa.
   ============================================================ */

:root {
  --nav-h: 76px; /* menyradens höjd (desktop), används för ankar-offset */
  --pink:      #ff2d8a;   /* neonrör */
  --pink-hot:  #ff6fb8;   /* glöd nära röret */
  --pink-dim:  #8a1a53;   /* släckt rör / ramar */
  --void:      #07030a;   /* sidbakgrund */
  --plum:      #1b0818;   /* sektioner / kort */
  --plum-2:    #2a0c25;
  --gold:      #f2c14e;   /* pris / VIP-topp */
  --ink:       #f7eef3;   /* brödtext */
  --ink-muted: #b79aac;

  --display:   "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --script:    "Pinyon Script", "Brush Script MT", cursive;
  --body:      "Manrope", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1040px;
  --gutter: max(clamp(20px, 5vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --radius: 14px;

  --neon: 0 0 6px var(--pink-hot),
          0 0 18px var(--pink),
          0 0 42px rgba(255, 45, 138, .55),
          0 0 90px rgba(255, 45, 138, .3);
  --neon-soft: 0 0 10px rgba(255, 45, 138, .6),
               0 0 30px rgba(255, 45, 138, .3);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
/* Ankarlänkar: håll målet fritt från den fasta menyraden */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
@media (max-width: 1100px) { :root { --nav-h: 72px; } }
@media (max-width: 767px)  { :root { --nav-h: calc(70px + env(safe-area-inset-top, 0px)); } }
main { overflow-x: clip; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pink-hot); text-decoration: none; }
a:hover { color: #fff; }
b, strong { font-weight: 700; }
.muted { color: var(--ink-muted); }

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

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--pink); color: var(--void); padding: 8px 12px;
  border-radius: 6px; z-index: 100; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section { padding-block: clamp(54px, 6.8vw, 88px); }

/* ---------- typografi ---------- */

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(13px, 1.19vw, 16px);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--pink-hot);
}

.h2 {
  margin: 0 0 clamp(27px, 3.4vw, 48px);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(37px, 5.95vw, 75px);
  line-height: .95;
  letter-spacing: .02em;
  text-wrap: balance;
}

.neon-text {
  color: #fff;
  text-shadow: var(--neon);
}

/* ---------- knappar ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid var(--pink);
  color: #fff;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn:active { transform: translateY(0); }

.btn--neon {
  background: var(--pink);
  color: var(--void);
  box-shadow: 0 0 22px rgba(255, 45, 138, .55), inset 0 0 0 1px rgba(255,255,255,.25);
}
.btn--neon:hover {
  color: var(--void);
  background: var(--pink-hot);
  box-shadow: 0 0 34px rgba(255, 45, 138, .85), inset 0 0 0 1px rgba(255,255,255,.4);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 111, 184,.5);
}
.btn--ghost:hover { border-color: var(--pink-hot); box-shadow: var(--neon-soft); }

.btn--small { padding: 9px 17px; font-size: 15px; }
.btn--big   { padding: 17px 37px; font-size: 24px; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  background: linear-gradient(to bottom, rgba(7, 3, 10,.92), rgba(7, 3, 10,.6) 70%, transparent);
  transition: background .3s ease;
}
.nav.is-scrolled {
  background: rgba(7, 3, 10,.94);
  border-bottom: 1px solid rgba(255, 45, 138,.25);
}

.nav__brand {
  display: flex; align-items: center; position: relative; z-index: 2;
  line-height: 0; transition: opacity .2s ease;
}
.nav__brand:hover { opacity: .8; }

/* Masklogga: staplad lockup (mask ovanför UNDERBARA/EVENTS), proportion 3238 : 1803 */
.nav__brand img { height: 46px; width: auto; }
@media (max-width: 1100px) { .nav__brand img { height: 42px; } }
@media (max-width: 767px)  { .nav { padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; } .nav__brand img { height: 38px; } }

.nav__menu { display: flex; align-items: center; gap: clamp(12px, 2.04vw, 27px); }
.nav__menu a:not(.btn) {
  font-family: var(--display); font-size: 17px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); position: relative; padding: 4px 0;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--pink); box-shadow: 0 0 8px var(--pink);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; z-index: 2;
  flex-direction: column; justify-content: center; gap: 7px; padding: 0 8px;
}
.nav__toggle span {
  display: block; height: 2px; background: #fff; box-shadow: 0 0 6px var(--pink); transition: transform .25s, opacity .25s;
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: flex-start; gap: 24px;
    padding: calc(80px + env(safe-area-inset-top, 0px)) var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    background: rgba(7, 3, 10,.97);
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  .nav__menu.is-open { opacity: 1; pointer-events: auto; }
  /* centrerad i höjd när det får plats, scrollbar från toppen när det inte gör det */
  .nav__menu > :first-child { margin-top: auto; }
  .nav__menu > :last-child { margin-bottom: auto; }
  .nav__menu a:not(.btn) { font-size: 29px; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  background: var(--void);
}

/* Pinnen bär heroytan. Statiskt läge (mobil, reduced motion, utan JS): en skärmhöjd. */
.hero__pin {
  position: relative;
  min-height: 100svh; min-height: 100lvh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px var(--gutter) 90px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; }

/* Stillbild (poster, eller end.jpg vid reduced motion) och video täcker hela ytan */
.hero__still, .hero__still img, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__video { display: block; background: transparent; }
/* Mörkning bakom neonskylten så skylt och tagline läses mot bilden */
.hero__shade {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 85% 80% at 50% 52%, rgba(7, 3, 10,.86), rgba(7, 3, 10,.7) 55%, rgba(7, 3, 10,.38));
}
/* Heron ligger nu på foto i stället för varmsvart: ljusare text + mjuk skugga för kontrast */
.hero__eyebrow, .hero__tagline { color: var(--ink); text-shadow: 0 1px 14px rgba(7, 3, 10,.9), 0 0 4px rgba(7, 3, 10,.8); }

/* Desktop-scrub (klassen sätts av js/hero-scrub.js): spåret är ~25vh per sekund
   bearbetad video (12 s -> 300vh) plus en skärmhöjd för pinnen. */
.hero--scrub { height: calc(300vh + 100vh); }
.hero--scrub .hero__pin {
  position: sticky; top: 0;
  height: 100vh; min-height: 0;
}
.hero--scrub .hero__cursor { display: none; } /* ramen ska vara ren under scrubben */

/* Slutläge: slöja + rubrik + CTA, bara i scrub-läget. Opacitet styrs av JS. */
.hero__veil, .hero__reveal { display: none; }
.hero--scrub .hero__veil {
  display: block;
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, rgba(7, 3, 10,.94) 0%, rgba(7, 3, 10,.88) 34%, rgba(7, 3, 10,.68) 58%, rgba(7, 3, 10,0) 82%);
}
.hero--scrub .hero__reveal {
  display: flex; flex-direction: column; align-items: center;
  position: absolute; left: 50%; bottom: clamp(56px, 9vh, 104px); transform: translateX(-50%);
  width: min(760px, calc(100% - 2 * var(--gutter)));
  opacity: 0; visibility: hidden;
}
.hero__reveal-title {
  margin: 0;
  font-family: var(--script); font-weight: 400;
  font-size: clamp(56px, 7vw, 104px); line-height: 1.05;
  color: var(--pink-hot);
  text-shadow: 0 0 18px rgba(255, 45, 138,.35);
}
.hero__reveal-copy {
  margin: 10px 0 clamp(22px, 3vh, 32px);
  max-width: 52ch;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink);
}

.hero__glow {
  position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  border-radius: 50%; filter: blur(80px); opacity: .35; pointer-events: none;
}
.hero__glow--a { top: -10%; left: -10%; background: radial-gradient(circle, rgba(255, 45, 138,.5), transparent 70%); }
.hero__glow--b { bottom: -20%; right: -10%; background: radial-gradient(circle, rgba(138, 26, 83,.6), transparent 70%); }

.hero__floor {
  position: absolute; inset: auto 0 0 0; height: 40%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 45, 138,.12), transparent 70%);
}

.hero__stage {
  will-change: transform, opacity;
  position: relative;
  text-align: center;
  width: min(1100px, 100%);
  display: flex; flex-direction: column; align-items: center;
}

.hero__eyebrow {
  margin: 0 0 20px;
  display: flex; align-items: center; gap: 15px;
  font-family: var(--display); font-size: clamp(12px, 1.27vw, 15px);
  letter-spacing: .34em; text-transform: uppercase; color: var(--ink-muted);
}
/* Släckt bakgrundskapsel bakom eyebrow-texten så den håller kontrast oavsett
   hur ljust skyltens glöd blir under den (poster.jpg + neon-glow varierar). */
.hero__eyebrow span {
  padding: 6px 15px;
  border-radius: 3px;
  background: rgba(7, 3, 10,1);
}
.hero__eyebrow::before, .hero__eyebrow::after {
  content: ""; width: clamp(24px, 5.1vw, 68px); height: 1px; background: var(--pink-dim);
}

.hero__title {
  will-change: transform;
  margin: 0;
  line-height: .82;
  display: flex; flex-direction: column; align-items: center;
}
.hero__title-main {
  font-family: var(--display);
  font-size: clamp(74px, 15vw, 188px);
  letter-spacing: .04em;
  color: #fff;
  text-shadow: var(--neon);
  animation: flicker 6s linear infinite;
}
.hero__title-sub {
  font-family: var(--display);
  font-size: clamp(24px, 4.5vw, 52px);
  letter-spacing: .5em;
  padding-left: .5em; /* optical balance for the added right-side tracking */
  color: var(--pink-hot);
  text-shadow: var(--neon-soft);
  margin-top: .18em;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; text-shadow: var(--neon); }
  20%, 24%, 55% { opacity: .82; text-shadow: 0 0 4px var(--pink-hot); }
}

.hero__tagline {
  margin: clamp(20px, 3vw, 34px) 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink-muted);
}

.hero__cta {
  margin-top: clamp(28px, 3.8vw, 44px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}

/* Skrollsignal nere i mitten: 40px hårlinje + prick som glider nedåt (1,8 s) */
.hero__cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
}
.hero__scroll {
  margin: 0; padding: 6px 10px; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column-reverse; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink);
}
.hero__scroll span {
  position: relative; width: 1px; height: 40px;
  background: rgba(255, 45, 138,.45);
}
.hero__scroll span::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--pink-hot); box-shadow: 0 0 8px var(--pink);
  animation: cue-dot 1.8s ease-in-out infinite;
}
@keyframes cue-dot { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(35px); opacity: 0; } }

@media (max-width: 600px) {
  .hero__pin { padding-top: 100px; }
  /* Skrollsignalen ovanför webbläsarens verktygsfält (pinnen är 100lvh) */
  .hero__cue { bottom: calc(100lvh - 100svh + 14px); }
  .hero__title-sub { letter-spacing: .32em; padding-left: .32em; }
  /* Eyebrow-kapseln på en rad: tajtare spärrning, kortare sidlinjer */
  .hero__eyebrow { gap: 10px; letter-spacing: .2em; }
  .hero__eyebrow span { padding: 6px 10px; white-space: nowrap; }
  .hero__eyebrow::before, .hero__eyebrow::after { width: 16px; }
}

/* Mobil-scrub (porträttfilen hero-mobile.mp4): samma 25 enheter per sekund i svh.
   Pin, bild och slöja är 100lvh så ingen svart remsa syns när iOS verktygsfält fälls in;
   text, signal och reveal förankras i 100svh så de syns med verktygsfältet framme. */
@media (max-width: 767px) {
  .hero__still img, .hero__video { object-fit: cover; object-position: center; }
  .hero--scrub { height: calc(300vh + 100vh); height: calc(300svh + 100lvh); }
  .hero--scrub .hero__pin {
    height: 100vh; height: 100lvh;
    padding-bottom: calc(100lvh - 100svh + 90px); /* centrera skylten inom 100svh */
  }
  .hero--scrub .hero__bg { top: 0; bottom: auto; height: 100vh; height: 100lvh; }
  .hero--scrub .hero__cue { bottom: calc(100lvh - 100svh + 14px); }
  /* reveal-knappen ovanför .whatsapp-btn (56px + 20px offset + 12px) */
  .hero--scrub .hero__reveal { bottom: calc(100lvh - 100svh + max(clamp(56px, 9vh, 104px), 88px)); }
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 45, 138,.35);
  background: rgba(42, 12, 37,.85);
  padding: 12px 0;
  position: relative;
}
.marquee__track {
  display: flex; align-items: center; gap: 29px; width: max-content;
  animation: slide 38s linear infinite;
  font-family: var(--display); font-size: 20px; letter-spacing: .24em; text-transform: uppercase; color: #fff;
  text-shadow: 0 0 10px rgba(255, 45, 138,.6);
}
.marquee__track i { font-style: normal; color: var(--pink); text-shadow: var(--neon-soft); }
.marquee.is-offscreen .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   ARTISTER ("Kvällens sällskap")
   ============================================================ */

.artists { background: linear-gradient(180deg, rgba(7, 3, 10,.55), rgba(42, 12, 37,.6) 40%, rgba(7, 3, 10,.55)); }

.artists__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (min-width: 640px) and (max-width: 999px) { .artists__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .artists__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.artist-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 45, 138,.25);
  background: linear-gradient(160deg, var(--plum-2), var(--plum));
  aspect-ratio: 4 / 5;
}

.artist-card__media { position: absolute; inset: 0; }
.artist-card__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  /* om bilden saknas (404) döljs den av main.js och guldtonad gradient syns istället */
}
.artist-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7, 3, 10,.95) 15%, rgba(7, 3, 10,.15) 55%, rgba(7, 3, 10,0));
}

.artist-card__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.artist-card__meta b {
  font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .04em;
  color: #fff; text-shadow: 0 0 10px rgba(255, 45, 138,.5);
}
.artist-card__meta span { font-size: 12px; color: var(--pink-hot); letter-spacing: .02em; }

.artist-card__desc {
  margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .3s ease;
}
.artist-card__hint {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  background: none; border: 0; padding: 0;
}
@media (hover: none) {
  .artist-card__hint {
    position: static; width: auto; height: auto; clip: auto; overflow: visible; white-space: normal;
    margin-top: 6px; font-family: var(--display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--ink-muted); cursor: pointer;
  }
  .artist-card.is-open .artist-card__hint { display: none; }
}
.artist-card:hover .artist-card__desc,
.artist-card.is-open .artist-card__desc,
.artist-card:focus-within .artist-card__desc {
  max-height: 8em; opacity: 1;
}

/* ============================================================
   VÄLJ ER KVÄLL (entrépaneler, #valj)
   Mobil: 1 kolumn, surfplatta: 2 kolumner, desktop med hover:
   fyra paneler i rad som fyller skärmen, hovrad panel växer.
   ============================================================ */

.entry.section {
  padding-block: 0;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--void);
}
.entry__head { padding-top: clamp(84px, 11vh, 108px); padding-bottom: clamp(16px, 2.6vh, 28px); }
.entry__head .h2 { margin: 0; }

.entry__panels {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--pink-dim);            /* 1px-linjen mellan panelerna */
  border-top: 1px solid var(--pink-dim);
}
.entry__panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  height: 56svh; min-height: 340px;
  background: var(--plum); color: var(--ink);
}
.entry__panel:hover { color: var(--ink); }
.entry__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.entry__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--void) 0%, rgba(7, 3, 10,.9) 24%, rgba(7, 3, 10,.55) 46%, rgba(7, 3, 10,.1) 70%, transparent 82%);
}
.entry__shade::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(to top, rgba(7, 3, 10,.55), rgba(7, 3, 10,.15) 60%, transparent);
  transition: opacity .5s cubic-bezier(.2, .8, .2, 1);
}
.entry__body {
  display: flex; flex-direction: column; gap: 6px;
  width: 100%; padding: clamp(20px, 2.4vw, 32px);
}
.entry__num {
  font-family: var(--display); font-size: clamp(22px, 2vw, 30px); line-height: 1; letter-spacing: .12em;
  color: var(--pink); text-shadow: var(--neon-soft);
}
.entry__title {
  font-family: var(--display); font-size: clamp(34px, 4vw, 64px); line-height: .95; letter-spacing: .02em;
  color: var(--ink); white-space: nowrap;
  transition: text-shadow .5s cubic-bezier(.2, .8, .2, 1);
}
.entry__tag { font-family: var(--body); font-size: 14px; line-height: 1.45; color: var(--ink-muted); max-width: 30ch; min-height: 2.9em; }
.entry__cta {
  margin-top: 6px;
  font-family: var(--display); font-size: 15px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--pink-hot);
}
.entry__panel:focus-visible { outline: 2px solid var(--pink-hot); outline-offset: -4px; border-radius: 0; }

@media (min-width: 640px) {
  .entry__panels { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) and (hover: hover) {
  /* flex-rad: linjen ritas som kant (gap + rosa bakgrund skulle lysa igenom dimmade paneler) */
  .entry__panels { display: flex; flex: 1; min-height: 0; gap: 0; background: var(--void); }
  .entry__panel + .entry__panel { border-left: 1px solid var(--pink-dim); }
  .entry__panel {
    flex: 1 1 0; min-width: 0; height: auto; min-height: 460px;
    transition: flex .5s cubic-bezier(.2, .8, .2, 1), opacity .5s cubic-bezier(.2, .8, .2, 1);
  }
  .entry__panels:hover .entry__panel,
  .entry__panels:has(.entry__panel:focus-visible) .entry__panel { opacity: .7; }
  /* dimmad panel: taglinen lyfts till --ink så kontrasten håller ≥ 4.5:1 vid opacity .7 */
  .entry__panels:hover .entry__panel:not(:hover) .entry__tag,
  .entry__panels:has(.entry__panel:focus-visible) .entry__panel:not(:focus-visible) .entry__tag { color: var(--ink); }
  .entry__panels .entry__panel:hover,
  .entry__panels .entry__panel:focus-visible { flex: 1.8 1 0; opacity: 1; }
  .entry__panel:hover .entry__img,
  .entry__panel:focus-visible .entry__img { transform: scale(1.06); }
  .entry__panel:hover .entry__shade::after,
  .entry__panel:focus-visible .entry__shade::after { opacity: 1; }
  .entry__panel:hover .entry__title,
  .entry__panel:focus-visible .entry__title { text-shadow: var(--neon); }
  /* alla paneler: extra bottenluft så taglinen inte döljs av .whatsapp-btn (56px + 20px offset + 12px) – samma på alla så textblocken linjerar */
  .entry__body { padding-bottom: calc(clamp(20px, 2.4vw, 32px) + 88px); }
}

/* ============================================================
   SÅ FUNKAR DET
   ============================================================ */

.steps-wrap { position: relative; }
.steps {
  list-style: none; margin: 0; padding: 0; position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 1023px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--pink);
  background: rgba(42, 12, 37,.4);
  opacity: 1; transform: translateY(0); box-shadow: var(--neon-soft);
  transition: opacity .35s ease, transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.step__num {
  display: block; margin-bottom: 10px;
  font-family: var(--display); font-size: 34px; line-height: 1;
  color: var(--pink); text-shadow: var(--neon);
  transition: color .35s ease, text-shadow .35s ease;
}
.step h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .04em; color: #fff; }
.step p { margin: 0; font-size: 13px; color: var(--ink); transition: color .35s ease; }

/* Neonrörslinje som förbinder stegen. Fylls med scroll (js/animations.js). */
.steps__line {
  position: absolute; left: 0; right: 0; top: 39px; height: 2px;
  background: var(--pink-dim); pointer-events: none; z-index: 0; overflow: hidden;
}
.steps__line-fill {
  display: block; width: 100%; height: 100%; background: var(--pink);
  box-shadow: 0 0 8px var(--pink-hot), 0 0 20px var(--pink);
  will-change: width;
}
@media (max-width: 1023px) {
  .steps-wrap { padding-left: 26px; }
  .steps__line { left: 8px; top: 0; right: auto; bottom: 0; width: 2px; height: auto; }
  .steps__line-fill { width: 100%; height: 100%; will-change: height; }
}

/* Innan JS-scrubben körs igång (icke reducerad rörelse): kort dämpas, tänds sedan i tur och ordning. */
.steps-wrap.js-scrub .step {
  opacity: .45; transform: translateY(0); border-color: rgba(255, 45, 138,.2); box-shadow: none;
}
.steps-wrap.js-scrub .step__num { color: var(--pink-dim); text-shadow: none; }
.steps-wrap.js-scrub .step p { color: var(--ink-muted); }
.steps-wrap.js-scrub .steps__line-fill { width: 0%; height: 0%; }
.steps-wrap.js-scrub .step.is-lit {
  opacity: 1; transform: translateY(-6px); border-color: var(--pink); box-shadow: var(--neon-soft);
}
.steps-wrap.js-scrub .step.is-lit .step__num { color: var(--pink); text-shadow: var(--neon); }
.steps-wrap.js-scrub .step.is-lit p { color: var(--ink); }

/* ============================================================
   VIP-PAKET
   ============================================================ */

.vip { background: linear-gradient(180deg, rgba(7, 3, 10,.55), rgba(42, 12, 37,.6) 50%, rgba(7, 3, 10,.55)); }
.vip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.vip-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); border: 1px solid rgba(255, 45, 138,.3);
  background: rgba(27, 8, 24,.8);
  padding: clamp(24px, 3vw, 32px);
}
.vip-card--top { border-color: var(--pink); box-shadow: var(--neon-soft); }
.vip-card__tier { font-family: var(--display); font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--pink-hot); }
.vip-card__price { font-family: var(--display); font-size: 40px; line-height: 1; color: #fff; text-shadow: var(--neon-soft); margin: 8px 0 4px; }
.vip-card--top .vip-card__price { color: var(--gold); text-shadow: 0 0 10px rgba(242,193,78,.5); }
.vip-card__price small { font-size: 16px; color: var(--ink-muted); font-family: var(--body); }
.vip-card ul { list-style: none; margin: 14px 0 24px; padding: 0; display: grid; gap: 8px; }
.vip-card li { font-size: 13px; color: var(--ink); padding-left: 18px; position: relative; }
.vip-card li::before { content: "✦"; position: absolute; left: 0; color: var(--pink); }
.vip-card .btn { margin-top: auto; align-self: flex-start; }
/* Exempelkort utan pris (startsidan "Exempel på upplägg", strip): titeln bär kortet */
.incl-note { margin: 22px 0 0; color: var(--ink-muted); }
.vip-card--example .vip-card__tier {
  margin: 0; font-weight: 400; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.05;
  letter-spacing: .06em; color: #fff;
}
.vip-card--example p:not(.vip-card__tier):not(.vip-card__price) { margin: 12px 0 24px; font-size: 14px; color: var(--ink-muted); }

/* ============================================================
   FAQ
   ============================================================ */

.faq__wrap { max-width: 800px; }
.q { border-top: 1px solid rgba(255, 45, 138,.3); }
.q:last-of-type { border-bottom: 1px solid rgba(255, 45, 138,.3); }
.q summary {
  cursor: pointer; list-style: none; padding: 17px 34px 17px 0; position: relative;
  font-family: var(--display); font-size: clamp(19px, 2.04vw, 24px); letter-spacing: .05em; color: #fff;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: var(--pink); text-shadow: var(--neon-soft); transition: transform .2s;
}
.q[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.q p { margin: 0 0 19px; color: var(--ink-muted); max-width: 64ch; }

/* ============================================================
   AVSLUT
   ============================================================ */

.closing {
  position: relative; overflow: hidden;
  padding: clamp(68px, 10.2vw, 136px) var(--gutter);
  text-align: center;
  display: grid; place-items: center;
  min-height: 70svh; min-height: 70lvh;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 45, 138,.22), transparent 60%),
    rgba(7, 3, 10,.6);
  border-top: 1px solid rgba(255, 45, 138,.3);
}
.closing__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.closing__eyebrow { font-family: var(--display); font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 8px; }
.closing__title {
  will-change: transform, opacity;
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(39px, 10.2vw, 128px); line-height: .9; letter-spacing: .02em;
  color: #fff; text-shadow: var(--neon);
}
.closing__title-lines { display: flex; flex-direction: column; align-items: center; }
.closing__title-sub {
  display: block;
  font-size: clamp(15px, 3.6vw, 42px);
  letter-spacing: .4em;
  padding-left: .4em;
  color: var(--pink-hot);
  text-shadow: var(--neon-soft);
  margin-top: .12em;
}
.closing__note { margin: 14px 0 24px; font-size: 13px; color: var(--ink-muted); max-width: 44ch; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer { padding: clamp(40px, 5vw, 64px) var(--gutter) 32px; border-top: 1px solid rgba(255, 45, 138,.2); }
.footer__grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px;
  margin-bottom: 28px;
}
.footer__brand { font-family: var(--display); font-size: 26px; color: #fff; letter-spacing: .06em; }
.footer__brand span { color: var(--pink-hot); }
.footer__logo { width: 150px; height: auto; }
.footer__brand p { margin: 16px 0 0; color: var(--ink-muted); max-width: 32ch; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col h3 { margin: 0 0 4px; font-family: var(--display); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--pink-hot); }
.footer__col a { color: var(--ink); }
.footer__col a:hover { color: var(--pink-hot); }
.footer__legal { padding-top: 20px; border-top: 1px solid rgba(255, 45, 138,.15); font-size: 12px; color: var(--ink-muted); }
.footer__legal a { display: inline-block; padding: 8px 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--pink-hot); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ============================================================
   WHATSAPP-KNAPP (flytande)
   ============================================================ */

.whatsapp-btn {
  position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pink); color: var(--void);
  box-shadow: 0 6px 24px rgba(0,0,0,.5), 0 0 22px rgba(255, 45, 138,.5);
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-btn:hover { transform: translateY(-2px) scale(1.04); color: var(--void); box-shadow: 0 8px 28px rgba(0,0,0,.55), 0 0 30px rgba(255, 45, 138,.7); }
.whatsapp-btn svg { width: 28px; height: 28px; }
@media (max-width: 600px) { .whatsapp-btn { right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; } .whatsapp-btn svg { width: 24px; height: 24px; } }

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title-main, .hero__glow, .hero__scroll span::after, .marquee__track { animation: none !important; }
  .btn, .artist-card, .entry__panel, .entry__img, .entry__title, .entry__shade::after { transition: none; }
}

/* ============================================================
   ANIMATIONER (aktiveras av js/animations.js via html.anim)
   ============================================================ */

/* Bokstäver i neonskylten */
.ltr { display: inline-block; will-change: opacity; }

/* Ord i rubriker: klipps så de kan glida upp */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .15em .25em .08em; margin: -.15em -.25em -.08em; }
.h2.is-revealed .w { overflow: visible; }
.w__in { display: inline-block; will-change: transform; backface-visibility: hidden; }
.h2.is-revealed .w__in { will-change: auto; }

/* Glöd som följer muspekaren i heron */
.hero__cursor {
  position: absolute; left: 0; top: 0; width: 520px; height: 520px; margin: -221px 0 0 -221px;
  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(circle, rgba(255, 45, 138,.26), rgba(255, 45, 138,.08) 40%, transparent 70%);
  will-change: transform;
}
@media (hover: none) { .hero__cursor { display: none; } }

.anim .hero__title-main { animation: none; }

/* anim-lite sätts av JS på touch-enheter: lättare neon, mindre glöd */
@media (max-width: 800px) {
  :root {
    --neon: 0 0 6px var(--pink-hot), 0 0 18px var(--pink), 0 0 40px rgba(255, 45, 138,.45);
    --neon-soft: 0 0 8px rgba(255, 45, 138,.55);
  }
  .hero__glow { animation: none; }
  .hero__title-main { animation: none; }
  .marquee__track { font-size: 18px; }
}
.anim-lite .hero__stage, .anim-lite .hero__title, .anim-lite .artist-card, .anim-lite .closing__title { will-change: auto; }

/* ============================================================
   MOBIL (≤ 700px): brödtext 16px, tryckytor ≥ 44px
   ============================================================ */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero__tagline, .entry__tag, .step p, .vip-card li, .closing__note { font-size: 16px; }
  .footer__col { gap: 0; }
  .footer__col a { display: flex; align-items: center; min-height: 44px; }
}

/* ============================================================
   MOBILPASS (≤ 767px): sektionstakt, kort, sidfot, tryckytor, safe areas
   Allt här gäller bara små skärmar – desktop (≥ 1024px) påverkas inte.
   ============================================================ */
@media (max-width: 767px) {
  html { -webkit-tap-highlight-color: rgba(255, 45, 138, .22); }
  a, button, summary, label, .artist-card { touch-action: manipulation; }

  /* Sektionstakt: 54 → 44px ovan/under, så tomrummet mellan block blir ~88px */
  .section { padding-block: 44px; }
  .h2 { margin-bottom: 24px; }
  /* Långa ord bryts med bindestreck i stället för att spräcka raden */
  .h2, .phero__title { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
  .vip-card__tier, .incl h3, .entry__title { overflow-wrap: break-word; }

  /* Nav: logon och hamburgaren får 44px tryckyta utan att layouten flyttas */
  .nav__brand { padding: 3px 8px; margin: -3px -8px; }
  .nav__toggle { margin-right: -8px; }
  .nav__menu { gap: 14px; }
  .nav__menu a:not(.btn) { font-size: 28px; line-height: 1.25; padding: 8px 0; }
  .nav__menu .btn { align-self: stretch; min-height: 50px; }
  html.menu-open .whatsapp-btn { opacity: 0; visibility: hidden; pointer-events: none; }

  /* Hero: skylten får aldrig brytas mitt i ordet (UNDERBAR/A på 320px) */
  .hero__title-main { white-space: nowrap; font-size: min(18.8vw, 124px); }
  .hero__cta .btn { min-height: 52px; }

  /* Entré-paneler: taglinen behöver ingen reserverad höjd i enkolumn */
  .entry__tag { min-height: 0; }

  /* Artistkort: "Visa mer" får tryckyta runt texten (hela kortet är också tryckbart) */
  .artist-card__desc { font-size: 13px; }
  .artist-card__meta span { font-size: 13px; }
  @media (hover: none) {
    .artist-card__hint { position: relative; font-size: 12px; }
    .artist-card__hint::after { content: ""; position: absolute; inset: -16px -40px; }
  }

  /* Paketkort och avslut: knappar i full bredd på smala skärmar */
  .vip-card .btn { align-self: stretch; }
  .closing .btn { width: 100%; max-width: 380px; }

  /* Sidfot: logga + slogan på egen rad, länkkolumnerna sida vid sida, luft för WhatsApp-knappen */
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-bottom: 20px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__logo { width: 120px; }
  .footer__brand p { margin-top: 12px; font-size: 21px; line-height: 1.3; max-width: 26ch; }
  .footer__col { min-width: 0; }
  .footer__col a { overflow-wrap: anywhere; }
  .footer__legal { font-size: 13px; }
}

/* Smala skärmar (≤ 400px): artistkorten blir högre så namn och text ryms */
@media (max-width: 400px) {
  .artist-card { aspect-ratio: 3 / 4; }
  .artist-card__meta { padding: 10px 10px 12px; }
  .artist-card__meta b { font-size: 18px; line-height: 1.05; }
  .artist-card__media::after { background: linear-gradient(to top, rgba(7, 3, 10,.96) 28%, rgba(7, 3, 10,.72) 50%, rgba(7, 3, 10,.1) 74%, rgba(7, 3, 10,0)); }
}

/* Låga skärmar (iPhone SE): skrollsignalen krockar annars med CTA-knappen */
@media (max-width: 767px) and (max-height: 700px) {
  .hero__cue, .hero--scrub .hero__cue { display: none; }
  .hero__pin { padding-top: 88px; }
  .nav__menu { gap: 6px; padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
}

/* WhatsApp-knappen viker undan (js/main.js) när en knapp hamnar under den */
.whatsapp-btn { transition: transform .18s ease, box-shadow .18s ease, opacity .2s ease, visibility 0s; }
.whatsapp-btn.is-tucked { opacity: 0; visibility: hidden; pointer-events: none; transition: transform .18s ease, box-shadow .18s ease, opacity .2s ease, visibility 0s .2s; }
