/* Homepage Blueprint experiment. Scoped to body.page-home so map,
   account, and other storefront pages keep their current chrome. */

body.page-home {
  --bp-brand: #172c3d;
  --bp-brand-medium: #0e1d29;
  --bp-secondary: #5cb39c;
  --bp-accent: #e98c42;
  --bp-section: #f2ead6;
  --bp-paper: #f7f1e4;
  --bp-control: #fbf8f0;
  --bp-hover: #e0d5bb;
  --bp-edge: #cfc3a5;
  --bp-heading: #0d294e;
  --bp-body: #2c3a4b;
  --bp-paper-ink: #fef9f1;
  --bp-brand-subtle: rgba(255, 255, 255, 0.16);
  --bp-radius: 2px;
  --bp-elevation: 0 12px 28px rgba(13, 41, 78, 0.16);
  background: var(--bp-section);
  color: var(--bp-body);
  font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
}

body.page-home .section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 0;
}

/* ── Header sits inside the navy hero ── */
body.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

body.page-home .site-header.scrolled {
  background: transparent;
  box-shadow: none;
}

body.page-home .header-inner {
  max-width: 1280px;
  padding-inline: 0;
}

body.page-home .brand-logo--header {
  filter: brightness(0) invert(1);
}

body.page-home .nav-links a,
body.page-home .nav-dropdown-trigger,
body.page-home .nav-login {
  color: var(--bp-paper-ink);
  font-weight: 400;
  text-decoration: none;
}

body.page-home .nav-links a:hover,
body.page-home .nav-dropdown-trigger:hover,
body.page-home .nav-login:hover,
body.page-home .nav-dropdown-trigger[aria-expanded="true"],
body.page-home .nav-dropdown-trigger.active {
  color: #fff;
  text-decoration: none;
  background: transparent;
}

body.page-home .nav-dropdown-panel {
  background: var(--bp-paper);
  border: 1px solid var(--bp-edge);
  border-radius: var(--bp-radius);
  box-shadow: var(--bp-elevation);
}

body.page-home .nav-dropdown-item {
  color: var(--bp-heading);
}

body.page-home .nav-dropdown-item:hover {
  background: var(--bp-hover);
  color: var(--bp-heading);
}

body.page-home .hamburger-line {
  background: var(--bp-paper-ink);
}

body.page-home .btn-sm {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--bp-radius);
  border: 1px solid var(--bp-brand-subtle);
  background: var(--bp-paper-ink);
  color: var(--bp-brand);
  box-shadow: none;
  font-weight: 400;
  font-size: 14px;
  text-transform: none;
}

body.page-home .btn-sm:hover {
  background: #fff;
  box-shadow: none;
  transform: none;
}

/* ── Hero: navy field, USA map, paper copy ── */
body.page-home .hero {
  position: relative;
  min-height: 720px;
  padding: 128px 0 96px;
  background: var(--bp-brand);
  overflow: hidden;
}

body.page-home .hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.page-home .hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: 10px 10px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

body.page-home .hero-backdrop::before {
  display: none;
}

/* Navy wash under the headline so map lines do not cut the type */
body.page-home .hero-backdrop::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 56% 50% at 50% 46%,
    #172c3d 34%,
    rgba(23, 44, 61, 0.78) 56%,
    rgba(23, 44, 61, 0) 76%
  );
}

body.page-home .hero-atlas {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  height: 108%;
  aspect-ratio: 959 / 593;
}

body.page-home .hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  opacity: 0.22;
  filter: brightness(0) invert(1);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}

body.page-home .hero-ping {
  position: absolute;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
}

body.page-home .hero-ping--left {
  top: 19.1%;
  left: 19.9%;
}

body.page-home .hero-ping--right {
  top: 69.3%;
  left: 75.6%;
  width: 150px;
  height: 150px;
}

body.page-home .hero-ping__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 0;
  border-radius: 9999px;
  background: var(--bp-accent);
  box-shadow: none;
}

body.page-home .hero-ping--right .hero-ping__dot {
  background: var(--bp-secondary);
}

body.page-home .hero-ping__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--bp-secondary);
  border-radius: 9999px;
  opacity: 0;
  transform: scale(0.12);
  animation: bp-hero-ping 3.6s ease infinite;
}

