/* home.css — home workstream. Figma "Concept v2" → Homepage: desktop 1:2 (1440), tablet 98:1306 (768), mobile 98:1061 (390).
   Mobile-first; tablet ≥768; "wide" two-column layouts ≥1024 (tablet type, desktop structure); desktop type ≥1200.
   Visual system v2 (DESIGN.md, client 24 Sep): richness from colour blocking, print-inspired marks, editorial type and
   purposeful motion — never glow, blur, rings, doodles, tape or tilts. Surfaces down the page (no two neighbours alike):
   hero cream · USP ink · stats warm · audience lime-50 · programs cream · pain warm · outcomes ink · teachers cream ·
   moments lime-50 (+ hairline pattern) · schedule warm · feedback cream · FAQ lime-50 · CTA olive · (footer ink).
   Bands, marks, shapes, display type, reveals, parallax, stack cards and hover utilities come from base.css / main.js;
   this file only places and sizes them.
   Sections: 0 scale + utilities · 1 hero · 2 USP + stats · 3 audience · 4 programs · 5 method · 6 teachers
             7 carousels · 8 schedule · 9 FAQ + form · 10 motion */

/* ---------- 0. Type scale for the page + utilities ----------
   Figma sizes: mobile/tablet h1 34, h2 32, eyebrow 18, body 16, card titles 24/20 · desktop h1 60, h2 60, eyebrow 30,
   card titles 30/50, body 20. The hierarchy h1 ≥ h2 ≥ h3 must hold at every width, so h2 is capped just below the hero
   h1, whose size is set by its no-wrap longest line ("tiếng Anh giao tiếp") in the copy column. */
.hp{--hp-eyebrow:18px}
@media (max-width:767.98px){
  /* h1 = min(36px, column / 10) → 35px at 390, 32px at 360 ("tiếng Anh giao tiếp" is 9.76em). h2 = column / 11 capped at
     Figma's 32px (31.8px at 390, 29.1px at 360): always under h1, and the no-break "The Metaphoric Mind" (10.9em) fits. */
  .hp{--fs-body:16px;--fs-h2:min(32px,(100vw - 2 * var(--gutter)) / 11)}
}
@media (min-width:1200px){
  /* Desktop hero: copy column = container − portrait column; h1 = min(--fs-h1, copy / 10) (sentence case, the longest
     line is 9.76em). h2 is capped from the same column (minus a scrollbar's worth) → h2 ≤ h1.
     Between 1200 and 1440 the whole 1440 layout runs at container/1320 of Figma's size (h2 60 → 51px at 1280, h3 30 →
     25px), so every Figma line break survives in the narrower columns. */
  /* Client, 24 Sep: desktop scaled down (~0.8 of Figma) inside the 1120px column; see tokens.css. */
  .hp{--hp-eyebrow:18px;--hp-media:clamp(320px,30vw,420px);--hp-wrap:min(var(--container),100vw - 2 * var(--gutter));
      --hp-copy:calc(var(--hp-wrap) - var(--hp-media));
      --fs-h2:min(46px,(var(--hp-copy) - 24px) / 11.6,var(--hp-wrap) * .0411);--fs-h3:min(23px,var(--hp-wrap) * .0205)}
}
.hp .eyebrow{font-size:var(--hp-eyebrow)}
.hp .h2{font-weight:800;line-height:1.22;letter-spacing:-.022em}
.hp .section-heading__desc{text-wrap:pretty}
.hp-only-desktop{display:none}
.hp-nowrap{white-space:nowrap}
/* Figma's deliberate heading breaks per breakpoint (explicit <br>, so they are intended, not wraps). */
.hp-br-m,.hp-br-md{display:none}
@media (max-width:767.98px){.hp-br-m,.hp-br-md{display:inline}}
@media (min-width:1024px){.hp-br-md{display:inline}}
@media (min-width:1200px){.hp .hp-only-desktop{display:inline}.hp .hp-only-compact{display:none}.hp-upper-desktop{text-transform:uppercase}}
.hp-head--center{margin-inline:auto;text-align:center}
.hp-head--center .section-heading__desc{margin-inline:auto}
@media (max-width:1199.98px){.hp-head--center{text-align:left;margin-inline:0}.hp-head--center .section-heading__desc{margin-inline:0}}

/* Band overlaps (base.css: a --lip / --cut band pulls up over the previous section, which gets matching extra bottom
   padding). Sections that set their own padding re-add it here: --hp-lap = the next band's overlap. */
.hp{--hp-lap:28px;--hp-cut:clamp(32px,5vw,72px)}
@media (min-width:768px){.hp{--hp-lap:40px}}
/* The method <section> only wraps two bands: it must add no padding of its own (its last band meets the teachers lip). */
.hp > .hp-method{padding:0}

/* ---------- 1. Hero (1:13 / 98:1308 / 98:1067) — cream band, cut-out portrait in crop marks, two glass badges ----------
   Phones: copy · portrait · actions. ≥768: two columns — copy + actions | portrait — and the copy block is centred
   vertically on the portrait (rows 1fr/auto/auto/1fr), with a fixed 48–56px step from the h1 to the CTAs (QA P1-4).
   H1 is sentence case at every width (client), sized from --fs-h1 but capped so its longest line, "tiếng Anh giao tiếp"
   (9.76em), never breaks in the copy column. */
.hp-hero{position:relative;overflow:hidden;overflow:clip;padding-top:28px;padding-bottom:var(--section-y)}
.hp-hero__grid{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "media" "bottom";gap:24px 0}
.hp-hero__copy{grid-area:copy;container-type:inline-size;min-width:0;position:relative;z-index:1}
.hp-hero__title{margin:0;font-size:min(var(--fs-h1),100cqi / 10);font-weight:900;line-height:1.2;letter-spacing:-.01em;text-transform:none}
.hp-hero__line{display:block;white-space:nowrap}
.hp-hero__li{display:block}
.hp-hero__line--green{color:var(--c-green)}
.hp-hero__media{grid-area:media;justify-self:center;position:relative;min-width:0;width:min(100%,350px)}
/* Cut-out portrait with registration crop marks. The box is Figma's image rectangle (350×420 compact, 477×607 ≥768);
   the photo is scaled/offset with Figma's imageTransform so the head keeps its headroom and the hips meet the edge. */
