/* ==========================================================================
   Events page — layered on top of style.css
   Reuses the global tokens, nav, brand, .btn, .reveal and footer.
   ========================================================================== */

/* .slab and the serif body face are redeclared here rather than pulled out of
   about.css / music.css, so those pages' stylesheets stay untouched. */
:root {
  --f-slab:       'Alfa Slab One', Georgia, serif;
  --f-serif-body: 'Lora', Georgia, 'Times New Roman', serif;
}

.slab {
  display: block;
  font-family: var(--f-slab);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 1;
  filter: url(#distress-heavy);
}
.slab--accent { color: var(--red); }


/* ==========================================================================
   Events hero
   Mirrored from About/Music — photo LEFT, type RIGHT. The boat photograph
   puts Rowshanara on the left of the frame, so a right-hand photo panel
   would drop the darkening gradient straight over her.
   ========================================================================== */
.ehero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: var(--black);
  overflow: hidden;
  padding: calc(var(--nav-h) + 46px) 0 140px;
}

.ehero__photo {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 66%;
}
.ehero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* holds her, the boat, the water and the building in frame */
  object-position: 18% 46%;
}

/* Fades right-to-left into the type column. Deliberately light — the brief
   asks that the photograph stay rich rather than heavily darkened. */
.ehero__grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg,
      var(--black)          0%,
      var(--black)          6%,
      rgba(10,10,10,.9)    17%,
      rgba(10,10,10,.62)   28%,
      rgba(10,10,10,.34)   38%,
      rgba(10,10,10,.14)   48%,
      rgba(10,10,10,.04)   56%,
      rgba(10,10,10,0)     64%),
    linear-gradient(0deg,  rgba(10,10,10,.4) 0%, rgba(10,10,10,0) 22%),
    linear-gradient(180deg, rgba(10,10,10,.3) 0%, rgba(10,10,10,0) 15%);
}

.ehero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1420px;
  margin-inline: auto;
  padding-inline: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.ehero__title {
  margin: 20px 0 0;
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: .86;
}
.ehero__title .script {
  margin-top: .04em;
  font-size: clamp(3rem, 6.6vw, 5.6rem);
  line-height: .92;
}

.ehero__lede {
  max-width: 28ch;
  margin: 28px 0 36px;
  font-family: var(--f-serif-body);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text);
}

.ehero__tear {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 3;
  width: 100%;
  height: 104px;
  fill: var(--black);
}


/* ==========================================================================
   Intro
   ========================================================================== */
.eintro {
  position: relative;
  padding: 90px 0 18px;
  background: var(--black);
}
.eintro__inner {
  position: relative;
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}

.eintro__flame {
  position: absolute;
  top: -46px; left: 50%;
  width: 62px; height: 104px;
  margin-left: -31px;
  color: var(--red);
  opacity: .5;
  pointer-events: none;
}

.eintro__title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.3vw, 3.4rem);
  line-height: .96;
}
.eintro__title .slab { margin-top: .04em; }

.eintro__lede {
  margin: 0;
  font-family: var(--f-serif-body);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
}


/* ==========================================================================
   Event timeline — alternating editorial rows on a red spine
   ========================================================================== */
.etimeline {
  position: relative;
  padding: 74px 0 92px;
  background: var(--black);
}

.events {
  position: relative;
  margin: 0; padding: 0;
  list-style: none;
}

/* the red spine */
.events::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px; left: 50%;
  width: 1px;
  margin-left: -.5px;
  background: linear-gradient(180deg,
    rgba(230,48,48,0) 0%,
    rgba(230,48,48,.45) 6%,
    rgba(230,48,48,.45) 94%,
    rgba(230,48,48,0) 100%);
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 84px;
}
.event:last-child { margin-bottom: 0; }

/* node on the spine */
.event::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(230, 48, 48, .15);
  transition: box-shadow .45s var(--ease);
}
.event:hover::before { box-shadow: 0 0 0 9px rgba(230, 48, 48, .2); }

.event__media {
  grid-column: 1;
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .45s var(--ease);
}
.event__media--wide { aspect-ratio: 3 / 2; }

.event__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.004);
  transition: transform 1.15s var(--ease);
}

