/* ==========================================================================
   FEATURES — #why-us (light) + #exams (sky)            owner: features
   Naming: .why-* / .exams-* for layout, .fx-* for illustration internals.
   Motion rules: transform / opacity / clip-path only. Illustrations loop in
   pure CSS (so they live even if GSAP never boots) and are paused off-screen
   by the IntersectionObserver in features.js (adds .fx-on to [data-fx-loop]).
   ========================================================================== */

.features {
  --fx-soft: color-mix(in srgb, var(--blue-500) 9%, var(--white));
  --fx-hair: color-mix(in srgb, var(--navy-800) 14%, transparent);
}

/* pause looping art while it is off-screen (class is set from JS) */
html.js [data-fx-loop]:not(.fx-on) *,
html.js [data-fx-loop]:not(.fx-on) *::before,
html.js [data-fx-loop]:not(.fx-on) *::after {
  animation-play-state: paused;
}

/* tap-to-replay (touch): JS toggles .fx-restart for one frame to restart every loop */
.why-card.fx-restart .why-card__art,
.why-card.fx-restart .why-card__art *,
.why-card.fx-restart .why-card__art *::before,
.why-card.fx-restart .why-card__art *::after {
  animation: none;
}

/* ==========================================================================
   #why-us
   ========================================================================== */
.features--why {
  background: var(--bg);
  overflow: clip;
  margin-top: calc(var(--r-xl) * -1);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 -24px 60px rgb(10 42 92 / 0.25);
  padding-bottom: calc(var(--section-y) * 0.85);
}

/* ---------- ambient background ---------- */
.why-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.why-bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}
.why-bg__blob--a {
  width: min(52vw, 620px);
  aspect-ratio: 1;
  top: -14%;
  right: -12%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sky-200) 85%, transparent), transparent);
}
.why-bg__blob--b {
  width: min(44vw, 520px);
  aspect-ratio: 1;
  top: 34%;
  left: -16%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sky-100) 90%, transparent), transparent);
}
.why-bg__glyph {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--blue-500) 16%, transparent);
  user-select: none;
  animation: why-float 14s ease-in-out infinite alternate;
}
.why-bg__glyph--a {
  font-size: clamp(9rem, 20vw, 17rem);
  top: 30%;
  left: -5%;
}
.why-bg__glyph--b {
  font-size: clamp(8rem, 16vw, 14rem);
  top: 1%;
  right: 3%;
  animation-delay: -5s;
}
@keyframes why-float {
  from {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }
  to {
    transform: translate3d(0, -22px, 0) rotate(3deg);
  }
}

/* ---------- header: poster brush tag ---------- */
.why-head {
  display: grid;
  gap: var(--space-6);
  margin-bottom: clamp(2.25rem, 4.5vw, 4rem);
}
.why-head__main {
  display: grid;
  gap: var(--space-5);
  justify-items: start;
}
.why-tag {
  position: relative;
  display: inline-block;
  margin: 0 0 0.35rem 0.2rem;
  padding: 0.5em 1.7em 0.58em 1.25em;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.75rem, 1.25rem + 2.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  isolation: isolate;
  transform: rotate(-2.2deg);
  transform-origin: left center;
}
.why-tag__brush {
  position: absolute;
  inset: -4% -4% -6% -5%;
  z-index: -1;
  color: var(--navy-800);
  filter: drop-shadow(0 10px 12px color-mix(in srgb, var(--navy-800) 22%, transparent));
}
.why-tag__text {
  position: relative;
  display: block;
  white-space: nowrap;
  text-shadow: 0 2px 0 color-mix(in srgb, var(--navy-950) 40%, transparent);
}
.why-head__statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-2xl);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy-800);
  max-width: 21em;
}
.why-head__hallo {
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--gold) 78%, transparent) 58% 90%, transparent 90%);
  padding-inline: 0.08em;
  margin-inline: -0.08em;
}
.why-head__lead {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  max-width: 36rem;
}
.why-head__note {
  display: none;
  position: relative;
  justify-self: end;
  align-self: end;
  padding-bottom: 0.5rem;
  transform: rotate(-4deg);
}
.why-head__script {
  display: block;
  max-width: 10em;
  margin-right: 2.5rem;
}
.why-head__arrow {
  position: absolute;
  right: -0.5rem;
  top: calc(100% - 1.4rem);
  width: 88px;
  height: 66px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(8deg);
}
@media (min-width: 900px) {
  .why-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr);
    align-items: end;
  }
  .why-head__note {
    display: block;
  }
}

/* ---------- bento grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
}
.why-cell {
  display: flex;
  min-width: 0;
}
@media (min-width: 720px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .why-cell--trainers,
  .why-cell--live,
  .why-cell--doubt {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1080px) {
  .why-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .why-cell--trainers {
    grid-column: 1 / span 5;
    grid-row: 1;
  }
  .why-cell--live {
    grid-column: 6 / span 7;
    grid-row: 1 / span 2;
  }
  .why-cell--doubt {
    grid-column: 1 / span 5;
    grid-row: 2;
  }
  .why-cell--exam {
    grid-column: 1 / span 7;
    grid-row: 3;
  }
  .why-cell--b2 {
    grid-column: 8 / span 5;
    grid-row: 3;
  }
}

/* ---------- card shell (spotlight ring + glow follow the cursor) ---------- */
.why-card {
  --mx: 50%;
  --my: 35%;
  --px: 0;
  --py: 0;
  --art-bg: var(--sky-100);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow var(--dur-base) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.why-card.is-touched {
  box-shadow: var(--shadow-lg);
}
@media (hover: hover) {
  .why-card:hover {
    box-shadow: var(--shadow-lg);
  }
}
.why-card::before,
.why-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
/* 1.5px light ring that tracks the pointer */
.why-card::before {
  padding: 1.5px;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--blue-500), color-mix(in srgb, var(--gold) 70%, transparent) 55%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* soft glow wash */
.why-card::after {
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--blue-400) 16%, transparent), transparent 62%);
}
.why-card.is-touched::before,
.why-card.is-touched::after {
  opacity: 1;
}
@media (hover: hover) {
  .why-card:hover::before,
  .why-card:hover::after {
    opacity: 1;
  }
}

/* ---------- card art frame ---------- */
.why-card__art {
  position: relative;
  flex: none;
  margin: 10px 10px 0;
  border-radius: calc(var(--r-lg) - 8px);
  overflow: hidden;
  background: var(--art-bg);
}
.why-art--trainers,
.why-art--doubt,
.why-art--exam,
.why-art--b2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
}
/* parallax layers inside the art (individual `translate` property — composes with keyframed transforms) */
.fx-live-win,
.fx-tr,
.fx-ex,
.fx-bc,
.fx-dq {
  transition: translate 0.5s var(--ease-out);
  translate: calc(var(--px) * -5px) calc(var(--py) * -4px);
}
.fx-live-chip,
.fx-dq__float {
  transition: translate 0.6s var(--ease-out);
  translate: calc(var(--px) * 9px) calc(var(--py) * 7px);
}

/* ---------- card body ---------- */
.why-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.25rem, 2.2vw, 1.75rem) clamp(1.3rem, 2.2vw, 1.75rem);
}
.why-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}
.why-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sky-100);
  color: var(--blue-600);
}
.why-card__icon .icon {
  width: 22px;
  height: 22px;
}
.why-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.why-card__num::after {
  content: " / 05";
  opacity: 0.55;
}
.why-card__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--navy-800);
}
.why-card__sub {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--blue-600);
  margin-top: 0.1rem;
}
.why-card__text {
  color: var(--ink-soft);
  font-size: var(--fs-base);
  margin-top: 0.25rem;
  max-width: 46ch;
}
.why-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  min-height: 44px;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--blue-600);
}
.why-card__link .icon {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform var(--dur-base) var(--ease-out);
}
.why-card__link:hover .icon {
  transform: translateX(4px);
}
.why-card__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* per-card tweaks: horizontal layouts on wider screens */
@media (min-width: 720px) and (max-width: 1079px) {
  .why-card--trainers,
  .why-card--doubt {
    flex-direction: row;
    align-items: stretch;
  }
  .why-card--doubt {
    flex-direction: row-reverse;
  }
  .why-card--trainers .why-card__art,
  .why-card--doubt .why-card__art {
    flex: 0 0 46%;
    margin: 10px;
  }
  .why-card--trainers .why-card__body,
  .why-card--doubt .why-card__body {
    flex: 1;
    justify-content: center;
  }
}
@media (min-width: 1080px) {
  .why-card--exam {
    flex-direction: row;
    align-items: stretch;
  }
  .why-card--exam .why-card__art {
    flex: 0 0 48%;
    margin: 10px;
  }
  .why-card--exam .why-card__body {
    flex: 1;
    justify-content: center;
  }
}

