/* The Classroom International — redesign preview
   Palette drawn from the official logo: dino purple, wordmark blue, mint spikes, tagline orange. */

:root {
  --purple: #7878f8;
  --purple-deep: #4c49d4;
  --purple-ink: #26245c;
  --blue: #78c0f8;
  --blue-deep: #2d7fb8;
  --teal: #a0d8d8;
  --teal-deep: #3b8a8a;
  --orange: #f8a870;
  --orange-deep: #d47130;
  --ink: #1c1a2e;
  --ink-soft: #5a556c;
  --paper: #f6f1ea;
  --paper-2: #fffdf9;
  --white: #ffffff;
  --line: #e7e0d6;
  --lavender: #eef0ff;
  --peach: #fff1e6;
  --mist: #e8f5f5;
  --shadow: 0 20px 50px rgba(38, 36, 92, 0.1);
  --shadow-sm: 0 8px 24px rgba(38, 36, 92, 0.08);
  --radius: 1.5rem;
  --radius-sm: 0.9rem;
  --header-h: 4.75rem;
  --container: 72rem;
  --font-sans: "Plus Jakarta Sans", "Noto Sans CJK TC", "Noto Sans TC", "PingFang TC", "Hiragino Sans GB", "Microsoft JhengHei", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

body.nav-open,
body.modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--purple-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--purple-ink); }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--purple-ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
main { padding-bottom: 1rem; }
@media (max-width: 959px) {
  main { padding-bottom: 3.5rem; }
  .hero-visual { margin-bottom: 1.25rem; padding-bottom: 1.5rem; }
  .wa-float { bottom: 1.1rem; right: 0.85rem; }
}
.container-wide {
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 234, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(38, 36, 92, 0.06);
  background: rgba(255, 253, 249, 0.94);
}
.header-inner {
  width: min(100% - 1.5rem, 80rem);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo img {
  height: 2.7rem;
  width: auto;
}
@media (min-width: 720px) {
  .logo img { height: 3.15rem; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 0.8rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.32rem;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
  transform: translateY(0.38rem) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-of-type(4) {
  transform: translateY(-0.38rem) rotate(-45deg);
}

.site-nav {
  display: none;
}
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper-2);
  padding: 1.25rem 1.25rem 2rem;
  overflow: auto;
  gap: 1.25rem;
  box-shadow: var(--shadow);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-nav a:not(.btn) {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0.7rem 0.4rem;
  border-radius: 0.6rem;
}
.site-nav a:not(.btn)[aria-current="page"],
.site-nav a:not(.btn):hover {
  color: var(--purple-deep);
  background: var(--lavender);
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .header-actions .btn-trial-compact { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    overflow: visible;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
  .site-nav a:not(.btn) {
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.7rem;
    background: none;
  }
  .site-nav a:not(.btn)[aria-current="page"] {
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--orange);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s;
}
.btn:hover { color: inherit; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-trial,
.btn-primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(212, 113, 48, 0.22);
}
.btn-trial:hover,
.btn-primary:hover {
  background: #ffb784;
  color: var(--ink);
}
.btn-dark {
  background: var(--purple-ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(38, 36, 92, 0.22);
}
.btn-dark:hover { background: #35328a; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--purple-ink);
  box-shadow: inset 0 0 0 1.5px var(--purple-ink);
}
.btn-ghost:hover { background: var(--lavender); color: var(--purple-ink); }
.btn-whatsapp {
  background: #25d366;
  color: #083318;
}
.btn-whatsapp:hover { background: #2ee073; color: #083318; }
.btn-trial-compact {
  padding: 0.65rem 0.95rem;
  font-size: 0.82rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.2rem 0 3.2rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  right: -6rem;
  top: -6rem;
  background: radial-gradient(circle, rgba(120, 120, 248, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-deep);
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.8rem, 10vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--purple-ink);
  margin: 0 0 1.1rem;
}
.word-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  margin: 0 0 1.15rem;
}
.word-pill {
  font-weight: 800;
  font-size: clamp(0.78rem, 2.5vw, 0.95rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--purple-ink);
}
.word-pill.read { background: var(--lavender); }
.word-pill.explore { background: var(--mist); }
.word-pill.experience { background: var(--peach); }
.hero-lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 1.6rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.hero-visual {
  position: relative;
  min-height: 18rem;
}
.hero-visual .shot-main {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  border-radius: 1.8rem;
  box-shadow: var(--shadow);
}
.hero-visual .shot-float {
  position: absolute;
  width: 38%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--paper);
  box-shadow: var(--shadow-sm);
  bottom: -1.2rem;
  right: -0.4rem;
}
.blob {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.blob-a { width: 8rem; height: 8rem; background: var(--teal); top: -1.2rem; left: -1.4rem; opacity: 0.7; }
.blob-b { width: 6rem; height: 6rem; background: var(--orange); bottom: 2rem; left: -1rem; opacity: 0.55; }

@media (min-width: 900px) {
  .hero { padding: 3.4rem 0 4.4rem; }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
  .hero-visual .shot-float { width: 10.5rem; right: -1.4rem; }
}

/* Sections */
.section { padding: 4rem 0; }
.section-header { max-width: 40rem; margin-bottom: 2rem; }
.section-header h2,
.page-hero h1,
h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--purple-ink);
}
.section-header h2,
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.7rem;
  font-weight: 650;
}
.lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.section-ink { background: var(--purple-ink); color: #f4f1ff; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .lead { color: rgba(255,255,255,0.82); }
.section-lavender { background: var(--lavender); }
.section-mist { background: var(--mist); }
.section-peach { background: var(--peach); }
.section-paper2 { background: var(--paper-2); }

/* Course cards */
.course-grid {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 640px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .course-grid { grid-template-columns: repeat(6, 1fr); }
  .course-card { grid-column: span 2; }
  .course-card:nth-child(4) { grid-column: 2 / 4; }
  .course-card:nth-child(5) { grid-column: 4 / 6; }
}
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}
.course-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 30%;
  background: var(--lavender);
}
.course-card .body { padding: 1.05rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.age-pill {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--lavender);
  color: var(--purple-deep);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}