.hp-hero__crop{position:relative;z-index:1}
.hp-hero__frame{position:relative;overflow:hidden;aspect-ratio:350/420}
.hp-hero__portrait{position:absolute;top:0;left:0;display:block;width:121.7%;max-width:none;height:auto;translate:-8.85% -8.5%}
.hp-hero__bottom{grid-area:bottom;min-width:0;position:relative;z-index:1}
.hp-hero__actions{display:flex;flex-direction:column;align-items:stretch;gap:8px}
/* Figma mobile: the primary CTA is full width; the secondary action is a text link under it. */
.hp-hero__cta{width:100%}
.btn.hp-hero__link{align-self:flex-start;--btn-bg:transparent;--btn-bd:transparent;--btn-fg:var(--c-ink);--btn-bg-h:transparent;--btn-bd-h:transparent;--btn-fg-h:var(--c-ink);padding-inline:4px}
.hp-hero__link span{text-decoration:underline;text-decoration-color:var(--c-green);text-decoration-thickness:2px;text-underline-offset:.3em;transition:text-decoration-color .15s var(--ease)}
@media (hover:hover){.hp-hero__link:hover span{text-decoration-color:var(--c-ink)}}
.hp-hero__link:focus-visible span{text-decoration-color:var(--c-ink)}
.hp-hero__link:active{opacity:.75}
@media (min-width:768px){
  .hp-hero{padding-top:32px;padding-bottom:clamp(40px,5vw,56px)}
  .hp-hero__grid{grid-template-columns:minmax(0,1fr) var(--hp-media);grid-template-rows:1fr auto auto 1fr;grid-template-areas:". media" "copy media" "bottom media" ". media";column-gap:clamp(24px,3vw,48px);row-gap:0}
  .hp-hero__media{width:100%;justify-self:stretch;align-self:end}
  .hp-hero__frame{aspect-ratio:477/607}
  .hp-hero__portrait{width:126.8%;translate:-10.5% -8.8%}
  .hp-hero__bottom{padding-top:48px}
  .hp-hero__actions{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px 20px}
  .hp-hero__cta{width:auto}
  .hp-hero__link{align-self:auto}
}
@media (min-width:1024px){.hp-hero{padding-bottom:clamp(24px,2.5vw,40px)}}
@media (min-width:768px) and (max-width:1023.98px){.hp{--hp-media:clamp(270px,38vw,300px)}}
@media (min-width:1024px) and (max-width:1199.98px){.hp{--hp-media:clamp(300px,30vw,380px)}}
@media (min-width:1200px){
  .hp-hero__bottom{padding-top:56px}
  .hp-hero__actions{gap:16px 26px}
}

/* ---------- 2. USP marquee (1:37) — confident type on an ink band; Stats (1:47) — data as design ---------- */
.hp .hp-usp{padding-block:22px calc(22px + var(--hp-lap))}
.hp-usp__marquee{position:relative;z-index:1;--marquee-gap:28px}
.hp-usp__item{display:flex;align-items:center;gap:var(--marquee-gap);font-size:17px;font-weight:700;line-height:1.2;letter-spacing:-.005em;white-space:nowrap;color:var(--c-cream)}
.hp-usp__item:nth-child(even){color:var(--c-lime)}
/* Separator (client, 24 Sep: no dash): a small solid olive square sitting on the x-height, like a typeset bullet. */
.hp-usp__item::after{content:"";flex:none;width:.34em;height:.34em;background:var(--c-green);translate:0 .02em}
@media (prefers-reduced-motion:reduce){.hp-usp__marquee{justify-content:center;padding-inline:var(--gutter);row-gap:8px}.hp-usp__marquee .marquee__track{flex-wrap:wrap;justify-content:center;min-width:0}.hp-usp__group{flex-wrap:wrap;justify-content:center;min-width:0;row-gap:8px}}
@media (min-width:768px){.hp .hp-usp{padding-block:24px calc(24px + var(--hp-lap))}.hp-usp__item{font-size:20px}.hp-usp__marquee{--marquee-gap:32px}}
@media (min-width:1200px){.hp .hp-usp{padding-block:30px calc(30px + var(--hp-lap))}.hp-usp__marquee{--marquee-gap:40px}.hp-usp__item{font-size:24px;letter-spacing:-.01em}}

.hp .hp-stats-section{padding-block:56px calc(64px + var(--hp-lap))}
.hp-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 16px;margin:0;padding:0;list-style:none}
.hp-stat{min-width:0;container-type:inline-size}
.hp-stat__rule{display:block;margin-bottom:14px}
/* Figures are the graphic: very large display weight, sized to the column (the widest, "1000+", is ~2.9em). */
.hp-stat__num{font-size:min(104px,100cqi / 2.95);font-weight:900;line-height:1;letter-spacing:-.045em;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--c-ink)}
/* QA P1-6: figures start on the label's left edge and the "+" follows the last digit with no gap. */
.hp-stat__count{display:inline-block;text-align:left}
.hp-stat__unit{margin-left:0;font-size:.46em;font-weight:800;letter-spacing:0;vertical-align:.86em;color:var(--c-ink)}
.hp-stat__unit--word{margin-left:.18em;font-size:.34em;vertical-align:baseline;letter-spacing:0}
.hp-stat__label{margin-top:12px;padding-top:10px;border-top:1px solid rgba(var(--c-ink-rgb),.18);font-size:14px;font-weight:800;line-height:1.3;letter-spacing:.1em;text-transform:uppercase;color:var(--c-ink)}
.hp-stat__desc{margin-top:6px;font-size:16px;line-height:1.45;color:rgba(var(--c-ink-rgb),.82)}
.hp-stat__desc strong{font-weight:700;color:var(--c-ink)}
/* "đồng hành cùng TMM" is one no-break unit: the size keeps it inside the ~150–165px phone columns. */
@media (max-width:767.98px){.hp-stat__desc{font-size:min(16px,(100vw - 56px) / 21.6)}}
@media (min-width:768px){.hp .hp-stats-section{padding-block:64px calc(72px + var(--hp-lap))}.hp-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.hp-stat__label{font-size:15px}}
/* Tablet 4 columns: the no-break "đồng hành cùng TMM" (≈10.8em) sets the size in the narrowest column. */
@media (min-width:768px) and (max-width:1199.98px){.hp-stat__desc{font-size:min(15px,100cqi / 10.9)}}
@media (min-width:1200px){
  .hp .hp-stats-section{padding-block:104px calc(112px + var(--hp-lap))}
  .hp-stats{gap:48px}
  .hp-stat__num{font-size:min(92px,100cqi / 2.95)}
  .hp-stat__rule{margin-bottom:24px}
  .hp-stat__label{margin-top:20px;padding-top:14px;font-size:14px}
  .hp-stat__desc{margin-top:10px;font-size:var(--fs-body);line-height:1.4}
}

/* ---------- 3. Audience (2:2 / 98:1338 / 98:1109) — lime-50 band, grain, outline brand-name display type ---------- */
.hp-audience{position:relative;overflow:hidden}
.hp-audience > .container{position:relative;z-index:1}
.hp-audience__dt{bottom:calc(var(--hp-lap) - .12em);--dt-size:clamp(88px,13vw,200px);--dt-stroke:rgba(var(--c-green-rgb),.35)}
/* "The Metaphoric Mind" in the heading: the deep olive accent (client, 24 Sep), one no-break unit. */
.hp-audience__brand{color:var(--c-green-deep);white-space:nowrap}
.hp .hp-audience__eyebrow{color:var(--c-ink)}
.hp-audience__eyebrow em{font-style:normal;color:var(--c-green)}
.hp-audience__grid{display:grid;gap:16px;margin:0;padding:0;list-style:none}
.hp-audience__card{container-type:inline-size;padding:22px 22px 26px;border:1px solid rgba(var(--c-ink-rgb),.08);border-radius:var(--radius-card);background:var(--c-cream-warm)}
/* Index: Figma's small numeral + a clean index rule (hairline with an olive segment). */
.hp-audience__index{display:flex;align-items:center;gap:14px}
.hp-audience__num{flex:none;font-size:15px;font-weight:800;line-height:1;letter-spacing:.08em;font-variant-numeric:tabular-nums;color:var(--c-ink)}
.hp-audience__rule{flex:1;min-width:0}
.hp-audience__title{margin-top:18px;font-size:24px;font-weight:800;line-height:1.25;letter-spacing:-.01em}
.hp-audience__text{margin-top:8px;line-height:1.5;color:rgba(var(--c-ink-rgb),.82)}
@media (min-width:768px){.hp-audience__grid{gap:20px}}
/* Room under the cards for the display type (the programs lip covers --hp-lap of it). */
.hp .hp-audience{padding-bottom:calc(var(--section-y) + var(--hp-lap) + clamp(56px,10vw,150px))}
@media (min-width:1024px){.hp-audience__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1200px){
  .hp-audience .section-heading{margin-bottom:40px}
  .hp-audience__grid{gap:clamp(24px,3vw,40px)}
  .hp-audience__card{padding:30px 30px 36px}
  .hp-audience__num{font-size:15px}
  .hp-audience__title{margin-top:26px;font-size:min(var(--fs-h3),100cqi / 10.6)}
  .hp-audience__text{margin-top:12px;font-size:var(--fs-body);line-height:1.5}
}

