/* ============================================
   MENTOREA — Design tokens
   ============================================ */
:root {
  --paper: #FBF8F2;
  --paper-dim: #F3EEE3;
  --ink: #161C36;
  --ink-soft: #4A5178;
  --ink-faint: #8489A6;
  --navy-deep: #0D1226;
  --gold: #BE8A2E;
  --gold-bright: #DDA83F;
  --green: #2E6A4A;
  --green-soft: #E4EEE7;
  --line: #E3DCC9;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 3px;
  --max-width: 1180px;
}

html[data-theme="dark"] {
  --paper: #12162A;
  --paper-dim: #191E36;
  --ink: #EDEBE3;
  --ink-soft: #B7BAD4;
  --ink-faint: #7C82A6;
  --navy-deep: #060812;
  --gold: #DDA83F;
  --gold-bright: #F0C169;
  --green: #4C9670;
  --green-soft: #16281F;
  --line: #2A2F4C;
  --white: #1B2038;
}
html[data-theme="dark"] .founder-photo { border-color: var(--line); }
html[data-theme="dark"] img { filter: brightness(0.92); }
html[data-theme="dark"] .btn-primary { color: var(--navy-deep); }

.theme-toggle {
  background: none;
  border: 1.5px solid var(--line);
  color: var(--ink);
  border-radius: 20px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.theme-toggle:hover { border-color: var(--gold); }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 500; }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 600;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--navy-deep); }

