/* ==========================================================================
   Human Teachers (website V2) — Figma "Human Teachers — Desktop V2" (2654:59979)
   Depends on tokens.css, base.css (fsh-container, fsh-btn, fsh-tag), layout.css.
   Prefix: .ht-  ·  Breakpoints: 1100 (layout), 860 (stack, same as blocks), 520 (mobile).
   Illustrations: markup = Figma state (static / reduced motion). JS adds .is-armed
   + state classes to run calm loops, and .is-running while on screen.
   ========================================================================== */

.fsh-page-human-teachers { --ht-gold-ring: inset 0 0 0 0.5px var(--c-gold); }

/* ---------------------------------------------------------------- shared */
.ht-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.55rem + 1.9vw, 2.625rem); /* 42px @1440 */
  line-height: 1.371;                                 /* 57.6 / 42 */
  color: var(--c-ink);
}
.ht-lead { font-size: var(--fs-lead); line-height: 28px; color: var(--c-muted); }
.ht-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ht-actions .fsh-btn { line-height: 0.9; }
.ht-center-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ht-center-head .ht-h2 { margin-top: 16px; max-width: 760px; }
.ht-center-head .ht-lead { margin-top: 12px; max-width: 680px; }
.ht-beyond .ht-center-head .ht-lead { max-width: 640px; }

.ht-ar { font-family: var(--font-arabic); font-weight: 700; }

/* Pills (Ill / Pill) */
.ht-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--c-white);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-pill);
  font-size: 14px; line-height: 17px; color: var(--c-ink);
  white-space: nowrap;
}
.ht-pill--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-gold); flex: none; }
.ht-pill--ghost { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: #fff; }

/* Chips (Ill / Chip) */
.ht-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ht-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px;
  background: var(--c-white);
  border: 1px solid var(--c-line-2);
  border-radius: 10px;
  font-size: 14px; font-weight: 500; line-height: 17px; color: var(--c-ink);
  white-space: nowrap;
  transition: border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), background-color 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.ht-chip.is-on { border-color: var(--c-gold); box-shadow: var(--ht-gold-ring); }
.ht-soft {
  display: inline-flex; align-items: center;
  padding: 8px 12px; border-radius: 10px;
  background: var(--c-surface);
  font-size: 14px; line-height: 17px; color: var(--c-ink); white-space: nowrap;
}

/* Portrait placeholder (Ill / Portrait): Arabic initial, demo profiles only */
.ht-portrait {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border: 1px solid;
  font-family: var(--font-arabic); font-weight: 700; line-height: normal;
  overflow: hidden;
}
.ht-portrait--dark  { background: var(--c-dark-raised); border-color: var(--c-dark-border); color: #fff; }
.ht-portrait--light { background: var(--c-page); border-color: var(--c-line-2); color: var(--c-ink); }
.ht-portrait--28  { width: 28px;  height: 28px;  border-radius: 8px;  font-size: 17px; padding-bottom: 10px; }
.ht-portrait--40  { width: 40px;  height: 40px;  border-radius: 10px; font-size: 24px; padding-bottom: 14px; }
.ht-portrait--56  { width: 56px;  height: 56px;  border-radius: 12px; font-size: 34px; padding-bottom: 17px; }
.ht-portrait--64  { width: 64px;  height: 64px;  border-radius: 14px; font-size: 38px; padding-bottom: 19px; }
.ht-portrait--96  { width: 96px;  height: 96px;  border-radius: 16px; font-size: 58px; padding-bottom: 33px; }
.ht-portrait--112 { width: 112px; height: 112px; border-radius: 18px; font-size: 67px; padding-bottom: 34px; }

/* Waveform (Ill / Waveform): gold = played / live, grey = rest */
.ht-wave { --wu: 1px; display: inline-flex; align-items: center; gap: calc(3 * var(--wu)); height: calc(28 * var(--wu)); flex: none; }
.ht-wave__bar {
  display: block; width: calc(2 * var(--wu)); height: calc(var(--h) * var(--wu));
  border-radius: 1px; background: var(--c-muted);
  transform-origin: center;
  transition: background-color 0.35s ease;
}
.ht-wave__bar.is-played { background: var(--c-gold); }

/* Mic (Ill / Mic, live) */
.ht-mic {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-gold); border: 2px solid var(--c-gold-border); color: #fff;
}
.ht-mic svg { width: 16px; height: 18px; }
.ht-ctrl {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: #fff;
}
.ht-ctrl svg { width: 17px; height: 17px; }

/* ================================================================== HERO */
.ht-hero { background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.ht-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 516px) minmax(0, 660px);
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding-top: 160px;
  padding-bottom: 120px;
}
.ht-hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(48px, 8vw, 120px); }
.ht-hero__lead { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ht-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.ht-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.188;          /* 55 / 46.31 */
  letter-spacing: -0.01em;
  color: var(--c-ink);
  max-width: 521px;
}
.ht-hero__sub { font-size: var(--fs-lead); line-height: 1.5; color: var(--c-muted); max-width: 511px; }
.ht-hero__status { min-height: 62px; }
.ht-hero__media { width: 100%; }

