/* Groove Events — history one-pager */

:root {
  --aqua: #b3dfe0;      /* logo background */
  --aqua-deep: #9fd3d4;
  --coral: #e95d3a;     /* logo orange-red */
  --mint: #7ecbb7;      /* logo green */
  --ink: #111312;       /* logo outline */
  --paper: #fbf7ef;
  --paper-2: #f3ede1;
  --muted: #5b5f5c;
  --line: #1113121f;

  --display: "Lexend", system-ui, sans-serif;
  --body: "Lexend", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Spaced caps, as in "E V E N T S" */
.eyebrow {
  font: 600 12px/1.4 var(--display);
  letter-spacing: .42em;
  text-transform: uppercase;
}

/* Two-tone outlined type: echoes the split letters of the logo */
.split {
  /* Bottom layer: solid ink glyph with a thick stroke = the outline.
     Top layer (::after): the coral/mint fill, which hides the stroke's inner half
     and any overlapping contours inside the variable font's glyphs. */
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  -webkit-text-stroke: .09em var(--ink);
  line-height: .9;
  letter-spacing: .01em;
}
.split::after {
  content: attr(data-t);
  position: absolute; top: 0; left: 0;
  padding-right: .2em; /* keep the last glyph inside the clipped background */
  white-space: nowrap;
  -webkit-text-stroke: 0;
  color: transparent;
  background: linear-gradient(180deg, var(--coral) 0 52%, var(--mint) 52% 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.split.flip::after { background: linear-gradient(180deg, var(--mint) 0 52%, var(--coral) 52% 100%); -webkit-background-clip: text; background-clip: text; }

/* Coral / mint stripe used as a divider */
.stripe {
  height: 16px;
  border-block: 3px solid var(--ink);
  background: linear-gradient(90deg, var(--coral) 0 50%, var(--mint) 50% 100%);
}

/* ---------- Top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.bar__mark { flex: none; display: block; width: 34px; height: 34px; border-radius: 8px; overflow: hidden; border: 2px solid var(--ink); }
.bar__mark img { width: 100%; height: 100%; }
.years {
  flex: 1; min-width: 0;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  padding-right: 24px;
}
.years::-webkit-scrollbar { display: none; }
.years a {
  flex: none; text-decoration: none;
  font: 500 14px/1 var(--display); letter-spacing: .02em;
  padding: 9px 11px; border-radius: 999px; color: var(--muted);
  transition: background .2s, color .2s;
}
.years a:hover { color: var(--ink); background: var(--paper-2); }
.years a.is-active { background: var(--ink); color: var(--paper); }
.social { display: flex; gap: 6px; flex: none; }
.social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--ink); transition: background .2s, color .2s;
}
.social a:hover { background: var(--ink); color: var(--paper); }
.social svg { width: 18px; height: 18px; }
.hero__social { gap: 10px; }
.hero__social a { width: 44px; height: 44px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--aqua);
  min-height: min(92svh, 900px);
  display: grid; place-items: center; text-align: center;
  padding: 96px var(--gutter) 72px;
  position: relative;
}
.hero__inner { display: grid; justify-items: center; gap: clamp(28px, 4vw, 44px); width: 100%; }
.hero__h1 { width: 100%; }
.hero__logo { width: min(860px, 100%); margin-inline: auto; }
.hero__lead { font-size: clamp(18px, 2.1vw, 24px); font-weight: 300; max-width: 30ch; line-height: 1.45; }
.hero__years {
  display: inline-flex; align-items: center; gap: 14px;
  font: 700 clamp(15px, 1.6vw, 18px)/1 var(--display); letter-spacing: .3em;
}
.hero__years span { display: block; width: clamp(40px, 8vw, 96px); height: 3px; background: var(--ink); }
.hero__down {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0;
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center; text-decoration: none;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero__down { animation: none; } }

/* ---------- Intro ---------- */
.intro { padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 100px); }
.intro__statement {
  font: 600 clamp(30px, 5.2vw, 68px)/1.08 var(--display);
  letter-spacing: -.025em; max-width: 18ch;
}
.intro__statement em { font-style: normal; color: var(--coral); }
.intro__body { margin-top: 32px; max-width: 60ch; font-size: clamp(17px, 1.5vw, 19px); color: #2c302d; }
.stats {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--ink);
}
.stat { padding: 22px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(48px, 7vw, 96px); }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- What we do ---------- */
.kinds { padding: clamp(64px, 9vw, 120px) 0; background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title { font: 700 clamp(34px, 5vw, 60px)/1 var(--display); letter-spacing: -.03em; }
.section-head p { max-width: 42ch; color: var(--muted); }
.kinds__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.kind {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 18px;
  padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 12px;
}
.kind__no { font-size: 54px; }
.kind h3 { font: 600 20px/1.2 var(--display); letter-spacing: -.01em; }
.kind p { font-size: 15px; line-height: 1.5; color: #3a3e3b; }
.kind ul { list-style: none; margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.kind li + li { margin-top: 3px; }

/* ---------- Timeline ---------- */
.history { padding: clamp(72px, 10vw, 128px) 0 clamp(40px, 6vw, 80px); }
.history > .wrap > .section-head { margin-bottom: clamp(24px, 4vw, 40px); }

.year {
  display: grid; grid-template-columns: minmax(220px, 1fr) 2.6fr; gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 3px solid var(--ink);
}
.year__side { align-self: start; position: sticky; top: 84px; }
.year__num { font-size: clamp(72px, 8.4vw, 118px); }
.year__title { margin-top: 18px; font: 600 20px/1.25 var(--display); letter-spacing: -.01em; }
.year__note { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 32ch; }

.events { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 32px); align-content: start; }
.events.one { grid-template-columns: 1fr; }
.event { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.event--wide { grid-column: 1 / -1; }
.event__img {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--paper-2); border-radius: 14px; overflow: hidden;
  outline: 2px solid var(--ink); outline-offset: -2px;
}
.event__img img { width: 100%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.event__img:hover img { transform: scale(1.025); }
.event__img:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
/* Square / tall artwork shown at a sensible size */
.event--poster .event__img { max-width: 420px; }
.event__meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.event h3 { font: 600 clamp(18px, 1.7vw, 22px)/1.25 var(--display); letter-spacing: -.015em; }
.event p { font-size: 15px; line-height: 1.55; color: #3a3e3b; }

.tag {
  display: inline-block; font: 600 10.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 9px 5px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink);
}
.tag--regular  { background: var(--mint); }
.tag--annual   { background: var(--aqua); }
.tag--special  { background: #f6d9c9; }
.tag--feature  { background: var(--coral); color: #fff; border-color: var(--coral); }
.tag--festival { background: var(--ink); color: var(--paper); }

/* Compact list of show nights (Gluttony seasons, Summer Sounds) */
.nights {
  grid-column: 1 / -1;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  border-top: 1px solid var(--line);
}
.nights li { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); padding-right: 16px; }
.nights time { flex: none; width: 52px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nights span { font-weight: 500; font-size: 15px; line-height: 1.35; }

/* Poster strips */
.thumbs {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.thumbs .event__img { border-radius: 10px; aspect-ratio: 2 / 1; }
.thumbs .event__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Artist wall ---------- */
.wall { background: var(--ink); color: var(--paper); padding: clamp(72px, 10vw, 140px) 0; overflow: hidden; }
.wall .eyebrow { color: var(--mint); }
.wall .section-title { margin-top: 14px; }
.wall__names {
  margin-top: clamp(32px, 5vw, 56px);
  font: 600 clamp(22px, 3.4vw, 44px)/1.3 var(--display); letter-spacing: -.02em;
  text-wrap: balance;
}
.wall__names span { white-space: nowrap; }
.wall__names span:nth-child(3n+1) { color: var(--coral); }
.wall__names span:nth-child(3n+2) { color: var(--mint); }
.wall__names span:not(:last-child)::after { content: "\a0/"; color: #ffffff40; font-weight: 300; }

/* ---------- Hire + next ---------- */
.hire { padding: clamp(72px, 10vw, 128px) 0; }
.hire__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.hire__card { border: 2px solid var(--ink); border-radius: 22px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.hire__card--next { background: var(--coral); color: #fff; border-color: var(--ink); }
.hire__card h2 { font: 700 clamp(28px, 3.6vw, 44px)/1.05 var(--display); letter-spacing: -.03em; }
.hire__card p { max-width: 46ch; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 600 15px/1 var(--display); padding: 15px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
  transition: transform .2s, background .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.hire__card--next .btn { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Footer ---------- */
.foot { background: var(--aqua); padding: clamp(56px, 8vw, 96px) 0 32px; text-align: center; }
.foot__logo { width: min(420px, 80%); margin-inline: auto; }
.foot__tag { margin-top: 22px; }
.foot .social { justify-content: center; margin-top: 28px; }
.foot .social a { width: 48px; height: 48px; }
.foot small { display: block; margin-top: 40px; font-size: 13px; color: #2f4a4a; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 94svh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 12, 11, .9); }
.lightbox img { max-width: 100%; max-height: 84svh; width: auto; margin-inline: auto; border-radius: 10px; }
.lightbox p { color: #fff; text-align: center; margin-top: 14px; font-size: 15px; }
.lightbox button {
  position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid #fff; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .kinds__grid { grid-template-columns: repeat(2, 1fr); }
  .kind:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .year { grid-template-columns: 1fr; }
  .year__side { position: static; }
  .hire__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { margin-top: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .events { grid-template-columns: 1fr; }
  .kinds__grid { grid-template-columns: 1fr; }
  .nights { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
}
