/* CAP 9.0 page. Tokens, Magic Hat, .sky rays, .extrude, .block, .sticker, .checker, .floor and .strip come from hff.css
   (the same file as hff.css on hff.hungrito.com). Everything scroll-driven sits under html.motion, so the page reads fine without JS. */
:root { --sec-pad: clamp(56px, 8vw, 104px); --gut: max(18px, env(safe-area-inset-left, 0px), 4vw); }
html { scroll-behavior: smooth; }
html.motion { scroll-behavior: auto; }   /* GSAP drives scrolling under motion */
section { scroll-margin-top: 12px; }

/* ---------- shared section parts ---------- */
.title {
  margin: 0; text-align: center; color: var(--yellow); line-height: 1.1;   /* .extrude sets .95: two-line titles touched */
  font-size: clamp(2rem, 8.4vw, 5.4rem);   /* phone min was 2.5rem: too big at 360-430px */
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
}
.sub {
  margin: 14px auto 0; max-width: 44ch; text-align: center; text-wrap: balance;
  font-weight: 800; font-size: clamp(1.02rem, 1.6vw, 1.3rem); text-shadow: 2px 2px 0 var(--ink);
}
.cta__btn {
  --block: var(--yellow);
  display: inline-block; color: var(--ink); text-decoration: none; border-color: var(--ink);
  font-size: clamp(1.2rem, 3.6vw, 1.8rem);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta__btn:hover { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: calc(var(--drop) + 3px) calc(var(--drop) + 3px) 0 var(--ink); }
.cta__btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.link-out { display: inline-block; padding-block: 8px; font-weight: 800; color: var(--cream); text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; font-size: clamp(1rem, 1.4vw, 1.15rem); }

/* Hung sign (same as the HFF zones): a board on two ropes that run up out of the section */
.sign { position: relative; margin-bottom: clamp(20px, 3vw, 28px); }   /* was 8px min: the swaying board touched the title on phones */
.sign__board {
  position: relative; display: inline-block;
  background: var(--ink); color: var(--yellow);
  border: 4px solid var(--yellow); border-radius: 8px;
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--ink) 55%, transparent);
  font-family: var(--display); text-transform: uppercase; line-height: 1;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem); letter-spacing: .04em;
  padding: .45em 1em .38em; transform-origin: 50% -60vh;
}
.motion .sign__board { animation: sway 5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { rotate: -.8deg; } 50% { rotate: .8deg; } }
.sign__board::before, .sign__board::after {
  content: ""; position: absolute; bottom: calc(100% + 4px); width: 4px; height: 60vh;
  background: repeating-linear-gradient(0deg, var(--ink) 0 7px, #4a4844 7px 10px);
}
.sign__board::before { left: 18%; } .sign__board::after { right: 18%; }

/* ---------- 0. Loader (same opening as hff.hungrito.com, a little shorter) ---------- */
.loader { display: none; }
.motion .loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; --ray-y: 42%; animation: loader-out .6s ease 4s forwards; }
@keyframes loader-out { to { transform: translateY(-110%); visibility: hidden; } }
.loader__sky { position: absolute; inset: 0; }
.loader__center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loader__logo { width: min(52vw, 280px); }
.loader__edition { --block: var(--green); margin: 0; font-size: clamp(1.3rem, 5vw, 2.1rem); rotate: -3deg; }
.loader__tag { margin: 16px 0 0; padding-inline: 16px; text-align: center; font-family: var(--display); text-transform: uppercase; font-size: clamp(1rem, 4vw, 1.5rem); }
.loader__tag.block { --block: var(--red); padding-inline: .7em; rotate: 2deg; line-height: 1.1; max-width: 88vw; text-wrap: balance; }   /* the highlight: this is the CAP programme */
.motion .loader__logo, .motion .loader__edition, .motion .loader__tag { visibility: hidden; }
.loader__burst { position: absolute; left: 50%; top: 40%; }
.confetti { position: absolute; width: 10px; height: 16px; margin: -8px 0 0 -5px; border-radius: 2px; }
.loader__tiles { position: absolute; inset: 0; z-index: 3; display: grid; pointer-events: none; }
.loader__tiles i { background: var(--ink); transform: scale(0); }
.loader__tiles i.c { background: var(--cream); }

/* ---------- 1. Hero ---------- */
.hero {
  --ray-y: 44%;
  --stage-w: min(100vw, 600px, 62svh);
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 0 max(64px, 9svh);
}
.stage { position: relative; z-index: 2; width: var(--stage-w); display: flex; flex-direction: column; align-items: center; }

.bunting { position: absolute; top: 0; z-index: 1; pointer-events: none; overflow: visible; width: calc(50% - var(--stage-w) * .07); height: clamp(90px, 18vh, 170px); }
.bunting--l { left: 0; }
.bunting--r { right: 0; scale: -1 1; }
.bunting__string { fill: none; stroke: var(--ink); stroke-width: 3; }
.bunting__flag { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; transform-box: fill-box; transform-origin: 50% 0; }
.motion .bunting__flag { animation: flutter 2.4s ease-in-out infinite; }
@keyframes flutter { 50% { transform: rotate(7deg) scaleY(.92); } }

.spark { position: absolute; z-index: 2; color: var(--cream); line-height: 1; }
.spark--1 { top: 2%; left: 22%; font-size: clamp(16px, 3vw, 26px); }
.spark--2 { top: 8%; right: 20%; font-size: clamp(12px, 2.2vw, 20px); color: var(--yellow); }
.spark--3 { top: 34%; left: 4%; font-size: clamp(14px, 2.6vw, 22px); }
.motion .spark { animation: twinkle 1.8s ease-in-out infinite; }
.motion .spark--2 { animation-delay: .6s; } .motion .spark--3 { animation-delay: 1.1s; }
@keyframes twinkle { 50% { opacity: .3; scale: .7; } }

