/* ================================================================
   STEM DORADO TUTORIALS — "Bright and bold" theme
   Loads after styles.css (the shared STEM Dorado design system) and
   re-points its tokens to the tutorials palette: cream, espresso ink,
   deep teal, with gold and coral used sparingly.
   Contents
     0. Tokens + accessibility base
     1. Buttons, stickers, highlight blocks, TODO placeholders
     2. Header + footer
     3. Hero + page hero
     4. Shared sections (cards, stats, bento, quotes, pricing, FAQ, CTA)
     5. About + Bookings
     6. Forms + notices
     7. Courses, session plan + quiz
     8. Tutors, contact, legal
     9. Motion + responsive
   ================================================================ */

/* ================================================================
   0. TOKENS + ACCESSIBILITY BASE
   ================================================================ */
:root {
  /* Tutorials palette */
  --cream: #F7F4EC;
  --cream-deep: #EDE6D6;
  --paper: #FFFDF8;
  --ink: #2B1B17;
  --ink-soft: #5C4A44;
  --teal: #0F5F5C;
  --teal-dark: #0A4442;
  --teal-tint: #DCEBE8;
  --gold: #F5B82E;
  --gold-tint: #FDF0CC;
  --coral: #FF6B4A;
  --coral-tint: #FFE4DC;
  --bio: #2E9E6A;
  --chem: #F5B82E;
  --phys: #FF6B4A;

  /* Shared STEM Dorado tokens re-pointed at the tutorials palette */
  --primary: var(--teal);
  --primary-dark: var(--teal-dark);
  --primary-light: var(--teal);
  --secondary: var(--teal);
  --accent: var(--gold);
  --accent-light: var(--gold);
  --dark: var(--ink);
  --darker: var(--ink);
  --text: var(--ink);
  --text-light: var(--ink-soft);
  --light: var(--cream-deep);
  --lighter: var(--cream);
  --border: var(--ink);
  --shadow-primary: 4px 4px 0 var(--ink);

  /* Subject fills (solid; names kept for the JS that uses them) */
  --grad-bio: var(--bio);
  --grad-chem: var(--chem);
  --grad-phys: var(--phys);
  --grad-blue: var(--teal);

  --line: 3px solid var(--ink);
  --hard: 6px 6px 0 var(--ink);
  --hard-sm: 4px 4px 0 var(--ink);
  --hard-lg: 10px 10px 0 var(--ink);
  --r-card: 22px;

  --section-pad: clamp(3.5rem, 7vw, 6rem);
  --header-h: 76px;
}

[hidden] { display: none !important; }

body {
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--ink); }

.section-label {
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotate(-1.5deg);
}

.section-label.on-dark { background: var(--gold); }

.section-title {
  font-size: clamp(2rem, 3.6vw + 0.6rem, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}

.section-subtitle { color: var(--ink-soft); }
.section-title.on-dark { color: var(--cream); }
.section-subtitle.on-dark { color: var(--cream); }

.section { padding: var(--section-pad) 0; }
.section-alt {
  background: var(--cream-deep);
  border-top: var(--line);
  border-bottom: var(--line);
}

/* Teal feature band (testimonials, quiz) */
.section-dark {
  background: var(--teal);
  color: var(--cream);
  border-top: var(--line);
  border-bottom: var(--line);
  position: relative;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--gold);
  color: var(--ink);
  border: var(--line);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
  box-shadow: 0 0 0 6px var(--gold);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main { display: block; }

/* ================================================================
   1. BUTTONS, STICKERS, HIGHLIGHTS, TODO
   ================================================================ */
.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}