/* ===================== 01 · TRAINER ===================== */
.why-art--trainers {
  --art-bg: linear-gradient(160deg, var(--sky-100) 0%, var(--sky-200) 100%);
  height: clamp(11.5rem, 30vw, 14rem);
  padding: 0.75rem 0.5rem 0;
}
.why-art--trainers::before {
  /* dotted blackboard-room texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--blue-500) 22%, transparent) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
}
@media (min-width: 720px) and (max-width: 1079px) {
  .why-art--trainers {
    height: auto;
    min-height: 13rem;
  }
}
.fx-tr {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 430px;
  overflow: visible;
}
.fx-tr__ground {
  fill: color-mix(in srgb, var(--navy-800) 10%, transparent);
}
.fx-tr__board-bg {
  fill: var(--white);
  stroke: var(--navy-800);
  stroke-width: 3;
}
.fx-tr__title-bar {
  fill: var(--sky-200);
}
.fx-tr__pip--a {
  fill: var(--gold);
}
.fx-tr__pip--b {
  fill: var(--blue-400);
}
.fx-tr-row__hl {
  fill: color-mix(in srgb, var(--blue-500) 16%, transparent);
  transform-box: fill-box;
  transform-origin: left center;
}
.fx-tr-row__art--der {
  fill: var(--blue-600);
}
.fx-tr-row__art--die {
  fill: var(--navy-800);
}
.fx-tr-row__art--das {
  fill: var(--gold);
}
.fx-tr-row__art-t {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  fill: var(--white);
}
.fx-tr-row__art-t--das {
  fill: var(--navy-900);
}
.fx-tr-row__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  fill: var(--navy-800);
}
.fx-tr-row__ok {
  transform-box: fill-box;
  transform-origin: center;
}
.fx-tr-row__ok circle {
  fill: var(--blue-600);
}
.fx-tr-row__ok path {
  fill: none;
  stroke: var(--white);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fx-tr__body {
  fill: var(--navy-800);
}
.fx-tr__collar {
  fill: var(--white);
}
.fx-tr__lanyard {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.fx-tr__badge rect {
  fill: var(--white);
}
.fx-tr__badge .fx-tr__badge-stripe {
  fill: var(--blue-500);
}
.fx-tr__badge circle {
  fill: var(--sky-200);
}
.fx-tr__head {
  fill: var(--gold-soft);
}
.fx-tr__hair {
  fill: var(--navy-900);
}
.fx-tr__headset {
  fill: none;
  stroke: var(--blue-400);
  stroke-width: 4.5;
  stroke-linecap: round;
}
.fx-tr__cup {
  fill: var(--blue-500);
  stroke: var(--navy-900);
  stroke-width: 2;
}
.fx-tr__boom {
  fill: none;
  stroke: var(--blue-400);
  stroke-width: 3;
  stroke-linecap: round;
}
.fx-tr__mic {
  fill: var(--gold);
}
.fx-tr__eye {
  fill: var(--navy-900);
  transform-box: fill-box;
  transform-origin: center;
}
.fx-tr__smile {
  fill: none;
  stroke: var(--navy-900);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.fx-tr__sleeve {
  stroke: var(--navy-700);
  stroke-width: 17;
  stroke-linecap: round;
}
.fx-tr__hand {
  fill: var(--gold-soft);
}
.fx-tr__stick {
  stroke: var(--gold-deep);
  stroke-width: 3.6;
  stroke-linecap: round;
}
.fx-tr__tip {
  fill: var(--gold);
}
/* --k = the arm's current stretch, so the hand can counter-scale and stay round */
@property --k {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
.fx-tr__arm {
  transform-origin: 0 0;
  transform: rotate(-20deg) scaleX(1);
}
.fx-tr__hand {
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleX(calc(1 / var(--k)));
}

/* loop (7.2s): the pointer visits der Tisch → die Lampe → das Buch */
.fx-tr__arm {
  animation: fx-tr-arm 7.2s var(--ease-in-out) infinite;
}
.fx-tr-row--1 .fx-tr-row__hl {
  animation: fx-tr-hl-1 7.2s ease-out infinite;
}
.fx-tr-row--2 .fx-tr-row__hl {
  animation: fx-tr-hl-2 7.2s ease-out infinite;
}
.fx-tr-row--3 .fx-tr-row__hl {
  animation: fx-tr-hl-3 7.2s ease-out infinite;
}
.fx-tr-row--1 .fx-tr-row__ok {
  animation: fx-tr-ok-1 7.2s var(--ease-spring) infinite;
}
.fx-tr-row--2 .fx-tr-row__ok {
  animation: fx-tr-ok-2 7.2s var(--ease-spring) infinite;
}
.fx-tr-row--3 .fx-tr-row__ok {
  animation: fx-tr-ok-3 7.2s var(--ease-spring) infinite;
}
.fx-tr__eye {
  animation: fx-blink 4.6s infinite;
}
.fx-tr__person {
  animation: fx-bob 3.6s ease-in-out infinite alternate;
}
@keyframes fx-tr-arm {
  0%,
  2% {
    transform: rotate(-12deg) scaleX(0.9);
    --k: 0.9;
  }
  10%,
  28% {
    transform: rotate(-46.4deg) scaleX(1.143);
    --k: 1.143;
  }
  38%,
  56% {
    transform: rotate(-29.4deg) scaleX(0.905);
    --k: 0.905;
  }
  66%,
  84% {
    transform: rotate(-4.4deg) scaleX(0.79);
    --k: 0.79;
  }
  94%,
  100% {
    transform: rotate(-12deg) scaleX(0.9);
    --k: 0.9;
  }
}
@keyframes fx-tr-hl-1 {
  0%,
  10% {
    transform: scaleX(0);
    opacity: 1;
  }
  15%,
  28% {
    transform: scaleX(1);
    opacity: 1;
  }
  32%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}
@keyframes fx-tr-hl-2 {
  0%,
  38% {
    transform: scaleX(0);
    opacity: 1;
  }
  43%,
  56% {
    transform: scaleX(1);
    opacity: 1;
  }
  60%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}
@keyframes fx-tr-hl-3 {
  0%,
  66% {
    transform: scaleX(0);
    opacity: 1;
  }
  71%,
  84% {
    transform: scaleX(1);
    opacity: 1;
  }
  88%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}
@keyframes fx-tr-ok-1 {
  0%,
  16% {
    opacity: 0;
    transform: scale(0.3);
  }
  21%,
  94% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes fx-tr-ok-2 {
  0%,
  44% {
    opacity: 0;
    transform: scale(0.3);
  }
  49%,
  94% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes fx-tr-ok-3 {
  0%,
  72% {
    opacity: 0;
    transform: scale(0.3);
  }
  77%,
  94% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes fx-blink {
  0%,
  94%,
  100% {
    transform: scaleY(1);
  }
  97% {
    transform: scaleY(0.1);
  }
}
@keyframes fx-bob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-2.5px);
  }
}

/* ===================== 02 · LIVE CLASS WINDOW ===================== */
.why-card--live .why-card__art {
  --art-bg: var(--grad-night);
  flex: 1 1 auto;
  min-height: 22rem;
  container-type: inline-size;
  display: grid;
  place-items: center;
  padding: clamp(2.6rem, 7vw, 3.6rem) clamp(0.9rem, 2.6vw, 1.8rem) clamp(2rem, 5vw, 3rem);
}
.fx-live-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(52% 48% at 50% 52%, color-mix(in srgb, var(--blue-500) 55%, transparent), transparent 72%),
    radial-gradient(30% 30% at 84% 12%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 70%);
  animation: fx-glow 7s ease-in-out infinite alternate;
}
@keyframes fx-glow {
  from {
    opacity: 0.7;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}
.fx-live-win {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 40em;
  margin-inline: auto;
  font-size: clamp(10px, 2.95cqw, 17px);
  color: var(--navy-800);
  background: color-mix(in srgb, var(--white) 97%, transparent);
  border-radius: 1.2em;
  overflow: hidden;
  box-shadow: 0 2.4em 4.5em -1.2em color-mix(in srgb, var(--navy-950) 70%, transparent), 0 0 0 1px color-mix(in srgb, var(--white) 50%, transparent) inset;
}
.fx-live-win__bar {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.75em 1em;
  background: var(--sky-100);
  border-bottom: 1px solid var(--line);
}
.fx-live-win__dots {
  display: inline-flex;
  gap: 0.4em;
}
.fx-live-win__dots i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--blue-300);
}
.fx-live-win__dots i:first-child {
  background: var(--navy-800);
}
.fx-live-win__dots i:nth-child(2) {
  background: var(--gold);
}
.fx-live-win__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1em;
}
.fx-live-win__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 0.75em 0.3em 0.6em;
  border-radius: 99px;
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8em;
  letter-spacing: 0.1em;
  color: var(--navy-800);
}
.fx-live-win__live b {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--rot);
  animation: fx-live-dot 1.6s ease-in-out infinite;
}
@keyframes fx-live-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--rot) 55%, transparent);
  }
  50% {
    box-shadow: 0 0 0 0.45em color-mix(in srgb, var(--rot) 0%, transparent);
  }
}
.fx-live-win__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8em;
  padding: 0.85em;
}
@container (min-width: 470px) {
  .fx-live-win__body {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }
}
@container (max-width: 469px) {
  .fx-live-stage {
    aspect-ratio: 16 / 9.4;
  }
  .fx-live-win {
    font-size: 11.5px;
  }
}
/* wide tile (tablet / narrow desktop): centred window, chips + phone live in the side margins */
@container (min-width: 700px) {
  .fx-live-win,
  .fx-live-phone {
    font-size: clamp(10px, 2.1cqw, 15px);
  }
  .fx-live-chip--a {
    top: 24%;
    left: 3%;
  }
  .fx-live-chip--b {
    bottom: 22%;
    left: 4%;
  }
  .fx-live-phone {
    right: 4%;
    bottom: 8%;
  }
}