.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-bright); }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo .mark { color: var(--gold); }
nav.links {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}
nav.links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s;
  position: relative;
}
nav.links a:hover, nav.links a.active { color: var(--ink); }
nav.links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--gold);
}
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 780px) {
  nav.links { position: fixed; inset: 68px 0 0 0; background: var(--paper); flex-direction: column; padding: 36px 32px; gap: 26px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  nav.links.open { transform: translateX(0); }
  nav.links a { font-size: 1.1rem; }
  .nav-toggle { display: block; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 70px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.hero h1 { margin: 18px 0 22px; }
.hero .lede { margin-bottom: 8px; }

/* Ascending bars — signature motif (grade progression / growth) */
.ascend {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 220px;
  padding: 0 6px;
}
.ascend .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 3px 3px 0 0;
  position: relative;
  animation: rise 1.1s cubic-bezier(.2,.8,.2,1) backwards;
}
.ascend .bar:nth-child(1) { height: 28%; animation-delay: 0.05s; background: linear-gradient(180deg, #C9C2AE, #B7AF97); }
.ascend .bar:nth-child(2) { height: 46%; animation-delay: 0.15s; background: linear-gradient(180deg, #C9C2AE, #B7AF97); }
.ascend .bar:nth-child(3) { height: 62%; animation-delay: 0.25s; }
.ascend .bar:nth-child(4) { height: 78%; animation-delay: 0.35s; }
.ascend .bar:nth-child(5) { height: 100%; animation-delay: 0.45s; }
.ascend .bar .lbl {
  position: absolute;
  top: -26px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.ascend .bar:nth-child(4) .lbl, .ascend .bar:nth-child(5) .lbl { color: var(--gold); font-weight: 600; }
@keyframes rise { from { transform: scaleY(0); transform-origin: bottom; opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.ascend-caption { text-align: center; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint); margin-top: 14px; letter-spacing: 0.03em; }

/* ---------- Stat band ---------- */
.stats {
  background: var(--navy-deep);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 820px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat .num {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--gold-bright);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.stat .label {
  color: rgba(255,255,255,0.68);
  font-size: 0.88rem;
  margin-top: 6px;
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--paper-dim); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 820px) { .card-grid { grid-template-columns: 1fr; } }

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid-3 { grid-template-columns: 1fr; } }

.prog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.prog-card .eyebrow { margin-bottom: 12px; }
.prog-card h3 { font-size: 1.7rem; margin-bottom: 14px; }
.prog-card p { flex-grow: 1; }
.prog-card .btn { align-self: flex-start; margin-top: 18px; }

/* ---------- Quote / story ---------- */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding-left: 28px;
  margin: 40px 0;
}
.pull-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 16px;
  letter-spacing: 0.02em;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }

.timeline { border-left: 1.5px solid var(--line); padding-left: 28px; display: flex; flex-direction: column; gap: 30px; }
.timeline .item { position: relative; }
.timeline .item::before {
  content: "";
  position: absolute;
  left: -33px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline .year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); font-weight: 600; letter-spacing: 0.04em; }
.timeline h4 { margin: 4px 0 6px; font-size: 1.1rem; }
.timeline p { margin: 0; font-size: 0.96rem; }

/* ---------- Success stories ---------- */
.result-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.result-jump {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.grade-from, .grade-to {
  font-size: 2rem;
  font-weight: 600;
}
.grade-from { color: var(--ink-faint); }
.grade-to { color: var(--green); }
.arrow { color: var(--ink-faint); font-size: 1.3rem; }
.result-card p { font-size: 0.94rem; margin: 0; }
.result-card .subject { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 10px; }

/* ---------- Mentor firms strip ---------- */
.firms-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}
.firms-strip .cap {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
  text-align: center;
}
.firms-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px;
}
.form-card h3 { margin-bottom: 6px; }
.form-card .form-sub { margin-bottom: 28px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field .hint { font-size: 0.8rem; color: var(--ink-faint); font-weight: 400; margin-left: 4px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-option {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line);
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.92rem;
}
.radio-option input { width: auto; }

.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 16px; }

/* Tabs for Sign Up page */
.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--paper-dim);
  padding: 5px;
  border-radius: var(--radius);
  width: fit-content;
}
.tab-btn {
  padding: 11px 22px;
  border: none;
  background: transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.tab-btn.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Donation callout ---------- */
.donate-band {
  background: var(--green-soft);
  border: 1px solid #C9DBCE;
  border-radius: var(--radius);
  padding: 42px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 760px) { .donate-band { grid-template-columns: 1fr; } }
.donate-band h3 { color: var(--green); }
.give-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 22px; flex-wrap: wrap; }
.give-list li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--green);
  background: var(--white);
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #C9DBCE;
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 34px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 44px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); font-weight: 600; margin-bottom: 16px; }
.footer-grid a { display: block; text-decoration: none; color: rgba(255,255,255,0.65); font-size: 0.94rem; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page hero (non-home) ---------- */
.page-hero { padding: 60px 0 20px; }
.page-hero .eyebrow { display: block; margin-bottom: 16px; }
.page-hero .lede { margin-top: 18px; }

/* eligibility callout */
.eligibility-box {
  background: #FBF3E4;
  border: 1px solid #EAD3A0;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 26px;
}
.eligibility-box .eyebrow { color: var(--gold); margin-bottom: 8px; display: block; }
.eligibility-box p { margin: 0; color: var(--ink); font-size: 0.94rem; }
.eligibility-box ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink); font-size: 0.94rem; }
.eligibility-box li { margin-bottom: 4px; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: opacity 0.6s cubic-bezier(.2,.7,.3,1), transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(22,28,54,0.09); border-color: var(--gold); }
.testimonial-card.expanded { border-color: var(--gold); box-shadow: 0 14px 30px rgba(22,28,54,0.09); }
.testimonial-card .expand-hint { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); margin-top: 14px; }
.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.testimonial-card p.quote { color: var(--ink); font-size: 1.02rem; flex-grow: 1; margin-bottom: 20px; }
.testimonial-card .who { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 14px; }
.testimonial-card .who .name { font-weight: 600; color: var(--ink); }
.testimonial-card .who .role { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); margin-top: 2px; }

/* ---------- Steps / How it works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
}
.step-card .step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.step-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.92rem; margin: 0; }

/* ---------- Subject sections (GCSE / A-level) ---------- */
.subject-block {
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--line);
}
.subject-block.gcse { background: var(--paper-dim); }
.subject-block.alevel { background: var(--navy-deep); color: var(--white); }
.subject-block.alevel h3, .subject-block.alevel .eyebrow { color: var(--white); }
.subject-block.alevel .eyebrow { color: var(--gold-bright); }
.subject-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.subject-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}
.subject-block.alevel .subject-tag { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: var(--white); }

