/* Fonts — self-hosted (Bricolage Grotesque, Caveat, Inter; SIL Open Font License). Latin + Latin-ext only. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin.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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin.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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin.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-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/caveat-latin.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: 700;
  font-display: swap;
  src: url(/fonts/caveat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/caveat-latin.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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-latin.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-latin.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-latin.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;
}

/* ZenEd — brand tokens pulled from the logo: deep forest + warm gold */
:root {
  --ink: #06120d;
  --forest: #0b2219;
  --forest-2: #10301f;
  --moss: #1b4630;
  --line: rgba(232, 214, 160, .14);
  --gold: #e9b949;
  --gold-2: #f7d98a;
  --cream: #f5efe2;
  --text: #e9e4d6;
  --muted: #a6b3a9;
  --mint: #7fd6ae;
  --sky: #8cc7f0;
  --red: #ff3b30;
  --radius: 22px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --hand: "Caveat", cursive;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.02em; color: var(--cream); }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
.muted { color: var(--muted); font-weight: 500; }
.hl-gold { background: linear-gradient(100deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.sec-head { margin-bottom: 48px; max-width: 720px; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sec-sub { color: var(--muted); font-size: 1.08rem; margin-top: 14px; max-width: 560px; }
.scribble { font-family: var(--hand); color: var(--gold-2); font-size: 1.7rem; line-height: 1.05; }
.link { color: var(--gold); border-bottom: 1px solid currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1405; box-shadow: 0 10px 30px -10px rgba(233, 185, 73, .6); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(233, 185, 73, .75); }
.btn-gold svg { transition: transform .25s; }
.btn-gold:hover svg { transform: translateX(3px); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 59, 48, .6); }
.btn-red:hover { transform: translateY(-2px); background: #ff5147; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); transition: border-color .2s, color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn.yt:hover { color: var(--red); border-color: var(--red); }

/* ---------- Tags / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(233, 185, 73, .08); border: 1px solid rgba(233, 185, 73, .25);
  font-size: .82rem; color: var(--gold-2); font-weight: 500;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(127, 214, 174, .2); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }
.tag-gold { background: rgba(233, 185, 73, .14); color: var(--gold-2); }
.tag-mint { background: rgba(127, 214, 174, .13); color: var(--mint); }
.tag-sky { background: rgba(140, 199, 240, .13); color: var(--sky); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6, 18, 13, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--cream); }
.brand img { border-radius: 50%; }
.brand b { color: var(--gold); }
.nav-links { display: flex; gap: 4px; }
.nav-links a:not(.btn) { padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--cream); background: rgba(255, 255, 255, .05); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta-mobile, .burger, .nav-links .nav-mobile-only { display: none; }
.nav-links a { white-space: nowrap; }
.burger { width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden;
  background:
    radial-gradient(60% 60% at 80% 40%, rgba(27, 70, 48, .9), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(233, 185, 73, .10), transparent 70%),
    var(--ink);
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.floaters span {
  position: absolute; left: var(--x); top: var(--y); font-family: var(--hand); font-size: 2.4rem; color: rgba(247, 217, 138, .22);
  animation: drift 12s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes drift { 50% { transform: translate(10px, -18px) rotate(6deg); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.6vw, 6.2rem); font-weight: 800; margin: 22px 0 24px; }
.hl { position: relative; display: inline-block; color: var(--gold); font-style: italic; }
.hl svg { position: absolute; left: 0; bottom: -.1em; width: 100%; height: .3em; overflow: visible; }
.hl path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.2s .6s forwards cubic-bezier(.6, 0, .2, 1); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.lede strong { color: var(--cream); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 44px; }
/* Fixed columns: the numbers can count up / swap fonts without moving their neighbours */
.hero-stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 9.5rem); gap: 20px; }
.hero-stats li { display: grid; }
.hero-stats b { font-family: var(--display); font-size: 2.1rem; color: var(--cream); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

.hero-visual { position: relative; justify-self: center; width: min(440px, 100%); }
.arch {
  aspect-ratio: 4 / 5; border-radius: 240px 240px 28px 28px; overflow: hidden; position: relative;
  border: 1.5px solid rgba(233, 185, 73, .5); box-shadow: var(--shadow), 0 0 0 10px rgba(233, 185, 73, .05);
}
.arch {
  background:
    radial-gradient(55% 45% at 50% 32%, rgba(233, 185, 73, .28), transparent 70%),
    radial-gradient(90% 70% at 50% 100%, var(--moss), transparent 75%),
    linear-gradient(180deg, var(--forest-2), var(--forest));
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(6, 18, 13, .55)); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: rgba(11, 34, 25, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; color: var(--cream); font-size: .95rem; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(233, 185, 73, .15); color: var(--gold); flex: none; }
.fc-1 { left: -44px; top: 18%; }
.fc-2 { right: -30px; bottom: 16%; animation-delay: -3s; }
.fc-3 { position: absolute; right: -20px; top: -6px; transform: rotate(-8deg); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 59, 48, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.marquee { background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); color: #1a1405; overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); margin: -12px -10px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: scroll 30s linear infinite; font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.marquee i { font-style: normal; opacity: .6; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin-top: 28px; flex-wrap: wrap; }
.tab { padding: 9px 18px; border-radius: 999px; font-size: .9rem; color: var(--muted); font-weight: 500; transition: background .25s, color .25s; }
.tab:hover { color: var(--cream); }
.tab.active { background: var(--cream); color: var(--ink); }

/* ---------- Courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.course {
  position: relative; padding: 30px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--forest-2), var(--forest)); border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s, opacity .35s;
  display: flex; flex-direction: column;
}
.course::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(233, 185, 73, .14), transparent 60%);
}
.course:hover { transform: translateY(-4px); border-color: rgba(233, 185, 73, .4); }
.course:hover::before { opacity: 1; }
.course.hide { display: none; }
.course-top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.num { font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--gold); margin-right: auto; }
.course h3 { font-size: 1.55rem; margin-bottom: 10px; }
.course p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; font-size: .95rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: rgba(127, 214, 174, .15); color: var(--mint); }
.course-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 20px; border-top: 1px dashed var(--line); }
.price { font-size: .88rem; color: var(--gold-2); font-weight: 500; }
.course-btns { display: flex; gap: 8px; }

/* ---------- Method ---------- */
.method { background: linear-gradient(180deg, var(--ink), var(--forest) 50%, var(--ink)); }
.loop { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.loop-steps { display: grid; gap: 12px; position: relative; padding-left: 22px; }
.loop-bar { position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--line); }
.loop-bar i { display: block; width: 100%; height: calc(var(--p, 25) * 1%); background: var(--gold); border-radius: 3px; transition: height .5s cubic-bezier(.6, 0, .2, 1); }
.step {
  text-align: left; display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 18px;
  font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--muted);
  border: 1px solid transparent; transition: all .3s;
}
.step span { font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--gold); opacity: .6; }
.step:hover { color: var(--cream); }
.step.active { color: var(--cream); background: rgba(255, 255, 255, .04); border-color: var(--line); }
.step.active span { opacity: 1; }
.loop-panel {
  border-radius: var(--radius); padding: 44px; position: relative; overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--forest-2);
  border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: end; min-height: 320px;
}
.loop-formula { font-family: var(--hand); font-size: 3rem; color: var(--gold-2); margin-bottom: auto; transform: rotate(-3deg); }
.loop-panel h3 { font-size: 2rem; margin: 30px 0 12px; }
.loop-panel p { color: var(--muted); font-size: 1.05rem; max-width: 460px; }
.loop-panel.swap > * { animation: fadeUp .5s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Classroom ---------- */
.player-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: end; margin-bottom: 36px; }
.player { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; filter: brightness(.8); }
.player-poster:hover img { transform: scale(1.03); filter: brightness(.95); }
.play-btn { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 0 0 12px rgba(255, 59, 48, .2); transition: transform .3s; }
.player-poster:hover .play-btn { transform: scale(1.08); }
.np-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.np-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
.now-playing h3 { font-size: 1.9rem; margin: 12px 0 16px; }
.np-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.vid-tabs { margin: 0 0 24px; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.vid { text-align: left; border-radius: 18px; overflow: hidden; background: var(--forest); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.vid:hover { transform: translateY(-4px); border-color: rgba(233, 185, 73, .4); }
.vid.playing { border-color: var(--red); }
.vid-thumb { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vid:hover .vid-thumb img { transform: scale(1.06); }
.vid-thumb::after { content: "▶"; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; font-size: .75rem; }
.vid.playing .vid-thumb::after { content: "●"; background: var(--red); }
.vid-body { padding: 14px 16px 18px; }
.vid-body h4, .vid-body .h4 { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--cream); margin-top: 8px; }

/* ---------- Banner ---------- */
.banner { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; margin: 0 16px; border-radius: 32px; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 0%; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 18, 13, .95) 0%, rgba(6, 18, 13, .75) 45%, rgba(6, 18, 13, .15) 100%); z-index: 1; }
.banner-copy { position: relative; z-index: 2; }
.banner h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 10px 0 30px; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--line); text-align: left; cursor: zoom-in; }
.pillar img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.pillar:hover img { transform: scale(1.06); }
.pillar-cap { position: absolute; inset: auto 0 0; padding: 60px 22px 22px; background: linear-gradient(180deg, transparent, rgba(6, 18, 13, .96) 55%); }
.pillar-cap h3 { margin-top: 10px; font-size: 1.25rem; }