/* Pill CTAs with a "press" hover: the button moves into its shadow */
.btn-pill {
  padding: 15px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  min-height: 54px;
  justify-content: center;
  border: var(--line);
  box-shadow: var(--hard-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

.btn-pill:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-pill:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-accent { background: var(--gold); color: var(--ink); }
.btn-accent:hover { background: #F7C24B; }

.btn-blue { background: var(--teal); color: var(--cream); }
.btn-blue:hover { background: var(--teal-dark); }

.btn-ghost-dark,
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
}

.btn-ghost-dark:hover,
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: var(--ink); }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn .icon { width: 1.15em; height: 1.15em; }

.text-link {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.text-link:hover { color: var(--ink); text-decoration-color: var(--gold); }

.section-dark .text-link,
.cta-band a:not(.btn) { color: var(--cream); }

/* Highlight block: one word per headline sits on a coloured block */
.highlight {
  color: var(--ink);
  background: var(--gold);
  padding: 0 0.18em;
  margin: 0 0.02em;
  border-radius: 0.18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  position: relative;
  display: inline-block;
  transform: rotate(-1.5deg);
  line-height: 1.12;
}

.highlight.hl-teal { background: var(--teal); color: var(--cream); }
.highlight.hl-coral { background: var(--coral); color: var(--ink); }
.highlight.hl-bio { background: var(--bio); color: var(--ink); }
.section-dark .highlight { background: var(--gold); color: var(--ink); }

/* Animated highlight word (hero, 404, quiz) */
.word-glow {
  position: relative;
  display: inline-block;
  padding: 0 0.16em;
  color: var(--ink);
  z-index: 0;
  isolation: isolate;
}

.word-glow::before {
  content: '';
  position: absolute;
  inset: 0.04em -0.02em 0.02em;
  background: var(--gold);
  border: var(--line);
  border-radius: 0.16em;
  box-shadow: var(--hard-sm);
  z-index: -1;
  transform-origin: left center;
  animation: block-in 0.7s 0.3s cubic-bezier(0.65, 0, 0.35, 1) both,
             block-wobble 5s 1.2s ease-in-out infinite;
}

.section-dark .word-glow { color: var(--ink); }

/* Sticker badges */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: var(--line);
  border-radius: 14px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  box-shadow: var(--hard-sm);
  transform: rotate(-4deg);
  white-space: nowrap;
}

.sticker .icon { width: 1.15em; height: 1.15em; }
.sticker.teal { background: var(--teal); color: var(--cream); transform: rotate(3deg); }
.sticker.coral { background: var(--coral); transform: rotate(-2deg); }
.sticker.paper { background: var(--paper); transform: rotate(2deg); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 8px 15px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
}

.chip .icon { color: var(--teal); }

/* Visible placeholders for content the client still has to supply */
.todo {
  display: block;
  border: 2px dashed var(--coral);
  background: var(--coral-tint);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.todo::before {
  content: 'TODO';
  display: inline-block;
  background: var(--coral);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 1px 7px;
  border-radius: 6px;
  margin-right: 0.5rem;
  vertical-align: 1px;
}

span.todo {
  display: inline;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
}

span.todo::before { font-size: 0.6rem; padding: 0 5px; margin-right: 0.35rem; }

/* ================================================================
   2. HEADER + FOOTER
   ================================================================ */
.header {
  background: rgba(247, 244, 236, 0.96);
  border-bottom: 3px solid transparent;
}

.header.scrolled {
  border-bottom-color: var(--ink);
  box-shadow: none;
}

/* Logo: emblem (book + flask + atom) to the left of the wordmark */
.logo { gap: 0.6rem; }
.logo-mark { height: 50px; width: auto; display: block; flex-shrink: 0; }
.logo .logo-stem { color: var(--ink); }
.logo .logo-dorado { color: var(--teal); }

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.nav-link {
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.nav-link:hover { color: var(--ink); background: var(--cream-deep); }

.nav-link.active {
  color: var(--ink);
  font-weight: 700;
  background: var(--gold-tint);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.btn-register-header {
  background: var(--gold);
  color: var(--ink);
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-register-header:hover {
  background: var(--gold);
  border-color: var(--ink);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.hamburger span { background: var(--ink); height: 3px; }
.nav-cta-mobile { display: none; }

.footer {
  background: var(--ink);
  color: rgba(247, 244, 236, 0.8);
  border-top: var(--line);
}

.footer-bottom p,
.footer-bottom-links a { color: rgba(247, 244, 236, 0.72); }
.footer-bottom-links a:hover { color: var(--gold); }
.footer-col ul li a,
.footer-contact li span,
.footer-contact li a { color: rgba(247, 244, 236, 0.8); }
.footer-col ul li a:hover,
.footer-contact li a:hover { color: var(--gold); }
.footer-desc { color: rgba(247, 244, 236, 0.75); }
.footer-logo { color: var(--cream); }
.footer-logo .logo-stem { color: var(--gold); }

.footer-logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.15rem;
}

.footer-contact .icon { color: var(--gold); margin-top: 3px; }

.footer-col .footer-heading {
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col .footer-heading::after {
  content: '';
  display: block;
  width: 30px;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--gold);
}

.footer-bottom { border-top-color: rgba(247, 244, 236, 0.15); }
.footer-bottom-links { flex-wrap: wrap; justify-content: center; }

/* ================================================================
   3. HERO + PAGE HERO
   ================================================================ */
.t-hero {
  position: relative;
  background:
    radial-gradient(var(--cream-deep) 1.5px, transparent 1.6px) 0 0 / 26px 26px,
    var(--cream);
  color: var(--ink);
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.t-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.t-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.t-eyebrow .pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--ink);
  animation: pulse 2s infinite;
}

.t-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.7rem, 6vw + 1rem, 5.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.t-hero-lead {
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.3rem);
  color: var(--ink-soft);
  max-width: 34rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.t-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.t-hero-note { font-size: 0.95rem; color: var(--ink-soft); }
.t-hero-note strong { color: var(--ink); }

/* Hero banner photo */
.t-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.hero-photo {
  width: min(100%, 520px);
  margin: 0;
  border: var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--hard-lg);
  overflow: hidden;
  background: var(--teal-tint);
  transform: rotate(1.5deg);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 469 / 302;
  object-fit: cover;
}


/* Inner page hero */
.page-hero {
  position: relative;
  background:
    radial-gradient(var(--cream-deep) 1.5px, transparent 1.6px) 0 0 / 26px 26px,
    var(--cream);
  color: var(--ink);
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 5vw, 3.75rem);
  border-bottom: var(--line);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.6vw + 1rem, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1.1rem;
  max-width: 16ch;
}

.page-hero p {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 40rem;
}

.page-hero p a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Page hero with art on the right (Courses) */
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2rem;
  align-items: center;
}

.page-hero-art {
  position: relative;
  height: 300px;
}

.hero-subject {
  position: absolute;
  width: 150px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: var(--line);
  border-radius: 28px;
  box-shadow: var(--hard);
  color: var(--ink);
}

.hero-subject svg { width: 62%; height: auto; }
.hero-subject.bio  { background: var(--bio);  top: 0;     left: 8%;  transform: rotate(-6deg); }
.hero-subject.chem { background: var(--chem); top: 22%;   right: 0;  transform: rotate(5deg); }
.hero-subject.phys { background: var(--phys); bottom: 0;  left: 22%; transform: rotate(-2deg); }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }

/* ================================================================
   4. SHARED SECTIONS
   ================================================================ */

/* Shared "bold card" surface */
.bento-card,
.price-card,
.quote-card,
.booking-card,
.settings-card,
.tutor-card,
.contact-card,
.cta-band,
.quiz,
.stat-big,
.faq-item,
.topic,
.map-placeholder,
.course-visual {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--hard);
}

/* Subject icon block (quiz result) */
.subject-art {
  width: 92px;
  height: 92px;
  margin-bottom: 1.4rem;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--teal);
  border: var(--line);
  box-shadow: var(--hard-sm);
  color: var(--ink);
}

.subject-art svg { width: 60px; height: 60px; }

/* Big number callouts */
.stats-band { padding-bottom: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-big {
  padding: 1.5rem 1.4rem 1.4rem;
  background: var(--teal);
  color: var(--cream);
}

.stat-big:nth-child(2) { background: var(--gold); color: var(--ink); }
.stat-big:nth-child(3) { background: var(--coral); color: var(--ink); }
.stat-big:nth-child(4) { background: var(--paper); color: var(--ink); }

/* Icon tiles (Hands-on learning, DBS): an icon instead of a number */
.stat-icon .num {
  display: flex;
  align-items: center;
  gap: 0.15em;
}

.stat-icon .num .icon { width: 0.85em; height: 0.85em; stroke-width: 2.4; }

/* Icon on its own (Hands-on learning): as tall as the big numbers */
.stat-icon-only .num .icon { width: 1.15em; height: 1.15em; stroke-width: 2.6; margin: -0.08em 0; }

.stat-big .num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 4vw + 1rem, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.stat-big .lbl {
  display: block;
  margin-top: 0.6rem;
  font-size: 1rem;
  font-weight: 800;
}

.stat-big .sub {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bento-card:hover { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--ink); }

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.bento-card p { font-size: 0.95rem; color: var(--ink-soft); }

.bento-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--teal-tint);
  border: 2px solid var(--ink);
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.bento-icon .icon { width: 24px; height: 24px; }