/* stage with video tiles */
.fx-live-main {
  display: grid;
  gap: 0.6em;
  align-content: start;
  min-width: 0;
}
.fx-live-stage {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.55em;
  aspect-ratio: 16 / 12.4;
}
.fx-live-tools {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.fx-live-tools i {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--navy-800);
}
.fx-live-tools i:first-child {
  background: var(--navy-800);
  color: var(--white);
}
.fx-live-tools .icon {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2;
}
.fx-live-tools i.fx-live-tools__hand {
  background: var(--gold);
  animation: fx-wave 3.2s ease-in-out infinite;
}
.fx-live-tools__wifi {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.8em;
}
.fx-live-tools__wifi .icon {
  width: 1.3em;
  height: 1.3em;
  stroke-width: 2.2;
}
@keyframes fx-wave {
  0%,
  60%,
  100% {
    transform: rotate(0) scale(1);
  }
  68% {
    transform: rotate(-14deg) scale(1.12);
  }
  76% {
    transform: rotate(12deg) scale(1.12);
  }
  84% {
    transform: rotate(-8deg) scale(1.06);
  }
}
.fx-live-tile {
  position: relative;
  overflow: hidden;
  border-radius: 0.85em;
  min-height: 0;
}
.fx-live-tile::after {
  /* "speaking" ring */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.2em var(--gold);
  opacity: 0;
  pointer-events: none;
}
.fx-live-tile--teacher {
  grid-row: 1 / span 3;
  background: linear-gradient(165deg, var(--blue-500), var(--navy-700));
}
.fx-live-tile--s1 {
  background: var(--sky-200);
}
.fx-live-tile--s2 {
  background: color-mix(in srgb, var(--gold) 55%, var(--white));
}
.fx-live-tile--s3 {
  background: var(--blue-300);
}
.fx-live-avatar {
  --skin: color-mix(in srgb, var(--gold-soft) 70%, var(--white));
  --hair: var(--navy-900);
  --cloth: var(--blue-600);
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 58%;
  aspect-ratio: 1 / 1.1;
  translate: -50% 0;
  animation: fx-bob 3.4s ease-in-out infinite alternate;
}
.fx-live-avatar::before {
  /* head (hair cap on the top third) */
  content: "";
  position: absolute;
  left: 27%;
  top: 6%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(var(--hair) 0 40%, var(--skin) 40%);
}
.fx-live-avatar::after {
  /* shoulders */
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 48%;
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  background: var(--cloth);
}
.fx-live-avatar--teacher {
  --cloth: var(--white);
  width: 46%;
  left: auto;
  right: 6%;
  translate: 0 0;
}
.fx-live-avatar--a {
  --cloth: var(--blue-600);
  --hair: var(--navy-800);
  animation-delay: -1.1s;
}
.fx-live-avatar--b {
  --cloth: var(--navy-800);
  --hair: var(--schwarz);
  animation-delay: -2.2s;
}
.fx-live-avatar--c {
  --cloth: var(--white);
  --hair: var(--navy-700);
  animation-delay: -0.6s;
}
.fx-live-slide {
  position: absolute;
  left: 7%;
  top: 9%;
  width: 46%;
  padding: 0.55em 0.7em 0.7em;
  border-radius: 0.6em;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  color: var(--navy-800);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82em;
  line-height: 1.2;
  box-shadow: 0 0.6em 1.2em -0.4em color-mix(in srgb, var(--navy-950) 55%, transparent);
  transform: rotate(-3deg);
}
.fx-live-slide i {
  display: block;
  height: 0.38em;
  margin-top: 0.42em;
  border-radius: 99px;
  background: var(--sky-200);
}
.fx-live-slide i:last-child {
  width: 62%;
}
.fx-live-tile__tag {
  position: absolute;
  left: 0.55em;
  bottom: 0.5em;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.28em 0.65em 0.28em 0.5em;
  border-radius: 99px;
  background: color-mix(in srgb, var(--navy-950) 60%, transparent);
  color: var(--white);
  font-weight: 600;
  font-size: 0.78em;
}
.fx-live-tile__tag .icon,
.fx-live-tile__mic .icon {
  width: 1em;
  height: 1em;
  stroke-width: 2;
}
.fx-live-tile__mic {
  position: absolute;
  right: 0.4em;
  bottom: 0.4em;
  display: grid;
  place-items: center;
  width: 1.55em;
  height: 1.55em;
  border-radius: 50%;
  background: color-mix(in srgb, var(--navy-950) 55%, transparent);
  color: var(--white);
}

/* chat column */
.fx-live-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 0.85em;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.fx-live-chat__head {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 0.85em;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88em;
}
.fx-live-chat__head .icon {
  width: 1.15em;
  height: 1.15em;
  color: var(--blue-600);
}
.fx-live-chat__list {
  display: grid;
  gap: 0.55em;
  align-content: start;
  padding: 0.75em;
}
.fx-live-slot {
  position: relative;
  display: grid;
}
.fx-live-msg {
  display: block;
  max-width: 92%;
  padding: 0.6em 0.85em;
  border-radius: 1em 1em 1em 0.28em;
  font-size: 1.02em;
  line-height: 1.3;
  font-weight: 600;
}
.fx-live-msg--t {
  justify-self: start;
  background: var(--blue-600);
  color: var(--white);
}
.fx-live-msg--s {
  justify-self: end;
  border-radius: 1em 1em 0.28em 1em;
  background: var(--sky-100);
  color: var(--navy-800);
}
.fx-live-typing {
  position: absolute;
  top: 0;
  display: inline-flex;
  gap: 0.3em;
  padding: 0.85em 0.95em;
  border-radius: 1em 1em 1em 0.28em;
  background: var(--sky-100);
  opacity: 0;
}
.fx-live-typing--2 {
  right: 0;
  border-radius: 1em 1em 0.28em 1em;
}
.fx-live-typing i {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--blue-500);
  animation: fx-dot 1s ease-in-out infinite;
}
.fx-live-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.fx-live-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes fx-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-0.35em);
    opacity: 1;
  }
}

/* the 12s chat loop: typing → bubble "types" itself → reply → reply → reset */
.fx-live-typing--1 {
  animation: fx-lv-typ-1 12s linear infinite;
}
.fx-live-typing--2 {
  animation: fx-lv-typ-2 12s linear infinite;
}
.fx-live-typing--3 {
  animation: fx-lv-typ-3 12s linear infinite;
}
.fx-live-slot--1 .fx-live-msg {
  animation: fx-lv-msg-1 12s linear infinite;
}
.fx-live-slot--2 .fx-live-msg {
  animation: fx-lv-msg-2 12s linear infinite;
}
.fx-live-slot--3 .fx-live-msg {
  animation: fx-lv-msg-3 12s linear infinite;
}
.fx-live-tile--teacher::after {
  animation: fx-lv-ring-t 12s linear infinite;
}
.fx-live-tile--s1::after {
  animation: fx-lv-ring-s 12s linear infinite;
}
@keyframes fx-lv-typ-1 {
  0%,
  3% {
    opacity: 0;
  }
  5%,
  12% {
    opacity: 1;
  }
  12.5%,
  100% {
    opacity: 0;
  }
}
@keyframes fx-lv-typ-2 {
  0%,
  22% {
    opacity: 0;
  }
  24%,
  31.5% {
    opacity: 1;
  }
  32%,
  100% {
    opacity: 0;
  }
}
@keyframes fx-lv-typ-3 {
  0%,
  48% {
    opacity: 0;
  }
  50%,
  57.5% {
    opacity: 1;
  }
  58%,
  100% {
    opacity: 0;
  }
}
@keyframes fx-lv-msg-1 {
  0%,
  12% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  12.1% {
    opacity: 1;
    animation-timing-function: steps(13, end);
  }
  20%,
  92% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  97%,
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0;
  }
}
@keyframes fx-lv-msg-2 {
  0%,
  32% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  32.1% {
    opacity: 1;
    animation-timing-function: steps(20, end);
  }
  44%,
  92% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  97%,
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0;
  }
}
@keyframes fx-lv-msg-3 {
  0%,
  58% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  58.1% {
    opacity: 1;
    animation-timing-function: steps(12, end);
  }
  66%,
  92% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  97%,
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0;
  }
}
@keyframes fx-lv-ring-t {
  0%,
  12%,
  21%,
  58%,
  67%,
  100% {
    opacity: 0;
  }
  14%,
  19%,
  60%,
  65% {
    opacity: 1;
  }
}
@keyframes fx-lv-ring-s {
  0%,
  32%,
  45%,
  100% {
    opacity: 0;
  }
  34%,
  43% {
    opacity: 1;
  }
}

/* floating chips */
.fx-live-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem 0.5rem 0.75rem;
  border-radius: 99px;
  background: var(--white);
  color: var(--navy-800);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  box-shadow: var(--shadow-md);
}
.fx-live-chip .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--blue-600);
}
.fx-live-chip--a {
  top: 6%;
  left: 5%;
  animation: fx-chip 6s ease-in-out infinite alternate;
}
.fx-live-chip--b {
  bottom: 6%;
  left: 6%;
  animation: fx-chip 7s ease-in-out -2.5s infinite alternate;
}
.fx-live-chip--b .icon {
  color: var(--gold-deep);
}
@keyframes fx-chip {
  from {
    transform: translateY(0) rotate(-1.5deg);
  }
  to {
    transform: translateY(-7px) rotate(1.5deg);
  }
}
@container (max-width: 700px) {
  .fx-live-chip--b {
    display: none;
  }
}
@container (max-width: 520px) {
  .fx-live-chip {
    display: none;
  }
  .fx-live-phone {
    display: none;
  }
}

/* the phone: same class, from anywhere */
.fx-live-phone {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 2.4%;
  width: 6.8em;
  aspect-ratio: 9 / 17.5;
  font-size: clamp(10px, 2.95cqw, 17px);
  padding: 0.42em;
  border-radius: 1.5em;
  background: var(--navy-900);
  box-shadow: 0 0 0 0.12em color-mix(in srgb, var(--white) 22%, transparent), 0 1.6em 3em -0.8em color-mix(in srgb, var(--navy-950) 85%, transparent);
  transition: translate 0.6s var(--ease-out);
  translate: calc(var(--px) * 12px) calc(var(--py) * 9px);
  animation: fx-phone 7s ease-in-out infinite alternate;
}
@keyframes fx-phone {
  from {
    transform: translateY(0) rotate(2.5deg);
  }
  to {
    transform: translateY(-0.6em) rotate(-1deg);
  }
}
.fx-live-phone__cam {
  position: absolute;
  z-index: 2;
  top: 0.75em;
  left: 50%;
  width: 1.6em;
  height: 0.45em;
  translate: -50% 0;
  border-radius: 99px;
  background: var(--navy-950);
}
.fx-live-phone__screen {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 0.35em;
  height: 100%;
  padding: 0.35em;
  border-radius: 1.15em;
  background: linear-gradient(170deg, var(--navy-700), var(--navy-800));
  overflow: hidden;
}
.fx-live-phone__live {
  position: absolute;
  z-index: 2;
  top: 1.55em;
  left: 0.8em;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.18em 0.55em 0.18em 0.4em;
  border-radius: 99px;
  background: var(--white);
  color: var(--navy-800);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.58em;
  letter-spacing: 0.1em;
}
.fx-live-phone__live b {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--rot);
}
.fx-live-phone__main {
  position: relative;
  margin-top: 1.1em;
  border-radius: 0.8em;
  overflow: hidden;
  background: linear-gradient(165deg, var(--blue-500), var(--navy-700));
}
.fx-live-avatar--phone {
  right: 10%;
  width: 62%;
}
.fx-live-phone__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35em;
  aspect-ratio: 2.1 / 1;
}
.fx-live-phone__tile {
  position: relative;
  overflow: hidden;
  border-radius: 0.6em;
}
.fx-live-phone__tile--a {
  background: var(--sky-200);
}
.fx-live-phone__tile--b {
  background: color-mix(in srgb, var(--gold) 55%, var(--white));
}
.fx-live-phone__tile .fx-live-avatar {
  width: 74%;
}
.fx-live-phone__bar {
  display: flex;
  justify-content: center;
  gap: 0.6em;
  padding: 0.15em 0 0.2em;
}
.fx-live-phone__bar i {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: color-mix(in srgb, var(--white) 18%, transparent);
  color: var(--white);
}
.fx-live-phone__bar .icon {
  width: 0.95em;
  height: 0.95em;
  stroke-width: 2.2;
}

