/* ATIQ — colour chapters. Tokens first; everything below reads them. */
:root {
  --cobalt: #234BC0;
  --mint: #A0F2D5;
  --yellow: #F9C85D;
  --deep: #172B4D;
  --pale: #EAFBF4;
  --paper: #F7F9FC;
  --pale-step: #D5F5E9;
  --deep-step: #22396A;
  --mint-ink: #12825D; /* the logo's mint where it sits on a light ground */

  --font: "Inter", system-ui, sans-serif;
  --font-display: "Nunito Sans", "Inter", system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3rem, 8.4vw, 8rem);

  --m: clamp(16px, 2vw, 28px);
  --gap: 8px;
  --radius: 22px;
  --section-pad: clamp(96px, 11vw, 168px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--paper);
  color: var(--deep);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--mint); color: var(--deep); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.hero-panel :focus-visible, .made :focus-visible, .prices :focus-visible, .stage :focus-visible, .cta-tile :focus-visible { outline-color: var(--yellow); }

.display, .head, .logo, .poster-name, .foot-name, .price span, .age-value, .stage-text h3, .ticket-main h3, .cell-fact strong, .ticker-track {
  font-family: var(--font-display);
}
.display {
  font-size: var(--step-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.head {
  font-size: var(--step-head);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.lead { font-size: var(--step-lead); line-height: 1.38; }

.skip {
  position: absolute; left: var(--m); top: -60px; z-index: 50;
  background: var(--deep); color: var(--paper); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: var(--m); }

/* Buttons: one shape (fully round), flat fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  border-radius: 999px;
  font-weight: 600; font-size: var(--step-body); text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-mint { background: var(--mint); color: var(--deep); }
.btn-deep { background: var(--deep); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .btn-mint:hover { background: var(--paper); }
  .btn-deep:hover { background: var(--cobalt); }
}

/* Fixed bar: appears after the hero and takes the colour of the chapter beneath it */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: 64px; padding: 0 var(--m);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bar-bg, var(--paper)); color: var(--bar-ink, var(--deep));
  transform: translateY(-100%);
  transition: transform 320ms var(--ease-out), background-color 300ms ease, color 300ms ease;
}
.bar.is-shown { transform: none; }
.bar-mark, .wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.logo { font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.logo b { font-weight: 900; color: var(--logo-iq, var(--mint)); }
.bar-mark .logo { font-size: 1.75rem; }
.btn-bar { min-height: 44px; padding: 0 20px; background: var(--bar-ink, var(--deep)); color: var(--bar-bg, var(--paper)); }

/* ---------- Mochi (llama avatar from the brand guide) ---------- */
.mochi-img { width: 100%; height: auto; border-radius: 50%; }
.hero-mochi .mochi-img { animation: float 4.8s var(--ease-in-out) infinite alternate; }
@keyframes float { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-10px) rotate(1.5deg); } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  padding: var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m);
  background: var(--paper);
}
.hero-panel {
  grid-column: 1 / -1;
  position: relative;
  background: var(--cobalt); color: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 28px;
  min-height: calc(100svh - 2 * var(--m));
}
.wordmark { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); color: var(--paper); }
.bar-mark { font-size: var(--step-body); }
.hero-copy {
  align-self: start; justify-self: center; text-align: center;
  display: grid; justify-items: center; gap: 0;
  margin-top: clamp(16px, 4vh, 48px);
  position: relative; z-index: 2;
}
.hero-copy h1 { color: var(--paper); }
.hero-lead { max-width: 36ch; margin-top: 36px; font-size: var(--step-body); }
.hero-copy .btn { margin-top: 28px; }
.hero-mochi {
  position: absolute; left: 50%; bottom: -14%;
  width: clamp(220px, 25vw, 360px); translate: -50% 0;
  z-index: 1;
}
.hero-mochi.is-jump .mochi-img { animation: jump 700ms var(--ease-out); }
@keyframes jump { 0% { transform: translateY(0); } 35% { transform: translateY(-34%) rotate(-6deg); } 70% { transform: translateY(0) rotate(2deg); } 100% { transform: none; } }
.hero-hint {
  position: absolute; right: 28px; bottom: 24px; z-index: 2;
  font-size: var(--step-small); font-weight: 600; color: var(--mint);
}
.swatches {
  grid-column: 11 / 13;
  display: grid; grid-template-rows: repeat(5, 1fr);
  border-radius: var(--radius); overflow: hidden;
}
.swatches a {
  background: var(--sw); color: var(--sw-ink);
  padding: 20px; font-size: var(--step-body); font-weight: 500; text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .swatches a span, .swatches a { transition: color 200ms ease; }
  .swatches a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
}

