/* Layout concept: one fixed WebGL particle field that rebuilds itself per chapter, with dark glass content chapters scrolling over it. Deliberate single dark look in the AIDO palette (Midnight Navy, Cyan, Royal Blue; violet as a supporting accent). */
:root {
  --ink: #06132F;
  --ink-2: #14213B;
  --ink-3: #1E2A44;
  --line: #27334C;
  --text: #F5F8FF;
  --muted: #B2B8C5;
  --accent: #56C9F4;
  --blue: #3979D3;
  --indigo: #353C9B;
  --violet: #9655D6;
  --ice: #56C9F4;
  --wa: #25D366;
  --wa-ink: #03140A;
  --glass: rgba(20, 33, 59, 0.78);
  --display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --body: Inter, 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.035em; }
p { margin: 0; }

/* ---------- background layers ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 75% 15%, rgba(57, 121, 211, 0.22) 0%, rgba(6, 19, 47, 0) 60%), radial-gradient(ellipse 80% 70% at 50% 45%, transparent 35%, rgba(6, 19, 47, 0.8) 100%); }
.no-gl body { background: radial-gradient(ellipse 60% 45% at 70% 30%, #173a73 0%, var(--ink) 70%) fixed, var(--ink); }
.no-gl #gl { display: none; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: transparent; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left center; transform: scaleX(0); }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  width: min(1120px, calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(20, 33, 59, 0.62); border: 1px solid rgba(245, 248, 255, 0.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-name span { font-weight: 500; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.2; transition: transform .25s ease, background .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-ghost { border: 1px solid rgba(245, 248, 255, 0.28); color: var(--text); }
.btn-ghost:hover { background: rgba(245, 248, 255, 0.08); }
.btn-blue { background: var(--accent); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 58px; padding: 14px 28px; font-size: 17px; }

main { position: relative; z-index: 2; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.chapter { padding-block: clamp(96px, 13vw, 176px); }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ice); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.h2 { font-size: clamp(36px, 5.2vw, 76px); line-height: 0.98; font-weight: 800; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }
.ph { color: var(--ice); font-family: var(--mono); font-size: 0.92em; }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(72px, 12vw, 150px)); padding-bottom: clamp(64px, 9vw, 120px); }
.hero-inner { display: flex; flex-direction: column; gap: 26px; }
.eyebrow { font-family: var(--mono); font-size: 14px; color: var(--ice); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 14px var(--wa); }
.hero h1 { font-size: clamp(40px, 6.6vw, 96px); line-height: 0.92; font-weight: 800; letter-spacing: -0.05em; max-width: 1120px; }
.hero h1 .ai { color: var(--accent); text-shadow: 0 0 40px rgba(86, 201, 244, 0.45); }
.hero .sub { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.02em; color: var(--ice); }
.hero .lede { max-width: 58ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.hero-meta strong { color: var(--text); font-weight: 600; }
.scroll-cue { margin-top: clamp(28px, 5vw, 64px); display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.scroll-cue .rail { width: 1px; height: 46px; background: linear-gradient(var(--ice), transparent); position: relative; overflow: hidden; }
.scroll-cue .rail::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- build replay (pinned) ---------- */
.build { position: relative; height: 100vh; height: 100svh; }
.build-inner { height: 100%; display: flex; align-items: center; }
.build-panel { width: min(470px, 100%); display: flex; flex-direction: column; gap: 20px; padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: rgba(6, 19, 47, 0.72); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.build-panel h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1; font-weight: 800; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 13.5px; }
.log li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); transition: color .3s ease; }
.log li .st { width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: 50%; border: 1.5px solid #3B455D; display: grid; place-items: center; transition: background .3s ease, border-color .3s ease; }
.log li .st svg { width: 12px; height: 12px; opacity: 0; color: var(--wa-ink); transition: opacity .2s ease; }
.log li.done { color: var(--text); }
/* stagger: the ticks run top to bottom, 90ms apart */
.log li, .log li .st, .log li .st svg { transition-delay: calc(var(--i, 0) * 90ms); }
.log li.done .st { background: var(--wa); border-color: var(--wa); }
.log li.done .st svg { opacity: 1; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.counter { padding: 14px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.counter b { font-family: var(--display); font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.counter span { font-size: 12.5px; color: var(--muted); }
.counter.zero b { color: var(--wa); }

/* ---------- products (horizontal) ---------- */
.products { position: relative; overflow: hidden; }
.products-inner { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vw, 48px); padding-block: calc(var(--nav-h) + 24px) 48px; }
.track { display: flex; gap: 22px; padding-inline: max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))); perspective: 1600px; width: max-content; will-change: transform; }
/* ---------- statement ---------- */
.statement-text { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.8vw, 70px); line-height: 1.05; letter-spacing: -0.035em; max-width: 1100px; }
.statement-text .w { display: inline-block; }
.statement-text .hl { color: var(--accent); }