/* ---- Hero illustration: one scalable composition (design units --u, 660 × 588) */
.ht-hill { position: relative; width: 100%; max-width: 660px; margin-left: auto; aspect-ratio: 660 / 588; container-type: inline-size; }
.ht-hill__stage { --u: calc(100cqw / 660); position: absolute; inset: 0; }
.ht-hill__bg {
  position: absolute; inset: 0; overflow: hidden;
  background: #1E1E1E;
  -webkit-mask: url("../../img/human-teachers/hero-union.svg") center / 100% 100% no-repeat;
          mask: url("../../img/human-teachers/hero-union.svg") center / 100% 100% no-repeat;
}
.ht-hill__callig {
  position: absolute; max-width: none;
  left: calc(-1318 * var(--u)); top: calc(-143 * var(--u));
  width: calc(2357.76 * var(--u)); height: calc(874 * var(--u));
}
.ht-hill__portrait {
  position: absolute; left: calc(132 * var(--u)); top: calc(92 * var(--u));
  width: calc(300 * var(--u)); height: calc(404 * var(--u));
  display: flex; align-items: center; justify-content: center;
  padding-bottom: calc(150 * var(--u));
  background: var(--c-dark-raised); border: 1px solid var(--c-dark-border);
  border-radius: calc(20 * var(--u));
  filter: drop-shadow(0 calc(24 * var(--u)) calc(28 * var(--u)) rgba(51, 33, 10, 0.22));
  font-family: var(--font-arabic); font-weight: 700; font-size: calc(190 * var(--u)); line-height: normal; color: #fff;
}
.ht-hill .ht-pill.ht-hill__demo {
  position: absolute; left: calc(316 * var(--u)); top: calc(108 * var(--u));
  padding: calc(8 * var(--u)) calc(14 * var(--u)); font-size: calc(14 * var(--u)); line-height: normal;
  opacity: 0.96;
}
.ht-hill__note {
  position: absolute; left: calc(350 * var(--u)); top: calc(176 * var(--u)); width: calc(280 * var(--u));
  display: flex; flex-direction: column; align-items: flex-start; gap: calc(10 * var(--u));
  padding: calc(18 * var(--u)) calc(20 * var(--u));
  background: #fff; border-radius: calc(16 * var(--u));
  box-shadow: 0 calc(18 * var(--u)) calc(44 * var(--u)) rgba(51, 33, 10, 0.18);
}
.ht-hill__note-label { font-size: calc(11 * var(--u)); font-weight: 600; letter-spacing: 0.08em; color: var(--c-muted); line-height: normal; }
.ht-hill__note-text { font-size: calc(18 * var(--u)); line-height: calc(28 * var(--u)); color: var(--c-ink); }
.ht-hill__player { display: flex; align-items: center; gap: calc(10 * var(--u)); }
.ht-play { display: block; width: calc(32 * var(--u)); height: calc(32 * var(--u)); flex: none; }
.ht-play svg { width: 100%; height: 100%; }
.ht-play__pause { opacity: 0; }
.ht-play__tri, .ht-play__pause { transition: opacity 0.3s ease; }
.ht-hill__track { position: relative; display: block; }
.ht-hill__track .ht-wave { --wu: var(--u); }
.ht-hill__playhead {
  position: absolute; top: calc(-2 * var(--u)); bottom: calc(-2 * var(--u)); left: 0;
  width: calc(2 * var(--u)); border-radius: 2px; background: var(--c-ink);
  opacity: 0;
}
.ht-hill__note-meta { font-size: calc(13 * var(--u)); color: var(--c-muted); line-height: normal; }
.ht-hill__name {
  position: absolute; left: calc(92 * var(--u)); top: calc(398 * var(--u));
  display: flex; flex-direction: column; gap: calc(2 * var(--u));
  padding: calc(12 * var(--u)) calc(16 * var(--u));
  background: #fff; border-radius: calc(14 * var(--u));
  box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(51, 33, 10, 0.14);
  white-space: nowrap;
}
.ht-hill__name-t { font-size: calc(18 * var(--u)); line-height: calc(24 * var(--u)); font-weight: 500; color: var(--c-ink); }
.ht-hill__name-s { font-size: calc(14 * var(--u)); line-height: calc(20 * var(--u)); color: var(--c-muted); }
.ht-hill__slot {
  position: absolute; left: calc(350 * var(--u)); top: calc(420 * var(--u));
  display: flex; align-items: center; gap: calc(8 * var(--u));
  padding: calc(10 * var(--u)) calc(14 * var(--u));
  background: #fff; border-radius: calc(14 * var(--u));
  box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(51, 33, 10, 0.14);
  font-size: calc(14 * var(--u)); line-height: normal; white-space: nowrap;
}
.ht-hill__cal { width: calc(16 * var(--u)); height: calc(16 * var(--u)); color: var(--c-gold); flex: none; }
.ht-hill__slot-t { font-weight: 500; color: var(--c-ink); }
.ht-hill__slot-s { color: var(--c-muted); }

/* ================================================================== A · WHY */
.ht-why { position: relative; overflow: hidden; background: var(--c-surface); padding: 112px 0 94px; }
.ht-why__mark {
  position: absolute; top: 64px; right: max(-40px, calc(50% - 670px));
  font-family: var(--font-arabic); font-weight: 700; font-size: 220px; line-height: 280px;
  color: var(--c-ink); opacity: 0.05; white-space: nowrap; pointer-events: none; user-select: none;
}
.ht-why__inner { position: relative; }
.ht-why__head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ht-why__title {
  font-family: var(--font-display); font-size: var(--fs-h2-dark); line-height: 1.322; /* 64.8 / 49 */
  color: var(--c-ink); max-width: 800px;
}
.ht-why__list { list-style: none; margin: 130px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ht-why__item { position: relative; padding-top: 20px; }
.ht-why__item::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(19, 19, 19, 0.14);
  transform-origin: left; transition: transform 1.1s var(--ease-expo);
}
.ht-why__num { display: block; font-size: 14px; font-weight: 500; line-height: 17px; color: var(--c-ink); }
.ht-why__item-title { margin-top: 13px; font-family: var(--font-sans); font-size: 24px; line-height: 32px; color: var(--c-ink); }
.ht-why__item-body { margin-top: 8px; max-width: 340px; font-size: 16px; line-height: 24px; color: var(--c-muted); }

/* ================================================================== B · FIND */
.ht-find { background: var(--c-white); padding: 70px 0 112px; }
.ht-find__inner {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 688px);
  justify-content: space-between; align-items: start; gap: 48px;
}
.ht-find__intro { padding-top: 54px; }
.ht-find__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ht-find__head .ht-lead { max-width: 460px; }
.ht-find__filters { margin-top: 20px; display: flex; flex-direction: column; gap: 27px; }
.ht-filter { display: flex; flex-direction: column; gap: 10px; }
.ht-filter__label { font-size: 14px; line-height: 17px; color: var(--c-muted); }
.ht-find__note { margin-top: 31px; max-width: 440px; font-size: 14px; line-height: 21px; color: var(--c-muted); }