/* ---------- Chapters ---------- */
.chapter { min-height: 90svh; position: relative; }

/* Intro: statement tiles */
.intro { background: var(--paper); padding: var(--m); }
.tiles {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 38svh 38svh auto; gap: var(--gap);
}
.tile { border-radius: var(--radius); overflow: hidden; position: relative; }
.tile-a {
  grid-column: 1 / 9; grid-row: 1 / 3;
  background: var(--deep); color: var(--paper);
  display: flex; align-items: flex-end; padding: 28px;
}
.tile-a h2 { line-height: 0.9; max-width: 7ch; }
.tile-b {
  grid-column: 9 / 13; grid-row: 1;
  background: var(--pale);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px;
}
.tile-figure { line-height: 0.8; color: var(--cobalt); }
.tile-note { max-width: 14ch; font-weight: 500; text-align: right; }
.tile-c { grid-column: 9 / 13; grid-row: 2; }
.tile-c img { width: 100%; height: 100%; object-fit: cover; }
.tile-c figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-size: var(--step-small); color: var(--paper);
}
.tile-text {
  grid-column: 1 / 13; grid-row: 3;
  display: grid; grid-template-columns: repeat(12, 1fr);
  padding: clamp(48px, 7vw, 112px) 0 clamp(56px, 8vw, 128px);
}
.tile-text .lead { grid-column: 6 / 13; max-width: 40ch; }
.intro-spark { grid-column: 1 / 5; grid-row: 1; width: min(100%, 220px); fill: var(--yellow); }

