/* ════════════════════════════════════════════════════════════════════
   /breakthrough only: the motion layer on top of /assets/offer.css.
   Same tokens as offer.css (no new hex values). Every animation is
   decoration: the page reads the same with JavaScript off or with
   "reduce motion" set, which the block at the bottom handles.
   ════════════════════════════════════════════════════════════════════ */

/* ── Hero: lines ease in one after another ─────────────────────────── */
@keyframes bt-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.js .bt-in { animation: bt-rise 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 60ms); }

/* A pale-gold marker sweeps under "starting over". box-decoration-break
   keeps it right when the phrase wraps onto two lines on a phone. */
.bt-hero h1 em {
  background-image: linear-gradient(transparent 66%, var(--gold-pale) 66%, var(--gold-pale) 92%, transparent 92%);
  background-repeat: no-repeat; background-size: 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html.js .bt-hero h1 em { background-size: 0% 100%; animation: bt-mark 1.1s var(--ease) 0.85s forwards; }
@keyframes bt-mark { to { background-size: 100% 100%; } }

/* The photo settles in, on a gold halo that breathes: in for four
   seconds, out for six. The halo is drawn wider than the photo, so the
   hero clips it; without that a 375px phone scrolls sideways by 12px. */
.bt-hero { overflow: hidden; }
.bt-halo { position: relative; isolation: isolate; }
.bt-halo::before {
  content: ''; position: absolute; z-index: -1; inset: -6% -8% -2%;
  border-radius: 240px 240px 40px 40px;
  background: radial-gradient(58% 52% at 50% 42%, rgba(244, 186, 47, 0.42), rgba(244, 186, 47, 0) 72%);
  filter: blur(8px);
  animation: bt-breathe 10s ease-in-out infinite;
}
@keyframes bt-breathe { 0%, 100% { transform: scale(0.94); opacity: 0.55; } 40% { transform: scale(1.05); opacity: 1; } }
html.js .bt-halo img { animation: bt-photo 1.3s var(--ease) 0.15s both; }
@keyframes bt-photo { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* At-a-glance chips (replace the dotted fact row, which left a stray
   dot at the end of a line when it wrapped). */
.bt-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; }
.bt-chips li {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2;
  color: var(--forest); background: #fff; border: 1px solid rgba(69, 6, 46, 0.16); border-radius: 999px; padding: 7px 14px;
}
.on-dark .bt-chips { justify-content: center; margin-top: 26px; }
.on-dark .bt-chips li { background: transparent; color: var(--light); border-color: rgba(212, 168, 75, 0.38); }
.cta-note a { color: inherit; text-underline-offset: 3px; }

/* ── Opening: text beside the restart loop ─────────────────────────── */
.bt-open-grid { display: grid; gap: 44px; align-items: center; }
.bt-open-grid > * { min-width: 0; }
@media (min-width: 901px) { .bt-open-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }

.bt-loop { margin: 0 auto; max-width: 380px; width: 100%; text-align: center; }
.bt-loop-stage { width: min(100%, 300px); margin: 0 auto; aspect-ratio: 1 / 1; }
.bt-loop-svg { width: 100%; height: 100%; overflow: visible; display: block; }
.bt-ring { fill: none; stroke: var(--warm-mid); stroke-width: 2; stroke-dasharray: 4 7; opacity: 0.45; transition: opacity 0.8s var(--ease); }
.bt-node { fill: var(--warm-mid); transition: fill 0.3s ease; }
.bt-node.on { fill: var(--gold-bright); }
.bt-dot { fill: var(--gold-bright); filter: drop-shadow(0 0 6px rgba(244, 186, 47, 0.75)); }
.bt-orbit { opacity: 0; transition: opacity 0.5s var(--ease); }
.bt-centre-dot, .bt-centre-halo { transform-box: fill-box; transform-origin: center; }
.bt-centre-dot { fill: var(--gold-bright); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.bt-centre-halo { fill: rgba(244, 186, 47, 0.22); transition: opacity 0.8s var(--ease); animation: bt-breathe 10s ease-in-out infinite; }
/* While it plays: the dot circles the ring; the still centre waits. */
.bt-loop.is-playing .bt-ring { opacity: 1; }
.bt-loop.is-playing .bt-orbit { opacity: 1; }
.bt-loop.is-playing .bt-centre-dot { opacity: 0; transform: scale(0.3); }
.bt-loop.is-playing .bt-centre-halo { opacity: 0; animation: none; }
.bt-loop-cap {
  font-family: var(--display); font-size: clamp(1.35rem, 3.6vw, 1.7rem); line-height: 1.25; color: var(--forest);
  min-height: 2.6em; display: flex; align-items: center; justify-content: center; margin-top: 18px; padding: 0 8px;
}
/* One inner line, so the italic words stay inside the sentence. */
.bt-cap-in { display: block; max-width: 18em; transition: opacity 0.18s ease; }
.bt-loop-cap em { color: var(--gold-text); }
.bt-cap-in.swap { opacity: 0; }
.bt-replay {
  margin-top: 6px; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--plum); font: 600 12.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px;
}

/* ── Problem: the turn of the argument as a pull line ──────────────── */
.prose .bt-pull {
  font-family: var(--display); font-size: clamp(1.35rem, 3.4vw, 1.75rem); line-height: 1.3; color: var(--forest);
  margin: 30px 0; padding: 4px 0 4px 22px; position: relative;
}
.bt-pull::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: var(--gold-bright); transform-origin: top; }
html.js .bt-pull.sr::before { transform: scaleY(0); transition: transform 0.9s var(--ease) 0.25s; }
html.js .bt-pull.sr.up::before { transform: scaleY(1); }