.logo-wrap { position: relative; z-index: 4; width: 30%; perspective: 700px; }
.logo { width: 100%; height: auto; transform: rotateX(calc(var(--py, 0) * -10deg)) rotateY(calc(var(--px, 0) * 14deg)); transition: transform .2s ease-out, scale .25s cubic-bezier(.3, 1.6, .5, 1); }
.logo-wrap:hover .logo { scale: 1.07; }

.arch { position: relative; z-index: 2; width: 62%; aspect-ratio: 400 / 500; margin-top: -6%; }
.arch__keys { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arch__inner {
  position: absolute; left: 15%; right: 15%; top: 12%; bottom: 0; isolation: isolate;
  border-radius: 50% 50% 0 0 / 31.8% 31.8% 0 0; overflow: hidden;
  background: repeating-conic-gradient(at 50% 48%, #ffd84a 0 9deg, var(--yellow) 9deg 18deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5%; padding-bottom: 6%;
}
html.motion .arch__inner::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 48%; width: var(--ray-d, 200vmax); aspect-ratio: 1; translate: -50% -50%;
  background: repeating-conic-gradient(#ffd84a 0 9deg, var(--yellow) 9deg 18deg); will-change: rotate; animation: sky-rays 70s linear infinite;
}
.arch__cap {
  margin: 0; color: var(--red);
  font-size: calc(var(--stage-w) * .17);   /* was .2: breathing room inside the arch */
  -webkit-text-stroke: 3px var(--cream); paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--ink), 4px 4px 0 var(--ink), 6px 6px 0 var(--ink), 8px 8px 0 var(--ink);
}
.arch__edition { --block: var(--purple); margin: 0; font-size: calc(var(--stage-w) * .042); rotate: -3deg; }

.chilli { position: absolute; top: 44%; width: 32%; z-index: 3; }
.chilli--l { left: -30%; --cr: -6deg; rotate: var(--cr); }
.chilli--r { right: -30%; --cr: 6deg; rotate: var(--cr); }
.motion .chilli { animation: chilli-wobble 2.6s ease-in-out infinite; }
.motion .chilli--r { animation-delay: -1.3s; }
@keyframes chilli-wobble { 0%, 100% { rotate: var(--cr); } 25% { rotate: calc(var(--cr) - 6deg); } 75% { rotate: calc(var(--cr) + 6deg); } }

.hero__title {
  --block: var(--green);
  position: relative; z-index: 4; margin: -6% 0 0;
  font-weight: 400; text-align: center; line-height: 1.02; rotate: -2deg;
  font-size: calc(var(--stage-w) * .07);
}
.hero__cta { position: relative; z-index: 4; margin-top: calc(var(--stage-w) * .06); font-size: calc(var(--stage-w) * .05); rotate: 2deg; }
.motion .hero__cta { animation: nudge-btn 2.6s ease-in-out infinite; }
@keyframes nudge-btn { 0%, 80%, 100% { scale: 1; } 86% { scale: 1.08; } 92% { scale: .98; } }

.speaker { position: absolute; bottom: calc(var(--stage-w) * .06); width: 21%; z-index: 3; }
.speaker img { width: 100%; transform-origin: 50% 100%; }
.speaker--l { left: -26%; } .speaker--r { right: -26%; }
.motion .speaker img { animation: thump .55s ease-in-out infinite; }
.motion .speaker--r img { animation-delay: .27s; }
@keyframes thump { 50% { transform: scale(1.05, .97); } }

.hero__floor { position: absolute; inset: auto 0 0; height: 30%; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__floor .floor { --floor: color-mix(in srgb, var(--purple) 82%, var(--ink)); height: 100%; border-top: 8px solid var(--ink); }

/* Each side: a CAP 8 photo taped up, with its date / venue tag pinned under it (wide screens) */
.hero__side { position: absolute; z-index: 1; width: clamp(150px, 15vw, 250px); display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero__side--l { left: clamp(18px, 6vw, 130px); top: 20%; }   /* below the bunting */
.hero__side--r { right: clamp(18px, 6vw, 130px); top: 24%; }
.motion .hero__side { animation: bob 5s ease-in-out infinite; }
.motion .hero__side--r { animation-delay: -2.5s; }
@keyframes bob { 50% { translate: 0 -12px; } }
.hero__snap {
  position: relative; margin: 0; width: 100%;
  background: var(--cream); padding: 9px 9px 0; border: 2px solid var(--ink); box-shadow: 7px 8px 0 rgb(40 39 36 / .4);
}
.hero__snap-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.hero__snap-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.12; rotate: 4deg; transition: opacity .55s ease, scale .7s cubic-bezier(.3, 1.4, .5, 1), rotate .7s cubic-bezier(.3, 1.4, .5, 1); }
.hero__snap-frame img.is-on { opacity: 1; scale: 1; rotate: 0deg; }
.hero__snap.is-shuffling { animation: snap-shake .45s ease; }
@keyframes snap-shake { 30% { transform: rotate(-3deg) scale(.97); } 65% { transform: rotate(2deg) scale(1.02); } }
.hero__snap figcaption { font-family: var(--display); text-transform: uppercase; color: var(--ink); text-align: center; padding: 7px 0 8px; font-size: clamp(.8rem, 1vw, 1rem); }
.hero__snap::before { content: ""; position: absolute; top: -14px; left: 50%; width: 46%; height: 26px; translate: -50% 0; rotate: -4deg; background: color-mix(in srgb, var(--yellow) 80%, transparent); }
.hero__side--l .hero__snap { rotate: -8deg; }
.hero__side--r .hero__snap { rotate: 7deg; }

.info {   /* a cream event ticket: dashed inner edge, red When / Where tab on top */
  position: relative; z-index: 5; margin: 14px 0 0; padding: 1em 1.15em .55em;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 5px 6px 0 var(--ink);
  outline: 2px dashed color-mix(in srgb, var(--ink) 40%, transparent); outline-offset: -9px;
  font-family: var(--display); text-transform: uppercase; white-space: nowrap; text-align: center; line-height: 1.15;
  font-size: clamp(.95rem, 1.2vw, 1.2rem);
}
.info__k {
  position: absolute; left: 50%; top: 0; translate: -50% -62%; rotate: -4deg;
  background: var(--red); color: var(--cream); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 2px 2px 0 var(--ink);
  padding: .12em .55em; font-size: max(.68em, 10.5px); letter-spacing: .06em;
}
.info--l { rotate: 3deg; } .info--r { rotate: -3deg; }

.scroll-hint { display: none; }
.motion .scroll-hint { --block: var(--red); display: inline-flex; gap: .4em; position: absolute; z-index: 6; bottom: 12px; left: 50%; translate: -50% 0; font-size: clamp(.9rem, 2.4vw, 1.1rem); }
.scroll-hint__arrow { display: inline-block; animation: nudge 1s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

@media (max-width: 1099px) {
  .speaker--l { left: max(-26%, calc(10px - (100vw - var(--stage-w)) / 2)); } .speaker--r { right: max(-26%, calc(10px - (100vw - var(--stage-w)) / 2)); }   /* on screen at every width */
  .speaker { width: 17%; bottom: calc(var(--stage-w) * -.02); z-index: 5; }   /* low and in front: never tucked behind the banner */
  .hero { --stage-w: min(100vw, 600px, 62svh - 90px); padding-bottom: max(96px, 13svh); }
  .hero__snap { display: none; }
  .hero__floor { height: max(70px, 10svh); }   /* floor stays under the tags, never behind them */
  .hero__side { position: static; width: auto; display: contents; }
  .hero { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: center; column-gap: 12px; }
  .stage { flex: none; margin-inline: calc((100% - var(--stage-w)) / 2); }   /* alone on its row, the two tags wrap below */
  .info { margin-top: calc(var(--stage-w) * .09); font-size: clamp(.78rem, 3.3vw, 1.05rem); }
}
@media (max-width: 700px) {
  .chilli { width: 21%; top: 40%; }
  .chilli--l { left: -25%; } .chilli--r { right: -25%; }
  .speaker { width: 15%; bottom: calc(var(--stage-w) * -.02); z-index: 5; }   /* in front of the banner, flanking the button, fully on screen */
  .speaker--l { left: calc(10px - (100vw - var(--stage-w)) / 2); } .speaker--r { right: calc(10px - (100vw - var(--stage-w)) / 2); }   /* 10px from the screen edge */
  .hero__title { font-size: clamp(1.15rem, 6.4vw, 1.9rem); margin-top: -4%; }
  .hero__cta { font-size: clamp(1.1rem, 5.4vw, 1.5rem); margin-top: calc(var(--stage-w) * .08); }
}
/* ---------- 2. Ticker tapes ---------- */
.ticker { position: relative; z-index: 2; background: var(--yellow); padding-block: clamp(34px, 6vw, 64px); overflow: hidden; }
.tape {
  border-block: 4px solid var(--ink); overflow: hidden; white-space: nowrap;
  font-family: var(--display); text-transform: uppercase; font-size: clamp(1.5rem, 5.4vw, 3.2rem); line-height: 1;
  padding-block: .32em .24em; margin-inline: -4vw;
}
.tape--a { background: var(--red); color: var(--cream); rotate: -3deg; box-shadow: 0 var(--drop) 0 var(--ink); }
.tape--b { background: var(--purple); color: var(--cream); rotate: 2.4deg; margin-top: -4px; }
.tape__track { display: inline-flex; gap: .55em; align-items: center; will-change: transform; }
.tape b { color: var(--yellow); font-family: var(--body); font-size: .6em; }
.tape--b b { color: var(--green); }

/* ---------- 3. What is CAP ---------- */
.about {
  --sky: var(--blue); --ray-y: 50%;
  overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 640px) auto; justify-content: center; align-items: center; gap: clamp(40px, 9vw, 170px);   /* text + badge as one centred group */
  padding: var(--sec-pad) var(--gut);
  max-width: 100%;
}
.about__text { max-width: 640px; justify-self: end; }
.about .title { text-align: left; }
.about__copy { margin: 18px 0 0; font-weight: 700; line-height: 1.55; font-size: clamp(1.05rem, 1.5vw, 1.25rem); text-shadow: 1px 1px 0 var(--ink); text-wrap: pretty; }
.about__copy mark { background: none; color: var(--yellow); white-space: nowrap; }
.about__pop {
  display: inline-block; margin: 22px 0 0; padding: .55em .9em .5em;
  background: var(--purple); border: 3px solid var(--cream); box-shadow: 5px 5px 0 var(--ink); rotate: -1.5deg;
  font-family: var(--display); text-transform: uppercase; line-height: 1.15; font-size: clamp(1rem, 1.8vw, 1.4rem);
}
.about__pass { display: flex; flex-direction: column; align-items: center; gap: 18px; justify-self: start; }

/* Lanyard + crew pass */
.lanyard { position: relative; padding-top: 110px; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; }
.motion .lanyard { animation: pass-swing 4.5s ease-in-out infinite; }
@keyframes pass-swing { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
.lanyard__strap {
  position: absolute; top: -40vh; left: 50%; translate: -50% 0; width: 34px; height: calc(40vh + 122px);
  background: repeating-linear-gradient(0deg, var(--red) 0 34px, var(--cream) 34px 38px, var(--red) 38px 72px, var(--yellow) 72px 76px);
  border-inline: 3px solid var(--ink);
}
.lanyard__strap::after { /* the clip */
  content: ""; position: absolute; bottom: -12px; left: 50%; translate: -50% 0; width: 22px; height: 26px; border-radius: 6px 6px 3px 3px;
  background: #c9c4b4; border: 3px solid var(--ink);
}
.crew {
  position: relative; width: clamp(240px, 26vw, 310px);
  background: var(--cream); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px;
  box-shadow: 10px 12px 0 var(--ink); padding: 0 0 16px; overflow: hidden; text-align: center;
}
.crew::before { /* punch hole */
  content: ""; position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 46px; height: 10px; border-radius: 6px; background: var(--blue); border: 3px solid var(--ink); z-index: 2;
}
.crew__top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: repeating-conic-gradient(at 50% 120%, var(--purple) 0 8deg, color-mix(in srgb, var(--purple) 84%, white) 8deg 16deg);
  border-bottom: 4px solid var(--ink); padding: 34px 16px 12px;
}
.crew__top img { width: 58px; height: auto; filter: drop-shadow(2px 2px 0 var(--ink)); }
.crew__top span { font-family: var(--display); text-transform: uppercase; color: var(--yellow); font-size: 2.1rem; line-height: 1; letter-spacing: .06em; text-shadow: 3px 3px 0 var(--ink); }
.crew__avatar {
  width: 104px; height: 104px; margin: -2px auto 10px; translate: 0 -10px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--avatar, var(--green)); border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display); color: var(--cream); font-size: 2.6rem; line-height: 1; padding-top: .1em; text-shadow: 2px 2px 0 var(--ink);
}
.crew__name { margin: 0 14px; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.05; overflow-wrap: anywhere; }
.crew__org { margin: 6px 14px 0; font-weight: 800; color: color-mix(in srgb, var(--ink) 70%, transparent); overflow-wrap: anywhere; }
.crew__role {
  display: inline-block; margin: 12px 0 0; padding: .35em .9em .3em; rotate: -2deg;
  background: var(--red); color: var(--cream); border: 3px solid var(--ink);
  font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; line-height: 1;
}
.crew__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 16px 16px 0; padding-top: 12px; border-top: 3px dashed var(--ink); text-align: left; font-weight: 800; font-size: .8rem; line-height: 1.25; text-transform: uppercase; }
.crew__code { width: 92px; height: 34px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 13px); }
.crew.is-pop { animation: pass-pop .35s ease; }
@keyframes pass-pop { 50% { scale: 1.05; } }