/* ---------- outcomes stack ---------- */
.stack { display: flex; flex-direction: column; gap: 18px; }
/* --focus runs 0 → 1 → 0 as a card passes the middle of the screen (set by scroll) */
.stack-card { --focus: 0; position: relative; isolation: isolate; min-height: 190px; border-radius: 28px; padding: clamp(24px, 3.4vw, 40px); background: var(--ink-2); border: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; transform-origin: 50% 50%; transition: transform .2s ease-out; box-shadow: 0 30px 90px -40px rgba(86, 201, 244, calc(var(--focus) * 0.75)); }
.stack-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; background: linear-gradient(110deg, #353C9B, #3979D3, #56C9F4, #9655D6, #353C9B); background-size: 300% 100%; animation: flow 5s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; opacity: var(--focus); pointer-events: none; }
.stack-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(110deg, rgba(57, 121, 211, 0.26), rgba(86, 201, 244, 0.14), rgba(150, 85, 214, 0.1), rgba(57, 121, 211, 0.26)); background-size: 300% 100%; animation: flow 5s linear infinite; opacity: var(--focus); pointer-events: none; }
@keyframes flow { to { background-position: 300% 0; } }
.stack-card h3 { font-size: clamp(24px, 3vw, 40px); line-height: 1.05; font-weight: 700; }
.stack-card p { color: var(--muted); margin-top: 10px; }

/* ---------- timeline ---------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); padding-left: clamp(44px, 6vw, 72px); }
.tl-line { position: absolute; left: clamp(15px, 2vw, 23px); top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-fill { position: absolute; inset: 0; background: var(--accent); box-shadow: 0 0 14px var(--accent); transform-origin: 50% 0; }
.tl-item { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px 40px; }
.tl-node { position: absolute; left: calc(-1 * clamp(44px, 6vw, 72px) + clamp(15px, 2vw, 23px) - 8px); top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 2px solid #3B455D; transition: background .4s ease, border-color .4s ease, box-shadow .4s ease; }
.tl-item.lit .tl-node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 18px var(--accent); }
.tl-day { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--ice); }
.tl-item h3 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; line-height: 1; margin-top: 8px; }
.tl-list { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.tl-list li { list-style: none; padding: 12px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.tl-list { padding: 0; margin: 0; }
.tl-build { display: inline-flex; margin-top: 14px; font-size: 14px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink-2); }

/* ---------- paths / tilt cards ---------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 18px; }
.tilt { position: relative; transition: transform .25s ease-out; transform-style: preserve-3d; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(245, 248, 255, 0.1), transparent 60%); opacity: 0; transition: opacity .3s ease; }
.tilt:hover::after { opacity: 1; }
.panel { border-radius: 30px; padding: clamp(24px, 3.6vw, 44px); background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.panel.solid { background: var(--ink-3); border-color: #353C9B; }
.panel h3 { font-size: clamp(28px, 3vw, 42px); line-height: 1.04; font-weight: 800; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.steps b { font-family: var(--mono); color: var(--ice); font-weight: 500; }
.note { font-size: 13px; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ---------- pricing ---------- */
.price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(32px, 4vw, 52px); }
.seats { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 15px; }
.seats i { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 12px var(--wa); }
.amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.amount b { font-family: var(--display); font-size: clamp(44px, 5vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.amount span { color: var(--muted); }
.panel.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 80px -40px rgba(86, 201, 244, 0.6); }
.badge { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(86, 201, 244, 0.18); color: var(--ice); }
.risk { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.risk svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-radius: 18px; background: var(--glass); border: 1px solid var(--line); padding: 0 22px; }
.faq details + details { margin-top: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ice); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* ---------- finale ---------- */
.finale { text-align: center; padding-block: clamp(120px, 18vw, 240px); }
.finale-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.finale h2 { font-size: clamp(38px, 6.4vw, 100px); line-height: 0.94; font-weight: 800; letter-spacing: -0.05em; max-width: 1100px; }
.finale h2 span { color: var(--accent); text-shadow: 0 0 40px rgba(86, 201, 244, 0.5); }
.finale .hero-ctas { justify-content: center; }

footer { position: relative; z-index: 2; border-top: 1px solid var(--line); background: rgba(6, 19, 47, 0.9); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-block: 32px 40px; font-size: 14px; color: var(--muted); }
.foot b { color: var(--text); font-weight: 600; }
.foot .mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------- HUD + WhatsApp ---------- */
.wa-float { position: fixed; z-index: 40; right: 20px; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: var(--wa-ink); display: grid; place-items: center; box-shadow: 0 14px 40px -10px rgba(37, 211, 102, 0.6); }
.wa-float svg { width: 26px; height: 26px; }
.wa-bar { display: none; }

@media (max-width: 759px) {
  :root { --nav-h: 64px; }
  .nav-links .link { display: none; }
  .nav-links { gap: 0; }
  .wa-float { display: none; }
  .wa-bar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px); background: rgba(20, 33, 59, 0.94); border-top: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .wa-bar .meta { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
  .wa-bar .meta span { color: var(--muted); }
  footer { padding-bottom: 84px; }
  .build-inner { align-items: flex-start; padding-top: calc(var(--nav-h) + 20px); }
  .build-panel { gap: 14px; padding: 20px; background: rgba(6, 19, 47, 0.8); }
  .log { font-size: 12.5px; gap: 7px; }
  .products-inner { min-height: 0; padding-block: clamp(96px, 13vw, 176px) 40px; }
  .track { flex-direction: column; width: auto; perspective: 1100px; }
}
/* ---------- v2: real materials ---------- */
.is-hidden { display: none !important; }
.brand-logo { display: block; height: 30px; width: auto; }
.chip-cap { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); font-family: var(--mono); font-size: 11px; line-height: 1.3; padding: 6px 10px; border-radius: 999px; background: rgba(6, 19, 47, 0.8); color: var(--text); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vtile, .ptile img, .gtile img, .media43 img, .smedia img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero-inner { gap: 20px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 76px); }
.hero-small { font-size: 14px; color: var(--muted); }
.hero-small a { color: var(--ice); }
.footnote { font-size: 12.5px; color: var(--muted); }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.why-card { border-radius: 26px; padding: 12px 12px 26px; background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.why-card h3 { font-size: 22px; padding: 10px 10px 0; }
.why-card p { color: var(--muted); padding-inline: 10px; }
.media43 { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--ink); }
.why-card .media43 { aspect-ratio: 1 / 1; }

