/* Home page — hero, programmes, journey tabs, review stack, guides, form. */

@keyframes rotWord {
  0% { opacity: 0; transform: translateY(115%); }
  3% { opacity: 1; transform: translateY(0); }
  22% { opacity: 1; transform: translateY(0); }
  25% { opacity: 0; transform: translateY(-115%); }
  100% { opacity: 0; transform: translateY(-115%); }
}
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mmDraw { 0% { stroke-dashoffset: 600; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes mmSpin { to { transform: rotate(360deg); } }
@keyframes mmFlip { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
@keyframes mmTick { 0%, 10% { opacity: 0; transform: scale(.4); } 20%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes mmBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes mmGrow { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes mmFill { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@keyframes mmDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-6px); opacity: 1; } }
@keyframes mmAlong { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes mmCut { 0% { opacity: 1; transform: scale(.92); } 5% { transform: scale(1); } 19.9% { opacity: 1; } 20%, 100% { opacity: 0; } }
@keyframes mmStep { 0%, 19.9% { transform: translateX(0); } 20%, 39.9% { transform: translateX(48px); } 40%, 59.9% { transform: translateX(96px); } 60%, 79.9% { transform: translateX(144px); } 80%, 100% { transform: translateX(192px); } }
@keyframes mmL1 { 0%, 25%, 100% { x: 0px; y: 0px; width: 50px; height: 30px; } 33%, 58% { x: 0px; y: 0px; width: 31px; height: 66px; } 66%, 91% { x: 0px; y: 0px; width: 106px; height: 18px; } }
@keyframes mmL2 { 0%, 25%, 100% { x: 56px; y: 0px; width: 50px; height: 30px; } 33%, 58% { x: 37px; y: 0px; width: 32px; height: 66px; } 66%, 91% { x: 0px; y: 24px; width: 106px; height: 18px; } }
@keyframes mmL3 { 0%, 25%, 100% { x: 0px; y: 36px; width: 106px; height: 30px; } 33%, 58% { x: 75px; y: 0px; width: 31px; height: 66px; } 66%, 91% { x: 0px; y: 48px; width: 106px; height: 18px; } }
@keyframes mmDrop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(56px); opacity: 0; } }
@keyframes badgePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* ---------- hero ---------- */
.hero { position: sticky; top: 0; z-index: 0; display: flex; align-items: center; min-height: 100svh; overflow: hidden; padding: clamp(118px,15vh,150px) 0 clamp(64px,10vh,104px); background: var(--hero); }
.hero-grid-layer { position: absolute; inset: -14% 0 -14% 0; z-index: 0; background-image: linear-gradient(to right, rgba(29,27,34,0.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(29,27,34,0.055) 1px, transparent 1px); background-size: 44px 44px; }
.hero-glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 62% 58% at 50% 44%, rgba(244,205,222,0.62), rgba(237,231,246,0.42) 46%, rgba(252,250,255,0) 74%); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 220px; z-index: 0; background: linear-gradient(to bottom, rgba(252,250,255,0), rgba(251,248,244,0.85)); }
.hero-ecg { position: absolute; left: 0; top: 0; width: 100%; height: 200px; pointer-events: none; z-index: 1; }
.hero-cols { position: relative; z-index: 2; max-width: 1360px; margin: 0 auto; padding-inline: 24px; width: 100%; display: grid; gap: 40px; grid-template-columns: minmax(0,1fr) minmax(0,600px) minmax(0,1fr); align-items: start; }
.rev-col { display: grid; align-content: end; gap: 14px; }
.hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
@media (max-width: 1099px) {
  .hero-cols { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
  .hero-text { grid-column: 1 / -1; order: -1; margin-bottom: 32px; }
}
.hero-in { animation: heroIn 900ms var(--ease) both; }
.hero-h1 { margin: 0; text-wrap: balance; font-size: clamp(42px,5.6vw,74px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.grad-ink { background: linear-gradient(90deg,#1D1B22,#666066); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rot { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; color: var(--violet); }
.rot > span { grid-area: 1/1; opacity: 0; white-space: nowrap; animation: rotWord 14s var(--ease) infinite both; }
.rot > span:nth-child(2) { animation-delay: 3.5s; }
.rot > span:nth-child(3) { animation-delay: 7s; }
.rot > span:nth-child(4) { animation-delay: 10.5s; }

.hero-card { position: relative; opacity: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow-card); }
.hero-card p { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--stone); }
.hero-card .who { font-size: 12px; font-weight: 700; color: var(--ink); }
.hero-card .who span { font-weight: 500; color: var(--ash); }
@media (prefers-reduced-motion: reduce) { .hero-card { opacity: 1; } }

/* content panel that slides over the pinned hero */
.panel { position: relative; z-index: 2; overflow-x: clip; background: var(--canvas); border-radius: 40px 40px 0 0; box-shadow: 0 -30px 70px -24px rgba(29,27,34,0.22); }

/* ---------- trust row + ticker ---------- */
.trust { padding: 48px 0 40px; background: #FFFFFF; border-radius: 40px 40px 0 0; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); }
.trust-card { border: 1px solid var(--line); border-radius: 32px; padding: 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trust-card strong { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.trust-card span.sub { font-size: 15px; color: var(--stone); }
.ticker { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.ticker-track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker-set { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.ticker-set span { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); opacity: .66; white-space: nowrap; }

/* ---------- section shells ---------- */
.sec { padding: 112px 0; }
.sec-white { background: #FFFFFF; border-block: 1px solid var(--line); }
.split { display: grid; gap: 56px; grid-template-columns: repeat(auto-fit,minmax(min(100%,420px),1fr)); align-items: center; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

/* ---------- KMMS layered stack ---------- */
.lstack { position: relative; width: 100%; max-width: 520px; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 16px; }
.lstack a { position: relative; display: flex; flex-direction: column; min-height: 200px; text-decoration: none; border: 1px solid rgba(29,27,34,0.10); border-radius: 20px; padding: 24px; box-shadow: 0 10px 30px -14px rgba(29,27,34,0.30); will-change: transform; }
.lstack .num { font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.lstack h3 { margin: 12px 0 0; font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.lstack p { margin: 8px 0 0; font-size: 15px; line-height: 22px; flex: 1; }
.lstack .go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; margin-top: 16px; }

/* ---------- programme cards ---------- */
.prog-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); }
.prog-card { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 32px; overflow: hidden; transition: border-color 300ms ease, box-shadow 400ms var(--ease-btn); }
.prog-card:hover, .prog-card:focus-visible { border-color: var(--violet); box-shadow: var(--shadow-hover); color: var(--ink); }
.prog-art { width: 100%; height: 150px; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; }
.prog-art svg { height: 100%; width: auto; overflow: visible; }
.prog-card .num { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.prog-card h3 { margin: 8px 0 0; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.prog-card p { margin: 8px 0 0; font-size: 15px; line-height: 23px; color: var(--stone); text-wrap: pretty; }
/* hover motion for each illustration */
.pa-lift { transform-box: fill-box; transform-origin: center; transform: translateY(0) rotate(0deg); transition: transform 450ms cubic-bezier(0.22,1.6,0.32,1); }
.pa-lift.d60 { transition-delay: 60ms; }
.pa-fill { transform-box: fill-box; transform-origin: center; }
.pa-ring { transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; transition: stroke-dashoffset 900ms var(--ease); }
.pa-hand { transform-box: view-box; transform-origin: 125px 84px; }
.pa-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.prog-card:is(:hover,:focus-visible) .pa-lift { transform: translateY(-10px); }
.prog-card:is(:hover,:focus-visible) .pa-lift.tl { transform: translateY(-10px) rotate(-6deg); }
.prog-card:is(:hover,:focus-visible) .pa-lift.tr { transform: translateY(-10px) rotate(6deg); }
.prog-card:is(:hover,:focus-visible) .pa-flip { animation: mmFlip 1.6s ease-in-out infinite; }
.prog-card:is(:hover,:focus-visible) .pa-pulse { animation: badgePulse 1s ease-in-out infinite; }
.prog-card:is(:hover,:focus-visible) .pa-ring { stroke-dashoffset: 0; }
.prog-card:is(:hover,:focus-visible) .pa-hand { animation: mmSpin 2.4s linear infinite; }
.prog-card:is(:hover,:focus-visible) .pa-bar { animation: mmGrow 1.2s ease-in-out infinite; }
.prog-card:is(:hover,:focus-visible) .pa-bar.d15 { animation-delay: .15s; }
.prog-card:is(:hover,:focus-visible) .pa-bob { animation: mmBob 1.2s ease-in-out infinite; }
.prog-card:is(:hover,:focus-visible) .pa-bob.d30 { animation-delay: .3s; }

/* ---------- journey tabs ---------- */
.journey-box { background: var(--sand); border-radius: 40px; padding: clamp(32px,5vw,64px) clamp(16px,4vw,56px); }
.tabs { margin: 32px auto 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tab { cursor: pointer; border: none; font-family: inherit; font-size: 15px; font-weight: 700; padding: 10px 18px; border-radius: 999px; background: #FFFFFF; color: var(--stone); transition: background-color 250ms ease, color 250ms ease; }
.tab[aria-selected="true"] { background: var(--ink); color: #FFFFFF; }
.tab-panel { background: var(--sand-in); border-radius: 28px; padding: 12px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); }
.tab-panel[hidden] { display: none; }
.tab-copy { padding: clamp(20px,3vw,40px); }
.tab-copy h3 { margin: 0; font-size: 20px; font-weight: 800; }
.tab-copy > p { margin: 6px 0 20px; font-size: 15px; color: var(--stone); }
.tab-copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tab-copy li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.tab-copy li::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--violet); flex: none; }
.tab-copy a { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-size: 15px; font-weight: 700; color: var(--violet); text-decoration: none; }
.tab-art { background: #FFFFFF; border-radius: 20px; min-height: 320px; display: grid; place-items: center; padding: 24px; }
.tab-art > div { width: 100%; min-height: 280px; display: grid; place-items: center; }
.tab-art svg { width: 100%; height: auto; max-height: 340px; display: block; }

/* ---------- programme split rows ---------- */
.art-box { border-radius: 28px; aspect-ratio: 4/3; display: grid; place-items: center; padding: 28px; }
.art-box svg { width: 100%; height: 100%; display: block; background: #FFFFFF; border-radius: 18px; }

/* ---------- reviews ---------- */
.rev-stage { position: relative; margin: 0 auto; }
.rev-card { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 24px; border-radius: 20px; border: 1px solid rgba(29,27,34,0.10); }
.rev-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid currentColor; opacity: .8; }
.rev-card blockquote { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.rev-foot-stack { display: none; flex-direction: column; gap: 12px; }
.rev-foot-stack .rule { height: 1px; background: currentColor; opacity: .18; }
.rev-foot-stack .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rev-foot-stack .who { display: flex; flex-direction: column; gap: 4px; }
.rev-foot-stack .who span:last-child { font-size: 13px; font-weight: 700; }
.rev-foot-stack .n { font-size: 11px; font-weight: 600; letter-spacing: .16em; opacity: .55; }
.rev-foot-list { font-size: 13px; font-weight: 700; }
/* narrow / touch: simple grid */
.rev-stage.is-grid { max-width: 1200px; padding-inline: 24px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.rev-stage.is-grid .rev-card { min-height: 260px; }
/* wide + fine pointer: hover stack */
.rev-stage.is-stack .rev-card { position: absolute; left: 0; top: 30px; width: 280px; height: 340px; gap: 0; cursor: default; user-select: none; will-change: transform; }
.rev-stage.is-stack blockquote { font-size: 21px; line-height: 1.18; }
.rev-stage.is-stack .rev-foot-stack { display: flex; }
.rev-stage.is-stack .rev-foot-list { display: none; }

/* ---------- tutors ---------- */
.tutor { background: #FFFFFF; border: 1px solid var(--line); border-radius: 28px; padding: 12px 12px 28px; transition: transform 400ms var(--ease-btn), box-shadow 400ms var(--ease-btn); }
.tutor:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tutor img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; background: var(--lilac); }
.tutor h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.tutor .role { margin: 4px 0 0; font-size: 15px; color: var(--violet); font-weight: 700; }
.tutor .tags span { font-size: 12px; font-weight: 600; background: var(--sand); color: var(--ink); padding: 5px 12px; border-radius: 999px; }

/* ---------- free guides ---------- */
.guide { text-decoration: none; color: var(--ink); background: var(--sand); border-radius: 24px; padding: 24px; min-height: 280px; display: flex; flex-direction: column; transition: transform 200ms var(--ease-btn), background-color 200ms ease; }
.guide:hover { transform: scale(0.98); color: var(--ink); }
.guide:active { transform: scale(0.96); }
.guide .art { flex: 1; display: grid; place-items: center; min-height: 150px; }
.guide .art svg { width: 100%; max-width: 220px; height: auto; overflow: visible; }
.guide h3 { margin: 16px 0 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.guide p { margin: 4px 0 0; font-size: 14px; color: var(--stone); }
.guide-all { color: #FFFFFF; background: var(--violet); justify-content: space-between; }
.guide-all:hover { background: var(--violet-d); color: #FFFFFF; }

/* ---------- lead form ---------- */
.form-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px,5vw,48px); box-shadow: rgba(107,75,168,0.12) 0 20px 60px -20px; }
.form-bar { margin-top: 12px; height: 4px; border-radius: 999px; background: var(--lilac); overflow: hidden; }
.form-bar div { height: 100%; width: 50%; background: var(--violet); border-radius: 999px; transition: width 500ms var(--ease); }
.form-h { margin: 28px 0 0; letter-spacing: -0.03em; font-size: clamp(28px,3.4vw,38px); line-height: 1.1; font-weight: 800; }
.pick { cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; padding: 12px 18px; border-radius: 999px; background: var(--w); color: var(--c); border: 1.5px solid transparent; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms var(--ease-btn); }
.pick:hover { transform: translateY(-2px); }
.pick[aria-pressed="true"] { background: var(--c); color: #FFFFFF; border-color: var(--c); }
.form-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 18px; font-weight: 700; border: none; cursor: pointer; font-family: inherit; border-radius: 16px; padding: 18px 32px; background: var(--violet); color: #FFFFFF; transition: opacity 200ms ease, background-color 200ms ease; }
.form-btn:hover { background: var(--violet-d); }
.form-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.form-btn[aria-disabled="true"]:hover { background: var(--violet); }
.form-btn:disabled { opacity: .7; cursor: progress; }
.field { width: 100%; background: var(--canvas); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 20px; font-family: inherit; font-size: 16px; color: var(--ink); outline-color: var(--violet); }
.form-back { margin-top: 12px; width: 100%; background: transparent; border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--stone); padding: 8px; }
.form-err { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--pink-text); }
