/* ==========================================================================
   TIAD Student Web — Public site (homepage, catalog, packages, evidence)
   Same Campus language as the workspace: blue-grey canvas, white cards.
   ========================================================================== */
.site { max-width: 1600px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 56px); }

/* Header */
.pub-hdr { display: flex; align-items: center; gap: 28px; padding: 30px 0; }
.pub-nav { display: flex; align-items: center; gap: 6px; margin: 0 auto; }
.pub-nav button {
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: var(--fs-md);
  transition: background .2s, color .2s;
}
.pub-nav button:hover { color: var(--ink); }
.pub-nav button.on { background: var(--surface); color: var(--ink); font-weight: 400; }
.pub-actions { display: flex; align-items: center; gap: 10px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: clamp(32px, 4.4vw, 80px);
  overflow: hidden;
}
.hero-chip { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: var(--r-pill); background: var(--page); font-size: var(--fs-sm); color: var(--ink-2); }
.hero-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-title {
  font-size: clamp(40px, 4.2vw, 76px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 28px 0 24px;
}
.hero-title em { font-style: normal; color: var(--accent-ink); white-space: nowrap; }
#pub-body > section { margin-top: 96px; }
#pub-body > section.hero { margin-top: 0; }
#pub-body > .exam-strip + section { margin-top: 24px; }
#pub-body .sec-h { margin-top: 0; }
.hero-sub { font-size: clamp(16px, 1.2vw, 19px); color: var(--ink-3); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 40px 0 48px; }
.hero-proof { display: flex; align-items: center; gap: 18px; }
.av-stack { display: flex; }
.av-stack .av { border: 3px solid var(--surface); margin-left: -12px; }
.av-stack .av:first-child { margin-left: 0; }
.hero-proof-t { font-weight: 400; }
.hero-proof-s { font-size: var(--fs-sm); color: var(--ink-3); }

/* Hero visual */
.hv {
  position: relative;
  background: var(--page);
  border-radius: 32px;
  padding: 36px;
  min-height: 560px;
  overflow: hidden;
}
.hv-grid { position: absolute; inset: 0; opacity: .7; }
.hv .resume { max-width: 470px; }
.hv .resume-in { padding: 28px 30px 24px; }
.hv .resume-mid { margin: 20px 0 24px; gap: 20px; }
.hv .resume-logo { width: 64px; height: 64px; font-size: 17px; border-radius: 14px; }
.hv .resume-title { font-size: 22px; }
.hv .resume-sub { font-size: var(--fs-md); }
.hv .resume-foot { padding-top: 20px; }
.hv-journey {
  position: absolute;
  right: 36px;
  bottom: 36px;
  width: 44%;
  max-width: 280px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 26px 24px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.hv-journey .hj-t { font-weight: 400; margin-top: 14px; }
.hv-journey .hj-s { font-size: var(--fs-sm); color: var(--ink-3); }
.hv-score {
  position: absolute;
  left: 36px;
  bottom: 60px;
  width: calc(56% - 60px);
  max-width: 320px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.hv-score svg { width: 100%; height: 70px; margin-top: 10px; }

/* Exam strip */
.exam-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px clamp(8px, 2vw, 40px);
  flex-wrap: wrap;
}
.exam-strip span { font-size: clamp(20px, 1.8vw, 28px); font-weight: 400; letter-spacing: -0.03em; color: var(--ink-4); transition: color .2s; cursor: default; }
.exam-strip span:hover { color: var(--ink); }
.exam-strip .lead { font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; color: var(--ink-3); }

/* Roadmap */
.road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.road-step { position: relative; padding: 8px 32px 4px 0; }
.road-step + .road-step { padding-left: 32px; border-left: 1px solid var(--line); }
.road-letter {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--page);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 26px;
}
.road-step:first-child .road-letter { background: var(--accent); color: var(--ink); }
.road-t { font-size: var(--fs-lg); font-weight: 400; }
.road-s { color: var(--ink-3); font-size: var(--fs-sm); margin-top: 6px; }
.road-p { margin-top: 18px; }

/* Exam guide */
.guide-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.guide-stats > div { background: var(--page); border-radius: var(--r-md); padding: 20px 22px; }
.guide-name { font-size: clamp(24px, 2vw, 30px); font-weight: 400; letter-spacing: -0.03em; margin-top: 28px; }
.guide-desc { color: var(--ink-3); margin-top: 10px; max-width: 640px; }

.cta-sky { position: relative; background: var(--sky); color: #fff; border-radius: var(--r-lg); padding: 40px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; }
.cta-sky h3 { color: #fff; font-size: clamp(26px, 2.2vw, 34px); letter-spacing: -0.03em; max-width: 360px; }
.cta-sky p { opacity: .9; margin-top: 12px; max-width: 360px; }
.cta-sky .btn { align-self: flex-start; margin-top: 36px; position: relative; }
.cta-sky { isolation: isolate; }
.cta-sky::after { content: ""; position: absolute; right: -25%; bottom: -40%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(91,225,91,.6), transparent 65%); z-index: -1; }
.cta-sky svg.deco { display: none; }

/* Teacher card */
.tc { background: var(--surface); border-radius: var(--r-lg); padding: 14px 14px 24px; }
.tc .cover { aspect-ratio: 1 / 1; }
.tc-name { font-size: var(--fs-lg); font-weight: 400; margin: 20px 10px 4px; }
.tc-role { font-size: var(--fs-sm); color: var(--ink-3); margin: 0 10px 16px; min-height: 2.9em; }
.tc .chips { margin: 0 10px; gap: 6px; }
.tc .chip { height: 30px; padding: 0 12px; font-size: 12.5px; }

/* Hall of fame */
.hof { display: flex; align-items: center; gap: 18px; background: var(--surface); border-radius: var(--r-lg); padding: 22px 24px; }
.hof-score { margin-left: auto; text-align: right; flex-shrink: 0; }
.hof-score b { display: block; font-weight: 400; font-size: var(--fs-lg); }

/* Big CTA band */
.band {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: clamp(40px, 5vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  overflow: hidden;
}
.band h2 { position: relative; font-size: clamp(32px, 3.4vw, 56px); letter-spacing: -0.045em; line-height: 1.08; max-width: 760px; }
.band h2 em { font-style: normal; color: var(--accent-ink); }
.band .row { position: relative; }
.band .deco { position: absolute; right: 0; top: 0; height: 100%; opacity: .5; pointer-events: none; }

/* Footer */
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 32px; }
.foot h5 { font-size: var(--fs-sm); font-weight: 400; color: var(--ink-3); margin-bottom: 18px; letter-spacing: 0; }
.foot a, .foot p { display: block; margin-bottom: 12px; color: var(--ink-2); cursor: pointer; }
.foot a:hover { color: var(--accent-ink); }
.foot-note { color: var(--ink-3); max-width: 320px; margin-top: 18px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 40px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: var(--fs-sm); }

/* Inner public pages */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 0 36px; }
.page-title { font-size: clamp(36px, 3.6vw, 60px); font-weight: 400; letter-spacing: -0.045em; line-height: 1.05; }
.page-title em { font-style: normal; color: var(--accent-ink); }
.page-sub { color: var(--ink-3); margin-top: 12px; font-size: var(--fs-lg); }

.pkg { background: var(--surface); border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; }
.pkg.feat { background: var(--sky); color: #fff; }
.pkg.feat .muted, .pkg.feat .pkg-old { color: rgba(255, 255, 255, .8); }
.pkg.feat .pkg-name, .pkg.feat .pkg-price { color: #fff; }
.pkg.feat .pkg-li::before { background: var(--surface); }
.pkg-name { font-size: var(--fs-xl); font-weight: 400; line-height: 1.3; margin: 22px 0 10px; }
.pkg-price { font-size: 40px; font-weight: 400; letter-spacing: -0.04em; margin-top: 26px; }
.pkg-old { text-decoration: line-through; color: var(--ink-3); font-size: var(--fs-md); margin-left: 10px; letter-spacing: 0; font-weight: 400; }
.pkg-list { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 36px; }
.pkg-li { position: relative; padding-left: 22px; font-size: var(--fs-md); }
.pkg-li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pkg .btn { margin-top: auto; }

.qr { width: 200px; height: 200px; margin: 0 auto; border-radius: var(--r-md); background: var(--page); padding: 22px; }

@media (max-width: 1200px) {
  .hero { grid-template-columns: 1fr; }
  .pub-nav { display: none; }
  .pub-actions { margin-left: auto; }
  .road { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .road-step:nth-child(3) { border-left: none; padding-left: 0; }
  .foot { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hv { min-height: 620px; padding: 20px; }
  .hv-journey { right: 20px; bottom: 20px; width: 220px; }
  .hv-score { display: none; }
  .road { grid-template-columns: 1fr; }
  .road-step + .road-step { border-left: none; padding-left: 0; }
  .guide-stats { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Homepage v3 — bold type + people in shapes, bento, course carousel, fame
   ========================================================================== */

/* Hero */
.hx {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3.6vw, 64px) clamp(24px, 4.4vw, 84px) clamp(32px, 3.6vw, 56px);
  overflow: hidden;
  isolation: isolate;
}
.hx::before, .hx::after {
  content: "";
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  z-index: -1;
}
.hx::before { left: -12%; top: 38%; background: #E3FAE3; }
.hx::after { right: -10%; top: 30%; background: #E6E6E6; }
.hx-word {
  position: relative;
  font-size: clamp(88px, 15.6vw, 280px);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: .84;
  text-align: center;
  margin: 10px 0 0;
  white-space: nowrap;
  color: var(--ink);
  animation: riseIn 1s var(--ease) both;
}
.hx-tag {
  position: absolute;
  right: 6%;
  bottom: 4%;
  font-size: clamp(16px, 1.7vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  background: var(--accent);
  color: var(--ink);
  padding: .45em .7em;
  transform: rotate(-3deg);
  animation: tagIn .9s .45s var(--ease) both;
}
.hx-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 56px); margin: clamp(36px, 4vw, 64px) 2% 0; }
.hx-p { position: relative; animation: popIn2 .9s var(--ease) both; }
.hx-p:nth-child(2) { animation-delay: .1s; margin-top: 4%; }
.hx-p:nth-child(3) { animation-delay: .2s; }
.hx-p:nth-child(4) { animation-delay: .3s; margin-top: 4%; }
.hx-p .shp { transition: transform .6s var(--ease); }
.hx-p:hover .shp { transform: scale(1.03) rotate(-1.5deg); }
.hx-name {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .25);
}
.hx-bottom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: clamp(48px, 5vw, 80px); }
.hx-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
.hx-stat { padding: 0 clamp(20px, 3vw, 52px); border-left: 1px solid var(--line-2); }
.hx-stat:first-child { border-left: none; padding-left: 0; }
.hx-num { font-size: clamp(38px, 3.6vw, 60px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.hx-lbl { white-space: nowrap; margin-top: 12px; color: var(--ink-2); line-height: 1.45; }
.hx-copy { font-size: clamp(16px, 1.25vw, 20px); line-height: 1.6; color: var(--ink); max-width: 560px; }
.hx-cta { display: flex; align-items: center; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.hx-cta .btn-primary { border-radius: 14px; height: 56px; padding: 0 30px; font-size: var(--fs-lg); }
.hx-link { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-lg); font-weight: 500; cursor: pointer; }
.hx-link:hover { color: var(--primary); }

@keyframes riseIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes tagIn { from { opacity: 0; transform: translateY(16px) rotate(-12deg) scale(.8); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes popIn2 { from { opacity: 0; transform: translateY(40px) scale(.9); } to { opacity: 1; transform: none; } }

/* Bento (Cognix-like) */
.bx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.bx-card { position: relative; border-radius: var(--r-lg); padding: 34px; min-height: 380px; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.bx-dark { background: var(--dark); color: #fff; }
.bx-white { background: var(--surface); }
.bx-indigo { background: var(--primary); color: #fff; }
.bx-indigo::after { content: ""; position: absolute; right: -20%; bottom: -30%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(91, 225, 91, .7), transparent 65%); z-index: -1; }
.bx-k { font-size: var(--fs-sm); opacity: .65; }
.bx-t { font-size: clamp(22px, 1.8vw, 30px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.22; margin-top: 14px; max-width: 360px; }
.bx-dark .bx-t, .bx-indigo .bx-t { color: #fff; }
.bx-nums { display: flex; gap: 28px; margin-top: auto; align-items: flex-end; }
.bx-nums > div + div { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .18); }
.bx-n { font-size: clamp(48px, 4.4vw, 76px); font-weight: 400; letter-spacing: -0.06em; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.bx-n small { font-size: .45em; letter-spacing: 0; margin-left: 2px; }
.bx-play { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 2; transition: transform .3s var(--ease); }
.bx-play:hover { transform: scale(1.08); }
.bx-play::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { opacity: .5; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.35); } }
.bx-person { position: absolute; right: -6%; bottom: -2px; width: 64%; z-index: 0; }
.bx-white .bx-cap { margin-top: auto; position: relative; z-index: 1; font-size: var(--fs-lg); line-height: 1.4; max-width: 46%; }
.bx-icons { display: flex; gap: 12px; margin-top: auto; }
.bx-icons button { width: 64px; height: 64px; border-radius: 18px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: transform .3s var(--ease); }
.bx-icons button:hover { transform: translateY(-3px); }
.bx-indigo .bx-person { width: 48%; right: 6%; bottom: 6%; }

/* Course carousel */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.cc2 { background: var(--surface); border-radius: var(--r-lg); padding: 12px 12px 22px; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.cc2:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .3); }
.cc2 .cb .shp { transition: transform .6s var(--ease); }
.cc2:hover .cb .shp { transform: translateY(-4px) scale(1.03); }
.cc2-b { padding: 18px 10px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cc2-t { font-weight: 500; font-size: var(--fs-lg); line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.76em; }
.cc2-m { display: flex; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: var(--fs-sm); }
.cc2-f { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.cc2-p { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.cc2-p s { font-size: 13px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }

/* Hall of fame */
.fame { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.spot { position: relative; background: var(--primary); color: #fff; border-radius: var(--r-lg); padding: 34px; overflow: hidden; display: flex; flex-direction: column; min-height: 520px; isolation: isolate; }
.spot::after { content: ""; position: absolute; right: -30%; top: -25%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(91, 225, 91, .65), transparent 65%); z-index: -1; }
.spot-k { display: flex; align-items: center; justify-content: space-between; position: relative; }
.spot-in { position: relative; margin-top: auto; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.spot-in.out { opacity: 0; transform: translateY(12px); }
.spot .av { border: 4px solid rgba(255, 255, 255, .45); }
.spot-name { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin-top: 22px; color: #fff; }
.spot-school { opacity: .85; }
.spot-score { font-size: clamp(64px, 5.4vw, 96px); font-weight: 500; letter-spacing: -0.06em; line-height: 1; margin-top: 26px; font-variant-numeric: tabular-nums; }
.spot-unit { opacity: .85; margin-top: 8px; }
.spot-dots { display: flex; gap: 6px; }
.spot-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .45); transition: width .3s var(--ease), background .3s; cursor: pointer; }
.spot-dots i.on { width: 24px; background: var(--surface); }
.fame-rows { display: flex; flex-direction: column; gap: 18px; justify-content: space-between; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.fame-row { display: flex; gap: 20px; width: max-content; animation: tick 60s linear infinite; }
.fame-row.rev { animation-direction: reverse; }
.fame-rows:hover .fame-row { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticket { min-height: 150px; width: 400px; flex-shrink: 0; background: var(--surface); border-radius: var(--r-lg); padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.ticket > .row { min-width: 0; align-items: flex-start; }
.ticket > .row > div { display: flex; flex-direction: column; align-items: flex-start; }
.ticket-s { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.ticket-s small { font-size: 13px; display: block; margin-top: 6px; color: var(--ink-3); letter-spacing: 0; font-weight: 400; }

/* Teachers */
.tp { background: var(--surface); border-radius: var(--r-lg); padding: 14px 14px 24px; }
.tp-shape { background: var(--page); border-radius: 20px; padding: 26px 26px 0; overflow: hidden; }
.tp-name { font-size: var(--fs-lg); font-weight: 500; margin: 20px 10px 4px; }
.tp-role { font-size: var(--fs-sm); color: var(--ink-3); margin: 0 10px 16px; min-height: 2.9em; }
.tp .chips { margin: 0 10px; gap: 6px; }
.tp .chip { height: 30px; padding: 0 12px; font-size: 12.5px; }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.road-p.bar i { width: 0 !important; transition: width 1.4s var(--ease); }
.rv.in .road-p.bar i { width: var(--w) !important; }

@media (prefers-reduced-motion: reduce) {
  .rv, .hx-word, .hx-tag, .hx-p { opacity: 1; transform: none; transition: none; animation: none; }
  .fame-row, .bx-play::after { animation: none; }
}
@media (max-width: 1280px) {
  .rail { grid-auto-columns: calc((100% - 48px) / 3); }
  .bx { grid-template-columns: 1fr 1fr; }
  .bx-indigo { grid-column: 1 / -1; }
  .fame { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .hx-bottom { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 720px) {
  .hx-people { grid-template-columns: repeat(2, 1fr); }
  .hx-stats { grid-template-columns: 1fr 1fr 1fr; }
  .hx-stat { padding: 0 14px; }
  .bx { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 82%; }
}
#pub-body > section.hx { margin-top: 0; }
#pub-body > section.bx { margin-top: 24px; }

/* ==========================================================================
   Homepage v4 — kinetic exam list, scroll-lit statement, tilt rail,
   teacher accordion, magnetic CTA
   ========================================================================== */
#pub-body > section.xh { margin-top: 0; }

/* Hero: the six exams */
.xh { position: relative; padding: clamp(8px, 2vw, 32px) 0 0; }
.xh-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 0 0 clamp(20px, 2.4vw, 36px); }
.xh-lead { font-size: clamp(18px, 1.5vw, 24px); font-weight: 400; line-height: 1.35; letter-spacing: -0.01em; max-width: 420px; }
.xh-meta { color: var(--ink-3); font-size: var(--fs-md); text-align: right; min-height: 1.5em; transition: color .3s; }
.xh-list { list-style: none; border-bottom: 1px solid var(--line-2); }
.xh-row {
  --c: var(--ink);
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(16px, 2vw, 36px);
  border-top: 1px solid var(--line-2);
  padding: clamp(6px, .7vw, 12px) 0;
  cursor: none;
  outline: none;
}
.xh-word {
  font-size: clamp(64px, 9.4vw, 172px);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: .92;
  color: var(--ink);
  transition: color .45s var(--ease), transform .6s var(--ease), opacity .45s;
  will-change: transform;
}
.xh-pic {
  width: 0;
  height: clamp(52px, 6.6vw, 118px);
  border-radius: 999px;
  overflow: hidden;
  background: var(--c);
  transition: width .7s var(--ease);
}
.xh-pic .shp { width: clamp(150px, 15vw, 270px); height: 100%; aspect-ratio: auto; border-radius: 0; background: var(--c); }
.xh-pic .shp-fig { left: 30%; right: 30%; top: 8%; bottom: -10%; }
.xh-name { font-size: clamp(15px, 1.25vw, 21px); font-weight: 400; color: var(--ink-2); opacity: 0; transform: translateX(-18px); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.xh-name small { display: block; color: var(--ink-3); font-size: .8em; font-weight: 400; margin-top: 4px; }
.xh-go {
  width: clamp(48px, 4vw, 72px);
  height: clamp(48px, 4vw, 72px);
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transform: rotate(-45deg);
  transition: transform .6s var(--ease), background .35s, color .35s, border-color .35s;
}
.xh-list:hover .xh-row:not(:hover) .xh-word, .xh-list:focus-within .xh-row:not(:focus) .xh-word { color: var(--ink-4); opacity: .55; }
.xh-row:hover .xh-word, .xh-row:focus .xh-word { color: var(--c); transform: translateX(clamp(8px, 1.4vw, 24px)); }
.xh-row:hover .xh-pic, .xh-row:focus .xh-pic { width: clamp(150px, 15vw, 270px); }
.xh-row:hover .xh-name, .xh-row:focus .xh-name { opacity: 1; transform: none; }
.xh-row:hover .xh-go, .xh-row:focus .xh-go { transform: rotate(0); background: var(--c); border-color: var(--c); color: #fff; }
.xh-row:focus-visible { box-shadow: inset 4px 0 0 var(--c); }

/* entrance: one orchestrated moment */
.xh-row .xh-word { clip-path: inset(0 0 0 0); }
.xh.boot .xh-row { opacity: 0; transform: translateY(40px); }
.xh .xh-row { transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms); }

/* cursor bubble */
.xh-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 112px;
  height: 112px;
  margin: -56px 0 0 -56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 15px;
  pointer-events: none;
  z-index: 50;
  transform: translate3d(-200px, -200px, 0) scale(0);
  transition: background .35s, scale .35s var(--ease);
  will-change: transform;
}

/* Statement lit by scroll */
.lit { padding: clamp(80px, 9vw, 160px) 0 clamp(40px, 5vw, 80px); max-width: 1180px; }
.lit p { font-size: clamp(30px, 3.6vw, 62px); font-weight: 500; line-height: 1.14; letter-spacing: -0.035em; }
.lit p span { color: var(--ink-4); transition: color .25s; }
.lit p span.on { color: var(--ink); }
.lit-cta { display: flex; gap: 12px; margin-top: 44px; flex-wrap: wrap; }

/* Section heads (quiet) */
.qh { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: clamp(80px, 8vw, 140px) 0 28px; }
.qh h2 { font-size: clamp(30px, 3vw, 48px); font-weight: 500; letter-spacing: -0.04em; }

/* Tilt cards */
.tilt { transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tilt.live { transition: transform .08s linear, box-shadow .5s var(--ease); }
.tilt .cb { transform: translateZ(30px); }

/* Teacher accordion */
.acc { display: flex; gap: 14px; height: clamp(380px, 38vw, 600px); }
.acc-p {
  position: relative;
  flex: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c);
  transition: flex 0.8s var(--ease);
  cursor: pointer;
  outline: none;
}
.acc-p .shp { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; background: var(--c); }
.acc-p .shp-fig { left: 50%; right: auto; width: min(420px, 90%); transform: translateX(-50%); top: 22%; bottom: -6%; }
.acc-p .shp-fig svg { width: 100%; height: 100%; }
.acc-p img { filter: grayscale(1) contrast(1.05); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.acc-p::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .72)); opacity: 0; transition: opacity .6s; }
.acc-cap { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 2; color: #fff; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease) .1s, transform .6s var(--ease) .1s; }
.acc-cap b { display: block; font-size: clamp(22px, 2vw, 32px); font-weight: 500; letter-spacing: -0.03em; }
.acc-cap span { opacity: .85; }
.acc-tag { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); font-weight: 500; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: opacity .3s; }
.acc:hover .acc-p:hover, .acc-p:focus { flex: 3.2; }
.acc-p:hover img, .acc-p:focus img { filter: none; transform: scale(1.04); }
.acc-p:hover::after, .acc-p:focus::after { opacity: 1; }
.acc-p:hover .acc-cap, .acc-p:focus .acc-cap { opacity: 1; transform: none; }
.acc-p:hover .acc-tag, .acc-p:focus .acc-tag { opacity: 0; }

/* Fame: rows only */
.fame-only { display: flex; flex-direction: column; gap: 18px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.fame-only:hover .fame-row { animation-play-state: paused; }
.ticket { transition: transform .4s var(--ease), background .3s; }
.ticket:hover { transform: translateY(-4px); }

/* Finale */
.fin { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(100px, 10vw, 180px) 0 clamp(60px, 6vw, 100px); }
.fin h2 { font-size: clamp(56px, 9vw, 160px); font-weight: 300; letter-spacing: -0.06em; line-height: .9; }
.fin p { color: var(--ink-3); font-size: var(--fs-lg); margin-top: 22px; }
.mag {
  margin-top: 44px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s var(--ease), background .3s;
}
.mag:hover { background: var(--primary); }
.mag span { display: inline-block; transition: transform .5s var(--ease); }

@media (hover: none) {
  .xh-row { cursor: pointer; grid-template-columns: auto minmax(0, 1fr) auto; }
  .xh-pic { display: none; }
  .xh-name { opacity: 1; transform: none; }
  .xh-cursor { display: none; }
  .acc { flex-direction: column; height: auto; }
  .acc-p { height: 120px; flex: none; }
  .acc-cap { opacity: 1; transform: none; }
  .acc-p::after { opacity: 1; }
}
@media (max-width: 760px) {
  .xh-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .xh-pic { display: none; }
  .xh-name { opacity: 1; transform: none; font-size: 13px; }
  .xh-top { flex-direction: column; align-items: flex-start; }
  .xh-meta { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .xh.boot .xh-row { opacity: 1; transform: none; }
  .xh-word, .xh-pic, .xh-name, .xh-go, .acc-p, .acc-cap, .mag, .tilt { transition: none; }
}

/* ==========================================================================
   Homepage v5 additions
   ========================================================================== */
html, body { overflow-x: clip; }

/* Sticky header */
.pub-hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 0 0 100vmax rgba(255, 255, 255, .97);
  clip-path: inset(0 -100vmax);
  padding: 18px 0;
  transition: padding .3s var(--ease);
}
.pub-hdr::after { content: ""; position: absolute; left: -100vmax; right: -100vmax; bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity .3s; }
body.scrolled .pub-hdr { padding: 12px 0; }
body.scrolled .pub-hdr::after { opacity: 1; }

/* Intro */
.intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: center; padding: clamp(24px, 3vw, 56px) 0 0; }
.intro h1 { font-size: clamp(44px, 5.4vw, 92px); font-weight: 300; letter-spacing: -0.05em; line-height: .98; }
.intro-sub { font-size: clamp(16px, 1.25vw, 20px); color: var(--ink-2); margin-top: 24px; max-width: 520px; line-height: 1.6; }
.intro-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.intro-proof { display: flex; align-items: center; gap: 16px; margin-top: 40px; color: var(--ink-2); font-size: var(--fs-sm); }
.intro-proof b { display: block; color: var(--ink); font-size: var(--fs-md); font-weight: 500; }

.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo { position: relative; border-radius: var(--r-lg); padding: 28px; overflow: hidden; cursor: pointer; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.promo:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.promo::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); transition: left .9s var(--ease); z-index: 1; pointer-events: none; }
.promo:hover::before { left: 130%; }
.promo-big { grid-column: 1 / -1; background: #0E0E0E; color: #fff; padding: 34px 34px 30px; }
.promo-big::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(91, 225, 91, .6), transparent 65%); z-index: -1; }
.promo-off { font-size: clamp(64px, 6.4vw, 112px); font-weight: 300; letter-spacing: -0.06em; line-height: .9; }
.promo-t { font-size: clamp(18px, 1.5vw, 24px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.promo-s { font-size: var(--fs-sm); opacity: .85; margin-top: 6px; }
.promo-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.cd { display: flex; gap: 8px; }
.cd div { min-width: 58px; text-align: center; background: rgba(255, 255, 255, .18); border-radius: 14px; padding: 8px 6px 6px; }
.cd b { display: block; font-size: 24px; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.cd span { font-size: 11px; opacity: .85; }
.promo-ind { background: var(--primary); color: #fff; }
.promo-wh { background: var(--surface); }
.promo-arrow { position: absolute; right: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; transition: transform .5s var(--ease), background .3s; }
.promo-wh .promo-arrow { background: var(--page); }
.promo:hover .promo-arrow { transform: rotate(-45deg); background: var(--surface); color: var(--ink); }

/* Features */
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(72px, 7vw, 120px); padding-top: 40px; border-top: 1px solid var(--line-2); }
.feat-i { cursor: default; }
.feat-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background .4s, color .4s, transform .6s var(--ease), border-radius .6s var(--ease); }
.feat-i:hover .feat-ic { background: var(--c); color: #fff; transform: rotate(-8deg) scale(1.06); border-radius: 50%; }
.feat-t { font-size: var(--fs-lg); font-weight: 500; margin-top: 22px; letter-spacing: -0.01em; display: inline-block; background: linear-gradient(var(--c), var(--c)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.feat-i:hover .feat-t { background-size: 100% 2px; }
.feat-s { color: var(--ink-3); margin-top: 8px; line-height: 1.55; }

/* Rail: room for hover lift / tilt */
.rail { padding: 32px 40px 64px; margin: -32px -40px -64px; scroll-padding-inline: 40px; }

/* Exam rows: no teacher info now */
.xh-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.xh-pic { display: none !important; }
.xh-cursor { width: 132px; height: 132px; margin: -66px 0 0 -66px; font-size: 14px; line-height: 1.25; text-align: center; padding: 0 16px; }

/* Exam structure modal */
.em-bg { position: fixed; inset: 0; z-index: 9000; background: rgba(0, 0, 0, .45);  display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .35s; }
.em-bg.in { opacity: 1; }
.em {
  --c: var(--primary);
  width: min(1080px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 32px;
  transform: translateY(30px) scale(.97);
  transition: transform .5s var(--ease);
}
.em-bg.in .em { transform: none; }
.em-head { position: relative; background: var(--c); color: #fff; padding: 36px 40px 32px; border-radius: 32px 32px 0 0; overflow: hidden; isolation: isolate; }
.em-head::after { content: ""; position: absolute; right: -8%; top: -60%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 65%); z-index: -1; }
.em-code { font-size: clamp(56px, 7vw, 104px); font-weight: 300; letter-spacing: -0.06em; line-height: .9; }
.em-name { font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; margin-top: 10px; }
.em-x { position: absolute; right: 24px; top: 24px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .4s var(--ease); }
.em-x:hover { background: rgba(255, 255, 255, .35); transform: rotate(90deg); }
.em-stats { display: flex; gap: 40px; margin-top: 26px; flex-wrap: wrap; }
.em-stats div span { font-size: var(--fs-sm); opacity: .8; }
.em-stats div b { display: block; font-size: 22px; font-weight: 500; margin-top: 2px; }
.em-body { padding: 36px 40px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.em-h { font-size: var(--fs-lg); font-weight: 500; margin-bottom: 16px; }
.em-desc { color: var(--ink-2); line-height: 1.65; margin-bottom: 22px; }
.parts { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 3px; }
.parts i { display: block; height: 100%; background: var(--c); }
.parts i:nth-child(2) { opacity: .7; } .parts i:nth-child(3) { opacity: .45; } .parts i:nth-child(4) { opacity: .28; } .parts i:nth-child(5) { opacity: .18; }
.part-list { margin-top: 16px; }
.part-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.part-row span { display: inline-flex; align-items: center; gap: 10px; }
.part-row span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); opacity: var(--o, 1); }
.part-row b { font-weight: 500; }
.sample { background: var(--page); border-radius: 22px; padding: 24px; }
.sample-q { line-height: 1.75; margin: 12px 0 16px; }
.sample-o { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sample-o div { background: var(--surface); border-radius: 14px; padding: 10px 14px; font-size: var(--fs-sm); display: flex; gap: 10px; align-items: center; }
.sample-o div b { width: 26px; height: 26px; border-radius: 50%; background: var(--page); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; }
.sample-o div.ok b { background: var(--ok); color: #fff; }
.sample-a { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--ink-2); line-height: 1.7; font-size: var(--fs-sm); }
.sample.show .sample-a { display: block; }
.em-courses { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 28px; }
.em-c { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 12px; border-radius: 20px; transition: background .25s; }
.em-c:hover { background: var(--page); }
.em-c .cb { border-radius: 12px; }
.em-c .cb-tag, .em-c .cb-sub, .em-c .cb-name, .em-c .cb-logo { display: none; }
.em-c .cb-title { font-size: 11px; }

/* Teachers spotlight */

/* Hall of fame: flip cards */
.flips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.flip { perspective: 1200px; height: 280px; cursor: pointer; outline: none; }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.flip:hover .flip-in, .flip:focus .flip-in, .flip.on .flip-in { transform: rotateY(180deg); }
.flip-f, .flip-b { position: absolute; inset: 0; border-radius: 28px; padding: 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; display: flex; flex-direction: column; }
.flip-f { background: var(--c); color: #fff; isolation: isolate; }
.flip-f::after { content: ""; position: absolute; right: -20%; bottom: -50%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); z-index: -1; }
.flip-score { margin-top: auto; font-size: clamp(64px, 6vw, 104px); font-weight: 300; letter-spacing: -0.06em; line-height: .9; }
.flip-unit { opacity: .85; margin-top: 8px; font-size: var(--fs-sm); }
.flip-top { display: flex; justify-content: space-between; align-items: center; }
.flip-top span { font-weight: 500; font-size: var(--fs-sm); background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 6px 12px; }
.flip-b { background: var(--surface); transform: rotateY(180deg); align-items: flex-start; justify-content: center; gap: 4px; }
.flip-b .lr-t { font-size: 22px; margin-top: 16px; }
.flip-b .ach { margin-top: 12px; color: var(--ink-2); line-height: 1.5; }

/* Dark footer */
.foot-wrap {
  margin: clamp(80px, 8vw, 140px) calc(50% - 50vw) 0;
  padding: clamp(56px, 6vw, 96px) max(clamp(20px, 3vw, 56px), calc(50vw - 800px + clamp(20px, 3vw, 56px))) 32px;
  background: var(--dark);
  color: #fff;
  border-radius: 48px 48px 0 0;
  position: relative;
  overflow: hidden;
}
.foot-wrap .foot { padding-top: 0; }
.foot-wrap .foot h5 { color: rgba(255, 255, 255, .5); }
.foot-wrap .foot a, .foot-wrap .foot p { color: rgba(255, 255, 255, .85); }
.foot-wrap .foot a:hover { color: var(--accent-ink); }
.foot-wrap .foot-note { color: rgba(255, 255, 255, .6); }
.foot-wrap .brand-name { color: #fff; }
.foot-wrap .foot-bottom { border-top-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .5); padding-bottom: 0; }
.foot-wrap .foot-bottom a { color: rgba(255, 255, 255, .7); transition: color .2s; }
.foot-wrap .foot-bottom a:hover { color: #fff; }
.foot-big { font-size: clamp(80px, 17vw, 300px); font-weight: 300; letter-spacing: -0.07em; line-height: .8; color: rgba(255, 255, 255, .05); margin: 40px 0 -0.12em; white-space: nowrap; user-select: none; transition: color .6s; }
.foot-big:hover { color: var(--accent-ink); }
.foot-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .12); flex-wrap: wrap; }
.foot-cta h3 { color: #fff; font-size: clamp(28px, 3vw, 48px); font-weight: 500; letter-spacing: -0.04em; max-width: 640px; line-height: 1.1; }

@media (max-width: 1100px) {
  .intro, .tsp { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr 1fr; }
  .em-body { grid-template-columns: 1fr; }
  .flips { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .promos, .feats, .flips { grid-template-columns: 1fr; }
  .em-c { grid-template-columns: 90px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .promo, .promo::before, .feat-ic, .flip-in, .tsp-pic, .em, .em-bg { transition: none; }
}
.sample-o.one { grid-template-columns: 1fr; }
.sample-o .tf { margin-left: auto; font-style: normal; font-weight: 500; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--page); color: var(--ink-3); opacity: 0; transition: opacity .3s var(--ease); }
.sample.show .sample-o .tf { opacity: 1; }
.sample.show .sample-o .one div:not(.ok) .tf, .sample.show .sample-o.one div:not(.ok) .tf { background: var(--accent-50); color: var(--accent-ink); }
.sample.show .sample-o.one div.ok .tf { background: var(--ok); color: #fff; }
.sample-o.one div.ok b { background: var(--page); color: inherit; }

/* ===== Homepage v6: bento offers + feature cards ===== */
.bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; margin-top: 4px; min-height: 680px; }
.bn { position: relative; border-radius: 40px; padding: 36px; overflow: hidden; cursor: pointer; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.bn:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .45); }
.bn-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.bn-tag { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 99px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 14px; font-weight: 500; backdrop-filter: blur(6px); }
.bn-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: bnPulse 1.8s infinite; }
.bn-tag.dark { background: rgba(255, 255, 255, .1); }
.bn-tag.dark i { background: #5BE15B; box-shadow: 0 0 0 0 rgba(91, 225, 91, .7); }
@keyframes bnPulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.bn-arrow { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: transform .5s var(--ease); }
.bn:hover .bn-arrow { transform: rotate(-45deg); }

/* hot promo */
.bn-hot { grid-row: span 2; background: #5BE15B; color: #0E0E0E; display: flex; flex-direction: column; justify-content: space-between; }
.bn-glow { position: absolute; inset: -30%; z-index: -1; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), transparent 40%), radial-gradient(circle at 75% 70%, rgba(14, 14, 14, .45), transparent 45%); animation: bnDrift 14s ease-in-out infinite alternate; }
@keyframes bnDrift { to { transform: translate(8%, -6%) rotate(20deg); } }
.bn-hot-mid { position: relative; z-index: 2; }
.bn-kicker { font-size: clamp(22px, 1.8vw, 30px); font-weight: 500; letter-spacing: -0.02em; opacity: .95; }
.bn-big { font-size: clamp(130px, 13vw, 230px); font-weight: 300; letter-spacing: -0.075em; line-height: .86; margin: 12px 0 0 -0.04em; display: flex; }
.bn-big span { display: inline-block; animation: bnUp .9s var(--ease) both; animation-delay: calc(var(--k) * 70ms + 150ms); transition: transform .5s var(--ease); }
.bn-hot:hover .bn-big span { transform: translateY(calc(var(--k) * -6px)) rotate(calc(var(--k) * -2deg)); }
@keyframes bnUp { from { opacity: 0; transform: translateY(60%); } }
.bn-price { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; font-size: 26px; }
.bn-price b { font-weight: 500; letter-spacing: -0.02em; }
.bn-price s { opacity: .6; font-size: 18px; }
.bn-hot-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; z-index: 2; }
.cd-xl { display: flex; gap: 10px; }
.cd-xl > div { width: 88px; height: 96px; border-radius: 22px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cd-xl b { font-size: 38px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-xl span { font-size: 12px; opacity: .8; margin-top: 6px; }
.bn-seal { position: absolute; right: -56px; top: 36%; width: 230px; height: 230px; z-index: 1; fill: rgba(255, 255, 255, .55); font-size: 15px; font-weight: 500; letter-spacing: .2em; animation: bnSpin 22s linear infinite; pointer-events: none; }
.bn:hover .bn-seal { animation-duration: 6s; }
@keyframes bnSpin { to { transform: rotate(360deg); } }

/* book gift */
.bn-book { background: var(--primary); color: #fff; display: flex; justify-content: space-between; gap: 20px; }
.bn-book-t { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.bn-book h3, .bn-exam h3 { font-size: clamp(40px, 3.6vw, 60px); font-weight: 300; letter-spacing: -0.05em; line-height: .95; margin: auto 0 12px; color: inherit; }
.bn-book p, .bn-exam p { font-size: 16px; opacity: .75; }
.bn-books { position: relative; width: 52%; min-width: 220px; }
.bn-bk { position: absolute; width: 170px; right: calc(var(--k) * 84px - 6px); bottom: -40px; transform: rotate(calc((var(--k) - 1) * -9deg)); transform-origin: bottom center; transition: transform .6s var(--ease); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }
.bn-bk .book { aspect-ratio: .72; height: auto; border-radius: 14px; }
.bn-bk .book-title { font-size: 15px; }
.bn-book:hover .bn-bk { transform: translateY(-28px) rotate(calc((var(--k) - 1) * -16deg)); }
.bn-book:hover .bn-bk:nth-child(2) { transform: translateY(-44px) rotate(0deg); }

/* free exam */
.bn-exam { background: var(--dark); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.bn-exam::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(14, 14, 14, .7), transparent 70%); z-index: -1; transition: transform .8s var(--ease); }
.bn-exam:hover::after { transform: scale(1.4); }
.bn-exam-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.bn-next { text-align: right; }
.bn-next span { display: block; font-size: 13px; opacity: .6; margin-bottom: 6px; }
.bn-next b { font-size: clamp(26px, 2.4vw, 40px); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* features */
.fx4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.fx { position: relative; background: var(--surface); border-radius: 32px; padding: 32px; min-height: 280px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; transition: color .45s var(--ease), transform .5s var(--ease); }
.fx::before { content: ""; position: absolute; z-index: -1; left: 32px; top: 32px; width: 64px; height: 64px; border-radius: 50%; background: var(--c); transform: scale(0); transition: transform .7s var(--ease); }
.fx:hover { color: #fff; transform: translateY(-6px); }
.fx:hover::before { transform: scale(12); }
.fx-n { position: absolute; right: 28px; top: 24px; font-size: 56px; font-weight: 300; letter-spacing: -0.06em; color: var(--tile); transition: color .45s; }
.fx:hover .fx-n { color: rgba(255, 255, 255, .22); }
.fx-ic { width: 64px; height: 64px; border-radius: 20px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); display: inline-flex; align-items: center; justify-content: center; transition: background .45s, color .45s, border-radius .45s; }
.fx:hover .fx-ic { background: rgba(255, 255, 255, .2); color: #fff; border-radius: 50%; }
.fx-t { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; margin-top: auto; padding-top: 40px; }
.fx-s { font-size: 15px; line-height: 1.55; color: var(--ink-3); margin-top: 8px; transition: color .45s; }
.fx:hover .fx-s { color: rgba(255, 255, 255, .85); }

@media (max-width: 1100px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .bn-hot { grid-row: auto; min-height: 560px; }
  .bn-book { min-height: 300px; }
  .fx4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bn { padding: 26px; border-radius: 30px; }
  .cd-xl > div { width: 64px; height: 76px; }
  .cd-xl b { font-size: 28px; }
  .bn-seal { width: 180px; height: 180px; }
  .fx4 { grid-template-columns: 1fr; }
  .bn-books { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bn-glow, .bn-seal, .bn-big span, .bn-tag i { animation: none; }
}
#pub-body > section.bento { margin-top: 8px; }
#pub-body > section.fx4 { margin-top: 20px; }
@media (max-width: 640px) {
  .bn-big { font-size: 100px; }
  .bn-seal { display: none; }
  .bn-price { font-size: 22px; }
  .pub-actions .btn-outline { display: none; }
}

/* ===== Homepage v7: hall of fame wall (everything visible at a glance) ===== */
#pub-body > section.hof2 { margin-top: 72px; }
.champs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.champ { position: relative; display: flex; min-height: 300px; border-radius: 36px; background: var(--c); color: #fff; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); animation: champIn .8s var(--ease) both; animation-delay: calc(var(--k) * 80ms); }
.champ::before { content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; right: -90px; bottom: -150px; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: transform .7s var(--ease); }
.champ:hover { transform: translateY(-6px); box-shadow: 0 36px 70px -36px var(--c); }
.champ:hover::before { transform: scale(1.25); }
@keyframes champIn { from { opacity: 0; transform: translateY(30px); } }
.champ-l { position: relative; z-index: 2; flex: 1; min-width: 0; padding: 30px 0 30px 30px; display: flex; flex-direction: column; }
.champ-ach { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; max-width: 230px; }
.champ-score { font-size: clamp(64px, 5.6vw, 96px); font-weight: 300; letter-spacing: -0.06em; line-height: .9; margin-top: auto; }
.champ-unit { font-size: 14px; opacity: .8; margin-top: 8px; }
.champ-who { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25); display: flex; flex-direction: column; gap: 2px; }
.champ-who b { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.champ-who span { font-size: 13px; opacity: .75; }
.champ-pic { position: absolute; right: -6px; bottom: 0; width: 46%; z-index: 1; transition: transform .6s var(--ease); transform-origin: bottom center; }
.champ-pic .shp.round { background: transparent; aspect-ratio: .82; border-radius: 0; overflow: visible; }
.champ-pic .shp-fig { left: 0; right: 0; top: 0; bottom: 0; }
.champ:hover .champ-pic { transform: scale(1.07); }
.champ-ex { position: absolute; top: 24px; right: 24px; z-index: 2; height: 32px; padding: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .22); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; backdrop-filter: blur(6px); }
@media (max-width: 1100px) { .champs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .champs { grid-template-columns: 1fr; } .champ { min-height: 260px; } }
@media (prefers-reduced-motion: reduce) { .champ { animation: none; } }
.champ-ach { max-width: 62%; margin-bottom: 20px; }
.champ-who { max-width: 58%; }
.champ-who b, .champ-who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Combo (catalog page) ===== */
.cbx-wrap { display: flex; flex-direction: column; gap: 20px; }
.cbx-feat { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; padding: clamp(32px, 4vw, 56px); border-radius: 44px; background: var(--dark); color: #fff; overflow: hidden; isolation: isolate; }
.cbx-feat::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -180px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(14, 14, 14, .75), transparent 65%); }
.cbx-feat::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: 30%; bottom: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(91, 225, 91, .45), transparent 65%); }
.cbx-badge { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 99px; background: var(--accent); color: var(--ink); font-size: 14px; font-weight: 500; }
.cbx-name { font-size: clamp(44px, 4.4vw, 76px); font-weight: 300; letter-spacing: -0.055em; line-height: .95; margin: 26px 0 16px; color: inherit; }
.cbx-name span { opacity: .45; }
.cbx-name.sm { font-size: clamp(32px, 2.6vw, 42px); margin: 28px 0 12px; }
.cbx-name.sm span { opacity: 1; color: var(--c); }
.cbx-sub { font-size: 16px; line-height: 1.55; opacity: .7; max-width: 560px; }
.cbx-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 32px 0 0; padding: 0; }
.cbx-feats.one { grid-template-columns: 1fr; margin: 24px 0 32px; }
.cbx-feats li { display: flex; gap: 12px; font-size: 15px; line-height: 1.45; }
.cbx-feats li svg { flex-shrink: 0; width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }
.cbx .cbx-feats li svg { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.cbx-r { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.cbx-price-box { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 32px; padding: 32px; backdrop-filter: blur(10px); }
.cbx-save { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; background: #5BE15B; color: #0E0E0E; font-size: 14px; font-weight: 500; }
.cbx-save.sm { background: var(--c); color: #fff; height: 38px; font-size: 15px; }
.cbx-price { font-size: clamp(48px, 4.4vw, 72px); font-weight: 300; letter-spacing: -0.05em; line-height: 1; margin: 18px 0 8px; }
.cbx-price.sm { font-size: 36px; margin: 0 0 4px; }
.cbx-old { font-size: 15px; opacity: .6; text-decoration: line-through; margin-bottom: 24px; }
.cbx .cbx-old { margin: 0; color: var(--ink-3); opacity: 1; }

/* exam tiles */
.tiles { display: flex; }
.tiles span { width: 64px; height: 64px; border-radius: 20px; background: var(--c); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 300; letter-spacing: -0.02em; margin-left: -10px; box-shadow: 0 0 0 4px var(--tile-ring, #fff); transition: transform .5s var(--ease), margin .5s var(--ease); }
.tiles span:first-child { margin-left: 0; }
.tiles.lg { flex-wrap: wrap; gap: 12px; --tile-ring: transparent; }
.tiles.lg span { width: auto; aspect-ratio: auto; height: 96px; flex: 1 1 calc(33.333% - 12px); margin: 0; border-radius: 26px; font-size: 26px; transform: rotate(calc((var(--k) - 2.5) * 1.5deg)); }
.cbx-feat:hover .tiles.lg span { transform: rotate(0) translateY(-4px); }
.cbx:hover .tiles span { margin-left: 6px; }
.cbx:hover .tiles span:first-child { margin-left: 0; }

/* secondary combos */
.cbx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cbx { position: relative; background: var(--surface); border-radius: 40px; padding: 40px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.cbx::before { content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; right: -140px; top: -180px; border-radius: 50%; background: var(--c); opacity: .08; transition: transform .7s var(--ease); }
.cbx:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -48px rgba(0, 0, 0, .35); }
.cbx:hover::before { transform: scale(1.5); }
.cbx-top { display: flex; justify-content: space-between; align-items: center; }
.cbx .cbx-sub { color: var(--ink-2); opacity: 1; }
.cbx-foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }

/* activation strip */
.cbx-code { margin-top: 20px; background: var(--surface); border-radius: 28px; padding: 22px 22px 22px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cbx-code-t { display: flex; align-items: center; gap: 16px; color: var(--primary); }
.cbx-code-t div { display: flex; flex-direction: column; color: var(--ink); }
.cbx-code-t b { font-weight: 500; font-size: 17px; }
.cbx-code-t span { font-size: 14px; color: var(--ink-3); }

@media (max-width: 1100px) {
  .cbx-feat { grid-template-columns: 1fr; }
  .cbx-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cbx-feats { grid-template-columns: 1fr; }
  .cbx, .cbx-feat { padding: 28px; border-radius: 32px; }
  .tiles.lg span { height: 72px; font-size: 20px; }
  .cbx-foot { flex-direction: column; align-items: stretch; }
}
#pub-body > section.cbx-wrap { margin-top: 0; }
.tiles.lg span.dk { background: var(--surface); color: var(--ink); }

/* ===== Mono + neon pass for the landing ===== */
.bn-hot { background: var(--accent); color: var(--ink); }
.bn-glow { background: radial-gradient(circle at 75% 25%, rgba(255, 255, 255, .55), transparent 45%), radial-gradient(circle at 10% 90%, rgba(0, 0, 0, .10), transparent 45%); }
.bn-hot .bn-tag { background: rgba(0, 0, 0, .08); color: var(--ink); }
.bn-hot .bn-tag i { background: var(--ink); box-shadow: none; animation: none; }
.bn-big { font-weight: 300; }
.bn-hot .bn-price s { opacity: .45; }
.cd-xl > div { background: rgba(0, 0, 0, .07); backdrop-filter: none; }
.bn-seal { fill: rgba(0, 0, 0, .55); }
.bn-book { background: var(--ink); }
.bn-tag i, .bn-tag.light i { background: var(--accent); }
.bn-exam::after { background: radial-gradient(circle, rgba(91, 225, 91, .35), transparent 70%); }
.bn-book h3, .bn-exam h3 { font-weight: 300; }

.champ { background: var(--surface); color: var(--ink); }
.champ::before { background: #fff; }
.champ:first-child { background: var(--ink); color: #fff; }
.champ:first-child::before { background: rgba(255, 255, 255, .08); }
.champ:hover { background: var(--accent); color: var(--ink); box-shadow: none; }
.champ-score { font-weight: 300; }
.champ-who { border-top-color: currentColor; border-top-color: color-mix(in srgb, currentColor 18%, transparent); }
.champ-ex { background: rgba(127, 127, 127, .16); }

.xh-row:hover .xh-go, .xh-row:focus .xh-go { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.xh-cursor { background: var(--accent); color: var(--ink); }
.cbx-feat .tiles.lg span { background: #fff; color: var(--ink); }
.cbx-feat .tiles.lg span:first-child { background: var(--accent); }
.cbx-feat::after { background: radial-gradient(circle, rgba(91, 225, 91, .3), transparent 65%); }
.cbx-feat::before { background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 65%); }
.cbx-badge { background: var(--accent); color: var(--ink); }
.cbx-save { background: var(--accent); color: var(--ink); }
.cbx-price, .cbx-name { font-weight: 300; }

/* ===== Landing hero · three.js function field ===== */
#pub-body > section.h3 { margin-top: 0; }
.h3 { position: relative; height: clamp(680px, 90vh, 880px); border-radius: 28px; overflow: hidden; background: #0E0E0E; color: #fff; isolation: isolate; }
.h3::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 72% 55%, rgba(91, 225, 91, .10), transparent 70%), radial-gradient(40% 40% at 10% 0%, rgba(255, 255, 255, .05), transparent 70%); }
.h3-gl { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.h3-gl.ready { opacity: 1; }
.h3-gl canvas { display: block; }
.h3-in { position: relative; z-index: 1; height: 100%; display: grid; grid-template-rows: auto 1fr auto auto; padding: clamp(26px, 3vw, 44px); pointer-events: none; }
.h3-in > * { pointer-events: none; }
.h3-in button, .h3-in a, .h3-co, .h3-idx { pointer-events: auto; }
.h3-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.h3-k { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.h3-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(91, 225, 91, .2); animation: qkPulse 2s infinite; }
.h3-stats { display: flex; gap: clamp(20px, 3vw, 48px); }
.h3-stats div { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .14); }
.h3-stats b { font-size: clamp(22px, 2vw, 32px); font-weight: 300; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.h3-stats span { font-size: 12px; color: rgba(255, 255, 255, .5); margin-top: 2px; }
.h3-t { color: #fff; align-self: center; margin: 0; font-size: clamp(54px, 7.4vw, 124px); font-weight: 300; line-height: .92; letter-spacing: -0.06em; max-width: 9ch; pointer-events: none; }
.h3-t span { color: var(--accent); }
.h3-foot { grid-row: 3; }
.h3-p { max-width: 420px; margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .62); }
.h3-cta { display: flex; align-items: center; gap: 22px; }
.h3-ghost { color: #fff; font-size: 14px; padding: 6px 0; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease); }
.h3-ghost:hover { background-size: 0 1px; background-position: 100% 100%; }
.h3-cur { position: absolute; right: clamp(26px, 3vw, 44px); top: 42%; width: min(340px, 30vw); display: flex; flex-direction: column; gap: 22px; }
.h3-cur.in > * { animation: h3In .7s var(--ease) both; }
.h3-cur.in > *:nth-child(2) { animation-delay: .08s; }
@keyframes h3In { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.h3-fx span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.h3-fx div { margin-top: 8px; font-size: 30px; font-weight: 300; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.h3-fx .katex { font-size: 1em; }
.h3-co { cursor: pointer; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 16px; }
.h3-co-k { font-size: 12px; color: rgba(255, 255, 255, .5); }
.h3-co b { display: block; font-weight: 300; font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; margin: 6px 0 10px; }
.h3-co-m { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.h3-co-m em { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; color: #fff; transition: gap .3s var(--ease), color .2s; }
.h3-co:hover .h3-co-m em { gap: 10px; color: var(--accent); }
.h3-idx { grid-row: 4; list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid rgba(255, 255, 255, .14); }
.h3-idx button { position: relative; width: 100%; text-align: left; color: rgba(255, 255, 255, .45); padding: 16px 16px 4px 0; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; transition: color .3s; }
.h3-idx button:hover, .h3-idx button.on { color: #fff; }
.h3-n { font-size: 11px; font-variant-numeric: tabular-nums; }
.h3-idx b { font-size: clamp(20px, 1.8vw, 28px); font-weight: 300; letter-spacing: -0.03em; }
.h3-nm { grid-column: 2; font-size: 12px; margin-top: 2px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h3-bar { position: absolute; left: 0; right: 16px; top: -1px; height: 1px; }
.h3-bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 8px rgba(91, 225, 91, .8); }
.h3-idx button.on .h3-bar i { animation: h3Bar 6s linear forwards; }
.h3-idx.hold button.on .h3-bar i { animation: none; width: 100%; }
@keyframes h3Bar { to { width: 100%; } }
.h3-idx button.on .h3-bar i { animation-duration: 7s; }
.no-3d + .h3-in .h3-t span { text-shadow: 0 0 30px var(--accent); }
@media (max-width: 1100px) {
  .h3-cur { position: static; width: auto; grid-row: 2; align-self: end; margin-top: 24px; }
  .h3-t { align-self: start; margin-top: 40px; }
  .h3-idx { grid-template-columns: repeat(3, 1fr); }
  .h3-stats { display: none; }
  .h3 { height: auto; min-height: 760px; }
}
.foot-cta h3 { font-weight: 300 !important; letter-spacing: -0.04em; color: #fff; }
.foot-cta .btn { background: var(--accent); color: var(--ink); }
.foot-cta .btn:hover { background: #fff; }
/* hero: canvas is interactive behind the text */
.h3-gl canvas { cursor: grab; touch-action: pan-y; }
.h3-gl canvas.grab { cursor: grabbing; }
/* keep text readable over the 3D field */
.h3::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(14, 14, 14, .92) 0, rgba(14, 14, 14, 0) 22%),
              radial-gradient(28% 34% at 88% 54%, rgba(14, 14, 14, .85), rgba(14, 14, 14, 0) 100%); }
.h3-co, .h3-idx, .h3-t, .h3-p { text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
/* roadmap intro: stronger */
.h3-road { position: relative; max-width: 520px; padding-left: 20px; margin-bottom: 28px; }
.h3-road::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 14px rgba(91, 225, 91, .7); }
.h3-road-k { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.h3-road .h3-p { max-width: none; margin: 0; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; font-weight: 300; color: rgba(255, 255, 255, .92); letter-spacing: -0.01em; }
.h3-road .h3-p b { font-weight: 500; color: #fff; }
.h3::after { background: linear-gradient(to top, rgba(14, 14, 14, .92) 0, rgba(14, 14, 14, 0) 22%),
  radial-gradient(28% 34% at 88% 54%, rgba(14, 14, 14, .85), rgba(14, 14, 14, 0) 100%),
  linear-gradient(to right, rgba(14, 14, 14, .9) 0, rgba(14, 14, 14, .7) 26%, rgba(14, 14, 14, 0) 46%); }
/* right: course roadmap, same weight as the left intro */
.h3-cur { width: min(400px, 32vw); top: 40%; }
.h3-co { position: relative; border-top: 0; padding: 0 0 0 20px; }
.h3-co::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 14px rgba(91, 225, 91, .7); }
.h3-co-k { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.h3-co b { font-size: clamp(22px, 1.8vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -0.025em; color: #fff; margin: 10px 0 12px; }
.h3-co-m { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.h3-co-m span + span::before { content: "·"; margin-right: 14px; color: rgba(255, 255, 255, .4); }
.h3-co-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; height: 40px; padding: 0 18px; border-radius: 99px; font-style: normal; font-size: 14px; color: var(--ink); background: var(--accent); text-shadow: none; transition: gap .3s var(--ease), background .25s; }
.h3-co:hover .h3-co-go { gap: 12px; background: #fff; }
.h3::after { background: linear-gradient(to top, rgba(14, 14, 14, .92) 0, rgba(14, 14, 14, 0) 22%),
  radial-gradient(34% 42% at 86% 54%, rgba(14, 14, 14, .94) 30%, rgba(14, 14, 14, 0) 100%),
  linear-gradient(to right, rgba(14, 14, 14, .9) 0, rgba(14, 14, 14, .7) 26%, rgba(14, 14, 14, 0) 46%); }
/* course roadmap now sits on the left, above the CTAs */
.h3-foot .h3-cur { position: relative; right: auto; top: auto; width: auto; max-width: 540px; margin-bottom: 30px; min-height: 196px; }
.h3-foot .h3-co b { font-size: clamp(26px, 2.2vw, 34px); font-weight: 300; letter-spacing: -0.035em; }
.h3::after { background: linear-gradient(to top, rgba(14, 14, 14, .92) 0, rgba(14, 14, 14, 0) 22%),
  linear-gradient(to right, rgba(14, 14, 14, .92) 0, rgba(14, 14, 14, .75) 28%, rgba(14, 14, 14, 0) 50%); }
.h3 .btn-white:hover { background: var(--accent); color: var(--ink); }
@media (max-width: 1100px) { .h3-foot .h3-cur { margin-top: 24px; } }
/* roadmap block: no side bar, no CTA row */
.h3-foot .h3-co { padding-left: 0; }
.h3-foot .h3-co::before { display: none; }
.h3-foot .h3-cur { margin-bottom: 0; }
.h3-gl canvas { display: block; width: 100%; height: 100%; }

/* performance: no live blur behind the sticky header (it's 97% opaque anyway) */
.pub-hdr { backdrop-filter: none; -webkit-backdrop-filter: none; }
/* roadmap block: larger, more presence */
.h3-foot .h3-cur { max-width: 660px; min-height: 250px; }
.h3-foot .h3-co-k { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .12em; font-weight: 400; }
.h3-foot .h3-co-k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(91, 225, 91, .2); animation: qkPulse 2s infinite; }
.h3-foot .h3-co b { font-size: clamp(32px, 3vw, 50px); font-weight: 400; line-height: 1.08; letter-spacing: -0.04em; margin: 14px 0 16px; }
.h3-foot .h3-co-m { font-size: 17px; color: rgba(255, 255, 255, .85); gap: 8px 16px; }
.h3-foot .h3-co-m span:last-child { color: var(--accent); font-weight: 400; }
.h3-foot .h3-co-go { height: 52px; padding: 0 26px; margin-top: 24px; font-size: 16px; font-weight: 500; box-shadow: 0 10px 30px -10px rgba(91, 225, 91, .65); transition: gap .3s var(--ease), background .25s, box-shadow .3s, transform .3s var(--ease); }
.h3-foot .h3-co:hover .h3-co-go { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(91, 225, 91, .8); }
/* smoothness: compositor-only animations in the hero */
.h3-bar i { width: 100%; transform: scaleX(0); transform-origin: left; will-change: transform; }
.h3-idx button.on .h3-bar i { animation: h3BarX 7s linear forwards; }
.h3-idx.hold button.on .h3-bar i { animation: none; transform: none; }
@keyframes h3BarX { to { transform: none; } }
.h3-k i, .h3-foot .h3-co-k::before { animation: none; }
.h3-gl { contain: strict; }
.h3-gl canvas { will-change: transform; }
.h3-cur.in > * { animation-name: h3InLite; }
@keyframes h3InLite { from { opacity: 0; transform: translateY(12px); } }
.h3-ghost, .h3-ghost:hover { background: none !important; }
.h3-ghost { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.h3-ghost:hover { color: var(--accent); }
.feat-t { background: none !important; }

/* ===================== Giáo viên v2: accordion + profile window ===================== */
.tsp-sec .qh { align-items: baseline; }
.tsp-count { color: var(--ink-3); font-size: var(--fs-sm); }
.tsp { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.tsp-stage { position: sticky; top: 96px; aspect-ratio: 4 / 4.7; border-radius: 36px; overflow: hidden; cursor: pointer; isolation: isolate; }
.tsp-pic { position: absolute; inset: 0; clip-path: inset(100% 0 0 0 round 36px); transition: clip-path .9s cubic-bezier(.7, 0, .2, 1); }
.tsp-pic.on { clip-path: inset(0 0 0 0 round 36px); z-index: 1; }
.tsp-pic .shp { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.tsp-pic .shp img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.tsp-pic.on .shp img { transform: scale(1); }
.tsp-pic .shp-fig { left: 18%; right: 18%; top: 26%; bottom: -4%; }
.tsp-num { position: absolute; z-index: 2; right: 22px; top: 6px; font-size: clamp(90px, 11vw, 170px); font-weight: 200; letter-spacing: -0.08em; line-height: 1; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.tsp-num.roll { animation: tspRoll .7s var(--ease); }
@keyframes tspRoll { from { transform: translateY(40%); opacity: 0; filter: blur(6px); } }
.tsp-pills { position: absolute; left: 22px; bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.tsp-pills span { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-radius: 999px; padding: 10px 16px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.tsp-open { position: absolute; z-index: 2; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); transform: scale(.6); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.tsp-stage:hover .tsp-open { transform: none; opacity: 1; }
.tsp-list { list-style: none; }
.tsp-li { position: relative; border-top: 1px solid var(--line-2); }
.tsp-li:last-child { border-bottom: 1px solid var(--line-2); }
.tsp-li::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--ink); transition: width .7s var(--ease); }
.tsp-li.on::before { width: 100%; }
.tsp-row { display: flex; align-items: center; gap: 18px; width: 100%; padding: 20px 0; text-align: left; outline: none; }
.tsp-i { font-size: var(--fs-sm); color: var(--ink-4); width: 26px; flex-shrink: 0; transition: color .3s; }
.tsp-n { flex: 1; font-size: clamp(26px, 2.6vw, 44px); font-weight: 300; letter-spacing: -0.04em; color: var(--ink-4); transition: color .4s, transform .6s var(--ease); }
.tsp-li .xh-go { width: 48px; height: 48px; opacity: 0; transform: rotate(-45deg) scale(.8); transition: opacity .3s, transform .5s var(--ease), background .3s, color .3s, border-color .3s; }
.tsp-li.on .tsp-n, .tsp-row:hover .tsp-n, .tsp-row:focus-visible .tsp-n { color: var(--ink); transform: translateX(8px); }
.tsp-li.on .tsp-i { color: var(--ink); }
.tsp-li.on .xh-go { opacity: 1; transform: none; background: var(--ink); border-color: var(--ink); color: #fff; }
.tsp-row:hover .xh-go { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.tsp-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.tsp-li.on .tsp-more { grid-template-rows: 1fr; }
.tsp-in { overflow: hidden; padding-left: 44px; }
.tsp-in > * { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease); }
.tsp-li.on .tsp-in > * { opacity: 1; transform: none; }
.tsp-li.on .tsp-in > :nth-child(2) { transition-delay: .06s; }
.tsp-li.on .tsp-in > :nth-child(3) { transition-delay: .12s; }
.tsp-role { font-weight: 500; }
.tsp-bio { color: var(--ink-2); margin-top: 6px; line-height: 1.6; max-width: 560px; }
.tsp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 14px 0 24px; }
.tsp-cta { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px; background: var(--ink); color: #fff; font-size: var(--fs-sm); transition: background .25s, gap .3s; }
.tsp-cta:hover { gap: 12px; background: #2A2A2A; }

.tm-bg { position: fixed; inset: 0; z-index: 900; background: rgba(8, 8, 8, .55); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .3s; }
.tm-bg.in { opacity: 1; }
.tm { position: relative; width: min(1080px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 32px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); transform: translateY(30px) scale(.98); transition: transform .5s var(--ease); }
.tm-bg.in .tm { transform: none; }
.tm .cdm-x { position: absolute; z-index: 3; right: 18px; top: 18px; }
.tm-l { position: relative; min-height: 560px; overflow: hidden; border-radius: 32px 0 0 32px; }
.tm-l .shp { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.tm-l .shp-fig { left: 16%; right: 16%; top: 22%; bottom: -4%; }
.tm-big { position: absolute; left: 22px; top: 8px; font-size: 140px; font-weight: 200; letter-spacing: -0.08em; color: #fff; mix-blend-mode: difference; line-height: 1; }
.tm-q { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; gap: 10px; padding: 18px 20px; border-radius: 22px; background: rgba(14, 14, 14, .72); backdrop-filter: blur(14px); color: #fff; font-size: 15px; line-height: 1.5; }
.tm-q svg { color: var(--accent); flex-shrink: 0; }
.tm-r { padding: 44px 44px 40px; }
.tm-k { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.tm-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tm-n { font-size: clamp(34px, 3.6vw, 52px); font-weight: 300; letter-spacing: -0.04em; margin-top: 8px; line-height: 1.05; }
.tm-edu { color: var(--ink-2); margin-top: 8px; }
.tm-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 26px 0 22px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.tm-stats > div { padding: 16px 0; display: flex; flex-direction: column; gap: 2px; }
.tm-stats > div + div { padding-left: 18px; border-left: 1px solid var(--line-2); }
.tm-stats b { font-size: clamp(28px, 2.8vw, 40px); font-weight: 300; letter-spacing: -0.04em; }
.tm-stats span { color: var(--ink-3); font-size: 13px; }
.tm-bio { line-height: 1.65; color: var(--ink-2); }
.tm-exp { margin-top: 8px; color: var(--ink-3); }
.tm-h { margin: 24px 0 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tm-ach { list-style: none; display: grid; gap: 8px; }
.tm-ach li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.tm-ach svg { color: var(--ink); background: var(--accent); border-radius: 50%; padding: 2px; flex-shrink: 0; margin-top: 2px; }
.tm-cs { display: grid; gap: 6px; }
.tm-c { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--tile-2, #F4F4F4); text-align: left; transition: background .25s, transform .3s var(--ease); }
.tm-c:hover { background: var(--ink); color: #fff; transform: translateX(4px); }
.tm-cc { font-size: 12px; padding: 4px 8px; border-radius: 99px; background: var(--ink); color: #fff; flex-shrink: 0; }
.tm-c:hover .tm-cc { background: var(--accent); color: var(--ink); }
.tm-ct { flex: 1; min-width: 0; }
.tm-cp { font-size: 13px; color: var(--ink-3); }
.tm-c:hover .tm-cp { color: rgba(255, 255, 255, .7); }
.tm-soc { display: flex; gap: 8px; margin-top: 22px; }
.tm-soc a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--tile-2, #F4F4F4); color: var(--ink); transition: background .2s, color .2s; }
.tm-soc a:hover { background: var(--ink); color: #fff; }
@media (max-width: 900px) {
  .tsp { grid-template-columns: 1fr; }
  .tsp-stage { position: relative; top: 0; aspect-ratio: 4 / 3.4; }
  .tsp-in { padding-left: 0; }
  .tm { grid-template-columns: 1fr; border-radius: 26px; }
  .tm-l { min-height: 340px; border-radius: 26px 26px 0 0; }
  .tm-r { padding: 26px 22px 28px; }
}
@media (prefers-reduced-motion: reduce) { .tsp-pic, .tsp-more, .tsp-in > *, .tm, .tm-bg { transition: none; } }

/* ===== Môn học & combo tùy biến ===== */
.cat-subj { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-subj button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 99px; background: var(--tile-2, #F2F2F2); color: var(--ink-2); font-size: 15px; transition: background .25s, color .25s; }
.cat-subj button i { font-style: normal; font-size: 12px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 99px; background: rgba(14, 14, 14, .08); }
.cat-subj button:hover { color: var(--ink); }
.cat-subj button.on { background: var(--ink); color: #fff; }
.cat-subj button.on i { background: var(--accent); color: var(--ink); }
.cbx-tag { display: inline-flex; align-self: flex-start; margin-top: 12px; height: 28px; align-items: center; padding: 0 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12.5px; }
.cbx-inc { margin-top: 18px; font-size: 14px; }
.cbx-inc summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; opacity: .8; }
.cbx-inc summary::-webkit-details-marker { display: none; }
.cbx-inc summary::after { content: "+"; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid currentColor; font-size: 14px; line-height: 1; transition: transform .3s; }
.cbx-inc[open] summary::after { transform: rotate(45deg); }
.cbx-inc ul { list-style: none; margin-top: 10px; display: grid; gap: 4px; }
.cbx-inc li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background .2s; }
.cbx-inc li:hover { background: rgba(127, 127, 127, .14); }
.cbx-inc li span { font-size: 11.5px; padding: 3px 8px; border-radius: 99px; background: var(--accent); color: var(--ink); flex-shrink: 0; }
.er-subj { margin-top: 10px; }

/* ===================== Cảm nhận học viên ===================== */
.fb { margin-top: clamp(80px, 8vw, 140px); background: #0E0E0E; color: #fff; border-radius: 40px; padding: clamp(36px, 5vw, 72px) 0 clamp(36px, 4vw, 56px); overflow: hidden; position: relative; isolation: isolate; }
.fb::before { content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; right: -15%; top: -40%; background: radial-gradient(closest-side, rgba(91, 225, 91, .16), transparent); }
.fb-head, .fb-main { padding: 0 clamp(24px, 5vw, 72px); }
.fb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.fb-k { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.fb-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.fb-t { margin-top: 14px; font-size: clamp(38px, 5vw, 76px); font-weight: 300; letter-spacing: -0.05em; line-height: 1; }
.fb-avg { display: flex; align-items: baseline; gap: 10px; }
.fb-avg b { font-size: clamp(64px, 7vw, 112px); font-weight: 200; letter-spacing: -0.07em; line-height: 1; color: var(--accent); }
.fb-avg span { color: rgba(255, 255, 255, .55); }
.fb-main { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-top: clamp(32px, 4vw, 56px); }
.fb-big { position: relative; min-height: 210px; transition: opacity .26s, transform .4s var(--ease), filter .3s; }
.fb-big.out { opacity: 0; transform: translateY(14px); filter: blur(4px); }
.fb-qm { position: absolute; left: -8px; top: -46px; font-size: 180px; line-height: 1; color: var(--accent); font-weight: 300; opacity: .9; pointer-events: none; }
.fb-q { position: relative; max-width: 980px; font-size: clamp(22px, 2.4vw, 36px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.3; padding-left: clamp(40px, 5vw, 88px); }
.fb-who { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-left: clamp(40px, 5vw, 88px); flex-wrap: wrap; }
.fb-who b { display: block; font-weight: 500; }
.fb-who span { color: rgba(255, 255, 255, .6); font-size: 14px; }
.fb-who a { color: #fff; cursor: pointer; font-weight: 500; }
.fb-who a:hover { color: var(--accent); }
.fb-score { margin-left: 18px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .15); display: flex; flex-direction: column; }
.fb-score small { color: rgba(255, 255, 255, .55); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.fb-score b { font-size: 28px; font-weight: 300; letter-spacing: -0.03em; color: var(--accent); }
.fb-nav { display: flex; align-items: center; gap: 10px; }
.fb-n { font-size: 15px; margin-right: 8px; }
.fb-n small { color: rgba(255, 255, 255, .45); }
.fb-nav button { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.fb-nav button:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: scale(1.06); }
.fb-rows { margin-top: clamp(40px, 5vw, 72px); display: grid; gap: 16px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fb-row { overflow: hidden; }
.fb-track { display: flex; gap: 16px; width: max-content; animation: fbScroll 60s linear infinite; }
.fb-row.rev .fb-track { animation-direction: reverse; animation-duration: 70s; }
.fb-rows:hover .fb-track { animation-play-state: paused; }
@keyframes fbScroll { to { transform: translateX(calc(-50% - 8px)); } }
.fb-c { width: 360px; flex-shrink: 0; background: #1A1A1A; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: background .3s, transform .4s var(--ease); }
.fb-c:hover { background: #fff; color: var(--ink); transform: translateY(-4px); }
.fb-st { color: var(--accent); letter-spacing: 2px; font-size: 15px; }
.fb-st span { color: rgba(255, 255, 255, .2); }
.fb-c:hover .fb-st { color: var(--ink); }
.fb-hl { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.fb-c blockquote { font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .7); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fb-c:hover blockquote { color: var(--ink-2); }
.fb-c figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.fb-c figcaption > span { flex: 1; min-width: 0; }
.fb-c figcaption b { display: block; font-weight: 500; font-size: 14px; }
.fb-c figcaption small { color: rgba(255, 255, 255, .5); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-c:hover figcaption small { color: var(--ink-3); }
.fb-c em { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .55); text-align: right; display: flex; flex-direction: column; }
.fb-c em i { font-style: normal; font-size: 15px; color: #fff; font-weight: 500; }
.fb-c:hover em i { color: var(--ink); }
@media (max-width: 900px) {
  .fb { border-radius: 28px; }
  .fb-main { grid-template-columns: 1fr; }
  .fb-q, .fb-who { padding-left: 0; }
  .fb-qm { position: static; display: block; height: 70px; font-size: 130px; }
  .fb-c { width: 290px; }
}
@media (prefers-reduced-motion: reduce) { .fb-track { animation: none; } }
.fb .av { flex-shrink: 0; }
.tsp-num { mix-blend-mode: normal; color: rgba(255, 255, 255, .92); text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.tm-big { mix-blend-mode: normal; color: rgba(255, 255, 255, .92); text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.cdm-tch[role="button"] { cursor: pointer; border-radius: 16px; transition: background .2s; }
.cdm-tch[role="button"]:hover b { color: var(--accent-ink, #2a8a2a); }
.cdm-fb { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cdm-fb figure { background: var(--tile-2, #F4F4F4); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.cdm-fb .fb-st { color: var(--ink); font-size: 13px; letter-spacing: 2px; }
.cdm-fb blockquote { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.cdm-fb figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.cdm-fb figcaption span { flex: 1; min-width: 0; }
.cdm-fb figcaption b { display: block; font-size: 13.5px; font-weight: 500; }
.cdm-fb figcaption small { color: var(--ink-3); font-size: 12px; }
.cdm-fb figcaption em { font-style: normal; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--ink); color: #fff; }
.cdm-fb .av { flex-shrink: 0; }

/* ===== Cửa sổ kỳ thi v2: tiêu đề cố định, đề mẫu PDF, không thanh cuộn ===== */
.em { display: flex; flex-direction: column; overflow: hidden; max-height: min(92vh, 980px); }
.em-head { flex-shrink: 0; padding: 34px 40px 30px; }
.em-hl { min-width: 0; }
.em-body { overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; }
.em-body::-webkit-scrollbar { display: none; }
.em-h2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.em-doc { display: block; width: 100%; text-align: left; border-radius: 22px; background: #fff; padding: 14px; transition: box-shadow .3s, transform .4s var(--ease); }
.em-doc:hover { box-shadow: 0 0 0 2px var(--ink); transform: translateY(-2px); }
.em-pages { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 360px; border-radius: 10px; overflow: hidden; background: #F4F4F4; padding: 10px; }
.em-pages canvas { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .35); background: #fff; animation: pvIn .5s var(--ease) both; }
.em-pages canvas + canvas { animation-delay: .08s; }
.em-load { position: absolute; inset: 10px; border-radius: 4px; background: linear-gradient(100deg, #eee 30%, #f8f8f8 50%, #eee 70%); background-size: 200% 100%; animation: emLoad 1.2s infinite; }
.em-pages.ok { min-height: 0; }
.em-pages.ok .em-load { display: none; }
@keyframes emLoad { to { background-position: -200% 0; } }
.em-doc-f { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 4px 2px; }
.em-doc-f b { font-weight: 500; }
.em-doc-f small { color: var(--ink-3); font-size: 12.5px; }

/* ===== Hồ sơ giáo viên: không thanh cuộn ngang, khóa học không tràn ===== */
.tm { overflow-x: hidden; scrollbar-width: none; }
.tm::-webkit-scrollbar { display: none; }
.tm-r { min-width: 0; }
.tm-cs { grid-template-columns: minmax(0, 1fr); }
.tm-c { min-width: 0; width: 100%; }
.tm-cp { flex-shrink: 0; }
.tm-c > .ic { flex-shrink: 0; }
/* exam window v3: compact title, scrollable sample paper */
.em-head { padding: 22px 34px 20px; }
.em-code { font-size: clamp(40px, 4.4vw, 62px); }
.em-name { font-size: 17px; margin-top: 6px; }
.em-stats { margin-top: 14px; gap: 28px; }
.em-stats div b { font-size: 17px; }
.em-x { right: 18px; top: 18px; width: 40px; height: 40px; }
.em-pages { height: min(520px, 56vh); min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .25) transparent; }
.em-pages::-webkit-scrollbar { width: 6px; }
.em-pages::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .22); border-radius: 6px; }
.em-pages canvas { flex-shrink: 0; }
.em-doc { cursor: default; }
.em-doc:hover { box-shadow: none; transform: none; }
.em-doc-f { cursor: pointer; }
.em-doc-f { width: 100%; text-align: left; }

/* ===================== Bảng học tập · hero "Đang học" ===================== */
.dh { position: relative; overflow: hidden; isolation: isolate; background: #0E0E0E; color: #fff; border-radius: 36px; padding: 28px 34px 26px; }
.dh::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(80% 90% at 85% 20%, #000, transparent 75%); -webkit-mask-image: radial-gradient(80% 90% at 85% 20%, #000, transparent 75%); }
.dh::after { content: ""; position: absolute; z-index: -1; width: 520px; aspect-ratio: 1; right: -120px; top: -220px; background: radial-gradient(closest-side, rgba(91, 225, 91, .22), transparent); }
.dh-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dh-k { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.dh-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(91, 225, 91, .18); }
.dh-tag { font-size: 12px; letter-spacing: .1em; padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); }
.dh-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-top: 34px; }
.dh-lbl { font-size: 14px; color: rgba(255, 255, 255, .5); }
.dh-t { color: #fff; font-size: clamp(30px, 3vw, 48px); font-weight: 300; letter-spacing: -0.045em; line-height: 1.05; margin-top: 6px; }
.dh-les { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: rgba(255, 255, 255, .75); max-width: 640px; }
.dh-les .ic { color: var(--accent); flex-shrink: 0; }
.dh-cta { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.dh-ghost { color: rgba(255, 255, 255, .7); font-size: 15px; transition: color .2s; }
.dh-ghost:hover { color: var(--accent); }
.dh-r { text-align: right; }
.dh-pct { display: flex; align-items: flex-start; justify-content: flex-end; line-height: .85; }
.dh-pct b { font-size: clamp(96px, 10vw, 168px); font-weight: 200; letter-spacing: -0.08em; }
.dh-pct span { font-size: 34px; font-weight: 300; color: var(--accent); margin: 10px 0 0 6px; }
.dh-pl { font-size: 13px; color: rgba(255, 255, 255, .5); margin-top: 8px; }
.dh-segs { display: flex; gap: 4px; margin-top: 30px; }
.dh-segs i { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.dh-segs i b { position: absolute; inset: 0 auto 0 0; background: #fff; border-radius: 6px; }
.dh-segs i.done b { background: var(--accent); width: 100% !important; }
.dh-segs i.cur { background: rgba(255, 255, 255, .22); }
.dh-segs i.cur b { background: var(--accent); box-shadow: 0 0 12px rgba(91, 225, 91, .8); }
.dh-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.dh-stats > div { padding: 16px 0 0; display: flex; flex-direction: column; gap: 2px; }
.dh-stats > div + div { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .1); }
.dh-stats b { font-size: 30px; font-weight: 300; letter-spacing: -0.04em; }
.dh-stats b small { font-size: 16px; color: rgba(255, 255, 255, .45); margin-left: 2px; }
.dh-stats span { font-size: 12.5px; color: rgba(255, 255, 255, .5); }
@media (max-width: 900px) {
  .dh { padding: 22px; border-radius: 26px; }
  .dh-main { grid-template-columns: 1fr; }
  .dh-r { text-align: left; }
  .dh-pct { justify-content: flex-start; }
  .dh-stats { grid-template-columns: 1fr 1fr; }
  .dh-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ===== Dashboard hero v2 · đường học (mỗi cột là một bài, cao theo thời lượng) ===== */
.dh2 { position: relative; padding: 4px 0 0; }
.dh2-top { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-3); }
.dh2-hi b { font-weight: 400; color: var(--ink); }
.dh2-tag { font-size: 11.5px; letter-spacing: .1em; padding: 5px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.dh2-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; transition: color .2s; }
.dh2-link:hover { color: var(--ink); }
.dh2-link .ic { transition: transform .3s var(--ease); }
.dh2-link:hover .ic { transform: translate(2px, -2px); }
.dh2-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-top: 22px; }
.dh2-t { font-size: clamp(32px, 3.4vw, 54px); font-weight: 300; letter-spacing: -0.05em; line-height: 1.02; max-width: 17ch; }
.dh2-pct { display: grid; grid-template-columns: auto auto; justify-content: end; align-items: start; justify-items: end; line-height: .8; }
.dh2-pct b { font-size: clamp(88px, 9vw, 150px); font-weight: 200; letter-spacing: -0.08em; }
.dh2-pct span { font-size: 30px; font-weight: 300; margin: 8px 0 0 4px; justify-self: start; position: relative; z-index: 0; }
.dh2-pct span::after { content: ""; position: absolute; left: -2px; right: -4px; bottom: -2px; height: 10px; background: var(--accent); z-index: -1; }
.dh2-pct small { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); margin-top: 14px; line-height: 1; }
.dh2-map { position: relative; margin-top: 30px; padding-top: 128px; }
.dh2-now { position: absolute; inset: 0 0 auto; height: 100%; pointer-events: none; }
.dh2-card { position: absolute; top: 0; left: clamp(0px, calc(var(--x) - 28px), calc(100% - 340px)); width: 340px; max-width: 100%; pointer-events: auto; display: flex; flex-direction: column; gap: 6px; }
.dh2-k { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dh2-les { font-size: 16px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dh2-go { position: relative; overflow: hidden; isolation: isolate; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 11px 16px 11px 20px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14.5px; transition: color .35s var(--ease); }
.dh2-go span { font-size: 12px; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; transition: color .35s; }
.dh2-go::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); transition: transform .4s var(--ease); }
.dh2-go:hover { color: var(--ink); }
.dh2-go:hover span { color: rgba(14, 14, 14, .6); }
.dh2-go:hover::before { transform: none; }
.dh2-stem { position: absolute; left: var(--x); bottom: 100px; top: 100px; width: 1px; background: var(--ink); transform: translateX(-.5px); }
.dh2-stem::before { content: ""; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.dh2-track { display: flex; gap: 10px; }
.dt-ch { min-width: 0; display: flex; flex-direction: column; }
.dt-bars { height: 100px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--ink); }
.dt-b { position: relative; flex: 1; min-width: 3px; height: var(--h); border-radius: 4px 4px 0 0; background: #E6E6E6; transition: background .25s, transform .35s var(--ease); transform-origin: bottom; }
.dt-b.done { background: var(--ink); }
.dt-b.now { background: var(--accent); }
.dt-b.now::after { content: ""; position: absolute; inset: -4px -4px 0; border-radius: 6px 6px 0 0; box-shadow: 0 0 0 1px var(--ink); animation: dtNow 1.8s ease-in-out infinite; }
@keyframes dtNow { 50% { opacity: .15; } }
.dt-b:not(:disabled):hover { background: var(--ink-2); transform: scaleY(1.06); }
.dt-b.now:not(:disabled):hover { background: var(--accent); }
.dt-ch.lock .dt-b { background: repeating-linear-gradient(-45deg, #EDEDED 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px #E6E6E6; cursor: not-allowed; }
.dh2.dh2-in .dt-b { animation: dtUp .7s var(--ease) both; animation-delay: calc(var(--i) * 28ms); }
.dh2.dh2-in .dt-b.now { animation: dtUp .7s var(--ease) both, none; animation-delay: calc(var(--i) * 28ms); }
@keyframes dtUp { from { transform: scaleY(0); } }
.dt-tip { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 10px); width: max-content; max-width: 240px; transform: translate(-50%, 4px); padding: 9px 12px; border-radius: 12px; background: var(--ink); color: #fff; text-align: left; display: flex; flex-direction: column; gap: 3px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .25s var(--ease); }
.dt-tip b { font-weight: 400; font-size: 12.5px; line-height: 1.35; white-space: normal; }
.dt-tip em { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .55); }
.dt-b:hover .dt-tip { opacity: 1; transform: translate(-50%, 0); }
.dt-lab { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; font-size: 12px; color: var(--ink-3); min-width: 0; }
.dt-lab > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dt-lab b { font-size: 20px; font-weight: 300; letter-spacing: -0.04em; color: var(--ink-3); font-variant-numeric: tabular-nums; line-height: 1; }
.dt-lab span { display: block; min-width: 0; }
.dt-lab em { font-style: normal; font-variant-numeric: tabular-nums; display: inline-flex; }
.dt-ch.cur .dt-lab b, .dt-ch.cur .dt-lab span { color: var(--ink); }
.dh2-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; }
.dh2-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 0 0 0 20px; border-left: 1px solid var(--line); min-width: 0; }
.dh2-stats > div:first-child { padding-left: 0; border-left: 0; }
.dh2-stats b { font-size: 34px; font-weight: 300; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dh2-stats b small { font-size: 15px; color: var(--ink-3); margin-left: 2px; letter-spacing: 0; }
.dh2-stats span { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 760px) {
  .dh2-head { grid-template-columns: 1fr; gap: 10px; }
  .dh2-pct { justify-items: start; justify-content: start; }
  .dh2-card { left: 0; width: 100%; }
  .dt-lab span { display: none; }
  .dh2-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .dh2-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