.bento-lg {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--teal);
  color: var(--cream);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  justify-content: flex-end;
  min-height: 400px;
}

.bento-lg .bento-art {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44%;
  max-width: 210px;
}

.bento-lg h3 {
  color: var(--cream);
  font-size: clamp(1.75rem, 2.4vw + 0.8rem, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  position: relative;
}

.bento-lg p { color: var(--cream); font-size: 1.05rem; max-width: 32rem; position: relative; }
.bento-lg .bento-kicker { align-self: flex-start; margin-bottom: 1rem; color: var(--ink); font-size: 0.95rem; }

.bento-wide { grid-column: span 2; }

.bento-accent { background: var(--gold); }
.bento-accent h3,
.bento-accent p { color: var(--ink); }
.bento-accent .bento-icon { background: var(--paper); }

/* Testimonials (on the teal band) */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.quote-card {
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  color: var(--ink);
}

.quote-mark { width: 36px; height: 36px; color: var(--teal); }

.quote-card blockquote p {
  font-size: 1.1rem;
  line-height: 1.55;
  font-weight: 500;
}

.quote-card figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quote-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-heading);
}

.quote-card figcaption strong { display: block; }
.quote-card figcaption span { font-size: 0.88rem; color: var(--ink-soft); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 940px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  padding: 2.4rem 2.1rem 2.1rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured { background: var(--teal-tint); }

.price-badge { position: absolute; top: -20px; right: 1.5rem; }

.price-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--ink);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.6rem 0 0.25rem;
}

.price-amount strong {
  font-family: var(--font-heading);
  font-size: 3.75rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.05em;
}

.price-amount span { color: var(--ink-soft); font-weight: 600; }

.price-per {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.price-list {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.price-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.98rem;
}

.price-list .icon {
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  padding: 2px;
  width: 1.3em;
  height: 1.3em;
  stroke-width: 3;
}

.price-card .btn { margin-top: auto; }

.price-foot {
  text-align: center;
  margin-top: 2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-item {
  box-shadow: var(--hard-sm);
  border-radius: 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.faq-item[open] {
  box-shadow: var(--hard);
  transform: translate(-2px, -2px);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  min-height: 60px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--gold);
  border: 2px solid var(--ink);
  color: var(--ink);
  transition: transform 0.3s, background 0.3s;
}

.faq-item summary .plus .icon { stroke-width: 3; }
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--coral); }

.faq-answer {
  padding: 0 1.35rem 1.35rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-answer p + p,
.faq-answer p + ul,
.faq-answer ul + p,
.faq-answer .todo { margin-top: 0.75rem; }

.faq-answer ul { list-style: disc; padding-left: 1.25rem; }
.faq-answer a:not(.text-link) { color: var(--teal); font-weight: 700; text-decoration: underline; }

.faq-more { text-align: center; margin-top: 2.25rem; }

/* Final CTA band */
.cta-band {
  padding: clamp(2rem, 5vw, 3.25rem);
  background: var(--teal);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
}

.cta-band h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 2.8vw + 0.8rem, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
  color: var(--cream);
}

.cta-band p { color: var(--cream); }

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ================================================================
   5. ABOUT + BOOKINGS
   ================================================================ */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.bento-card .statement {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Shared tile under the tutor cards */
.team-experience {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--teal);
  color: var(--cream);
  border: var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--hard);
}

.team-experience-num {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 4vw + 1rem, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--gold);
}

.team-experience-lbl {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: left;
}

