:root {
  --green: #1dbf73;
  --green-card: #12b46a;
  --lime: #b5da72;
  --mint: #b8f9bf;
  --red: #ee4648;
  --red-card: #fd433c;
  --pink: #ec8889;
  --ink: #121117;
  --ink-2: #1a1a2e;
  --muted: #5b5b66;
  --bg: #f5f5f5;
  --yellow: #f8eead;
  --purple: #a663de;
  --lavender: #e4cafa;
  --poppins: "Poppins", system-ui, sans-serif;
  --inter: "Inter", system-ui, sans-serif;
  --dm: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--poppins);
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(1236px, 100% - 48px); margin-inline: auto; }

.h2 {
  font-size: clamp(36px, 4.45vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 800px;
}

/* red hand-drawn underline */
.swoosh { position: relative; display: inline-block; }
.swoosh::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -0.2em;
  height: 0.22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 11C50 4 120 2 197 5' fill='none' stroke='%23ee4648' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 68px;
  padding: 0 30px;
  border-radius: 6px;
  font-family: var(--dm);
  font-size: 21px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.btn:hover svg { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover svg { transform: translateY(3px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--green);
  overflow: hidden;
  min-height: 843px;
  padding-top: 104px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 55px 55px;
  background-position: -8px 12px;
  -webkit-mask-image: radial-gradient(ellipse 55% 80% at 72% 50%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 55% 80% at 72% 50%, #000 30%, transparent 85%);
  pointer-events: none;
}

.btn:active { transform: scale(.96); }

.hero-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  align-items: start;
}
.hero-copy { padding-top: 106px; position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(40px, 4.8vw, 69px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  max-width: 660px;
}
.hero h1 .swoosh::after { bottom: -0.16em; height: 0.18em; left: 0; right: -3%; }
.hero-sub {
  margin-top: 30px;
  max-width: 600px;
  font-size: 19.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 52px; margin-left: -4px; }
.trusted { margin-top: 52px; font-family: var(--dm); font-size: 17px; color: var(--ink-2); }
.exams { display: flex; gap: 21px; margin-top: 24px; font-family: var(--dm); font-size: 17px; font-weight: 500; letter-spacing: .02em; }

.hero-art { position: relative; height: 640px; margin-top: 62px; }
.hero-art img { position: absolute; left: 150px; top: -40px; height: 610px; width: auto; }
.chip {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 234px;
  height: 54px;
  border-radius: 30px;
  background: var(--lime);
  color: var(--red);
  font-family: var(--dm);
  font-size: 20px;
  font-weight: 500;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  animation: bob 5s ease-in-out infinite;
}
.chip-a { left: 0; top: 258px; }
.chip-b { left: 350px; top: 455px; animation-delay: -2.5s; }
.hero-bar { position: absolute; left: 133px; top: 570px; width: 350px; height: 7px; border-radius: 4px; background: var(--red); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ============ STATS ============ */
.stats { background: #fff; padding: 46px 0 52px; }
.stats-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; padding: 0 40px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 28px; font-weight: 600; line-height: 1; display: flex; align-items: center; gap: 6px; }
.stat span { font-size: 16px; color: var(--muted); }
.stars { font-size: 25px; letter-spacing: 6px; color: var(--ink) !important; }

/* ============ SUBJECTS ============ */
.subjects { padding: 60px 0 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 60px; }
.tabs button {
  height: 54px;
  padding: 0 21px;
  border: 2px solid #dcdcdc;
  border-radius: 30px;
  font-family: var(--dm);
  font-size: 17px;
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: #000; color: #fff; border-color: #000; padding: 0 25px; }

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin: 62px -18px 0;
}
.card {
  position: relative;
  grid-column: span 3;
  min-height: 162px;
  padding: 20px 22px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.14); }
.cards[data-filter="all"] .card:nth-child(1) { grid-column: span 5; min-height: 192px; }
.cards[data-filter="all"] .card:nth-child(2) { grid-column: span 3; min-height: 192px; }
.cards[data-filter="all"] .card:nth-child(3) { grid-column: span 4; min-height: 192px; }
.card h3 { font-family: var(--inter); font-weight: 800; font-size: 28px; letter-spacing: -0.035em; line-height: 1.15; padding-right: 40px; }
.cards[data-filter="all"] .card:nth-child(-n+3) h3 { font-size: 38px; }
.card p { margin-top: 4px; font-family: var(--dm); font-size: 19px; opacity: .78; }
.card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h12M13 7l5 5-5 5'/%3E%3C/svg%3E") no-repeat center / 20px;
  transition: transform .25s;
}
.card:hover::after { transform: rotate(-45deg); }
.glyph, .glyph-svg { position: absolute; right: 26px; bottom: 12px; }
.glyph { font-family: var(--inter); font-weight: 800; font-size: 80px; line-height: 1; letter-spacing: -0.04em; }
.cards[data-filter="all"] .card:nth-child(-n+3) .glyph { font-size: 110px; }
.cards[data-filter="all"] .card:nth-child(1) .glyph { font-size: 150px; bottom: -4px; }
.g-serif { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; }
.glyph-svg { width: 92px; height: 92px; bottom: 14px; }

.c-green { background: var(--green-card); color: var(--ink); }
.c-red { background: var(--red-card); color: var(--ink); }
.c-black { background: #101011; color: #fff; }
.c-black::after { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h12M13 7l5 5-5 5'/%3E%3C/svg%3E"); }
.c-white { background: #fff; color: var(--ink); border: 2px solid #1a1a1a; }
.c-white::after { background-color: #fff; border: 2px solid #1a1a1a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h12M13 7l5 5-5 5'/%3E%3C/svg%3E"); }
.c-white p { color: #475569; opacity: 1; }

.card[hidden] { display: none; }

.show-more {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 36px auto 0;
  font-family: var(--dm);
  font-size: 19px;
}
.show-more span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.show-more svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .25s; }
.show-more[aria-expanded="true"] svg { transform: rotate(45deg); }
.show-more[hidden] { display: none; }

/* ============ PROGRESS ============ */
.progress { padding: 150px 0 60px; }
.lede { margin-top: 56px; max-width: 620px; font-size: 19px; line-height: 1.55; color: #2d2d33; }

.carousel {
  position: relative;
  display: grid;
  grid-template-columns: 573px 1fr;
  gap: 76px;
  align-items: start;
  margin-top: 114px;
  padding: 0 46px;
}
.car-media { position: relative; padding: 38px 0 0 28px; }
.car-block { position: absolute; left: 0; top: 0; width: 548px; height: 300px; background: var(--green); }
.car-media img { position: relative; width: 545px; aspect-ratio: 545 / 501; object-fit: cover; }
.car-slides { position: relative; padding-top: 92px; }
.car-slide {
  display: none;
  font-size: clamp(26px, 2.6vw, 37px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.06em;
  max-width: 530px;
  animation: fadeUp .5s ease both;
}
.car-slide.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.car-dots { display: flex; align-items: center; gap: 12px; margin: 60px 0 0 192px; }
.car-dots button { width: 10px; height: 10px; border-radius: 50%; background: #d9d9d9; transition: background .2s; }
.car-dots button[aria-current="true"] {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: var(--mint);
  clip-path: polygon(50% 0, 61.8% 35.4%, 100% 38.2%, 69.1% 61.8%, 80.9% 100%, 50% 76.4%, 19.1% 100%, 30.9% 61.8%, 0 38.2%, 38.2% 35.4%);
  margin: 0 -4px;
}
.car-arrow { position: absolute; top: 170px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.car-arrow:hover { background: #e6e6e6; }
.car-arrow svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.car-prev { left: -42px; }
.car-next { right: -50px; top: 92px; }

/* ============ HOW IT WORKS ============ */
.how { padding: 120px 0 80px; }
.how .h2 { margin-left: -8px; }
.steps { position: relative; height: 780px; margin-top: 60px; }
.threads { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.threads path { fill: none; stroke: var(--red); stroke-width: 2; }
.threads circle { fill: #fff; stroke: var(--red); stroke-width: 2; }

.step {
  position: absolute;
  padding: 18px;
  border-radius: 36px;
  background: #f0f0f0;
  box-shadow: 0 30px 60px rgba(0,0,0,.05);
  transform: translate(-50%, -50%) rotate(var(--r));
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.step:hover { transform: translate(-50%, -50%) rotate(var(--r)) scale(1.02); z-index: 5; }
.step-in { background: #fff; border-radius: 22px; padding: 40px 36px 36px; }
.step-1 { --r: -10deg; width: 440px; left: 200px; top: 510px; z-index: 3; }
.step-2 { --r: 12deg; width: 420px; left: 630px; top: 300px; z-index: 1; }
.step-3 { --r: 4deg; width: 430px; left: 1040px; top: 460px; z-index: 2; }
.step-num {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  font-size: 50px;
  font-weight: 600;
  line-height: 1;
  color: #000;
}
.n-green { background: var(--green); }
.n-pink { background: var(--pink); }
.step h3 { margin-top: 26px; font-size: 40px; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.step p { margin-top: 10px; font-size: 14px; line-height: 1.45; color: #222; max-width: 360px; }
.tutor-stack { position: relative; margin: 26px -10px 0 -10px; height: 250px; }
.tutor-stack img { position: absolute; width: 92%; border-radius: 12px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.08)); }
.tutor-stack img:nth-child(1) { left: 6%; top: 0; z-index: 2; }
.tutor-stack img:nth-child(2) { left: -4%; top: 92px; z-index: 3; }
.tutor-stack img:nth-child(3) { left: 14%; top: 150px; z-index: 1; }
.step-photo { position: relative; margin: 26px 0 0; padding: 18px 0 0 18px; }
.step-photo::before { content: ""; position: absolute; left: 0; top: 0; right: 30px; bottom: 30px; }
.ph-pink::before { background: var(--pink); }
.ph-green::before { background: var(--green); }
.step-photo img { position: relative; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ============ GUARANTEE ============ */
.guarantee { position: relative; background: var(--yellow); padding: 150px 0 140px; margin: 40px 0 0; text-align: center; }
.wave { position: absolute; left: 0; width: 100%; height: 34px; fill: var(--bg); }
.wave-top { top: -1px; transform: scaleY(-1); }
.wave-bot { bottom: -1px; transform: scaleY(-1); }
.guarantee .wrap { width: min(1400px, 100% - 32px); }
.guarantee h2 { font-size: clamp(34px, 5.9vw, 86px); font-weight: 600; line-height: 1.05; letter-spacing: -0.005em; }
.guarantee p { margin-top: 28px; font-size: 20px; font-weight: 500; }

/* ============ BECOME A TUTOR ============ */
.tutor { padding: 130px 0 150px; }
.tutor-wrap { position: relative; margin: 0 -2px 0 10px; }
.tutor-back {
  position: absolute;
  inset: -20px -44px -30px 70px;
  border-radius: 60px;
  transform: rotate(3.4deg);
  background-color: var(--lavender);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' stroke='white' stroke-width='3' stroke-linecap='round' opacity='.75'%3E%3Cpath d='M10 20l14-10M40 8l4 20M70 18l22 4M100 6l-6 16M18 50l20 6M58 44l-10 16M86 50l18-10M6 84l6 20M34 92l20-6M70 78l4 22M96 86l18 12M50 112l-16-4'/%3E%3C/svg%3E");
}
.tutor-card {
  position: relative;
  display: grid;
  grid-template-columns: 559px 1fr;
  gap: 60px;
  padding: 50px 60px 50px 59px;
  border-radius: 60px;
  background: var(--purple);
  color: #f5f5f5;
}
.tutor-card > img { width: 100%; height: 100%; max-height: 766px; object-fit: cover; border-radius: 16px; }
.tutor-copy { padding-top: 38px; }
.tutor-copy h2 { font-size: clamp(40px, 5vw, 72px); font-weight: 500; line-height: 1.18; max-width: 420px; }
.tutor-copy > p { margin-top: 36px; font-size: 20px; line-height: 1.6; max-width: 410px; }
.tutor-copy ul { margin: 26px 0 0 18px; list-style: disc; }
.tutor-copy li { font-size: 27px; font-weight: 600; letter-spacing: -0.05em; line-height: 1.65; padding-left: 4px; }
.tutor-copy .btn { margin-top: 56px; font-size: 21px; }
.tutor-link {
  display: block;
  width: fit-content;
  margin: 26px 0 0 15px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tutor-link:hover { color: #fff; }

/* ============ DIRECTORY ============ */
.directory { padding: 20px 0 120px; }
.directory h2 { margin-left: 32px; max-width: 640px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1.04; color: var(--ink-2); }
.dir-cols { display: grid; grid-template-columns: repeat(3, 343px); gap: 32px; margin: 70px 0 0 132px; }
.dir-cols h3 { font-size: 17px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
.dir-cols ul { margin-top: 20px; display: grid; gap: 7px; }
.dir-cols a { font-family: var(--dm); font-size: 15px; color: #4a4a55; }
.dir-cols a:hover { color: var(--ink); text-decoration: underline; }


/* ============ RESPONSIVE ============ */
@media (max-width: 1280px) {
  .hero-body { grid-template-columns: 1fr 480px; }
  .hero-art { transform: scale(.88); transform-origin: top right; }
  .carousel { grid-template-columns: 46% 1fr; gap: 48px; padding: 0 40px; }
  .car-block { width: 95%; }
  .car-media img { width: 100%; }
  .car-prev { left: -6px; }
  .car-next { right: -6px; }
  .steps { transform: scale(.86); transform-origin: top left; height: 680px; margin-bottom: -40px; }
  .tutor-card { grid-template-columns: 45% 1fr; }
  .dir-cols { margin-left: 32px; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {

  .hero { min-height: 0; padding: 96px 0 60px; }
  .hero-body { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-top: 64px; }
  .hero-art { transform: none; width: 494px; max-width: 100%; height: auto; aspect-ratio: 494 / 600; margin: 40px auto 0; }
  .hero-art img { left: 0; right: 0; margin: 0 auto; top: auto; bottom: 7px; height: 95%; width: auto; }
  .chip { width: auto; padding: 0 22px; height: 46px; font-size: 17px; }
  .chip-a { left: 0; top: 43%; }
  .chip-b { left: auto; right: 0; top: 64%; }
  .hero-bar { left: 27%; width: 70%; top: auto; bottom: 0; }
  .hero-grid { -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 75%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 80% 50% at 50% 75%, #000 30%, transparent 85%); }

  .stats-row { grid-template-columns: repeat(3, auto); justify-content: start; padding: 0; gap: 28px 56px; }

  .cards { grid-template-columns: repeat(2, 1fr); margin-inline: 0; }
  .card, .cards[data-filter="all"] .card:nth-child(n) { grid-column: auto; }
  .cards[data-filter="all"] .card:nth-child(1) { grid-column: 1 / -1; }

  .carousel { grid-template-columns: 1fr; gap: 24px; padding: 0; margin-top: 60px; }
  .car-media { max-width: 600px; }
  .car-slides { padding: 16px 56px 0 0; }
  .car-dots { margin: 32px 0 0; }
  .car-arrow { top: auto; bottom: -6px; }
  .car-prev { left: auto; right: 48px; }
  .car-next { right: 0; top: auto; }

  .steps { transform: none; height: auto; margin: 48px 0 0; display: grid; gap: 28px; }
  .threads { display: none; }
  .step { position: relative; left: auto; top: auto; width: auto; max-width: 520px; transform: rotate(var(--r)); }
  .step:hover { transform: rotate(var(--r)); }
  .step-1 { --r: -1.5deg; }
  .step-2 { --r: 1.5deg; margin-left: auto; }
  .step-3 { --r: -1deg; }

  .tutor-wrap { margin: 0; }
  .tutor-back { inset: -12px -10px -18px 30px; border-radius: 40px; }
  .tutor-card { grid-template-columns: 1fr; gap: 32px; padding: 28px; border-radius: 40px; }
  .tutor-card > img { aspect-ratio: 4 / 3; height: auto; }
  .tutor-copy { padding: 0 12px 16px; }

  .dir-cols { grid-template-columns: 1fr 1fr; margin: 48px 0 0; }
  .directory h2 { margin-left: 0; }

}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 76px; }
  .hero-copy { padding-top: 44px; }
  .hero-sub { font-size: 17px; margin-top: 24px; }
  .hero-actions { margin: 32px 0 0; gap: 12px; }
  .btn { height: 58px; padding: 0 22px; font-size: 18px; flex: 1 1 auto; }
  .trusted { margin-top: 36px; font-size: 15px; }
  .exams { gap: 18px; font-size: 15px; }
  .chip { height: 40px; padding: 0 16px; font-size: 15px; }

  .stats { padding: 32px 0; }
  .stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .stat-rating { grid-column: span 2; }
  .stat strong { font-size: 24px; }
  .stars { font-size: 20px; letter-spacing: 3px; }
  .stat span { font-size: 14px; }

  .subjects { padding-top: 48px; }
  .tabs { margin-top: 36px; gap: 8px; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { height: 44px; padding: 0 16px; font-size: 15px; white-space: nowrap; flex-shrink: 0; }
  .tabs button[aria-selected="true"] { padding: 0 20px; }
  .cards { gap: 10px; margin-top: 32px; }
  .card { min-height: 132px; padding: 14px; }
  .card h3, .cards[data-filter="all"] .card:nth-child(-n+3) h3 { font-size: 21px; padding-right: 30px; }
  .card p { font-size: 14px; }
  .card::after { width: 28px; height: 28px; top: 12px; right: 12px; background-size: 16px; }
  .glyph { font-size: 50px; right: 14px; bottom: 8px; }
  .cards[data-filter="all"] .card:nth-child(-n+3) .glyph { font-size: 50px; }
  .cards[data-filter="all"] .card:nth-child(1) { min-height: 150px; }
  .cards[data-filter="all"] .card:nth-child(1) .glyph { font-size: 84px; }
  .cards[data-filter="all"] .card:nth-child(2), .cards[data-filter="all"] .card:nth-child(3) { min-height: 132px; }
  .glyph-svg { width: 56px; height: 56px; right: 14px; bottom: 10px; }

  .progress { padding: 80px 0 40px; }
  .lede { margin-top: 28px; font-size: 16px; }
  .car-media { padding: 22px 0 0 16px; }
  .car-block { height: 60%; }

  .how { padding: 80px 0 40px; }
  .how .h2 { margin-left: 0; }
  .step { padding: 12px; border-radius: 26px; }
  .step-in { padding: 26px 22px 24px; border-radius: 16px; }
  .step-num { width: 52px; height: 52px; font-size: 38px; }
  .step h3 { font-size: 30px; margin-top: 18px; }
  .tutor-stack { height: auto; aspect-ratio: 1 / .68; }
  .tutor-stack img:nth-child(2) { top: 37%; }
  .tutor-stack img:nth-child(3) { top: 60%; }

  .guarantee { padding: 100px 0 96px; }
  .guarantee p { font-size: 16px; margin-top: 16px; }
  .wave { height: 22px; }

  .tutor { padding: 80px 0 96px; }
  .tutor-card { padding: 16px; border-radius: 28px; }
  .tutor-back { border-radius: 28px; inset: -8px -6px -14px 20px; }
  .tutor-copy > p { margin-top: 20px; font-size: 17px; }
  .tutor-copy li { font-size: 22px; }
  .tutor-copy .btn { margin-top: 36px; width: 100%; }
  .tutor-link { margin-left: 0; }

  .directory { padding-bottom: 72px; }
  .dir-cols { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }

}

/* ============ MICRO-INTERACTIONS ============ */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* hero entrance on load */
.hero-copy > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .22s; }
.hero-copy > :nth-child(4) { animation-delay: .32s; }
.hero-copy > :nth-child(5) { animation-delay: .38s; }
.hero-art img { animation: rise 1s .15s cubic-bezier(.2,.8,.2,1) both; }
.hero-bar { animation: draw .9s .7s cubic-bezier(.6,0,.2,1) both; }
.hero h1 .swoosh::after { animation: draw .8s .9s cubic-bezier(.6,0,.2,1) both; }
.exams li { transition: transform .2s, color .2s; cursor: default; }
.exams li:hover { transform: translateY(-2px); color: #fff; }

/* scroll reveal (class added by JS, so no-JS still shows everything) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.step.reveal { opacity: 0; transform: translate(-50%, calc(-50% + 40px)) rotate(var(--r)); }
.step.reveal.in { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)); }
.step.reveal.in:hover { transform: translate(-50%, -50%) rotate(calc(var(--r) * .4)) scale(1.03); }
.h2.reveal .swoosh::after { clip-path: inset(0 100% 0 0); transition: clip-path .8s .35s cubic-bezier(.6,0,.2,1); }
.h2.reveal.in .swoosh::after { clip-path: inset(0 0 0 0); }
.threads path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s .6s cubic-bezier(.6,0,.2,1); }
.steps.in .threads path { stroke-dashoffset: 0; }
.threads circle { opacity: 0; transition: opacity .3s 1.6s; }
.steps.in .threads circle { opacity: 1; }

/* subject cards */
.card .glyph, .card .glyph-svg { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.card:hover .glyph, .card:hover .glyph-svg { transform: scale(1.1) rotate(-6deg); }
.card:active { transform: translateY(-1px) scale(.98); }
.card.pop { animation: popIn .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
.tabs button:active { transform: scale(.95); }
.show-more:hover svg { transform: rotate(90deg); }
.show-more[aria-expanded="true"]:hover svg { transform: rotate(135deg); }

/* carousel */
.car-media img, .car-block { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.car-media:hover img { transform: translate(-6px, -6px); }
.car-media:hover .car-block { transform: translate(6px, 6px); }
.car-arrow:active { transform: scale(.88); }
.car-dots button:hover { background: #bdbdbd; }

/* step photos, tutor card */
.step-photo img, .step-photo::before { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.step:hover .step-photo img { transform: translate(-5px, -5px); }
.step:hover .step-photo::before { transform: translate(5px, 5px); }
.tutor-back { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.tutor-wrap:hover .tutor-back { transform: rotate(5.5deg) translateY(6px); }
.tutor-card > img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.tutor-wrap:hover .tutor-card > img { transform: scale(1.015) rotate(-.6deg); }
.tutor-copy li { transition: transform .25s; }
.tutor-copy li:hover { transform: translateX(6px); }

/* links */
.dir-cols a, .foot-col a { transition: transform .2s, color .2s; }
.dir-cols a { display: inline-block; }
.dir-cols a:hover, .foot-col a:hover { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1080px) {
  .br-d { display: none; }
  .step.reveal { transform: translateY(40px) rotate(var(--r)); }
  .step.reveal.in, .step.reveal.in:hover { transform: rotate(var(--r)); }
}

/* subject search (home) */
.subj-search { display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 26px 0 6px; padding: 6px 6px 6px 18px; border: 1px solid #dcdfe3; border-radius: 999px; background: #fff; }
.subj-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #6b7280; stroke-width: 2; stroke-linecap: round; }
.subj-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; background: none; }
.subj-search .btn { height: 44px; padding: 0 22px; border-radius: 999px; }
.subj-search:focus-within { border-color: #111; }
/* review reels: vertical cards that snap like short videos */
.reels { padding: 100px 0 40px; }
.reels .wrap { width: min(1400px, 100% - 32px); margin: 0 auto; }
.reels-sub { color: #6b7280; margin-top: 10px; font-size: 17px; }
.reel-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 0 12px; scrollbar-width: thin; }
.reel { position: relative; flex: none; width: 240px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; scroll-snap-align: start; background: #111; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.reel:nth-child(3n+2) { background: #1dbf73; } .reel:nth-child(3n+3) { background: #a663de; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel.has-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.75)); }
.reel > * { position: relative; z-index: 1; }
.reel .q { font-size: 17px; line-height: 1.45; font-weight: 500; margin-bottom: auto; padding-top: 10px; }
.reel.has-video .q { margin-bottom: 0; font-size: 14px; }
.reel .stars { color: #ffd54a; letter-spacing: 2px; font-size: 14px; margin-top: 14px; }
.reel b { display: block; margin-top: 6px; font-weight: 600; }
.reel small { opacity: .8; font-size: 12.5px; }
.reel .snd { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; font-size: 14px; }
@media (max-width: 640px) {
  .subj-search { margin-top: 18px; } .subj-search .btn { padding: 0 16px; }
  .reels { padding: 64px 0 24px; } .reel { width: 72vw; max-width: 260px; }
}
