.home-carousel { --header-height: 112px; height: calc(100svh - var(--header-height)); color: #fff; background: var(--navy); }
.home-carousel, .home-carousel * { -webkit-user-select: none; user-select: none; }
.home-carousel:focus-visible { outline: 2px solid #edbf80; outline-offset: -2px; }
.home-carousel__slide[hidden] { display: none; }
.home-carousel__stage { display: grid; height: 100%; min-height: 0; overflow: hidden; }
.home-carousel__slide { grid-area: 1 / 1; min-width: 0; min-height: 0; height: 100%; position: relative; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s; }
.home-carousel__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.home-carousel .home-hero { height: 100%; min-height: 0; }
.home-carousel .home-hero__title { margin-bottom: 26px; font-size: 52px; line-height: 1.08; letter-spacing: -.04em; }

.home-geo { min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(90deg, rgba(8,31,52,.7), rgba(8,31,52,.5) 48%, rgba(8,31,52,.28)), url("images/home-geo-banner.webp?v=20260912-1") center/cover no-repeat, #081f34; }
.home-geo__inner { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 34px; padding-block: 38px; }
.home-geo__content { position: relative; z-index: 2; }
.home-geo .eyebrow { color: #dbbb8d; font-size: 12px; letter-spacing: .12em; }
.home-geo .eyebrow span { background: #dbbb8d; }
.home-geo__title { margin: 0 0 24px; font-size: clamp(44px, 3.8vw, 64px); line-height: 1.24; letter-spacing: -.045em; }
.home-geo__title > span { color: #f2c383; }
.home-geo__sub { max-width: 600px; margin-bottom: 27px; color: #c1d1df; font-size: 17px; line-height: 1.85; }
.home-geo__primary { background: #edbf80; color: #132a3b; border-color: #edbf80; }
.home-geo__primary:hover { background: #f8cf98; }
.home-geo__secondary { color: #ebf1f5; border-color: #9db6c66b; background: transparent; }
.home-geo__secondary:hover { background: #ffffff0d; }
.home-geo__stats { display: flex; gap: 36px; margin: 32px 0 0; }
.home-geo__stats > div + div { padding-left: 36px; border-left: 1px solid #ffffff26; }
.home-geo__stats dt { color: #f1d2a5; font-size: 29px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.home-geo__stats dt span { font-size: 18px; }
.home-geo__stats dd { margin: 9px 0 0; color: #a9c0d2; font-size: 12px; }
.home-geo__visual { min-width: 0; min-height: 0; max-height: 100%; overflow: clip; }
.home-geo__orbit { position: relative; width: min(100%, 720px, calc((100svh - var(--header-height) - 120px) * 1.12)); aspect-ratio: 1.12; margin-inline: auto; }
.home-geo__ring { position: absolute; top: 50%; left: 50%; aspect-ratio: 1; border: 1px solid #c7aa7440; border-radius: 50%; transform: translate(-50%, -50%); }
.home-geo__ring--outer { width: 84%; border-style: dashed; opacity: .55; }
.home-geo__ring--middle { width: 65%; }
.home-geo__ring--inner { width: 45%; border-color: #d7bb8530; }
.home-geo__scan { position: absolute; width: 78%; aspect-ratio: 1; left: 11%; top: 50%; margin-top: -39%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 68%, #e7bb7614 98%, #e7bb7655); animation: home-geo-scan 24s linear infinite; }
.home-geo__core { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 35%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid #e4bc796b; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #244557, #0b2338 75%); box-shadow: 0 0 65px #dbb67612, 0 0 0 10px #edbf8005; }
.home-geo__core img { width: 40px; height: 40px; object-fit: contain; }
.home-geo__core small { color: #bba887; font-size: 9px; letter-spacing: .18em; }
.home-geo__core strong { font-size: 23px; }
.home-geo__core em { font-size: 40px; line-height: 1; font-style: normal; color: #edbf80; font-variant-numeric: tabular-nums; }
.home-geo__core em span { font-size: 16px; }
.home-geo__sample { color: #9bb0c0; font-size: 10px; }
.home-geo__node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; padding: 12px 15px; border: 1px solid #8daab240; border-radius: 5px; white-space: nowrap; color: #dce8ec; background: #0d2b3f; font-size: 14px; box-shadow: 0 5px 24px #031d3530; }
.home-geo__node::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #e5ba7b; box-shadow: 0 0 9px #e5ba7b70; }
.home-geo__ticker { position: relative; display: flex; align-items: center; justify-content: center; gap: 25px; min-height: 43px; flex-shrink: 0; overflow: hidden; white-space: nowrap; border-top: 1px solid #ffffff0d; color: #819bad; font-size: 11px; letter-spacing: .06em; }
.home-geo__ticker i { color: #bb9869; font-size: 10px; font-style: normal; }
@keyframes home-geo-scan { to { transform: rotate(360deg); } }

@media (min-width: 1440px) {
  .home-carousel .home-hero__title { font-size: 58px; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .home-geo__inner { gap: 16px; }
  .home-geo__title { font-size: 44px; }
  .home-geo__sub { font-size: 15px; }
  .home-geo .btn { padding-inline: 16px; font-size: 13px; }
  .home-geo__stats { gap: 22px; }
  .home-geo__stats > div + div { padding-left: 22px; }
  .home-geo__core { gap: 4px; }
  .home-geo__core img { width: 24px; height: 24px; }
  .home-geo__core strong { font-size: 15px; }
  .home-geo__core em { font-size: 26px; }
  .home-geo__node { padding: 8px; gap: 5px; font-size: 10px; }
  .home-carousel .home-hero__title { font-size: 46px; }
}
@media (max-width: 820px) {
  .home-geo__inner { grid-template-columns: 1fr; gap: 15px; padding-top: 42px; padding-bottom: 18px; }
  .home-geo__title { font-size: clamp(36px, 7.3vw, 54px); }
  .home-geo__sub { font-size: 15px; }
  .home-geo .eyebrow { font-size: 10px; letter-spacing: .065em; }
  .home-geo .eyebrow span { width: 18px; margin-right: 6px; }
  .home-geo__orbit { max-width: 400px; }
  .home-geo__stats { gap: 24px; margin-top: 25px; }
  .home-geo__stats > div + div { padding-left: 24px; }
  .home-geo__stats dt { font-size: 25px; }
  .home-geo__ticker { min-height: 38px; gap: 18px; }
  .home-carousel .home-hero { padding-top: 42px; padding-bottom: 300px; }
  .home-carousel .home-hero__title { font-size: clamp(36px, 8vw, 48px); }
}
@media (max-width: 480px) {
  .home-geo .button-row { display: grid; grid-template-columns: 1fr; }
  .home-geo .btn { padding-inline: 13px; font-size: 14px; }
  .home-geo__stats { justify-content: space-between; gap: 10px; }
  .home-geo__stats > div + div { padding-left: 16px; }
  .home-geo__stats dd { font-size: 11px; }
  .home-geo__node { padding: 7px 8px; font-size: 9px; gap: 4px; }
  .home-geo__core { width: 37%; gap: 3px; }
  .home-geo__core img { width: 21px; height: 21px; }
  .home-geo__core small { font-size: 7px; }
  .home-geo__core strong { font-size: 14px; }
  .home-geo__core em { font-size: 24px; }
  .home-geo__sample { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-carousel__slide { transition: none; }
  /* Keep the scan rotating independently of carousel and motion preferences. */
  .home-geo__scan { animation-duration: 24s !important; animation-iteration-count: infinite !important; }
}

/* The header and both slides share one viewport, including on mobile. */
.home-geo__inner { overflow: auto; }
.home-carousel .home-hero__inner { height: 100%; padding-block: 30px; overflow: auto; }
.home-carousel .home-hero__copy { margin-block: auto; }
@media (min-width: 821px) and (max-height: 760px) {
  .home-geo__inner { padding-block: 22px; }
  .home-geo__title { font-size: clamp(38px, 6.5svh, 56px); margin-bottom: 18px; }
  .home-geo__sub { font-size: 15px; margin-bottom: 20px; }
  .home-geo__stats { margin-top: 22px; }
  .home-geo__orbit { max-width: calc((100svh - var(--header-height) - 100px) * 1.12); }
  .home-carousel .home-hero__title { font-size: clamp(32px, 6.4svh, 48px); margin-bottom: 20px; }
  .home-carousel .hero-lead { font-size: 15px; margin-bottom: 20px; }
  .home-carousel .hero-note { font-size: 12px; margin-top: 15px; }
}
@media (max-width: 820px) {
  .home-carousel { --header-height: 103px; }
  .home-geo__inner { grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding-top: 26px; padding-bottom: 10px; }
  .home-geo__visual { height: 100%; display: flex; align-items: center; justify-content: center; }
  .home-geo__orbit { width: auto; height: 100%; max-height: 330px; max-width: 100%; }
  .home-geo__title { font-size: clamp(30px, 4.5svh, 44px); margin-bottom: 16px; }
  .home-geo .eyebrow { margin-bottom: 16px; }
  .home-geo__sub { font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
  .home-geo .btn { min-height: 44px; }
  .home-geo .button-row { gap: 8px; }
  .home-geo__stats { margin-top: 20px; }
  .home-geo__stats dt { font-size: 23px; }
  .home-geo__stats dd { margin-top: 6px; }
  .home-geo__ticker { min-height: 30px; font-size: 10px; }
  .home-geo__core { gap: 3px; }
  .home-geo__core img { width: 20px; height: 20px; }
  .home-geo__core small { font-size: 7px; }
  .home-geo__core strong { font-size: 13px; }
  .home-geo__core em { font-size: 23px; }
  .home-geo__sample { font-size: 8px; }
  .home-geo__node { font-size: 9px; padding: 5px 7px; gap: 4px; }
  .home-carousel .home-hero { padding: 0; }
  .home-carousel .home-hero__inner { align-items: flex-start; padding-top: 30px; padding-bottom: 26%; }
  .home-carousel .home-hero__copy { margin-block: 0; }
  .home-carousel .home-hero__title { font-size: clamp(28px, 4.5svh, 40px); margin-bottom: 20px; }
  .home-carousel .home-hero__photo { height: 38%; }
  .home-carousel .hero-lead { font-size: 14px; margin-bottom: 20px; }
  .home-carousel .home-hero .btn { min-height: 44px; }
  .home-carousel .hero-note { font-size: 11px; margin-top: 16px; }
}
@media (max-width: 820px) and (max-height: 740px) {
  .home-geo__visual { display: none; }
  .home-geo__inner { display: flex; align-items: center; padding-block: 20px; }
  .home-geo__content { width: 100%; }
  .home-carousel .home-hero__inner { padding-block: 22px; align-items: center; }
  .home-carousel .home-hero__photo { opacity: .4; }
  .home-carousel .home-hero__title { font-size: 29px; margin-bottom: 14px; }
  .home-carousel .hero-lead { font-size: 13px; margin-bottom: 16px; }
  .home-carousel .home-hero .eyebrow { font-size: 11px; margin-bottom: 15px; }
  .home-carousel .home-hero .button-row { gap: 8px; }
}
@media (max-height: 600px) {
  .home-geo__title { font-size: 28px; margin-bottom: 12px; }
  .home-geo__sub { font-size: 12px; margin-bottom: 12px; }
  .home-geo .eyebrow { font-size: 9px; margin-bottom: 12px; }
  .home-geo__stats { margin-top: 14px; }
  .home-geo__stats dt { font-size: 20px; }
  .home-geo__ticker { display: none; }
  .home-geo .btn, .home-carousel .home-hero .btn { min-height: 38px; font-size: 12px; }
  .home-carousel .home-hero__title { font-size: 26px; }
  .home-carousel .hero-lead { font-size: 12px; line-height: 1.65; }
  .home-carousel .hero-note { font-size: 10px; margin-top: 12px; }
}

/* Float the controls over the full-height banner. */
.home-carousel { position: relative; touch-action: pan-y pinch-zoom; }
.home-carousel__stage { cursor: grab; }
.home-carousel.is-dragging, .home-carousel.is-dragging * { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.home-carousel__controls { position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 0; background: transparent; }
.home-carousel__dot { display: grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.home-carousel__dot::before { content: ""; width: 10px; height: 10px; border: 1px solid #fff; border-radius: 50%; background: #fff; opacity: .5; transition: opacity .2s; }
.home-carousel__dot:hover::before { opacity: .8; }
.home-carousel__dot.is-active::before { opacity: 1; }
.home-carousel__dot:focus-visible { outline: 2px solid #edbf80; outline-offset: -4px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .home-carousel__dot::before { transition: none; }
}

/* Operations slide uses the existing team-office photograph. */
.home-carousel .home-operation .home-hero__photo {
  width: 68%;
  background-image: url("images/onsite-social-workshop.webp");
  background-position: 58% 58%;
}
.home-carousel .home-operation .home-hero__title { line-height: 1.25; }
.home-operation__accent { display: inline-block; margin-top: 12px; color: #edc48e; font-size: .74em; }
.home-carousel .home-operation .eyebrow { color: #edc48e; }
.home-carousel .home-operation .eyebrow > span { background: #edc48e; }
.home-carousel .home-operation .hero-note { border-left-color: #edc48e; }
@media (max-width: 820px) {
  .home-carousel .home-operation .home-hero__photo { width: 100%; height: 44%; background-position: 55% 65%; }
  .home-operation__accent { font-size: .8em; }
}
@media (max-width: 820px) and (max-height: 740px) {
  .home-carousel .home-operation .home-hero__photo { height: 100%; opacity: .3; }
}