/* ---------- 4. Programs (2:36 / 98:1353 / 98:1123) — cream band, sticky stack (desktop) ---------- */
.hp .hp-programs{padding-bottom:calc(var(--section-y) + var(--hp-lap))}
.hp-programs__lead{max-width:62ch;color:rgba(var(--c-ink-rgb),.82)}
.hp-programs__lead strong{color:var(--c-ink)}
.hp-programs__list{display:grid;gap:24px}
/* Opaque surfaces: the second card slides over the first in the stack. */
.hp-program{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;padding:20px 20px 24px;border:1px solid rgba(var(--c-ink-rgb),.08);border-radius:var(--radius-card);background:var(--c-cream);box-shadow:0 1px 2px rgba(var(--c-ink-rgb),.03),0 30px 60px -44px rgba(var(--c-ink-rgb),.35)}
.hp-program__media{align-self:center;min-width:0}
.hp-program__shot{overflow:hidden;border-radius:var(--radius-card)}
.hp-program__img{display:block;width:100%;height:auto;object-fit:cover}
.hp-program__body{min-width:0}
.hp-program__rule{display:block;max-width:120px;margin-bottom:16px}
.hp-program__title{font-size:24px;font-weight:800;line-height:1.265;letter-spacing:-.01em}
.hp-program__explore{display:inline-block;padding-block:7px;margin-block:-7px;color:inherit;text-decoration:none}
.hp-program__desc{margin-top:12px;max-width:48ch;line-height:1.5;color:rgba(var(--c-ink-rgb),.82)}
/* Compact Figma: specs read inline, "Tình huống: Trò chuyện · Du lịch · Đời sống". */
.hp-program__specs{margin:14px 0 0;display:grid;gap:2px}
.hp-program__row{display:flex;align-items:baseline;gap:0 .3em;font-weight:500;line-height:1.5}
.hp-program__row dt{flex:none;margin:0}
.hp-program__row dt::after{content:":"}
/* Spec values (QA P2-15, inc/home-content.php tmm_hp_spec_html): nowrap items in a flex-wrap row; every item carries a
   leading "·" and the row sits one separator-width left of the <dd>, whose left edge clips (clip-path, left side only)
   the separator that would open a line — a line never ends (or starts) with a dangling dot. */
.hp-program__row dd{flex:1;min-width:0;margin:0;clip-path:inset(-.5em -.5em -.5em 0)}
.hp-specs{--sep:.8em;display:flex;flex-wrap:wrap;margin-left:calc(var(--sep) * -1)}
.hp-spec{white-space:nowrap}
.hp-spec::before{content:"·";display:inline-block;width:var(--sep);text-align:center}
.hp-program__cta{margin-top:20px}
@media (max-width:767.98px){.hp-program__cta{width:100%}}
@media (min-width:1024px){
  .hp-program{grid-template-columns:minmax(0,7fr) minmax(0,6fr);align-items:center;gap:32px;padding:28px 36px 28px 28px}
  .hp-program--flip{grid-template-columns:minmax(0,6fr) minmax(0,7fr);padding:28px 28px 28px 36px}
  .hp-program--flip .hp-program__media{order:2}
  .hp-program__specs{margin-top:20px;gap:0}
  .hp-program__row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:12px 0;border-bottom:1px solid rgba(var(--c-ink-rgb),.14);font-weight:400}
  .hp-program__row dt{flex:none;color:rgba(var(--c-ink-rgb),.82)}
  .hp-program__row dt::after{content:none}
  .hp-program__row dd{text-align:right;font-weight:600}
  .hp-specs{justify-content:flex-end;margin-left:0}
  .hp-spec:first-child::before{content:none}
}
@media (min-width:1200px){
  .hp-programs .section-heading{max-width:none;margin-bottom:64px}

  .hp-programs__lead{max-width:none;font-size:20px;line-height:1.6}
  .hp-programs__list{gap:48px}
  .hp-program{gap:48px;min-height:480px;padding:36px 44px 36px 36px}
  .hp-program--flip{padding:36px 36px 36px 44px}
  .hp-program__rule{max-width:160px;margin-bottom:24px}
  .hp-program__title{font-size:calc(var(--fs-h2) * .8);letter-spacing:-.02em}
  .hp-program__desc{margin-top:20px;font-size:var(--fs-body)}
  .hp-program__row{padding:16px 0;font-size:var(--fs-body)}
}

/* The sticky stack (base.css .stack-cards, ≥768) only where a whole card fits under the header: two-column cards from
   1024 on screens at least 760px tall. Below that the cards simply follow each other. */
@media (max-width:1023.98px),(max-height:759.98px){.hp-programs__list.stack-cards > *{position:relative;top:auto}}
/* A covered card's content fades back, so the strip that stays visible above the next card reads as a deliberate
   stacked edge instead of half-sliced lines of text. Stack is off under reduced motion (base.css), so is this. */
@media (min-width:1024px) and (min-height:760px) and (prefers-reduced-motion:no-preference){
  .hp-programs__list > .hp-program > *{transition:opacity .45s var(--ease)}
  .hp-programs__list > .hp-program.is-covered > *{opacity:.35}
}