.ptile { position: relative; flex: 0 0 auto; margin: 0; width: min(340px, 72vw); aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); transform-style: preserve-3d; will-change: transform; }

.stack-card { grid-template-columns: auto minmax(0, 1fr); }
.smedia { position: relative; width: clamp(140px, 18vw, 210px); border-radius: 18px; overflow: hidden; background: var(--ink); }
.smedia.land { width: clamp(220px, 30vw, 340px); }
.num { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--ice); margin-bottom: 8px; }
.learn-to { margin-top: clamp(28px, 4vw, 44px); color: var(--muted); max-width: 80ch; }
.learn-to b { color: var(--text); }
.plan-foot { margin-top: clamp(32px, 4vw, 48px); font-family: var(--mono); font-size: 13.5px; color: var(--muted); }

.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.who-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.who-row .ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(86, 201, 244, 0.14); color: var(--ice); display: grid; place-items: center; flex: none; }
.who-row .ic svg { width: 22px; height: 22px; }
.who-row b { display: block; font-size: 17px; font-weight: 600; }
.who-row span:not(.ic) { font-size: 14.5px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 14px; }
.gtile { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }

.teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }
.teams-copy { display: flex; flex-direction: column; gap: 18px; }
.teams-photo { aspect-ratio: 4 / 5; width: min(460px, 100%); justify-self: center; border-radius: 26px; }

.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-logo { display: block; height: 34px; width: auto; }
.foot-tag { display: block; height: 16px; width: auto; }
.foot-meta { display: flex; flex-direction: column; gap: 6px; }