.ht-find__cards { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: start; }
.ht-mini {
  grid-row: 1; position: relative; z-index: 0;
  display: flex; align-items: flex-start; gap: 8px;
  height: 132px; padding: 13px 15px;
  background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: 16px;
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out), background-color 0.7s var(--ease-out), border-color 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}
.ht-mini[data-p="yusuf"] { grid-column: 1; }
.ht-mini[data-p="khadija"] { grid-column: 2; }
.ht-mini__text { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; min-width: 0; }
.ht-mini__name { font-size: 17px; line-height: 24px; font-weight: 500; color: var(--c-ink); }
.ht-mini__meta { font-size: 13px; line-height: 18px; color: var(--c-muted); }
.ht-profile {
  grid-row: 1; grid-column: 1 / -1; position: relative; z-index: 1;
  margin-top: 102px;
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px;
  background: var(--c-white); border: 1px solid var(--c-line-2); border-radius: 20px;
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out);
}
.ht-profile__top { display: flex; align-items: center; gap: 20px; }
.ht-profile__id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ht-profile__name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ht-profile__name { font-family: var(--font-sans); font-size: 28px; line-height: 36px; color: var(--c-ink); }
.ht-profile__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ht-fact { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; line-height: 18px; color: var(--c-muted); white-space: nowrap; }
.ht-fact__i { width: 15px; height: 15px; flex: none; }
.ht-profile__quote { font-size: 24px; line-height: 34px; color: var(--c-ink); }
.ht-profile__approach { display: flex; flex-direction: column; gap: 10px; }
.ht-profile__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--c-line-2);
}
.ht-profile__avail { display: flex; flex-direction: column; gap: 6px; }
.ht-profile__avail .ht-chips { gap: 6px; }
.ht-profile__cta { min-height: 40px; }

/* ================================================================== C · LESSON / BOOKING */
.ht-lesson { background: var(--c-surface); padding: 112px 0 136px; }
.ht-lesson__demo { margin-top: 56px; }
.ht-book {
  display: grid; grid-template-columns: minmax(0, 1fr) 310px;
  min-height: 480px;
  background: var(--c-white); border: 1px solid var(--c-line-2); border-radius: 20px; overflow: hidden;
}
.ht-book__main { display: flex; flex-direction: column; min-width: 0; }
.ht-book__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
  min-height: 64px; padding: 8px 28px;
  border-bottom: 1px solid var(--c-line-2);
}
.ht-stepper { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.ht-stepper__s {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; line-height: 17px; color: var(--c-muted); white-space: nowrap;
}
.ht-stepper__s::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #D6D6D6; flex: none; transition: background-color 0.4s ease; }
.ht-stepper__s + .ht-stepper__s { padding-left: 28px; background: linear-gradient(rgba(19, 19, 19, 0.16), rgba(19, 19, 19, 0.16)) left center / 18px 1px no-repeat; }
.ht-stepper__s.is-on { color: var(--c-ink); font-weight: 500; }
.ht-stepper__s.is-on::before { background: var(--c-gold); }

.ht-book__cols { flex: 1; display: grid; grid-template-columns: 329fr 300fr 276fr; }
.ht-book__col { display: flex; flex-direction: column; padding: 23px 28px 29px 27px; min-width: 0; }
.ht-book__col + .ht-book__col { border-left: 1px solid var(--c-line-2); }
.ht-book__h { font-family: var(--font-sans); font-size: 20px; line-height: 28px; color: var(--c-ink); }
.ht-book__foot { margin-top: auto; padding-top: 24px; font-size: 14px; line-height: 21px; color: var(--c-muted); }

.ht-types { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; max-width: 274px; }
.ht-type {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: 12px;
  transition: background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
.ht-type.is-on { background: var(--c-white); border-color: var(--c-gold); box-shadow: var(--ht-gold-ring); }
.ht-radio {
  position: relative; width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 1.5px solid #D6D6D6; transition: border-color 0.4s ease;
}
.ht-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--c-gold); transform: scale(0); transition: transform 0.4s var(--ease-out); }
.ht-type.is-on .ht-radio { border-color: var(--c-gold); }
.ht-type.is-on .ht-radio::after { transform: scale(1); }
.ht-type__t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ht-type__t b { font-weight: 400; font-size: 15px; line-height: 20px; color: var(--c-ink); }
.ht-type.is-on .ht-type__t b { font-weight: 500; }
.ht-type__t small { font-size: 13px; line-height: 18px; color: var(--c-muted); }