/* ── The 90 minutes as a bar that fills in order ───────────────────── */
.bt-timeline { max-width: 760px; margin: 0 0 24px; }
.bt-tl-bar, .bt-tl-labels { display: flex; gap: 4px; }
.bt-tl-bar { height: 12px; }
.bt-tl-seg, .bt-tl-labels span { flex: 0 0 auto; width: calc(var(--w) - 3px); min-width: 0; }
.bt-tl-seg { border-radius: 999px; background: var(--warm-mid); position: relative; overflow: hidden; }
.bt-tl-seg::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--gold-bright); transform-origin: left; }
.bt-tl-seg:nth-child(2)::after { background: var(--plum); }
.bt-tl-seg:nth-child(3)::after { background: var(--forest); }
html.js .bt-tl-seg::after { transform: scaleX(0); transition: transform 0.9s var(--ease); }
html.js .bt-tl-seg:nth-child(2)::after { transition-delay: 0.85s; }
html.js .bt-tl-seg:nth-child(3)::after { transition-delay: 1.7s; }
html.js .bt-timeline.up .bt-tl-seg::after { transform: scaleX(1); }
.bt-tl-labels { margin-top: 10px; }
.bt-tl-labels span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.bt-tl-labels b { display: block; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest); }

/* ── Lists and cards arrive one after another ──────────────────────── */
.bt-stagger > :nth-child(1) { --i: 0; } .bt-stagger > :nth-child(2) { --i: 1; } .bt-stagger > :nth-child(3) { --i: 2; }
.bt-stagger > :nth-child(4) { --i: 3; } .bt-stagger > :nth-child(5) { --i: 4; } .bt-stagger > :nth-child(6) { --i: 5; }
html.js .bt-stagger > * {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 100ms);
}
html.js .sr.up .bt-stagger > *, html.js .bt-stagger.sr.up > * { opacity: 1; transform: none; }
/* Ticks and dots pop in just after their line. */
html.js .bt-stagger.ticks > li::before { transform: rotate(-45deg) scale(0); transition: transform 0.4s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 320ms); }
html.js .sr.up .bt-stagger.ticks > li::before { transform: rotate(-45deg) scale(1); }
html.js .bt-stagger.dots > li::before { transform: scale(0); transition: transform 0.4s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 320ms); }
html.js .sr.up .bt-stagger.dots > li::before { transform: scale(1); }

/* A slow light passes once across the price card. */
.bt-sheen { position: relative; overflow: hidden; }
.bt-sheen::after {
  content: ''; position: absolute; top: -10%; bottom: -10%; left: -70%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(244, 186, 47, 0.22), transparent); transform: skewX(-14deg);
}
html.js .bt-sheen.sr.up::after { animation: bt-sheen 1.8s var(--ease) 0.55s 1 both; }
@keyframes bt-sheen { from { left: -70%; } to { left: 140%; } }

/* The teacher photo settles into place. */
html.js .bt-settle.sr img { transform: scale(1.06); transition: transform 1.8s var(--ease); }
html.js .bt-settle.sr.up img { transform: none; }