.course-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 650;
}
.course-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.course-card .more {
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--purple-deep);
}

/* Split / mission */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.split img,
.split .frame {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.split .frame {
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  background: #efe8de;
}
.split .frame img { width: 100%; height: 100%; object-fit: cover; box-shadow: none; border-radius: 0; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
}

/* Curriculum math */
.math-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .math-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr; }
}
.math-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.math-card.featured {
  background: var(--purple-ink);
  color: #fff;
}
.math-card .pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
  color: var(--orange);
}
.math-card:not(.featured) .pct { color: var(--purple-deep); }
.math-card h3 { margin: 0; font-size: 1.25rem; color: inherit; }
.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.keyword {
  background: var(--white);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Learning path */
.path-grid {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 860px) {
  .path-grid { grid-template-columns: repeat(3, 1fr); }
}
.path-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 100%;
}
.path-card .band {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.7rem;
  margin: 0;
}
.focus-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin: 0.6rem 0 0.15rem;
}
.path-card ul { margin: 0; padding: 0 0 0 1.1rem; color: var(--ink-soft); }

/* Instagram */
.ig-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ig-link {
  text-decoration: none;
  color: inherit;
}
.ig-link:hover h2 { color: var(--purple-deep); }
.ig-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 28rem;
  margin: 0.4rem 0 0;
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem;
}
@media (min-width: 960px) {
  .ig-grid { grid-template-columns: repeat(6, 1fr); }
}
.ig-grid a, .ig-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
  background: var(--lavender);
}
.ig-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.ig-grid a:hover img { transform: scale(1.04); }
.ig-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.5rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(28,26,46,0.55));
}