/* ---------- 5. Method (3:2 / 98:1369 / 98:1143) ---------- */
/* 5a. Pain points — warm band; editorial list with index rules; ≥1024 two columns (list | heading) as Figma desktop. */
.hp-method__row--pain{display:grid;gap:28px}
.hp-method__head{position:relative;margin:0}
.hp-pains{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.hp-pain{position:relative;padding:14px 16px 16px;border-radius:var(--radius-sm)}
.hp-pain__rule{display:block;margin-bottom:14px}
.hp-pain__title{font-size:20px;font-weight:800;line-height:1.3}
.hp-pain__text{margin-top:6px;line-height:1.5;color:rgba(var(--c-ink-rgb),.82)}
@media (min-width:1024px){
  .hp-method__row--pain{grid-template-columns:minmax(0,576fr) minmax(0,656fr);gap:clamp(40px,6vw,88px);align-items:start}
  .hp-method__head{order:2;position:sticky;top:calc(var(--header-h) + 32px)}
  .hp-pains{gap:12px}
  .hp-pain{padding:18px 20px 22px}
  .hp-pain__text{margin-top:10px}
}
@media (min-width:1200px){
  .hp-pain__title{font-size:var(--fs-h3);line-height:1.265}
  .hp-pain__text{font-size:var(--fs-body)}
}
/* 5b. Outcomes — ink band with a diagonal cut; "50" as outline display type; lime titles on ruled rows. */
.hp-method__outcome{position:relative;overflow:hidden}
.hp-method__outcome > .container{position:relative;z-index:1}
/* QA P1-5: normal bottom padding (the teachers lip covers --hp-lap of the band); the outline "50" adds no height — it
   sits low behind the right-hand tiles at a faint stroke, cropped by the band's bottom edge. */
.hp .hp-method__outcome{padding-bottom:calc(var(--section-y) + var(--hp-lap))}
.hp-method__dt{right:-.04em;bottom:calc(var(--hp-lap) - .2em);--dt-size:clamp(150px,26vw,380px);--dt-stroke:rgba(var(--c-green-rgb),.3)}
.hp-method__row--outcome{display:grid;grid-template-columns:minmax(0,1fr)}
.hp-method__eyebrow2{margin-bottom:12px}
.hp-method__h2--outcome{margin-bottom:24px}
.hp-method__mark{white-space:nowrap}
.hp-method__media{display:none}
/* The cut-out is shown as supplied (client, 24 Sep: no fill behind added images), standing on a cream hairline. */
.hp-method__shot{overflow:hidden;border-bottom:1px solid rgba(255,250,243,.28)}
.hp-outcomes{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.hp-outcome{padding:16px 16px 20px;border-radius:var(--radius-sm)}
.hp-outcome__rule{display:block;margin-bottom:14px}
.hp-outcome__title{font-size:20px;font-weight:800;line-height:1.3;color:var(--c-lime)}
/* Phones: the longest title ("Tự tin từ phản xạ đến giao tiếp", 15.2em) stays on one line instead of a short first line. */
@media (max-width:767.98px){.hp-outcome{container-type:inline-size}.hp-outcome__title{font-size:min(20px,100cqi / 15.8)}}
.hp-outcome__text{margin-top:8px;line-height:1.5;color:rgba(255,250,243,.86)}
@media (min-width:1024px){
  .hp-method__row--outcome{grid-template-columns:minmax(0,693fr) minmax(0,627fr);grid-template-areas:"title eyebrow" "media list";column-gap:clamp(32px,4vw,56px);align-items:start}
  .hp-method__eyebrow2{grid-area:eyebrow;align-self:center;margin:0;padding-left:20px}
  .hp-method__h2--outcome{grid-area:title;margin:0}
  .hp-method__media{grid-area:media;display:block;margin-top:32px}
  .hp-method__img{display:block;width:100%;height:auto;aspect-ratio:693/569;object-fit:cover;object-position:40% 38%}
  .hp-outcomes{grid-area:list;gap:8px;margin-top:24px}
  .hp-outcome{padding:20px 20px 24px}
}
@media (min-width:1200px){
  .hp-outcome__title{font-size:var(--fs-h3);line-height:1.265}
  .hp-outcome__text{margin-top:10px;font-size:var(--fs-body)}
}

/* ---------- 6. Teachers (3:69 / 98:1395 / 98:1168) — background-removed cut-outs on one hairline baseline ---------- */
.hp-teachers__head{display:grid;gap:12px;margin-bottom:var(--heading-gap)}
.hp-teachers__head .section-heading{margin:0}
.hp-teachers__quote{font-size:20px;font-weight:700;line-height:1.35}
.hp-teachers__lead{display:none;margin-top:12px;line-height:1.5}
.hp-teachers__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px;margin:0;padding:0;list-style:none}
/* Each card spans 2 rows of the list grid (portrait + credential / name + role) via subgrid, so names and roles line up
   across a row even when one credential wraps to 3 lines and its neighbour to 2. */
.hp-teacher{position:relative;min-width:0;display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:0;align-content:start}
.hp-teacher__body{min-width:0;container-type:inline-size}
.hp-teacher__tile{position:relative;margin:0}
/* Client, 24 Sep: the photos are shown exactly as supplied — transparent cut-outs, no tile colour, no blend or tint.
   A single hairline under each portrait grounds the figures. */
.hp-teacher__photo{position:relative;overflow:hidden;border-bottom:1px solid rgba(var(--c-ink-rgb),.2)}
.hp-teacher__img{display:block;width:100%;height:auto;aspect-ratio:318/400;object-fit:cover;object-position:50% 14%}
/* Head-size / crown-line normalisation per photo (teachers.php sets --s and --t): the whole cut-out is placed in the
   318:400 frame (width = s × frame, top = t% of the frame width); the hover zoom (.img-zoom) grows from the feet. */
.hp-teacher__photo{aspect-ratio:318/400}
.hp-teacher__photo .hp-teacher__img{position:absolute;top:0;left:calc((1 - var(--s,1)) * 50%);width:calc(var(--s,1) * 100%);max-width:none;height:auto;aspect-ratio:auto;margin-top:calc(var(--t,0) * 1%);object-fit:fill;transform-origin:50% 100%}
.hp-teacher__cred{display:none}
.hp-teacher__name{margin-top:10px;font-size:min(20px,11.6cqi);font-weight:800;line-height:1.3}
/* The name links to the full profile; the link's hit area covers the whole card. */
.hp-teacher__link{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:none}
.hp-teacher__link::after{content:"";position:absolute;inset:0;z-index:3}
.hp-teacher__link:focus-visible{outline:none}
.hp-teacher:has(.hp-teacher__link:focus-visible){outline:3px solid var(--c-ink);outline-offset:6px;border-radius:var(--radius-sm)}
.hp-teacher__role{margin-top:4px;font-size:16px;line-height:1.5;color:var(--c-ink)}
.hp-teacher__role strong{font-size:min(1em,100cqi / 11)}
.hp-teacher__role span,.hp-teacher__role strong{display:block}
.hp-teacher__role span{font-weight:400;color:rgba(var(--c-ink-rgb),.82)}
.hp-teacher__role strong{font-weight:700;color:var(--c-ink)}
.hp-teachers__more{display:flex;justify-content:center;margin-top:36px}
@media (min-width:768px){.hp-teachers__grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 20px}}
@media (min-width:1024px){
  .hp-teachers__head{grid-template-columns:minmax(0,611fr) minmax(0,659fr);gap:clamp(32px,4vw,50px);align-items:start}
  .hp-teachers__lead{display:block}
  /* Touch screens (no hover): the credential sits under the portrait with an olive margin rule. */
  .hp-teacher__cred{display:block;position:relative;margin-top:16px;padding-left:14px;font-size:15px;font-weight:400;line-height:1.4;color:var(--c-ink)}
  .hp-teacher__cred::before{content:"";position:absolute;left:0;top:.2em;bottom:.2em;width:2px;background:var(--c-green)}
  .hp-teacher__cred strong{font-weight:700}
}
/* Pointer desktops (client, 24 Sep): the credential shows only on hover — an ink panel rising over the lower portrait.
   Keyboard focus on the name link reveals it the same way. */
@media (min-width:1024px) and (hover:hover){
  .hp-teacher__cred{position:absolute;left:12px;right:12px;bottom:12px;z-index:2;margin:0;padding:14px 16px 16px 18px;border-radius:var(--radius-sm);background:var(--c-ink);color:var(--c-cream);font-size:14px;line-height:1.45;text-wrap:balance;box-shadow:0 18px 40px -20px rgba(var(--c-ink-rgb),.6);opacity:0;translate:0 14px;pointer-events:none;transition:opacity .35s var(--ease),translate .45s var(--ease)}
  .hp-teacher__cred::before{left:0;top:14px;bottom:14px;background:var(--c-lime)}
  .hp-teacher__cred strong{color:var(--c-lime)}
  .hp-teacher:hover .hp-teacher__cred,.hp-teacher:focus-within .hp-teacher__cred{opacity:1;translate:0 0}
}
@media (min-width:1200px){
  .hp-teachers__head{margin-bottom:48px}
  .hp-teachers__quote{font-size:var(--fs-h3);font-weight:600;line-height:1.6}
  .hp-teachers__lead{margin-top:16px;font-size:var(--fs-body)}
  .hp-teachers__grid{gap:30px}
  .hp-teacher__cred{font-size:16px}
  .hp-teacher__name{margin-top:12px;font-size:min(var(--fs-h3),11.6cqi);font-weight:800}
  .hp-teacher:first-child .hp-teacher__name{font-weight:900}
  .hp-teacher__role{margin-top:4px;font-size:16px;line-height:1.35}
  .hp-teachers__more{margin-top:48px}
}
@media (prefers-reduced-motion:reduce){.hp-teacher__cred{transition:none}}