/* ---------- Stat highlight banner ---------- */
.stat-highlight {
  background: var(--gold);
  border-radius: var(--radius);
  padding: 46px 40px;
  text-align: center;
}
.stat-highlight p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--white);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- Fields grid (About) ---------- */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 820px) { .fields-grid { grid-template-columns: repeat(2, 1fr); } }
.field-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.field-card .count { font-family: var(--font-mono); color: var(--gold); font-weight: 600; font-size: 1.1rem; }
.field-card .name { margin-top: 6px; font-weight: 600; }

/* ---------- Quiz ---------- */
.quiz-block {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin-bottom: 22px;
}
.quiz-block .eyebrow { display: block; margin-bottom: 6px; }
.quiz-block > p { margin-bottom: 20px; font-size: 0.92rem; }
.quiz-q { margin-bottom: 22px; }
.quiz-q:last-child { margin-bottom: 0; }
.quiz-q .q-text { font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; color: var(--ink); }
.quiz-q .radio-group { flex-direction: column; align-items: flex-start; gap: 10px; }
.quiz-q .radio-option { width: 100%; }

/* ---------- Founder photo frame ---------- */
.founder-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.founder-photo img { width: 100%; height: auto; display: block; }
.founder-photo-cap {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
  margin-top: 10px;
  text-align: center;
}

/* ---------- Priority note ---------- */
.priority-note {
  background: #FBF3E4;
  border: 1px solid #EAD3A0;
  border-radius: var(--radius);
  padding: 20px 24px;
}
.priority-note p { margin: 0; color: var(--ink); font-size: 0.94rem; }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow, .page-hero .eyebrow { animation: fadeInUp 0.65s ease both; }
.hero h1, .page-hero h1 { animation: fadeInUp 0.65s ease 0.10s both; }
.hero .lede, .page-hero .lede { animation: fadeInUp 0.65s ease 0.20s both; }
.hero .btn-row, .page-hero .btn-row { animation: fadeInUp 0.65s ease 0.30s both; }

.logo .mark {
  display: inline-block;
  animation: dotPulse 2.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

/* Scroll-reveal targets */
.prog-card, .testimonial-card, .step-card, .field-card, .result-card,
.stat, .timeline .item, .quiz-block, .donate-band, .stat-highlight,
.subject-block, .form-card, .founder-photo {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(.2,.7,.3,1), transform 0.6s cubic-bezier(.2,.7,.3,1),
              box-shadow 0.25s ease, border-color 0.25s ease;
}
.prog-card.in-view, .testimonial-card.in-view, .step-card.in-view, .field-card.in-view,
.result-card.in-view, .stat.in-view, .timeline .item.in-view, .quiz-block.in-view,
.donate-band.in-view, .stat-highlight.in-view, .subject-block.in-view,
.form-card.in-view, .founder-photo.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within a grid */
.card-grid > *:nth-child(1), .steps-grid > *:nth-child(1), .fields-grid > *:nth-child(1), .stats-grid > *:nth-child(1) { transition-delay: 0s; }
.card-grid > *:nth-child(2), .steps-grid > *:nth-child(2), .fields-grid > *:nth-child(2), .stats-grid > *:nth-child(2) { transition-delay: 0.08s; }
.card-grid > *:nth-child(3), .steps-grid > *:nth-child(3), .fields-grid > *:nth-child(3), .stats-grid > *:nth-child(3) { transition-delay: 0.16s; }
.card-grid > *:nth-child(4), .steps-grid > *:nth-child(4), .fields-grid > *:nth-child(4), .stats-grid > *:nth-child(4) { transition-delay: 0.24s; }

/* Hover lift for interactive cards */
.prog-card:hover, .testimonial-card:hover, .step-card:hover, .result-card:hover,
.field-card:hover, .subject-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(22, 28, 54, 0.09);
  border-color: var(--gold);
}
.subject-block.alevel:hover { border-color: var(--gold-bright); }