body.page-home .hero-ping__ring:nth-child(2) {
  animation-delay: 1.8s;
}

body.page-home .hero-ping--right .hero-ping__ring {
  border-color: var(--bp-accent);
  animation-duration: 4.4s;
}

body.page-home .hero-marker {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 9999px;
  background: var(--bp-secondary);
  transform: translate(-50%, -50%);
  animation: bp-hero-blink 4.8s steps(1) infinite;
}

body.page-home .hero-marker--2,
body.page-home .hero-marker--4 {
  background: var(--bp-accent);
}

@keyframes bp-hero-ping {
  0% { transform: scale(0.12); opacity: 0.7; }
  70% { opacity: 0.2; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes bp-hero-blink {
  0% { opacity: 0; }
  12% { opacity: 1; }
  62% { opacity: 1; }
  74% { opacity: 0; }
  100% { opacity: 0; }
}

body.page-home .hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

body.page-home .hero-content {
  max-width: 1024px;
  align-items: center;
  text-align: center;
  gap: 24px;
}

body.page-home .hero-title {
  font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--bp-paper-ink);
}

body.page-home .hero-title-bold {
  color: var(--bp-accent);
  font-weight: 900;
}

body.page-home .hero-subtitle {
  max-width: 720px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bp-paper-ink);
}

body.page-home .hero-actions {
  gap: 16px;
  margin-top: 0;
}

/* ── Buttons ── */
body.page-home .bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--bp-radius);
  border: 1px solid var(--bp-edge);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}

body.page-home .bp-btn--hero-primary,
body.page-home .bp-btn--hero-secondary {
  height: 48px;
  padding: 0 20px;
  border-color: var(--bp-brand-subtle);
}

body.page-home .bp-btn--hero-primary {
  background: var(--bp-paper-ink);
  color: var(--bp-brand);
}

body.page-home .bp-btn--hero-primary:hover {
  background: #fff;
}

body.page-home .bp-btn--hero-secondary {
  background: rgba(254, 249, 241, 0.08);
  color: var(--bp-paper-ink);
}

body.page-home .bp-btn--hero-secondary:hover {
  color: #fff;
}

body.page-home .bp-btn--primary {
  background: var(--bp-brand);
  color: var(--bp-paper-ink);
  border-color: var(--bp-brand-subtle);
}

body.page-home .bp-btn--primary:hover {
  background: var(--bp-brand-medium);
}

body.page-home .bp-btn--outline {
  background: var(--bp-paper);
  color: var(--bp-heading);
}

body.page-home .bp-btn--outline:hover {
  background: var(--bp-hover);
}

body.page-home .bp-btn:focus-visible {
  outline: 2px solid var(--bp-brand);
  outline-offset: 2px;
}

/* ── Content sections ── */
body.page-home .audience,
body.page-home .products,
body.page-home .home-cta {
  padding: 96px 0;
  background: var(--bp-section);
}

body.page-home .audience__header,
body.page-home .products__header {
  max-width: 768px;
  margin: 0 auto 32px;
  text-align: center;
}

body.page-home .section-title,
body.page-home .products__title,
body.page-home .home-cta__title {
  font-family: inherit;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--bp-heading);
}

body.page-home .audience__subtitle,
body.page-home .home-cta__text {
  margin: 24px auto 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bp-body);
}

body.page-home .products-panel__intro {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bp-body);
}

body.page-home .audience__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

body.page-home .audience-card,
body.page-home .product-tile {
  background: var(--bp-paper);
  border: 1px solid var(--bp-edge);
  border-radius: var(--bp-radius);
  box-shadow: none;
  transform: none;
}

body.page-home .audience-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

body.page-home .audience-card__icon {
  color: var(--bp-body);
}

body.page-home .audience-card__title,
body.page-home .product-tile__title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--bp-heading);
}

body.page-home .audience-card__text,
body.page-home .product-tile__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bp-body);
}

body.page-home .products-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--bp-edge);
  border-radius: var(--bp-radius);
  background: var(--bp-paper);
}

body.page-home .products-tabs__tab {
  height: 40px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--bp-radius);
  background: transparent;
  color: var(--bp-body);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
}