/* ===================== 03 · DOUBT CLEARANCE ===================== */
.why-art--doubt {
  --art-bg: linear-gradient(170deg, var(--sky-200) 0%, var(--sky-100) 100%);
  container-type: inline-size;
  height: clamp(12rem, 34vw, 14.5rem);
  padding: 1rem;
}
@media (min-width: 720px) and (max-width: 1079px) {
  .why-art--doubt {
    height: auto;
    min-height: 13rem;
  }
}
.fx-dq {
  position: relative;
  z-index: 1;
  width: min(100%, 27.5em);
  font-size: clamp(12px, 3.9cqw, 17px);
  display: grid;
  gap: 0.85em;
}
.fx-dq__row {
  display: flex;
  align-items: flex-end;
  gap: 0.6em;
}
.fx-dq__row--a {
  justify-content: flex-end;
}
.fx-dq__avatar {
  position: relative;
  flex: none;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue-300);
}
.fx-dq__avatar::before {
  content: "";
  position: absolute;
  left: 30%;
  top: 14%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(var(--navy-900) 0 40%, color-mix(in srgb, var(--gold-soft) 70%, var(--white)) 40%);
}
.fx-dq__avatar::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 40%;
  border-radius: 50% 50% 0 0;
  background: var(--blue-600);
}
.fx-dq__avatar--t {
  background: var(--gold-soft);
}
.fx-dq__avatar--t::after {
  background: var(--navy-800);
}
.fx-dq__bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 1em;
  border-radius: 1.1em 1.1em 1.1em 0.3em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  box-shadow: var(--shadow-sm);
}
.fx-dq__bubble--q {
  background: var(--white);
  color: var(--navy-800);
  font-size: 1.08em;
}
.fx-dq__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.55em;
  height: 1.55em;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 0.95em;
}
.fx-dq__slot {
  position: relative;
  max-width: 78%;
}
.fx-dq__bubble--a {
  border-radius: 1.1em 1.1em 0.3em 1.1em;
  background: var(--grad-blue);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98em;
}
.fx-dq__typing {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  gap: 0.3em;
  padding: 0.9em 1.05em;
  border-radius: 1.1em 1.1em 0.3em 1.1em;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  opacity: 0;
}
.fx-dq__typing i {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--blue-500);
  animation: fx-dot 1s ease-in-out infinite;
}
.fx-dq__typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.fx-dq__typing i:nth-child(3) {
  animation-delay: 0.3s;
}
.fx-dq__klar {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 1.1em 0.45em 0.5em;
  border-radius: 99px;
  background: var(--navy-800);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98em;
  letter-spacing: 0.02em;
}
.fx-dq__klar .icon {
  width: 1.5em;
  height: 1.5em;
  padding: 0.28em;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  stroke-width: 3;
}
.fx-dq__float {
  position: absolute;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--blue-500) 26%, transparent);
  user-select: none;
}
.fx-dq__float--1 {
  left: 7%;
  bottom: 12%;
  font-size: 2.6rem;
}
.fx-dq__float--2 {
  right: 9%;
  top: 8%;
  font-size: 1.8rem;
}
.fx-dq__float--3 {
  left: 30%;
  bottom: 6%;
  font-size: 1.5rem;
}
.fx-dq__float {
  animation: fx-qfloat 6s ease-in-out infinite alternate;
}
.fx-dq__float--2 {
  animation-delay: -2s;
}
.fx-dq__float--3 {
  animation-delay: -4s;
}
@keyframes fx-qfloat {
  from {
    transform: translateY(6px) rotate(-8deg);
  }
  to {
    transform: translateY(-9px) rotate(8deg);
  }
}
/* sparkle burst when the answer lands */
.fx-dq__burst {
  position: absolute;
  left: 50%;
  bottom: 11%;
  width: 0;
  height: 0;
  z-index: 2;
}
.fx-dq__burst i {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
}
.fx-dq__burst i:nth-child(even) {
  background: var(--blue-500);
  width: 6px;
  height: 6px;
}
.fx-dq__burst i:nth-child(1) {
  --a: 0deg;
}
.fx-dq__burst i:nth-child(2) {
  --a: 60deg;
}
.fx-dq__burst i:nth-child(3) {
  --a: 120deg;
}
.fx-dq__burst i:nth-child(4) {
  --a: 180deg;
}
.fx-dq__burst i:nth-child(5) {
  --a: 240deg;
}
.fx-dq__burst i:nth-child(6) {
  --a: 300deg;
}

/* 9s loop */
.fx-dq__row--q .fx-dq__avatar,
.fx-dq__row--q .fx-dq__bubble {
  animation: fx-dq-q 9s linear infinite;
}
.fx-dq__typing {
  animation: fx-dq-typ 9s linear infinite;
}
.fx-dq__bubble--a {
  animation: fx-dq-a 9s linear infinite;
}
.fx-dq__klar {
  animation: fx-dq-klar 9s linear infinite;
}
.fx-dq__burst i {
  animation: fx-dq-burst 9s ease-out infinite;
}
@keyframes fx-dq-q {
  0% {
    opacity: 0;
    transform: translateY(0.7em) scale(0.92);
  }
  5%,
  92% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
    transform: none;
  }
}
@keyframes fx-dq-typ {
  0%,
  14% {
    opacity: 0;
  }
  16%,
  29% {
    opacity: 1;
  }
  30%,
  100% {
    opacity: 0;
  }
}
@keyframes fx-dq-a {
  0%,
  30% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  30.1% {
    opacity: 1;
    animation-timing-function: steps(24, end);
  }
  46%,
  92% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  97%,
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0;
  }
}
@keyframes fx-dq-klar {
  0%,
  50% {
    opacity: 0;
    transform: translateY(0.6em) scale(0.6);
  }
  55% {
    opacity: 1;
    transform: translateY(0) scale(1.12);
  }
  58%,
  92% {
    opacity: 1;
    transform: scale(1);
  }
  97%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes fx-dq-burst {
  0%,
  51% {
    opacity: 0;
    transform: rotate(var(--a)) translateX(0) scale(0.4);
  }
  53% {
    opacity: 1;
  }
  64%,
  100% {
    opacity: 0;
    transform: rotate(var(--a)) translateX(3.2rem) scale(1);
  }
}

/* ===================== 04 · EXAM SHEET ===================== */
.why-art--exam {
  --art-bg: color-mix(in srgb, var(--gold) 13%, var(--white));
  height: clamp(14rem, 50vw, 16.5rem);
  padding: 0.6rem;
}
.why-art--exam::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--gold-deep) 26%, transparent) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
  mask-image: radial-gradient(70% 80% at 30% 20%, #000, transparent 90%);
  -webkit-mask-image: radial-gradient(70% 80% at 30% 20%, #000, transparent 90%);
}
@media (min-width: 720px) and (max-width: 1079px) {
  .why-art--exam {
    height: clamp(15rem, 34vw, 17rem);
  }
}
@media (min-width: 1080px) {
  .why-art--exam {
    height: auto;
    min-height: 17rem;
  }
}
.fx-ex {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 400px;
  overflow: visible;
}
.fx-ex__sheet {
  fill: var(--white);
  stroke: var(--line-strong);
  stroke-width: 1.5;
}
.fx-ex__sheet--back {
  fill: var(--sky-200);
  stroke: none;
}
.fx-ex__sheet-wrap {
  filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--navy-800) 18%, transparent));
}
.fx-ex__sheet-g {
  transform-box: view-box;
  transform-origin: 98px 122px;
  transform: rotate(-3deg);
}
.fx-ex__flag--k {
  fill: var(--schwarz);
}
.fx-ex__flag--r {
  fill: var(--rot);
}
.fx-ex__flag--g {
  fill: var(--gold);
}
.fx-ex__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  fill: var(--navy-800);
}
.fx-ex__tags rect {
  fill: var(--sky-100);
  stroke: var(--line-strong);
  stroke-width: 1;
}
.fx-ex__tags text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  fill: var(--navy-800);
}
.fx-ex-row__box {
  fill: var(--sky-100);
  stroke: var(--blue-400);
  stroke-width: 2;
}
.fx-ex-row__tick {
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.fx-ex-row__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  fill: var(--navy-800);
}
.fx-ex-row__track {
  fill: var(--sky-100);
}
.fx-ex-row__fill {
  fill: var(--blue-500);
  transform-box: fill-box;
  transform-origin: left center;
}
.fx-ex__pencil {
  opacity: 0;
}
.fx-ex__pencil-body {
  fill: var(--gold);
}
.fx-ex__pencil-band {
  fill: var(--navy-800);
}
.fx-ex__pencil-wood {
  fill: var(--gold-soft);
}
.fx-ex__pencil-lead {
  fill: var(--navy-900);
}
.fx-ex__rosette {
  transform-box: fill-box;
  transform-origin: center;
}
.fx-ex__rosette-ring {
  fill: var(--gold-deep);
}
.fx-ex__rosette-core {
  fill: var(--gold);
}
.fx-ex__rosette-star {
  fill: var(--navy-900);
}