.try { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 360px; }
.try__hint { width: 100%; margin: 0; text-align: center; font-weight: 800; text-shadow: 2px 2px 0 var(--ink); }
.try__input {
  flex: 1 1 150px; min-width: 0; padding: .7em .9em; font: 700 1rem var(--body); color: var(--ink);
  background: var(--cream); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink);
}
.try__input:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .lanyard { padding-top: 70px; }
  .lanyard__strap { top: 0; height: 82px; }   /* card sits under the text here: strap must not reach up over it */
  .about__text, .about__pass { justify-self: center; }
  .about .title { text-align: center; }
  .about__text { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .about .about__copy { text-wrap: balance; }   /* centred text: even lines, no "a certificate." left alone */
}
@media (min-width: 600px) and (max-width: 860px) {   /* tablet About: copy and banner sized up to sit with the title */
  .about .about__copy { font-size: 1.2rem; }
  .about__pop { font-size: 1.3rem; max-width: 24em; text-wrap: balance; }
}

/* ---------- 4. Perks: flip cards ---------- */
.perks { --sky: var(--red); --ray-y: 40%; overflow: hidden; padding: var(--sec-pad) var(--gut); display: flex; flex-direction: column; align-items: center; }
.perks__grid { list-style: none; margin: clamp(30px, 5vw, 54px) 0 clamp(34px, 5vw, 50px); padding: 0; width: min(1100px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 34px); }
.perk {
  position: relative; width: 100%; aspect-ratio: 5 / 4; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: var(--hot, pointer);
  perspective: 1000px; rotate: var(--t);
  transition: rotate .2s, translate .2s;
}
.perk:hover { rotate: 0deg; translate: 0 -6px; }
.perk__front, .perk__back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 4px solid var(--ink); border-radius: 16px; box-shadow: 8px 8px 0 var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px;
  transition: transform .55s cubic-bezier(.3, 1.4, .5, 1);
}
.perk__front { background: var(--c); color: var(--cream); }
.perk[style*="--yellow"] .perk__front { color: var(--ink); }
.perk__back {
  background: var(--cream); color: var(--ink); transform: rotateY(180deg);
  font-weight: 800; font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.45; text-align: center; text-wrap: pretty;
}
.perk[aria-pressed="true"] .perk__front { transform: rotateY(-180deg); }
.perk[aria-pressed="true"] .perk__back { transform: rotateY(0deg); }
.perk__num { position: absolute; top: 12px; left: 16px; font-family: var(--display); font-size: 1.4rem; opacity: .75; }
.perk__icon { width: clamp(52px, 6vw, 72px); height: auto; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(2px 2px 0 rgb(40 39 36 / .5)); }
.perk__name { font-family: var(--display); text-transform: uppercase; text-align: center; line-height: 1.08; font-size: clamp(1.25rem, 2vw, 1.75rem); text-wrap: balance; }
@media (max-width: 900px) { .perks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .perks__grid { gap: 14px; }
  .perk { aspect-ratio: 4 / 5; }
  .perk__front, .perk__back { padding: 12px; border-radius: 12px; box-shadow: 5px 5px 0 var(--ink); }
  .perk__back { font-size: .92rem; line-height: 1.38; }
  .perk__name { font-size: 1.05rem; }
}