/* ---------- Stories ---------- */
.stories { background: var(--forest); }
.car-ctrl { display: flex; gap: 10px; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: min(380px, 85%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.quote { scroll-snap-align: start; padding: 32px; border-radius: var(--radius); background: var(--ink); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: relative; }
.quote::before { content: "“"; position: absolute; top: -10px; right: 22px; font-family: var(--display); font-size: 7rem; color: rgba(233, 185, 73, .14); line-height: 1; }
.quote blockquote { font-size: 1.12rem; color: var(--cream); line-height: 1.55; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption b { display: block; color: var(--cream); font-size: .95rem; }
.quote figcaption small { color: var(--muted); font-size: .8rem; }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1405; flex: none; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about-img {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; border: 1.5px solid rgba(233, 185, 73, .4); transform: rotate(-2deg); box-shadow: var(--shadow); max-height: 640px;
  background:
    radial-gradient(55% 45% at 50% 30%, rgba(233, 185, 73, .26), transparent 70%),
    radial-gradient(90% 60% at 50% 100%, var(--moss), transparent 75%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, var(--forest-2), var(--forest));
}
.about-img img { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.about-tag { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border-radius: 16px; background: rgba(6, 18, 13, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.about-tag b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--cream); }
.about-tag span { font-size: .8rem; color: var(--gold-2); }
.role { color: var(--gold-2); font-weight: 500; margin: 14px 0 22px; }
.about-copy > p:not(.eyebrow):not(.role):not(.scribble) { color: var(--muted); margin-bottom: 14px; font-size: 1.05rem; }
.diff { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0; }
.diff li { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: .92rem; }
.sign { font-size: 2.2rem; }

/* ---------- Quiz ---------- */
.gym { background: radial-gradient(60% 80% at 50% 0%, var(--forest-2), var(--ink) 70%); }
.quiz { max-width: 780px; padding: clamp(24px, 5vw, 44px); border-radius: 28px; background: var(--forest); border: 1px solid var(--line); box-shadow: var(--shadow); }
.quiz-head { display: flex; align-items: center; gap: 16px; font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.quiz-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .4s; }
#qScore { color: var(--gold-2); font-weight: 600; }
.quiz h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 22px; line-height: 1.25; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-opt { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); text-align: left; font-weight: 500; transition: border-color .2s, background .2s, transform .2s; }
.q-opt:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-2px); }
.q-opt:disabled { cursor: default; }
.q-opt.right { border-color: var(--mint); background: rgba(127, 214, 174, .14); color: var(--mint); }
.q-opt.wrong { border-color: #ff7a70; background: rgba(255, 122, 112, .12); color: #ffb0a9; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.q-explain { min-height: 1.6em; margin: 18px 0; color: var(--muted); }
.quiz-actions { display: flex; justify-content: flex-end; }
.btn:disabled { opacity: .4; pointer-events: none; }
.quiz-done { text-align: center; }
.quiz-done .big { font-family: var(--display); font-size: 4.5rem; font-weight: 800; color: var(--gold); line-height: 1; }
.quiz-done p { color: var(--muted); margin: 12px 0 24px; }
.quiz-done .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: background .3s, border-color .3s; }
.faq details[open] { background: var(--forest); border-color: rgba(233, 185, 73, .3); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; color: var(--cream); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(233, 185, 73, .12); color: var(--gold); font-size: 1.2rem; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--ink), var(--forest)); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-copy h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.form { padding: clamp(22px, 4vw, 36px); border-radius: 28px; background: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: .85rem; font-weight: 500; color: var(--cream); }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--cream); background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field select option { background: var(--forest); }
.field input::placeholder, .field textarea::placeholder { color: rgba(166, 179, 169, .6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(233, 185, 73, .14); }
.field.invalid input, .field.invalid select { border-color: #ff7a70; }
.form-privacy { font-size: .78rem; color: var(--muted); text-align: center; margin-top: -6px; }
.form-note { font-size: .88rem; color: var(--mint); min-height: 1.3em; text-align: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--ink); }
.foot-inner { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-brand p { color: var(--muted); margin-top: 14px; max-width: 300px; font-size: .92rem; }
.foot-brand .tagline { letter-spacing: .3em; font-size: .7rem; text-transform: uppercase; color: var(--gold); }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h4, .foot-col .foot-h { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.foot-col a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.foot-col a:hover { color: var(--cream); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ---------- Lightbox / toast ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(520px, 92vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(3, 9, 6, .88); backdrop-filter: blur(6px); }
.lightbox img { max-height: 90vh; width: auto; border-radius: 18px; }
.lb-close { position: absolute; top: -14px; right: -14px; background: var(--cream); color: var(--ink); border: 0; z-index: 1; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; pointer-events: none; padding: 14px 22px; border-radius: 14px; background: var(--cream); color: var(--ink); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); transition: opacity .3s, translate .3s; z-index: 100; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1) var(--delay, 0s), transform .8s cubic-bezier(.2, .8, .2, 1) var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }
/* First screen: visible from the first frame (so Google counts it as loaded) — motion only, no fade-from-invisible */
.hero .reveal { opacity: 1; transform: none; transition: none; animation: heroRise .9s cubic-bezier(.2, .8, .2, 1) var(--delay, 0s) both; }
@keyframes heroRise { from { transform: translateY(18px); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; padding: 16px; gap: 4px;
    background: var(--ink); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(-12px); transition: transform .3s, opacity .3s, visibility .3s;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; }
  .nav-links a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; }
  .nav-cta-mobile { display: inline-flex; margin-top: 8px; }
  .nav-links .nav-mobile-only { display: block; }
  .nav-cta { display: none; }
  .burger { display: block; }
  .hero-inner, .loop, .player-wrap, .about-inner, .faq-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero-visual { width: min(360px, 82%); margin-top: 20px; }
  .fc-1 { left: -24px; }
  .fc-2 { right: -18px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .about-img { max-width: 420px; max-height: 560px; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .course-grid, .pillars, .q-opts, .diff, .field-row { grid-template-columns: 1fr; }
  .course { padding: 24px; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-stats b { font-size: 1.7rem; }
  .fc-3 { display: none; }
  .float-card { padding: 10px 12px; }
  .float-card small { display: none; }
  .step { font-size: 1.3rem; padding: 16px 18px; }
  .loop-panel { padding: 28px; min-height: 280px; }
  .banner { margin: 0 8px; min-height: 440px; }
  .banner::before { background: linear-gradient(180deg, rgba(6, 18, 13, .55), rgba(6, 18, 13, .95)); }
  .foot-inner { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1; }
}
/* ---------- Instagram / app download ---------- */
.icon-btn.ig:hover { color: #f472b6; border-color: #f472b6; }
.q-topic { margin-bottom: 12px; }
.app-card {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; overflow: hidden;
  padding: clamp(28px, 5vw, 56px); border-radius: 32px; border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 100% 0%, rgba(233, 185, 73, .16), transparent 60%), linear-gradient(160deg, var(--forest-2), var(--forest));
}
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 11px 22px 11px 16px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .22); transition: transform .25s, border-color .25s;
}
.store:hover { transform: translateY(-2px); border-color: var(--gold); }
.store span { display: grid; line-height: 1.15; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.store small { font-family: var(--body); font-weight: 500; font-size: .7rem; letter-spacing: .02em; opacity: .8; }
.ios-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.ios-code b { color: var(--cream); }
.code-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
  border: 1px dashed rgba(233, 185, 73, .6); background: rgba(233, 185, 73, .08); color: var(--gold-2);
  font-family: var(--display); font-weight: 800; letter-spacing: .12em; transition: background .2s;
}
.code-btn em { font-style: normal; font-family: var(--body); font-weight: 500; font-size: .75rem; letter-spacing: 0; color: var(--muted); }
.code-btn:hover { background: rgba(233, 185, 73, .16); }
.code-btn.copied em { color: var(--mint); }
.app-visual { justify-self: center; width: min(260px, 100%); aspect-ratio: 9 / 13; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); transform: rotate(4deg); box-shadow: var(--shadow); }
.app-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
@media (max-width: 980px) {
  .app-card { grid-template-columns: 1fr; }
  .app-visual { display: none; }
}

/* ---------- Privacy / terms / 404 pages ---------- */
.simple-page main { padding: 130px 0 80px; min-height: 70vh; }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; }
.legal .updated { color: var(--muted); margin: 10px 0 32px; font-size: .9rem; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--text); opacity: .9; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin: 10px 0; }
.legal b { color: var(--cream); }
.foot-legal { display: flex; gap: 8px; align-items: center; }
.notfound { text-align: center; display: grid; justify-items: center; }
.nf-num { font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 26vw, 12rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--gold); letter-spacing: -.04em; }
.nf-num span { color: var(--gold); -webkit-text-stroke: 0; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 6px 0 4px; }
.notfound .sec-sub { margin-inline: auto; }
.nf-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 30px 0 26px; }
.nf-hint { color: var(--muted); font-size: .9rem; }