/* How we teach: Explain → Explore → Apply → Check */
.teach-cycle {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.teach-step {
  position: relative;
  padding: 1.6rem;
  border: var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--hard);
  background: var(--paper);
}

.teach-step.teach-1 { background: var(--teal-tint); }
.teach-step.teach-2 { background: #E3EEF8; }
.teach-step.teach-3 { background: var(--gold-tint); }
.teach-step.teach-4 { background: var(--paper); }

.teach-step h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.teach-step p { color: var(--ink-soft); font-size: 0.98rem; }
.teach-step .bento-icon { background: var(--paper); }

.teach-num {
  position: absolute;
  top: -16px;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  border: var(--line);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
}

/* arrow between steps (desktop) */
.teach-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1.25rem;
  width: 1rem;
  height: 1rem;
  border-top: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}

.teach-closing {
  max-width: 760px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1vw + 1rem, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

/* Company policies: links to the PDFs */
.policy-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
  max-width: 760px;
  margin: 0 auto;
}

.policy-links .btn,
.policy-links .policy-fact { width: 100%; justify-content: center; }
.policy-links .btn { white-space: normal; }

/* Statements (not links): same pill shape, no press effect */
.policy-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 15px 24px;
  border-radius: var(--radius-full);
  border: var(--line);
  background: var(--teal-tint);
  font-weight: 700;
  color: var(--ink);
}

.policy-fact .icon {
  width: 1.3em;
  height: 1.3em;
  padding: 2px;
  border-radius: 50%;
  background: var(--gold);
  stroke-width: 3;
}

.pdf-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--gold);
  border: 2px solid var(--ink);
}

/* What parents should expect */
.expect-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.expect-card {
  --expect: var(--teal);
  padding: 1.5rem 1.6rem;
  border: var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--hard);
  background: var(--paper);
}

.expect-card.expect-1 { background: var(--teal-tint); }
.expect-card.expect-2 { background: #E3EEF8; }
.expect-card.expect-3 { background: var(--gold-tint); --expect: var(--gold); }
.expect-card.expect-4 { background: var(--paper); }

.expect-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 4px solid var(--expect);
}

.expect-num {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--expect);
  color: var(--cream);
  border: 2px solid var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
}

.expect-card.expect-3 .expect-num { color: var(--ink); }

.expect-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.expect-card p { color: var(--ink-soft); font-size: 1rem; }

.expect-banner {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: var(--teal);
  color: var(--cream);
  border: var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--hard);
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.45rem);
  font-weight: 700;
}

.tutor-cred-line {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-top: -0.35rem;
}

.tutor-roles {
  display: grid;
  gap: 0.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.tutor-roles li {
  padding-left: 0.9rem;
  position: relative;
}

.tutor-roles li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--card-grad, var(--teal));
  border: 1.5px solid var(--ink);
}

.when-where {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem 2.5rem;
  max-width: 940px;
  margin: 3rem auto 0;
  padding: 1.75rem;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--hard);
}

.when-where h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.when-note { margin-top: 0.9rem; font-size: 0.92rem; color: var(--ink-soft); }

/* "Where": a small map-style panel (no embedded map, so no cookies) */
.where-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  border: var(--line);
  border-radius: 18px;
  color: var(--cream);
  background:
    linear-gradient(rgba(247, 244, 236, 0.14) 2px, transparent 2px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(247, 244, 236, 0.14) 2px, transparent 2px) 0 0 / 30px 30px,
    var(--teal);
}

.when-where .where-panel h3 { color: var(--cream); margin-bottom: 0.9rem; }
.where-panel .map-pin { width: 48px; height: 48px; margin-bottom: 0.9rem; }

.where-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.where-address { font-weight: 600; margin-top: 0.15rem; }
.where-note { font-size: 0.9rem; margin: 0.6rem 0 1.1rem; }
.where-panel .btn { min-height: 48px; padding: 11px 20px; }

.price-card .todo { margin-top: auto; }

/* ================================================================
   6. FORMS + NOTICES
   ================================================================ */
.slot-list { display: grid; gap: 0.6rem; }

.slot-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: var(--cream);
  border: 2px solid var(--ink);
  font-weight: 700;
}