/* ---------- 5. Levels ---------- */
.levels { --sky: var(--navy); --ray-y: 30%; position: relative; overflow: hidden; padding: var(--sec-pad) var(--gut) calc(var(--sec-pad) + 40px); display: flex; flex-direction: column; align-items: center; }
.levels > .floor { --floor: color-mix(in srgb, var(--navy) 70%, var(--ink)); height: 34%; border-top: 6px solid var(--ink); }
.track { position: relative; width: min(1100px, 100%); height: 14px; margin: clamp(60px, 8vw, 90px) 0 18px; background: color-mix(in srgb, var(--cream) 25%, transparent); border: 3px solid var(--ink); border-radius: 10px; }
.track__fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, #ffd84a 12px 24px); border-radius: 6px; }
.track__runner { position: absolute; left: var(--p, 0%); bottom: 4px; width: 46px; translate: -50% 0; rotate: 18deg; filter: drop-shadow(3px 3px 0 var(--ink)); }
.levels__list { list-style: none; margin: 0; padding: 0; width: min(1100px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); position: relative; z-index: 1; }
.level {
  position: relative; background: var(--cream); color: var(--ink);
  border: 4px solid var(--ink); border-radius: 14px; box-shadow: 7px 7px 0 var(--ink);
  padding: 30px 18px 20px; text-align: center;
}
.level:nth-child(odd) { rotate: -1.5deg; } .level:nth-child(even) { rotate: 1.5deg; translate: 0 18px; }
.level__tag {
  position: absolute; top: -18px; left: 50%; translate: -50% 0; white-space: nowrap;
  background: var(--c); color: var(--cream); border: 3px solid var(--ink); padding: .35em .8em .28em;
  font-family: var(--display); text-transform: uppercase; font-size: 1rem; line-height: 1;
}
.level h3 { margin: 6px 0 8px; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1; font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--c); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.level p { margin: 0; font-weight: 700; line-height: 1.45; }
.level--boss { background: var(--yellow); }
.level--boss h3 { color: var(--red); font-size: clamp(1.9rem, 3vw, 2.7rem); }
@media (max-width: 900px) {
  .track { display: none; }
  .levels__list { grid-template-columns: 1fr; max-width: 460px; margin-top: 40px; gap: 34px; }
  .level:nth-child(even) { translate: 0 0; }
  .level:not(:last-child)::after { /* dashed connector to the next level */
    content: ""; position: absolute; left: 50%; top: 100%; height: 34px; border-left: 4px dashed var(--yellow);
  }
}