/* ---------- CUET & IPMAT links on the main page ---------- */
.nav-links a.nav-hot { color: var(--gold-2); }
.promo {
  display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 22px; border-radius: 20px;
  border: 1px solid rgba(233, 185, 73, .35); background: linear-gradient(90deg, rgba(233, 185, 73, .12), rgba(233, 185, 73, .03));
  transition: border-color .25s, transform .25s;
}
.promo:hover { border-color: var(--gold); transform: translateY(-2px); }
.promo-badge { flex: none; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--gold); color: #1a1405; }
.promo-text { color: var(--muted); }
.promo-text b { color: var(--cream); }
.promo-go { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold-2); }
@media (max-width: 640px) { .promo { flex-wrap: wrap; } .promo-go { margin-left: 0; } }

/* ---------- CAT results (About) ---------- */
.cat-card { margin: 26px 0 6px; padding: 20px 22px; border-radius: 20px; border: 1px solid rgba(233, 185, 73, .3);
  background: radial-gradient(80% 120% at 100% 0%, rgba(233, 185, 73, .14), transparent 60%), var(--forest); }
.cat-label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.cat-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.cat-score { flex: 1; text-align: center; padding: 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.cat-score b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--cream); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cat-score span { font-size: .72rem; color: var(--muted); }
.cat-score.best { border-color: var(--gold); background: rgba(233, 185, 73, .1); }
.cat-score.best b { color: var(--gold); }
.cat-arrow { font-style: normal; color: var(--gold); opacity: .7; font-size: 1.1rem; }
.cat-note { font-size: .78rem; color: var(--muted); margin-top: 8px; text-align: center; }
.cat-qa { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); color: #1a1405; }
.cat-qa b { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cat-qa span { font-size: .95rem; font-weight: 500; }
.cat-qa strong { font-weight: 700; }
.cat-card.go .cat-score, .cat-card.go .cat-qa { animation: catPop .6s cubic-bezier(.3, 1.5, .5, 1) both; }
.cat-card.go .cat-score:nth-child(3) { animation-delay: .12s; }
.cat-card.go .cat-score:nth-child(5) { animation-delay: .24s; }
.cat-card.go .cat-qa { animation-delay: .4s; }
@keyframes catPop { from { transform: translateY(12px) scale(.92); opacity: .4; } }
@media (max-width: 640px) {
  .cat-row { gap: 6px; }
  .cat-arrow { display: none; }
  .cat-score span { font-size: .66rem; }
}

/* ---------- Phone layout: swipe rows, compact sections, bottom bar ---------- */
.mbar, .rail-dots { display: none; }
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 28px; }
  h2 { font-size: clamp(1.9rem, 8.5vw, 2.3rem); }
  .sec-sub { font-size: 1rem; margin-top: 10px; }
  .tabs { margin-top: 20px; }

  /* Hero: shorter, photo reached sooner */
  .hero { min-height: 0; padding: 92px 0 44px; }
  .hero-inner { gap: 28px; }
  .hero h1 { font-size: clamp(2.6rem, 12.5vw, 3.3rem); margin: 16px 0 16px; }
  .chip { font-size: .74rem; padding: 7px 12px; }
  .lede { font-size: 1rem; }
  .hero-ctas { margin: 24px 0 28px; gap: 10px; }
  .hero-visual { width: min(300px, 82%); margin-top: 0; }
  .floaters { display: none; }
  .float-card { animation: none; }
  .fc-1 { top: auto; bottom: 30%; left: -18px; }
  .fc-2 { bottom: 7%; }

  /* Swipe rows */
  .rail {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%;
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -16px; padding: 4px 16px 6px; scroll-padding: 0 16px; scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  .vid-grid.rail { grid-auto-columns: 74%; }
  .pillars.rail { grid-auto-columns: 72%; }
  .course:hover, .vid:hover { transform: none; }
  .rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
  .rail-dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--line); transition: width .3s, background .3s; }
  .rail-dots i.on { width: 20px; background: var(--gold); }

  .chips-scroll { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .chips-scroll::-webkit-scrollbar { display: none; }
  .chips-scroll .tab { flex: none; }

  /* Method: one row of tabs above the panel */
  .loop { gap: 22px; }
  .loop-steps { grid-template-columns: repeat(4, 1fr); padding: 0 0 12px; gap: 6px; }
  .loop-bar { inset: auto 0 0 0; width: auto; height: 3px; }
  .loop-bar i { width: calc(var(--p, 25) * 1%); height: 100%; transition: width .5s cubic-bezier(.6, 0, .2, 1); }
  .step { flex-direction: column; align-items: center; gap: 2px; padding: 12px 2px; font-size: .95rem; text-align: center; }
  .step span { font-size: .62rem; }
  .loop-panel { min-height: 230px; padding: 24px; }
  .loop-formula { font-size: 2.1rem; }
  .loop-panel h3 { font-size: 1.45rem; margin: 18px 0 8px; }
  .loop-panel p { font-size: .98rem; }

  /* Classroom */
  .player-wrap { gap: 16px; margin-bottom: 24px; }
  .now-playing h3 { font-size: 1.3rem; margin: 8px 0 12px; }
  .play-btn { width: 64px; height: 64px; }
  .sec-head.row .btn-red { width: 100%; }

  .banner { min-height: 380px; border-radius: 24px; }
  .stores .store { flex: 1 1 150px; justify-content: center; }
  .nav-actions { gap: 6px; }
  .carousel { grid-auto-columns: 86%; }
  .quote { padding: 24px; }
  .about-inner { gap: 32px; }
  .about-img { transform: none; max-height: 440px; }
  .faq-inner, .contact-inner { gap: 32px; }

  /* Sticky bottom bar */
  .mbar {
    display: flex; gap: 8px; position: fixed; z-index: 40; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom)); padding: 8px; border-radius: 999px;
    background: rgba(6, 18, 13, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(160%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  }
  .mbar.show { transform: none; }
  .mbar .btn { flex: 1; padding: 12px 10px; font-size: .9rem; }
  .footer { padding-bottom: 96px; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hl path { stroke-dashoffset: 0; }
}

/* ---------- Applied Maths guide (/applied-maths) ---------- */
.guide { max-width: 860px; padding: 120px 0 80px; }
.guide h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); font-weight: 800; margin: 6px 0 14px; }
.guide h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 56px 0 14px; }
.guide h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.guide p, .guide li, .guide td, .guide dd { color: var(--text); }
.guide p + p { margin-top: 12px; }
.guide b { color: var(--cream); }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--gold-2); }
.crumbs span { margin: 0 4px; }
.byline { color: var(--muted); font-size: .92rem; }
.byline a { color: var(--gold-2); border-bottom: 1px solid currentColor; }
.tldr { margin-top: 30px; padding: 22px 24px; border-radius: 20px; border: 1px solid rgba(233, 185, 73, .35); background: radial-gradient(80% 120% at 100% 0%, rgba(233, 185, 73, .1), transparent 60%), var(--forest); }
.tldr h2 { margin: 0 0 12px; font-size: 1.2rem; }
.tldr dl { display: grid; gap: 10px; }
.tldr dl div { display: grid; grid-template-columns: 210px 1fr; gap: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.tldr dl div:first-child { border-top: 0; padding-top: 0; }
.tldr dt { color: var(--gold-2); font-weight: 600; font-size: .92rem; }
.tldr dd { margin: 0; font-size: .95rem; }
.table-wrap { overflow-x: auto; margin: 14px 0; border-radius: 16px; border: 1px solid var(--line); }
.guide table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .92rem; }
.guide th, .guide td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide thead th { background: var(--forest-2); color: var(--gold-2); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.guide tbody th { color: var(--cream); font-weight: 600; width: 34%; }
.syl td:last-child, .syl th:last-child { text-align: right; width: 64px; font-family: var(--display); font-weight: 800; color: var(--gold-2); }
.syl tr.hot { background: rgba(233, 185, 73, .07); }
.syl tr.total th, .syl tr.total td { color: var(--muted); border-bottom: 0; }
.syl tr.total td:last-child { color: var(--gold); }
.note { font-size: .85rem; color: var(--muted) !important; }
.steps-list { padding-left: 22px; display: grid; gap: 10px; }
.cta-inline { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.vid-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.vid-links a { display: grid; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--forest); transition: border-color .2s, transform .2s; }
.vid-links a:hover { border-color: rgba(233, 185, 73, .5); transform: translateY(-2px); }
.vid-links img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.vid-links span { display: grid; gap: 2px; padding: 10px 12px 12px; }
.vid-links b { font-size: .92rem; line-height: 1.3; }
.vid-links small { color: var(--muted); font-size: .76rem; }
.teacher { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; margin-top: 56px; padding: 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--forest); }
.teacher img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); background: linear-gradient(180deg, var(--forest-2), var(--forest)); }
.teacher h2 { margin-top: 0; }
.teacher blockquote { margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, .03); border-radius: 0 12px 12px 0; color: var(--cream); font-size: .95rem; }
.teacher cite { display: block; margin-top: 4px; font-style: normal; color: var(--muted); font-size: .8rem; }
.guide .faq { margin-top: 10px; }
@media (max-width: 640px) {
  .guide { padding-top: 100px; }
  .tldr dl div { grid-template-columns: 1fr; gap: 2px; }
  .teacher { grid-template-columns: 1fr; justify-items: start; }
  .teacher img { width: 110px; height: 110px; }
}