/* 8s loop: pencil visits each row, tick draws, bar fills, rosette pops */
.fx-ex-row {
  animation: fx-ex-reset 8s linear infinite;
}
.fx-ex-row--1 .fx-ex-row__tick {
  animation: fx-ex-tick-1 8s ease-out infinite;
}
.fx-ex-row--2 .fx-ex-row__tick {
  animation: fx-ex-tick-2 8s ease-out infinite;
}
.fx-ex-row--3 .fx-ex-row__tick {
  animation: fx-ex-tick-3 8s ease-out infinite;
}
.fx-ex-row--4 .fx-ex-row__tick {
  animation: fx-ex-tick-4 8s ease-out infinite;
}
.fx-ex-row--1 .fx-ex-row__fill {
  animation: fx-ex-fill-1 8s ease-in-out infinite;
}
.fx-ex-row--2 .fx-ex-row__fill {
  animation: fx-ex-fill-2 8s ease-in-out infinite;
}
.fx-ex-row--3 .fx-ex-row__fill {
  animation: fx-ex-fill-3 8s ease-in-out infinite;
}
.fx-ex-row--4 .fx-ex-row__fill {
  animation: fx-ex-fill-4 8s ease-in-out infinite;
}
.fx-ex__pencil {
  animation: fx-ex-pencil 8s var(--ease-in-out) infinite;
}
.fx-ex__rosette {
  animation: fx-ex-rosette 8s var(--ease-spring) infinite;
}
@keyframes fx-ex-reset {
  0% {
    opacity: 0;
  }
  4%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fx-ex-tick-1 {
  0%,
  10% {
    stroke-dashoffset: 1;
  }
  16%,
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes fx-ex-tick-2 {
  0%,
  30% {
    stroke-dashoffset: 1;
  }
  36%,
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes fx-ex-tick-3 {
  0%,
  50% {
    stroke-dashoffset: 1;
  }
  56%,
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes fx-ex-tick-4 {
  0%,
  70% {
    stroke-dashoffset: 1;
  }
  76%,
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes fx-ex-fill-1 {
  0%,
  10% {
    transform: scaleX(0);
  }
  26%,
  100% {
    transform: scaleX(1);
  }
}
@keyframes fx-ex-fill-2 {
  0%,
  30% {
    transform: scaleX(0);
  }
  46%,
  100% {
    transform: scaleX(1);
  }
}
@keyframes fx-ex-fill-3 {
  0%,
  50% {
    transform: scaleX(0);
  }
  66%,
  100% {
    transform: scaleX(1);
  }
}
@keyframes fx-ex-fill-4 {
  0%,
  70% {
    transform: scaleX(0);
  }
  86%,
  100% {
    transform: scaleX(1);
  }
}
@keyframes fx-ex-pencil {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  4% {
    opacity: 1;
    transform: translate(0, 0);
  }
  8%,
  17% {
    transform: translate(36px, 68px);
  }
  27%,
  37% {
    transform: translate(36px, 110px);
  }
  47%,
  57% {
    transform: translate(36px, 152px);
  }
  67%,
  77% {
    transform: translate(36px, 194px);
  }
  88% {
    opacity: 1;
    transform: translate(0, 0);
  }
  94%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}
@keyframes fx-ex-rosette {
  0%,
  78% {
    opacity: 0;
    transform: scale(0) rotate(-40deg);
  }
  86% {
    opacity: 1;
    transform: scale(1.15) rotate(6deg);
  }
  90%,
  94% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
  100% {
    opacity: 0;
    transform: scale(1) rotate(0);
  }
}

/* ===================== 05 · B2 EXAM CENTRE (navy tile) ===================== */
.why-card--b2 {
  --ink-soft: var(--on-dark-soft);
  --art-bg: var(--navy-900);
  background: var(--grad-navy);
  border-color: transparent;
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
.why-card--b2 .why-card__icon {
  background: color-mix(in srgb, var(--white) 12%, transparent);
  color: var(--gold);
}
.why-card--b2 .why-card__num {
  color: var(--on-dark-soft);
}
.why-card--b2 .why-card__title {
  color: var(--white);
}
.why-card--b2 .why-card__sub {
  color: var(--gold);
}
.why-card--b2 .why-card__link {
  color: var(--gold);
}
.why-card--b2 :focus-visible {
  outline-color: var(--gold);
}
.why-card--b2::before {
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--gold), color-mix(in srgb, var(--blue-400) 70%, transparent) 55%, transparent 80%);
}
.why-card--b2::after {
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--gold) 14%, transparent), transparent 62%);
}
.why-art--b2 {
  height: clamp(13rem, 44vw, 15rem);
  background: radial-gradient(70% 80% at 50% 105%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 70%), var(--navy-900);
  padding: 0.5rem;
}
@media (min-width: 720px) and (max-width: 1079px) {
  .why-art--b2 {
    height: clamp(13rem, 30vw, 15rem);
  }
}
@media (min-width: 1080px) {
  .why-art--b2 {
    height: 11.5rem;
  }
}
.fx-bc {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 400px;
  overflow: visible;
}
.fx-bc__stars circle {
  fill: var(--white);
  animation: fx-twinkle 3.2s ease-in-out infinite;
}
.fx-bc__stars circle:nth-child(2) {
  animation-delay: -0.8s;
}
.fx-bc__stars circle:nth-child(3) {
  animation-delay: -1.6s;
}
.fx-bc__stars circle:nth-child(4) {
  animation-delay: -2.2s;
}
.fx-bc__stars circle:nth-child(5) {
  animation-delay: -2.8s;
}
@keyframes fx-twinkle {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.95;
  }
}
.fx-bc__pediment {
  fill: var(--sky-100);
}
.fx-bc__tympanum {
  fill: var(--navy-700);
}
.fx-bc__plaque circle {
  fill: var(--gold);
}
.fx-bc__plaque text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  fill: var(--navy-900);
}
.fx-bc__entab {
  fill: var(--sky-200);
}
.fx-bc__entab-2 {
  fill: var(--blue-300);
}
.fx-bc__col {
  fill: var(--sky-100);
  transform-box: fill-box;
  transform-origin: center bottom;
}
.fx-bc__leaf {
  fill: var(--navy-700);
  transform-box: fill-box;
}
.fx-bc__leaf--l {
  transform-origin: left center;
  transform: scaleX(0);
}
.fx-bc__leaf--r {
  transform-origin: right center;
  transform: scaleX(0);
}
.fx-bc__step--1 {
  fill: var(--blue-300);
}
.fx-bc__step--2 {
  fill: var(--blue-400);
}
.fx-bc__step--3 {
  fill: var(--blue-500);
}
.fx-bc__ray {
  transform-box: fill-box;
  transform-origin: center top;
}
.fx-bc__walker {
  opacity: 0;
}
.fx-bc__walker circle {
  fill: var(--gold-soft);
}
.fx-bc__walker .fx-bc__walker-halo {
  fill: color-mix(in srgb, var(--gold-soft) 28%, transparent);
}
.fx-bc__spark path {
  fill: var(--gold-soft);
  transform-box: fill-box;
  transform-origin: center;
}