/* Talk / forms */
.talk-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 860px) {
  .talk-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
}
.form-card, .info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 640px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
label, .fieldset-legend, legend {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.req { color: var(--orange-deep); }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--paper-2);
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(120, 120, 248, 0.2);
}
fieldset {
  border: 1.5px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1rem 0.7rem;
  margin: 0;
}
.choice-list {
  display: grid;
  gap: 0.45rem;
}
.choice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.35rem 0;
}
.choice input { margin-top: 0.25rem; accent-color: var(--purple-deep); }
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
}
.form-success {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--mist);
  border-radius: 1rem;
  color: var(--purple-ink);
}
.form.is-submitted .form-fields { display: none; }
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}
.contact-list a { color: var(--purple-ink); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--purple-deep); text-decoration: underline; }
.contact-list span.k {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.hours-table th { font-weight: 700; width: 48%; }

/* Page hero */
.page-hero {
  padding: 2.6rem 0 2.2rem;
}
.page-hero p { max-width: 42rem; color: var(--ink-soft); margin: 0; }

/* Features */
.feature-grid {
  display: grid;
  gap: 0.8rem;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--white);
  border-radius: 1.15rem;
  padding: 1.15rem 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.feature .mark {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  background: var(--lavender);
  color: var(--purple-deep);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.feature p { margin: 0; font-weight: 650; line-height: 1.35; }

/* Curriculum bands */
.band-block { padding: 3.2rem 0; }
.band-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin: 0 0 0.4rem;
}
.topic { margin: 0 0 0.9rem; }
.topic strong {
  display: block;
  font-size: 0.95rem;
  color: var(--purple-ink);
  margin-bottom: 0.15rem;
}
.topic p { margin: 0; color: var(--ink-soft); }
.level-pills { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.level-pill {
  background: var(--white);
  border-radius: 1.1rem;
  padding: 0.9rem 1.1rem;
  min-width: 9rem;
  box-shadow: var(--shadow-sm);
}
.level-pill strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--purple-ink); }
.level-pill span { color: var(--ink-soft); font-size: 0.9rem; }

/* Programs */
.prog-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
}
.level-list { display: grid; gap: 0.8rem; }
.level {
  background: var(--white);
  border-radius: 1.2rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.level summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
}
.level summary::-webkit-details-marker { display: none; }
.level summary::after {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--purple-deep);
  border-bottom: 2px solid var(--purple-deep);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex: 0 0 auto;
}
.level[open] summary::after { transform: rotate(225deg); }
.level-body {
  display: grid;
  gap: 1rem;
  padding: 0 1.25rem 1.3rem;
  color: var(--ink-soft);
}
@media (min-width: 800px) {
  .level-body { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}
.level-body img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  background: #efe8de;
}
.level-body ul { margin: 0.3rem 0 0.6rem; padding-left: 1.15rem; }
.level-body h3 { font-size: 1rem; margin: 0.6rem 0 0.25rem; }
.skill-box {
  background: var(--lavender);
  color: var(--ink);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
}

/* Blog */
.blog-grid {
  display: grid;
  gap: 1.2rem;
}
@media (min-width: 800px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.blog-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.blog-card .body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.meta { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.04em; }
.blog-card h2 { font-size: 1.2rem; margin: 0; line-height: 1.3; }
.blog-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.article { padding: 2rem 0 4rem; }
.article-header { max-width: 46rem; margin: 0 auto 1.6rem; }
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.2;
  margin: 0.4rem 0 0.7rem;
  color: var(--purple-ink);
}
.article-hero {
  width: min(100% - 2rem, 62rem);
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-body {
  max-width: 46rem;
  margin: 0 auto;
  font-size: 1.08rem;
}
.article-body p { margin: 0 0 1.1rem; }

/* Placeholder callouts */
.placeholder {
  border: 1.5px dashed #c8b8f0;
  background: var(--lavender);
  border-radius: 1.2rem;
  padding: 1.2rem 1.3rem;
}
.placeholder strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--purple-ink); margin-bottom: 0.3rem; }

/* Footer */
.site-footer {
  background: var(--purple-ink);
  color: #efeafc;
  padding: 3.2rem 0 1.6rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.2rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer h2 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer .logo img {
  height: 3rem;
  width: auto;
  background: var(--paper-2);
  padding: 0.3rem 0.5rem;
  border-radius: 0.7rem;
}
.footer-brand p { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(20, 128, 60, 0.35);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 1.85rem; height: 1.85rem; fill: currentColor; }

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 26, 46, 0.55);
}
.modal-card {
  position: relative;
  width: min(100%, 32rem);
  background: var(--paper-2);
  border-radius: 1.4rem;
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  z-index: 1;
}
.modal-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
}
.modal-card p { margin: 0 0 1rem; color: var(--ink-soft); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: var(--lavender);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--purple-ink);
}

/* Reveal */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.75s var(--ease) both; }
  .reveal:nth-child(2) { animation-delay: 0.06s; }
  .reveal:nth-child(3) { animation-delay: 0.12s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .btn, .course-card, .blog-card, .ig-grid img { transition: none; }
}

/* Utilities */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.stack { display: grid; gap: 1.5rem; }
.contact-cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .contact-cards { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}
.social-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.photo-round {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  background: var(--lavender);
}