/* ── How it works: numbers light up in turn, joined by gold ────────── */
.bt-journey > :nth-child(1) { --i: 0; } .bt-journey > :nth-child(2) { --i: 1; }
.bt-journey > :nth-child(3) { --i: 2; } .bt-journey > :nth-child(4) { --i: 3; }
.bt-journey .step + .step::after {
  content: ''; position: absolute; background: var(--gold-bright); border-radius: 2px;
  left: 38px; top: -14px; width: 2px; height: 14px; transform-origin: top;
}
@media (min-width: 901px) {
  .bt-journey .step + .step::after { left: -14px; top: 40px; width: 14px; height: 2px; transform-origin: left; }
}
html.js .bt-journey .step::before { transform: scale(0.6); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.5s var(--ease); transition-delay: calc(var(--i, 0) * 260ms + 150ms); }
html.js .bt-journey.up .step::before { transform: none; opacity: 1; }
html.js .bt-journey .step + .step::after { transform: scaleY(0); transition: transform 0.4s var(--ease); transition-delay: calc(var(--i, 0) * 260ms); }
@media (min-width: 901px) { html.js .bt-journey .step + .step::after { transform: scaleX(0); } }
html.js .bt-journey.up .step + .step::after { transform: none; }

/* ── Answers open gently ───────────────────────────────────────────── */
@keyframes bt-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq details[open] > .a { animation: bt-open 0.38s var(--ease); }

/* ── Booking terms ─────────────────────────────────────────────────── */
.bt-terms-key { list-style: none; padding: 0; display: grid; gap: 10px; }
.bt-terms-key li {
  position: relative; padding: 14px 16px 14px 44px; background: #fff; border: 1px solid var(--warm-mid);
  border-radius: 14px; font-size: 15.5px; line-height: 1.5;
}
.bt-terms-key li::before {
  content: ''; position: absolute; left: 18px; top: 1.15em; width: 12px; height: 7px;
  border-left: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: rotate(-45deg);
}
.bt-terms-full { margin-top: 18px; border-top: 1px solid var(--warm-mid); border-bottom: 1px solid var(--warm-mid); }
.bt-terms-full summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; font-size: 15px; letter-spacing: 0.02em; color: var(--forest);
}
.bt-terms-full summary::-webkit-details-marker { display: none; }
.bt-terms-full summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--gold-text); transition: transform 0.25s var(--ease);
}
.bt-terms-full[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.bt-terms-full[open] .bt-terms-body { animation: bt-open 0.38s var(--ease); }
.bt-terms-body { padding: 0 0 26px; font-size: 15px; }
.bt-terms-body h3 { font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--forest); margin: 22px 0 6px; }
.bt-terms-body ul { list-style: none; padding: 0; }
.bt-terms-body li { position: relative; padding-left: 18px; margin-top: 10px; }
.bt-terms-body li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); }
.bt-terms-body b { color: var(--forest); }

/* ── Closing band breathes with the hero ───────────────────────────── */
.close-band::before { animation: bt-breathe 10s ease-in-out infinite; }

/* ── Slim booking bar ──────────────────────────────────────────────── */
.bt-sticky {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 9px 9px 20px;
  background: rgba(56, 5, 35, 0.96); color: var(--light); border-radius: 999px;
  box-shadow: 0 18px 40px rgba(20, 4, 14, 0.32);
  transform: translateY(140%); opacity: 0; pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.bt-sticky.show { transform: none; opacity: 1; pointer-events: auto; }
.bt-sticky-txt { margin: 0; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.bt-sticky-txt b { font-size: 13.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-sticky-txt span { font-size: 12px; color: var(--light-dim); }
.bt-sticky .btn { padding: 12px 24px; flex-shrink: 0; }
body.menu-open .bt-sticky { display: none; }

/* ── Reduce motion: everything still, everything shown ─────────────── */
@media (prefers-reduced-motion: reduce) {
  html.js .bt-in, html.js .bt-halo img, .bt-halo::before, .bt-centre-halo, .close-band::before,
  .faq details[open] > .a, .bt-terms-full[open] .bt-terms-body, html.js .bt-sheen.sr.up::after { animation: none !important; }
  html.js .bt-hero h1 em { animation: none; background-size: 100% 100%; }
  html.js .bt-stagger > *, html.js .bt-stagger > li::before, html.js .bt-journey .step::before,
  html.js .bt-journey .step + .step::after, html.js .bt-pull.sr::before, html.js .bt-tl-seg::after,
  html.js .bt-settle.sr img { transition: none !important; opacity: 1; transform: none !important; }
  html.js .bt-stagger.ticks > li::before { transform: rotate(-45deg) !important; }
  .bt-sticky { transition: none; }
}