/* 9s loop: columns rise → pediment lands → plaque pops → door opens → walker goes in */
.fx-bc__build {
  animation: fx-bc-fade 9s linear infinite;
}
.fx-bc__col {
  animation: fx-bc-col 9s var(--ease-out) infinite backwards;
  animation-delay: calc(var(--i) * 0.16s);
}
.fx-bc__pediment,
.fx-bc__tympanum,
.fx-bc__plaque,
.fx-bc__entab,
.fx-bc__entab-2 {
  animation: fx-bc-top 9s var(--ease-out) infinite;
}
.fx-bc__plaque {
  transform-box: fill-box;
  transform-origin: center;
  animation-name: fx-bc-plaque;
}
.fx-bc__leaf--l {
  animation: fx-bc-leaf-l 9s var(--ease-in-out) infinite;
}
.fx-bc__leaf--r {
  animation: fx-bc-leaf-r 9s var(--ease-in-out) infinite;
}
.fx-bc__ray {
  animation: fx-bc-ray 9s ease-out infinite;
}
.fx-bc__walker {
  animation: fx-bc-walk 9s var(--ease-in-out) infinite;
}
.fx-bc__spark path {
  animation: fx-bc-spark 9s ease-out infinite;
}
.fx-bc__spark path:nth-child(2) {
  animation-delay: 0.25s;
  animation-fill-mode: backwards;
}
@keyframes fx-bc-fade {
  0% {
    opacity: 0;
  }
  4%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fx-bc-col {
  0% {
    transform: scaleY(0);
  }
  14%,
  92% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(1);
  }
}
@keyframes fx-bc-top {
  0%,
  10% {
    opacity: 0;
    transform: translateY(-14px);
  }
  22%,
  92% {
    opacity: 1;
    transform: none;
  }
  98%,
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes fx-bc-plaque {
  0%,
  20% {
    opacity: 0;
    transform: scale(0);
  }
  28% {
    opacity: 1;
    transform: scale(1.2);
  }
  32%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fx-bc-leaf-l {
  0%,
  42% {
    transform: scaleX(1);
  }
  54%,
  100% {
    transform: scaleX(0);
  }
}
@keyframes fx-bc-leaf-r {
  0%,
  42% {
    transform: scaleX(1);
  }
  54%,
  100% {
    transform: scaleX(0);
  }
}
@keyframes fx-bc-ray {
  0%,
  44% {
    opacity: 0;
    transform: scaleY(0.2);
  }
  58%,
  92% {
    opacity: 1;
    transform: scaleY(1);
  }
  100% {
    opacity: 0.6;
    transform: scaleY(1);
  }
}
@keyframes fx-bc-walk {
  0%,
  46% {
    opacity: 0;
    transform: translate(40px, 187px) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(40px, 187px) scale(1);
  }
  78% {
    opacity: 1;
    transform: translate(176px, 187px) scale(1);
  }
  86% {
    opacity: 1;
    transform: translate(180px, 160px) scale(0.5);
  }
  90%,
  100% {
    opacity: 0;
    transform: translate(180px, 140px) scale(0.1);
  }
}
@keyframes fx-bc-spark {
  0%,
  52% {
    opacity: 0;
    transform: scale(0) rotate(0);
  }
  60% {
    opacity: 1;
    transform: scale(1.1) rotate(20deg);
  }
  72%,
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(60deg);
  }
}

/* ==========================================================================
   Why-choose-us strip: five checks draw in along a line that ends at the Gate
   ========================================================================== */
.why-strip {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}
.why-strip__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.25rem, 3vw, 2.5rem) clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: clip;
}
.why-strip__flag {
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--grad-flag);
}
.why-strip__track {
  position: relative;
}
.why-strip__line {
  position: absolute;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
  border-radius: 3px;
  /* vertical stepper (mobile): from first to last node */
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  transform-origin: top center;
}
.why-strip__list {
  position: relative;
  display: grid;
  gap: 0.35rem;
}
.why-check {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
}
.why-check__node {
  position: relative;
  z-index: 1;
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
}
.why-check__node svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.why-check__ring {
  fill: var(--sky-100);
  stroke: var(--blue-500);
  stroke-width: 2.4;
}
.why-check__tick {
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-check__node::after {
  /* completion pulse */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 80%, transparent);
  opacity: 0;
  pointer-events: none;
}
.why-check.is-done .why-check__node::after {
  animation: why-pulse 0.9s var(--ease-out) 1;
}
@keyframes why-pulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 80%, transparent);
  }
  100% {
    opacity: 0;
    box-shadow: 0 0 0 12px color-mix(in srgb, var(--gold) 0%, transparent);
  }
}
.why-check__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1.3;
  color: var(--navy-800);
}
.why-check__pipe {
  font-style: normal;
  font-weight: 400;
  margin-inline: 0.05em;
  color: var(--blue-400);
}
.why-strip__end {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--navy-800);
}
.why-strip__glow {
  position: absolute;
  left: -0.5rem;
  top: 50%;
  width: 8rem;
  height: 8rem;
  translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 50%, transparent), transparent);
  opacity: 0.55;
  pointer-events: none;
}
.why-strip__gate {
  position: relative;
  width: 96px;
  height: auto;
  fill: currentColor;
  flex: none;
}
.why-strip__tagline {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
}
@media (min-width: 900px) {
  .why-strip__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
  }
  .why-strip__list {
    grid-template-columns: 1fr 0.9fr 1fr 1.5fr 1.2fr;
    gap: 1.25rem;
  }
  .why-check {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 36px auto;
    align-content: start;
    justify-items: start;
    align-items: start;
    gap: 0.95rem;
    padding: 0;
    padding-right: 0.5rem;
  }
  .why-strip__line {
    left: 18px;
    right: 0;
    top: 16px;
    bottom: auto;
    width: auto;
    height: 3px;
    transform-origin: left center;
  }
  .why-strip__end {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding-left: 1.5rem;
  }
  .why-strip__glow {
    left: 50%;
    top: 1.2rem;
    translate: -50% 0;
    padding-left: 0;
  }
  .why-strip__gate {
    width: 112px;
  }
  .why-strip__tagline {
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    text-align: center;
  }
}

/* ==========================================================================
   #exams (sky)
   ========================================================================== */
.features--exams {
  overflow: clip;
  padding-top: calc(var(--section-y) * 0.85);
}
/* soft arch where the light section ends (gate/arch motif) */
.features--exams::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -1px;
  left: 50%;
  width: 150%;
  height: clamp(36px, 5.5vw, 84px);
  transform: translateX(-50%);
  background: var(--bg);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.exams-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.exams-cloud {
  position: absolute;
  width: 240px;
  height: 64px;
  border-radius: 99px;
  background: var(--white);
  opacity: 0.85;
  filter: blur(1px);
  animation: exams-drift 70s linear infinite alternate;
}
.exams-cloud::before,
.exams-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.exams-cloud::before {
  width: 96px;
  height: 96px;
  left: 28px;
  top: -42px;
}
.exams-cloud::after {
  width: 70px;
  height: 70px;
  left: 108px;
  top: -30px;
}
.exams-cloud--a {
  top: 9%;
  left: 4%;
}
.exams-cloud--b {
  top: 26%;
  right: 3%;
  transform: scale(0.8);
  animation-duration: 90s;
  animation-direction: alternate-reverse;
}
.exams-cloud--c {
  bottom: 24%;
  left: 38%;
  transform: scale(0.6);
  opacity: 0.6;
  animation-duration: 110s;
}
@keyframes exams-drift {
  from {
    translate: -40px 0;
  }
  to {
    translate: 90px 0;
  }
}
.exams-bg__gate {
  position: absolute;
  right: max(2vw, -40px);
  bottom: -2px;
  width: min(34vw, 380px);
  height: auto;
  fill: var(--blue-300);
  opacity: 0.2;
}

.exams-head {
  display: grid;
  gap: var(--space-5);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.exams-head__script {
  max-width: 11em;
  transform: rotate(-3deg);
}
@media (min-width: 900px) {
  .exams-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .exams-head__script {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
  }
}

.exams-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1040px) {
  .exams-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

/* ---------- the paper ---------- */
.exams-paper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.4rem, 2.8vw, 2.1rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.exams-paper__flag {
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--grad-flag);
}
.exams-paper__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.35rem;
}
.exams-paper__title {
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}
.exams-paper__hint {
  margin-top: 0.15rem;
  font-size: var(--fs-sm);
  color: var(--ink-mute);
}
.exams-paper__hint-js,
.exams-levels__hint-js {
  display: none;
}
.exams-paper.is-enhanced .exams-paper__hint-js,
.exams-levels.is-enhanced .exams-levels__hint-js {
  display: inline;
}
.exams-paper.is-enhanced .exams-paper__hint-nojs,
.exams-levels.is-enhanced .exams-levels__hint-nojs {
  display: none;
}
.exams-paper__stamp {
  flex: none;
  padding: 0.3em 0.75em;
  border: 2px solid var(--navy-800);
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-800);
  opacity: 0.7;
  transform: rotate(5deg);
}

/* tabs (hidden until JS upgrades the widget; without JS every panel is simply listed) */
.exams-tabs {
  display: none;
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.35rem;
  border-radius: var(--r-md);
  background: var(--sky-100);
  border: 1px solid var(--line);
}
.exams-paper.is-enhanced .exams-tabs {
  display: grid;
}
.exams-tabs__thumb {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0;
  width: var(--thumb-w, 25%);
  border-radius: calc(var(--r-md) - 6px);
  background: var(--surface);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
  transform: translateX(var(--thumb-x, 0px));
  pointer-events: none;
}
.exams-tabs.is-ready .exams-tabs__thumb {
  transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out);
}
.exams-tab {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.1rem;
  min-height: 64px;
  padding: 0.55rem 0.3rem;
  border-radius: calc(var(--r-md) - 6px);
  color: var(--ink-soft);
  transition: color var(--dur-base) var(--ease-out);
}
.exams-tab:hover {
  color: var(--blue-600);
}
.exams-tab[aria-selected="true"] {
  color: var(--blue-600);
}
.exams-tab .icon {
  width: 22px;
  height: 22px;
  margin-bottom: 0.1rem;
}
.exams-tab__de {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-sm);
  line-height: 1.1;
}
.exams-tab__en {
  font-size: max(var(--fs-xs), 0.8125rem);
  line-height: 1.1;
  color: var(--ink-soft);
}
.exams-tab:focus-visible {
  outline-offset: -2px;
}
@media (max-width: 479px) {
  .exams-tabs {
    gap: 0.1rem;
    padding: 0.3rem;
  }
  .exams-tab {
    padding-inline: 0.1rem;
  }
  .exams-tab__de {
    font-size: 0.78rem;
    letter-spacing: -0.015em;
  }
  .exams-tab__en {
    font-size: 0.8125rem;
  }
}

/* panels */
.exams-panels {
  position: relative;
  flex: 1;
  display: grid;
  align-content: center;
}
.exams-paper__foot {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
}
.exams-paper.is-enhanced .exams-paper__foot {
  display: flex;
}
.exams-paper__dots {
  display: inline-flex;
  gap: 0.45rem;
}
.exams-paper__dots i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 99px;
  background: var(--sky-200);
  transition: width var(--dur-base) var(--ease-out), background-color var(--dur-base);
}
.exams-paper__dots i.is-on {
  width: 1.6rem;
  background: var(--blue-600);
}
.exams-panel {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  border-radius: var(--r-md);
}
.exams-panel[hidden] {
  display: none;
}
.exams-panel + .exams-panel {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--line-strong);
}
.exams-paper.is-enhanced .exams-panel + .exams-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.exams-panel:focus-visible {
  outline-offset: 6px;
}
@media (min-width: 640px) {
  .exams-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 1.75rem;
  }
}
.exams-panel__copy {
  display: grid;
  gap: 0.7rem;
  align-content: center;
}
.exams-panel__kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.exams-panel__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--navy-800);
  width: fit-content;
  background: linear-gradient(transparent 70%, color-mix(in srgb, var(--gold) 70%, transparent) 70% 92%, transparent 92%);
  padding-inline: 0.04em;
}
.exams-panel__text {
  color: var(--ink-soft);
  max-width: 34ch;
}
.exams-panel__list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.2rem;
}
.exams-panel__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 500;
  color: var(--navy-800);
  line-height: 1.35;
}
.exams-panel__list .icon {
  width: 1.55rem;
  height: 1.55rem;
  padding: 0.28rem;
  margin-top: -0.05rem;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--blue-600);
  stroke-width: 2.6;
}

