:root {
  --bg:     #160A24;
  --bg-2:   #24103A;
  --cream:  #FFFFFF;
  --muted:  #B9A9CF;
  --line:   rgba(255,255,255,.14);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font: 500 16px/1.5 "Montserrat", system-ui, sans-serif;
  overflow-x: hidden;
}

html[lang="ca"] [data-es], html[lang="es"] [data-ca] { display: none; }

/* Velvet-curtain backdrop (echoes the story Iris made) */
.curtain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(160,90,220,.35), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(254,133,218,.12), transparent 70%),
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.28) 0px, rgba(255,255,255,.035) 38px, rgba(0,0,0,.28) 76px),
    linear-gradient(180deg, #2A1342 0%, var(--bg) 60%);
  animation: sway 9s ease-in-out infinite alternate;
}
@keyframes sway { from { background-position: 0 0, 0 0, 0 0, 0 0; } to { background-position: 0 0, 0 0, 14px 0, 0 0; } }

.wrap { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 40px 0 28px; position: relative; }
.lang { position: absolute; top: 0; right: 0; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; backdrop-filter: blur(6px); }
.lang button { background: none; border: 0; color: var(--muted); font: 700 12px/1 "Montserrat", sans-serif; letter-spacing: .08em; padding: 8px 12px; cursor: pointer; transition: color .2s, background .2s; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--bg); }

.kicker { font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
h1 { font-weight: 900; font-size: clamp(72px, 22vw, 124px); line-height: .95; letter-spacing: -.02em; margin-top: 10px; text-shadow: 0 6px 30px rgba(0,0,0,.45); }
.month { font-weight: 800; font-size: clamp(22px, 6.4vw, 34px); letter-spacing: .32em; text-transform: uppercase; margin-right: -.32em; }
.place { color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; margin-top: 8px; }

/* ---------- Event cards ---------- */
.events { display: grid; gap: 16px; }
.event {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.7), 0 0 0 1px var(--line);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease;
}
.event img { display: block; width: 100%; height: auto; aspect-ratio: 954 / 249; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.event:hover, .event:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 40px -16px var(--c), 0 0 0 2px var(--c); outline: none; }
.event:hover img { transform: scale(1.025); }
.event:active { transform: scale(.985); }

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px;
  background: rgba(10,4,18,.75);
  border-top: 1px solid var(--line);
}
.when { font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: #fff; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c); color: #120818;
  font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
  padding: 11px 16px; border-radius: 999px; white-space: nowrap;
}
.cta i { font-style: normal; transition: transform .2s; }
.event:hover .cta i { transform: translateX(3px); }

.is-soldout { pointer-events: none; filter: grayscale(.8); opacity: .65; }

.venue { text-align: center; color: var(--muted); margin-top: 28px; font-size: 14px; }
.venue strong { color: #fff; font-weight: 700; }
.foot { text-align: center; margin-top: 28px; color: var(--muted); font-size: 12px; opacity: .8; }

/* ---------- Entrance (pure CSS, no JS dependency) ---------- */
@keyframes rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .reveal:nth-child(2) { animation-delay: .05s; }
.hero .reveal:nth-child(3) { animation-delay: .12s; }
.hero .reveal:nth-child(4) { animation-delay: .19s; }
.hero .reveal:nth-child(5) { animation-delay: .26s; }
.events .event:nth-child(1) { animation-delay: .34s; }
.events .event:nth-child(2) { animation-delay: .42s; }
.events .event:nth-child(3) { animation-delay: .50s; }
.events .event:nth-child(4) { animation-delay: .58s; }
.venue { animation-delay: .66s; }

.lang button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