.ht-cal { margin-top: 16px; width: 244px; max-width: 100%; }
.ht-cal__head { display: flex; align-items: center; gap: 12px; height: 20px; }
.ht-cal__month { flex: 1; font-size: 15px; font-weight: 500; line-height: 18px; color: var(--c-ink); }
.ht-cal__nav { display: inline-flex; gap: 12px; }
.ht-cal__nav svg { width: 16px; height: 16px; }
.ht-cal__prev { color: var(--c-muted); }
.ht-cal__next { color: var(--c-ink); }
.ht-cal__grid { margin-top: 20px; display: grid; grid-template-columns: repeat(7, 34px); grid-template-rows: 15px; grid-auto-rows: 34px; column-gap: 1px; row-gap: 6px; }
.ht-cal__dow { font-size: 12px; line-height: 15px; color: var(--c-muted); text-align: center; margin-bottom: 5px; }
.ht-cal__day {
  position: relative; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--c-dark-300); border-radius: 50%; isolation: isolate;
  transition: color 0.35s ease;
}
.ht-cal__day.is-avail { color: var(--c-ink); }
.ht-cal__day::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--c-gold);
  transform: scale(0); transition: transform 0.45s var(--ease-out);
}
.ht-cal__day.is-on { color: #fff; font-weight: 500; }
.ht-cal__day.is-on::before { transform: scale(1); }

.ht-tz { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 17px; color: var(--c-muted); white-space: nowrap; }
.ht-tz__i { width: 14px; height: 14px; flex: none; }
.ht-slots { margin-top: 19px; display: flex; flex-direction: column; gap: 8px; max-width: 220px; }
.ht-slot {
  display: flex; align-items: center; justify-content: center; padding: 12px 0;
  background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: 10px;
  font-size: 15px; line-height: 18px; color: var(--c-ink);
  transition: background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
.ht-slot.is-on { background: var(--c-white); border-color: var(--c-gold); box-shadow: var(--ht-gold-ring); font-weight: 500; }

.ht-sum { display: flex; flex-direction: column; padding: 28px; background: var(--c-dark-card); color: #fff; }
.ht-sum__h { font-family: var(--font-sans); font-size: 20px; line-height: 28px; color: #fff; }
.ht-sum__who { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.ht-sum__who > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.ht-sum__who b { font-weight: 400; font-size: 17px; line-height: 24px; }
.ht-sum__who small { font-size: 13px; line-height: 18px; color: var(--c-dark-300); }
.ht-sum__rows { margin: 24px 0 24px; display: flex; flex-direction: column; gap: 14px; }
.ht-sum__rows > div { display: flex; flex-direction: column; gap: 2px; }
.ht-sum__rows dt { font-size: 13px; line-height: 18px; color: var(--c-dark-300); }
.ht-sum__rows dd { margin: 0; font-size: 15px; line-height: 22px; color: #fff; }
.ht-sum__v { position: relative; display: block; width: max-content; max-width: 100%; transition: opacity 0.45s ease, transform 0.45s var(--ease-out); }
.ht-sum__v::after {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 120px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.1); opacity: 0; transition: opacity 0.45s ease;
}
.ht-sum__cta {
  margin-top: auto; display: flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px; border-radius: 12px;
  background: #fff; color: var(--c-ink); font-size: 16px; font-weight: 500;
  transition: opacity 0.45s ease, transform 0.25s var(--ease-out);
}

.ht-states { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ht-state {
  display: flex; align-items: center; gap: 16px;
  min-height: 96px; padding: 18px 20px;
  background: var(--c-white); border: 1px solid var(--c-line-2); border-radius: 16px;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.ht-state__i {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; background: var(--c-surface); color: var(--c-ink);
  transition: background-color 0.5s ease, color 0.5s ease;
}
.ht-state__i svg { width: 18px; height: 18px; overflow: visible; }
.ht-state__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ht-state__t b { font-weight: 500; font-size: 16px; line-height: 22px; color: var(--c-ink); }
.ht-state__t span { font-size: 14px; line-height: 20px; color: var(--c-muted); }
.ht-lock__shackle { transition: transform 0.5s var(--ease-out); }

/* ================================================================== D · CLASSROOM (dark notched panel) */
.ht-class { background: var(--c-surface); padding: 0 clamp(12px, 1.67vw, 24px) 24px; }
.ht-class__panel {
  --notch-w: clamp(150px, 29%, 404px);
  --notch-h: clamp(48px, 5.55vw, 80px);
  position: relative; isolation: isolate; overflow: hidden;
  max-width: var(--container-wide); margin-inline: auto;
  border-radius: var(--r-xl);
  background: var(--c-surface);
  padding: calc(var(--notch-h) + clamp(64px, 8.4vw, 120px)) clamp(16px, 6.1vw, 88px) clamp(32px, 6.1vw, 88px);
}
.ht-class__panel::before { /* top bar (left of the notch) */
  content: ""; position: absolute; top: 0; left: 0; z-index: -1;
  width: calc(100% - var(--notch-w)); height: calc(var(--notch-h) + 2px);
  background: var(--c-dark); border-top-right-radius: var(--r-xl);
}
.ht-class__panel::after { /* body */
  content: ""; position: absolute; top: var(--notch-h); left: 0; right: 0; bottom: 0; z-index: -1;
  background: var(--c-dark); border-top-right-radius: var(--r-xl);
}
.ht-class__nc { /* concave fillet joining the notch to the body */
  position: absolute; z-index: -1;
  left: calc(100% - var(--notch-w)); top: calc(var(--notch-h) - var(--r-xl));
  width: var(--r-xl); height: var(--r-xl);
  background: radial-gradient(circle at top right, transparent var(--r-xl), var(--c-dark) calc(var(--r-xl) + 0.5px));
}
.ht-class__intro { display: flex; flex-direction: column; align-items: flex-start; max-width: 1216px; margin-inline: auto; }
.ht-class__title {
  margin-top: 13px; font-family: var(--font-display); font-size: var(--fs-h2-dark); line-height: 1.335;
  letter-spacing: -0.01em; color: #fff;
}
.ht-class__body { margin-top: 27px; max-width: 618px; font-size: var(--fs-lead); line-height: 27px; color: var(--c-dark-200); }
.ht-class__intro .ht-actions { margin-top: 27px; }

.ht-room {
  max-width: 1216px; margin: 64px auto 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 24px;
  padding: 23px; background: var(--c-dark-card); border: 1px solid var(--c-dark-border); border-radius: 16px;
  scroll-margin-top: 120px;
}
.ht-stage {
  position: relative; container-type: inline-size;
  display: flex; flex-direction: column;
  aspect-ratio: 880 / 642;
  padding: 24px 28px 28px 32px;
  background: #fff; border-radius: 12px; overflow: hidden;
}
.ht-stage__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ht-stage__ref { font-size: 14px; color: var(--c-muted); }
.ht-verse-wrap { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 7cqw 0 4cqw; }
.ht-verse {
  position: relative; z-index: 0;
  max-width: 95.2cqw; margin: 0 auto;
  font-family: var(--font-arabic); font-weight: 700;
  font-size: clamp(26px, 7.317cqw, 60px); line-height: 1.967; /* 60px / 820px content box */
  text-align: center; color: var(--c-ink);
  transition: opacity 0.8s var(--ease-out);
}
.ht-verse__w { position: relative; transition: color 0.6s ease; }
.ht-verse__w.is-accent { color: var(--c-gold); }
.ht-verse__glide {
  position: absolute; z-index: -1; left: 0; top: 0; width: 0; height: 0;
  border-radius: 12px; background: rgba(195, 143, 63, 0.14);
  opacity: 0; pointer-events: none;
  transition: transform 0.42s var(--ease-out), width 0.42s var(--ease-out), height 0.42s var(--ease-out), opacity 0.4s ease;
}
.ht-pointer {
  position: absolute; z-index: 2;
  left: var(--px, 85.2%); top: var(--py, 4px);
  transform: translate(-50%, calc(-100% - 9px));
  padding: 9px 14px; border-radius: 12px; background: var(--c-dark-card);
  font-size: 14px; font-weight: 500; line-height: 17px; color: #fff; white-space: nowrap;
  transition: opacity 0.45s ease, transform 0.55s var(--ease-out);
}
.ht-pointer::after {
  content: ""; position: absolute; left: calc(50% + var(--tail, 0px)); top: 100%; margin-left: -8px;
  border-style: solid; border-width: 9px 8px 0; border-color: var(--c-dark-card) transparent transparent;
}
.ht-dock {
  align-self: center; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 18px; background: var(--c-dark-card);
  max-width: 100%;
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}
.ht-dock__t { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.ht-dock__t b { font-weight: 500; font-size: 14px; line-height: 17px; color: #fff; }
.ht-dock__t small { font-size: 12px; line-height: 15px; color: var(--c-dark-300); }
.ht-dock__wave .ht-wave__bar:not(.is-played) { background: var(--c-muted); }
.ht-dock__ctrls { display: flex; gap: 14px; }

.ht-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ht-side__teacher {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 14px 18px; text-align: center;
  background: var(--c-dark-raised); border: 1px solid var(--c-dark-border); border-radius: 12px;
}
.ht-side__avatar {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 104px; height: 104px; margin-bottom: 4px; padding-bottom: 30px; border-radius: 50%;
  background: var(--c-dark-card); border: 2px solid var(--c-gold);
  font-family: var(--font-arabic); font-weight: 700; font-size: 62px; line-height: normal; color: #fff;
}
.ht-side__avatar::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--c-gold-border);
  opacity: 0; pointer-events: none;
}
.ht-side__teacher b { font-weight: 400; font-size: 17px; line-height: 24px; color: #fff; }
.ht-side__teacher small { font-size: 13px; line-height: 18px; color: var(--c-dark-300); }
.ht-side__you {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--c-dark-raised); border: 1px solid var(--c-dark-border); border-radius: 12px;
}
.ht-side__you .ht-ctrl svg { width: 15px; height: 18px; }
.ht-side__you > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.ht-side__you b { font-weight: 400; font-size: 15px; line-height: 18px; color: #fff; }
.ht-side__you small { font-size: 12px; line-height: 15px; color: var(--c-dark-300); }
.ht-side__label { font-size: 13px; line-height: 16px; color: var(--c-dark-300); }
.ht-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ht-flow__s {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px;
  background: var(--c-dark-raised); border: 1px solid var(--c-dark-border); border-radius: 12px;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.ht-flow__s b { font-weight: 400; font-size: 15px; line-height: 20px; color: #fff; }
.ht-flow__s span { font-size: 13px; line-height: 18px; color: var(--c-dark-300); }
.ht-flow__s.is-on { border-color: var(--c-gold); box-shadow: var(--ht-gold-ring); }
.ht-flow__s.is-on b { font-weight: 500; }
.ht-side__cap { margin-top: auto; align-self: flex-start; }

/* ================================================================== E · BEYOND (cycle) */
.ht-beyond { background: var(--c-white); padding: 104px 0 112px; }
.ht-cycle { position: relative; margin-top: 64px; padding-bottom: 94px; }
.ht-cycle__row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr; align-items: start;
}
.ht-step {
  position: relative; z-index: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  height: 356px; padding: 22px; border-radius: 16px; border: 1px solid transparent;
  transition: transform 0.6s var(--ease-out), border-color 0.6s ease, box-shadow 0.6s ease;
}
.ht-step--low { margin-top: 56px; }
.ht-step--soft { background: var(--c-surface); }
.ht-step--white { background: var(--c-white); border-color: var(--c-line-2); }
.ht-step--dark { background: var(--c-dark-card); border-color: var(--c-dark-border); }
.ht-step__k { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; line-height: 13px; color: var(--c-muted); }
.ht-step--dark .ht-step__k { color: var(--c-dark-300); }
.ht-step__flex { flex: 1; }
.ht-step__portrait { margin-top: 6px; }
.ht-step__t { font-family: var(--font-sans); font-size: 22px; line-height: 30px; color: var(--c-ink); margin-inline-end: -10px; }
.ht-step__t--sm { font-size: 18px; line-height: 26px; }
.ht-step--dark .ht-step__t { color: #fff; }
.ht-step__s { font-size: 14px; line-height: 20px; color: var(--c-muted); }
.ht-step--white .ht-step__s { line-height: 21px; }
.ht-step--dark .ht-step__s { color: var(--c-dark-300); }
.ht-step__by { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-muted); }
.ht-step__rec { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.ht-step__date { margin-top: 6px; display: flex; flex-direction: column; }
.ht-step__date b { font-weight: 400; font-size: 34px; line-height: 44px; color: var(--c-ink); }
.ht-step__date span { font-size: 15px; line-height: 22px; color: var(--c-muted); }
.ht-step__with { display: inline-flex; align-items: center; gap: 10px; }
.ht-step__with > span:last-child { display: flex; flex-direction: column; }
.ht-step__with b { font-weight: 400; font-size: 15px; line-height: 20px; color: var(--c-ink); }
.ht-step__with small { font-size: 13px; line-height: 18px; color: var(--c-muted); }

/* Arabic word with an accented letter: gold copy of the WHOLE word clipped to the
   final ي (never per-letter spans: keeps letter joining intact). */
.ht-word { position: relative; display: inline-block; font-family: var(--font-arabic); font-weight: 700; font-size: 58px; line-height: 96px; color: var(--c-ink); white-space: nowrap; }
.ht-word__base { display: block; }
.ht-word__accent { position: absolute; inset: 0; color: var(--c-gold); clip-path: inset(-20% 61% -20% -20%); }

.ht-cycle__gap { position: relative; z-index: 2; }
.ht-conn {
  position: absolute; left: 50%; top: 190px; margin-left: -14px;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 1px solid var(--c-gold); color: var(--c-gold);
  transition: background-color 0.45s ease, color 0.45s ease, transform 0.45s var(--ease-out);
}
.ht-conn svg { width: 14px; height: 14px; }
.ht-loop {
  position: absolute; z-index: 0; top: 362px; height: 113px;
  left: calc((100% - 72px) / 8); right: calc((100% - 72px) / 8);
  pointer-events: none;
}
.ht-loop__svg { width: 100%; height: 100%; overflow: visible; }
.ht-loop__path { stroke: var(--c-gold); stroke-width: 1.5; stroke-dasharray: 4.5 6; }
.ht-loop__arrow {
  position: absolute; left: -5px; top: -6px; width: 0; height: 0;
  border-style: solid; border-width: 0 5px 8px; border-color: transparent transparent var(--c-gold);
}
.ht-loop__dot {
  position: absolute; left: 0; top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--c-gold); opacity: 0;
}
.ht-cycle__pill { position: absolute; left: 50%; top: 471px; transform: translateX(-50%); z-index: 1; transition: border-color 0.5s ease, box-shadow 0.5s ease; }

/* ================================================================== CTA */
.ht-cta { background: var(--c-dark); padding: 80px 0 12px; }
.ht-cta__card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: center; gap: 24px 48px;
  min-height: 282px; padding: 40px;
  background: var(--c-dark-card); border: 1px solid var(--c-dark-border); border-radius: var(--r-xl);
}
.ht-cta__main { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ht-cta__title {
  font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 2.695rem); /* 43.125px */
  line-height: 1.104; letter-spacing: -0.01em; color: #fff;
}
.ht-cta__note { align-self: end; padding-bottom: 7px; font-size: 16px; line-height: 24px; color: var(--c-dark-300); }

/* ==========================================================================
   Motion (only with prefers-reduced-motion: no-preference; JS adds .is-armed)
   ========================================================================== */
@media all {
  .fsh-motion .ht-reveal { opacity: 0; }

  /* Paused unless the illustration is on screen */
  .ht-anim * { animation-play-state: paused !important; }
  .ht-anim.is-running * { animation-play-state: running !important; }

  /* ---- Hero ---- */
  .ht-hill__callig { animation: ht-drift 26s ease-in-out infinite; }
  .ht-hill__portrait { animation: ht-float 7s ease-in-out infinite; }
  .ht-hill__name { animation: ht-float 6s ease-in-out -2s infinite; }
  .ht-hill__note { animation: ht-float 8s ease-in-out -4s infinite; }
  .ht-hill__slot { animation: ht-float 6.5s ease-in-out -1s infinite; transition: transform 0.5s var(--ease-out); }
  .ht-hill__demo { animation: ht-float 7.5s ease-in-out -3s infinite; }
  .ht-hill.is-armed .ht-wave__bar { background: rgba(195, 143, 63, 0.28); transition: background-color 0.5s ease; }
  .ht-hill.is-armed.is-played .ht-wave__bar,
  .ht-hill.is-armed.is-playing .ht-wave__bar { background: var(--c-gold); transition-delay: calc(var(--i) * 0.165s); }
  .ht-hill.is-armed.is-played .ht-wave__bar { transition-delay: 0s; }
  .ht-hill.is-playing .ht-wave__bar { animation: ht-bar-pop 0.5s var(--ease-out) both; animation-delay: calc(var(--i) * 0.165s); }
  .ht-hill.is-playing .ht-play__tri { opacity: 0; }
  .ht-hill.is-playing .ht-play__pause { opacity: 1; }
  .ht-hill.is-playing .ht-hill__playhead { opacity: 1; animation: ht-playhead 4s linear both; }
  .ht-hill.is-slot .ht-hill__cal .ht-cal-dots { animation: ht-blink 1.2s ease-in-out 2; }
  .ht-hill.is-slot .ht-hill__slot-t { color: var(--c-gold); transition: color 0.4s ease; }

  /* ---- Why ---- */
  .ht-why__mark { animation: ht-breathe 9s ease-in-out infinite; animation-play-state: running; }
  .fsh-motion .ht-why__item::before { transform: scaleX(0); }
  .fsh-motion .ht-why__item.is-in::before { transform: scaleX(1); }

  /* ---- Finder ---- */
  .ht-find__inner.is-yusuf .ht-mini[data-p="yusuf"] { transform: translateY(-8px); background: #fff; border-color: var(--c-gold); box-shadow: var(--ht-gold-ring); }
  .ht-find__inner.is-yusuf .ht-mini[data-p="khadija"] { opacity: 0.5; }
  .ht-find__inner.is-yusuf .ht-profile { opacity: 0.62; transform: translateY(10px); }
  .ht-profile .ht-chip[data-slot].is-on { transform: translateY(-1px); }
  .ht-profile__cta.is-press { transform: scale(0.97); }

  /* ---- Booking ---- */
  .ht-sum__v.is-empty { opacity: 1; }
  .ht-sum__v.is-empty { color: transparent; }
  .ht-sum__v.is-empty::after { opacity: 1; animation: ht-skel 1.6s ease-in-out infinite; }
  .ht-sum__v[data-v="time"].is-empty::after { width: 92px; }
  .ht-sum__v { transition: color 0.5s ease; }
  .ht-sum__cta.is-off { opacity: 0.45; }
  .ht-sum__cta.is-press { transform: scale(0.97); }
  .ht-state.is-on { border-color: var(--c-gold); box-shadow: var(--ht-gold-ring); }
  .ht-state.is-on .ht-state__i { background: rgba(195, 143, 63, 0.14); color: var(--c-gold); }
  .ht-lesson__demo.is-armed .ht-state[data-state="choose"] .ht-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.7s var(--ease-out) 0.15s; }
  .ht-lesson__demo.is-armed .ht-state[data-state="choose"].is-on .ht-draw { stroke-dashoffset: 0; }
  .ht-lesson__demo.is-armed .ht-state[data-state="choose"]:not(.is-on) .ht-draw { stroke-dashoffset: 0; transition: none; }
  .ht-lesson__demo.is-armed .ht-state[data-state="choose"].is-redraw .ht-draw { stroke-dashoffset: 1; transition: none; }
  .ht-state[data-state="scheduled"].is-on .ht-cal-dots { animation: ht-blink 1.1s ease-in-out 2; }
  .ht-lesson__demo.is-armed .ht-state[data-state="share"]:not(.is-on) .ht-lock__shackle { transform: translateY(-2.2px); }

  /* ---- Classroom ---- */
  .ht-room.is-armed[data-phase="talk"] .ht-verse { opacity: 0.28; }
  .ht-room.is-armed[data-phase="talk"] .ht-verse__w.is-accent { color: var(--c-ink); }
  .ht-room.is-armed[data-phase="talk"] .ht-pointer,
  .ht-room.is-armed[data-phase="recite"] .ht-pointer { opacity: 0; transform: translate(-50%, calc(-100% - 2px)); }
  .ht-room.is-armed[data-phase="talk"] .ht-dock { opacity: 0; transform: translateY(16px); }
  .ht-room.is-armed[data-phase="talk"] .ht-side__avatar::after { animation: ht-ring 1.8s var(--ease-soft) infinite; }
  .ht-room.is-armed[data-phase="recite"] .ht-verse__glide.is-on { opacity: 1; }
  .ht-room .ht-dock__wave .ht-wave__bar { animation: ht-bar-idle 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.137s); }
  .ht-room[data-phase="recite"] .ht-dock__wave .ht-wave__bar { animation: ht-bar-live 0.9s ease-in-out infinite; animation-delay: calc(var(--i) * -0.083s); }
  .ht-room .ht-dock .ht-mic::after,
  .ht-step--dark.is-on .ht-mic::after {
    content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--c-gold-border);
    animation: ht-ring 2.2s var(--ease-soft) infinite; pointer-events: none;
  }
  .ht-room.is-armed[data-phase="talk"] .ht-dock .ht-mic::after { animation: none; opacity: 0; }

  /* ---- Cycle ---- */
  .ht-cycle.is-armed .ht-step.is-on { transform: translateY(-6px); border-color: var(--c-gold); box-shadow: var(--ht-gold-ring); }
  .ht-cycle.is-armed .ht-conn.is-on { background: var(--c-gold); color: #fff; transform: scale(1.12); }
  .ht-step.is-on .ht-word__accent { animation: ht-count 1.9s ease-in-out both; }
  .ht-step--dark .ht-wave__bar { animation: ht-bar-idle 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.137s); }
  .ht-step--dark.is-on .ht-wave__bar { animation: ht-bar-live 0.9s ease-in-out infinite; animation-delay: calc(var(--i) * -0.083s); }
  .ht-step--soft.is-on .ht-step__portrait,
  .ht-step.is-on .ht-step__with .ht-portrait { animation: ht-nudge 1.8s ease-in-out both; }
  .ht-step.is-on .ht-step__date b { animation: ht-nudge 1.8s ease-in-out both; }
  .ht-cycle.is-returning .ht-loop__path { animation: ht-dash 1.9s linear both; }
  .ht-cycle.is-returning .ht-loop__dot { opacity: 1; transition: opacity 0.3s ease; }
  .ht-loop__dot { transition: opacity 0.4s ease; }
  .ht-cycle.is-returning .ht-cycle__pill { border-color: var(--c-gold); box-shadow: var(--ht-gold-ring); }

  @keyframes ht-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
  @keyframes ht-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-1.2%, 1.5%); } }
  @keyframes ht-breathe { 0%, 100% { opacity: 0.05; } 50% { opacity: 0.075; } }
  @keyframes ht-bar-pop { 0% { transform: scaleY(1); } 40% { transform: scaleY(1.35); } 100% { transform: scaleY(1); } }
  @keyframes ht-playhead { from { left: 0; } to { left: calc(100% - 2px); } }
  @keyframes ht-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
  @keyframes ht-skel { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
  @keyframes ht-ring { 0% { transform: scale(1); opacity: 0.55; } 75%, 100% { transform: scale(1.32); opacity: 0; } }
  @keyframes ht-bar-idle { 0%, 100% { transform: scaleY(0.82); } 50% { transform: scaleY(1); } }
  @keyframes ht-bar-live { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1.12); } }
  @keyframes ht-count { 0%, 100% { opacity: 1; } 22% { opacity: 0.35; } 44% { opacity: 1; } 66% { opacity: 0.35; } 88% { opacity: 1; } }
  @keyframes ht-nudge { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } }
  @keyframes ht-dash { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 42; } }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .ht-find__inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .ht-find__intro { padding-top: 34px; }
  .ht-find__cards { max-width: 688px; width: 100%; }

  .ht-book { grid-template-columns: minmax(0, 1fr); }
  .ht-book__cols { grid-template-columns: 1fr 1fr; }
  .ht-book__col--type { grid-column: 1 / -1; border-bottom: 1px solid var(--c-line-2); }
  .ht-book__col--date { border-left: 0 !important; }
  .ht-types { flex-direction: row; max-width: none; }
  .ht-type { flex: 1; min-width: 0; }
  .ht-book__col--type .ht-book__foot { padding-top: 16px; }
  .ht-sum__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .ht-sum__cta { margin-top: 24px; max-width: 320px; }

  .ht-room { grid-template-columns: minmax(0, 1fr); }
  .ht-side { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 12px 16px; }
  .ht-side__teacher { grid-column: 1; grid-row: 1 / span 4; }
  .ht-side > :not(.ht-side__teacher) { grid-column: 2; }
  .ht-side__cap { margin-top: 0; }

  .ht-cycle { padding-bottom: 0; }
  .ht-cycle__row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ht-cycle__gap, .ht-loop { display: none; }
  .ht-step, .ht-step--low { margin-top: 0; height: auto; min-height: 320px; }
  .ht-cycle__pill { position: static; transform: none; display: table; margin: 32px auto 0; }
}