/* ---------- scenes ---------- */
.exams-scene {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 280 / 210;
  border-radius: var(--r-md);
  background: var(--sky-100);
  overflow: hidden;
}
.exams-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--blue-500) 20%, transparent) 1.2px, transparent 1.6px);
  background-size: 16px 16px;
  mask-image: radial-gradient(80% 80% at 70% 20%, #000, transparent 85%);
  -webkit-mask-image: radial-gradient(80% 80% at 70% 20%, #000, transparent 85%);
}
.exams-scene--hoeren {
  background: linear-gradient(160deg, var(--sky-200), var(--sky-100));
}
.exams-scene--schreiben {
  background: color-mix(in srgb, var(--gold) 14%, var(--white));
}
.exams-scene--sprechen {
  background: linear-gradient(160deg, var(--sky-100), var(--sky-200));
}
.fx-sc {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.fx-sc__paper {
  fill: var(--white);
  stroke: var(--line-strong);
  stroke-width: 1.5;
  filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--navy-800) 14%, transparent));
}
.fx-sc__h {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  fill: var(--navy-800);
}
.fx-sc__bar {
  fill: var(--sky-200);
}
.fx-sc__t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  fill: var(--navy-800);
}

/* Lesen — a highlighter sweeps the answer, a lens follows, option C gets ticked (6.5s loop) */
.fx-sc-hl__bg {
  fill: var(--gold-soft);
  transform-box: fill-box;
  transform-origin: left center;
  animation: fx-sc-hl 6.5s var(--ease-in-out) infinite;
}
.fx-sc-opt circle {
  fill: var(--sky-100);
  stroke: var(--blue-300);
  stroke-width: 2;
}
.fx-sc-opt text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  fill: var(--navy-800);
}
.fx-sc-opt--right circle {
  animation: fx-sc-opt 6.5s ease-out infinite;
}
.fx-sc-opt__tick {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  animation: fx-sc-optick 6.5s ease-out infinite;
}
.fx-sc-opt--right text {
  animation: fx-sc-optlabel 6.5s ease-out infinite;
}
.fx-sc-lens {
  transform: translate(60px, 110px);
  animation: fx-sc-lens 6.5s var(--ease-in-out) infinite;
}
.fx-sc-lens__ring {
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 4;
}
.fx-sc-lens__glass {
  fill: color-mix(in srgb, var(--blue-300) 26%, transparent);
}
.fx-sc-lens__handle {
  stroke: var(--navy-800);
  stroke-width: 6;
  stroke-linecap: round;
}
@keyframes fx-sc-hl {
  0%,
  14% {
    transform: scaleX(0);
  }
  38%,
  88% {
    transform: scaleX(1);
  }
  96%,
  100% {
    transform: scaleX(0);
  }
}
@keyframes fx-sc-lens {
  0%,
  8% {
    transform: translate(62px, 126px);
  }
  14% {
    transform: translate(62px, 92px);
  }
  38%,
  48% {
    transform: translate(184px, 92px);
  }
  62%,
  84% {
    transform: translate(158px, 148px);
  }
  96%,
  100% {
    transform: translate(62px, 126px);
  }
}
@keyframes fx-sc-opt {
  0%,
  60% {
    fill: var(--sky-100);
    stroke: var(--blue-300);
  }
  68%,
  88% {
    fill: var(--blue-600);
    stroke: var(--blue-600);
  }
  96%,
  100% {
    fill: var(--sky-100);
    stroke: var(--blue-300);
  }
}
@keyframes fx-sc-optick {
  0%,
  62% {
    stroke-dashoffset: 1;
  }
  72%,
  88% {
    stroke-dashoffset: 0;
  }
  96%,
  100% {
    stroke-dashoffset: 1;
  }
}
@keyframes fx-sc-optlabel {
  0%,
  62% {
    opacity: 1;
  }
  66%,
  88% {
    opacity: 0;
  }
  96%,
  100% {
    opacity: 1;
  }
}

/* Hören — headphones + live waveform + progress */
.fx-sc-phones__band {
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 11;
  stroke-linecap: round;
}
.fx-sc-phones__cup {
  fill: var(--navy-800);
}
.fx-sc-phones__wave {
  fill: none;
  stroke: var(--blue-400);
  stroke-width: 3.2;
  stroke-linecap: round;
  opacity: 0;
}
.fx-sc-phones {
  animation: fx-bob 2.2s ease-in-out infinite alternate;
}
.fx-sc-phones__wave {
  animation: fx-sc-wave 1.8s ease-in-out infinite;
}
.fx-sc-bars rect {
  fill: var(--blue-500);
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleY(var(--h));
  animation: fx-sc-bar 1.15s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.14s);
}
.fx-sc-bars rect:nth-child(3n) {
  fill: var(--blue-400);
}
.fx-sc-bars rect:nth-child(5n) {
  fill: var(--navy-700);
}
.fx-sc-track__bar {
  fill: var(--white);
  stroke: var(--line);
}
.fx-sc-track__fill {
  fill: var(--blue-600);
  transform-box: fill-box;
  transform-origin: left center;
  animation: fx-sc-prog 7s linear infinite;
}
.fx-sc-track__knob {
  fill: var(--white);
  stroke: var(--blue-600);
  stroke-width: 3;
  animation: fx-sc-knob 7s linear infinite;
}
@keyframes fx-sc-bar {
  from {
    transform: scaleY(calc(var(--h) * 0.28));
  }
  to {
    transform: scaleY(var(--h));
  }
}
@keyframes fx-sc-wave {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
@keyframes fx-sc-prog {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes fx-sc-knob {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(206px);
  }
}

/* Schreiben — a letter writes itself (9s loop) */
.fx-sc-rules line {
  stroke: var(--sky-200);
  stroke-width: 2;
}
.fx-sc-ink text {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 31px;
  fill: var(--navy-800);
}
.fx-sc-cover {
  fill: var(--white);
  transform-box: fill-box;
  transform-origin: right center;
  transform: scaleX(0);
}
.fx-sc-cover--1 {
  animation: fx-sc-type-1 9s linear infinite;
}
.fx-sc-cover--2 {
  animation: fx-sc-type-2 9s linear infinite;
}
.fx-sc-cover--3 {
  animation: fx-sc-type-3 9s linear infinite;
}
.fx-sc-cover--4 {
  animation: fx-sc-type-4 9s linear infinite;
}
.fx-sc-pen {
  opacity: 0;
  animation: fx-sc-pen 9s var(--ease-in-out) infinite;
}
.fx-sc-pen__body {
  fill: var(--blue-600);
}
.fx-sc-pen__cap {
  fill: var(--navy-800);
}
.fx-sc-pen__nib {
  fill: var(--gold);
}
@keyframes fx-sc-type-1 {
  0%,
  4% {
    transform: scaleX(1);
  }
  4.1% {
    animation-timing-function: steps(11, end);
  }
  20%,
  93% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}
@keyframes fx-sc-type-2 {
  0%,
  22% {
    transform: scaleX(1);
  }
  22.1% {
    animation-timing-function: steps(15, end);
  }
  42%,
  93% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}
@keyframes fx-sc-type-3 {
  0%,
  44% {
    transform: scaleX(1);
  }
  44.1% {
    animation-timing-function: steps(16, end);
  }
  66%,
  93% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}
@keyframes fx-sc-type-4 {
  0%,
  68% {
    transform: scaleX(1);
  }
  68.1% {
    animation-timing-function: steps(9, end);
  }
  82%,
  93% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}
@keyframes fx-sc-pen {
  0% {
    opacity: 0;
    transform: translate(64px, 56px);
  }
  3% {
    opacity: 1;
    transform: translate(52px, 50px);
  }
  20% {
    transform: translate(150px, 50px);
  }
  22% {
    transform: translate(52px, 86px);
  }
  42% {
    transform: translate(178px, 86px);
  }
  44% {
    transform: translate(52px, 122px);
  }
  66% {
    transform: translate(192px, 122px);
  }
  68% {
    transform: translate(52px, 158px);
  }
  82% {
    transform: translate(150px, 158px);
  }
  88%,
  93% {
    opacity: 1;
    transform: translate(190px, 176px);
  }
  98%,
  100% {
    opacity: 0;
    transform: translate(200px, 190px);
  }
}

/* Sprechen — a short dialogue pops in, mic ripples */
.fx-sc-say__bg {
  fill: var(--white);
  stroke: var(--line-strong);
  stroke-width: 1.5;
  filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--navy-800) 12%, transparent));
}
.fx-sc-say text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  fill: var(--navy-800);
}
.fx-sc-say--2 .fx-sc-say__bg {
  fill: var(--blue-600);
  stroke: none;
}
.fx-sc-say--2 text {
  fill: var(--white);
}
.fx-sc-say--1 {
  transform-origin: 40px 70px;
  animation: fx-sc-say-1 8s var(--ease-spring) infinite;
}
.fx-sc-say--2 {
  transform-origin: 240px 126px;
  animation: fx-sc-say-2 8s var(--ease-spring) infinite;
}
.fx-sc-say--3 {
  transform-origin: 40px 182px;
  animation: fx-sc-say-3 8s var(--ease-spring) infinite;
}
.fx-sc-mic__btn {
  fill: var(--navy-800);
}
.fx-sc-mic .icon {
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}
.fx-sc-mic__ring {
  fill: none;
  stroke: var(--blue-500);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: fx-sc-ripple 2.4s ease-out infinite;
}
.fx-sc-mic__ring--2 {
  animation-delay: -1.2s;
}
@keyframes fx-sc-say-1 {
  0%,
  4% {
    opacity: 0;
    transform: scale(0.4);
  }
  10%,
  92% {
    opacity: 1;
    transform: scale(1);
  }
  98%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes fx-sc-say-2 {
  0%,
  26% {
    opacity: 0;
    transform: scale(0.4);
  }
  32%,
  92% {
    opacity: 1;
    transform: scale(1);
  }
  98%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes fx-sc-say-3 {
  0%,
  50% {
    opacity: 0;
    transform: scale(0.4);
  }
  56%,
  92% {
    opacity: 1;
    transform: scale(1);
  }
  98%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes fx-sc-ripple {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2.1);
  }
}

/* ---------- level → exam families ---------- */
.exams-levels {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1.1rem;
  padding: clamp(1.4rem, 2.8vw, 2.1rem);
  border-radius: var(--r-lg);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--white) 75%, transparent);
  box-shadow: var(--shadow-md);
}
.exams-levels__title {
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}
.exams-levels__hint {
  margin-top: -0.7rem;
  font-size: var(--fs-sm);
  color: var(--ink-mute);
}
.exams-levels__chips {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.exams-levels.is-enhanced .exams-levels__chips {
  display: grid;
}
.exams-chip {
  position: relative;
  display: block;
}
.exams-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.exams-chip__face {
  display: grid;
  place-items: center;
  min-height: 56px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 2px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--navy-800);
  transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-base), color var(--dur-base), border-color var(--dur-base),
    box-shadow var(--dur-base);
}
.exams-chip:hover .exams-chip__face {
  border-color: var(--blue-400);
  transform: translateY(-2px);
}
.exams-chip input:checked + .exams-chip__face {
  background: var(--grad-blue);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-glow-blue);
}
.exams-chip input:focus-visible + .exams-chip__face {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
}
.exams-results {
  display: grid;
}
.exams-result {
  display: grid;
  gap: 0.9rem;
}
.exams-result[hidden] {
  display: none;
}
.exams-result + .exams-result {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line-strong);
}
.exams-levels.is-enhanced .exams-result + .exams-result {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.exams-result__lvl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-soft);
}
.exams-result__lvl strong {
  color: var(--navy-800);
  font-weight: 800;
}
.exams-result__lvl-badge {
  display: inline-grid;
  place-items: center;
  min-width: 2.7rem;
  height: 2.7rem;
  padding-inline: 0.5rem;
  border-radius: var(--r-pill);
  background: var(--grad-blue);
  color: var(--white);
  font-weight: 800;
  font-size: var(--fs-base);
}
.exams-result__meaning {
  color: var(--ink-soft);
  font-size: var(--fs-base);
}
.exams-result__list {
  display: grid;
  gap: 0.65rem;
}
.exams-exam {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 1.3rem;
  padding: 0.8rem 1rem 0.8rem 0.8rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.exams-exam::before {
  /* perforation between the exam badge and its name */
  content: "";
  position: absolute;
  left: 4.85rem;
  top: 0.7rem;
  bottom: 0.7rem;
  border-left: 2px dashed var(--line-strong);
}
.exams-exam__brand {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  align-self: center;
  width: 3.7rem;
  height: 3.1rem;
  padding-inline: 0.2rem;
  border-radius: 14px;
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.exams-exam--telc .exams-exam__brand {
  background: var(--blue-600);
  font-size: 0.95rem;
  letter-spacing: 0;
}
.exams-exam__name {
  align-self: end;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--navy-800);
  line-height: 1.25;
}
.exams-exam__note {
  align-self: start;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.exams-exam:not(:has(.exams-exam__note)) .exams-exam__name {
  grid-row: 1 / span 2;
  align-self: center;
}
.exams-result__ask {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--blue-600);
}
.exams-result__ask .icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform var(--dur-base) var(--ease-out);
}
.exams-result__ask:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.exams-result__ask:hover .icon {
  transform: translate(3px, -3px);
}