.dev-banner { position: fixed; z-index: 70; top: 0; left: 0; right: 0; padding: 6px 12px; background: #B00020; color: #fff; font: 600 13px/1.3 var(--body); text-align: center; }

/* proof strip: title on one line; on desktop the pinned strip is sized by screen height so whole tiles + captions always fit */
#proof .section-head { max-width: none; }
@media (min-width: 760px) {
  .products-inner { height: 100vh; height: 100svh; min-height: 0; }
  .proof-track { flex: 1 1 auto; min-height: 0; max-height: 560px; }
  .ptile { width: auto; height: 100%; }
}
@media (min-width: 760px) and (prefers-reduced-motion: reduce) {
  .proof-track { width: auto; overflow-x: auto; }
}

@media (max-width: 759px) {
  .proof-track { flex-direction: row; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: none; }
  .proof-track::-webkit-scrollbar { display: none; }
  .ptile { width: 74vw; scroll-snap-align: center; }
  .stack-card { grid-template-columns: minmax(0, 1fr); }
  .smedia { width: min(240px, 66%); }
  .smedia.land { width: 100%; }
  .wa-bar { transform: translateY(110%); transition: transform .3s ease; }
  .wa-bar.show { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .build { height: auto; padding-block: clamp(96px, 13vw, 176px); }
  .build-inner { height: auto; }
}

/* ================= v3: multi-page site ================= */
/* base resets (shared by every page): the hidden attribute must always win over component display rules */
html, body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* nav: page links + WhatsApp + mobile menu */
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-links a[aria-current="page"] { color: var(--text); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(245, 248, 255, 0.22); background: transparent; color: var(--text); place-items: center; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }

/* clickable media tiles (open the lightbox) */
.tile { display: block; position: relative; width: 100%; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--ink-2); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tile:hover { border-color: rgba(86, 201, 244, 0.6); }
.tile img, .tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
.play-badge { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(6, 19, 47, 0.8); font-family: var(--mono); font-size: 11px; color: var(--text); }
.play-badge svg { width: 12px; height: 12px; }
.smedia .tile { height: 100%; border: 0; border-radius: 0; }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.see-all { margin-top: 28px; }

/* sub pages */
.sub-page { background: radial-gradient(ellipse 60% 45% at 75% 10%, #173a73 0%, rgba(6, 19, 47, 0) 70%) fixed, var(--ink); }
.page-hero { padding-top: calc(var(--nav-h) + clamp(64px, 9vw, 120px)); padding-bottom: clamp(32px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(40px, 6vw, 84px); line-height: 0.95; font-weight: 800; letter-spacing: -0.045em; max-width: 1000px; }
.page-hero .lede { margin-top: 20px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.stats span { font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.section-pad { padding-bottom: clamp(72px, 10vw, 128px); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--muted); font: 500 14px/1.2 var(--body); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.masonry { columns: 4 240px; column-gap: 14px; }
.masonry > * { break-inside: avoid; margin-bottom: 14px; }

.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(20px, 3vw, 40px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.feature .tile { aspect-ratio: 16 / 9; }
.feature h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; line-height: 1; }
.feature p { color: var(--muted); margin-top: 14px; }

/* about */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.about-card { border-radius: 26px; padding: clamp(22px, 3vw, 34px); background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.about-card h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.05; }
.about-card p { color: var(--muted); }
.method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.method li { padding: 18px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); font-weight: 600; }
.method li span { display: block; font-family: var(--mono); font-size: 12px; color: var(--ice); font-weight: 400; margin-bottom: 6px; }
.classes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.classes li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 20px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.classes li b { font-family: var(--mono); font-size: 13px; color: var(--ice); font-weight: 500; }
.classes li.next { border-color: var(--accent); }
.media-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.media-row .media43 { aspect-ratio: 4 / 3; }
.block { margin-top: clamp(56px, 7vw, 96px); }
.block > .h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.05; margin-bottom: 20px; font-family: var(--display); letter-spacing: -0.03em; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.form-card { border-radius: 28px; padding: clamp(22px, 3.4vw, 40px); background: var(--glass); border: 1px solid var(--line); }
.form-card h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; line-height: 1.05; margin-bottom: 6px; }
.form-card .note { margin-bottom: 22px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field legend { margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--muted); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid #3B455D; background: var(--ink); color: var(--text); font: 16px/1.4 var(--body); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ice); outline-offset: 1px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid #3B455D; background: var(--ink); font-size: 14.5px; cursor: pointer; }
.choices input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.choices label:has(input:checked) { border-color: var(--accent); background: rgba(86, 201, 244, 0.12); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { accent-color: var(--accent); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.btn-submit { border: 0; cursor: pointer; background: var(--accent); color: var(--ink); font-family: var(--body); }
.btn-submit:disabled { opacity: 0.6; cursor: progress; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 14px; font-size: 15px; }
.form-status a { color: inherit; font-weight: 600; }
.form-status.busy { background: var(--ink-2); color: var(--muted); }
.form-status.ok { background: rgba(37, 211, 102, 0.14); border: 1px solid var(--wa); }
.form-status.error { background: rgba(255, 90, 95, 0.12); border: 1px solid #FF5A5F; }

/* lightbox */
.lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px 16px 20px; border: 0; background: rgba(3, 9, 24, 0.94); color: var(--text); }
.lb[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lb::backdrop { background: rgba(3, 9, 24, 0.6); }
.lb-stage { display: grid; place-items: center; width: 100%; min-height: 0; flex: 1 1 auto; }
.lb-stage img, .lb-stage video { max-width: min(100%, 1400px); max-height: calc(100dvh - 130px); border-radius: 14px; background: #000; }
.lb-cap { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: center; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(245, 248, 255, 0.25); background: rgba(20, 33, 59, 0.85); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-close { top: 12px; right: 12px; font-size: 18px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 899px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7); }
  .nav.open .nav-links { display: flex; }
  .nav-links .link { display: block; padding: 14px 16px; border-radius: 14px; font-size: 16px; }
  .nav-links .link[aria-current="page"] { background: rgba(86, 201, 244, 0.12); }
  .menu-btn { display: grid; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .masonry > * { margin-bottom: 10px; }
  .classes li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb { padding-bottom: 76px; }
  .chip-cap { display: none; } /* tags cover too much of a small tile; the caption still shows in the lightbox */
}

/* ---------- home loader (≈1 s) + hero entrance ---------- */
/* shown only when the head script has set .is-loading (JS on, motion allowed) */
.loader { display: none; }
html.is-loading, html.is-loading body { overflow: hidden; }
html.is-loading .loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(ellipse 55% 45% at 50% 50%, #12306a 0%, var(--ink) 72%); overflow: hidden; }
.loader > * { grid-area: 1 / 1; }
.ld-core { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ld-logo { position: relative; width: min(240px, 60vw); }
.ld-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 24px rgba(86, 201, 244, 0.55)); }
.ld-logo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(245, 248, 255, 0.95) 50%, transparent 70%) no-repeat; background-size: 60% 100%; background-position: -80% 0; -webkit-mask: url("../img/logo-academy-white.png") center / 100% 100% no-repeat; mask: url("../img/logo-academy-white.png") center / 100% 100% no-repeat; animation: ld-sweep 1s ease-in-out forwards; }
.ld-num { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 96px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--text); }
.ld-num::after { content: "%"; font-size: 0.35em; color: var(--ice); margin-left: 4px; vertical-align: top; }
.ld-bar { width: min(280px, 70vw); height: 2px; border-radius: 2px; background: rgba(245, 248, 255, 0.12); overflow: hidden; }
.ld-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--accent), var(--violet)); box-shadow: 0 0 12px var(--accent); transform: scaleX(0); transform-origin: left center; }
.ld-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.ld-ring { position: relative; width: min(440px, 88vw); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(86, 201, 244, 0.18); box-shadow: 0 0 60px rgba(86, 201, 244, 0.18), inset 0 0 60px rgba(86, 201, 244, 0.12); }
.ld-ring::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 62%, rgba(86, 201, 244, 0.9) 92%, #F5F8FF 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); animation: ld-spin 0.9s linear infinite; }
@keyframes ld-spin { to { transform: rotate(360deg); } }
@keyframes ld-sweep { to { background-position: 180% 0; } }
.w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.03em 0.14em; margin: -0.06em -0.03em -0.14em; }
.w-in { display: inline-block; }
.intro-done .w-mask { overflow: visible; }

/* "Next class" pill: one flowing line of text (as a flex box every text run became its own column on phones) */
.seats { display: inline-block; }
.seats i { display: inline-block; vertical-align: middle; margin: -2px 10px 0 0; }

/* ---------- home hero: full-screen wall of learner work behind short, centred copy ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: calc(var(--nav-h) + 28px) 0 0; }
.hero-wall { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.wall-plane { --wg: clamp(10px, 1.3vw, 18px); position: absolute; left: -12%; right: -12%; top: -30%; bottom: -30%; display: flex; justify-content: center; gap: var(--wg); transform: perspective(1400px) rotateX(24deg) rotateZ(-9deg); transform-origin: 50% 45%; }
.wall-col { flex: 0 0 clamp(150px, 17vw, 270px); }
.wall-track { display: flex; flex-direction: column; gap: var(--wg); animation: wall-up 80s linear infinite; will-change: transform; }
.wall-col:nth-child(even) .wall-track { animation-name: wall-down; animation-duration: 95s; }
.wall-track img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(86, 201, 244, 0.22); background: var(--ink-2); }
/* each column holds its set three times; moving by one set (a third of the track plus one gap) loops seamlessly */
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-100% / 3 - var(--wg) / 3)); } }
@keyframes wall-down { from { transform: translateY(calc(-100% / 3 - var(--wg) / 3)); } to { transform: translateY(0); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 58% 52% at 50% 47%, rgba(6, 19, 47, 0.94) 0%, rgba(6, 19, 47, 0.8) 48%, rgba(6, 19, 47, 0.35) 100%),
              linear-gradient(to bottom, rgba(6, 19, 47, 0.9) 0%, rgba(6, 19, 47, 0) 24%, rgba(6, 19, 47, 0) 66%, var(--ink) 100%); }