@media (max-width: 860px) {
  .ht-hero__inner { grid-template-columns: minmax(0, 1fr); padding-top: clamp(120px, 22vw, 150px); padding-bottom: 64px; gap: 48px; }
  .ht-hero__content { gap: 32px; }
  .ht-hero__status { min-height: 0; }
  .ht-hill { margin-inline: auto; }

  .ht-why { padding: 88px 0 72px; }
  .ht-why__mark { font-size: 140px; line-height: 180px; top: 8px; right: -24px; }
  .ht-why__list { margin-top: 72px; grid-template-columns: 1fr; gap: 32px; }

  .ht-find { padding: 64px 0 88px; }
  .ht-lesson { padding: 88px 0 96px; }
  .ht-states { grid-template-columns: 1fr; gap: 12px; }

  .ht-stage { aspect-ratio: auto; min-height: 440px; padding: 20px; }
  .ht-verse-wrap { padding: 72px 0 32px; }

  .ht-beyond { padding: 88px 0 96px; }

  .ht-cta { padding-top: 64px; }
  .ht-cta__card { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 32px; }
  .ht-cta__note { padding-bottom: 0; }
}

@media (max-width: 640px) {
  .ht-book__bar { padding: 14px 20px; }
  .ht-book__cols { grid-template-columns: minmax(0, 1fr); }
  .ht-book__col { padding: 20px; }
  .ht-book__col + .ht-book__col { border-left: 0; border-top: 1px solid var(--c-line-2); }
  .ht-book__col--type { border-bottom: 0; }
  .ht-types { flex-direction: column; }
  .ht-book__foot { padding-top: 16px; }
  .ht-cal { width: 100%; }
  .ht-cal__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 40px; }
  .ht-cal__day { width: 40px; max-width: 100%; justify-self: center; }
  .ht-slots { display: grid; grid-template-columns: 1fr 1fr; max-width: none; }
  .ht-sum { padding: 24px 20px; }
  .ht-sum__rows { grid-template-columns: minmax(0, 1fr); }
  .ht-sum__cta { max-width: none; }

  .ht-side { grid-template-columns: minmax(0, 1fr); }
  .ht-side__teacher, .ht-side > :not(.ht-side__teacher) { grid-column: 1; grid-row: auto; }
  .ht-dock { gap: 10px; padding: 10px 12px; }
  .ht-dock__wave .ht-wave__bar:nth-child(n+17) { display: none; }
  .ht-dock__ctrls { display: none; }
}