.slot-list time {
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 1px 8px;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.3rem;
  border-radius: var(--radius-full);
  background: var(--paper);
  border: var(--line);
  box-shadow: var(--hard-sm);
}

.seg button {
  border: none;
  background: transparent;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--radius-full);
  font: 700 0.92rem var(--font-body);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.seg button[aria-pressed="true"] { background: var(--teal); color: var(--cream); }
.seg button:not([aria-pressed="true"]):hover { background: var(--cream-deep); }

.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--teal-tint);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.notice .icon { color: var(--teal); margin-top: 2px; }
.notice.warn { background: var(--gold-tint); }
.notice.warn .icon { color: var(--ink); }
.notice.error { background: var(--coral-tint); }
.notice.error .icon { color: #B42318; }

/* Contact form */
.booking-card { padding: clamp(1.5rem, 4vw, 2.5rem); }

.field { display: grid; gap: 0.4rem; margin-bottom: 1.15rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label,
.field legend,
.field .label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.field .opt { font-weight: 500; color: var(--ink-soft); }
.field .hint { font-size: 0.85rem; color: var(--ink-soft); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="date"],
.field input[type="time"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  font: 500 1rem var(--font-body);
  color: var(--ink);
  padding: 13px 14px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  min-height: 50px;
  transition: box-shadow 0.15s;
}

.field textarea { min-height: 110px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--teal);
}

.field [aria-invalid="true"] {
  border-color: #B42318;
  background: #FFF7F5;
  box-shadow: 4px 4px 0 #B42318;
}

.field-error { font-size: 0.88rem; color: #B42318; font-weight: 700; }
.field-error:empty { display: none; }

fieldset.field { border: none; padding: 0; margin-inline: 0; }

.check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  accent-color: var(--teal);
  flex-shrink: 0;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ================================================================
   7. COURSES, SESSION PLAN + QUIZ
   ================================================================ */
.subject-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.subject-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

.subject-nav a:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.subject-nav .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--teal);
}

.subject-nav .dot.bio { background: var(--bio); }
.subject-nav .dot.chem { background: var(--chem); }
.subject-nav .dot.phys { background: var(--phys); }

.course-block {
  --subject: var(--teal);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.course-block.bio  { --subject: var(--bio); }
.course-block.chem { --subject: var(--chem); }
.course-block.phys { --subject: var(--phys); }

.course-block + .course-block {
  margin-top: var(--section-pad);
  padding-top: var(--section-pad);
  border-top: 3px dashed var(--ink);
}

.course-visual {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--subject);
  color: var(--ink);
}

.course-visual svg { width: 58%; height: auto; }

.course-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--subject);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 2px 10px;
  margin-bottom: 0.75rem;
}

.course-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 3.6vw + 0.8rem, 3.75rem);
  color: var(--ink);
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 1rem;
}

.course-body > p:not(.course-kicker) {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 44rem;
  margin-bottom: 2rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.topic {
  padding: 1.2rem 1.25rem;
  box-shadow: var(--hard-sm);
  border-radius: 18px;
}

.topic h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.topic h3::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--subject);
  border: 2px solid var(--ink);
  flex-shrink: 0;
}

.topic p { font-size: 0.92rem; color: var(--ink-soft); }

.course-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

/* "Coming next year: GCSE for Year 11" banner (Courses) */
.coming-next {
  margin-top: var(--section-pad);
}

.coming-sticker {
  margin-bottom: 1rem;
}

/* Session plan */
.plan-tabs { display: flex; justify-content: center; margin-bottom: 1.75rem; }

.plan-year + .plan-year { margin-top: 3rem; }
.tabbed .plan-year + .plan-year { margin-top: 0; }

.plan-year-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  max-width: 840px;
  margin: 0 auto 0.5rem;
}

/* With tabs, the tab already names the year */
.tabbed .plan-year-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.plan-focus {
  max-width: 840px;
  margin: 0 auto 1.25rem;
  padding: 0.9rem 1.1rem;
  background: var(--teal-tint);
  border: 2px solid var(--ink);
  border-radius: 14px;
  color: var(--ink);
}

.plan-item summary > span:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.plan-num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 2px 8px;
}

