/* Homepage layout only. Keep reusable card/carousel styling in component CSS. */

/* Banner carousel and spinner */
@keyframes banner-spin {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.banner-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.banner-loader .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--brand-primary);
  animation: banner-spin 1s ease-in-out infinite;
}

.banner-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: banner-spin 0.8s linear infinite;
  z-index: 2;
}

#home .banner-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#home .banner-carousel video,
#home .banner-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-layout-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: min(600px, 100vh);
  overflow: hidden;
  padding-top: 95px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.page-home .home-layout-hero.mainbg {
  background: #0b0d0f;
}

.page-home .home-layout-hero__bg {
  position: absolute;
  top: -95px;
  left: 0;
  width: 100%;
  height: calc(100% + 95px);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-home .home-layout-hero__bg .banner-carousel,
.page-home .home-layout-hero__bg .banner-item,
.page-home .home-layout-hero__bg .banner-video-wrapper {
  position: absolute;
  inset: 0;
}

.page-home .home-layout-hero__bg video,
.page-home .home-layout-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .home-layout-hero__overlay {
  position: absolute;
  top: -95px;
  left: 0;
  width: 100%;
  height: calc(100% + 95px);
  z-index: 1;
  background: rgba(15, 42, 68, 0.65);
  pointer-events: none;
}

.page-home .home-layout-hero__content-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .home-layout-hero__content {
  max-width: 960px;
  width: 100%;
  position: relative;
  z-index: 4;
  color: var(--color-surface);
  opacity: 1 !important;
  visibility: visible !important;
}

.page-home .home-layout-hero__eyebrow {
  margin-bottom: 24px;
}

.page-home .home-layout-hero__title {
  font-family: var(--r-font-display);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0 0 36px 0;
  line-height: 1.15;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-home .home-layout-hero__subtitle {
  font-size: clamp(16px, 2.6vw, 26px);
  font-weight: 600;
  letter-spacing: 1px;
  color: #f0f0f0;
  margin: 12px 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

.page-home .home-layout-hero__description {
  font-family: var(--r-font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: #ffffff;
  margin: 36px auto 0;
  max-width: 700px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.page-home .r-hero__ctas {
  margin-top: 48px;
}

@media (max-width: 600px) {
  .page-home .home-layout-hero__description {
    font-size: 16px;
    line-height: 1.6;
  }
}

.page-home .home-gallery-section {
  padding: 70px 0 90px;
}

.page-home .home-gallery-shell {
  position: relative;
}

.page-home .home-gallery-header {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.page-home .home-gallery-header-copy {
  max-width: 100%;
}

.page-home .home-gallery-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-home .home-gallery-header h2 {
  margin: 0 0 14px;
  color: #222222;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
}

.page-home .home-gallery-header p {
  max-width: 640px;
  margin: 0 auto;
  color: #707070;
  font-size: 15px;
  line-height: 1.8;
}

.page-home .home-gallery-actions {
  margin-top: 36px;
  text-align: center;
}

.page-home .home-gallery-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: var(--color-surface);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.page-home .home-gallery-cta:hover,
.page-home .home-gallery-cta:focus {
  color: var(--color-surface);
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(255, 102, 0, 0.22);
}

.page-home .home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1200px) {
  .page-home .home-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-home .home-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .page-home .home-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.page-home .home-layout-section--clients {
  background: var(--color-surface-soft);
  padding: 60px 0;
}

.page-home .home-layout-section--clients .container {
  max-width: 1200px;
}

@media (max-width: 1024px) {
  .page-home .home-layout-hero {
    padding-top: 55px;
    height: auto;
    min-height: 80vh;
  }

  .page-home .home-layout-hero__bg,
  .page-home .home-layout-hero__overlay {
    top: -55px;
    height: calc(100% + 55px);
  }
}

@media (max-width: 991px) {
  .page-home .home-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-home .home-layout-hero {
    padding-top: 55px;
    height: auto;
    min-height: 70vh;
  }

  .page-home .home-layout-hero__bg,
  .page-home .home-layout-hero__overlay {
    top: -55px;
    height: calc(100% + 55px);
  }

  .page-home .home-layout-hero__content-wrap {
    padding: 30px 15px;
  }

  .page-home .home-layout-hero__description {
    line-height: 1.5;
  }
}

@media (max-width: 767px) {
  .page-home .home-gallery-shell {
    padding: 0;
  }

  .page-home .home-gallery-header {
    margin-bottom: 32px;
  }

  .page-home .home-gallery-header h2 {
    font-size: 30px;
  }

  .page-home .home-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .home-gallery-actions {
    margin-top: 28px;
  }

  .page-home .home-gallery-cta {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-home .home-layout-hero {
    min-height: 60vh;
  }

  .page-home .home-layout-hero__content-wrap {
    padding: 20px 10px;
  }
}

/* ============================================================
   SERVICES GRID (spec §4.4) — replaces legacy services carousel.
   ============================================================ */
.home-services-section {
  background: var(--color-surface);
  padding: 80px 0 90px;
}

.home-services-shell {
  max-width: 1200px;
}

.home-services-header {
  text-align: center;
  margin-bottom: 48px;
}

.home-services-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-primary);
  font-family: var(--r-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.home-services-header h2 {
  margin: 0 0 14px;
  color: #222222;
  font-family: var(--r-font-head);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.home-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 28px 32px;
  background: var(--color-surface);
  border: 1px solid var(--r-grey-100);
  border-radius: var(--r-radius-card);
  border-bottom: 3px solid var(--brand-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.home-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.home-service-card:hover,
.home-service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--r-shadow-hover, 0 8px 28px rgba(15, 42, 68, 0.18));
}

.home-service-card:hover::before,
.home-service-card:focus-within::before {
  transform: scaleX(1);
}

.home-service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--brand-primary);
  margin-bottom: 20px;
}

.home-service-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-service-card__title {
  margin: 0 0 12px;
  font-family: var(--r-font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--r-navy-900, #0F2A44);
}

.home-service-card__desc {
  margin: 0 0 22px;
  font-family: var(--r-font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--r-grey-700, #4A5560);
  flex-grow: 1;
}

.home-service-card__link {
  align-self: flex-start;
  font-family: var(--r-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.home-service-card__link span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.25s ease;
}

.home-service-card__link:hover,
.home-service-card__link:focus {
  color: var(--brand-primary-hover);
}

.home-service-card__link:hover span,
.home-service-card__link:focus span {
  transform: translateX(4px);
}

.home-services-actions {
  margin-top: 48px;
  text-align: center;
}

.home-services-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: transparent;
  color: var(--r-navy-900, #0F2A44);
  font-family: var(--r-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--r-navy-900, #0F2A44);
  border-radius: var(--r-radius-btn, 6px);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.home-services-cta:hover,
.home-services-cta:focus {
  background: var(--r-navy-900, #0F2A44);
  color: var(--r-white, #ffffff);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 767px) {
  .home-services-section {
    padding: 60px 0 70px;
  }

  .home-services-header {
    margin-bottom: 36px;
  }

  .home-services-header h2 {
    font-size: 30px;
  }

  .home-services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .home-service-card {
    padding: 30px 24px 26px;
  }

  .home-services-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   FEATURED PROJECTS (spec §4.5) — replaces legacy projects carousel.
   ============================================================ */
.home-featured-projects {
  background: var(--color-surface-soft, #f8f9fa);
  padding: 80px 0 90px;
}

.home-featured-projects__shell {
  max-width: 1200px;
}

.home-featured-projects__header {
  text-align: center;
  margin-bottom: 48px;
}

.home-featured-projects__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-primary);
  font-family: var(--r-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.home-featured-projects__header h2 {
  margin: 0 0 14px;
  color: #222;
  font-family: var(--r-font-head);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
}

.home-featured-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.home-project-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-radius-card, 8px);
  background: #0F2A44;
  text-decoration: none;
  color: var(--r-white, #fff);
  aspect-ratio: 4 / 5;
  box-shadow: 0 4px 18px rgba(15, 42, 68, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-project-card:hover,
.home-project-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 42, 68, 0.28);
  color: var(--r-white, #fff);
}

.home-project-card__media {
  position: absolute;
  inset: 0;
}

.home-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-project-card:hover .home-project-card__media img {
  transform: scale(1.06);
}

.home-project-card__media-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1B4F72 0%, #0F2A44 100%);
}

.home-project-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 42, 68, 0) 35%, rgba(15, 42, 68, 0.85) 100%);
}

.home-project-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}

.home-project-card__tag {
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--brand-primary, #ff6600);
  color: var(--r-white, #fff);
  font-family: var(--r-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 4px;
}

.home-project-card__title {
  margin: 0;
  font-family: var(--r-font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--r-white, #fff);
}

.home-project-card__location {
  font-family: var(--r-font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.home-project-card__cta {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 14px;
  background: var(--brand-primary, #ff6600);
  color: var(--r-white, #fff);
  font-family: var(--r-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.home-project-card:hover .home-project-card__cta,
.home-project-card:focus-visible .home-project-card__cta {
  opacity: 1;
  transform: translateY(0);
}

.home-featured-projects__empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--r-grey-700, #4A5560);
  font-family: var(--r-font-body);
  font-size: 15px;
}

.home-featured-projects__actions {
  margin-top: 48px;
  text-align: center;
}

.home-featured-projects__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--brand-primary, #ff6600);
  color: var(--r-white, #fff);
  font-family: var(--r-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: var(--r-radius-btn, 6px);
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.home-featured-projects__btn:hover,
.home-featured-projects__btn:focus {
  background: var(--brand-primary-hover, #e55a00);
  color: var(--r-white, #fff);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 102, 0, 0.25);
}

@media (max-width: 991px) {
  .home-featured-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .home-featured-projects {
    padding: 60px 0 70px;
  }

  .home-featured-projects__header {
    margin-bottom: 36px;
  }

  .home-featured-projects__header h2 {
    font-size: 30px;
  }

  .home-featured-projects__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .home-project-card {
    aspect-ratio: 16 / 11;
  }

  .home-featured-projects__btn {
    width: 100%;
  }

  /* Mobile: keep CTA always visible because no hover. */
  .home-project-card__cta {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   WHY CHOOSE 3HC (spec §4.8) — navy section, 3x2 card grid.
   ============================================================ */
.home-why-choose {
  background: #0F2A44;
  color: var(--r-white, #ffffff);
  padding: 80px 0 90px;
}

.home-why-choose__shell {
  max-width: 1200px;
}

.home-why-choose__header {
  text-align: center;
  margin-bottom: 48px;
}

.home-why-choose__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-primary, #ff6600);
  font-family: var(--r-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.home-why-choose__header h2 {
  margin: 0 0 14px;
  color: var(--r-white, #fff);
  font-family: var(--r-font-head);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
}

/* Allow divider to stay visible on dark bg if it relies on dark color in theme. */
.devider-cont--light {
  background: rgba(255, 255, 255, 0.25);
}

.home-why-choose__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-why-card {
  position: relative;
  padding: 30px 26px 28px;
  background: #1B4F72;
  border-radius: var(--r-radius-card, 8px);
  border-top: 3px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.home-why-card:hover,
.home-why-card:focus-within {
  transform: translateY(-6px);
  border-top-color: var(--brand-primary, #ff6600);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.home-why-card__icon {
  width: 48px;
  height: 48px;
  color: var(--brand-primary, #ff6600);
  margin-bottom: 18px;
}

.home-why-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-why-card__title {
  margin: 0 0 10px;
  font-family: var(--r-font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--r-white, #fff);
}

.home-why-card__desc {
  margin: 0;
  font-family: var(--r-font-body);
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 991px) {
  .home-why-choose__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-why-choose {
    padding: 60px 0 70px;
  }

  .home-why-choose__header {
    margin-bottom: 36px;
  }

  .home-why-choose__header h2 {
    font-size: 28px;
  }

  .home-why-choose__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

/* ============================================================
   CAREERS BANNER (spec §4.11) — full-width navy w/ orange accents.
   ============================================================ */
.home-careers-banner {
  position: relative;
  background: #0F2A44;
  color: var(--r-white, #fff);
  padding: 70px 0;
  overflow: hidden;
}

/* When the (navy) Featured Projects section is absent, the preceding
   navy "Why 3HC" section would sit flush against this navy CTA. A bright
   accent rule keeps the two dark bands visually separated. */
.home-careers-banner--divided {
  border-top: 3px solid var(--r-orange-500, #F27A1A);
}

.home-careers-banner::before,
.home-careers-banner::after {
  content: "";
  position: absolute;
  background: var(--brand-primary, #ff6600);
  opacity: 0.08;
  border-radius: 50%;
  pointer-events: none;
}

.home-careers-banner::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -80px;
}

.home-careers-banner::after {
  width: 220px;
  height: 220px;
  bottom: -100px;
  left: -60px;
}

.home-careers-banner__shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

.home-careers-banner__copy {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.home-careers-banner__title {
  margin: 0 0 16px;
  font-family: var(--r-font-head);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--r-white, #fff);
}

.home-careers-banner__subtext {
  margin: 0 0 28px;
  font-family: var(--r-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.home-careers-banner__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

@media (max-width: 600px) {
  .home-careers-banner {
    padding: 56px 0;
  }

  .home-careers-banner__title {
    font-size: 26px;
  }

  .home-careers-banner__ctas .r-btn {
    width: 100%;
  }
}

/* ============================================================
   ABOUT SNIPPET + TIMELINE (spec §4.6) — 60/40 two-column.
   ============================================================ */
.home-about-snippet {
  background: var(--color-surface, #ffffff);
  padding: 90px 0;
}

.home-about-snippet__shell {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 50px;
  align-items: start;
}

/* Bootstrap's .container adds :before/:after clearfix pseudo-elements that
   become phantom grid items here — suppress them so the grid stays 2-column. */
.home-about-snippet__shell::before,
.home-about-snippet__shell::after {
  content: none;
}

.home-about-snippet__copy {
  padding-right: 20px;
}

.home-about-snippet__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-primary, #ff6600);
  font-family: var(--r-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.home-about-snippet__title {
  margin: 0 0 20px;
  font-family: var(--r-font-head);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--r-navy-900, #0F2A44);
}

.home-about-snippet__lead p {
  margin: 0 0 16px;
  font-family: var(--r-font-body);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--r-grey-700, #4A5560);
}

.home-about-snippet__lead p:last-child {
  margin-bottom: 24px;
}

/* Vertical timeline. */
.home-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  position: relative;
}

.home-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: var(--r-grey-100, #E6EAEE);
}

.home-timeline__item {
  position: relative;
  padding: 0 0 22px 32px;
}

.home-timeline__item:last-child {
  padding-bottom: 0;
}

.home-timeline__dot {
  position: absolute;
  top: 6px;
  left: 0;
  width: 16px;
  height: 16px;
  background: var(--brand-primary, #ff6600);
  border-radius: 50%;
  border: 3px solid var(--color-surface, #fff);
  box-shadow: 0 0 0 1px var(--brand-primary, #ff6600);
}

.home-timeline__body {
  display: block;
}

.home-timeline__year {
  display: block;
  font-family: var(--r-font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--r-navy-900, #0F2A44);
  margin-bottom: 4px;
}

.home-timeline__desc {
  margin: 0;
  font-family: var(--r-font-body);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--r-grey-700, #4A5560);
}

.home-about-snippet__cta-row {
  margin-top: 8px;
}

.home-about-snippet__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-primary, #ff6600);
  font-family: var(--r-font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.home-about-snippet__cta span {
  transition: transform 0.25s ease;
}

.home-about-snippet__cta:hover,
.home-about-snippet__cta:focus {
  color: var(--brand-primary-hover, #e55a00);
}

.home-about-snippet__cta:hover span,
.home-about-snippet__cta:focus span {
  transform: translateX(4px);
}

.home-about-snippet__media {
  position: relative;
}

.home-about-snippet__media img,
.home-about-snippet__media-fallback {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: var(--r-radius-card, 8px);
  box-shadow: 0 10px 30px rgba(15, 42, 68, 0.18);
  display: block;
}

.home-about-snippet__media-fallback {
  background: linear-gradient(135deg, #1B4F72 0%, #0F2A44 100%);
}

@media (max-width: 991px) {
  .home-about-snippet__shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .home-about-snippet__copy {
    padding-right: 0;
  }

  .home-about-snippet__media img,
  .home-about-snippet__media-fallback {
    min-height: 280px;
    max-height: 380px;
  }
}

@media (max-width: 600px) {
  .home-about-snippet {
    padding: 60px 0;
  }

  .home-about-snippet__title {
    font-size: 26px;
  }
}

/* ============================================================
   OUR HISTORY / TIMELINE section — scroll-triggered animations.
   Items use --i (set inline) to stagger their entrance.
   ============================================================ */
.home-history {
  background: linear-gradient(180deg, #F8FAFC 0%, #ffffff 100%);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.home-history::before {
  content: "";
  position: absolute;
  top: 0;
  right: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.home-history__shell {
  max-width: 980px;
  position: relative;
  z-index: 1;
}

.home-history__header {
  text-align: center;
  margin-bottom: 56px;
}

.home-history__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-primary, #ff6600);
  font-family: var(--r-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.home-history__title {
  margin: 0 0 12px;
  font-family: var(--r-font-head);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--r-navy-900, #0F2A44);
}

.home-history__intro {
  max-width: 620px;
  margin: 16px auto 0;
  font-family: var(--r-font-body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--r-grey-700, #4A5560);
}

/* History-variant timeline: cards on the right of a centered vertical line. */
.home-timeline--history {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 0;
}

.home-timeline--history::before {
  top: 12px;
  bottom: 12px;
  left: 11px;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-primary, #ff6600) 0%, rgba(255, 102, 0, 0.25) 100%);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-timeline--history .home-timeline__item {
  padding: 0 0 28px 48px;
}

.home-timeline--history .home-timeline__item:last-child {
  padding-bottom: 0;
}

.home-timeline--history .home-timeline__dot {
  top: 14px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-width: 4px;
  box-shadow:
    0 0 0 2px var(--brand-primary, #ff6600),
    0 4px 12px rgba(255, 102, 0, 0.35);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-timeline--history .home-timeline__body {
  background: #ffffff;
  border: 1px solid #E6EAEE;
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: 0 2px 6px rgba(15, 42, 68, 0.04);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.home-timeline--history .home-timeline__body:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 102, 0, 0.4);
  box-shadow: 0 12px 28px rgba(15, 42, 68, 0.10);
}

.home-timeline--history .home-timeline__year {
  font-size: 18px;
  margin-bottom: 6px;
}

.home-timeline--history .home-timeline__desc {
  font-size: 15px;
}

/* Connector line from dot into the card. */
.home-timeline--history .home-timeline__item::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  width: 22px;
  height: 2px;
  background: var(--brand-primary, #ff6600);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Entrance state: items hidden until parent gains .is-visible. --- */
.home-timeline--history .home-timeline__item {
  opacity: 0;
  transform: translateX(-24px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(0.35s + var(--i, 0) * 0.15s);
}

.home-history.is-visible .home-timeline--history::before {
  transform: scaleY(1);
}

.home-history.is-visible .home-timeline--history .home-timeline__item {
  opacity: 1;
  transform: translateX(0);
}

.home-history.is-visible .home-timeline--history .home-timeline__dot {
  transform: scale(1);
  transition-delay: calc(0.45s + var(--i, 0) * 0.15s);
}

.home-history.is-visible .home-timeline--history .home-timeline__item::after {
  opacity: 1;
  transform: scaleX(1);
  transition-delay: calc(0.55s + var(--i, 0) * 0.15s);
}

@media (max-width: 600px) {
  .home-history {
    padding: 64px 0 72px;
  }

  .home-history__title {
    font-size: 26px;
  }

  .home-history__header {
    margin-bottom: 40px;
  }

  .home-timeline--history .home-timeline__item {
    padding-left: 42px;
  }

  .home-timeline--history .home-timeline__body {
    padding: 14px 16px;
  }
}

/* Respect users who prefer no motion. */
@media (prefers-reduced-motion: reduce) {
  .home-timeline--history::before,
  .home-timeline--history .home-timeline__item,
  .home-timeline--history .home-timeline__dot,
  .home-timeline--history .home-timeline__item::after {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   ACHIEVEMENTS & PIONEERING MILESTONES (spec §4.7)
   Light grey section, 2-column lists with orange checkmark bullets.
   ============================================================ */
.home-achievements {
  background: #F4F6F8;
  padding: 80px 0 90px;
}

.home-achievements__shell {
  max-width: 1200px;
}

.home-achievements__header {
  text-align: center;
  margin-bottom: 44px;
}

.home-achievements__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-primary, #ff6600);
  font-family: var(--r-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.home-achievements__header h2 {
  margin: 0 0 14px;
  color: var(--r-navy-900, #0F2A44);
  font-family: var(--r-font-head);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.25;
}

.home-achievements__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.home-achievements__column-title {
  margin: 0 0 20px;
  font-family: var(--r-font-head);
  font-size: 19px;
  font-weight: 600;
  color: var(--r-navy-900, #0F2A44);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-primary, #ff6600);
}

.home-achievements__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-achievement {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}

.home-achievement__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--brand-primary, #ff6600);
  margin-top: 2px;
}

.home-achievement__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-achievement__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.home-achievement__headline {
  font-family: var(--r-font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--r-navy-900, #0F2A44);
  line-height: 1.4;
}

.home-achievement__descriptor {
  font-family: var(--r-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--r-grey-700, #4A5560);
}

.home-achievements__footer {
  margin: 44px auto 0;
  max-width: 760px;
  text-align: center;
  font-family: var(--r-font-body);
  font-size: 15px;
  font-style: italic;
  color: var(--r-grey-700, #4A5560);
  line-height: 1.7;
}

@media (max-width: 767px) {
  .home-achievements {
    padding: 60px 0 70px;
  }

  .home-achievements__header h2 {
    font-size: 26px;
  }

  .home-achievements__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* ============================================================
   CLIENTS POLISH (spec §4.9) — greyscale default, color on hover.
   Targets logos already rendered by existing #brand section.
   ============================================================ */
#brand.brand-page .client-logo-img {
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

#brand.brand-page .client-logo-img:hover,
#brand.brand-page .client-logo-link:hover .client-logo-img {
  filter: grayscale(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  #brand.brand-page .client-logo-img {
    transition: none;
  }
}

/* ============================================================
   CONTACT SECTION (spec §4.13) — 2-column form + info+map.
   ============================================================ */
.home-contact {
  background: var(--color-surface, #ffffff);
  padding: 80px 0 90px;
}

.home-contact__shell {
  max-width: 1200px;
}

.home-contact__header {
  text-align: center;
  margin-bottom: 48px;
}

.home-contact__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-primary, #ff6600);
  font-family: var(--r-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.home-contact__header h2 {
  margin: 0 0 14px;
  font-family: var(--r-font-head);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--r-navy-900, #0F2A44);
}

.home-contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: start;
}

/* Form */
.home-contact-form {
  background: var(--r-grey-50, #F4F6F8);
  border-radius: var(--r-radius-card, 8px);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.home-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-contact-form__field--full {
  width: 100%;
}

.home-contact-form__label {
  font-family: var(--r-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--r-navy-900, #0F2A44);
  letter-spacing: 0.2px;
}

.home-contact-form__field input,
.home-contact-form__field select,
.home-contact-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--r-font-body);
  font-size: 14.5px;
  color: var(--r-navy-900, #0F2A44);
  background: var(--r-white, #fff);
  border: 1px solid var(--r-grey-100, #E6EAEE);
  border-radius: var(--r-radius-input, 6px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-contact-form__field input:focus,
.home-contact-form__field select:focus,
.home-contact-form__field textarea:focus {
  outline: none;
  border-color: var(--brand-primary, #ff6600);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
}

.home-contact-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.home-contact-form__submit {
  margin-top: 4px;
  padding: 14px 24px;
  background: var(--brand-primary, #ff6600);
  color: var(--r-white, #fff);
  font-family: var(--r-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 0;
  border-radius: var(--r-radius-btn, 6px);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.home-contact-form__submit:hover,
.home-contact-form__submit:focus {
  background: var(--brand-primary-hover, #e55a00);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255, 102, 0, 0.2);
}

.home-contact-form__submit:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.home-contact-form__status {
  margin: 4px 0 0;
  font-family: var(--r-font-body);
  font-size: 14px;
  min-height: 18px;
}

.home-contact-form__status[data-state="success"] {
  color: #146c43;
}

.home-contact-form__status[data-state="error"] {
  color: #b02a37;
}

/* Info column */
.home-contact-info {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--r-font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--r-grey-700, #4A5560);
}

.home-contact-info__item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--r-navy-900, #0F2A44);
  font-size: 13.5px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.home-contact-info__item a {
  color: var(--r-navy-900, #0F2A44);
  text-decoration: none;
}

.home-contact-info__item a:hover {
  color: var(--brand-primary, #ff6600);
}

.home-contact-info__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--brand-primary, #ff6600);
  margin-top: 2px;
}

.home-contact-info__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-contact-map {
  width: 100%;
  border-radius: var(--r-radius-card, 8px);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 42, 68, 0.08);
}

.home-contact-map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

@media (max-width: 991px) {
  .home-contact__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .home-contact {
    padding: 60px 0 70px;
  }

  .home-contact__header h2 {
    font-size: 28px;
  }

  .home-contact-form {
    padding: 24px 20px;
  }

  .home-contact-form__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .home-contact-form__submit {
    width: 100%;
  }
}

/* ============================================================
   TESTIMONIALS (spec §4.10) — horizontal scroll-snap carousel.
   ============================================================ */
.home-testimonials {
  background: var(--color-surface-soft, #f8f9fa);
  padding: 80px 0;
}

.home-testimonials__shell {
  max-width: 1200px;
}

.home-testimonials__header {
  text-align: center;
  margin-bottom: 40px;
}

.home-testimonials__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-primary, #ff6600);
  font-family: var(--r-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.home-testimonials__header h2 {
  margin: 0 0 14px;
  font-family: var(--r-font-head);
  font-size: 34px;
  font-weight: 600;
  color: var(--r-navy-900, #0F2A44);
}

.home-testimonials__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 18px;
  scrollbar-width: thin;
}

@media (min-width: 992px) {
  .home-testimonials__track {
    grid-auto-columns: calc((100% - 40px) / 3);
  }
}

.home-testimonial {
  position: relative;
  background: var(--r-white, #fff);
  border-radius: var(--r-radius-card, 8px);
  padding: 30px 26px 24px;
  box-shadow: 0 4px 16px rgba(15, 42, 68, 0.08);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
}

.home-testimonial__quote-mark {
  font-family: var(--r-font-display);
  font-size: 60px;
  color: var(--brand-primary, #ff6600);
  line-height: 0.6;
  margin-bottom: -10px;
}

.home-testimonial__quote {
  margin: 0;
  font-family: var(--r-font-body);
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
  color: var(--r-grey-700, #4A5560);
  flex-grow: 1;
}

.home-testimonial__cite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--r-grey-100, #E6EAEE);
  padding-top: 14px;
}

.home-testimonial__author strong {
  display: block;
  font-family: var(--r-font-body);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--r-navy-900, #0F2A44);
}

.home-testimonial__role {
  display: block;
  margin-top: 2px;
  font-family: var(--r-font-body);
  font-size: 13px;
  color: var(--r-grey-700, #4A5560);
}

.home-testimonial__logo {
  flex: 0 0 auto;
  max-width: 80px;
  max-height: 36px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .home-testimonials {
    padding: 60px 0;
  }

  .home-testimonials__header h2 {
    font-size: 28px;
  }

  .home-testimonials__track {
    grid-auto-columns: 85%;
  }
}

/* ============================================================
   NEPAL PROJECT MAP (spec §4.12)
   ============================================================ */
.home-nepal-map {
  background: var(--color-surface-soft, #F4F6F8);
  padding: 80px 0 90px;
}

.home-nepal-map__shell {
  max-width: 1280px;
}

.home-nepal-map__header {
  text-align: center;
  margin-bottom: 36px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.home-nepal-map__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-primary, #ff6600);
  font-family: var(--r-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.home-nepal-map__header h2 {
  margin: 0 0 14px;
  font-family: var(--r-font-head);
  font-size: 34px;
  font-weight: 600;
  color: var(--r-navy-900, #0F2A44);
}

.home-nepal-map__subtitle {
  margin: 0;
  font-family: var(--r-font-body);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--r-grey-700, #4A5560);
}

.home-nepal-map__frame {
  position: relative;
  border-radius: var(--r-radius-card, 8px);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 42, 68, 0.12);
}

.home-nepal-map__canvas {
  width: 100%;
  height: 560px;
  background: #eef2f5;
}

.home-nepal-map__noscript {
  padding: 40px;
  text-align: center;
  color: var(--r-grey-700, #4A5560);
  font-family: var(--r-font-body);
}

.home-nepal-map__legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 14px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--r-font-body);
  font-size: 12.5px;
  color: var(--r-navy-900, #0F2A44);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 500;
}

.home-nepal-map__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-nepal-map__legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.home-nepal-map__legend-dot--completed {
  background: #F27A1A;
}

.home-nepal-map__legend-dot--ongoing {
  background: #2E3A46;
  box-shadow: 0 0 0 0 rgba(46, 58, 70, 0.6);
  animation: nepal-legend-pulse 2s ease-in-out infinite;
}

@keyframes nepal-legend-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 58, 70, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(46, 58, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 58, 70, 0); }
}

.home-nepal-map__actions {
  margin-top: 28px;
  text-align: center;
}

.home-nepal-map__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  border: 2px solid var(--r-navy-900, #0F2A44);
  color: var(--r-navy-900, #0F2A44);
  font-family: var(--r-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-radius-btn, 6px);
  transition: background 0.25s ease, color 0.25s ease;
}

.home-nepal-map__cta:hover,
.home-nepal-map__cta:focus {
  background: var(--r-navy-900, #0F2A44);
  color: var(--r-white, #fff);
}

/* Custom markers. */
.nepal-marker-wrap {
  background: transparent;
  border: 0;
}

.nepal-marker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.nepal-marker__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--marker-color, #F27A1A);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.nepal-marker:hover .nepal-marker__dot {
  transform: scale(1.18);
}

.nepal-marker__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(46, 58, 70, 0.35);
  animation: nepal-marker-pulse 1.8s ease-out infinite;
}

@keyframes nepal-marker-pulse {
  0%   { transform: scale(0.55); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Popup styling. */
.nepal-popup-wrap .leaflet-popup-content-wrapper {
  background: #ffffff;
  border-top: 4px solid var(--brand-primary, #F27A1A);
  border-radius: 6px;
  padding: 0;
  box-shadow: 0 10px 24px rgba(15, 42, 68, 0.18);
}

.nepal-popup-wrap .leaflet-popup-content {
  margin: 0;
  width: auto !important;
}

.nepal-popup {
  padding: 16px 18px;
  font-family: var(--r-font-body, "Inter", sans-serif);
  font-size: 13px;
  color: var(--r-navy-900, #0F2A44);
  animation: nepal-popup-in 0.2s ease-out;
}

@keyframes nepal-popup-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nepal-popup__tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--brand-primary, #F27A1A);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 8px;
}

.nepal-popup__title {
  margin: 0 0 10px;
  font-family: var(--r-font-head, "Poppins", sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--r-navy-900, #0F2A44);
}

.nepal-popup__rows {
  margin: 0 0 12px;
}

.nepal-popup__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px solid #eef0f3;
}

.nepal-popup__row:last-child {
  border-bottom: 0;
}

.nepal-popup__row dt {
  font-weight: 600;
  color: var(--r-grey-700, #4A5560);
  font-size: 12px;
}

.nepal-popup__row dd {
  margin: 0;
  color: var(--r-navy-900, #0F2A44);
  font-size: 13px;
}

.nepal-popup__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef0f3;
}

.nepal-popup__status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.nepal-popup__status--completed {
  background: rgba(20, 108, 67, 0.12);
  color: #146c43;
}

.nepal-popup__status--ongoing {
  background: rgba(242, 122, 26, 0.15);
  color: #b25f10;
}

.nepal-popup__link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-primary, #F27A1A);
  text-decoration: none;
}

.nepal-popup__link:hover {
  color: var(--brand-primary-hover, #D9650C);
}

@media (max-width: 767px) {
  .home-nepal-map {
    padding: 60px 0 70px;
  }

  .home-nepal-map__canvas {
    height: 400px;
  }

  .home-nepal-map__header h2 {
    font-size: 28px;
  }

  .home-nepal-map__legend {
    font-size: 11.5px;
    padding: 8px 10px;
  }
}