/* Programs: one item per poster line */
.programs {
  background: var(--mint); color: var(--deep);
  padding: var(--section-pad) var(--m) clamp(64px, 7vw, 96px);
}
.programs-head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m);
  align-items: end; margin-bottom: clamp(40px, 5vw, 72px);
}
.programs-head h2 { grid-column: 1 / 7; }
.age { grid-column: 8 / 13; justify-self: end; display: grid; gap: 10px; justify-items: end; text-align: right; }
.age[hidden] { display: none; }
.age-word { font-size: var(--step-lead); font-weight: 500; }
.age-control { display: flex; align-items: center; gap: 12px; }
.age-btn {
  width: 56px; height: 56px; border: 0; border-radius: 999px;
  background: var(--deep); color: var(--mint); font-size: 1.5rem; font-weight: 600;
  transition: transform 140ms var(--ease-out), background-color 200ms ease;
}
.age-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .age-btn:hover { background: var(--cobalt); } }
.age-btn:disabled { opacity: 0.35; cursor: default; }
.age-value {
  min-width: 2.2ch; text-align: center;
  font-size: var(--step-head); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.age-result { min-height: 1.5em; max-width: 34ch; font-size: var(--step-body); }

.poster li { transition: opacity 300ms ease; }
.js .poster > li.reveal.is-out { opacity: 0.32; }
.poster summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 2px 0;
}
.poster summary::-webkit-details-marker { display: none; }
.poster-name {
  font-size: var(--step-display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98;
  transition: color 200ms ease, transform 300ms var(--ease-out);
}
.poster-fact { font-size: var(--step-body); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .poster summary:hover .poster-name { color: var(--cobalt); transform: translateX(10px); }
}
.poster details[open] .poster-name { color: var(--cobalt); }
.poster-more {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m);
  padding: 16px 0 36px;
}
.poster-more p:first-child { grid-column: 1 / 8; max-width: 60ch; }
.poster-facts { grid-column: 9 / 13; align-self: end; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.programs-note { margin-top: 40px; font-size: var(--step-small); }

/* How it works: accordion of tinted panels */
.how { background: var(--pale); padding: var(--section-pad) var(--m); }
.how-intro {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m);
  align-items: end; margin-bottom: 64px;
}
.how-intro h2 { grid-column: 1 / 6; }
.how-intro p { grid-column: 7 / 12; max-width: 46ch; }
.stages { display: flex; height: 540px; border-radius: var(--radius); overflow: hidden; }
.stage {
  flex: 0 0 10.5%;
  background: var(--st); color: var(--st-ink);
  position: relative; overflow: hidden;
  transition: flex-basis 450ms var(--ease-in-out);
}
.stage.is-open { flex-basis: 58%; }
.stage-tab {
  position: absolute; inset: 0; width: 100%; border: 0; background: transparent; padding: 24px;
  display: flex; align-items: flex-end; justify-content: flex-start; text-align: left;
}
.stage-tab span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: var(--step-body); font-weight: 600; white-space: nowrap;
}
.stage.is-open .stage-tab { pointer-events: none; opacity: 0; }
.stage-body {
  position: absolute; inset: 0; width: 58vw; max-width: calc(100vw - 2 * var(--m));
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px;
  opacity: 0; visibility: hidden;
  transition: opacity 250ms ease, visibility 0s 250ms;
}
.stage.is-open .stage-body { opacity: 1; visibility: visible; transition: opacity 300ms ease 180ms; }
.stage-text { display: flex; flex-direction: column; justify-content: space-between; }
.stage-text h3 { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.stage-text p { max-width: 36ch; }
.stage-body img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.stage-figure { align-self: end; justify-self: end; line-height: 0.8; color: var(--yellow); }
.stage-mochi { align-self: end; justify-self: end; width: min(100%, 260px); border-radius: 50%; }
.stage-spark { align-self: end; justify-self: end; width: min(100%, 220px); fill: var(--cobalt); }

/* Showcase: one picture across tiles */
.made { background: var(--cobalt); color: var(--paper); padding: var(--section-pad) var(--m) clamp(64px, 7vw, 96px); }
.board { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.board > * { aspect-ratio: 1; border-radius: 14px; overflow: hidden; position: relative; }
.piece { background: #3157C8; }
.piece::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--img); background-size: var(--bs, 600% 400%); background-position: var(--px, 0) var(--py, 0);
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .piece:hover::before { transform: scale(1.08); } }
.cell { background: var(--c, var(--mint)); color: var(--c-ink, var(--deep)); padding: 18px; display: flex; }
.cell-head { background: var(--mint); color: var(--deep); align-items: flex-start; }
.cell-head { grid-column: span 2; aspect-ratio: auto; }
.cell-head h2 { font-size: var(--step-head); }
.cell-fact { align-items: flex-end; }
.cell-fact p { font-size: var(--step-body); line-height: 1.35; }
.cell-fact strong { display: block; font-size: var(--step-lead); font-weight: 600; margin-bottom: 4px; }
.cell-action {
  align-items: flex-end; text-decoration: none; font-size: var(--step-lead); font-weight: 600; line-height: 1.2;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.cell-action:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .cell-action:hover { background: var(--mint); } }
.board-photo { display: none; }
.board-caption { margin-top: 20px; max-width: 60ch; font-size: var(--step-small); }

/* Mochi story: two columns, highlighted words */
.mochi-sec { background: var(--paper); padding: var(--section-pad) var(--m); }
.mochi-head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m);
  align-items: end; margin-bottom: clamp(48px, 6vw, 88px);
}
.mochi-head h2 { grid-column: 1 / 6; }
.mochi-portrait { grid-column: 8 / 13; justify-self: end; width: min(100%, 340px); }
.mochi-portrait img { width: 100%; height: auto; border-radius: 50%; transition: transform 400ms cubic-bezier(0.34, 1.4, 0.64, 1); }
@media (hover: hover) and (pointer: fine) { .mochi-portrait:hover img { transform: rotate(-4deg) scale(1.03); } }
.moods { display: none; }
.moods li {
  background: var(--pale); border-radius: var(--radius); padding: 20px 16px 16px;
  display: grid; gap: 12px; justify-items: center; font-weight: 500;
  transition: transform 200ms var(--ease-out), background-color 200ms ease;
}
.moods .mochi { width: min(100%, 132px); }
@media (hover: hover) and (pointer: fine) { .moods li:hover { background: var(--mint); transform: translateY(-4px); } }
.story { columns: 2; column-gap: 48px; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; }
.story p { hyphens: auto; }
.story strong { font-weight: 600; }
mark {
  background: var(--hl); color: var(--deep);
  padding: 0 0.12em; border-radius: 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.story-end { margin-top: 0.8em; }
.story-end a { text-decoration: none; }
.story-end a mark { transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .story-end a:hover mark { background: var(--deep) !important; } }

/* Prices: the ticket */
.prices { background: var(--deep); color: var(--paper); padding: var(--section-pad) var(--m); }
.prices-head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m);
  align-items: end; margin-bottom: clamp(48px, 6vw, 80px);
}
.prices-head h2 { grid-column: 1 / 7; }
.prices-head p { grid-column: 8 / 13; max-width: 44ch; }
.tickets { display: grid; grid-template-columns: 1fr 1fr; gap: var(--m); }
.ticket {
  position: relative; display: grid; grid-template-columns: 7fr 4fr;
  background: var(--paper); color: var(--deep);
  border-radius: var(--radius); min-height: 300px;
  --notch: var(--deep);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: calc(100% * 7 / 11 - 14px);
  width: 28px; height: 28px; border-radius: 50%; background: var(--notch);
}
.ticket::before { top: -14px; }
.ticket::after { bottom: -14px; }
.ticket-main { padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.ticket-main h3 { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.ticket-main ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; font-size: var(--step-body); }
.ticket-stub {
  position: relative; padding: 36px 28px 28px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; gap: 20px;
  background: var(--pale); border-radius: 0 var(--radius) var(--radius) 0;
}
.ticket-stub::before {
  content: ""; position: absolute; left: -3px; top: 22px; bottom: 22px; width: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='16'%3E%3Ccircle cx='3' cy='8' r='3' fill='%23172B4D'/%3E%3C/svg%3E") center top / 6px 16px repeat-y;
}
.price { display: grid; text-align: center; }
.price span { font-size: var(--step-head); font-weight: 900; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: var(--step-body); }
.ticket-btn {
  display: flex; align-items: center; justify-content: center; min-height: 56px;
  background: var(--deep); color: var(--paper); border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.ticket-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .ticket-btn:hover { background: var(--cobalt); } }
.prices-note { margin-top: 32px; max-width: 60ch; font-size: var(--step-small); }

/* FAQ: accordion of filled tiles */
.faq {
  background: var(--pale); padding: var(--section-pad) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); align-items: start;
}
.faq-side { grid-column: 1 / 5; position: sticky; top: 40px; display: grid; gap: 32px; }
.faq-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.faq-photo img { width: 100%; height: 100%; object-fit: cover; }
.faq-list { grid-column: 5 / 13; display: grid; gap: var(--gap); }
.faq details { background: var(--pale-step); border-radius: var(--radius); transition: background-color 250ms ease; }
.faq summary {
  list-style: none; cursor: pointer; min-height: 72px; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: var(--step-body); font-weight: 500; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: 0 0 16px; height: 16px; }
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; border-radius: 2px; background: currentColor;
  transition: transform 250ms var(--ease-out);
}
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] { background: var(--cobalt); color: var(--paper); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 24px; max-width: 52ch; font-size: var(--step-body); }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]) summary:hover { color: var(--cobalt); } }