.plan-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0.9rem 0 0.35rem;
}

/* Quiz */
.quiz {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--ink);
  box-shadow: var(--hard-lg);
}

.quiz-progress {
  height: 14px;
  border-radius: 99px;
  border: 2px solid var(--ink);
  background: var(--cream);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.quiz-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.4s ease;
}

.quiz-q {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 1.5vw + 1rem, 1.9rem);
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.quiz-count {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.quiz-options { display: grid; gap: 0.85rem; }

.quiz-option {
  text-align: left;
  width: 100%;
  border-radius: 16px;
  border: var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 1rem 1.2rem;
  min-height: 58px;
  font: 600 1rem var(--font-body);
  cursor: pointer;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  box-shadow: var(--hard-sm);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.quiz-option:hover {
  background: var(--gold-tint);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.quiz-option .k {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: var(--cream);
  border: 2px solid var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.quiz-result { text-align: center; }
.quiz-result .subject-art { margin: 0 auto 1.25rem; }

.quiz-result h3 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2vw + 1.2rem, 2.75rem);
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.quiz-result p {
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

.quiz-result .t-hero-cta { justify-content: center; }

.quiz-restart {
  background: none;
  border: none;
  color: var(--teal);
  font: 700 0.95rem var(--font-body);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
}

/* ================================================================
   8. TUTORS, CONTACT, LEGAL
   ================================================================ */
.tutor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.tutor-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tutor-card:hover { transform: translate(-2px, -4px) rotate(-0.5deg); box-shadow: var(--hard-lg); }

.tutor-photo {
  aspect-ratio: 1 / 1;
  background: var(--card-grad, var(--teal));
  border-bottom: var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
}

.tutor-photo svg { width: 36%; height: auto; }
.tutor-photo img { width: 100%; height: 100%; object-fit: cover; }

.tutor-body { padding: 1.5rem; display: grid; gap: 0.6rem; }

.tutor-body h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--ink);
}

.tutor-role { font-weight: 700; color: var(--teal); font-size: 0.95rem; }

.tutor-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tutor-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--gold);
  border: 2px solid var(--ink);
  color: var(--ink);
  transform: rotate(-2deg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.faq-group + .faq-group { margin-top: 3.5rem; }

.faq-group h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 840px;
  margin: 0 auto 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.contact-cards { display: grid; gap: 1.25rem; }

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  box-shadow: var(--hard-sm);
  border-radius: 18px;
}

.contact-card .icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gold);
  border: 2px solid var(--ink);
  color: var(--ink);
  flex-shrink: 0;
}

.contact-card .icon-badge .icon { width: 22px; height: 22px; }

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.contact-card p,
.contact-card address { font-style: normal; color: var(--ink-soft); font-size: 0.95rem; }
.contact-card a { color: var(--teal); font-weight: 700; }

.map-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(rgba(247, 244, 236, 0.14) 2px, transparent 2px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(247, 244, 236, 0.14) 2px, transparent 2px) 0 0 / 34px 34px,
    var(--teal);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cream);
  padding: 1.5rem;
}

.map-pin {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.75rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--gold);
  border: var(--line);
  display: grid;
  place-items: center;
}

.map-pin span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
}

.map-placeholder strong { display: block; font-family: var(--font-heading); font-size: 1.3rem; }
.map-placeholder p { color: var(--cream); font-size: 0.95rem; margin: 0.25rem 0 1rem; }

.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.75;
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.5rem 0 0.75rem;
}

.prose h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose ul,
.prose .todo { margin-bottom: 1rem; }

.prose ul { list-style: disc; padding-left: 1.4rem; }
.prose li + li { margin-top: 0.35rem; }
.prose a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  border: var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  vertical-align: top;
}

.prose td { border-top: 2px solid var(--ink); }
.prose th { background: var(--gold); font-weight: 700; }
.prose .meta { font-size: 0.92rem; color: var(--ink-soft); }

.table-scroll { overflow-x: auto; }

/* ================================================================
   9. MOTION + RESPONSIVE
   ================================================================ */
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

@keyframes block-in {
  from { transform: scaleX(0) rotate(-2deg); }
  to   { transform: scaleX(1) rotate(-2deg); }
}