/* ---------- 6. Scale ---------- */
.scale { --sky: var(--green); --ray-y: 40%; overflow: hidden; padding: var(--sec-pad) var(--gut); display: flex; flex-direction: column; align-items: center; gap: 0; }
.stats { list-style: none; margin: clamp(30px, 5vw, 50px) 0 clamp(26px, 4vw, 40px); padding: 0; width: min(1100px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.stat {
  background: var(--c); color: var(--ink-c, var(--cream)); border: 4px solid var(--cream); box-shadow: 7px 7px 0 var(--ink);
  padding: clamp(16px, 2.4vw, 26px) 14px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;   /* centred both ways: tiles share a row height */
}
.stat:nth-child(3n+1) { rotate: -1.5deg; } .stat:nth-child(3n+2) { rotate: 1deg; } .stat:nth-child(3n) { rotate: -.5deg; }
.stat__num { font-family: var(--display); font-weight: 400; line-height: 1; font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 3px 3px 0 var(--ink); }
.stat__num[data-lakh], .stat__num[data-prefix] { font-size: clamp(1.8rem, 3.9vw, 3.3rem); letter-spacing: .02em; }   /* the two long values */
.stat[style*="--yellow"] .stat__num { color: var(--red); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.stat span { font-family: var(--display); text-transform: uppercase; font-size: clamp(.95rem, 1.5vw, 1.25rem); letter-spacing: .04em; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat__num { font-size: clamp(1.9rem, 9vw, 3rem); } .stat__num[data-lakh], .stat__num[data-prefix] { font-size: clamp(1.3rem, 6.4vw, 2.2rem); } }

/* ---------- 7. Reels ---------- */
.reels { --sky: var(--purple); --ray-y: 50%; overflow: hidden; padding: var(--sec-pad) 0; display: flex; flex-direction: column; align-items: center; }
.reels-wrap { position: relative; width: 100%; margin: clamp(26px, 4vw, 44px) 0 clamp(26px, 4vw, 40px); }
.reels__row {
  list-style: none; margin: 0; padding: 18px var(--gut) 26px; display: flex; gap: clamp(46px, 4vw, 56px);   /* was 16px: the 2deg tilt + 13px drop shadow eat ~30px, this leaves ~15px of clear sky */
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  justify-content: safe center;
}
.reels__row::-webkit-scrollbar { display: none; }
.reels__row li { flex: none; scroll-snap-align: center; }
.reel {
  position: relative; display: block; width: clamp(180px, 18vw, 240px); aspect-ratio: 9 / 16;
  border: 4px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--ink);
  box-shadow: 0 0 0 4px var(--cream), 9px 10px 0 4px var(--ink);
  transition: translate .2s, rotate .2s;
}
.reels__row li:nth-child(odd) .reel { rotate: -2deg; } .reels__row li:nth-child(even) .reel { rotate: 2deg; }
.reel:hover, .reel:focus-visible { rotate: 0deg; translate: 0 -8px; }
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel__play {
  position: absolute; right: 12px; bottom: 12px; width: 50px; height: 50px; border-radius: 50%;   /* corner: the covers already carry a centre play mark */
  display: grid; place-items: center; padding-left: 4px; font-size: 1.2rem; color: var(--ink);
  background: var(--yellow); border: 4px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: scale .15s;
}
.reel:hover .reel__play { scale: 1.15; }
.reels__arrow {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%; width: 54px; height: 54px; border-radius: 50%;
  background: var(--yellow); border: 4px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: var(--hot, pointer);
}
.reels__arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 30%; height: 30%; border: solid var(--ink); border-width: 0 5px 5px 0; }
.reels__arrow--prev { left: 18px; } .reels__arrow--prev::before { rotate: 135deg; translate: 12% 0; }
.reels__arrow--next { right: 18px; } .reels__arrow--next::before { rotate: -45deg; translate: -12% 0; }
.reels__arrow:hover { scale: 1.1; }
.reels__arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: none), (max-width: 599px) { .reels__arrow { display: none; } }   /* narrow: swipe; the arrow sat between two reels */
@media (max-width: 599px) { .reel { width: 62vw; } }

