/* ======================================================
   Intro loader — "5 · 6 · 7 · 8" count-in, curtain lifts
   ====================================================== */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--pink); color: var(--ink);
  cursor: pointer;
  /* failsafe: never block the page if JS dies */
  animation: loaderFailsafe .01s 7s forwards;
}
html:not(.js) .loader, .intro-skip .loader { display: none; }
html.js:not(.is-loaded):not(.intro-skip) body { overflow: hidden; }

.loader::after {
  /* curved hem that shows while the curtain lifts */
  content: ""; position: absolute; left: -5%; width: 110%; top: calc(100% - 1px); height: 14vh;
  background: var(--pink); border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.loader.is-leaving { transform: translateY(calc(-100% - 15vh)); transition: transform 1.05s cubic-bezier(.76, 0, .24, 1); }

.loader__logo { position: absolute; top: clamp(18px, 4vh, 36px); left: 50%; width: 76px; height: 76px; translate: -50% 0; }

.loader__count { position: relative; width: 100%; height: min(58vh, 82vw); font: 400 min(58vh, 82vw)/1 var(--f-display); }
.loader__count span {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -46%;
  opacity: 0; transform: translateY(14%) scale(.9) rotate(4deg);
  transition: transform .42s cubic-bezier(.2, 1.3, .3, 1), opacity .16s linear;
}
.loader__count span.is-on { opacity: 1; transform: none; }
.loader__count span.is-off { opacity: 0; transform: translateY(-16%) scale(1.06) rotate(-3deg); transition-duration: .3s, .2s; }

.loader__beats { position: absolute; bottom: clamp(70px, 13vh, 120px); left: 50%; translate: -50% 0; display: flex; gap: 14px; }
.loader__beats i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); transition: background .15s, transform .2s; }
.loader[data-beat="1"] .loader__beats i:nth-child(-n+1),
.loader[data-beat="2"] .loader__beats i:nth-child(-n+2),
.loader[data-beat="3"] .loader__beats i:nth-child(-n+3),
.loader[data-beat="4"] .loader__beats i:nth-child(-n+4) { background: var(--ink); transform: scale(1.15); }

.loader__cap {
  position: absolute; bottom: clamp(22px, 5vh, 44px); left: 0; right: 0; margin: 0; text-align: center;
  font: italic 400 clamp(24px, 3vw, 34px)/1 var(--f-serif);
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.loader[data-beat="4"] .loader__cap { opacity: 1; transform: none; }

@keyframes loaderFailsafe { to { visibility: hidden; opacity: 0; } }

/* ======================================================
   Hero — layered photo scene with a cursor "lens" reveal
   Layers (back → front): wall · photo · title · cut-out
   The alt scene (pink screen-print) is clipped to the lens.
   ====================================================== */
.hero {
  --wall-ink: #1a181b;
  --mx: 50%; --my: 50%; --r: 0px;     /* lens, driven by hero.js */
  --px: 0; --py: 0;                   /* parallax, -1..1 */
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 150px var(--gutter) 34px;
  color: var(--ink);
  background: #c4c0c2;
}

.scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; perspective: 1600px; perspective-origin: 50% 40%; }
.scene--main { z-index: 0; }
.scene--alt {
  z-index: 1;
  background: var(--pink);
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 calc(var(--r) - 1.5px), transparent var(--r));
          mask-image: radial-gradient(circle at var(--mx) var(--my), #000 calc(var(--r) - 1.5px), transparent var(--r));
}

/* plaster wall + floor, colour-matched to the photo edges so the photo melts into it */
.scene__bg {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    #c5c1c3 0%, #c3bec1 25%, #b4afb3 40%, #aeabad 50%, #a29ea2 60%, #9a9498 70.5%, #8a8282 80%,
    #7d6e65 83.2%, #76614f 84%, #776352 100%);
}
.scene__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.012 .02' numOctaves='4' seed='7'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.scene__figure {
  position: absolute; bottom: 0; left: 50%;
  height: 100%; aspect-ratio: 1440 / 1785;
  /* slight 3D turn toward the cursor; photo, cut-out and lens copy share it so they stay aligned */
  transform:
    translate3d(calc(-50% + var(--px) * -14px), calc(var(--py) * -8px), 0)
    rotateY(calc(var(--px) * 3.5deg)) rotateX(calc(var(--py) * -2.5deg));
  transform-origin: 50% 60%;
  will-change: transform;
}
.scene__figure img, .scene__figure canvas { display: block; width: 100%; height: 100%; }
/* feather the rectangular photo into the wall */
.scene__photo, .scene__halftone {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 17%, #000 83%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 17%, #000 83%, transparent 100%);
}
.hero.has-cut .scene__halftone { -webkit-mask-image: none; mask-image: none; }
.scene__figure--cut { display: none; }
.hero.has-cut .scene__figure--cut { display: block; }

.scene__title {
  position: absolute; left: 50%; top: 47%;
  margin: 0; font-weight: 400; text-align: center;
  transform: translate3d(calc(-50% + var(--px) * 26px), calc(-50% + var(--py) * 14px), 0);
  will-change: transform;
}
.hero__word { display: block; white-space: nowrap; }
.hero__word--sans { font: 400 min(27vw, 44svh)/.82 var(--f-display); color: var(--pink); letter-spacing: -.005em; }
.hero__word--serif {
  font: italic 400 min(17vw, 28svh)/.8 var(--f-serif); color: var(--ink);
  margin-top: -.08em; text-align: right; padding-right: .06em;
}