@media (prefers-reduced-motion: reduce) {
  .growth-anim .trunk, .growth-anim .branch, .journey-anim .route-fill {
    stroke-dashoffset: 0 !important;
  }
  .door-anim .door { transform: rotateY(55deg) scaleX(0.6) !important; }
  .prog-card, .testimonial-card, .step-card, .field-card, .result-card,
  .stat, .timeline .item, .quiz-block, .donate-band, .stat-highlight,
  .subject-block, .form-card, .founder-photo, .explainer-step,
  .growth-anim .trunk, .growth-anim .branch, .growth-anim .leaf, .growth-anim .leaf-label,
  .network-anim .link, .network-anim .node,
  .journey-anim .route-fill, .journey-anim .stop-fill,
  .puzzle-anim .puzzle-piece,
  .particle-anim .p-dot, .particle-anim .p-center,
  .door-anim .door, .door-anim .glow,
  .hero .eyebrow, .hero h1, .hero .lede, .hero .btn-row,
  .page-hero .eyebrow, .page-hero h1, .page-hero .lede, .page-hero .btn-row {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .logo .mark { animation: none !important; }
}

/* ---------- Animated explainer panel (stand-in for video) ---------- */
.explainer-panel {
  background: var(--navy-deep);
  border-radius: var(--radius);
  padding: 56px 48px;
  color: var(--white);
}
@media (max-width: 700px) { .explainer-panel { padding: 40px 26px; } }
.explainer-panel .eyebrow { color: var(--gold-bright); }
.explainer-panel h2 { color: var(--white); margin: 12px 0 32px; }
.explainer-steps { display: flex; flex-direction: column; gap: 22px; }
.explainer-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.explainer-step.in-view { opacity: 1; transform: translateX(0); }
.explainer-step .num {
  font-family: var(--font-mono);
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
  width: 28px;
  padding-top: 3px;
}
.explainer-step p { color: rgba(255,255,255,0.82); margin: 0; font-size: 1.02rem; }
.explainer-step strong { color: var(--white); }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question .icon {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 4px;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 4px 22px; }
.faq-answer p { margin: 0; font-size: 0.94rem; }

/* ---------- Ask Mentorea widget ---------- */
.ask-widget {
  background: var(--navy-deep);
  border-radius: var(--radius);
  padding: 40px;
  color: var(--white);
}
@media (max-width: 700px) { .ask-widget { padding: 28px 22px; } }
.ask-widget .eyebrow { color: var(--gold-bright); }
.ask-widget h2 { color: var(--white); margin: 12px 0 8px; }
.ask-widget .sub { color: rgba(255,255,255,0.65); font-size: 0.92rem; margin-bottom: 24px; }
.ask-input-row { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.ask-input-row input {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.ask-input-row input::placeholder { color: rgba(255,255,255,0.4); }
.ask-input-row input:focus { outline: none; border-color: var(--gold); }
.ask-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ask-suggestion-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 7px 13px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
}
.ask-suggestion-chip:hover { background: rgba(255,255,255,0.14); }
.ask-response {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: none;
}
.ask-response.show { display: block; }
.ask-response .q { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold-bright); margin-bottom: 10px; }
.ask-response .a { color: rgba(255,255,255,0.9); font-size: 0.96rem; line-height: 1.6; }
.ask-disclaimer { font-size: 0.76rem; color: rgba(255,255,255,0.4); margin-top: 16px; }

/* ---------- Career Explorer ---------- */
.career-cards { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.career-tab-btn {
  padding: 16px 26px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.career-tab-btn:hover { border-color: var(--gold); color: var(--ink); }
.career-tab-btn.active { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }

.career-detail { display: none; }
.career-detail.active { display: block; }
.career-detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
@media (max-width: 700px) { .career-detail-card { padding: 26px 22px; } }

.pathway {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 28px 0;
  flex-wrap: wrap;
}
.pathway-step {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  white-space: nowrap;
}
.pathway-arrow {
  color: var(--gold);
  font-size: 1.2rem;
  padding: 0 12px;
}

/* ---------- Start Here selector ---------- */
.start-here-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 780px) { .start-here-grid { grid-template-columns: 1fr; } }
.start-here-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.start-here-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(22,28,54,0.08); }
.start-here-card .emoji { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.start-here-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.start-here-card p { font-size: 0.88rem; margin: 0; }

/* ---------- Why Mentorea clicker ---------- */
.why-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.why-tab-btn {
  padding: 12px 22px;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.why-tab-btn.active { background: var(--gold); border-color: var(--gold); color: var(--white); }
.why-panel { display: none; }
.why-panel.active { display: block; }

/* ---------- Newsletter ---------- */
.newsletter-box {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.newsletter-box .text { flex: 1; min-width: 220px; }
.newsletter-box form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-box input {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  min-width: 220px;
}

/* ============================================
   Curated animated motifs
   ============================================ */

/* Growth: seed into tree with branches */
.growth-anim { width: 100%; max-width: 340px; margin: 0 auto; }
.growth-anim .trunk { stroke: var(--gold); stroke-width: 4; fill: none; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.4s ease; }
.growth-anim.in-view .trunk { stroke-dashoffset: 0; }
.growth-anim .branch { stroke: var(--gold-bright); stroke-width: 2.5; fill: none; stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1s ease; }
.growth-anim.in-view .branch { stroke-dashoffset: 0; }
.growth-anim .branch:nth-child(3) { transition-delay: 0.6s; }
.growth-anim .branch:nth-child(4) { transition-delay: 0.8s; }
.growth-anim .branch:nth-child(5) { transition-delay: 1.0s; }
.growth-anim .branch:nth-child(6) { transition-delay: 1.2s; }
.growth-anim .leaf { opacity: 0; transform: scale(0); transform-origin: center; transition: opacity 0.5s ease, transform 0.5s ease; }
.growth-anim.in-view .leaf { opacity: 1; transform: scale(1); }
.growth-anim .leaf:nth-child(7) { transition-delay: 1.1s; }
.growth-anim .leaf:nth-child(8) { transition-delay: 1.3s; }
.growth-anim .leaf:nth-child(9) { transition-delay: 1.5s; }
.growth-anim .leaf:nth-child(10) { transition-delay: 1.7s; }
.growth-anim .leaf-label { font-family: var(--font-mono); font-size: 9px; fill: var(--ink-soft); opacity: 0; transition: opacity 0.5s ease 1.9s; }
.growth-anim.in-view .leaf-label { opacity: 1; }

/* Network: nodes connecting */
.network-anim { width: 100%; max-width: 380px; margin: 0 auto; }
.network-anim .link { stroke: var(--gold); stroke-width: 1.5; opacity: 0; transition: opacity 0.8s ease; }
.network-anim.in-view .link { opacity: 0.5; }
.network-anim .node { fill: var(--navy-deep); stroke: var(--gold); stroke-width: 2; opacity: 0; transform: scale(0); transform-origin: center; transition: opacity 0.5s ease, transform 0.5s ease; }
.network-anim.in-view .node { opacity: 1; transform: scale(1); }
.network-anim .node:nth-of-type(1) { transition-delay: 0s; }
.network-anim .node:nth-of-type(2) { transition-delay: 0.15s; }
.network-anim .node:nth-of-type(3) { transition-delay: 0.3s; }
.network-anim .node:nth-of-type(4) { transition-delay: 0.45s; }
.network-anim .node:nth-of-type(5) { transition-delay: 0.6s; }
.network-anim .node:nth-of-type(6) { transition-delay: 0.75s; }
.network-anim .node:nth-of-type(7) { transition-delay: 0.9s; }
html[data-theme="dark"] .network-anim .node { fill: var(--white); }

/* Pathway: journey with moving marker */
.journey-anim { width: 100%; }
.journey-anim .route { stroke: var(--line); stroke-width: 3; fill: none; }
.journey-anim .route-fill { stroke: var(--gold); stroke-width: 3; fill: none; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.2s ease; }
.journey-anim.in-view .route-fill { stroke-dashoffset: 0; }
.journey-anim .stop { fill: var(--white); stroke: var(--line); stroke-width: 2; }
.journey-anim .stop-fill { fill: var(--gold); opacity: 0; transition: opacity 0.4s ease; }
.journey-anim.in-view .stop-fill { opacity: 1; }
.journey-anim .stop-fill:nth-of-type(1) { transition-delay: 0.1s; }
.journey-anim .stop-fill:nth-of-type(2) { transition-delay: 0.7s; }
.journey-anim .stop-fill:nth-of-type(3) { transition-delay: 1.3s; }
.journey-anim .stop-fill:nth-of-type(4) { transition-delay: 1.9s; }
.journey-anim .stop-label { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-soft); }

/* Puzzle pieces connecting */
.puzzle-anim { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.puzzle-piece {
  opacity: 0; transform: translateY(16px) scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
  background: var(--white); border: 1.5px solid var(--gold);
  border-radius: var(--radius); padding: 16px 20px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink);
  text-align: center; min-width: 110px;
}
.puzzle-anim.in-view .puzzle-piece { opacity: 1; transform: translateY(0) scale(1); }
.puzzle-anim.in-view .puzzle-piece:nth-child(1) { transition-delay: 0s; }
.puzzle-anim.in-view .puzzle-piece:nth-child(2) { transition-delay: 0.15s; }
.puzzle-anim.in-view .puzzle-piece:nth-child(3) { transition-delay: 0.3s; }
.puzzle-anim.in-view .puzzle-piece:nth-child(4) { transition-delay: 0.45s; }

/* Particles forming logo mark */
.particle-anim { position: relative; width: 100%; height: 140px; display: flex; align-items: center; justify-content: center; }
.particle-anim .p-dot {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  opacity: 0; transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.particle-anim.in-view .p-dot { opacity: 0.9; transform: translate(0, 0) !important; }
.particle-anim .p-center { font-family: var(--font-display); font-size: 2.2rem; color: var(--ink); opacity: 0; transition: opacity 0.6s ease 1.1s; }
.particle-anim.in-view .p-center { opacity: 1; }

/* Door opening */
.door-anim { width: 100%; max-width: 260px; margin: 0 auto; }
.door-anim .door { transform-origin: left center; transition: transform 1s cubic-bezier(.3,.8,.3,1); }
.door-anim.in-view .door { transform: rotateY(55deg) scaleX(0.6); }
.door-anim .glow { opacity: 0; transition: opacity 0.8s ease 0.5s; }
.door-anim.in-view .glow { opacity: 1; }

.anim-caption { text-align: center; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-faint); margin-top: 14px; letter-spacing: 0.02em; }

/* ---------- Auth pages (student/mentor login + dashboard) ---------- */
.auth-shell { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.auth-card { max-width: 420px; width: 100%; }
.auth-tabs { display: flex; gap: 4px; background: var(--paper-dim); padding: 5px; border-radius: var(--radius); margin-bottom: 24px; }
.auth-tab-btn { flex: 1; padding: 10px; border: none; background: transparent; border-radius: 2px; font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); cursor: pointer; }
.auth-tab-btn.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.auth-error { color: #B03434; font-size: 0.85rem; margin-top: 10px; display: none; }
.auth-error.show { display: block; }

.dash-header { background: var(--navy-deep); padding: 60px 0 40px; color: var(--white); }
.dash-header h1 { color: var(--white); }
.dash-header .sub { color: rgba(255,255,255,0.65); margin-top: 8px; }
.dash-header .logout-link { color: rgba(255,255,255,0.6); font-family: var(--font-mono); font-size: 0.8rem; text-decoration: none; }
.dash-header .logout-link:hover { color: var(--white); }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 800px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px;
}
.dash-card h3 { margin-bottom: 14px; }

.progress-tracker { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.progress-step {
  flex: 1; min-width: 60px; text-align: center; padding: 10px 6px;
  border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.72rem;
  background: var(--paper-dim); color: var(--ink-faint); border: 1px solid var(--line);
}
.progress-step.done { background: var(--gold); color: var(--white); border-color: var(--gold); }
.progress-step.current { border-color: var(--gold); color: var(--ink); font-weight: 600; }

.goal-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.goal-item:last-child { border-bottom: none; }
.goal-item.completed .goal-text { text-decoration: line-through; color: var(--ink-faint); }
.goal-text { flex: 1; font-size: 0.92rem; }
.goal-add-row { display: flex; gap: 8px; margin-top: 16px; }
.goal-add-row input { flex: 1; padding: 10px 14px; border-radius: var(--radius); border: 1.5px solid var(--line); font-family: var(--font-body); }

.student-list-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.student-list-item:last-child { border-bottom: none; }
.student-list-item .name { font-weight: 600; }
.student-list-item .meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); margin-top: 3px; }

/* success message */
.success-box {
  display: none;
  background: var(--green-soft);
  border: 1px solid #C9DBCE;
  color: var(--green);
  padding: 18px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: 24px;
}
.success-box.show { display: block; }

/* Confirmation panel shown after a form is submitted */
.success-box .success-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.success-box p {
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 10px;
}
.success-box p:last-child { margin-bottom: 0; }
.success-box .success-timing { font-weight: 700; }
.success-box a {
  color: inherit;
  text-decoration: underline;
}
