/* AceVCEChem — design system
   Palette derived from the logo (Ace navy #07214f, Chem royal #0153ab → #0170c8),
   extended with an electric blue, a luminous cyan glow and a warm "flame" accent. */

/* Fonts: self-hosted (SIL Open Font License), latin subset, swap so text shows immediately */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/bricolage-grotesque.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/caveat-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/geist.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --night: #030b22;
  --night-2: #061536;
  --navy: #07214f;
  --navy-2: #0c2c66;
  --royal: #0153ab;
  --blue: #0a6fd6;
  --electric: #2f8cff;
  --sky: #8ccaff;
  --cyan: #5ef0ff;
  --flame: #ffb547;
  --paper: #f3f6fb;
  --ink: #07163a;
  --text: #3d4c68;
  --muted: #5f6f8c;
  --line: #dde5f1;
  --grad: linear-gradient(115deg, #0153ab 0%, #2f8cff 52%, #36c8ff 100%);
  --em-grad: linear-gradient(100deg, #0153ab 0%, #2f8cff 55%, #16b5f5 100%);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --body: 'Geist', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
h2 { font-size: clamp(42px, 5.6vw, 86px); font-weight: 650; }
h3 { font-size: clamp(22px, 2vw, 27px); letter-spacing: -.025em; line-height: 1.15; font-weight: 600; }
p { color: var(--text); text-wrap: pretty; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; padding-right: .06em; background: var(--em-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--cyan); color: var(--night); }
:focus-visible { outline: 2.5px solid var(--electric); outline-offset: 4px; border-radius: 8px; }
.skip { position: fixed; left: 16px; top: -90px; z-index: 300; background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px #0003; }
.skip:focus { top: 16px; }
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(84px, 11vw, 168px); }

.dark { --em-grad: linear-gradient(100deg, #8ccaff 0%, #5ef0ff 100%); background: var(--night); color: #eaf1ff; position: relative; overflow: hidden; }
.dark p { color: #a9bad9; }
.grain { position: absolute; inset: 0; pointer-events: none; z-index: 1; background-image: url('../images/grain.webp'); } /* film grain: a 64px noise tile, repeated */
.glow { position: absolute; border-radius: 50%; box-sizing: content-box; padding: 180px; margin: -180px; background: radial-gradient(closest-side, currentColor 35%, color-mix(in srgb, currentColor 50%, transparent) 61%, transparent 100%); pointer-events: none; }

.kicker { display: flex; width: fit-content; align-items: center; gap: 12px; font: 600 12.5px/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--royal); }
.kicker::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.dark .kicker { color: var(--sky); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: clamp(44px, 6vw, 84px); }
.section-head .kicker { margin-bottom: 24px; }
.section-head > p { max-width: 380px; font-size: 18px; }
.source-note { font-size: 14px; color: var(--muted); margin-top: 32px; }
.source-note a { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }

/* Smooth scrolling (Lenis, see app.js) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Reveal / split animations ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .1em .14em 0; margin: -.08em -.1em -.14em 0; }
.split .w > span { display: inline-block; }
.split em { background: none; color: inherit; }
.split em .w > span { background: var(--em-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
@media (prefers-reduced-motion: no-preference) {
  :where(.js) [data-reveal] { opacity: 0; translate: 0 48px; transition: opacity 1s var(--ease), translate 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + var(--intro, 0s)); }
  :where(.js) [data-split]:not(.split) { visibility: hidden; }
  :where(.js) .stories-wall[data-reveal] { translate: 0 50px; rotate: -2deg; transition: opacity .8s var(--ease), translate 1.2s cubic-bezier(.16,1,.3,1), rotate 1.2s cubic-bezier(.16,1,.3,1); }
  :where(.js) .stories-wall[data-reveal].in { rotate: 0deg; }
  :where(.js) [data-reveal].in { opacity: 1; translate: 0 0; }
  .split .w > span { translate: 0 112%; rotate: 4deg; transition: translate 1.1s var(--ease), rotate 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--intro, 0s)); }
  .split.in .w > span { translate: 0 0; rotate: 0deg; }
}

/* ---------- Buttons ---------- */
.btn { --h: 60px; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--h); padding: 0 9px 0 26px; border-radius: 999px; border: 1px solid transparent; font: 600 15.5px/1 var(--body); letter-spacing: -.005em; white-space: nowrap; transition: transform .5s var(--ease), background-color .35s, color .35s, border-color .35s, box-shadow .35s; }
.btn-icon { position: relative; display: block; width: calc(var(--h) - 18px); height: calc(var(--h) - 18px); border-radius: 50%; overflow: hidden; flex: none; transition: background-color .35s, color .35s; }
.btn-icon > span { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .55s var(--ease); }
.btn-icon > span + span { transform: translate(-130%, 130%); }
.btn:hover .btn-icon > span:first-child { transform: translate(130%, -130%); }
.btn:hover .btn-icon > span + span { transform: none; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%); transform: translateX(-110%); transition: transform .9s var(--ease); }
.btn:hover::after { transform: translateX(110%); }
.btn-primary { background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 14px 34px -12px rgba(47,140,255,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary .btn-icon { background: #fff; color: var(--royal); }
.btn-primary:hover { box-shadow: 0 18px 44px -12px rgba(47,140,255,.95), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.btn-ghost .btn-icon { background: rgba(255,255,255,.12); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); }
.btn-outline { color: var(--ink); border-color: #c9d4e6; background: transparent; }
.btn-outline .btn-icon { background: var(--ink); color: #fff; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-outline:hover .btn-icon { background: var(--cyan); color: var(--night); }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 16px 40px -14px rgba(0,0,0,.45); }
.btn-white .btn-icon { background: var(--grad); color: #fff; }
.btn-small { --h: 48px; padding-left: 20px; font-size: 14px; gap: 12px; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--royal); }
.text-link .i { transition: transform .4s var(--ease); }
.text-link:hover .i { transform: translate(4px, -4px); }

/* ---------- Progress, cursor, curtain ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; background: linear-gradient(90deg, var(--royal), var(--electric), var(--cyan)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 400; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid #fff; border-radius: 50%; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s, background-color .3s; }
.cursor.on { opacity: 1; }
.cursor.hover { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: #fff; }
/* Intro curtain: pure CSS, painted from the very first frame (the head script adds .intro once per session) */
html.intro body::before, html.intro body::after { content: ''; position: fixed; inset: 0; z-index: 250; pointer-events: none; animation: curtain-up 1s var(--ease-io) .7s forwards; }
html.intro body::before { background: radial-gradient(circle at 50% 50%, var(--navy-2), var(--night) 70%); }
html.intro body::after { z-index: 251; background: url('../images/mark.svg') center / 96px auto no-repeat; filter: drop-shadow(0 0 30px rgba(94,240,255,.5)); animation: mark-in .8s var(--ease) both, curtain-up 1s var(--ease-io) .7s forwards; }
@keyframes curtain-up { to { clip-path: inset(0 0 100% 0); } }
@keyframes mark-in { from { opacity: 0; transform: scale(.6) rotate(-20deg); } }
.particle { position: fixed; z-index: 260; width: 9px; height: 9px; border-radius: 50%; pointer-events: none; }

/* Animations pause while their section is off-screen */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: calc(14px + var(--bar-h)); left: 0; right: 0; z-index: 100; padding-inline: var(--gutter); transition: translate .55s var(--ease), top .55s var(--ease); view-transition-name: site-header; }
.site-header.hidden:not(:focus-within) { translate: 0 -140%; }
.header-pill { max-width: 1260px; margin: auto; display: flex; align-items: center; gap: 18px; height: 72px; padding: 0 10px 0 24px; border-radius: 999px; background: rgba(6, 18, 50, .62); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 40px -12px rgba(2,8,30,.55), inset 0 1px 0 rgba(255,255,255,.06); transition: height .45s var(--ease), background-color .45s; }
.scrolled .header-pill { height: 64px; background: rgba(5, 15, 42, .84); }
.logo { flex: none; display: block; }
.logo img { height: 38px; width: auto; }
.main-nav { position: relative; display: flex; gap: 2px; margin-inline: auto; }
.main-nav a { position: relative; z-index: 1; padding: 10px 17px; border-radius: 999px; color: rgba(232,240,255,.74); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: color .3s; }
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; }
.nav-ind { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); opacity: 0; transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s; }
.header-cta { flex: none; }
.menu-toggle { display: none; position: relative; width: 50px; height: 50px; margin-left: auto; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); }
.menu-toggle span { position: absolute; left: 15px; right: 15px; height: 2px; border-radius: 2px; background: #fff; transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-toggle span:first-child { top: 20px; }
.menu-toggle span:last-child { top: 28px; }
.menu-open .menu-toggle span:first-child { top: 24px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 24px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gutter) 40px; background: radial-gradient(600px 500px at 90% 10%, rgba(47,140,255,.35), transparent 70%), radial-gradient(500px 400px at 0% 100%, rgba(94,240,255,.18), transparent 70%), var(--night); clip-path: circle(0 at calc(100% - 50px) 50px); visibility: hidden; transition: clip-path .8s var(--ease-io), visibility 0s .8s; }
.mobile-menu.open { clip-path: circle(150% at calc(100% - 50px) 50px); visibility: visible; transition: clip-path .8s var(--ease-io); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font: 600 clamp(34px, 9vw, 54px)/1.1 var(--display); letter-spacing: -.04em; color: #fff; opacity: 0; translate: 0 30px; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.mobile-menu nav a span { font: 500 13px var(--body); letter-spacing: .1em; color: var(--sky); }
.mobile-menu nav a[aria-current] { color: var(--cyan); }
.mobile-menu.open nav a { opacity: 1; translate: 0 0; transition-delay: calc(.25s + var(--i) * 60ms); }
.mm-cta { margin-top: 26px; opacity: 0; translate: 0 30px; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.mobile-menu.open .mm-cta { opacity: 1; translate: 0 0; transition-delay: .55s; }
.mm-foot { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; color: #a9bad9; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 110px; background: radial-gradient(1100px 700px at 78% 45%, var(--navy-2) 0%, transparent 62%), radial-gradient(900px 600px at 0% 100%, rgba(1,83,171,.4), transparent 60%), var(--night); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .g1 { width: 560px; height: 560px; top: -180px; right: -120px; color: var(--electric); opacity: .32; animation: drift 16s ease-in-out infinite alternate; }
.hero .g2 { width: 420px; height: 420px; bottom: -200px; left: 10%; color: var(--cyan); opacity: .14; animation: drift 20s ease-in-out infinite alternate-reverse; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--night)); z-index: 1; pointer-events: none; }
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.15); } }
.hero-inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; }
/* Specimen-label tag: two cells split by a hairline, small caps, near-square corners */
.chip { display: inline-flex; align-items: stretch; border: 1px solid rgba(214,228,255,.28); border-radius: 3px; font: 500 11.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #eef4ff; }
.chip > span { display: flex; align-items: center; padding: 9px 13px 8px; }
.chip > span + span { border-left: 1px solid rgba(214,228,255,.28); color: var(--sky); font-variant-numeric: tabular-nums; }
.hero h1 { margin-top: 28px; font-size: clamp(54px, 7.7vw, 124px); line-height: .9; letter-spacing: -.042em; color: #fff; }
.hero h1 em { font-size: 1.1em; }
.lead { margin-top: 30px; max-width: 540px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; }
.dark .lead { color: #b8c8e8; }
.lead strong { color: #fff; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 42px; font-size: 14.5px; color: #9fb2d6; }
.hero-trust a { display: flex; align-items: center; gap: 12px; }
.hero-trust a:hover { color: #fff; }
.hero-trust strong { color: #fff; font-weight: 600; }
.hero-trust .sep { width: 1px; height: 22px; background: rgba(255,255,255,.18); }
.stars { display: inline-flex; gap: 2px; color: var(--flame); }
.stars .i { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 3; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #8296bd; }
.scroll-cue span { width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.28); position: relative; }
.scroll-cue span::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* Atom stage: portrait inside a glowing nucleus with 3D electron orbits */
.hero-visual { position: relative; width: min(100%, 600px); aspect-ratio: 1 / 1.08; justify-self: end; --mx: 0; --my: 0; }
.atom-stage { position: absolute; inset: 0; perspective: 1400px; }
.nucleus { position: absolute; left: 8%; right: 8%; top: 13.5%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 32% 26%, #6cbcff 0%, #2f8cff 24%, #0153ab 58%, #07214f 100%); box-shadow: 0 0 140px -10px rgba(47,140,255,.75), inset 0 0 70px rgba(94,240,255,.28), inset 0 -30px 60px rgba(3,11,34,.5); translate: calc(var(--mx) * -10px) calc(var(--my) * -10px); transition: translate .8s var(--ease); }
.nucleus::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 30px 30px; -webkit-mask: radial-gradient(circle, #000 35%, transparent 72%); mask: radial-gradient(circle, #000 35%, transparent 72%); }
.nucleus::after { content: ''; position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgba(140,202,255,.35); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbits { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.orbits.back { z-index: 0; }
.orbits.front { z-index: 3; }
.orbit { position: absolute; left: -6%; right: -6%; top: 3%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(140,202,255,.32); transform-style: preserve-3d; transform: rotateZ(var(--tilt)) rotateX(74deg); animation: orbit var(--dur, 14s) linear infinite; }
.orbit i { position: absolute; left: 50%; top: 0; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--cyan) 45%, var(--electric)); box-shadow: 0 0 18px 4px rgba(94,240,255,.6); transform: translate(-50%, -50%) rotateX(-74deg); animation: counter var(--dur, 14s) linear infinite; }
.o1 { --tilt: 0deg; --dur: 13s; border-color: rgba(140,202,255,.22); }
.o2 { --tilt: 58deg; --dur: 17s; }
.o3 { --tilt: -58deg; --dur: 21s; }
.o3 i { background: radial-gradient(circle at 35% 35%, #fff, var(--flame) 50%, #ff8a3d); box-shadow: 0 0 18px 4px rgba(255,181,71,.55); }
@keyframes orbit { from { transform: rotateZ(var(--tilt)) rotateX(74deg) rotateZ(0deg); } to { transform: rotateZ(var(--tilt)) rotateX(74deg) rotateZ(360deg); } }
@keyframes counter { from { transform: translate(-50%, -50%) rotateZ(0deg) rotateX(-74deg); } to { transform: translate(-50%, -50%) rotateZ(-360deg) rotateX(-74deg); } }
/* Portrait photo cropped into the nucleus, so the orbits pass in front of and behind it */
.portrait-img { position: absolute; z-index: 2; left: 8%; top: 13.5%; width: 84%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 32%; translate: calc(var(--mx) * -10px) calc(var(--my) * -10px); transition: translate .8s var(--ease); box-shadow: 0 0 0 1.5px rgba(140,202,255,.35), 0 30px 60px -20px rgba(3,11,34,.7); }

.float-card { position: absolute; z-index: 4; translate: calc(var(--mx) * var(--depth) * 1px) calc(var(--my) * var(--depth) * 1px); transition: translate .9s var(--ease); }
.float-card > div { animation: bob 6s ease-in-out infinite; animation-delay: var(--bob, 0s); }
@keyframes bob { 50% { transform: translateY(-12px); } }
.glass { background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.04)), rgba(9,24,62,.74); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 24px 50px -20px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12); border-radius: 20px; color: #fff; }
.fc-element { top: 9%; right: -2%; --depth: 26; }
.tile { width: 118px; padding: 12px 14px 14px; border-radius: 18px; background: linear-gradient(155deg, #ffffff, #dbeeff); color: var(--navy); rotate: 8deg; box-shadow: 0 24px 50px -18px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.6); }
.tile small { display: block; font: 600 13px var(--body); color: var(--royal); }
.tile strong { display: block; font: 700 56px/1 var(--display); letter-spacing: -.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 2px 0 4px; }
.tile span { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.25; }
.fc-rating { left: -6%; bottom: 24%; --depth: 38; --bob: -2s; }
.fc-rating > div { padding: 16px 20px; display: grid; gap: 4px; }
.fc-rating strong { font: 700 30px/1 var(--display); letter-spacing: -.04em; }
.fc-rating strong small { font: 500 14px var(--body); color: #a9bad9; letter-spacing: 0; }
.fc-rating p { font-size: 12.5px; color: #c3d2ee !important; }
.fc-name { right: 0; bottom: 6%; --depth: 16; --bob: -4s; }
/* Name card: crisp white card, like the "15+ Ch" tile */
.name-card { padding: 13px 18px 14px; border-radius: 6px; background: #fff; color: var(--navy); box-shadow: 0 24px 50px -18px rgba(0,0,0,.6); }
.name-card strong { display: block; font: 400 24px/1 var(--serif); font-style: italic; letter-spacing: -.01em; }
.name-card small { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee-wrap { position: relative; z-index: 5; overflow: hidden; padding: 34px 0; margin: -46px 0 -34px; }
.marquee { display: flex; overflow: hidden; background: var(--grad); rotate: -2deg; scale: 1.04; box-shadow: 0 20px 60px -20px rgba(1,83,171,.6); }
.marquee-track { display: flex; flex: none; align-items: center; gap: 36px; padding: 22px 18px; animation: marquee 38s linear infinite; }
.marquee-track span { font: 600 clamp(22px, 2.4vw, 32px)/1 var(--display); letter-spacing: -.03em; color: #fff; white-space: nowrap; }
.marquee-track b { color: var(--cyan); font-size: 22px; font-weight: 400; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Stats ---------- */
.stats { padding-block: clamp(100px, 10vw, 150px) clamp(30px, 4vw, 60px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 10px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: flex; align-items: flex-start; font: 650 clamp(52px, 6vw, 92px)/1 var(--display); letter-spacing: -.045em; color: var(--ink); }
.stat strong .suf { font-size: .5em; margin: .12em 0 0 .05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { margin-top: 14px; font-size: 15.5px; max-width: 200px; }
.stat a { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Approach ---------- */
.approach-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.approach-head { position: sticky; top: 130px; }
.approach-head h2 { margin: 24px 0 32px; }
.approach-head p { font-size: 18px; max-width: 460px; margin-bottom: 16px; }
.approach-head p:first-of-type { color: var(--ink); font-weight: 500; }
.approach-head .text-link { margin-top: 12px; }
.steps { position: relative; display: grid; gap: 22px; padding-left: 44px; --p: 0; }
.steps-line { position: absolute; left: 10px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--line); }
.steps-line::after { content: ''; position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(var(--royal), var(--electric), var(--cyan)); transform-origin: top; transform: scaleY(var(--p)); }
.step { position: relative; padding: 34px 36px 36px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(7,33,79,.35); }
.step-dot { position: absolute; left: -46px; top: 42px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--line); transition: border-color .5s, box-shadow .5s; }
.step.lit .step-dot { border-color: var(--electric); box-shadow: 0 0 0 6px rgba(47,140,255,.15); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.step-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--grad); color: #fff; box-shadow: 0 12px 26px -10px rgba(47,140,255,.8); }
.step-ico .i { width: 26px; height: 26px; }
.step-num { font: 700 72px/1 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px #c6d3ea; }
.step .kicker { margin-bottom: 12px; }
.step h3 { font-size: clamp(26px, 2.4vw, 32px); }
.step p { margin-top: 12px; font-size: 16.5px; }

/* ---------- Periodic class cards ---------- */
.classes-home { padding-bottom: clamp(90px, 10vw, 150px); }
.classes-home .g1 { width: 600px; height: 600px; left: -200px; top: 10%; color: var(--royal); opacity: .45; }
.classes-home .g2 { width: 500px; height: 500px; right: -150px; bottom: -100px; color: var(--electric); opacity: .25; }
.classes-home .container { position: relative; z-index: 2; }
.periodic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1200px; }
.el-card { --rx: 0deg; --ry: 0deg; --px: 50%; --py: 50%; position: relative; display: flex; flex-direction: column; min-height: 470px; padding: 26px; border-radius: 26px; color: #fff; background: linear-gradient(165deg, rgba(255,255,255,.08), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.1); transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .4s, background-color .4s, opacity 1s var(--ease), translate 1.1s var(--ease); overflow: hidden; }
.el-card:hover { border-color: rgba(140,202,255,.4); }
.el-spot { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(380px circle at var(--px) var(--py), rgba(47,140,255,.32), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.el-card:hover .el-spot { opacity: 1; }
.el-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.el-num { font: 600 16px var(--display); letter-spacing: 0; color: #fff; }
.el-sym { display: block; margin: 34px 0 6px; font: 700 clamp(84px, 8vw, 118px)/.9 var(--display); letter-spacing: -.04em; background: linear-gradient(160deg, #fff 10%, var(--sky) 55%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateZ(40px); transition: transform .6s var(--ease); }
.el-card:hover .el-sym { transform: translateZ(60px) scale(1.04); }
.el-year { font: 650 26px/1.1 var(--display); letter-spacing: -.03em; }
.el-unit { font-size: 14px; color: #a9bad9; margin-top: 4px; }
.el-title { margin-top: 18px; font-size: 16px; color: #d6e2fa; }
.el-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.el-price { font: 700 42px/1 var(--display); letter-spacing: -.05em; }
.el-price small { font: 500 14px var(--body); letter-spacing: 0; color: #a9bad9; margin-left: 4px; }
.el-go { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); transition: background-color .4s, color .4s, transform .5s var(--ease); }
.el-card:hover .el-go { background: #fff; color: var(--royal); transform: rotate(45deg); }
.el-badge { position: absolute; top: 64px; right: 22px; padding: 6px 12px; border-radius: 999px; background: rgba(94,240,255,.14); border: 1px solid rgba(94,240,255,.35); color: var(--cyan); font-size: 12px; font-weight: 600; }
.el-card.is-featured { background: linear-gradient(165deg, var(--navy-2), var(--night-2)) padding-box, conic-gradient(from var(--ang), #2f8cff, #5ef0ff, #0153ab, #ffb547, #2f8cff) border-box; border: 1.5px solid transparent; animation: ang 6s linear infinite; box-shadow: 0 30px 80px -30px rgba(47,140,255,.6); }
@keyframes ang { to { --ang: 360deg; } }
.classes-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 44px; color: #a9bad9; font-size: 15px; }
.classes-note span { display: inline-flex; align-items: center; gap: 10px; }
.classes-note .i { color: var(--cyan); }

/* ---------- Teacher ---------- */
.teacher-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.tm { position: relative; }
.tm-card { position: relative; aspect-ratio: 4 / 4.7; border-radius: 36px; overflow: hidden; background: var(--grad); box-shadow: 0 50px 100px -50px rgba(1,83,171,.7); }
.tm-card::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask: radial-gradient(circle at 50% 40%, #000, transparent 75%); mask: radial-gradient(circle at 50% 40%, #000, transparent 75%); }
.tm-sym { position: absolute; top: 4%; left: 6%; font: 800 clamp(140px, 18vw, 260px)/1 var(--display); letter-spacing: -.08em; color: rgba(255,255,255,.12); }
.tm-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.tm-card::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(3,11,34,.55)); pointer-events: none; }
/* Quiet photo caption; the signature beside the photo carries the name and title */
.tm-caption { position: absolute; left: 28px; right: 28px; bottom: 24px; z-index: 2; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.92); }
.tm-caption span { color: rgba(214,228,255,.7); }
/* Offset hairline frame behind the photo, like a print mount */
.tm { isolation: isolate; }
.tm-frame { position: absolute; z-index: -1; inset: 22px -22px -22px 22px; border: 1px solid #b9c8e2; border-radius: 36px; }
.teacher-copy h2 { margin: 24px 0 34px; }
.teacher-copy > p { font-size: 18px; margin-top: 18px; max-width: 540px; }
.teacher-copy mark { background: linear-gradient(transparent 60%, rgba(94,240,255,.45) 60%); color: var(--ink); padding: 0 2px; }
.signature { display: flex; align-items: center; gap: 18px; margin: 38px 0 34px; }
.signature b { font: 400 34px/1 var(--serif); font-style: italic; color: var(--royal); }
.signature span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-left: 18px; border-left: 1px solid var(--line); }

/* ---------- Reviews ---------- */
.reviews { background: #fff; }
.rating-card { flex: none; display: flex; align-items: center; gap: 22px; padding: 22px 28px; border-radius: 26px; background: var(--night); color: #fff; box-shadow: 0 30px 60px -30px rgba(3,11,34,.6); transition: transform .5s var(--ease), translate 1.1s var(--ease), opacity 1s var(--ease); }
.rating-card:hover { transform: translateY(-6px) rotate(-1deg); }
.rating-num { font: 700 70px/1 var(--display); letter-spacing: -.06em; background: linear-gradient(160deg, #fff, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-card small { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: #b8c8e8; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.review { --px: 50%; --py: 50%; position: relative; overflow: hidden; padding: 36px; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s, opacity 1s var(--ease), translate 1.1s var(--ease); }
.review:nth-child(2) { margin-top: 50px; }
.review::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--px) var(--py), rgba(47,140,255,.12), transparent 60%); opacity: 0; transition: opacity .4s; }
.review:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -40px rgba(7,33,79,.4); }
.review:hover::before { opacity: 1; }
.quote-mark { display: block; height: 60px; font: 400 130px/1 var(--serif); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.review blockquote { position: relative; margin: 18px 0 40px; font: 500 clamp(23px, 2vw, 28px)/1.3 var(--display); letter-spacing: -.03em; color: var(--ink); }
.review-person { position: relative; display: flex; align-items: center; gap: 14px; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font: 600 17px var(--display); }
.review-person strong { display: block; font-size: 16px; }
.review-person small { display: block; font-size: 13.5px; color: var(--muted); }

/* ---------- Student Stories (scrolling testimonial columns) ---------- */
.stories { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); overflow: hidden; }
.stories-head { display: flex; flex-direction: column; align-items: center; max-width: 680px; margin: 0 auto clamp(44px, 5vw, 70px); text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; border: 1px solid #c9d6ec; background: rgba(255,255,255,.75); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--royal); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(47,140,255,.12); }
.stories-head h2 { margin-top: 24px; }
.stories-head > p { margin-top: 22px; max-width: 460px; font-size: 18px; }
.stories-head .rating-card { margin-top: 32px; }
.stories-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.stories-wall.is-marquee { display: flex; justify-content: center; gap: 24px; max-height: 780px; overflow: hidden; padding: 0 12px; margin: 0 -12px; -webkit-mask: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(transparent, #000 10%, #000 90%, transparent); }
.story-col { flex: 1; min-width: 0; max-width: 410px; }
.story-track { display: flex; flex-direction: column; gap: 24px; padding: 0 0 24px; animation: stories-up var(--dur, 60s) linear infinite; will-change: transform; }
.story-col:hover .story-track, .story-col:focus-within .story-track { animation-play-state: paused; }
@keyframes stories-up { to { transform: translateY(-50%); } }
.story { position: relative; padding: 34px 32px 30px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 34px -22px rgba(7,33,79,.25); cursor: default; transition: transform .5s cubic-bezier(.34,1.56,.64,1), box-shadow .5s var(--ease), border-color .35s; }
.story:hover, .story:focus-visible { transform: translateY(-8px) scale(1.03); border-color: #c3d5f3; box-shadow: 0 28px 55px -14px rgba(7,33,79,.24), 0 10px 12px -6px rgba(7,33,79,.05); outline: none; }
.story:focus-visible { box-shadow: 0 28px 55px -14px rgba(7,33,79,.24), 0 0 0 3px rgba(47,140,255,.35); }
.story-mark { position: absolute; top: 18px; right: 26px; font: 400 76px/1 var(--serif); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35; transition: opacity .4s; }
.story:hover .story-mark { opacity: .9; }
.story blockquote { margin: 0; }
.story p { font-size: 16px; line-height: 1.75; color: var(--text); }
.story mark { background: linear-gradient(transparent 58%, rgba(94,240,255,.45) 58%); color: var(--ink); font-weight: 500; padding: 0 1px; }
.story footer { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.story .avatar { width: 44px; height: 44px; box-shadow: 0 0 0 3px #e8effc; transition: box-shadow .4s; }
.story:hover .avatar { box-shadow: 0 0 0 3px rgba(47,140,255,.35); }
.story cite { display: block; font: 600 16.5px/1.3 var(--display); font-style: normal; letter-spacing: -.01em; color: var(--ink); }
.story small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.stories-note { text-align: center; }

/* ---------- Student Stories, 3D marquee wall (About page) ---------- */
.stories3d { background: var(--paper); overflow: hidden; }
.stories3d-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.stories3d-copy h2 { margin-top: 24px; font-size: clamp(42px, 4.4vw, 68px); }
.stories3d-copy > p { margin-top: 24px; max-width: 420px; font-size: 18px; }
.stories3d-copy .rating-card { margin: 32px 0 26px; width: fit-content; }
.stories3d-source { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stage3d { position: relative; }
.stage3d.is-3d { height: 640px; border-radius: 36px; overflow: hidden; perspective: 300px; background: radial-gradient(500px 400px at 50% 40%, #fff, var(--paper) 75%); border: 1px solid var(--line); box-shadow: 0 50px 100px -60px rgba(7,33,79,.45), inset 0 1px 0 #fff; }
.stage3d.is-3d .stories3d-source { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.t3d-world { position: absolute; left: 50%; top: 50%; display: flex; gap: 16px; transform: translate(-50%, -50%) translateX(-60px) translateZ(-100px) rotateX(20deg) rotateY(-10deg) rotateZ(20deg); }
.t3d-col { --gap: 16px; display: flex; flex-direction: column; gap: var(--gap); height: 1100px; overflow: hidden; padding: 6px; }
.t3d-track { display: flex; flex-direction: column; gap: var(--gap); flex-shrink: 0; animation: marquee-vertical var(--duration, 45s) linear infinite; }
.t3d-col.reverse .t3d-track { animation-direction: reverse; }
.t3d-col:hover .t3d-track { animation-play-state: paused; }
@keyframes marquee-vertical { from { transform: translateY(0); } to { transform: translateY(calc(-100% - var(--gap))); } }
.t3d-card { width: 240px; margin: 0; padding: 18px 18px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(7,33,79,.3); transition: border-color .3s, box-shadow .3s, background-color .3s; }
.t3d-card:hover { border-color: #9fc0f5; box-shadow: 0 18px 40px -16px rgba(47,140,255,.45); }
.t3d-who { display: flex; align-items: center; gap: 10px; }
.t3d-who .avatar { width: 36px; height: 36px; font-size: 14px; flex: none; }
.t3d-who figcaption { font: 600 14.5px/1.2 var(--display); color: var(--ink); }
.t3d-who small { display: block; font-size: 11.5px; color: var(--muted); }
.t3d-card blockquote { margin: 12px 0 0; font: 600 15px/1.35 var(--display); letter-spacing: -.01em; color: var(--ink); }
.t3d-card blockquote span { background: linear-gradient(transparent 60%, rgba(94,240,255,.45) 60%); }
.t3d-card p { margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t3d-fade { position: absolute; pointer-events: none; z-index: 2; }
.t3d-fade.top { inset: 0 0 auto; height: 25%; background: linear-gradient(var(--paper), transparent); }
.t3d-fade.bottom { inset: auto 0 0; height: 25%; background: linear-gradient(transparent, var(--paper)); }
.t3d-fade.left { inset: 0 auto 0 0; width: 22%; background: linear-gradient(90deg, var(--paper), transparent); }
.t3d-fade.right { inset: 0 0 0 auto; width: 22%; background: linear-gradient(270deg, var(--paper), transparent); }

/* ---------- Quiz ---------- */
.quiz-section { background: radial-gradient(800px 500px at 85% 30%, rgba(47,140,255,.28), transparent 65%), radial-gradient(700px 500px at 0% 100%, rgba(94,240,255,.12), transparent 60%), var(--night); }
.quiz-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.quiz-grid h2 { margin: 24px 0 28px; }
.quiz-grid > div > p { font-size: 18px; max-width: 420px; }
.quiz-card { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: 32px; }
.quiz-card .label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky) !important; }
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 22px 0 30px; font: 600 clamp(36px, 4.2vw, 58px)/1.1 var(--display); letter-spacing: -.04em; color: #fff; }
.equation sub { font-size: .5em; }
.equation .to { color: var(--cyan); font-weight: 400; }
.slot { display: inline-grid; place-items: center; min-width: 1.3em; height: 1.3em; border-radius: 16px; border: 2px dashed rgba(94,240,255,.6); color: var(--cyan); transition: background-color .4s, border-color .4s, color .4s, transform .5s var(--ease); }
.slot.good { background: var(--flame); border: 2px solid var(--flame); color: var(--night); transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 40px rgba(255,181,71,.55); }
.quiz-options { display: flex; gap: 12px; }
.quiz-options button { width: 74px; height: 74px; border-radius: 22px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font: 600 28px var(--display); transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s; }
.quiz-options button:hover { transform: translateY(-4px); border-color: var(--cyan); }
.quiz-options button.good { background: var(--cyan); color: var(--night); border-color: var(--cyan); }
.quiz-options button.bad { border-color: #ff7a8a; color: #ff9aa6; }
#quiz-feedback { margin-top: 24px; min-height: 52px; font-size: 16.5px; color: #c3d2ee; }

/* ---------- Instagram ---------- */
.community { background: var(--paper); }
.section-intro { max-width: 560px; font-size: 18px; margin: -40px 0 50px; }
.instagram-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 22px; }
.ig-card { min-width: 0; border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 70px -50px rgba(7,33,79,.45); transition: transform .5s var(--ease), opacity 1s var(--ease), translate 1.1s var(--ease); }
.ig-card:hover { transform: translateY(-8px); }
.ig-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; }
.ig-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy) linear-gradient(160deg, var(--navy-2), var(--night)); }
.ig-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.ig-card:hover .ig-media img { scale: 1.04; }
.ig-type { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(3,11,34,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 0; }
.ig-type::before { content: ""; margin-left: 2px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.ig-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px 24px 22px; }
.ig-meta { display: flex; gap: 8px; font-size: 13px; color: var(--muted); }
.ig-likes::before { content: "·"; margin-right: 8px; }
.ig-caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; color: var(--ink); font-size: 16px; line-height: 1.45; }
.ig-cta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--royal); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.faq-head { position: sticky; top: 130px; }
.faq-head h2 { margin: 24px 0 28px; }
.faq-head p { font-size: 18px; }
.faq-head a { color: var(--royal); font-weight: 600; }
.faq-list { display: grid; gap: 14px; }
.faq-list details { border-radius: 22px; background: #fff; border: 1px solid var(--line); transition: border-color .4s, box-shadow .4s; }
.faq-list details[open] { border-color: #b9cdf0; box-shadow: 0 30px 60px -40px rgba(7,33,79,.35); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px 24px 30px; cursor: pointer; list-style: none; font: 600 clamp(18px, 1.5vw, 21px)/1.3 var(--display); letter-spacing: -.02em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); color: var(--royal); transition: transform .5s var(--ease), background-color .4s, color .4s; }
details[open] .faq-plus { transform: rotate(135deg); background: var(--grad); color: #fff; }
.faq-list details p { padding: 0 30px 28px; font-size: 16.5px; max-width: 640px; }
.faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size .55s var(--ease), content-visibility .55s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }

/* ---------- CTA ---------- */
.cta-wrap { padding: 0 var(--gutter) clamp(70px, 8vw, 120px); }
.cta { --em-grad: linear-gradient(100deg, #8ccaff, #5ef0ff); position: relative; isolation: isolate; overflow: hidden; max-width: 1400px; margin: auto; display: grid; grid-template-columns: 1.25fr 1fr; gap: 50px; align-items: end; padding: clamp(48px, 7vw, 100px); border-radius: 40px; background: var(--navy); color: #fff; }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg span { position: absolute; border-radius: 50%; box-sizing: content-box; padding: 140px; margin: -140px; background: radial-gradient(closest-side, currentColor 35%, color-mix(in srgb, currentColor 50%, transparent) 61%, transparent 100%); }
.cta-bg .b1 { width: 60%; aspect-ratio: 1; left: -10%; top: -40%; color: var(--royal); animation: drift 14s ease-in-out infinite alternate; }
.cta-bg .b2 { width: 50%; aspect-ratio: 1; right: -10%; bottom: -50%; color: var(--electric); opacity: .8; animation: drift 18s ease-in-out infinite alternate-reverse; }
.cta-bg .b3 { width: 25%; aspect-ratio: 1; right: 30%; top: -15%; color: var(--cyan); opacity: .35; animation: drift 12s ease-in-out infinite alternate; }
.cta-molecule { position: absolute; right: -60px; top: -60px; width: 340px; opacity: .22; animation: spin 50s linear infinite; z-index: -1; }
.cta .kicker { color: #cfe3ff; }
.cta h2 { margin-top: 26px; font-size: clamp(50px, 7.4vw, 112px); line-height: .92; }
.cta p { color: #d4e2fb; font-size: 18px; max-width: 400px; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 30px; }
.cta-phone { display: inline-flex; align-items: center; gap: 10px; color: #d4e2fb; font-size: 15px; }
.cta-phone:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--night); color: #eaf1ff; border-radius: 40px 40px 0 0; padding-top: clamp(60px, 7vw, 100px); }
.site-footer .g1 { width: 500px; height: 500px; left: 50%; bottom: -300px; translate: -50% 0; color: var(--electric); opacity: .3; }
.footer-inner { position: relative; z-index: 2; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-top .logo img { height: 52px; }
.footer-top p { color: #a9bad9; font-size: 17px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 50px; padding: 50px 0; }
.footer-cols h2 { font: 600 12.5px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: 20px; }
.footer-cols a, .footer-cols span { display: flex; align-items: center; gap: 10px; width: fit-content; padding: 6px 0; color: #c9d6ee; font-size: 16px; transition: color .3s, translate .4s var(--ease); }
.footer-cols a:hover { color: #fff; translate: 6px 0; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); }
.socials a:hover { background: #fff; color: var(--royal); translate: 0 -3px; }
.footer-word { font: 800 clamp(54px, 13vw, 220px)/.8 var(--display); letter-spacing: -.05em; text-align: center; margin: 10px 0 -.06em; background: linear-gradient(180deg, rgba(140,202,255,.5), rgba(140,202,255,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 30px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; color: #8296bd; }
.footer-bottom { padding-right: 96px; } /* keeps the credit clear of the HubSpot chat button */
.footer-bottom .credit { color: #cfe0ff; text-decoration: underline; text-decoration-color: rgba(140,202,255,.4); text-underline-offset: 3px; transition: color .3s, text-decoration-color .3s; }
.footer-bottom .credit:hover { color: #fff; text-decoration-color: var(--cyan); }

/* ---------- Page heroes (inner pages) ---------- */
.page-hero { padding: 180px 0 clamp(70px, 8vw, 110px); background: radial-gradient(900px 600px at 80% 0%, var(--navy-2), transparent 65%), radial-gradient(700px 500px at 0% 100%, rgba(1,83,171,.35), transparent 60%), var(--night); }
.page-hero .hero-canvas { opacity: .6; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-top: 26px; font-size: clamp(50px, 7vw, 108px); line-height: .92; color: #fff; }
.page-hero .lead { margin-top: 26px; }
.page-hero.center { text-align: center; }
.page-hero.center .kicker, .page-hero.center .lead { margin-inline: auto; }

/* About */
.about-hero { min-height: auto; padding-top: 150px; }
/* "Hi, I'm Chamila" section. Its own class: `.story` is the review-card style */
.about-intro { padding-bottom: clamp(56px, 6vw, 88px); }
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.story-head { position: sticky; top: 130px; }
.story-head h2 { margin-top: 24px; }
.story-body p { font-size: 18.5px; line-height: 1.75; margin-bottom: 24px; }
.story-body p:first-child { font: 500 clamp(24px, 2.3vw, 32px)/1.35 var(--display); letter-spacing: -.025em; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chips span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.chips .i { color: var(--electric); }
.creds { padding-top: 0; }
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cred { --px: 50%; --py: 50%; position: relative; overflow: hidden; padding: 34px; border-radius: 28px; background: var(--night); color: #fff; min-height: 260px; display: flex; flex-direction: column; transition: transform .5s var(--ease), opacity 1s var(--ease), translate 1.1s var(--ease); }
.cred::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--px) var(--py), rgba(47,140,255,.35), transparent 60%); opacity: .6; transition: opacity .4s; }
.cred:hover { transform: translateY(-8px); }
.cred:hover::before { opacity: 1; }
.cred > * { position: relative; }
.cred .step-ico { margin-bottom: auto; }
.cred strong { display: block; margin-top: 40px; font: 700 clamp(40px, 4vw, 56px)/1 var(--display); letter-spacing: -.05em; }
.cred p { margin-top: 10px; color: #b8c8e8; font-size: 16px; }

/* Classes page */
.course-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 60px; text-align: left; }
.course-tabs button { --px: 50%; --py: 50%; position: relative; overflow: hidden; display: grid; gap: 4px; padding: 20px 22px; border-radius: 22px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff; text-align: left; transition: transform .45s var(--ease), background-color .4s, border-color .4s, box-shadow .4s; }
.course-tabs button::before { content: ''; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--px) var(--py), rgba(94,240,255,.2), transparent 60%); opacity: 0; transition: opacity .3s; }
.course-tabs button:hover { transform: translateY(-4px); border-color: rgba(140,202,255,.4); }
.course-tabs button:hover::before { opacity: 1; }
.course-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 24px 50px -20px rgba(47,140,255,.7); }
.t-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--sky); font-weight: 600; }
[aria-selected="true"] .t-top { color: var(--royal); }
.t-sym { font: 700 52px/1 var(--display); letter-spacing: -.04em; margin: 10px 0 4px; }
[aria-selected="true"] .t-sym { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-name { font-weight: 600; font-size: 16px; }
.t-price { font-size: 14px; color: #a9bad9; }
[aria-selected="true"] .t-price { color: var(--muted); }
.course-explorer { padding-top: clamp(60px, 7vw, 100px); }
.course { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 5vw, 70px); padding: clamp(28px, 4.5vw, 64px); border-radius: 36px; background: #fff; border: 1px solid var(--line); box-shadow: 0 50px 100px -60px rgba(7,33,79,.45); }
.course-main .kicker { margin-bottom: 22px; }
.course-main h2 { font-size: clamp(40px, 4.6vw, 70px); }
.course-intro { margin-top: 26px; font-size: 18.5px; max-width: 560px; }
.course-points { display: grid; gap: 14px; margin-top: 30px; }
.course-points li { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 500; }
.course-points .i, .price-list .i { display: block; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(47,140,255,.12); color: var(--royal); stroke-width: 2.4; }
.course-price { --em-grad: linear-gradient(100deg, #8ccaff, #5ef0ff); position: relative; overflow: hidden; align-self: start; padding: 34px; border-radius: 28px; background: var(--night); color: #fff; }
.course-price::before { content: ''; position: absolute; width: 300px; height: 300px; right: -120px; top: -140px; border-radius: 50%; box-sizing: content-box; padding: 120px; margin: -120px; color: var(--electric); background: radial-gradient(closest-side, currentColor 35%, color-mix(in srgb, currentColor 50%, transparent) 61%, transparent 100%); opacity: .45; }
.course-price > * { position: relative; }
.course-price .kicker { color: var(--sky); }
.price-big { margin-top: 18px; font: 700 76px/1 var(--display); letter-spacing: -.06em; }
.price-big small { font: 500 16px var(--body); letter-spacing: 0; color: #a9bad9; margin-left: 6px; }
.price-hours { margin-top: 8px; color: #b8c8e8 !important; }
.price-list { display: grid; gap: 12px; margin: 26px 0; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.price-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.price-list .i { background: rgba(94,240,255,.14); color: var(--cyan); }
.included { display: inline-flex; margin-bottom: 22px; padding: 8px 14px; border-radius: 999px; background: var(--flame); color: var(--night); font-size: 14px; font-weight: 600; }
.price-note { display: block; margin-top: 16px; font-size: 13.5px; color: #a9bad9; }
.includes { padding-top: 0; }
.includes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.include { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), opacity 1s var(--ease), translate 1.1s var(--ease); }
.include:hover { transform: translateY(-6px); }
.include .step-ico { width: 50px; height: 50px; border-radius: 16px; margin-bottom: 22px; }
.include strong { display: block; font: 600 20px/1.2 var(--display); letter-spacing: -.02em; }
.include p { margin-top: 6px; font-size: 15px; }

/* Contact page */
.contact-hero { padding: 170px 0 clamp(80px, 9vw, 130px); background: radial-gradient(900px 600px at 15% 0%, var(--navy-2), transparent 65%), radial-gradient(700px 600px at 100% 100%, rgba(1,83,171,.4), transparent 60%), var(--night); }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-copy h1 { margin-top: 26px; font-size: clamp(50px, 6.4vw, 100px); line-height: .92; color: #fff; }
.contact-copy .lead { margin-top: 28px; }
.methods { display: grid; gap: 12px; margin-top: 44px; }
.method { --px: 50%; --py: 50%; position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 22px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); transition: transform .5s var(--ease), border-color .4s, background-color .4s; }
.method::before { content: ''; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--px) var(--py), rgba(47,140,255,.25), transparent 60%); opacity: 0; transition: opacity .3s; }
.method:hover { transform: translateX(6px); border-color: rgba(140,202,255,.4); }
.method:hover::before { opacity: 1; }
.method > * { position: relative; }
.method-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #fff; flex: none; }
.method small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.method > span:not(.method-ico):not(.go) { min-width: 0; }
.method strong { display: block; font: 600 20px/1.3 var(--display); letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.method .go { margin-left: auto; color: var(--sky); transition: transform .4s var(--ease); }
.method:hover .go { transform: translate(4px, -4px); color: #fff; }
.form-card { padding: clamp(26px, 3.5vw, 46px); border-radius: 34px; background: #fff; color: var(--ink); box-shadow: 0 60px 120px -50px rgba(0,0,0,.7); }
.form-card h2 { margin: 18px 0 10px; font-size: clamp(32px, 3vw, 44px); }
.form-card p { color: var(--muted); }
.form-card .kicker { color: var(--royal); }
.course-chosen { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 14px 14px 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(47,140,255,.1), rgba(94,240,255,.12)); border: 1.5px solid rgba(47,140,255,.28); animation: cc-in .6s var(--ease) both; }
.course-chosen[hidden] { display: none; }
.cc-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--electric); color: #fff; }
.cc-ico .i { width: 20px; height: 20px; }
.cc-text { display: grid; gap: 2px; min-width: 0; }
.cc-text small { font-size: 12.5px; color: var(--muted); }
.cc-text strong { font: 600 18px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); }
.cc-change { margin-left: auto; flex: none; padding: 9px 16px; border-radius: 999px; border: 1.5px solid rgba(1,83,171,.25); background: #fff; color: var(--royal); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .3s, background-color .3s; }
.cc-change:hover { border-color: var(--electric); background: var(--paper); }
@keyframes cc-in { from { opacity: 0; transform: translateY(10px); } }
.field { display: block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field > span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 8px; padding: 15px 18px; min-height: 56px; border-radius: 16px; border: 1.5px solid transparent; background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 400; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.field select { appearance: none; padding-right: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230153ab' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 20px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c9d6ec; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--electric); background-color: #fff; box-shadow: 0 0 0 5px rgba(47,140,255,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.call-time { margin: 22px 0 0; padding: 18px 20px 20px; border: 1.5px solid #dbe6f6; border-radius: 20px; background: #f7faff; min-width: 0; }
.call-time legend { float: left; width: 100%; padding: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.call-time legend::before { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / 15px no-repeat, var(--grad); }
.call-time .form-row { clear: both; }
.call-time .field { margin-top: 12px; }
.call-time .field select { background-color: #fff; border-color: #e3eaf5; }
.field select:invalid { color: var(--muted); }
.form-card .btn { margin-top: 26px; }
.form-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
#enquiry-result { margin-top: 28px; padding: 26px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
#enquiry-result > strong { display: flex; align-items: center; gap: 10px; font: 600 22px var(--display); letter-spacing: -.02em; }
#enquiry-result > strong .i { color: #fff; background: var(--grad); border-radius: 50%; padding: 5px; width: 30px; height: 30px; }
#enquiry-result p { font-size: 15px; margin: 10px 0 18px; }
#enquiry-result:focus { outline: none; }
#enquiry-result.is-error { background: #fff8ee; border-color: #f3d9b1; }
#enquiry-result.is-error > strong .i { background: linear-gradient(135deg, #ffb547, #ff8a3d); }
.form-card .btn:disabled { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:not(:empty) { margin: 6px 0 14px; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.copy-button { border: 0; background: none; color: var(--royal); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; padding: 8px 4px; }
#copy-status { margin: 10px 0 0 !important; min-height: 1em; }
#prepared-message { display: block; width: 100%; margin-top: 12px; min-height: 160px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--text); resize: vertical; }

/* ---------- Home hero: scroll-driven chemistry lab ----------
   Default (no JS / reduced motion): a normal stacked section with one still frame of the flask.
   .is-live (added by lab.js): a sticky stage pinned for ~3 screens while the four scenes play. */
.lab { position: relative; overflow: clip; background: var(--night); }
.lab-stage { position: relative; isolation: isolate; }
.lab-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; will-change: transform; background: radial-gradient(900px 640px at var(--fx, 68%) var(--fy, 55%), rgba(12,44,102,.9), transparent 70%), radial-gradient(1000px 600px at 0% 0%, rgba(1,83,171,.22), transparent 60%), var(--night); }
.lab-light { position: absolute; inset: 0; z-index: 1; background: radial-gradient(520px 460px at var(--fx, 68%) var(--fy, 55%), rgba(47,140,255,.42), transparent 70%); opacity: .3; will-change: opacity; }
.lab-room { position: absolute; left: 0; right: 0; top: 0; height: var(--floor, 88%); opacity: .85; }
.lab-room svg { width: 100%; height: 100%; filter: blur(2px); }
.lab-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.lab .grain { z-index: 3; }
.lab-copy { position: relative; z-index: 4; }
.lab h1 { margin-top: 26px; font-size: clamp(52px, 7.2vw, 116px); line-height: .92; letter-spacing: -.042em; color: #fff; }
.lab h1 em { font-size: 1.08em; }
.lab h2 { margin-top: 22px; font-size: clamp(40px, 4.8vw, 74px); color: #fff; }
.lab .s2 h2 { font-size: clamp(38px, 4.4vw, 68px); }
.lab .lead { margin-top: 26px; }
.lab .hero-actions { margin-top: 34px; }
.lab .hero-trust { margin-top: 34px; }
.lab-phone { display: inline-flex; align-items: center; gap: 10px; padding: 10px 6px; font-size: 15px; font-weight: 500; color: #cfe0ff; }
.lab-phone:hover { color: #fff; }
.lab-phone .i { color: var(--cyan); }

.lab-steps { display: grid; gap: 12px; margin-top: 30px; }
.lab-step { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 18px; padding: 16px 22px 16px 18px; border-radius: 20px; background: rgba(6,21,54,.9); border: 1px solid rgba(140,202,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.lab-step b { grid-row: span 2; font: 700 30px/1 var(--display); letter-spacing: -.04em; background: linear-gradient(160deg, #fff, var(--sky) 50%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lab-step strong { font: 600 19px/1.2 var(--display); letter-spacing: -.02em; color: #fff; }
.lab-step span { font-size: 14.5px; line-height: 1.45; color: #a9bad9; }

/* Scene 3 backdrops: messy notes, cleaned to tidy cards by the wave (masked at --wx) */
.lab-notes { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: none; }
.lab-notes { opacity: 0; will-change: opacity; }
.lab-clean { clip-path: inset(0 100% 0 0); }
.lab-messy > * { position: absolute; left: var(--x); top: var(--y); rotate: var(--r); }
.lab-messy span { font: 500 calc(var(--s, 1) * clamp(17px, 1.6vw, 25px))/1.1 'Caveat', var(--serif); color: rgba(185,203,235,.62); white-space: nowrap; }
.lab-messy s { text-decoration-color: rgba(255,181,71,.8); text-decoration-thickness: 2px; }
.lab-scribble { width: clamp(70px, 7vw, 120px); fill: none; stroke: rgba(255,181,71,.5); stroke-width: 2; stroke-linecap: round; }
.lab-clean { display: none; grid-template-columns: repeat(3, 1fr); align-content: center; gap: 14px; padding: 112px calc(var(--gutter) + 150px) 96px 47%; }
.lab-clean > :nth-child(n+10) { display: none; }
.lab-card { padding: 14px 16px 16px; border-radius: 16px; background: rgba(140,202,255,.055); border: 1px solid rgba(140,202,255,.17); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.lab-card small { display: block; margin-bottom: 8px; font: 600 10.5px/1.25 var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--cyan); }
.lab-card p { font: 500 clamp(12.5px, 1.05vw, 16px)/1.45 var(--body); color: #dbe9ff; }
.lab-card sub, .lab-card sup { font-size: .7em; }
.lab-card svg { width: 100%; max-width: 190px; height: auto; fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lab-card svg .ax { stroke: rgba(140,202,255,.45); stroke-width: 1.2; }
.lab-card svg .dash { stroke: var(--cyan); stroke-dasharray: 3 4; }
.lab-card svg text { fill: var(--cyan); stroke: none; font: 600 9px var(--body); }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .9em; line-height: 1.25; }
.frac > span + span { border-top: 1px solid currentColor; }

.lab-cue, .lab-rail, .lab-skip { display: none; }

/* Static layout */
.lab:not(.is-live) .lab-canvas, .lab:not(.is-live) .lab-bg { height: 100svh; bottom: auto; }
.lab:not(.is-live) .s1 { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 100svh; max-width: 600px; padding-block: 130px 80px; }
.lab:not(.is-live) .s2, .lab:not(.is-live) .s3, .lab:not(.is-live) .s4 { max-width: 640px; padding-block: 40px; }
.lab:not(.is-live) .s4 { padding-bottom: clamp(100px, 10vw, 150px); }

/* Live, pinned layout */
.lab.is-live { height: 320svh; }
.lab.is-live .lab-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.lab.is-live .lab-notes { display: block; }
.lab.is-live .lab-clean { display: grid; }
.lab.is-live .lab-copy { position: absolute; inset: 0; margin-inline: auto; }
.lab-scrim { display: none; }
.lab.is-live .lab-scrim { display: block; position: absolute; inset: 0 auto 0 calc(50% - 50vw); width: calc(50vw + 8%); background: linear-gradient(90deg, rgba(3,11,34,.85), rgba(3,11,34,.55) 55%, transparent); opacity: .25; pointer-events: none; will-change: opacity; }
.lab.is-live .lab-scene { position: absolute; left: 0; top: 50%; width: min(570px, 46%); translate: 0 -50%; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.lab.is-live .lab-scene.is-on { pointer-events: auto; }
.lab.is-live .lab-cue { display: flex; z-index: 5; }
.lab.is-live .lab-skip { position: absolute; left: var(--gutter); bottom: 26px; z-index: 6; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #cfe0ff; font-size: 13px; font-weight: 500; background-color: rgba(10,26,64,.85); transition: background-color .3s, color .3s; }
.lab.is-live .lab-skip:hover { background: rgba(255,255,255,.14); color: #fff; }
.lab.is-live .lab-rail { position: absolute; right: var(--gutter); top: 50%; z-index: 5; translate: 0 -50%; display: grid; gap: 18px; padding-right: 18px; border-right: 1px solid rgba(255,255,255,.12); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(169,186,217,.5); text-align: right; }
.lab-rail .lab-rail-bar { position: absolute; right: -1px; top: 0; width: 1px; height: 100%; background: linear-gradient(var(--sky), var(--cyan)); transform-origin: top; transform: scaleY(0); }
.lab-rail li { transition: color .4s; }
.lab-rail b { display: block; font: 600 14px var(--display); letter-spacing: 0; }
.lab-rail li.on { color: #fff; }
.lab-rail li.on b { color: var(--cyan); }

@media (prefers-reduced-motion: no-preference) {
  .lab-room { animation: lab-wake 2.2s var(--ease) both; animation-delay: var(--intro, 0s); }
  .lab.is-live .s1 > * { animation: lab-rise 1.1s var(--ease) both; animation-delay: calc(var(--intro, 0s) + .35s + var(--d, 0) * .11s); }
}
.lab + .marquee-wrap { background: linear-gradient(var(--night) 50%, transparent 50%); }
@keyframes lab-wake { from { opacity: 0; } }
@keyframes lab-rise { from { opacity: 0; translate: 0 34px; } }

@media (max-width: 1180px) {
  .lab.is-live .lab-rail { display: none; }
  .lab-clean { grid-template-columns: repeat(3, 1fr); }
  .lab-clean > :nth-child(n+10) { display: none; }
  .lab-clean { padding-right: var(--gutter); }
}
@media (max-width: 980px) {
  .lab.is-live { height: 280svh; }
  .lab-clean { grid-template-columns: repeat(2, 1fr); align-content: start; padding: 96px var(--gutter) 0; gap: 10px; }
  .lab-clean > :nth-child(n+7) { display: none; }
  .lab-messy > :nth-child(3n) { display: none; }
  .lab.is-live .lab-scrim { inset: auto calc(var(--gutter) * -1) 0; width: auto; height: 62%; background: linear-gradient(transparent, rgba(3,11,34,.82) 38%, rgba(3,11,34,.94)); opacity: 1; }
  .lab.is-live .lab-scene { top: auto; bottom: calc(106px + env(safe-area-inset-bottom)); /* clears the HubSpot chat button */ right: 0; width: auto; max-width: 600px; margin-inline: auto; translate: none; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .lab.is-live .lab-scene .kicker { margin-inline: auto; }
  .lab.is-live .hero-actions, .lab.is-live .hero-trust { justify-content: center; }
  .lab.is-live .lab-cue { display: none; }
  .lab.is-live .lab-skip { left: 50%; translate: -50% 0; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 8px 14px; font-size: 12.5px; }
  .lab-steps { width: 100%; text-align: left; }
  .lab:not(.is-live) .s1 { justify-content: flex-end; align-items: stretch; padding-top: 52svh; }
}
@media (max-width: 640px) {
  .lab h1 { margin-top: 16px; font-size: clamp(42px, 12vw, 64px); }
  .lab h2, .lab .s2 h2 { margin-top: 14px; font-size: clamp(32px, 9vw, 50px); }
  .lab .lead { margin-top: 14px; font-size: 15.5px; }
  .lab .chip { font-size: 10.5px; }
  .lab .chip > span { padding: 8px 10px 7px; }
  .lab .hero-trust { display: none; }
  .lab .hero-actions { margin-top: 22px; gap: 10px; }
  .lab.is-live .s1 .hero-actions { flex-wrap: nowrap; width: 100%; }
  .lab.is-live .s1 .btn { --h: 50px; flex: 1; width: auto; justify-content: center; padding: 0 16px; font-size: 14.5px; }
  .lab.is-live .s1 .btn-icon { display: none; }
  .lab .s4 .btn { width: 100%; }
  .lab-steps { gap: 8px; margin-top: 18px; }
  .lab-step { padding: 11px 16px 11px 14px; border-radius: 16px; gap: 0 14px; }
  .lab-step b { font-size: 22px; }
  .lab-step strong { font-size: 16px; }
  .lab-step span { display: none; }
  .lab-card { padding: 10px 12px; border-radius: 12px; }
  .lab-card small { font-size: 9px; margin-bottom: 4px; }
  .lab-card p { font-size: 12px; }
}
@media (max-width: 640px) and (max-height: 720px) {
  .lab.is-live .s1 .chip { display: none; }
  .lab.is-live .s1 h1 { margin-top: 0; }
}

/* ---------- Student spotlight (home) ---------- */
.spotlight .g1 { width: 640px; height: 640px; left: -240px; top: 6%; color: var(--royal); opacity: .42; }
.spotlight-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(280px, 390px) 1fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.sl-media { margin: 0; width: 100%; justify-self: center; }
.sl-phone { position: relative; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; background: #061536; border: 1px solid rgba(140,202,255,.24); box-shadow: 0 0 0 10px rgba(255,255,255,.03), 0 60px 110px -50px rgba(0,0,0,.85); }
.sl-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sl-toggle { position: absolute; inset: 0; z-index: 1; display: grid; place-items: end; padding: 0 14px 20px 0; border: 0; background: transparent; color: #fff; } /* play button sits bottom-right, clear of the reel's title */
.sl-toggle span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(3,11,34,.62); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .35s, transform .35s var(--ease); }
.sl-toggle .i { width: 18px; height: 18px; fill: currentColor; stroke: none; margin-left: 3px; }
.sl-toggle .i + .i, .sl-phone.is-playing .sl-toggle .i:first-child { display: none; }
.sl-phone.is-playing .sl-toggle .i + .i { display: block; margin-left: 0; }
.sl-sound { position: absolute; left: 14px; bottom: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 8px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(3,11,34,.62); color: #fff; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sl-sound .i { width: 16px; height: 16px; }
.sl-sound .sl-on, .sl-sound[aria-pressed="true"] .sl-off { display: none; }
.sl-sound[aria-pressed="true"] .sl-on { display: block; }
.sl-progress { position: absolute; left: 16px; right: 16px; bottom: 9px; z-index: 2; height: 2px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
.sl-progress i { display: block; height: 100%; background: var(--cyan); transform-origin: 0 50%; transform: scaleX(0); }
.sl-media figcaption { margin-top: 16px; text-align: center; font-size: 13px; color: #8296bd; }
.sl-media figcaption a { color: #cfe0ff; text-decoration: underline; text-decoration-color: rgba(140,202,255,.4); text-underline-offset: 3px; }
.sl-copy h2 { margin: 24px 0 26px; }
.sl-lead { max-width: 580px; font-size: 18px; }
/* Fact strip: hairline-ruled cells, like a results certificate */
.sl-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 36px 0 34px; border-block: 1px solid rgba(255,255,255,.14); }
.sl-facts > div { padding: 16px 30px 18px 0; }
.sl-facts > div + div { padding-left: 30px; border-left: 1px solid rgba(255,255,255,.14); }
.sl-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.sl-facts dd { margin: 10px 0 0; font: 600 21px/1.15 var(--display); letter-spacing: -.02em; color: #fff; }
.sl-facts .sl-score { font-size: 56px; line-height: .9; letter-spacing: -.05em; background: linear-gradient(160deg, #fff 20%, var(--sky) 60%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sl-facts .sl-score small { font-size: .4em; letter-spacing: 0; margin-left: 2px; }
.sl-quote { margin: 0 0 34px; padding-left: 22px; border-left: 2px solid var(--flame); max-width: 580px; }
.sl-quote p { font: italic 400 clamp(21px, 1.9vw, 27px)/1.4 var(--serif); color: #eaf1ff !important; }
.sl-quote footer { margin-top: 14px; font-size: 14px; color: #8fa3c8; }
.sl-quote cite { font-style: normal; font-weight: 600; color: #fff; margin-right: 8px; }
.sl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.spotlight .text-link { color: var(--sky); }
.sl-note { margin-top: 24px; font-size: 13px; color: #7f92b6 !important; max-width: 520px; }

/* Achievement pop-up: small, dismissible, never covers the page's main actions */

@media (max-width: 980px) {
  .spotlight-grid { grid-template-columns: 1fr; }
  .sl-media { max-width: 340px; }
}
@media (max-width: 640px) {
  .sl-facts { grid-template-columns: 1fr 1fr; }
  .sl-facts > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid rgba(255,255,255,.14); }
  .sl-facts > div + div { padding-left: 0; border-left: 0; }
  .sl-facts > div:last-child { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.14); }
  .sl-facts dd { font-size: 17px; }
  .sl-actions .btn { width: 100%; }
  /* on phones the pop-up drops in under the header instead of covering the bottom buttons and chat */
}

/* ---------- View transitions between pages ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .4s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-24px) scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(40px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav a { padding: 10px 12px; font-size: 14px; }
  .periodic { grid-template-columns: repeat(2, 1fr); }
  .el-card { min-height: 400px; }
  .includes-grid { grid-template-columns: repeat(2, 1fr); }
  .fc-rating { left: -2%; }
}
@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 980px) {
  .header-pill { height: 66px; padding-left: 20px; }
  .hero { min-height: auto; padding-top: 130px; }
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { justify-self: center; width: min(100%, 520px); }
  .scroll-cue { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .approach-grid, .faq-grid, .story-grid, .teacher-grid, .quiz-grid, .contact-grid { grid-template-columns: 1fr; }
  .approach-head, .faq-head, .story-head { position: static; }
  .teacher-grid .tm { max-width: 520px; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .stories3d-grid { grid-template-columns: 1fr; }
  .stage3d.is-3d { height: 560px; }
  .stories-wall { grid-template-columns: 1fr 1fr; }
  .review:nth-child(2) { margin-top: 0; }
  .instagram-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 16px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .ig-card { flex: 0 0 min(78%, 380px); scroll-snap-align: center; }
  .cta { grid-template-columns: 1fr; gap: 30px; }
  .course { grid-template-columns: 1fr; }
  .course-tabs { grid-template-columns: repeat(2, 1fr); }
  .cred-grid { grid-template-columns: 1fr; }
  .cred { min-height: 0; }
  .cred strong { margin-top: 26px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { top: calc(10px + var(--bar-h)); padding-inline: 12px; }
  .header-pill { height: 62px; padding: 0 7px 0 18px; }
  .scrolled .header-pill { height: 58px; }
  .logo img { height: 32px; }
  .menu-toggle { width: 46px; height: 46px; }
  .menu-toggle span { left: 14px; right: 14px; }
  .menu-toggle span:first-child { top: 18px; }
  .menu-toggle span:last-child { top: 26px; }
  .menu-open .menu-toggle span { top: 22px !important; }
  .hero { padding: 116px 0 90px; }
  .chip { font-size: 10.5px; }
  .hero h1 { font-size: clamp(50px, 15.5vw, 84px); }
  .btn { --h: 56px; font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust .sep { display: none; }
  .tile { width: 92px; padding: 10px 11px 11px; border-radius: 14px; }
  .tile strong { font-size: 42px; }
  .tile span { font-size: 10px; }
  .fc-element { right: 0; top: 4%; }
  .fc-rating { left: 0; bottom: 26%; }
  .fc-rating > div { padding: 12px 15px; }
  .fc-rating strong { font-size: 24px; }
  .fc-name { right: 0; bottom: 4%; }
  .name-card { padding: 10px 14px 11px; }
  .name-card strong { font-size: 19px; }
  .name-card small { font-size: 9.5px; }
  .section-head { display: block; }
  .section-head > p { margin-top: 22px; }
  .section-head .rating-card { margin-top: 30px; }
  .stats-grid { gap: 30px 0; }
  .stat { padding: 0 0 0 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat p { font-size: 14px; }
  .tm-frame { inset: 14px -10px -14px 10px; border-radius: 28px; }
  .tm-caption { left: 20px; right: 20px; bottom: 18px; font-size: 10px; }
  .steps { padding-left: 34px; }
  .steps-line { left: 6px; }
  .step-dot { left: -38px; width: 20px; height: 20px; }
  .step { padding: 26px; border-radius: 24px; }
  .step-num { font-size: 56px; }
  .periodic { grid-template-columns: 1fr; }
  .el-card { min-height: 0; }
  .el-sym { margin-top: 20px; }
  .review-grid { grid-template-columns: 1fr; }
  .stories3d-source { grid-template-columns: 1fr; }
  .stage3d.is-3d { height: 480px; border-radius: 28px; }
  .t3d-world { transform: translate(-50%, -50%) translateX(-40px) translateZ(-100px) rotateX(20deg) rotateY(-10deg) rotateZ(20deg) scale(.82); }
  .stories-wall { grid-template-columns: 1fr; }
  .stories-wall.is-marquee { max-height: 680px; }
  .story { padding: 28px 24px 24px; border-radius: 24px; }
  .story p { font-size: 15.5px; }
  .review { padding: 28px; }
  .rating-card { padding: 18px 22px; }
  .rating-num { font-size: 56px; }
  .quiz-options button { width: 64px; height: 64px; }
  .section-intro { margin-top: -20px; }
  .ig-card { flex-basis: 88%; }
  .faq-list summary { padding: 20px 20px 20px 22px; }
  .faq-list details p { padding: 0 22px 24px; }
  .cta { border-radius: 30px; padding: 44px 26px; }
  .cta-wrap { padding-inline: 12px; }
  .cta-actions .btn { width: 100%; }
  .site-footer { border-radius: 28px 28px 0 0; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-top .logo img { height: 42px; }
  .footer-cols { gap: 34px 20px; padding: 40px 0; }
  .footer-bottom { flex-direction: column; gap: 6px; padding-right: 0; padding-bottom: 96px; }
  .page-hero { padding-top: 140px; }
  .course-tabs { gap: 10px; margin-top: 44px; }
  .course-tabs button { padding: 16px; border-radius: 18px; }
  .t-sym { font-size: 40px; }
  .course { border-radius: 28px; }
  .course-price { padding: 26px; }
  /* narrow phones: long button labels wrap instead of being cut off */
  .btn-block { white-space: normal; height: auto; min-height: var(--h); padding-block: 8px; line-height: 1.25; text-align: left; }
  .price-big { font-size: 62px; }
  .includes-grid { grid-template-columns: 1fr; }
  .contact-hero { padding-top: 130px; }
  .method strong { font-size: 17px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none !important; }
  html.intro body::before, html.intro body::after { display: none; }
}

/* Free trial offer: large pop-up (native <dialog>), then a slim side tab on every page */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.trial-open { overflow: hidden; }
.trial { width: min(940px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 32px; background: transparent; color: var(--ink); overflow: visible; }
.trial::backdrop { background: rgba(3,11,34,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.trial[open] { animation: trial-in .7s var(--ease) both; }
.trial[open]::backdrop { animation: fade-in .5s ease both; }
@keyframes trial-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes fade-in { from { opacity: 0; } }
.trial-card:focus { outline: none; }
.trial-card { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; max-height: calc(100dvh - 32px); overflow: auto; border-radius: 32px; background: #fff; box-shadow: 0 60px 120px -40px rgba(3,11,34,.7); overscroll-behavior: contain; }
.trial-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 48px 42px; background: radial-gradient(120% 90% at 20% 0%, #0c2c66 0%, #061536 55%, #030b22 100%); color: #eaf1ff; }
.trial-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: url('../images/grain.webp'); opacity: .9; }
.trial-glow { position: absolute; z-index: -1; width: 420px; height: 420px; left: 50%; top: 46%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(47,140,255,.55), rgba(94,240,255,.12) 45%, transparent 70%); filter: blur(10px); animation: trial-pulse 5s ease-in-out infinite; }
@keyframes trial-pulse { 50% { scale: 1.12; opacity: .8; } }
.trial-eyebrow { display: flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 14px 7px 11px; border-radius: 999px; border: 1px solid rgba(255,181,71,.45); background: rgba(255,181,71,.1); color: var(--flame); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.trial-eyebrow .i { width: 15px; height: 15px; }
.trial-score { display: flex; align-items: baseline; margin: 26px 0 0; font: 800 clamp(108px, 14vw, 168px)/.82 var(--display); letter-spacing: -.06em; }
.ts-num { background: linear-gradient(180deg, #fff 30%, #8ccaff); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.ts-of { margin-left: .06em; font: italic 400 .42em/1 var(--serif); letter-spacing: 0; color: var(--cyan); }
.trial-score-label { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.trial-quote { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid rgba(140,202,255,.2); }
.trial-quote blockquote { margin: 0; font: italic 400 21px/1.35 var(--serif); color: #fff; }
.trial-quote figcaption { margin-top: 10px; font-size: 13.5px; color: #9fb4d6; }
.trial-body { position: relative; display: flex; flex-direction: column; padding: 52px 46px 40px; }
.trial-body .kicker { margin-bottom: 14px; }
.trial-body h2 { font: 700 clamp(34px, 4.2vw, 50px)/1.02 var(--display); letter-spacing: -.035em; color: var(--ink); }
.trial-body h2 em { display: block; }
.trial-body > p { margin-top: 16px; font-size: 16.5px; line-height: 1.6; color: var(--text); }
.trial-points { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.trial-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.trial-points .i { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(47,140,255,.12); color: var(--royal); stroke-width: 2.6; }
.trial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 30px; }
.trial-later { padding: 8px 2px; border: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.trial-later:hover { color: var(--ink); text-decoration-color: currentColor; }
.trial-body > .trial-note { margin-top: 18px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.trial-close { position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: background-color .2s, rotate .4s var(--ease); }
.trial-close:hover { background: var(--line); rotate: 90deg; }
.trial-close .i { width: 18px; height: 18px; }
/* "Fr" element tile: the free trial as the first element of their Chemistry journey */
.trial-tile, .tt-tile, .to-tile { position: relative; display: grid; place-items: center; flex: none; border-radius: 12px; background: linear-gradient(150deg, #ffcf7a, var(--flame) 55%, #f08a1c); color: #2a1600; box-shadow: 0 14px 28px -12px rgba(240,138,28,.8), inset 0 1px 0 rgba(255,255,255,.5); }
.trial-tile small, .tt-tile small, .to-tile small { position: absolute; top: 5px; left: 7px; font-size: 10px; font-weight: 700; }
.trial-tile b, .tt-tile b, .to-tile b { font: 800 30px/1 var(--display); letter-spacing: -.04em; }
.trial-tile { position: absolute; z-index: 2; top: 44px; left: -38px; width: 76px; height: 84px; rotate: 8deg; align-content: center; gap: 2px; } /* sits on the seam between the two panels */
.trial-tile em { font: 600 9.5px/1 var(--body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; background: none; color: #4a2a00; padding: 0; }
.trial[open] .trial-tile { animation: tile-drop .9s .25s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes tile-drop { from { opacity: 0; transform: translateY(-30px) rotate(-30deg) scale(.6); } }
/* side tab */
.trial-tab { position: fixed; right: 0; top: 50%; z-index: 94; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 9px 18px; border-radius: 18px 0 0 18px; background: linear-gradient(180deg, #0c2c66, #030b22); color: #fff; box-shadow: -10px 18px 40px -16px rgba(3,11,34,.7); border: 1px solid rgba(140,202,255,.22); border-right: 0; translate: 110% -50%; transition: translate .7s var(--ease), padding .3s var(--ease); }
.trial-tab.show { translate: 0 -50%; }
.trial-tab[hidden] { display: none; }
.trial-tab:hover { padding-right: 14px; }
.tt-tile { width: 40px; height: 44px; border-radius: 10px; }
.tt-tile b { font-size: 19px; }
.tt-tile small { top: 3px; left: 5px; font-size: 8.5px; }
.tt-text { writing-mode: vertical-rl; rotate: 180deg; font: 700 14px/1 var(--display); letter-spacing: .04em; white-space: nowrap; }
.tt-text em { font-size: 1.15em; padding: 0 0 .1em; }
.menu-open .trial-tab, html.trial-open .trial-tab { translate: 110% -50%; }
/* form option */
.trial-opt { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 16px 16px 16px 18px; border-radius: 20px; border: 1.5px dashed rgba(240,138,28,.55); background: #fffaf2; cursor: pointer; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.trial-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.to-box { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; border: 2px solid #e9a54e; background: #fff; color: transparent; transition: background-color .25s, border-color .25s, color .25s, scale .25s var(--ease); }
.to-box .i { width: 18px; height: 18px; stroke-width: 3; }
.to-text { display: grid; gap: 3px; min-width: 0; }
.to-text strong { font: 600 17px/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
.to-text strong em { --em-grad: linear-gradient(100deg, #f08a1c, #e0571a); font-size: 1.12em; }
.to-text small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.to-tile { margin-left: auto; width: 46px; height: 50px; rotate: 6deg; }
.to-tile b { font-size: 21px; }
.to-tile small { font-size: 9px; }
.trial-opt:hover { border-color: #f08a1c; }
.trial-opt:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(240,138,28,.3); }
.trial-opt:has(input:checked) { border-style: solid; border-color: #f08a1c; background: linear-gradient(135deg, #fff4e0, #fffaf2); box-shadow: 0 18px 34px -24px rgba(240,138,28,.9); }
.trial-opt input:checked + .to-box { background: #f08a1c; border-color: #f08a1c; color: #fff; scale: 1.08; }
@media (max-width: 760px) {
  .trial { width: calc(100% - 20px); border-radius: 26px; }
  .trial-card { grid-template-columns: 1fr; border-radius: 26px; }
  .trial-hero { padding: 26px 24px 24px; }
  .trial-score { margin-top: 16px; font-size: 92px; }
  .trial-score-label { margin-top: 8px; font-size: 11.5px; }
  .trial-quote { display: none; }
  .trial-body { padding: 26px 24px 26px; }
  .trial-body h2 { font-size: 34px; }
  .trial-body > p { font-size: 15.5px; margin-top: 12px; }
  .trial-points { margin-top: 16px; gap: 8px; }
  .trial-points li { font-size: 14.5px; }
  .trial-actions { margin-top: 22px; }
  .trial-actions .btn { width: 100%; }
  .trial-actions .trial-later { margin: 0 auto; }
  .trial-body > .trial-note { margin-top: 12px; text-align: center; }
  .trial-tile { top: -36px; left: auto; right: 22px; width: 58px; height: 64px; }
  .trial-tile b { font-size: 23px; }
  .trial-tile em { font-size: 7.5px; }
  .trial-close { background: rgba(255,255,255,.12); color: #fff; }
  .trial-close:hover { background: rgba(255,255,255,.2); }
  .trial-tab { padding: 9px 6px 14px; gap: 9px; border-radius: 14px 0 0 14px; }
  .tt-tile { width: 32px; height: 36px; border-radius: 8px; }
  .tt-tile b { font-size: 15px; }
  .tt-tile small { font-size: 7px; }
  .tt-text { font-size: 12.5px; }
  .to-tile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .trial-glow { animation: none; }
}

/* Free trial announcement bar: above the header at the top of the page, slides away on scroll.
   html.has-bar is set in each page's <head> (not claimed, not hidden in the last 7 days); html.bar-away while scrolled. */
:root { --bar-h: 0px; }
html.has-bar:not(.bar-away) { --bar-h: 42px; }
body.menu-open { --bar-h: 0px; }
.announce { display: none; }
html.has-bar body { padding-top: 42px; } /* fixed (not --bar-h) so nothing jumps when the bar slides away */
html.has-bar .announce { position: fixed; top: 0; left: 0; right: 0; z-index: 101; display: flex; align-items: center; height: 42px; padding-inline: var(--gutter); overflow: hidden; background: linear-gradient(90deg, #030b22, #0c2c66 50%, #030b22); color: #dfe9fb; transition: translate .55s var(--ease); }
html.has-bar.bar-away .announce, .menu-open .announce { translate: 0 -100%; }
.announce::after { content: ""; position: absolute; left: -100%; bottom: 0; width: 200%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,181,71,.9) 15%, rgba(94,240,255,.9) 35%, transparent 50%, rgba(255,181,71,.9) 65%, rgba(94,240,255,.9) 85%, transparent); animation: an-line 8s linear infinite; will-change: transform; }
@keyframes an-line { to { transform: translateX(50%); } } /* transform only: runs on the GPU, no repaints */
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex: 1; min-width: 0; padding-right: 30px; }
.an-tile { display: grid; place-items: center; flex: none; width: 24px; height: 26px; border-radius: 6px; background: linear-gradient(150deg, #ffcf7a, var(--flame) 55%, #f08a1c); color: #2a1600; font: 800 12.5px/1 var(--display); letter-spacing: -.03em; rotate: -6deg; box-shadow: 0 6px 14px -6px rgba(240,138,28,.9); }
.an-text { position: relative; height: 42px; min-width: 0; flex: 0 1 560px; margin: 0; overflow: hidden; }
.an-track, .an-msg { display: block; }
.an-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: pre; font-size: 14px; font-weight: 500; letter-spacing: .01em; color: #e3ecfb; pointer-events: none; }
.an-msg b { font-weight: 700; color: #fff; }
.an-msg b span { background: linear-gradient(100deg, #ffd48a, var(--flame)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.an-msg span[style] { display: inline-block; opacity: 0; translate: 0 110%; transition: opacity .5s ease, translate .7s var(--ease); transition-delay: calc(var(--w) * 45ms); }
.an-msg.on span[style] { opacity: 1; translate: 0 0; }
.an-msg.out span[style] { opacity: 0; translate: 0 -110%; transition-delay: calc(var(--w) * 25ms); }
.an-short { display: none; }
.an-cta { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 6px 13px 6px 15px; border-radius: 999px; background: linear-gradient(150deg, #ffcf7a, var(--flame) 60%, #f08a1c); color: #2a1600; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(240,138,28,.9); transition: translate .3s var(--ease), box-shadow .3s; }
.an-cta:hover { translate: 0 -1px; box-shadow: 0 12px 24px -10px rgba(240,138,28,1); }
.an-cta .i { width: 14px; height: 14px; stroke-width: 2.4; transition: translate .3s var(--ease); }
.an-cta:hover .i { translate: 3px 0; }
.an-cta-short { display: none; }
.an-close { position: absolute; right: calc(var(--gutter) - 10px); top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: #9fb4d6; cursor: pointer; transition: color .2s, background-color .2s; }
.an-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.an-close .i { width: 15px; height: 15px; }
@media (max-width: 760px) {
  html.has-bar:not(.bar-away) { --bar-h: 40px; }
  html.has-bar body { padding-top: 40px; }
  html.has-bar .announce { height: 40px; padding-inline: 12px 4px; }
  .announce-inner { justify-content: space-between; gap: 10px; padding-right: 30px; }
  .an-tile { display: none; }
  .an-text { height: 40px; flex: 1; }
  .an-msg { justify-content: flex-start; font-size: 12.5px; }
  .an-long { display: none; }
  .an-short { display: inline; }
  .an-cta { padding: 5px 10px 5px 12px; font-size: 12.5px; }
  .an-cta-long { display: none; }
  .an-cta-short { display: inline; }
  .an-close { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .announce::after { animation: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .an-msg.on span[style] { animation: an-in .75s var(--ease) both; animation-delay: calc(.35s + var(--w) * 45ms); }
  @keyframes an-in { from { opacity: 0; translate: 0 110%; } }
}

/* ---------- Privacy Policy and other text pages ---------- */
.legal { padding-block: clamp(56px, 7vw, 104px); }
.legal-body { max-width: 760px; }
.legal-updated { margin: 0 0 28px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.legal-body h2 { margin: 52px 0 14px; font: 650 clamp(24px, 2.4vw, 30px)/1.2 var(--display); letter-spacing: -.025em; color: var(--ink); }
.legal-body p, .legal-body li { color: #33425f; }
.legal-body p { margin: 0 0 16px; }
.legal-body ul { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.legal-body li { margin-bottom: 8px; }
.legal-body li::marker { color: var(--blue); }
.legal-body a, .form-note a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(10,111,214,.35); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.legal-body a:hover, .form-note a:hover { text-decoration-color: currentColor; }

/* optional marketing-emails consent box on the enquiry form: quiet, separate from the free trial box, never ticked by default */
.consent-opt { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-box { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 2px solid #b9c6dc; background: #fff; color: transparent; transition: background-color .25s, border-color .25s, color .25s; }
.co-box .i { width: 15px; height: 15px; stroke-width: 3; }
.consent-opt:hover .co-box { border-color: var(--blue); }
.consent-opt input:focus-visible + .co-box { box-shadow: 0 0 0 4px rgba(10,111,214,.25); border-color: var(--blue); }
.consent-opt input:checked + .co-box { background: var(--blue); border-color: var(--blue); color: #fff; }
.co-text small { font-size: 12.5px; color: var(--muted); }
