/* ==========================================================================
   PINK PARTY GIRLS — base stylesheet
   ========================================================================== */

@font-face {
  font-family: "Wubberly";
  src: url("../Assets/Typeface/Wubberly-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Wubberly Shapes";
  src: url("../Assets/Typeface/WubberlyShapes-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TWK Lausanne Pan";
  src: url("../Assets/Typeface/TWKLausannePan-1000.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TWK Lausanne Pan";
  src: url("../Assets/Typeface/TWKLausannePan-1000Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --surface: #090809;
  --surface-alt: #131113;
  --surface-card: #17141a;
  --accent: #db2763;
  --line: color-mix(in srgb, var(--accent) 18%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 15%, transparent);
  --text: var(--accent);
  --text-muted: var(--accent);

  --font-display: "Wubberly", "TWK Lausanne Pan", sans-serif;
  --font-ui: "TWK Lausanne Pan", sans-serif;
  --font-body: "TWK Lausanne Pan", sans-serif;
  --font-shapes: "Wubberly Shapes", sans-serif;

  --nav-height: 84px;

  --grid-margin: 12px;
  --grid-gutter: 20px;

  /* ======================================================================
     RESPONSIVE FOUNDATION (Phase 1)
     Fluid scales generated for a 320px → 1240px viewport range. Components
     are migrated onto these tokens one at a time; until then the tokens are
     inert and only the fluid root font-size below has any visual effect.

     Breakpoints (mobile-first, use min-width):
       md = 48rem  (768px)   ·   lg = 64rem (1024px)
     ====================================================================== */

  /* Fluid type scale — assign via font-size: var(--step-N) */
  --step--1: clamp(0.833rem, 0.80rem + 0.16vw, 0.9375rem);
  --step-0:  clamp(1rem, 0.96rem + 0.20vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.39vw, 1.42rem);
  --step-2:  clamp(1.44rem, 1.31rem + 0.65vw, 1.80rem);
  --step-3:  clamp(1.728rem, 1.52rem + 1.04vw, 2.27rem);
  --step-4:  clamp(2.074rem, 1.77rem + 1.53vw, 2.87rem);
  --step-5:  clamp(2.488rem, 2.02rem + 2.34vw, 3.63rem);
  --step-6:  clamp(2.986rem, 2.29rem + 3.48vw, 4.58rem);

  /* Fluid spacing scale — use for padding / margin / gap */
  --space-2xs: clamp(0.5rem, 0.47rem + 0.16vw, 0.625rem);
  --space-xs:  clamp(0.75rem, 0.70rem + 0.24vw, 0.9375rem);
  --space-s:   clamp(1rem, 0.93rem + 0.33vw, 1.25rem);
  --space-m:   clamp(1.5rem, 1.40rem + 0.49vw, 1.875rem);
  --space-l:   clamp(2rem, 1.86rem + 0.65vw, 2.5rem);
  --space-xl:  clamp(3rem, 2.79rem + 0.98vw, 3.75rem);
  --space-2xl: clamp(4rem, 3.72rem + 1.31vw, 5rem);
  --space-3xl: clamp(6rem, 5.58rem + 1.96vw, 7.5rem);

  /* Layout primitives */
  --cols: 4;                       /* 12-col grid collapses to 4 on mobile  */
  --content-max: 62rem;            /* content-well width for the snap slides */
  --tap-min: 44px;                 /* minimum touch target                  */
  --gutter: clamp(1.25rem, 5vw, 2.5rem);  /* page side padding, fluid       */
}

@media (min-width: 48rem) {
  :root {
    --cols: 12;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Fluid root: everything sized in rem/em now scales continuously between
     phone and desktop, which removes most of the per-breakpoint "jump". */
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: radial-gradient(ellipse 900px 700px at 100% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 65%), var(--surface);
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* iOS Safari barely supports background-attachment: fixed — combined with
     viewport-fit=cover and the dynamic address bar, the fixed gradient can
     detach from the safe-area edges and leave a flat, mismatched strip
     behind the status bar / home indicator instead of extending under it.
     Touch devices get the (visually identical, static hero) scrolling
     attachment instead; see the two other "fixed" wash gradients below. */
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Flatten all page content into one stacking context so the film-grain
     overlay's mix-blend-mode blends against a single backdrop. Without this,
     any element promoted to its own compositing layer on hover (buttons and
     cards use transform: translateY) shows a rectangular blend seam. */
  isolation: isolate;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: min(1200px, 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: 0;
}

/* 12-column grid ---------------------------------------------------------
   Side padding matches --gutter (the page content inset) so nav brand and
   footer marks line up with the content column. 20px gutter between tracks.
   Use .grid-12 as the layout container and .col-start-N / .col-span-N. */

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gutter);
  width: 100%;
  padding-inline: var(--gutter);
}

.col-span-1  { grid-column: span 1; }
.col-span-2  { grid-column: span 2; }
.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-5  { grid-column: span 5; }
.col-span-6  { grid-column: span 6; }
.col-span-7  { grid-column: span 7; }
.col-span-8  { grid-column: span 8; }
.col-span-9  { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }
.col-span-11 { grid-column: span 11; }
.col-span-12 { grid-column: span 12; }

.col-start-1  { grid-column-start: 1; }
.col-start-2  { grid-column-start: 2; }
.col-start-3  { grid-column-start: 3; }
.col-start-4  { grid-column-start: 4; }
.col-start-5  { grid-column-start: 5; }
.col-start-6  { grid-column-start: 6; }
.col-start-7  { grid-column-start: 7; }
.col-start-8  { grid-column-start: 8; }
.col-start-9  { grid-column-start: 9; }
.col-start-10 { grid-column-start: 10; }
.col-start-11 { grid-column-start: 11; }
.col-start-12 { grid-column-start: 12; }

@media (max-width: 640px) {
  .grid-12 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-12 [class*="col-span-"] {
    grid-column: span 4;
  }

  .grid-12 [class*="col-start-"] {
    grid-column-start: 1;
  }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  color: var(--accent);
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.section-lede {
  color: var(--text-muted);
  opacity: 0.7;
  max-width: 42rem;
  font-size: 1.05rem;
}

section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Buttons ------------------------------------------------------------- */

.btn {
  font-family: var(--font-ui);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--surface);
}

/* Every button carries a trailing arrow that nudges on hover. The "/ ''"
   gives the pseudo-element empty alt text so screen readers skip it. */
.btn::after,
.btn-dark-outline::after {
  content: "\2192" / "";
  font-family: var(--font-ui);
  font-size: 1.1em;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn:hover::after,
.btn-dark-outline:hover::after {
  transform: translateX(4px);
}

/* Buttons that leave the site (ticket shops, etc.) get a diagonal arrow. */
.btn--external::after {
  content: "\2197" / "";
}

.btn--external:hover::after {
  transform: translate(3px, -3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Nav ------------------------------------------------------------------ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  background: transparent;
  /* Difference blend on the whole bar: the brand mark and the menu invert
     against whatever scrolls behind them — pink over the dark slides, black
     over the pink slide — with a smooth per-pixel transition at each edge.
     Must sit on .nav itself (not the children): .nav is a fixed stacking
     context, so a child's blend would have nothing behind it to react to.
     Replaces the old body[data-theme] colour swap for the nav. */
  mix-blend-mode: difference;
}

.nav__inner {
  align-items: center;
}

.nav__brand {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  font-family: var(--font-shapes);
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.nav__brand:hover,
.nav__brand.is-active {
  transform: scale(1.08);
}

.nav__links {
  grid-column: 7 / 12;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.25rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.nav__links a {
  position: relative;
  padding: 0.35rem 0;
  color: var(--accent);
}

/* Hover / current page: a thin underline rather than an opacity shift, so the
   difference blend below stays crisp (opacity < 1 would mix the backdrop
   back in and muddy the invert). */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}


.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 210;
}

.nav__toggle span,
.nav__toggle::before,
.nav__toggle::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--accent);
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.3s ease;
}

.nav__toggle::before {
  top: 13px;
}

.nav__toggle span {
  top: 19px;
}

.nav__toggle::after {
  top: 25px;
}

body.nav-open .nav__toggle::before {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav__toggle span {
  opacity: 0;
}

body.nav-open .nav__toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav__inner.grid-12 {
    display: flex;
    justify-content: space-between;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 205;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--surface);
    font-size: 1.4rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  body.nav-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Full-screen menu open: drop the difference blend so the solid panel and
     its pink links render normally instead of inverting against the slide. */
  body.nav-open .nav {
    mix-blend-mode: normal;
  }
}

/* Hero ------------------------------------------------------------------ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 4rem) 1.5rem 4rem;
  background: radial-gradient(circle at 50% 15%, var(--accent-soft), transparent 60%);
}

.hero__logo {
  width: min(260px, 60vw);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  color: var(--accent);
}

.hero p {
  font-family: var(--font-body);
  color: var(--text-muted);
  opacity: 0.7;
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 36rem;
  margin: 1.25rem auto 2.25rem;
}

.page-header {
  padding-block: calc(var(--nav-height) + clamp(2rem, 9vw, 5rem)) clamp(2rem, 6vw, 3rem);
  padding-inline: 0;
  text-align: center;
}

.page-header .section-lede {
  margin-inline: auto;
  text-align: center;
}

/* Scroll-snap homepage --------------------------------------------------- */

html.snap-page {
  /* proximity (not mandatory) on phones: a slide that is taller than the
     screen can still be scrolled through and paused mid-way. */
  scroll-snap-type: y proximity;
}

@media (min-width: 64rem) {
  html.snap-page {
    scroll-snap-type: y mandatory;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.snap-page {
    scroll-snap-type: none;
  }
}

.slide {
  /* Fill the screen when the content fits, but GROW past it (and let the
     page scroll) when it doesn't — a fixed height + overflow:hidden was
     clipping the events list on short viewports. */
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gutter);
  align-content: safe center;
  position: relative;
  padding: calc(var(--nav-height) + 1.5rem) var(--gutter);
}

/* Snap to each slide top, but not so hard that a taller-than-screen slide
   traps the scroll. */
@media (min-width: 64rem) {
  .slide {
    scroll-snap-stop: always;
  }
}

.slide--dark {
  background: radial-gradient(ellipse 900px 700px at 100% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 65%), var(--surface);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.slide--pink {
  background: var(--accent);
}

/* Home slide: black & white video background, pink gradient wash on top.
   The gradient uses background-attachment: fixed so it stays put in the
   viewport while the section content scrolls past it. */

.slide-home {
  background: var(--surface);
  overflow: hidden; /* clip the absolutely-positioned video / gradient wash */
}

.slide-home__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide-home__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.slide-home__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 1100px 850px at 100% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%), rgba(9, 8, 9, 0.45);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Touch devices: drop "fixed" attachment on every wash gradient (body,
   .slide--dark, .slide-home__overlay). iOS Safari's shaky support for it is
   what left the pink wash / grain not actually reaching behind the status
   bar and home-indicator safe areas despite viewport-fit=cover — "scroll"
   paints correctly there and looks identical, since these are static washes
   with no visible parallax to begin with. */
@media (pointer: coarse) {
  body,
  .slide--dark,
  .slide-home__overlay {
    background-attachment: scroll;
  }
}

.slide-home__logo {
  grid-column: 4 / 10;
  justify-self: center;
  width: min(20rem, 82%);
  position: relative;
  z-index: 2;
}

.slide-statement__heading {
  grid-column: 2 / 10;
  grid-row: 1;
  align-self: end;
  font-family: var(--font-body);
  color: var(--surface);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
  text-transform: none;
}

.btn-dark-outline {
  grid-column: 2 / 5;
  grid-row: 2;
  align-self: start;
  justify-self: start;
  font-family: var(--font-ui);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 2px solid var(--surface);
  color: var(--surface);
  background: transparent;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-dark-outline:hover {
  background: var(--surface);
  color: var(--accent);
  transform: translateY(-2px);
}

.slide-events__heading {
  grid-column: 2 / 10;
  grid-row: 1;
  font-size: clamp(2.25rem, 6vw, 4rem);
  color: var(--accent);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.slide-events__list {
  grid-column: 2 / 12;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.1rem);
}

/* Below md the snap slides drop the 12-column grid entirely: content stacks
   in one full-width column, so the hand-picked desktop `grid-column` spans
   (which otherwise squeeze e.g. the About button into 3 narrow columns) are
   neutralised. */
@media (max-width: 47.99rem) {
  .slide {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .slide-home__logo,
  .slide-statement__heading,
  .btn-dark-outline,
  .slide-events__heading,
  .slide-events__list {
    grid-column: 1;
    grid-row: auto;
    align-self: auto;
  }

  .slide-statement__heading {
    margin-bottom: var(--space-m);
  }

  .btn-dark-outline {
    justify-self: start;
    width: auto;
  }
}

@media (min-width: 48rem) and (max-width: 860px) {
  .slide-home__logo,
  .slide-statement__heading,
  .slide-events__heading {
    grid-column: 2 / 12;
  }
}

/* Homepage teaser reuses the .show-list component from the Shows page,
   just with tighter row padding so a few fit inside the snap slide. */

.slide-events__list .show {
  padding: clamp(1rem, 2.4vw, 1.6rem) 0;
}

.slide-events__all {
  align-self: start;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

/* Mini footer bar (fixed, used on the scroll-snap homepage) ------------- */

.mini-footer {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 190;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  /* Same trick as .nav: invert per-pixel against whatever scrolls behind it
     (pink over the dark slides, black over the pink slide, and always
     legible over the hero video) instead of a manual light/dark swap. */
  mix-blend-mode: difference;
}

.mini-footer .grid-12 {
  align-items: center;
}

.mini-footer__copy {
  grid-column: 2 / 6;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--accent);
}

.mini-footer__mark {
  grid-column: 6 / 8;
  font-family: var(--font-shapes);
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
  justify-self: center;
}

.mini-footer__social {
  grid-column: 9 / 12;
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  justify-self: end;
}

.mini-footer__social a {
  color: var(--accent);
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.3s ease;
}

.mini-footer__social a:hover {
  opacity: 1;
}

/* Mobile & tablet: the homepage footer bar stops being fixed and simply
   follows the last slide at the end of the page, with everything stacked
   and centred. */
@media (max-width: 63.99rem) {
  .mini-footer {
    position: static;
    height: auto;
    padding-block: clamp(2.5rem, 9vw, 4rem);
  }

  .mini-footer .grid-12 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  .mini-footer__copy,
  .mini-footer__mark,
  .mini-footer__social {
    display: flex;
    justify-self: auto;
  }

  .mini-footer__social {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
  }
}

/* Grids / cards ---------------------------------------------------------- */

.grid {
  display: grid;
  gap: 2rem;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 960px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

.card {
  display: block;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card__art {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--accent), #3a0f1e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  color: rgba(9, 8, 9, 0.6);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.card__body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.card__meta {
  color: var(--text-muted);
  opacity: 0.7;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.card__links {
  display: flex;
  gap: 1rem;
  font-family: var(--font-ui);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.card__links a {
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.card__links a:hover {
  opacity: 1;
}

/* Show list ---------------------------------------------------------- */

.show-list {
  border-top: 1px solid var(--line);
}

.show {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  align-items: start;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  /* Shared first-line box: the day number and the venue name both sit in a
     row of this height regardless of their font size, so their second lines
     (month ↔ address) land on the same baseline. */
  --show-lead: 1.9rem;
}

.show__date {
  font-family: var(--font-body);
  color: var(--accent);
}

.show__date .day {
  display: block;
  font-size: 1.5rem;
  line-height: var(--show-lead);
}

.show__date .month {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.7;
}

.show__info h3 {
  font-size: 1.2rem;
  line-height: var(--show-lead);
  text-transform: none;
  margin-bottom: 0;
}

.show__info p {
  color: var(--text-muted);
  opacity: 0.7;
  font-size: 0.9rem;
  line-height: 1.2;
}

/* Gratis-Badge (see js/cms.js showItemHTML) — inline after the venue name. */
.show__tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* Keep the Tickets button optically centred against the two text lines. */
.show .btn {
  align-self: center;
}

@media (max-width: 640px) {
  .show {
    grid-template-columns: 4.5rem 1fr;
  }

  .show .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Member grid ---------------------------------------------------------- */

.member__photo {
  aspect-ratio: 4 / 5;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.7;
  font-family: var(--font-ui);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.member h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.member .role {
  font-family: var(--font-ui);
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* Quote ---------------------------------------------------------- */

blockquote {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--text);
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0;
}

blockquote cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Forms ---------------------------------------------------------- */

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-family: var(--font-ui);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info h3 {
  font-size: 1.1rem;
  text-transform: none;
  margin-bottom: 0.5rem;
}

.contact-info .info-block {
  margin-bottom: 2rem;
}

.contact-info a {
  color: var(--accent);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.social-list a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.social-list a:hover {
  opacity: 1;
}

/* Teaser rows on homepage ---------------------------------------------- */

.teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 860px) {
  .teaser {
    grid-template-columns: 1fr;
  }
}

.teaser__art {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), #1a0710);
  border: 1px solid var(--line);
}

/* Footer ---------------------------------------------------------- */

.footer {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 190;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(9, 8, 9, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html:not(.snap-page) main {
  display: block;
  padding-bottom: var(--nav-height);
}

/* Mobile & tablet: drop the fixed footer bar and let it sit at the end of
   the page in normal flow. */
@media (max-width: 63.99rem) {
  .footer {
    position: static;
    height: auto;
    padding-block: clamp(2.5rem, 8vw, 4rem);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html:not(.snap-page) main {
    padding-bottom: 0;
  }
}

.footer__inner {
  align-items: center;
}

.footer__copy {
  grid-column: 2 / 6;
  font-family: var(--font-ui);
  color: var(--accent);
  font-size: 0.85rem;
}

.footer__mark {
  grid-column: 6 / 8;
  justify-self: center;
  font-family: var(--font-shapes);
  color: var(--accent);
  font-size: 32px;
  line-height: 1;
}

.footer__social {
  grid-column: 9 / 12;
  justify-self: end;
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

.footer__social a {
  color: var(--accent);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.footer__social a:hover {
  opacity: 1;
}

@media (max-width: 63.99rem) {
  .footer__inner {
    justify-items: center;
    text-align: center;
    row-gap: 1rem;
  }

  .footer__copy,
  .footer__mark,
  .footer__social {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .footer__social {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
  }
}

/* ==========================================================================
   Interactive film grain overlay (see js/grain.js)
   ========================================================================== */
#grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2147483000;
  opacity: 0.42;
  mix-blend-mode: overlay;
  image-rendering: pixelated;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  #grain-overlay {
    opacity: 0.32;
  }
}

/* Same texture, toned down on phones — at arm's length and on small,
   dense screens the full-strength grain reads as noisy rather than filmic. */
@media (max-width: 640px) {
  #grain-overlay {
    opacity: 0.22;
  }
}

/* ==========================================================================
   Micro-animations
   Small, consistent motion: one easing curve, short durations, everything
   opt-out under prefers-reduced-motion. Reveal-on-scroll is progressive —
   without JS the .reveal styles never apply (html.js-anim gate).
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-1: 0.16s;
  --dur-2: 0.3s;
  --dur-3: 0.55s;
}

::selection {
  background: var(--accent);
  color: var(--surface);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- Scroll reveal --------------------------------------------------- */

html.js-anim .reveal {
  opacity: 0;
}

/* Safety net set by js/anim.js after a timeout — never leave content hidden. */
html.anim-safe .reveal {
  opacity: 1 !important;
  animation: none !important;
}

html.js-anim .reveal.is-in {
  opacity: 1;
  animation: ppg-reveal var(--dur-3) var(--ease-out) backwards;
  animation-delay: calc(var(--stagger, 0) * 55ms);
}

@keyframes ppg-reveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

/* --- Page-load intro ----------------------------------------------- */

@keyframes ppg-drop-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes ppg-logo-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}

.nav__inner > * {
  animation: ppg-drop-in var(--dur-3) var(--ease-out) backwards;
}
.nav__brand { animation-delay: 0.08s; }
.nav__links,
.nav__toggle { animation-delay: 0.16s; }

.slide-home__logo {
  animation:
    ppg-logo-in 0.7s var(--ease-out) backwards,
    ppg-float 7s ease-in-out 0.7s infinite;
}

@keyframes ppg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Button feedback --------------------------------------------------- */

.btn { will-change: transform; }

.btn:active,
.btn-dark-outline:active,
.slide-events__all:active {
  transform: translateY(0) scale(0.96);
  transition-duration: var(--dur-1);
}

.btn::after,
.btn-dark-outline::after {
  transition: transform var(--dur-2) var(--ease-spring);
}

/* --- Card hover ------------------------------------------------------- */

.card__art {
  transition: transform var(--dur-3) var(--ease-out);
}
.card:hover .card__art {
  transform: scale(1.05);
}
.card__body h3 {
  transition: color var(--dur-1) ease;
}
.card:hover .card__body h3 {
  color: var(--accent);
}

/* --- Show rows ------------------------------------------------------- */

.show {
  transition: background var(--dur-2) var(--ease-out);
}
.show:hover {
  background: var(--accent-soft);
}
.show__date .day {
  transition: transform var(--dur-2) var(--ease-spring);
}
.show:hover .show__date .day {
  transform: translateX(4px);
}
.show__info h3 {
  transition: color var(--dur-1) ease;
}
.show:hover .show__info h3 {
  color: var(--accent);
}

/* --- Band members ------------------------------------------------- */

.member__photo {
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) ease;
}
.member:hover .member__photo {
  transform: translateY(-5px);
  border-color: var(--accent);
}

/* --- Social links ------------------------------------------------- */

.social-list a,
.footer__social a,
.mini-footer__social a {
  transition: opacity var(--dur-1) ease, transform var(--dur-2) var(--ease-spring);
  will-change: transform;
}
.social-list a:hover,
.footer__social a:hover,
.mini-footer__social a:hover {
  transform: translateY(-3px);
}

/* --- Forms ------------------------------------------------------- */

.form-field input,
.form-field textarea {
  transition: border-color var(--dur-2) ease, box-shadow var(--dur-2) ease, background var(--dur-2) ease;
}
.form-field input:focus,
.form-field textarea:focus {
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field label {
  transition: color var(--dur-1) ease, opacity var(--dur-1) ease;
}
.form-field:focus-within label {
  color: var(--accent);
  opacity: 1;
}

/* --- Grain overlay: fade in on load -------------------------------- */

@keyframes ppg-grain-in {
  from { opacity: 0; }
}
#grain-overlay {
  animation: ppg-grain-in 1.2s ease 0.3s backwards;
}

/* --- Parallax (js/parallax.js sets --py per element) --------------- */

[data-parallax] {
  translate: 0 var(--py, 0px);
}

/* The hero video is oversized so the (now stronger) parallax shift never
   exposes an edge, even on shorter phone viewports. */
.slide-home__video[data-parallax] {
  top: -22%;
  bottom: auto;
  height: 144%;
  will-change: translate;
}
.slide-home__logo[data-parallax] {
  will-change: translate;
}

/* --- Reduced motion: stop all of the above ------------------------- */

@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal,
  html.js-anim .reveal.is-in {
    opacity: 1;
    animation: none;
  }

  .nav__inner > *,
  .slide-home__logo,
  #grain-overlay {
    animation: none;
  }

  .card:hover .card__art,
  .show:hover .show__date .day,
  .member:hover .member__photo,
  .social-list a:hover,
  .footer__social a:hover,
  .mini-footer__social a:hover,
  .btn:active,
  .btn-dark-outline:active {
    transform: none;
  }
}

/* ==========================================================================
   Easter egg: every whole-word "pink" gets a marker-highlight chip — a dark
   card with pink lettering, like a highlighter stroke. Click one to pick your
   own pink hue: it recolors --accent (and everything derived from it — text,
   buttons, borders, backgrounds — site-wide, not just the chips), saved and
   reapplied on every visit. See js/pink-egg.js.
   ========================================================================== */

.pink-word {
  display: inline-block;
  background: var(--surface-card);
  color: var(--accent);
  padding: 0.2em 0.32em 0.24em;
  margin-inline: 0.03em;
  border-radius: 3px;
  box-shadow: 0 0 0 2px var(--accent);
  transform: rotate(-1deg);
  cursor: pointer;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  transition: transform 0.2s var(--ease-out, ease), box-shadow 0.2s ease, color 0.15s ease;
}

.pink-word:nth-of-type(even) {
  transform: rotate(0.8deg);
}

.pink-word:hover,
.pink-word:focus-visible {
  transform: rotate(0deg) translateY(-1px) scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 0 2px var(--accent);
  outline: none;
}

.pink-picker {
  /* fixed (viewport-relative), not absolute (document-relative) — a chip
     can sit inside a position: fixed ancestor (the footer), where an
     absolute + scrollY offset put this off-screen below the fold. It
     already closes on scroll (see boot()), so not tracking scroll here
     costs nothing. */
  position: fixed;
  z-index: 500;
  width: 232px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.15rem 1.15rem;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
  font-family: var(--font-ui);
  color: var(--text);
  animation: pink-picker-in 0.16s var(--ease-out, ease) both;
}

@keyframes pink-picker-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
}

.pink-picker__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.pink-picker__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.pink-picker__swatch {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

/* Custom slider — the native control renders as a plain grey OS widget,
   which clashes hard with the rest of the popover's styling. The track
   shows the full selectable pink range (magenta → pink-red) so the thumb
   position also reads as "where in that range you are". */
.pink-picker input[type="range"] {
  flex: 1;
  /* Flex items default to min-width: auto, and a native range input's
     intrinsic width can exceed the popover — without this it pushes past
     the card's rounded edge instead of shrinking to fit. */
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  background: transparent;
  cursor: pointer;
  outline: none;
  accent-color: var(--accent); /* fallback where the pseudo-elements below don't apply */
}

.pink-picker input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, hsl(300, 71%, 51%), hsl(355, 71%, 51%));
}

.pink-picker input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s var(--ease-out, ease);
}

.pink-picker input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, hsl(300, 71%, 51%), hsl(355, 71%, 51%));
}

.pink-picker input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s var(--ease-out, ease);
}

.pink-picker input[type="range"]::-webkit-slider-thumb:hover,
.pink-picker input[type="range"]:focus-visible::-webkit-slider-thumb {
  transform: scale(1.12);
}

.pink-picker input[type="range"]::-moz-range-thumb:hover,
.pink-picker input[type="range"]:focus-visible::-moz-range-thumb {
  transform: scale(1.12);
}

/* The hero wordmark is a flat-color SVG <img>, so CSS custom properties
   inside it are out of reach — shift its color with a hue-rotate filter
   instead, kept in sync with --accent by js/pink-egg.js. Scoped to this one
   element only: other images (uploaded band photos, cover art) must never
   get this filter. */
.slide-home__logo {
  filter: hue-rotate(var(--logo-hue-rotate, 0deg));
}

@media (prefers-reduced-motion: reduce) {
  .pink-word {
    transition: none;
  }
  .pink-picker {
    animation: none;
  }
}

/* ==========================================================================
   Water cursor (see js/water-cursor.js)
   A droplet of water in place of the pointer. The bend in the page behind it
   is a real refraction — an SVG displacement map running as backdrop-filter,
   built in JS — so everything here is only the glass on top of it: rim light,
   specular highlights, and the soap-film iridescence around the edge.
   The html class is added by the script, so without JS (or on touch, or under
   prefers-reduced-motion) the native cursor is never hidden.
   ========================================================================== */
html.has-water-cursor,
html.has-water-cursor body,
html.has-water-cursor a,
html.has-water-cursor button,
html.has-water-cursor .btn,
html.has-water-cursor [role="button"],
html.has-water-cursor summary,
html.has-water-cursor label,
html.has-water-cursor input[type="range"] {
  cursor: none;
}

/* Typing needs a caret you can aim, so text fields keep a real cursor and the
   droplet shrinks back out of the way instead (see .is-over-text). */
html.has-water-cursor input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.has-water-cursor textarea,
html.has-water-cursor [contenteditable="true"] {
  cursor: text;
}

html.has-water-cursor select {
  cursor: default;
}

#water-cursor-defs {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
}

#water-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Under the film grain. Above it, the grain lands inside the backdrop and
     the refraction compresses all that noise into the rim, which silts the
     drop up into a grey ball. Below it, the lens gets clean page content and
     the grain simply lies over the top, the same as everywhere else. */
  z-index: 2147482000;

  /* The interference colours are mixed out of --accent rather than hard-coded,
     so the droplet carries the site's pink and follows the hue picker. The
     neighbours (a little cyan, a little gold, a little white) only shift the
     mix far enough to read as a film — pink stays the dominant note. */
  --wc-c1: color-mix(in srgb, var(--accent) 30%, transparent);
  --wc-c2: color-mix(in srgb, color-mix(in oklab, var(--accent) 62%, #7ad9ff) 27%, transparent);
  --wc-c3: color-mix(in srgb, color-mix(in oklab, var(--accent) 68%, #ffd98a) 23%, transparent);
  --wc-c4: color-mix(in srgb, color-mix(in oklab, var(--accent) 55%, #ffffff) 26%, transparent);
  --wc-c5: color-mix(in srgb, color-mix(in oklab, var(--accent) 58%, #9effe0) 22%, transparent);
  --wc-rim: color-mix(in srgb, var(--accent) 40%, #ffffff);
}

/* Nothing on the wrapper may form a backdrop root — opacity below 1, a
   filter, a mask, or contain: paint would all cut the droplet off from the
   page behind it and leave the refraction rendering nothing at all. That is
   why the fade lives in --wc-alpha on the children instead, and why
   will-change lists transform only. */
.wc-drop {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  will-change: transform;
}

.wc-drop__lens,
.wc-drop__film,
.wc-drop__gloss {
  opacity: var(--wc-alpha, 0);
}

/* Diameters come from js/water-cursor.js — the SVG filter needs them in
   pixels, so the script owns the number and hands it over as a variable. */
.wc-drop--main {
  width: var(--wc-size, 136px);
  height: var(--wc-size, 136px);
}

.wc-drop--sat {
  width: var(--wc-sat-size, 46px);
  height: var(--wc-sat-size, 46px);
}

#water-cursor.no-satellite .wc-drop--sat {
  display: none;
}

/* The refracting body. The filter list runs left to right: bend the backdrop
   first, then push saturation and light the way a water bead concentrates
   what passes through it. */
.wc-drop__lens {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* Tinted rather than brightened. Lifting the backdrop turns the drop into
     frosted plastic; darkening it slightly and pushing contrast and colour
     is what gives glass its depth and lets the fringes read. */
  -webkit-backdrop-filter: url(#wc-refract) saturate(1.55) contrast(1.1) brightness(0.94);
  backdrop-filter: url(#wc-refract) saturate(1.55) contrast(1.1) brightness(0.94);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 16px -4px rgba(0, 0, 0, 0.45),
    0 14px 32px -20px rgba(0, 0, 0, 0.55);
}

.wc-drop--sat .wc-drop__lens {
  -webkit-backdrop-filter: url(#wc-refract-sat) saturate(1.4) brightness(1.05);
  backdrop-filter: url(#wc-refract-sat) saturate(1.4) brightness(1.05);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 8px 18px -12px rgba(0, 0, 0, 0.5);
}

/* Where backdrop-filter won't take an SVG filter (Safari, Firefox) the bend
   is gone, so lean on blur and saturation to keep it reading as a bubble. */
#water-cursor.is-flat .wc-drop__lens {
  -webkit-backdrop-filter: blur(7px) saturate(1.7) brightness(1.08);
  backdrop-filter: blur(7px) saturate(1.7) brightness(1.08);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.02) 40%,
    rgba(255, 255, 255, 0.12) 78%,
    rgba(255, 255, 255, 0.03) 100%
  );
}

/* Soap-film interference: the shifting colour in a bubble wall, which is
   thinnest (and so most colourful) toward the rim.

   Built entirely from off-centre ring gradients, with no mask and no blend
   mode anywhere. That restriction is not cosmetic: a masked or blended child
   inside this transformed wrapper cuts the sibling lens off from the page
   and its backdrop-filter then refracts nothing at all. Everything above the
   lens has to be plain alpha over plain background layers.

   Each ring peaks at a different point on the circle, so the colours land in
   bands rather than an even halo, and the whole layer turns slowly. */
.wc-drop__film {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* Painted by js/water-cursor.js: value noise mapped through a palette
     centred on --accent, with the radial falloff baked into its alpha. No
     mask and no blend mode here — either one would cut the lens beneath off
     from the page and leave the refraction with nothing to bend. */
  background: var(--wc-film-a) center / 100% 100% no-repeat;
  animation: wc-film-a 19s linear infinite;
}

/* A second print of the same field, turning the other way. Where the two
   cross, the colour drifts and never repeats. */
.wc-drop__film::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wc-film-b) center / 100% 100% no-repeat;
  opacity: 0.75;
  animation: wc-film-b 13s linear infinite reverse;
}

@keyframes wc-film-a {
  to {
    transform: rotate(1turn);
  }
}

@keyframes wc-film-b {
  to {
    transform: rotate(1turn) scale(1.06);
  }
}

/* Highlights sit above the lens so they stay crisp — a droplet's specular
   catch doesn't get refracted along with the page behind it. */
.wc-drop__gloss {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* A real bead's highlight is a small bright core inside a much wider,
     much fainter halo. Painting it as one big opaque blob is what reads as
     cartoon glass, so the core here is tiny and the falloff does the work. */
  background:
    /* specular core */
    radial-gradient(
      ellipse 5.5% 4% at 31% 22%,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(255, 255, 255, 0.22) 48%,
      rgba(255, 255, 255, 0) 100%
    ),
    /* its halo — wide and barely there */
    radial-gradient(
      ellipse 18% 14% at 31% 22%,
      rgba(255, 255, 255, 0.11) 0%,
      rgba(255, 255, 255, 0.03) 48%,
      rgba(255, 255, 255, 0) 100%
    ),
    /* a second, weaker source catching the top right */
    radial-gradient(
      ellipse 4% 3% at 70% 30%,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    /* caustic: light gathered by the lens and thrown against the far wall,
       diffuse rather than a drawn arc */
    radial-gradient(
      ellipse 24% 5.5% at 53% 88%,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.04) 55%,
      rgba(255, 255, 255, 0) 100%
    ),
    /* the rim, kept to a hairline so it draws the silhouette without
       fogging the face. Tinted, unlike the speculars — those stay white
       because they are the light source itself. */
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0) 90%,
      color-mix(in srgb, var(--wc-rim) 20%, transparent) 96.5%,
      color-mix(in srgb, var(--wc-rim) 4%, transparent) 100%
    );
}

.wc-drop--sat .wc-drop__film {
  animation-duration: 7s;
  opacity: calc(var(--wc-alpha, 0) * 0.8);
}

/* Over a link the drop swells and its rim lights up — the same read as a
   hover state, just made of water. */
#water-cursor.is-over-link .wc-drop--main .wc-drop__lens {
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.7),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.4),
    inset 0 -14px 28px -14px rgba(255, 255, 255, 0.8),
    0 18px 40px -18px rgba(0, 0, 0, 0.7);
  transition: box-shadow 0.25s var(--ease-out, ease);
}

/* No filter, mask or blend on this layer — see the note on .wc-drop__film. */
#water-cursor.is-over-link .wc-drop--main .wc-drop__film {
  opacity: calc(var(--wc-alpha, 0) * 1.15);
}

#water-cursor.is-over-text .wc-drop--main .wc-drop__film {
  opacity: calc(var(--wc-alpha, 0) * 0.5);
}

/* Click ripple: a ring of surface tension leaving the impact point. */
.wc-splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  pointer-events: none;
}

.wc-splash__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: scale(0.28);
}

.wc-splash.is-on .wc-splash__ring {
  animation: wc-ripple 0.52s cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
}

@keyframes wc-ripple {
  0% {
    opacity: 0.75;
    transform: scale(0.26);
    border-width: 3px;
  }
  100% {
    opacity: 0;
    transform: scale(1);
    border-width: 0.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #water-cursor {
    display: none;
  }
}
