/* Homepage-only carousel. All slides share one grid cell to avoid layout shifts. */
.hero-carousel { padding-top: 90px; background: #071a30; }
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; min-width: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .8s ease, visibility .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.hero-slide__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(4,17,35,.94) 0%,rgba(4,17,35,.8) 38%,rgba(4,17,35,.15) 100%),linear-gradient(0deg,#071a30 0%,transparent 35%); }
.hero-slide--xrd .hero-slide__image,.hero-slide--custom .hero-slide__image { object-position: right center; }
.hero-slide .hero-slide__content { position: relative; z-index: 2; min-height: 560px; padding-top: 100px; padding-bottom: 100px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-slide__title { color: #fff; font-size: clamp(36px,4.3vw,66px); line-height: 1.2; letter-spacing: -.045em; margin: 22px 0 0; font-weight: 700; word-break: keep-all; }
.hero-slide__description { color: rgba(255,255,255,.83); font-size: 17px; line-height: 1.85; margin-top: 24px; word-break: keep-all; }
.hero-carousel__footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-bottom: 30px; }
.hero-carousel__topics { display: flex; flex: 1; max-width: 690px; gap: 28px; }
.hero-carousel__topics button { flex: 1; padding: 18px 0; border: 0; border-top: 2px solid rgba(255,255,255,.25); background: transparent; color: #a5b4c8; text-align: left; font: inherit; font-size: 15px; cursor: pointer; transition: color .2s, border-color .2s; white-space: nowrap; }
.hero-carousel__topics button span { font-size: 11px; margin-right: 8px; opacity: .7; }
.hero-carousel__topics button[aria-pressed="true"] { color: #fff; border-color: #7db7ff; }
.hero-carousel__controls { display: flex; gap: 8px; align-items: center; }
.hero-carousel__count { font-size: 12px; color: #a5b4c8; letter-spacing: .12em; margin-right: 12px; }
.hero-carousel__count b { color: #fff; }
.hero-carousel__controls button { min-width: 44px; min-height: 44px; border: 1px solid #66768b; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font: inherit; }
.hero-carousel button:focus-visible,.hero-carousel a:focus-visible { outline: 3px solid #9dcdff; outline-offset: 5px; }
.hero-carousel__announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media(max-width: 760px) {
  .hero-carousel { padding-top: 80px; }
  .hero-slide .hero-slide__content { min-height: 540px; padding-top: 64px; padding-bottom: 64px; }
  .hero-slide__title { font-size: clamp(30px,6.8vw,46px); }
  .hero-slide__description { font-size: 15px; max-width: 92%; }
  .hero-slide__description br { display: none; }
  .hero-slide::after { background: linear-gradient(90deg,rgba(4,17,35,.9),rgba(4,17,35,.45)),linear-gradient(0deg,#071a30,transparent 60%); }
  .hero-carousel__footer { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-carousel__topics { gap: 10px; max-width: none; }
  .hero-carousel__topics button { font-size: 12px; min-width: 0; white-space: normal; word-break: keep-all; }
  .hero-carousel__topics button span { display: block; margin-bottom: 6px; }
  .hero-carousel__controls { justify-content: flex-end; }
  .hero-carousel .hero-actions { gap: 10px; }
  .hero-carousel .btn { font-size: 14px; padding: 0 20px; }
}
@media(prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