@media (max-width: 520px) {
  /* Hero illustration recomposed for a narrow column (design units 400 wide) */
  .ht-hill { aspect-ratio: 400 / 500; }
  .ht-hill__stage { --u: calc(100cqw / 400); }
  .ht-hill__bg { -webkit-mask: none; mask: none; border-radius: calc(21 * var(--u)); }
  .ht-hill__callig { left: auto; right: calc(-379.76 * var(--u)); }
  .ht-hill__portrait { left: calc(24 * var(--u)); top: calc(56 * var(--u)); width: calc(220 * var(--u)); height: calc(300 * var(--u)); font-size: calc(140 * var(--u)); padding-bottom: calc(110 * var(--u)); }
  .ht-hill .ht-pill.ht-hill__demo { left: calc(150 * var(--u)); top: calc(66 * var(--u)); }
  .ht-hill__note { left: calc(110 * var(--u)); top: calc(126 * var(--u)); width: calc(274 * var(--u)); }
  .ht-hill__name { left: calc(12 * var(--u)); top: calc(322 * var(--u)); }
  .ht-hill__slot { left: calc(150 * var(--u)); top: calc(420 * var(--u)); }

  .ht-why__mark { font-size: 120px; line-height: 150px; right: -24px; }
  .ht-why__title { font-size: 2rem; }

  .ht-find__cards { column-gap: 10px; }
  .ht-mini { height: 116px; padding: 10px; gap: 8px; align-items: flex-start; }
  .ht-mini .ht-portrait--64 { width: 40px; height: 40px; font-size: 24px; padding-bottom: 12px; border-radius: 10px; }
  .ht-mini__text { padding-top: 8px; }
  .ht-mini__name { font-size: 14px; line-height: 20px; white-space: nowrap; }
  .ht-mini__meta { display: none; }
  .ht-profile { margin-top: 62px; padding: 20px; gap: 16px; }
  .ht-profile__top { align-items: flex-start; gap: 14px; }
  .ht-portrait--112 { width: 72px; height: 72px; font-size: 43px; padding-bottom: 22px; border-radius: 14px; }
  .ht-profile__name { font-size: 22px; line-height: 30px; }
  .ht-fact { font-size: 14px; }
  .ht-profile__quote { font-size: 19px; line-height: 28px; }
  .ht-profile__foot { flex-direction: column; align-items: stretch; }
  .ht-profile__cta { width: 100%; }

  .ht-class__panel { --notch-w: 0px; --notch-h: 0px; background: var(--c-dark); padding-top: 56px; }
  .ht-class__panel::before, .ht-class__nc { display: none; }
  .ht-room { padding: 12px; margin-top: 48px; }
  .ht-stage { min-height: 400px; padding: 16px; }
  .ht-dock__t small { display: none; }
  .ht-dock__wave .ht-wave__bar:nth-child(n+11) { display: none; }
  .ht-stepper { gap: 6px 14px; }
  .ht-stepper__s + .ht-stepper__s { padding-left: 0; background: none; }

  .ht-cycle__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ht-cycle__gap { display: flex; justify-content: center; align-items: center; height: 44px; }
  .ht-conn { position: static; margin: 0; transform: rotate(90deg); }
  .ht-cycle.is-armed .ht-conn.is-on { transform: rotate(90deg) scale(1.12); }
  .ht-step { min-height: 0; }
  .ht-step__flex { min-height: 24px; flex: 0 0 auto; }
  .ht-cycle__pill { white-space: normal; text-align: center; }

  .ht-cta__card { padding: 28px 20px; }
  .ht-cta__title { font-size: 2rem; }
  .ht-cta .ht-actions { width: 100%; }
  .ht-cta .ht-actions .fsh-btn { flex: 1 1 auto; }
}