@keyframes block-wobble {
  0%, 80%, 100% { transform: rotate(-2deg); }
  86% { transform: rotate(1.5deg); }
  92% { transform: rotate(-3deg); }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 107, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0); }
}

/* Reveal: only hidden when JS runs (html.js). Staggered with .d1–.d3 */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.active { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.1s; }
.js .reveal.d2 { transition-delay: 0.2s; }
.js .reveal.d3 { transition-delay: 0.3s; }

/* A few cards keep a slight resting tilt once revealed */
.stat-big:nth-child(2),
.js .stat-big.reveal.active:nth-child(2),
.quote-card:nth-child(2),
.js .quote-card.reveal.active:nth-child(2) { transform: rotate(1deg); }
.stat-big:nth-child(3),
.js .stat-big.reveal.active:nth-child(3),
.quote-card:nth-child(3),
.js .quote-card.reveal.active:nth-child(3) { transform: rotate(-1deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .word-glow::before { animation: none !important; transform: rotate(-2deg); }
  .t-eyebrow .pulse { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .t-hero-grid { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-art { display: none; }
  .t-hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .course-block { grid-template-columns: 1fr; }
  .course-visual { position: relative; top: 0; max-width: 240px; }
  .tutor-grid,
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .teach-cycle { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .teach-step::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  :root {
    --header-h: 68px;
    --hard: 5px 5px 0 var(--ink);
    --hard-lg: 7px 7px 0 var(--ink);
  }

  .nav-container { height: var(--header-h); }

  .nav-menu {
    background: var(--cream);
    border-left: var(--line);
    box-shadow: none;
  }

  .nav-menu .nav-cta-mobile {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
    width: 100%;
  }

  .t-hero-art { max-width: 460px; padding: 1.25rem 0.5rem; }
  .sticker { font-size: 0.9rem; padding: 0.45rem 0.8rem; }

  /* Keep the small cards two-up so pairs (e.g. Understand | DBS) stay side by side */
  .bento { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .bento-lg,
  .bento-wide { grid-column: 1 / -1; grid-row: auto; }
  .bento-lg { min-height: 340px; }

  .quote-card:nth-child(n),
  .js .quote-card.reveal.active:nth-child(n) { transform: none; }

  .pricing-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-band { grid-template-columns: 1fr; }

  .field-row,
  .split-grid,
  .when-where { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .topic-grid { grid-template-columns: 1fr; }
  .tutor-grid,
  .values-grid { grid-template-columns: 1fr; }

}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .logo-mark { height: 40px; }
  .policy-links { grid-template-columns: 1fr; }
  .expect-grid { grid-template-columns: 1fr; }
  .expect-card { padding: 1.25rem; }
  .expect-card h3 { font-size: 1.2rem; }
  .teach-cycle { gap: 1.5rem 0.9rem; }
  .teach-step { padding: 1.4rem 1rem 1.1rem; }
  .teach-step h3 { font-size: 1.15rem; }
  .teach-step p { font-size: 0.88rem; }
  .team-experience { padding: 1.25rem; }
  .team-experience-lbl { text-align: center; }
  .bento .bento-card:not(.bento-lg) { padding: 1.1rem 1rem; }
  .bento .bento-card:not(.bento-lg) h3 { font-size: 1.02rem; hyphens: auto; }
  .bento .bento-card:not(.bento-lg) p { font-size: 0.88rem; }
  .bento .bento-icon { width: 40px; height: 40px; margin-bottom: 0.8rem; }
  .t-hero-cta .btn { width: 100%; }
  .stat-big { padding: 1.1rem 1rem; }
  .price-card { padding: 2.2rem 1.3rem 1.5rem; }
  .booking-card { padding: 1.25rem; }
  .cta-band-actions .btn { width: 100%; }
}

/* Very small phones: keep the logo and menu button on one line */
@media (max-width: 380px) {
  .logo { gap: 0.45rem; min-width: 0; }
  .logo-mark { height: 34px; }
  .logo .logo-stem,
  .logo .logo-dorado { font-size: 1.2rem; }
  .logo-sub { font-size: 0.5rem; letter-spacing: 0.8px; }
}