/* ---------- the B2 ticket ---------- */
.exams-ticket-wrap {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  filter: drop-shadow(0 22px 28px color-mix(in srgb, var(--navy-800) 26%, transparent));
}
.exams-ticket {
  --notch: 17px;
  --stub-h: 190px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(var(--stub-h), auto);
  border-radius: var(--r-lg);
  background: var(--grad-navy);
  color: var(--on-dark);
  isolation: isolate;
  overflow: hidden;
  /* ticket notches at the perforation (stacked layout: left/right edges) */
  -webkit-mask: radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub-h)), #0000 calc(var(--notch) - 0.5px), #000 var(--notch)),
    radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub-h)), #0000 calc(var(--notch) - 0.5px), #000 var(--notch));
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub-h)), #0000 calc(var(--notch) - 0.5px), #000 var(--notch)),
    radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub-h)), #0000 calc(var(--notch) - 0.5px), #000 var(--notch));
  mask-composite: intersect;
}
.exams-ticket::before {
  /* faint gate watermark + glow */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 90% at 12% 0%, color-mix(in srgb, var(--blue-500) 40%, transparent), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%);
}
.exams-ticket__gate {
  position: absolute;
  right: clamp(-1rem, 2vw, 2rem);
  bottom: -0.5rem;
  width: clamp(200px, 34vw, 420px);
  height: auto;
  fill: var(--white);
  opacity: 0.06;
  pointer-events: none;
}
.exams-ticket__main {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.6rem;
  padding: clamp(1.6rem, 3.4vw, 3rem) clamp(1.4rem, 3.4vw, 3rem);
}
.exams-ticket__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.exams-ticket__kicker .icon {
  width: 1.2rem;
  height: 1.2rem;
}
.exams-ticket__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--white);
}
.exams-ticket__sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: 0.01em;
  color: var(--gold);
}
.exams-ticket__text {
  max-width: 40ch;
  margin: 0.4rem 0 0.7rem;
  color: var(--on-dark-soft);
  font-size: var(--fs-base);
}
.exams-ticket__stub {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0.35rem 1.1rem;
  padding: 0.9rem clamp(1.4rem, 3.4vw, 2.4rem) 1.15rem;
  background: var(--grad-gold);
  color: var(--navy-900);
  border-top: 3px dashed color-mix(in srgb, var(--navy-900) 38%, transparent);
}
.exams-ticket__level {
  grid-column: 1 / -1;
  grid-row: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 13vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}
.exams-ticket__code {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: 1.9rem;
  align-self: center;
}
.exams-ticket__code i {
  display: block;
  width: 3px;
  background: var(--navy-900);
  opacity: 0.85;
  border-radius: 1px;
}
.exams-ticket__code i:nth-child(3n) {
  width: 5px;
}
.exams-ticket__code i:nth-child(4n) {
  width: 2px;
}
.exams-ticket__code i:nth-child(5n) {
  width: 4px;
}
.exams-ticket__tag {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.35;
}
.exams-ticket__stamp {
  position: absolute;
  right: clamp(0.9rem, 3vw, 1.6rem);
  top: 0.8rem;
  width: clamp(88px, 24vw, 112px);
  height: auto;
  color: var(--rot);
  transform: rotate(-14deg);
  mix-blend-mode: multiply;
  opacity: 0.93;
}
.exams-ticket__stamp-o {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
}
.exams-ticket__stamp-i {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.exams-ticket__stamp-ring-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  fill: currentColor;
}
.exams-ticket__stamp-b2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  fill: currentColor;
}
@media (min-width: 800px) {
  .exams-ticket {
    --stub-w: clamp(260px, 30vw, 380px);
    grid-template-columns: minmax(0, 1fr) var(--stub-w);
    grid-template-rows: auto;
    -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - var(--stub-w)) 0, #0000 calc(var(--notch) - 0.5px), #000 var(--notch)),
      radial-gradient(circle var(--notch) at calc(100% - var(--stub-w)) 100%, #0000 calc(var(--notch) - 0.5px), #000 var(--notch));
    -webkit-mask-composite: source-in;
    mask: radial-gradient(circle var(--notch) at calc(100% - var(--stub-w)) 0, #0000 calc(var(--notch) - 0.5px), #000 var(--notch)),
      radial-gradient(circle var(--notch) at calc(100% - var(--stub-w)) 100%, #0000 calc(var(--notch) - 0.5px), #000 var(--notch));
    mask-composite: intersect;
  }
  .exams-ticket__stub {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    justify-items: start;
    align-content: center;
    gap: 0.5rem;
    border-top: 0;
    border-left: 3px dashed color-mix(in srgb, var(--navy-900) 38%, transparent);
    padding: 2rem 1.75rem 1.75rem 2rem;
  }
  .exams-ticket__level {
    grid-column: auto;
    grid-row: auto;
    font-size: clamp(5rem, 9vw, 7.5rem);
  }
  .exams-ticket__code {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    height: 2.4rem;
  }
  .exams-ticket__tag {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
  }
  .exams-ticket__stamp {
    right: 1.1rem;
    top: 1.1rem;
    width: clamp(96px, 9vw, 124px);
  }
}
.exams-fine {
  margin-top: 1.25rem;
  max-width: 60ch;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

/* ==========================================================================
   Reduced motion: everything settles into its finished state
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .why-card *,
  .why-card *::before,
  .why-card *::after,
  .features .exams-panel *,
  .features .exams-bg *,
  .why-bg__glyph,
  .why-check__node::after {
    animation: none !important;
  }
  .fx-live-typing,
  .fx-dq__typing,
  .fx-dq__burst i,
  .fx-ex__pencil,
  .fx-bc__walker {
    display: none;
  }
  .fx-ex__rosette {
    opacity: 1;
  }
  .fx-bc__ray {
    opacity: 1;
  }
  .fx-sc-hl__bg {
    transform: scaleX(1);
  }
  .fx-sc-lens {
    transform: translate(184px, 92px);
  }
  .fx-ex-row__fill {
    transform: scaleX(1);
  }
  .fx-tr-row__ok {
    opacity: 1;
  }
  .fx-tr-row__hl {
    opacity: 0;
  }
  .fx-sc-opt--right circle {
    fill: var(--blue-600);
    stroke: var(--blue-600);
  }
  .fx-sc-opt--right text {
    opacity: 0;
  }
  .fx-sc-track__fill {
    transform: scaleX(0.45);
  }
  .fx-sc-track__knob {
    transform: translateX(93px);
  }
  .why-card,
  .why-card * {
    transition-duration: 0.001ms !important;
  }
}

/* ---- audit fixes ---- */
.nowrap { white-space: nowrap; }
.why-strip__tagline { flex-wrap: wrap; text-wrap: balance; }
.exams-bg__gate { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.exams-ticket__cta { min-width: 0; }
@media (max-width: 360px) {
  .exams-ticket__cta { white-space: normal; padding-inline: 1rem; }
}
