/* Cheltenham Dance Centre — index-specific styles (Pick & Mix) */

/* hero: yellow ground, blobs, tilted photo card + stacked type */
.hero {
  position: relative;
  padding: 70px 24px 60px;
  overflow: hidden;
}
.hero__grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero .d1 { margin-top: 16px; }
.hero__sub {
  display: block;
  font-size: 0.44em;
  margin-top: 12px;
  line-height: 1.1;
}
.hero__sub mark {
  background: var(--magenta);
  color: var(--white);
  padding: 2px 12px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  display: inline-block;
  transform: rotate(-1.2deg);
}
.hero__deck { margin: 20px 0 26px; max-width: 46ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__photo {
  border: 2.5px solid var(--ink);
  border-radius: 26px;
  box-shadow: 7px 8px 0 var(--ink);
  transform: rotate(2deg);
  overflow: hidden;
  background: var(--white);
  padding: 10px 10px 0;
  position: relative;
}
.hero__photo img { border-radius: 18px 18px 0 0; }

/* cutout variant: no card, subject floats on the yellow */
.hero__photo--cutout {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  transform: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__photo--cutout img { order: 1; }
.hero__photo--cutout figcaption { order: 2; }
.hero__photo--cutout img {
  border-radius: 0;
  filter: drop-shadow(8px 12px 0 rgba(34, 31, 38, 0.18));
}
.hero__photo--cutout figcaption { text-align: center; padding: 14px 0 0; }
figure.hero__photo--cutout figcaption .stick { position: static; display: inline-block; transform: rotate(-1deg); }
figure.hero__photo--cutout > .stick { position: absolute; top: 44px; left: 12px; z-index: 3; }
.hero__photo--poster img { width: min(100%, 440px); }
figure.hero__photo--poster { padding-top: 24px; }
figure.hero__photo--poster > .stick { top: 0; left: 4px; transform: rotate(-4deg); }
@media (max-width: 900px) { .hero__photo--poster img { width: min(100%, 340px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero__photo--cutout img { animation: cutIn .7s cubic-bezier(.2,1.35,.4,1) .15s both; }
}
@keyframes cutIn {
  from { opacity: 0; transform: translateY(36px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- jigsaw assembly: pieces of the photo fly in and click together ---- */
.jigsaw { position: relative; aspect-ratio: 1200 / 931; border-radius: 18px 18px 0 0; overflow: hidden; }
.jigsaw .jig--base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jig[class*="--p"] {
  position: absolute; inset: 0;
  background-image: url('../images/hen-party-dance-class-cheltenham.webp');
  background-size: 100% 100%;
  pointer-events: none;
}
.jig--p1 { clip-path: circle(26% at 22% 30%); }
.jig--p2 { clip-path: ellipse(28% 22% at 76% 26%); }
.jig--p3 { clip-path: inset(46% 52% 4% 4% round 44px); }
.jig--p4 { clip-path: inset(48% 5% 5% 46% round 26px 60px 34px 52px); }
.jig--p5 { clip-path: circle(17% at 51% 56%); }
@media (prefers-reduced-motion: no-preference) {
  .jigsaw .jig--base { animation: jigBase .4s ease 1.25s both; }
  .jig--p1 { animation: jigIn .62s cubic-bezier(.2,1.35,.4,1) .15s both; --fx: -120px; --fy: -70px; --fr: -11deg; }
  .jig--p2 { animation: jigIn .62s cubic-bezier(.2,1.35,.4,1) .3s both; --fx: 130px; --fy: -60px; --fr: 9deg; }
  .jig--p3 { animation: jigIn .62s cubic-bezier(.2,1.35,.4,1) .45s both; --fx: -110px; --fy: 90px; --fr: 8deg; }
  .jig--p4 { animation: jigIn .62s cubic-bezier(.2,1.35,.4,1) .6s both; --fx: 120px; --fy: 95px; --fr: -8deg; }
  .jig--p5 { animation: jigIn .62s cubic-bezier(.2,1.35,.4,1) .78s both; --fx: 0px; --fy: -130px; --fr: 14deg; }
}
@keyframes jigIn {
  from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(1.06); }
  60% { opacity: 1; }
  to { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
}
@keyframes jigBase { from { opacity: 0; } to { opacity: 1; } }
.hero__photo figcaption {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding: 10px 6px 12px;
}
.hero__photo .stick { position: absolute; top: -14px; left: -12px; z-index: 2; }

/* paparazzi-free: Pick & Mix bounce-in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero__grid > div:first-child > * { animation: popIn .5s cubic-bezier(.2,1.4,.4,1) both; }
  .hero__grid > div:first-child > *:nth-child(2) { animation-delay: .08s; }
  .hero__grid > div:first-child > *:nth-child(3) { animation-delay: .16s; }
  .hero__grid > div:first-child > *:nth-child(4) { animation-delay: .24s; }
  .hero__photo { animation: cardIn .6s cubic-bezier(.2,1.3,.4,1) .1s both; }
}
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cardIn { from { opacity: 0; transform: rotate(6deg) translateY(26px); } to { opacity: 1; transform: rotate(2deg) translateY(0); } }

/* theme roll-call panel (the big magenta list) */
.rollcall { text-align: center; }
.rollcall .d2 { line-height: 1.06; }
.rollcall .d2 a { text-decoration: none; }
.rollcall .d2 a:hover { color: var(--yellow); }
.rollcall .small { margin-top: 18px; opacity: 0.9; }

/* prices split */
.pricesplit { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }

/* wedding strip */
.wedstrip {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  align-items: center;
}
.wedstrip .story__ph { border: 2.5px solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 5px 6px 0 var(--ink); transform: rotate(-1.4deg); }
.wedstrip .story__ph img { aspect-ratio: 1/1; object-fit: cover; }

/* area split */
.areasplit { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.areasplit .photocard {
  border: 2.5px solid var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 6px 7px 0 var(--ink); transform: rotate(1.4deg);
  position: relative;
}
.areasplit .photocard .stick { position: absolute; top: 14px; left: 14px; z-index: 2; }

@media (max-width: 900px) {
  .hero__grid, .pricesplit, .areasplit { grid-template-columns: 1fr; }
  .wedstrip { grid-template-columns: 1fr; }
  .hero { padding: 44px 18px 44px; }
}