/* ---------- 7. Carousels: moments (54:600, ink band) + feedback (15:527, cream band) ---------- */
.hp-moments,.hp-feedback{position:relative}
.hp-moments > .container,.hp-feedback > .container{position:relative;z-index:1}
.hp-carousel [data-carousel-track]{padding-block:4px 8px}
/* Video frames: a true 9:16 frame at every width — the 540×960 posters are shown whole (badge, QR, caption). */
.hp-carousel--video .carousel-slide{--slide-w:min(78vw,300px)}
.hp-video{position:relative}
.hp-video__media{display:block;width:100%;height:auto;aspect-ratio:9/16;object-fit:cover;object-position:50% 50%;border-radius:var(--radius-card)}
/* Empty slot (no video file yet): same 9:16 frame, fine diagonal hatch on cream, a centred thin play glyph. */
.hp-video__ph{display:grid;place-items:center;background:repeating-linear-gradient(135deg,rgba(var(--c-ink-rgb),.05) 0 1px,transparent 1px 10px),var(--c-cream);border:1px solid rgba(var(--c-ink-rgb),.14);color:rgba(var(--c-ink-rgb),.34)}
.hp-video__ph-glyph{display:block;width:44px;height:44px;margin-left:4px}
.hp-video__play{position:absolute;top:50%;left:50%;z-index:1;display:grid;place-items:center;width:64px;height:64px;padding:0;border:0;border-radius:var(--radius-pill);background:var(--c-lime);color:var(--c-ink);cursor:pointer;translate:-50% -50%;transition:scale .2s var(--ease),background-color .2s var(--ease)}
.hp-video__play[hidden]{display:none}
.hp-video__play svg{width:28px;height:28px;margin-left:3px}
.hp-video__play:focus-visible{outline:3px solid var(--c-ink);outline-offset:3px}
.hp-video__play:active{scale:.96}
@media (hover:hover){.hp-video__play:hover{background:var(--c-green);scale:1.06}}
@media (prefers-reduced-motion:reduce){.hp-video__play{transition:none}.hp-video__play:active{scale:1}}
.hp-feedback .carousel-slide{--slide-w:min(100%,688px)}
.hp-feedback__img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border:1px solid rgba(var(--c-ink-rgb),.12);border-radius:var(--radius-card)}
.hp-carousel__nav{justify-content:center;gap:16px;margin-top:24px}
.band--ink .hp-carousel__status{color:rgba(255,250,243,.8)}
.band--ink .hp-video__ph{background:repeating-linear-gradient(135deg,rgba(255,250,243,.05) 0 1px,transparent 1px 10px),rgba(255,250,243,.03);border-color:rgba(255,250,243,.14);color:rgba(255,250,243,.4)}
.hp-carousel__status{min-width:3.5em;text-align:center;color:var(--c-ink);font-variant-numeric:tabular-nums}
@media (min-width:768px){.hp-carousel--video .carousel-slide{--slide-w:min(300px,calc((100% - 20px) / 2))}}
@media (min-width:1200px){
  .hp-carousel [data-carousel-track]{gap:22px}
  .hp-carousel--video .carousel-slide{--slide-w:360px}
  .hp-carousel__nav{margin-top:32px;gap:14px}
}
@media (hover:hover){
  .hp-feedback__img{transition:translate .3s var(--ease),border-color .3s var(--ease)}
  .hp-feedback__slide:hover .hp-feedback__img{translate:0 -4px;border-color:var(--c-green)}
}
@media (prefers-reduced-motion:reduce){.hp-feedback__img{transition:none}.hp-feedback__slide:hover .hp-feedback__img{translate:none}}

/* ---------- 8. Schedule (4:2 / 98:1434 / 98:1087) — warm band, weekly timetable (client, 24 Sep) ----------
   Phones/tablets: one cream card per class — name + shift, a 7-day strip (class days filled), full-width button.
   ≥1024: a ruled grid — class | T2 … CN | action — with hairline column rules; class days are filled blocks
   (Ca 1 ink/lime, Ca 2 olive/ink), today's column is marked, rows highlight on hover. */