/* ---------- 8. Vibes: polaroid rows ---------- */
.vibes { --sky: var(--yellow); --ray-y: 50%; overflow: hidden; padding-block: var(--sec-pad); display: flex; flex-direction: column; align-items: center; }
.vibes .title { color: var(--red); -webkit-text-stroke: 2px var(--cream); }
.vibes .sub { color: var(--ink); text-shadow: none; margin-bottom: clamp(14px, 2vw, 24px); }
.vibes__row { width: 100%; overflow-x: auto; padding-block: 16px; scrollbar-width: none; }
.vibes__row::-webkit-scrollbar { display: none; }
.motion .vibes__row { overflow: visible; }
.vibes__track { display: flex; gap: clamp(16px, 2.4vw, 30px); width: max-content; padding-inline: 16px; will-change: transform; }
.polaroid { margin: 0; flex: none; background: var(--cream); padding: 10px 10px 0; border: 2px solid var(--ink); box-shadow: 6px 7px 0 rgb(40 39 36 / .35); rotate: -3deg; transition: rotate .2s, scale .2s; }
.polaroid:nth-child(3n+2) { rotate: 2.5deg; } .polaroid:nth-child(3n) { rotate: -1deg; }
.polaroid:hover { rotate: 0deg; scale: 1.06; z-index: 2; position: relative; }
.polaroid img { display: block; height: clamp(170px, 22vw, 260px); width: auto; }
.polaroid figcaption { font-family: var(--display); text-transform: uppercase; color: var(--ink); text-align: center; padding: 8px 0 9px; font-size: clamp(.8rem, 1.3vw, 1rem); }