body.page-home .products-tabs__tab:hover {
  background: var(--bp-hover);
  color: var(--bp-heading);
}

body.page-home .products-tabs__tab.is-active {
  background: var(--bp-brand);
  border-color: var(--bp-brand-subtle);
  color: #fff;
}

body.page-home .products-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

body.page-home .product-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

body.page-home .product-tile__media {
  margin-top: auto;
  padding: 8px;
  border: 1px solid var(--bp-edge);
  border-radius: var(--bp-radius);
  background: rgba(25, 25, 24, 0.04);
}

body.page-home .product-tile__media img,
body.page-home .product-tile__media video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--bp-edge);
  border-radius: var(--bp-radius);
}

body.page-home .product-tile__media--gif {
  aspect-ratio: auto;
  overflow: visible;
}

body.page-home .media-expand {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

body.page-home .media-expand img,
body.page-home .media-expand video {
  height: auto;
  object-fit: contain;
  background: #fff;
}

body.page-home .media-expand__hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--bp-edge);
  border-radius: var(--bp-radius);
  background: var(--bp-paper);
  color: var(--bp-heading);
}

body.page-home .media-expand-dialog {
  width: min(1280px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 16px;
  border: 1px solid var(--bp-edge);
  border-radius: var(--bp-radius);
  background: var(--bp-paper);
  box-shadow: none;
}

body.page-home .media-expand-dialog::backdrop {
  background: rgba(23, 44, 61, 0.72);
}

body.page-home .media-expand-dialog__bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

body.page-home .media-expand-dialog__close {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--bp-edge);
  border-radius: var(--bp-radius);
  background: var(--bp-paper);
  color: var(--bp-heading);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

body.page-home .media-expand-dialog img,
body.page-home .media-expand-dialog video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border: 0;
  background: #fff;
}

body.page-home .home-cta {
  text-align: center;
}

body.page-home .home-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

/* ── Footer ── */
body.page-home .site-footer {
  background: var(--bp-brand);
  border-top: none;
  padding-block: 64px;
}

body.page-home .footer-inner {
  max-width: 1280px;
}

body.page-home .footer-nav a,
body.page-home .footer-legal {
  color: var(--bp-paper-ink);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.page-home .footer-divider {
  border-color: var(--bp-brand-subtle);
}

@media (max-width: 1359px) {
  body.page-home .section-inner,
  body.page-home .header-inner,
  body.page-home .footer-inner {
    padding-inline: 40px;
  }
}

@media (max-width: 1100px) {
  /* Phone and tablet: the 640px rule sets width: 110vw while this file
     sets height: 108%. Both axes definite drops the aspect-ratio and
     stretches the states. Size by width only so 959/593 holds. */
  body.page-home .hero-atlas {
    top: 50%;
    width: 112%;
    height: auto;
  }
}

@media (max-width: 1024px) {
  body.page-home .audience__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  body.page-home .site-header {
    position: absolute;
  }
}

@media (max-width: 768px) {
  body.page-home .section-inner,
  body.page-home .header-inner,
  body.page-home .footer-inner {
    padding-inline: 24px;
  }

  body.page-home .hero {
    min-height: 0;
    padding: 112px 0 64px;
  }

  body.page-home .hero-title {
    font-size: 40px;
  }

  body.page-home .bp-btn--hero-primary,
  body.page-home .bp-btn--hero-secondary {
    height: 40px;
    padding: 0 16px;
    width: 100%;
  }

  body.page-home .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  body.page-home .audience,
  body.page-home .products,
  body.page-home .home-cta {
    padding: 64px 0;
  }

  body.page-home .audience__header,
  body.page-home .products__header {
    margin-bottom: 48px;
  }

  body.page-home .section-title,
  body.page-home .products__title,
  body.page-home .home-cta__title {
    font-size: 32px;
  }

  body.page-home .audience__grid,
  body.page-home .products-panel__grid {
    grid-template-columns: 1fr;
  }

  body.page-home .products-tabs {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .hero-ping__ring,
  body.page-home .hero-marker {
    animation: none;
  }

  body.page-home .hero-marker {
    opacity: 1;
  }

  body.page-home .hero-ping__ring {
    opacity: 0.25;
    transform: scale(0.7);
  }
}