/* Without a cut-out the title must not paint over her face: show it as an outline instead */
.hero:not(.has-cut) .scene--main .hero__word--sans { color: transparent; -webkit-text-stroke: 2px var(--pink); }

/* alt scene type: the letters print in a deeper pink inside the lens */
.scene--alt .hero__word--sans { color: #b8215a; }
.scene--alt .hero__word--serif { color: var(--white); }

.hero__meta {
  position: relative; z-index: 3;
  display: flex; justify-content: flex-end; gap: 20px;
  font: 600 12px/1.4 var(--f-label); letter-spacing: .28em; text-transform: uppercase; color: rgba(26, 24, 27, .62);
}

.hero__bottom {
  position: relative; z-index: 3; grid-row: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.hero__intro {
  max-width: 400px; padding: 20px 22px; border-radius: 18px;
  background: rgba(246, 243, 241, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.hero__lead { color: rgba(26, 24, 27, .78); font-size: 15px; line-height: 1.55; margin: 0 0 16px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn--ghost { --fg: var(--ink); --bd: rgba(26, 24, 27, .3); }
.hero .btn--ghost:hover { --bd: var(--ink); }

/* Live "next class" card */
.nextcard {
  display: grid; gap: 6px; min-width: 250px;
  padding: 18px 20px 16px; border-radius: 18px;
  background: rgba(26, 24, 27, .82); border: 1px solid rgba(243, 237, 232, .1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  text-decoration: none; color: #f3ede8;
  transition: border-color .25s ease, transform .25s ease;
}
.nextcard:hover { border-color: var(--pink); transform: translateY(-3px); }
.nextcard__label { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: rgba(243, 237, 232, .6); }
.nextcard__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: beat 1.33s ease-in-out infinite; }
.nextcard__when { font: italic 400 26px/1.1 var(--f-serif); margin-top: 6px; }
.nextcard__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.nextcard__time { font: 400 44px/1 var(--f-display); }
.nextcard__spots { font-size: 13px; color: rgba(243, 237, 232, .65); }
.nextcard__cta { margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(243, 237, 232, .12); font-weight: 700; font-size: 14px; color: var(--pink); }
.nextcard__cta span { display: inline-block; transition: transform .25s ease; }
.nextcard:hover .nextcard__cta span { transform: translateX(5px); }

.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 30px; translate: -50% 0;
  width: 1px; height: 54px; background: rgba(26, 24, 27, .2); overflow: hidden;
}
.hero__scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--pink); animation: scrollCue 1.8s cubic-bezier(.6, 0, .3, 1) infinite; }

/* entrance after the curtain lifts */
.js .scene__title, .js .scene__figure, .js .hero__meta, .js .hero__bottom, .js .hero__scroll { opacity: 0; }
.is-loaded .scene__figure { animation: heroFigure 1.4s cubic-bezier(.16, 1, .3, 1) both; }
.is-loaded .scene__title { animation: heroFade 1.2s .2s cubic-bezier(.16, 1, .3, 1) both; }
.is-loaded .hero__word { animation: heroRise 1.25s .2s cubic-bezier(.16, 1, .3, 1) both; }
.is-loaded .hero__word--serif { animation-delay: .34s; }
.is-loaded .hero__meta,
.is-loaded .hero__bottom,
.is-loaded .hero__scroll { animation: heroFade .9s .6s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes heroFigure { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
@keyframes heroRise { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes beat { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .55; } }
@keyframes scrollCue { from { transform: translateY(-110%); } to { transform: translateY(260%); } }

@media (max-width: 760px) {
  /* phones: the photo scene fills the first screen, booking panels follow below it */
  .hero { padding: 120px var(--gutter) 22px; grid-template-rows: auto minmax(calc(84svh - 158px), 1fr) auto; background: var(--paper); }
  .scene { bottom: auto; height: 84svh; }
  .hero__meta { visibility: hidden; }
  .scene__title { top: 36%; }
  .hero__bottom { margin-top: 18px; }
  .hero__intro { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
  .hero__word--sans { font-size: 33vw; }
  .hero__word--serif { font-size: 22vw; }
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__intro { max-width: none; padding: 14px 16px; }
  .hero__lead { font-size: 14px; margin-bottom: 12px; }
  .hero__cta { flex-wrap: nowrap; }
  .hero__cta .btn { flex: 1 1 auto; white-space: nowrap; padding-inline: 18px; }
  .hero__cta .btn--ghost { flex: 0 0 auto; }
  .nextcard { min-width: 0; grid-template-columns: 1fr auto; column-gap: 14px; padding: 14px 16px; }
  .nextcard__label, .nextcard__cta { grid-column: 1 / -1; }
  .nextcard__when { font-size: 22px; margin: 0; align-self: center; }
  .nextcard__row { flex-direction: column; align-items: flex-end; gap: 2px; }
  .nextcard__time { font-size: 34px; }
  .nextcard__cta { margin-top: 2px; padding-top: 10px; }
  .hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .scene__title, .js .scene__figure, .js .hero__meta, .js .hero__bottom, .js .hero__scroll { opacity: 1; }
}