/* ---------- 9. FAQ as a group chat ---------- */
.faq { --sky: var(--blue); --ray-y: 30%; overflow: hidden; padding: var(--sec-pad) var(--gut); display: flex; flex-direction: column; align-items: center; }
.chat {
  width: min(760px, 100%); margin-top: clamp(28px, 4vw, 44px);
  border: 4px solid var(--ink); border-radius: 26px; overflow: hidden; box-shadow: 10px 10px 0 var(--ink);
  background: #efe6c8;
}
.chat__bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--ink); color: var(--cream); }
.chat__bar img { width: 46px; height: 46px; object-fit: contain; background: var(--purple); border-radius: 50%; padding: 4px; }
.chat__bar p { margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
.chat__bar b { font-size: 1.08rem; }
.chat__bar span { font-size: .85rem; color: #8fd19a; }
.chat__body {
  display: flex; flex-direction: column; gap: 10px; padding: 18px clamp(12px, 3vw, 26px) 24px;
  background:
    radial-gradient(circle at 20% 30%, rgb(40 39 36 / .05) 0 2px, transparent 3px) 0 0 / 34px 34px,
    radial-gradient(circle at 70% 80%, rgb(117 38 220 / .07) 0 2px, transparent 3px) 0 0 / 46px 46px;
}
.chat__day { align-self: center; margin: 0 0 6px; padding: .3em .9em; border-radius: 8px; background: var(--cream); color: var(--ink); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; box-shadow: 0 2px 0 rgb(40 39 36 / .2); }
.msg { display: flex; flex-direction: column; gap: 8px; }
.msg summary {
  align-self: flex-end; max-width: 82%; list-style: none; cursor: var(--hot, pointer);
  background: var(--green); color: var(--cream); padding: .7em 1em; border-radius: 16px 16px 4px 16px;
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-weight: 800; line-height: 1.35; font-size: clamp(.98rem, 1.4vw, 1.08rem);
  transition: scale .15s, translate .15s;
}
.msg summary::-webkit-details-marker { display: none; }
.msg summary::after { content: "\00a0＋"; color: var(--yellow); }
.msg[open] summary::after { content: "\00a0✓✓"; color: #9ad8ff; font-size: .8em; }
.msg summary:hover { translate: -3px -2px; }
.msg__a {
  align-self: flex-start; max-width: 86%; position: relative;
  background: var(--cream); color: var(--ink); padding: .75em 1em; border-radius: 16px 16px 16px 4px;
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-weight: 600; line-height: 1.5; font-size: clamp(.98rem, 1.4vw, 1.06rem);
}
.msg__a p { margin: 0; }
/* "typing..." for a moment after a question opens (JS adds .is-typing, motion only) */
.dots { display: none; }
.msg.is-typing .dots { display: flex; gap: 5px; padding: .45em .1em; }
.msg.is-typing .msg__a p { display: none; }
.dots::before, .dots::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); animation: dot .6s ease-in-out infinite; }
.dots::after { animation-delay: .2s; }
@keyframes dot { 50% { translate: 0 -4px; opacity: .4; } }
.motion .msg[open] .msg__a { animation: bubble-in .3s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 0 100%; }
@keyframes bubble-in { from { scale: .6; opacity: 0; } }

/* ---------- 10. Join form ---------- */
.join { --sky: var(--red); --ray-y: 20%; position: relative; overflow: hidden; padding: var(--sec-pad) var(--gut) calc(var(--sec-pad) + 20px); display: flex; flex-direction: column; align-items: center; }
.join__deco { position: absolute; z-index: 0; pointer-events: none; filter: drop-shadow(4px 5px 0 rgb(40 39 36 / .35)); }
.join__deco--l { left: 4%; top: 14%; width: clamp(80px, 9vw, 140px); rotate: -14deg; }
.join__deco--r { right: 4%; bottom: 10%; width: clamp(90px, 10vw, 160px); rotate: 10deg; }
@media (max-width: 1299px) { .join__deco { display: none; } }

.form {
  position: relative; z-index: 1; width: min(860px, 100%); margin-top: clamp(30px, 4vw, 44px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px;
  background: var(--cream); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 12px 12px 0 var(--ink);
  padding: clamp(26px, 4vw, 44px) clamp(18px, 4vw, 44px) clamp(24px, 3vw, 34px);
}
.form__tape { position: absolute; top: -16px; width: 120px; height: 30px; background: color-mix(in srgb, var(--yellow) 85%, transparent); border-inline: 2px dashed rgb(40 39 36 / .25); }
.form__tape--l { left: 8%; rotate: -6deg; } .form__tape--r { right: 8%; rotate: 5deg; }
.form__head { grid-column: 1 / -1; margin: 0 0 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 3px dashed var(--ink); padding-bottom: 12px; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
.form__head b { font-weight: 400; color: var(--cream); background: var(--purple); border: 3px solid var(--ink); padding: .2em .55em .12em; rotate: 3deg; font-size: .8em; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 800; font-size: 1rem; padding: 0; }
.field small { font-weight: 600; opacity: .7; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7em .85em; font: 600 1rem var(--body); color: var(--ink);
  background: #fff; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink);
  transition: box-shadow .12s, translate .12s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23282724' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; padding-right: 40px; cursor: var(--hot, pointer); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; translate: -2px -2px; box-shadow: 5px 5px 0 var(--purple); border-color: var(--purple); }
.field ::placeholder { color: #9b968a; }
.field__phone { display: flex; }
.field__phone span { display: grid; place-items: center; padding: 0 .8em; font-weight: 800; background: var(--yellow); border: 3px solid var(--ink); border-right: 0; border-radius: 10px 0 0 10px; box-shadow: 3px 3px 0 var(--ink); }
.field__phone input { border-radius: 0 10px 10px 0 !important; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { position: relative; cursor: var(--hot, pointer); }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: inherit; }
.chip span { display: inline-block; min-width: 100px; text-align: center; padding: .75em 1.2em; font-weight: 800; background: #fff; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); transition: background .12s, translate .12s; }
.chip input:checked + span { background: var(--green); color: var(--cream); }
.chip input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: var(--hot, pointer); font-weight: 700 !important; line-height: 1.4; }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--green); cursor: inherit; }
.field__err { margin: 0; min-height: 0; color: var(--red); font-weight: 800; font-size: .9rem; }
.field__err:not(:empty)::before { content: "✦ "; }
.field__meta { margin: 0; display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; font-weight: 700; }
.field__meta > span:last-child { margin-left: auto; opacity: .6; }
.field.is-bad input:not([type="radio"]):not([type="checkbox"]), .field.is-bad select, .field.is-bad textarea, .field.is-bad .chip span, .field.is-bad .field__phone span { border-color: var(--red); box-shadow: 3px 3px 0 var(--red); }
.field.is-bad.shake { animation: shake .35s; }
@keyframes shake { 25% { translate: -6px 0; } 50% { translate: 5px 0; } 75% { translate: -3px 0; } }
.field.is-good input:not([type="radio"]):not([type="checkbox"]), .field.is-good select { border-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.form__submit { --block: var(--green); color: var(--cream); font-size: clamp(1.3rem, 3vw, 1.9rem); cursor: var(--hot, pointer); }
.form__submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.form__note { margin: 0; font-weight: 800; font-size: .95rem; opacity: .75; }
.form__status { margin: 0; color: var(--red); font-weight: 800; text-align: center; }
.form__status:empty { display: none; }
@media (max-width: 680px) { .form { grid-template-columns: 1fr; } .form__head { flex-wrap: wrap; } }

/* ---------- Footer ---------- */
footer { background: var(--ink); }
footer .strip { padding-block: 22px; }
footer .strip__inner { max-width: 1040px; padding-block: 16px; gap: 12px clamp(18px, 4vw, 48px); font-size: clamp(1.05rem, 2.2vw, 1.75rem); letter-spacing: .04em; text-shadow: 2px 2px 0 var(--ink); }
footer .strip__star { width: .8em; aspect-ratio: 1; flex: none; font-size: inherit; color: transparent; text-shadow: none; overflow: hidden; background: var(--yellow); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.legal { margin: 0; padding: 20px 16px calc(22px + env(safe-area-inset-bottom, 0px)); text-align: center; line-height: 1.8; font-size: clamp(.85rem, 1vw, .98rem); font-weight: 700; color: color-mix(in srgb, var(--cream) 80%, transparent); }
.legal a { color: var(--cream); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.legal span { margin-inline: .45em; color: var(--yellow); }

/* ---------- Floating join button ---------- */
.dock {
  --block: var(--yellow);
  position: fixed; z-index: 50; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  color: var(--ink); border-color: var(--ink); text-decoration: none; font-size: clamp(1rem, 2.4vw, 1.3rem);
  translate: 0 160%; transition: translate .35s cubic-bezier(.3, 1.4, .5, 1); white-space: nowrap;
}
.dock.is-on { translate: 0 0; }
.motion .dock.is-on { animation: nudge-btn 3.2s ease-in-out infinite; }
@media (max-width: 599px) { .dock { left: 50%; right: auto; translate: -50% 160%; } .dock.is-on { translate: -50% 0; } }

/* ---------- Cursor (fine pointers) ---------- */
.trail { position: fixed; z-index: 90; pointer-events: none; font: 700 18px/1 var(--body); translate: -50% -50%; animation: trail .8s ease-out forwards; }
@keyframes trail { to { opacity: 0; transform: translateY(26px) rotate(120deg) scale(.3); } }
:root { --hot: pointer; }
@media (pointer: fine) {
  :root { --hot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath d='M6 4v21l6-5.5 4 8.5 4-2-4-8h8z' fill='%23282724' transform='translate(3 3)'/%3E%3Cpath d='M6 4v21l6-5.5 4 8.5 4-2-4-8h8z' fill='%23db234f' stroke='%23fff9e1' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, pointer; }
  html { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath d='M6 4v21l6-5.5 4 8.5 4-2-4-8h8z' fill='%23282724' transform='translate(3 3)'/%3E%3Cpath d='M6 4v21l6-5.5 4 8.5 4-2-4-8h8z' fill='%23f9c41c' stroke='%23282724' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto; }
  a, button { cursor: var(--hot); }
}

/* ---------- Brand decorations (HFF 9.0 elements) ----------
   <img class="deco" style="--x / --y / --w / --r"> placed absolutely in a position:relative section.
   Sides only, behind content; smaller on tablets; .deco--wide ones hide on phones. */
.deco {
  position: absolute; left: var(--x, auto); right: var(--xr, auto); top: var(--y, auto); bottom: var(--yb, auto);
  width: var(--w, 120px); rotate: var(--r, 0deg); z-index: 0; pointer-events: none;
  filter: drop-shadow(4px 5px 0 rgb(40 39 36 / .3));
}
.motion .deco { animation: deco-float 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes deco-float { 50% { translate: 0 -12px; } }
.has-deco { position: relative; }
.has-deco > :not(.deco) { position: relative; z-index: 1; }
@media (max-width: 1000px) { .deco { width: calc(var(--w, 120px) * .62); } }
@media (max-width: 700px) { .deco--wide { display: none; } }
/* Main-page sections: decorations need real side room, so wide screens only */
@media (max-width: 1399px) { .has-deco:not(.done) > .deco { display: none; } }
.done .floor-strip { position: absolute; inset: auto 0 0; height: clamp(60px, 11svh, 120px); z-index: 0; pointer-events: none; overflow: hidden; }
.done .floor-strip .floor { --floor: color-mix(in srgb, var(--purple) 82%, var(--ink)); height: 100%; border-top: 8px solid var(--ink); }
.done { padding-bottom: calc(40px + clamp(60px, 11svh, 120px)); }

/* ---------- Thank-you and 404 pages ---------- */
.done {
  --sky: var(--purple); --ray-y: 45%;
  position: relative; overflow: hidden; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 26px);
  padding: 40px var(--gut); text-align: center;
}
.done__logo { width: clamp(110px, 16vw, 180px); }
.done__title { margin: 0; color: var(--yellow); font-size: clamp(2.6rem, 10vw, 6rem); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.done__copy { margin: 0; max-width: 40ch; font-weight: 800; font-size: clamp(1.05rem, 1.8vw, 1.35rem); text-shadow: 2px 2px 0 var(--ink); text-wrap: balance; }
.done__step { --block: var(--navy); margin: 0; font-size: clamp(1rem, 2.4vw, 1.4rem); rotate: -2deg; }
.wa-btn { --block: var(--green); color: var(--cream); display: inline-flex; align-items: center; gap: .5em; text-decoration: none; border-color: var(--ink); font-size: clamp(1rem, 4.6vw, 2.1rem); white-space: nowrap; }
.wa-btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.wa-btn[aria-disabled="true"] { --block: #8c8778; pointer-events: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* footer links: big enough to tap on phones (was 15px tall) */
.legal a { display: inline-block; padding-block: 9px; }
/* line-break polish (QA 25 Nov) */
.nw { white-space: nowrap; }
.level p, .stat span, .field__err, .about__copy, .done__copy { text-wrap: pretty; }
.title { text-wrap: balance; }
@media (max-width: 820px) { footer .strip__star { display: none; } }   /* no stranded stars when the strip wraps */
@media (max-width: 700px) {
  .legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 1em; row-gap: 0; line-height: 1.3; font-size: .82rem; padding-block: 14px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .legal a { padding-block: 6px; }   /* compact footer: ~25px rows, still a fair tap target */
  .legal span { display: none; }   /* dots only make sense on one line */
}
@media (max-width: 400px) { .perk__name { font-size: .98rem; } }
/* Thank-you + 404: speakers STAND on the checker floor and the chillies show at every screen size */
.done .deco--spk { top: auto; bottom: calc(clamp(60px, 11svh, 120px) - 10px); z-index: 2; rotate: 0deg; }   /* feet 10px into the floor */
.motion .done .deco--spk { animation: thump .55s ease-in-out infinite; transform-origin: 50% 100%; }   /* pulse to the beat like the hero speakers, never float: base stays on the floor */
.motion .done .deco--spk[style*="--xr:"] { animation-delay: .27s; }
.done .deco--spk[style*="--x:"] { left: 3%; } .done .deco--spk[style*="--xr:"] { right: 3%; }
@media (max-width: 700px) { .done .deco--spk { width: clamp(64px, 18vw, 100px); } }
@media (max-width: 1099px) {   /* tablets and phones: chillies in the top corners, clear of the logo and the speakers */
  .done .deco--chilli { display: block; top: 3%; bottom: auto; }
  .done .deco--chilli[style*="--x:"] { left: 5%; } .done .deco--chilli[style*="--xr:"] { right: 5%; }
  .done .deco[src*="notes"] { left: calc(50% - 22px); top: 1.5%; }   /* chillies own the top corners now */
}
@media (max-width: 400px) and (max-height: 620px) { .done .deco--spk { width: 50px; } .done--404 { gap: 12px; } }   /* very short phones: keep clear of the button */
/* Tablets: section titles were 65px over 16px subtitles. Bring them closer together, the same for every section */
@media (min-width: 600px) and (max-width: 1099px) {
  .title { font-size: clamp(3.2rem, 7vw, 4.2rem); }
  .sub { font-size: 1.15rem; max-width: 40ch; }
  .perk__name { font-size: 1.5rem; } .perk__icon { width: 72px; }      /* perks: names were 20px in big cards */
  .msg summary, .msg__a { font-size: 1.05rem; }                          /* FAQ chat */
  .stat span { font-size: 1.05rem; }
}
@media (min-width: 600px) and (max-width: 900px) {   /* tablet, levels stacked in one column: cards were narrow with small text */
  .levels__list { max-width: 580px; } .level h3 { font-size: 1.75rem; } .level p { font-size: 1.1rem; }
}
/* reCAPTCHA v3: Google's floating badge would sit on the dock button. Hiding it is allowed when the notice is in the form (.form__legal) */
.grecaptcha-badge { visibility: hidden; }
.form__legal { margin: 6px 0 0; text-align: center; font-size: .75rem; line-height: 1.4; color: color-mix(in srgb, var(--ink) 65%, transparent); }
.form__legal a { color: inherit; text-decoration: underline; }