.hp-schedule .section-heading{position:relative;margin-bottom:28px}
.hp-schedule__note{max-width:58ch}
.hp-tt{--tt-rule:rgba(var(--c-ink-rgb),.14);display:grid;gap:12px}
.hp-tt__row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:18px 16px 16px;border:1px solid var(--tt-rule);border-radius:var(--radius-card);background:var(--c-cream);transition:box-shadow .3s var(--ease),border-color .3s var(--ease)}
.hp-tt__cls{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-bottom:10px;min-width:0}
.hp-tt__title{font-size:20px;font-weight:800;line-height:1.3;letter-spacing:-.01em}
.hp-tt__shift{font-size:14px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:rgba(var(--c-ink-rgb),.72)}
.hp-tt__meta{flex-basis:100%;font-size:var(--fs-small);color:var(--c-ink)}
.hp-tt__day{position:relative;display:grid;justify-items:center;align-content:start;gap:6px;min-width:0;padding:8px 0 9px;border-radius:var(--radius-sm);background:rgba(var(--c-ink-rgb),.045);font-size:13px;line-height:1.2;text-align:center}
.hp-tt__dname{font-weight:700;color:rgba(var(--c-ink-rgb),.72)}
.hp-tt__slot{font-size:11px;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.hp-tt__day.is-on{background:var(--c-green);color:var(--c-ink)}
.hp-tt__day.is-on .hp-tt__dname{color:var(--c-ink)}
.hp-tt__row--shift-1 .hp-tt__day.is-on{background:var(--c-ink);color:var(--c-lime)}
.hp-tt__row--shift-1 .hp-tt__day.is-on .hp-tt__dname{color:var(--c-cream)}
.hp-tt__act{grid-column:1 / -1;margin-top:14px}
.hp-tt__act .btn{width:100%;white-space:nowrap}
@media (max-width:1023.98px){.hp-tt__row.hp-tt__row--head{display:none}}
@media (hover:hover){.hp-tt__row:not(.hp-tt__row--head):hover{border-color:rgba(var(--c-green-rgb),.8);box-shadow:0 24px 48px -32px rgba(var(--c-ink-rgb),.35)}}
@media (min-width:1024px){
  .hp-tt{display:block;gap:0;border-top:1px solid rgba(var(--c-ink-rgb),.24)}
  .hp-tt__row,.hp-tt__row--head{display:grid;grid-template-columns:minmax(190px,2.4fr) repeat(7,minmax(44px,1fr)) 188px;gap:0;padding:0;border:0;border-bottom:1px solid var(--tt-rule);border-radius:0;background:none}
  .hp-tt__row--head{align-items:center}
  .hp-tt__row--head .hp-tt__act{align-self:stretch}
  .hp-tt__row--head{border-bottom-color:rgba(var(--c-ink-rgb),.24)}
  .hp-tt__row--head > *{padding:14px 0;font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(var(--c-ink-rgb),.72)}
  .hp-tt__row--head abbr{text-decoration:none;cursor:default}
  .hp-tt__row--head .hp-tt__day{align-self:stretch;align-content:center;background:none;border-radius:0;padding:4px}
  .hp-tt__row--head .hp-tt__day.is-today{background:rgba(var(--c-green-rgb),.1)}
  .hp-tt__row--head .hp-tt__day.is-today{color:var(--c-ink)}
  .hp-tt__row--head .hp-tt__day.is-today::after{content:"";position:absolute;left:30%;right:30%;bottom:-1px;height:3px;background:var(--c-green)}
  /* 16px inset (QA P2-11): the olive hover/focus bar on the row's left edge never touches the class name. */
  .hp-tt__cls{grid-column:auto;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;margin:0;padding:22px 20px 22px 16px}
  .hp-tt__row--head > .hp-tt__cls{padding-left:16px}
  .hp-tt__dname{display:none}
  .hp-tt__title{white-space:nowrap}
  .hp-tt__day{display:grid;place-items:center;align-content:center;padding:12px 8px;border-left:1px solid var(--tt-rule);border-radius:0;background:none}
  .hp-tt__day.is-today{background:rgba(var(--c-green-rgb),.1)}
  .hp-tt__day.is-on:not(.is-today),.hp-tt__row--shift-1 .hp-tt__day.is-on:not(.is-today){background:none}
  .hp-tt__day.is-on.is-today{background:rgba(var(--c-green-rgb),.1)}
  .hp-tt__day.is-on .hp-tt__slot{display:grid;place-items:center;width:100%;min-height:52px;border-radius:var(--radius-sm);background:var(--c-green);color:var(--c-ink);font-size:14px;transition:translate .3s var(--ease)}
  .hp-tt__row--shift-1 .hp-tt__day.is-on .hp-tt__slot{background:var(--c-ink);color:var(--c-lime)}
  .hp-tt__act{grid-column:auto;display:flex;align-items:center;justify-content:flex-end;margin:0;padding:12px 0 12px 20px;border-left:1px solid var(--tt-rule)}
  .hp-tt__act .btn{width:auto}
  .hp-tt__row:not(.hp-tt__row--head){transition:background-color .25s var(--ease),box-shadow .25s var(--ease)}
  @media (hover:hover){
    .hp-tt__row:not(.hp-tt__row--head):hover{background:rgba(var(--c-ink-rgb),.03);box-shadow:inset 3px 0 0 var(--c-green);border-color:var(--tt-rule)}
    .hp-tt__row:hover .hp-tt__day.is-on .hp-tt__slot{translate:0 -2px}
  }
  .hp-tt__row:not(.hp-tt__row--head):has(:focus-visible){background:rgba(var(--c-ink-rgb),.03);box-shadow:inset 3px 0 0 var(--c-green)}
}
@media (min-width:1200px){
  .hp-tt__cls{padding-block:26px}
  .hp-tt__title{font-size:var(--fs-h3);line-height:1.265}
}
@media (prefers-reduced-motion:reduce){.hp-tt__row,.hp-tt__slot{transition:none!important}}

/* Day focus (research P16): the day headers are toggle buttons (≥1024, where the header row shows). Hover previews,
   a press pins it (aria-pressed); the other day columns dim to 35% — nothing is filtered. Phones: today's cell is
   ringed in every row strip. */
.hp-tt__dbtn{display:grid;place-items:center;width:100%;min-height:44px;padding:0;border:0;border-radius:var(--radius-sm);background:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;transition:background-color .2s var(--ease),color .2s var(--ease)}
.hp-tt__dbtn abbr{text-decoration:none;cursor:inherit}
.hp-tt__dbtn:focus-visible{outline:3px solid var(--c-ink);outline-offset:-3px}
.hp-tt__dbtn[aria-pressed="true"]{background:var(--c-ink);color:var(--c-lime)}
@media (hover:hover){.hp-tt__dbtn:hover{background:rgba(var(--c-ink-rgb),.06);color:var(--c-ink)}.hp-tt__dbtn[aria-pressed="true"]:hover{background:var(--c-ink);color:var(--c-lime)}}
.hp-tt__dbtn:active{scale:.96}
.hp-tt .hp-tt__day[data-day]{transition:opacity .25s var(--ease)}
.hp-tt[data-focus-day] .hp-tt__day[data-day]:not(.is-focus){opacity:.35}
@media (max-width:1023.98px){
  .hp-tt__row:not(.hp-tt__row--head) .hp-tt__day.is-today{outline:2px solid var(--c-ink);outline-offset:2px}
  .hp-tt__row:not(.hp-tt__row--head) .hp-tt__day.is-today .hp-tt__dname{color:var(--c-ink);font-weight:800}
  .hp-tt__row--shift-1 .hp-tt__day.is-on.is-today .hp-tt__dname{color:var(--c-cream)}
}
@media (prefers-reduced-motion:reduce){.hp-tt__dbtn,.hp-tt .hp-tt__day[data-day]{transition:none}.hp-tt__dbtn:active{scale:1}}

/* ---------- 9. FAQ (shared, always expanded; lime-50 band) + canonical form tile on an olive band (4:64) ---------- */
/* Figma keeps "Những câu hỏi / thường gặp" at full h2 size on phones (2 lines) — no shrink-to-one-line. */
.hp .faq-section .faq__head .h2{font-size:var(--fs-h2)}
.hp .faq__q,.hp .faq__a,.hp .faq__a p{text-wrap:pretty}
.hp .faq__a{max-width:none;color:rgba(var(--c-ink-rgb),.82)}
@media (min-width:1200px){.hp .faq__a{max-width:55em}}
.hp-faq-band{padding-bottom:calc(var(--section-y) + 24px)}
.hp-contact{position:relative;overflow:hidden}
.hp-contact > .container{position:relative;z-index:1}
@media (min-width:1200px){.hp-contact__tile{max-width:1080px;margin-inline:auto}}

/* ---------- 10. Motion ---------- */
/* Row highlights (.row-hover) and card lifts (.card-hover) come from base.css.
   Hero load sequence (research P5): html.hp-intro is set by the inline script in hero.php only when motion is allowed
   and this session has not seen it yet, so no JS / reduced motion / a repeat view all show the finished hero. ~1.1s on
   desktop, ~850ms on phones (--hp-t scales every duration and delay):
   h1 lines rise from a mask 80ms apart → the lime bar under "người đi làm" draws left to right → the cut-out reveals
   upward from its baseline (clip-path, spring) → the glass badges pop (spring) → the CTAs arrive. */
@media (prefers-reduced-motion:no-preference){
  .hp-intro .hp-hero{--hp-t:.77}
  @media (min-width:768px){.hp-intro .hp-hero{--hp-t:1}}
  /* Lines: the outer line is the mask (clipped only below, so diacritics above are never cut; the clip is dropped
     at the end), the inner span rises from under it. */
  .hp-intro .hp-hero__line{animation:hp-mask calc(var(--hp-t) * 760ms) linear both}
  .hp-intro .hp-hero__li{animation:hp-line-up calc(var(--hp-t) * 560ms) var(--spring,var(--ease)) backwards}
  .hp-intro .hp-hero__line:nth-child(2),.hp-intro .hp-hero__line:nth-child(2) .hp-hero__li{animation-delay:calc(var(--hp-t) * 80ms)}
  .hp-intro .hp-hero__line:nth-child(3),.hp-intro .hp-hero__line:nth-child(3) .hp-hero__li{animation-delay:calc(var(--hp-t) * 160ms)}
  .hp-intro .hp-hero__hl{animation:hp-hl-draw calc(var(--hp-t) * 380ms) cubic-bezier(.65,0,.35,1) calc(var(--hp-t) * 420ms) both}
  .hp-intro .hp-hero__frame{animation:hp-portrait-up calc(var(--hp-t) * 620ms) var(--spring,var(--ease)) calc(var(--hp-t) * 300ms) both}
  .hp-intro .hp-hero__marks{animation:hp-fade calc(var(--hp-t) * 400ms) var(--ease) calc(var(--hp-t) * 260ms) both}
  .hp-intro .hp-hero__badge--hours{animation:hp-pop calc(var(--hp-t) * 420ms) var(--spring-snappy,var(--ease)) calc(var(--hp-t) * 640ms) backwards,hp-drift 6s ease-in-out 1.3s infinite}
  .hp-intro .hp-hero__badge--class{animation:hp-pop calc(var(--hp-t) * 420ms) var(--spring-snappy,var(--ease)) calc(var(--hp-t) * 720ms) backwards,hp-drift 7s ease-in-out 1.6s infinite reverse}
  .hp-intro .hp-hero__actions > *{animation:hp-cta-in calc(var(--hp-t) * 380ms) var(--ease-out-quick,var(--ease)) calc(var(--hp-t) * 700ms) backwards}
  .hp-intro .hp-hero__actions > :nth-child(2){animation-delay:calc(var(--hp-t) * 760ms)}
}
@keyframes hp-mask{from,99%{clip-path:inset(-1em -1em 0 -1em)}to{clip-path:none}}
@keyframes hp-line-up{from{translate:0 110%}to{translate:0 0}}
@keyframes hp-hl-draw{from{background-size:0% var(--hl-h,.5em)}to{background-size:100% var(--hl-h,.5em)}}
@keyframes hp-portrait-up{from{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes hp-fade{from{opacity:0}to{opacity:1}}
@keyframes hp-pop{from{opacity:0;transform:translateY(10px) scale(.6)}to{opacity:1;transform:none}}
@keyframes hp-cta-in{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}

/* Feedback (QA P2-5): the focus carousel (.fcar) is centred on the viewport and bleeds evenly off both sides, so from
   768 up the heading is centred on the same axis — heading, centre slide and controls share one centre line. */
@media (min-width:768px){.hp-feedback .section-heading{margin-inline:auto;text-align:center}.hp-feedback .section-heading__desc{margin-inline:auto}}
/* Feedback title: "The Metaphoric Mind?" is a no-break unit; on phones the size fits it to the container. */
@media (max-width:767.98px){.hp-feedback .h2{font-size:min(var(--fs-h2),calc((100vw - 2 * var(--gutter)) / 11.9))}}

/* ---------- 11. Round 4: swipe rails on phones/tablets (base.css §18.2) ---------- */
@media (max-width:1023.98px){
  .hp-audience__grid.rail{--rail-w:min(86%,340px)}
  .hp-audience__grid.rail .hp-audience__title{font-size:22px}
  .hp-pains.rail > .hp-pain{padding:20px 20px 24px;border:1px solid rgba(var(--c-ink-rgb),.08);border-radius:var(--radius-card);background:var(--c-cream-warm)}
  .hp-outcomes.rail > .hp-outcome{padding:20px 20px 24px;border:1px solid rgba(255,250,243,.12);border-radius:var(--radius-card);background:rgba(255,250,243,.05)}
}

/* ---------- 12. Round 4: bento grids (≥1024) — pains on the cream band, outcomes on the ink band ----------
   Each tile is a flat Guideline colour (ink · lime · warm · olive); a large index numeral sits top-right; the index
   rule fills on hover (base.css). Phones/tablets keep the swipe rail. */
.hp-pains{counter-reset:pain}
.hp-pain{counter-increment:pain}
@media (min-width:1024px){
  .hp-method__row--pain{grid-template-columns:minmax(0,7fr) minmax(0,4fr);align-items:stretch}
  .hp-method__head{position:relative;top:auto;align-self:center}
  .hp-pains{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .hp-pain{position:relative;display:flex;flex-direction:column;min-height:236px;padding:28px 28px 30px;border:1px solid rgba(var(--c-ink-rgb),.08);border-radius:var(--radius-card);background:var(--c-cream-warm);--band-accent:var(--c-green)}
  .hp-pain::after{content:counter(pain,decimal-leading-zero);position:absolute;top:22px;right:26px;font-size:40px;font-weight:800;line-height:1;letter-spacing:-.03em;color:rgba(var(--c-ink-rgb),.14);font-variant-numeric:tabular-nums}
  .hp-pain__rule{max-width:calc(100% - 72px)}
  .hp-pain__title{margin-top:auto;padding-top:48px}
  .hp-pain:nth-child(1){background:var(--c-ink);border-color:var(--c-ink);color:var(--c-cream);--band-accent:var(--c-lime);--band-rule:rgba(255,250,243,.2)}
  .hp-pain:nth-child(1) .hp-pain__text{color:rgba(255,250,243,.78)}
  .hp-pain:nth-child(1)::after{color:rgba(217,253,156,.3)}
  .hp-pain:nth-child(2){background:var(--c-lime);border-color:var(--c-lime);--band-accent:var(--c-ink)}
  .hp-pain:nth-child(4){background:var(--c-green);border-color:var(--c-green);--band-accent:var(--c-ink);--band-rule:rgba(var(--c-ink-rgb),.25)}
  .hp-pain:nth-child(4) .hp-pain__text{color:var(--c-ink)}
  .hp-pain:nth-child(4)::after{color:rgba(var(--c-ink-rgb),.22)}
  .hp-pain .tmm-mark--rule-index{color:var(--band-accent)}
  /* Outcomes: three tiles beside the portrait; the first is lime, the others quiet glass-free tints of cream. */
  .hp-outcomes{counter-reset:out;gap:14px}
  .hp-outcome{position:relative;counter-increment:out;padding:24px 26px 26px;border:1px solid rgba(255,250,243,.12);border-radius:var(--radius-card);background:rgba(255,250,243,.05)}
  .hp-outcome::after{content:counter(out,decimal-leading-zero);position:absolute;top:20px;right:24px;font-size:28px;font-weight:800;line-height:1;color:rgba(217,253,156,.28)}
  .hp-outcome__rule{max-width:calc(100% - 56px)}
  .hp-outcome:first-child{background:var(--c-lime);border-color:var(--c-lime);--band-accent:var(--c-ink);--band-rule:rgba(var(--c-ink-rgb),.2)}
  .hp-outcome:first-child .hp-outcome__title{color:var(--c-ink)}
  .hp-outcome:first-child .hp-outcome__text{color:rgba(var(--c-ink-rgb),.82)}
  .hp-outcome:first-child::after{color:rgba(var(--c-ink-rgb),.22)}
  .hp-outcome:first-child .hp-outcome__rule{color:var(--c-ink)}
  .hp-method__media{margin-top:24px}
  .hp-method__shot{border-radius:var(--radius-card);border:1px solid rgba(255,250,243,.12);background:none}
}
@media (min-width:1200px){.hp-method__row--pain{grid-template-columns:minmax(0,1fr) minmax(0,500px);gap:56px}}
@media (min-width:1024px){.hp-pain__title{font-size:20px;line-height:1.3}.hp-pain{padding:26px 24px 28px}}
@media (min-width:1200px){.hp-method__row--pain{grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:48px}}

/* ---------- 13. Schedule: rows whose weekdays are not fixed yet + shift legend (sheet sync, 24 Sep) ---------- */
.hp-tt__tbd{grid-column:1 / -1;display:flex;align-items:center;justify-content:center;min-height:52px;padding:10px 14px;border:1px dashed rgba(var(--c-ink-rgb),.25);border-radius:var(--radius-sm);font-size:14px;font-weight:600;color:rgba(var(--c-ink-rgb),.72);text-align:center}
.hp-tt__meta{font-size:14px;font-weight:600;color:var(--c-ink)}
.hp-tt__legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:18px;font-size:14px;font-weight:600;color:rgba(var(--c-ink-rgb),.8)}
.hp-tt__key{display:inline-block;width:14px;height:14px;border-radius:4px;background:var(--c-ink)}
.hp-tt__key--2{margin-left:8px;background:var(--c-green)}
@media (min-width:1024px){
  .hp-tt__tbd{grid-column:2 / span 7;margin:12px 0;border-left:0;border-radius:var(--radius-sm)}
  .hp-tt__legend{margin-top:20px}
}
@media (min-width:1024px){.hp-tt__meta{flex-basis:auto;margin-top:2px;font-size:13px;color:rgba(var(--c-ink-rgb),.8)}}
.hp-tt__meta{white-space:nowrap}@media (min-width:1024px) and (max-width:1199.98px){.hp-tt__meta{font-size:12px}}

/* ---------- 14. Hero key-point badges (client, 24 Sep): "50 giờ học" and "≤ 5 học viên/lớp" on the portrait ----------
   Glass cards (solid cream fallback) with an olive numeral; they rise in after the portrait, then drift ±4px slowly,
   out of phase. Static under reduced motion. */
.hp-hero__crop > .hp-hero__badge{position:absolute;z-index:3;display:flex;width:max-content;align-items:center;gap:10px;margin:0;padding:10px 14px 10px 12px;border:1px solid rgba(255,255,255,.7);border-radius:var(--radius-card);background:rgba(255,250,243,.94);box-shadow:0 1px 2px rgba(var(--c-ink-rgb),.06),0 22px 44px -22px rgba(var(--c-ink-rgb),.45);color:var(--c-ink);white-space:nowrap}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.hp-hero__badge{background:rgba(255,250,243,.66);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px)}}
.hp-hero__badge-num{display:grid;place-items:center;min-width:44px;height:44px;padding:0 8px;border-radius:14px;background:var(--c-green-deep);color:#fff;font-size:20px;font-weight:900;line-height:1;letter-spacing:-.02em}
.hp-hero__badge--class .hp-hero__badge-num{background:var(--c-ink);color:var(--c-lime)}
.hp-hero__badge-label{font-size:14px;font-weight:700;line-height:1.2}
/* Both badges stay inside the container (QA P2-2): "50" may lean into the column gap on the copy side, "≤ 5" ends on
   the portrait's right edge (= the container edge), never across it. */
.hp-hero__badge--hours{left:4px;top:30%}
.hp-hero__badge--class{right:4px;bottom:18%}
@media (min-width:768px){.hp-hero__badge--hours{left:-16px;top:28%}.hp-hero__badge--class{right:4px;bottom:16%}}
@media (min-width:1200px){
  .hp-hero__badge{gap:12px;padding:12px 18px 12px 12px}
  .hp-hero__badge-num{min-width:52px;height:52px;font-size:24px}
  .hp-hero__badge-label{font-size:15px}
  .hp-hero__badge--hours{left:-40px;top:32%}
}
/* After the load sequence (or straight away on a repeat view) the badges drift ±6px, slowly and out of phase. */
@media (prefers-reduced-motion:no-preference){
  .hp-hero__badge--hours{animation:hp-drift 6s ease-in-out 1.3s infinite}
  .hp-hero__badge--class{animation:hp-drift 7s ease-in-out 1.6s infinite reverse}
}
@keyframes hp-drift{0%,100%{translate:0 0}50%{translate:0 -6px}}
/* Lime replaces the warm yellow (24 Sep): the third pain tile is cream with a hairline ink border and a faint lime inner
   tint (QA P2-28), so the four read as one set — ink · lime · cream-with-border · olive. */
@media (min-width:1024px){.hp-pain:nth-child(3){background:var(--c-cream);border-color:rgba(var(--c-ink-rgb),.55);box-shadow:inset 0 0 0 6px rgba(217,253,156,.5)}}
@media (max-width:1023.98px){.hp-pains.rail > .hp-pain{background:var(--c-cream)}}

/* Hero badges — liquid glass (client, 24 Sep): a clear, bright lens (white → transparent gradient, heavy blur and
   saturation), a specular top edge and a soft inner rim; the numeral chip floats inside it. */
.hp-hero__crop > .hp-hero__badge{gap:10px;padding:7px 16px 7px 7px;border:1px solid rgba(255,255,255,.55);border-radius:999px;background:linear-gradient(135deg,rgba(255,255,255,.62),rgba(255,255,255,.22));box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 -1px 0 rgba(255,255,255,.25),inset 0 0 0 1px rgba(255,255,255,.12),0 14px 34px -14px rgba(var(--c-ink-rgb),.35)}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .hp-hero__crop > .hp-hero__badge{background:linear-gradient(135deg,rgba(255,255,255,.5),rgba(255,255,255,.08));-webkit-backdrop-filter:blur(16px) saturate(1.9) brightness(1.06);backdrop-filter:blur(16px) saturate(1.9) brightness(1.06)}
}
.hp-hero__crop > .hp-hero__badge::before{content:"";position:absolute;inset:1px;border-radius:inherit;background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0) 46%);opacity:.7;pointer-events:none}
.hp-hero__badge-num{position:relative;min-width:38px;height:38px;border-radius:999px;font-size:17px;box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
.hp-hero__badge-label{position:relative;font-size:13px;font-weight:700}
@media (min-width:1200px){.hp-hero__badge-num{min-width:44px;height:44px;font-size:19px}.hp-hero__badge-label{font-size:14px}.hp-hero__crop > .hp-hero__badge{padding:7px 18px 7px 7px}}
/* Badges: no deep green — "50" on lime, "≤ 5" on ink. */
.hp-hero__badge-num{background:var(--c-lime);color:var(--c-ink)}
/* Client, 24 Sep: cut-out photos stand on the page itself — no colour field behind them. */
.hp-hero__field{display:none}
/* USP strip keeps moving under reduced motion (client, 24 Sep), slower and on one line. */
@media (prefers-reduced-motion:reduce){
  .hp-usp__marquee[data-marquee-always]{justify-content:flex-start;padding-inline:0;flex-wrap:nowrap}
  .hp-usp__marquee[data-marquee-always] .marquee__track,.hp-usp__marquee[data-marquee-always] .hp-usp__group{flex-wrap:nowrap;justify-content:flex-start;min-width:max-content}
  .hp-usp__marquee[data-marquee-always].is-running .marquee__track{animation:tmm-marquee calc(var(--marquee-duration) * 2) linear infinite!important;animation-duration:calc(var(--marquee-duration) * 2)!important;animation-iteration-count:infinite!important}
  .hp-usp__marquee[data-marquee-always].is-running.is-paused .marquee__track{animation-play-state:paused}
}
/* Mobile hero: the secondary "Khám phá các khoá học" link is centred under the full-width CTA. */
@media (max-width:767.98px){.btn.hp-hero__link{align-self:center}}