/* CTA: the action tile */
.cta {
  background: var(--yellow); min-height: auto;
  padding: clamp(72px, 7vw, 112px) 0; overflow: hidden;
}
.cta-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); padding: 0 var(--m); }
.cta-side { height: 380px; border-radius: var(--radius); overflow: hidden; }
.cta-photo { grid-column: 1 / 3; margin-left: calc(-1 * var(--m) - 40px); }
.cta-photo video { width: 100%; height: 100%; object-fit: cover; }
.cta-flat {
  grid-column: 11 / 13; margin-right: calc(-1 * var(--m) - 40px);
  background: var(--cobalt); display: grid; place-items: center start; padding-left: 24px;
}
.cta-mochi { width: 160px; height: auto; border-radius: 50%; }
.cta-tile {
  grid-column: 3 / 11; height: 380px;
  background: var(--mint); color: var(--deep); border-radius: var(--radius);
  padding: 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px;
}
.cta-tile p { max-width: 46ch; }

/* Footer: name first */
.foot {
  background: var(--paper); color: var(--deep);
  padding: clamp(56px, 6vw, 88px) var(--m) 32px;
  display: flex; flex-direction: column;
}
.foot-name {
  font-size: clamp(5rem, 22vw, 20rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.85;
  color: var(--cobalt); white-space: nowrap;
}
.foot-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); margin-top: 72px; }
.foot-places { grid-column: 1 / 7; display: grid; gap: 8px; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; }
.foot-places a { color: var(--cobalt); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.foot-links { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--m); font-size: var(--step-small); }
.foot-links ul { display: grid; gap: 10px; align-content: start; }
.foot-links a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover, .foot-legal a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.foot-tagline { font-weight: 600; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 96px; font-size: var(--step-small); }
.foot-legal a { text-decoration: none; font-weight: 500; }