.hero-inner { margin: auto; padding-block: 24px; align-items: center; text-align: center; gap: 22px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 96px); max-width: 15ch; margin-inline: auto; }
.hero .lede { margin-inline: auto; text-wrap: balance; }
.hero-ctas { justify-content: center; }
.hero .eyebrow { padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-foot .scroll-cue { margin: 0; flex-direction: column; gap: 8px; }
.ticker { width: 100%; overflow: hidden; border-block: 1px solid var(--line); background: rgba(6, 19, 47, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ticker-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker ul { list-style: none; margin: 0; padding: 14px 0; display: flex; }
.ticker li { display: flex; align-items: center; white-space: nowrap; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.ticker li::after { content: ""; width: 6px; height: 6px; margin: 0 28px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (max-width: 759px) {
  .wall-col { flex-basis: 40vw; }
  .wall-col:nth-child(n + 4) { display: none; }
  .wall-plane { left: -30%; right: -30%; transform: perspective(900px) rotateX(18deg) rotateZ(-9deg); }
  .hero-shade { background: linear-gradient(to bottom, rgba(6, 19, 47, 0.88) 0%, rgba(6, 19, 47, 0.62) 28%, rgba(6, 19, 47, 0.7) 72%, var(--ink) 100%); }
  .hero-inner > * { text-shadow: 0 2px 18px rgba(6, 19, 47, 0.9); }
  .ey-venue { display: none; }
  .hero-inner { gap: 16px; }
  .hero .lede { display: none; }
  .hero .eyebrow { font-size: 12px; padding: 7px 12px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-foot .scroll-cue { display: none; }
  .ticker li { font-size: 12px; }
  .ticker li::after { margin: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-track, .ticker-track { animation: none; }
}

/* ---------- logos, CTA rows, home enquiry form ---------- */
/* client logos keep their own colours on white tiles (several have dark lettering that disappears on navy) */
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.logo-grid li { background: #fff; border-radius: 14px; aspect-ratio: 7 / 3; overflow: hidden; }
.logo-grid img { display: block; width: 100%; height: 100%; object-fit: contain; }
.teams-copy .logo-grid { margin-top: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.enquire-copy .h2 { font-size: clamp(32px, 3.8vw, 54px); }
.sk-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sk-logos li { border-radius: 10px; }
.partner-tile { align-self: flex-start; display: inline-flex; background: #fff; border-radius: 14px; padding: 10px 16px; }
.partner-logo { display: block; height: 76px; width: auto; }
.hrdc-logos { display: flex; gap: 12px; }
.hrdc-logos img { display: block; width: 92px; height: 92px; border-radius: 50%; background: #fff; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
.course-link { color: var(--ice); font-weight: 600; text-decoration: none; }
.course-link:hover { text-decoration: underline; }
.enquire { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.enquire-copy { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--nav-h) + 32px); }
.enquire-copy .cta-row { margin-top: 8px; }
.faq .faq-a { padding-bottom: 20px; color: var(--muted); }
.faq .faq-a ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.faq .faq-a a { color: var(--ice); }
@media (max-width: 899px) {
  .enquire { grid-template-columns: minmax(0, 1fr); }
  .enquire-copy { position: static; }
}
@media (max-width: 759px) {
  .cta-row .btn { width: 100%; }
  .teams-copy .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
