@keyframes panel-arrival {
  from { opacity: .72; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  #programme .programme-grid.interactive article:not([hidden]),
  .trial-page section.card:not([hidden]),
  .report details[open] > :not(summary) { animation: panel-arrival .26s ease-out; }
  .report-reading { animation: reading-progress linear both; animation-timeline: scroll(); }
  @keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  #enrolForm .card, .offer { transition: box-shadow .2s, border-color .2s; }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .report-reading { position: fixed; inset: 0 0 auto; height: 3px; z-index: 1000; background: #f39a4c; transform-origin: left; pointer-events: none; }
  }
}
.report section { scroll-margin-top: 6rem; }
.report section[id] h2 { border-inline-start: 3px solid #ed903d; padding-inline-start: .65em; }
.report p { text-wrap: pretty; }
#enrolForm .card:focus-within, .offer:has(input:checked) { box-shadow: 0 0 0 2px #315f95, 0 6px 18px #12366712; }
#enrolForm .section-head { background: #183b6a !important; color: white; border-inline-start: 5px solid #ff9d4d; }
@media(max-width:650px) {
  #enrolForm :is(input,select,textarea), .trial-page :is(select,textarea,input:not([type=checkbox],[type=radio])) { font-size: 16px; }
}

.home-ranking {
  margin: 14px 12px 8px;
  text-align: center;
  color: #142447;
  font-size: clamp(.875rem, 3.8vw, 1.0625rem);
  font-weight: 700;
}
.home-ranking strong { white-space: nowrap; font-weight: 850; }
.ranking-cube {
  display: inline-block;
  width: .95em;
  height: 1em;
  margin-inline-end: .35em;
  vertical-align: -.1em;
  background: conic-gradient(from 60deg, #a81e23 0 120deg, #dc3438 120deg 240deg, #ff6861 240deg);
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
}
.homepage .hero + .home-trust { margin-block: 10px 0; }
@media (max-width: 700px) {
  .homepage .hero + .home-trust { grid-template-columns: minmax(0,1fr); justify-items:center; }
  .homepage .home-ai-tools { padding-top: 8px; }
}

.homepage .hero p.home-ranking {
  margin: 14px 0 0;
  padding-block-start: 10px;
  border-top: 1px solid #ffffff35;
  text-align: start;
  color: #fff;
  font-size: clamp(.875rem, 3.35vw, 1.05rem);
  line-height: 1.5;
  font-weight: 650;
}
.hero .home-ranking strong { color: #ffbd87; }

.home-trust .student-count {
  display: inline-flex;
  align-items: baseline;
  gap: .45em;
  white-space: nowrap;
  font-size: clamp(.875rem, 3.9vw, 1.05rem);
}
.student-count strong { font-weight: 850; }
.student-count span { color: #586780; font-size: .82em; font-weight: 400; }