/* ---------- Motion layer ---------- */
.js .reveal, .js [data-reveal-group] > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in, .js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
.drift { animation: drift 18s var(--ease-in-out) infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -2%); } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes line-up { from { transform: translateY(108%); } }
@keyframes pop-in { from { transform: translateY(45%) scale(0.9); opacity: 0; } }
@keyframes slide-in { from { transform: translateX(40%); opacity: 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Hero: the page opens in sequence (pure CSS, so it plays even without the script) */
.hero-copy h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-copy h1 .line > span { display: inline-block; animation: line-up 900ms var(--ease-out) backwards; }
.hero-copy h1 .line + .line > span { animation-delay: 110ms; }
.wordmark { animation: rise 600ms var(--ease-out) backwards; }
.hero-lead { animation: rise 700ms var(--ease-out) 280ms backwards; }
.hero-copy .btn { animation: rise 700ms var(--ease-out) 380ms backwards; }
.hero-mochi { animation: pop-in 1000ms cubic-bezier(0.34, 1.4, 0.64, 1) 460ms backwards; }
.hero-hint { animation: rise 600ms var(--ease-out) 900ms backwards; }
.swatches a { animation: slide-in 700ms var(--ease-out) backwards; }
.swatches a:nth-child(1) { animation-delay: 300ms; }
.swatches a:nth-child(2) { animation-delay: 360ms; }
.swatches a:nth-child(3) { animation-delay: 420ms; }
.swatches a:nth-child(4) { animation-delay: 480ms; }
.swatches a:nth-child(5) { animation-delay: 540ms; }
.swatches a { display: flex; justify-content: space-between; gap: 8px; }
.swatches a::after {
  content: "↓"; opacity: 0; transform: translateY(-8px);
  transition: opacity 200ms ease, transform 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .swatches a:hover::after { opacity: 1; transform: none; }
}
.hero-mochi { will-change: transform; }

/* Ticker between chapters */
.ticker { background: var(--cobalt); color: var(--mint); overflow: hidden; padding: 22px 0; }
.ticker-track {
  display: flex; align-items: center; gap: 36px; padding-right: 36px; width: max-content;
  font-size: var(--step-body); font-weight: 800; letter-spacing: -0.01em; white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-track b { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); }
.ticker-track b:nth-of-type(3n+2) { background: var(--mint); }
.ticker-track b:nth-of-type(3n) { background: var(--paper); }
@media (hover: hover) and (pointer: fine) { .ticker:hover .ticker-track { animation-play-state: paused; } }

/* Pictures open like a curtain as they enter */
/* The observed box stays unclipped so the observer sees it; its picture carries the curtain. */
.js .clip-reveal > img, .js .clip-reveal > video {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1000ms var(--ease-in-out) var(--d, 0ms);
}
.js .clip-reveal.is-in > img, .js .clip-reveal.is-in > video { clip-path: inset(0 0 0 0); }
.js .clip-reveal > video { transform: scale(1.15); transition: clip-path 1000ms var(--ease-in-out), transform 1400ms var(--ease-out); }
.js .clip-reveal.is-in > video { transform: none; }

/* How it works: an opened stage builds itself */
.stage-text > * { opacity: 0; transform: translateY(16px); transition: opacity 400ms ease, transform 500ms var(--ease-out); }
.stage.is-open .stage-text > * { opacity: 1; transform: none; }
.stage.is-open .stage-text > :nth-child(1) { transition-delay: 200ms; }
.stage.is-open .stage-text > :nth-child(2) { transition-delay: 280ms; }
.stage-body > :last-child { clip-path: inset(0 0 100% 0); transition: clip-path 700ms var(--ease-in-out); }
.stage.is-open .stage-body > :last-child { clip-path: inset(0 0 0 0); transition-delay: 220ms; }

/* Age value rolls; Mochi cards bounce */
.age-value { display: inline-block; }
@media (hover: hover) and (pointer: fine) {
  .cell-action span { transition: transform 240ms var(--ease-out); }
  .cell-action:hover span { transform: translateY(-4px); }
}

/* Tickets slide in tilted, lift on hover */
.js .ticket.reveal {
  transform: translateY(48px) rotate(-3deg);
  transition: opacity 600ms var(--ease-out), transform 900ms cubic-bezier(0.34, 1.3, 0.64, 1), translate 260ms var(--ease-out);
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms;
}
.js .ticket.reveal + .ticket.reveal { transform: translateY(48px) rotate(3deg); }
/* both tickets straighten once in view (the sibling rule above is more specific, so it is named here too) */
.js .ticket.reveal.is-in, .js .ticket.reveal + .ticket.reveal.is-in { transform: none; }
@media (hover: hover) and (pointer: fine) { .ticket:hover { translate: 0 -6px; } }

/* FAQ answers unfold */
.faq { interpolate-size: allow-keywords; }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 340ms var(--ease-out), content-visibility 340ms allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq details p { opacity: 0; transform: translateY(-6px); transition: opacity 260ms ease 80ms, transform 340ms var(--ease-out) 80ms; }
.faq details[open] p { opacity: 1; transform: none; }

/* Footer name rises letter by letter */
.foot-name .ch { display: inline-block; white-space: pre; }
.js .foot-name .ch {
  transform: translateY(70%); opacity: 0;
  transition: transform 900ms var(--ease-out), opacity 500ms ease;
  transition-delay: calc(var(--i) * 35ms);
}
.js .foot-name.is-in .ch { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drift, .hero-mochi .mochi-img, .ticker-track,
  .hero-copy h1 .line > span, .wordmark, .hero-lead, .hero-copy .btn, .hero-mochi, .hero-hint, .swatches a { animation: none; }
  .js .reveal, .js [data-reveal-group] > * { transform: none; transition: opacity 300ms ease; }
  .js .ticket.reveal, .js .ticket.reveal + .ticket.reveal { transform: none; }
  .js .clip-reveal > img, .js .clip-reveal > video, .stage-body > :last-child { clip-path: none; transition: none; }
  .js .clip-reveal > video { transform: none; }
  .stage-text > *, .faq details p { transform: none; transition: none; }
  .js .foot-name .ch { transform: none; opacity: 1; transition: none; }
  .faq details::details-content { transition: none; }
  .stage, .poster-name, .bar { transition-duration: 0ms; }
  .hero-mochi.is-jump .mochi-img { animation: none; }
  .mochi-portrait img { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .prices-head, .how-intro { grid-template-columns: 1fr; gap: 20px; }
  .prices-head > *, .how-intro > * { grid-column: 1 !important; }
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero-panel { grid-column: 1; min-height: 76svh; }
  .hero-mochi { width: 34vw; }
  .hero-hint { display: none; }
  .swatches { grid-column: 1; grid-template-rows: none; grid-template-columns: repeat(5, 1fr); margin-top: var(--gap); }
  .swatches a { min-height: 96px; padding: 16px; }

  .stages { flex-direction: column; height: auto; }
  .stage { flex: none; min-height: 64px; transition: none; }
  .stage-tab { position: relative; inset: auto; min-height: 64px; padding: 0 24px; align-items: center; }
  .stage-tab span { writing-mode: horizontal-tb; transform: none; }
  .stage.is-open .stage-tab { display: none; }
  .stage-body { position: relative; width: auto; max-width: none; display: none; padding: 28px 24px; }
  .stage.is-open .stage-body { display: grid; }
  .stage-body img { height: 260px; }
  .stage-mochi, .stage-spark { width: 160px; }

  .board { grid-template-columns: repeat(3, 1fr); }
  .board .piece { display: none; }
  .board > .cell { aspect-ratio: auto; min-height: 180px; }
  .cell-head { grid-column: span 3; }
  .board-photo { display: block; width: 100%; height: auto; margin-top: var(--gap); border-radius: 14px; }
  .tickets { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq-side, .faq-list { grid-column: 1; }
  .faq-side { position: static; grid-template-columns: 1fr 1fr; align-items: end; }
  .faq-photo { aspect-ratio: 4 / 3; }
  .mochi-portrait { grid-column: 1 / 13; justify-self: start; width: min(70%, 300px); }
  .mochi-head h2 { grid-column: 1 / 13; }

}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --gap: 6px; --radius: 18px; --section-pad: 96px; --step-display: 11vw; }
  .hero { grid-template-columns: 1fr; gap: 0; padding: 8px; }
  .hero-panel { grid-column: 1; min-height: 72svh; padding: 20px; }
  .hero-copy h1 { font-size: var(--step-display); }
  .hero-lead { margin-top: 28px; }
  .hero-mochi { width: 42vw; bottom: -10%; }
  .hero-hint { display: none; }
  .swatches { grid-template-columns: 1fr; margin-top: 8px; }
  .swatches a { min-height: 52px; padding: 14px 16px; font-size: var(--step-small); }
  .stage-body { grid-template-columns: 1fr; padding: 24px 20px; }
  .stage-body img { height: 200px; }
  .board { grid-template-columns: 1fr 1fr; }
  .board > .cell { min-height: 150px; }
  .cell-head { grid-column: span 2; }

  .tiles { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; }
  .tile-a { min-height: 30svh; }
  .tile-a { grid-column: 1 / 3; grid-row: 1; padding: 20px; }

  .tile-b, .tile-c { grid-column: auto; grid-row: 2; aspect-ratio: 1; }
  .tile-b { flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 16px; }

  .tile-note { text-align: left; font-size: var(--step-small); }
  .tile-c figcaption { display: none; }
  .tile-c::after { display: none; }
  .tile-text { grid-column: 1 / 3; grid-row: 3; grid-template-columns: 1fr; padding: 48px 4px 56px; }
  .intro-spark { display: none; }
  .tile-text .lead { grid-column: 1; }

  .programs-head, .how-intro, .prices-head, .mochi-head, .poster-more, .foot-row { grid-template-columns: 1fr; }
  .programs-head > *, .how-intro > *, .prices-head > *, .mochi-head > *, .poster-more > *, .foot-row > * { grid-column: 1 !important; }
  .age { justify-self: start; justify-items: start; text-align: left; }
  .poster summary { flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px 0 18px; }

  .poster-fact { font-size: var(--step-small); }
  .poster-more { padding-top: 0; }
  .poster-facts { text-align: left; }



  .cell { padding: 12px; }


  .moods { grid-template-columns: repeat(2, 1fr); }
  .story { columns: 1; line-height: 1.3; }
  .story p { hyphens: manual; }
  .story-end { margin-top: 24px; }
  .story-end a { display: block; }

  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { top: auto; bottom: 168px; }
  .ticket::before { left: -14px; }
  .ticket::after { left: auto; right: -14px; }
  .ticket-main { padding: 28px 24px; }
  .ticket-main ul { grid-template-columns: 1fr; }
  .ticket-stub { border-radius: 0 0 var(--radius) var(--radius); padding: 28px 24px 24px; min-height: 182px; }
  .ticket-stub::before {
    left: 22px; right: 22px; top: -3px; bottom: auto; width: auto; height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='6'%3E%3Ccircle cx='8' cy='3' r='3' fill='%23172B4D'/%3E%3C/svg%3E") left center / 16px 6px repeat-x;
  }

  .faq summary { min-height: 64px; padding: 16px 20px; }
  .faq details p { padding: 0 20px 20px; }

  .cta-row { grid-template-columns: 1fr 1fr; }
  .cta-tile { grid-column: 1 / 3; grid-row: 1; height: auto; min-height: 300px; padding: 28px 24px; }
  .cta-tile .btn { width: 100%; }
  .cta-side { height: 120px; margin: 0 !important; grid-row: 2; }
  .cta-photo { grid-column: 1; }
  .cta-flat { grid-column: 2; padding-left: 16px; }
  .cta-mochi { width: 88px; }

  .foot-name { font-size: 30vw; }
  .foot-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .faq-side { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Rail: section navigation that stays in view ---------- */
:root { --rail: 228px; --rail-h: 112px; }
.rail {
  position: fixed; z-index: 40; inset: 0 auto 0 0; width: var(--rail);
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px 16px 24px;
  background: #EDF1F8; color: var(--deep);
}
.rail-logo { text-decoration: none; padding: 0 12px; --logo-iq: var(--mint-ink); }
.rail-logo .logo { font-size: 2.25rem; }
.rail-links { position: relative; display: grid; gap: 2px; align-content: start; flex: 1; }
/* links sit above the indicator; the list is their offset parent */
.rail-links a {
  position: relative; z-index: 1;
  display: block; padding: 10px 14px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none; line-height: 1.25;
  transition: color 250ms ease, transform 200ms var(--ease-out);
}
.rail-links a[aria-current] { color: var(--paper); background: var(--active-bg, transparent); }
/* The active chip is filled at once (readable at every moment); the indicator glides behind it as the trail. */
.rail-links a[aria-current][data-ink="deep"] { color: var(--deep); }
@media (hover: hover) and (pointer: fine) {
  .rail-links a:not([aria-current]):hover { transform: translateX(4px); color: var(--cobalt); }
}
.rail-links a:active { transform: scale(0.97); }
.rail-links .rail-indicator {
  position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0;
  border-radius: 999px; background: var(--cobalt); pointer-events: none;
}
.rail-indicator.is-placed {
  transition: transform 460ms var(--ease-in-out), width 460ms var(--ease-in-out), height 460ms var(--ease-in-out), background-color 300ms ease;
}
.btn-rail { min-height: 48px; background: var(--cobalt); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .btn-rail:hover { background: var(--deep); } }
.rail :focus-visible { outline-color: var(--cobalt); }

@media (min-width: 1025px) {
  body { padding-left: var(--rail); }
}

/* Below desktop the rail becomes a strip across the top: logo and WhatsApp, then the sections as chips */
@media (max-width: 1024px) {
  html { scroll-padding-top: calc(var(--rail-h) + 8px); }
  body { padding-top: var(--rail-h); }
  .rail {
    inset: 0 0 auto 0; width: auto; height: var(--rail-h);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 56px 1fr;
    align-items: center; gap: 0 12px; padding: 0 var(--m) 8px;
  }
  .rail-logo { padding: 0; }
  .rail-logo .logo { font-size: 1.75rem; }
  .btn-rail { min-height: 40px; padding: 0 18px; }
  .rail-links {
    grid-column: 1 / -1; grid-row: 2; min-width: 0;
    display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  }
  .rail-links::-webkit-scrollbar { display: none; }
  .rail-links li { flex: none; }
  .rail-links a { padding: 9px 14px; white-space: nowrap; }
  .rail-indicator { top: 0; }
  .hero-panel { min-height: calc(100svh - var(--rail-h) - 2 * var(--m)); }
  .faq-side { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rail-indicator.is-placed { transition: background-color 200ms ease; }
}

/* ---------- Tool logos and the contact avatar ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logos { display: inline-flex; gap: 6px; flex: none; }
.logos svg {
  width: 1em; height: 1em; padding: 0.18em; box-sizing: content-box;
  fill: currentColor; background: var(--paper); border-radius: 0.32em;
}
.poster-title { display: inline-flex; align-items: center; gap: 0.2em; min-width: 0; font-size: var(--step-display); }
.poster-title .logos { font-size: 0.36em; gap: 0.12em; }
.poster-title .logos svg { transition: transform 300ms cubic-bezier(0.34, 1.4, 0.64, 1); }
@media (hover: hover) and (pointer: fine) {
  .poster summary:hover .poster-title .logos svg { transform: rotate(-8deg) scale(1.08); }
}

.cta-tile { position: relative; }
.cta-avatar {
  position: absolute; right: 44px; top: 50%; translate: 0 -50%;
  width: clamp(120px, 12vw, 176px); height: auto;
  border-radius: 50%;
  animation: avatar-bob 4.5s var(--ease-in-out) infinite alternate;
}
@keyframes avatar-bob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-8px) rotate(2deg); } }
.cta-tile > :not(.cta-avatar) { max-width: calc(100% - clamp(120px, 12vw, 176px) - 40px); }

@media (max-width: 1024px) {
  .cta-avatar { position: static; translate: none; width: 104px; order: -1; }
  .cta-tile > :not(.cta-avatar) { max-width: none; }
  .cta-tile { height: auto; min-height: 380px; }
}
@media (max-width: 760px) {
  .poster-title .logos { font-size: 0.5em; }
  .poster-title { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  /* the hero Mochi sits in the flow under the button, so the panel has no empty band */
  .hero-panel { min-height: 0; }
  .hero-mochi { position: relative; left: auto; bottom: auto; translate: none; width: 62vw; margin: 36px auto -18%; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-avatar { animation: none; }
  .poster-title .logos svg { transition: none; }
}

/* Social marks: under the rail's WhatsApp button (desktop) and in the footer (every width) */
.rail-social, .foot-social { display: flex; gap: 8px; }
.rail-social { justify-content: center; margin-top: -16px; }
.rail-social a, .foot-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); color: var(--deep);
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.rail-social svg, .foot-social svg { width: 20px; height: 20px; fill: currentColor; }
.foot-social { margin-top: 12px; }
.foot-social a { width: 52px; height: 52px; background: var(--deep); color: var(--paper); }
.foot-social svg { width: 24px; height: 24px; }
.rail-social a:active, .foot-social a:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .rail-social a:hover, .foot-social a:hover { background: var(--cobalt); color: var(--paper); transform: translateY(-2px); }
}
@media (max-width: 1024px) { .rail-social { display: none; } }

/* Promotional monthly pricing */
.price-promo { gap: 8px; }
.price-promo .promo-label {
  justify-self: center; padding: 5px 10px; border-radius: 999px;
  background: var(--deep); color: var(--paper);
  font-size: 12px; font-weight: 700; line-height: 1.3;
}
.price-promo del { font-size: 24px; line-height: 1.2; opacity: .65; text-decoration-thickness: 2px; }
.price-promo .promo-amount { display: block; }
.ticket.is-in .promo-amount { animation: promo-arrive 650ms cubic-bezier(.2,.8,.2,1) both; }
.ticket:nth-child(2).is-in .promo-amount { animation-delay: 120ms; }
.ticket.is-in .promo-label { animation: promo-arrive 500ms ease-out both; }
@keyframes promo-arrive {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ticket.is-in .promo-amount, .ticket.is-in .promo-label { animation: none; }
}