/* light cinematic seat, keeps the real colours of the performance visible */
.event__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,.38) 0%, rgba(10,10,10,.04) 42%, rgba(10,10,10,0) 68%);
  transition: opacity .45s var(--ease);
}

.event:hover .event__media img { transform: scale(1.05); }
.event:hover .event__media { border-color: rgba(230, 48, 48, .6); }
.event:hover .event__veil { opacity: .6; }

.event__body { grid-column: 3; }

/* flipped rows: copy left, photo right */
.event--flip .event__media { grid-column: 3; }
.event--flip .event__body  { grid-column: 1; text-align: right; }
.event--flip .event__meta  { justify-content: flex-end; }

.event__index {
  display: block;
  margin-bottom: 10px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--red);
}

.event__title {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.04;
  letter-spacing: .012em;
  text-transform: uppercase;
  color: var(--white);
}
.event__title-sub {
  display: block;
  margin-top: 5px;
  font-size: .62em;
  color: var(--muted);
  letter-spacing: .03em;
}

.event__meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 13px;
  font-family: var(--f-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.event__year  { color: var(--red); }
.event__place { color: var(--muted-2); }
.event__dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(230, 48, 48, .7);
  flex: none;
}

.event__text {
  max-width: 42ch;
  margin: 0;
  font-family: var(--f-serif-body);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}
.event--flip .event__text { margin-left: auto; }


/* ==========================================================================
   Closing
   ========================================================================== */
.eclose {
  padding: 0 0 96px;
  background: var(--black);
}
.eclose__inner {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  padding-top: 56px;
  border-top: 1px solid rgba(230, 48, 48, .28);
}

.eclose__title {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.1vw, 3.2rem);
  line-height: .96;
}
.eclose__title .slab { margin-top: .04em; }

.eclose__lede {
  margin: 0 0 30px;
  font-family: var(--f-serif-body);
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--muted);
}


/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .ehero__content { padding-inline: 28px; }
  .event { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); margin-bottom: 66px; }
}

@media (max-width: 900px) {
  .ehero {
    align-items: flex-end;
    padding: calc(var(--nav-h) + 200px) 0 126px;
  }
  .ehero__photo { width: 100%; }
  .ehero__photo img { object-position: 26% 44%; }
  .ehero__grade {
    background:
      linear-gradient(0deg, var(--black) 20%, rgba(10,10,10,.64) 44%, rgba(10,10,10,.06) 70%),
      linear-gradient(180deg, rgba(10,10,10,.3) 0%, rgba(10,10,10,0) 20%);
  }
  .ehero__content { align-items: flex-start; text-align: left; }
  .ehero__title { font-size: clamp(3rem, 12.5vw, 4.9rem); }
  .ehero__title .script { font-size: clamp(2.5rem, 10vw, 4rem); }
  .ehero__lede { max-width: 32ch; }
  .ehero__tear { height: 64px; }

  .eintro { padding-top: 70px; }
  .etimeline { padding: 58px 0 74px; }

  /* spine moves to the left rail, every row reads the same way */
  .events::before { left: 5px; margin-left: 0; }

  .event {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-left: 34px;
    margin-bottom: 58px;
  }
  .event::before { left: 5px; top: 8px; margin: 0 0 0 -5.5px; }

  .event__media,
  .event--flip .event__media { grid-column: 1; grid-row: 1; }
  .event__body,
  .event--flip .event__body  { grid-column: 1; grid-row: 2; text-align: left; }
  .event--flip .event__meta  { justify-content: flex-start; }
  .event--flip .event__text  { margin-left: 0; }
}

@media (max-width: 600px) {
  .ehero__content { padding-inline: 22px; }
  .ehero { padding-top: calc(var(--nav-h) + 160px); }
  .ehero__lede { max-width: 28ch; font-size: 15.5px; }

  .eintro__inner,
  .eclose__inner { max-width: 100%; }

  .event { padding-left: 26px; margin-bottom: 48px; }
  .events::before { left: 4px; }
  .event::before { left: 4px; }

  .event__media,
  .event__media--wide { aspect-ratio: 4 / 5; }

  .event__title { font-size: 1.4rem; }
  .event__text { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .event__media img,
  .event__veil,
  .event::before { transition: none; }
}
