body.home-visual {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--sea-dark);
  color: #fff;
  overflow: hidden;
}

body.home-visual .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  max-width: none;
  margin: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(7, 42, 64, 0.85) 0%, transparent 100%);
  pointer-events: none;
}

body.home-visual .site-header > * { pointer-events: auto; }

body.home-visual .site-brand {
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

body.home-visual .site-tagline {
  color: rgba(255, 255, 255, 0.85);
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

body.home-visual main {
  flex: 1;
  max-width: none;
  margin: 0;
  padding: 0;
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.hero-media,
.hero-carousel,
.hero-slide,
.hero-fallback {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide img,
.hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-fallback {
  background:
    linear-gradient(160deg, rgba(11, 61, 92, 0.55), rgba(7, 42, 64, 0.75)),
    #0b3d5c;
}

.hero-nav {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.6rem;
  pointer-events: none;
}

.hero-nav__btn {
  pointer-events: auto;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 42, 64, 0.45);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  padding: 5.5rem 1.5rem 2rem;
  background: linear-gradient(0deg, rgba(7, 42, 64, 0.88) 0%, transparent 100%);
  max-width: 40rem;
}

.hero-copy h2 {
  color: #fff;
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 4.2vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-copy .hero-body {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  align-items: flex-end;
  margin-top: 0.35rem;
}

.hero-cta-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  /* Room for the overlay, which sits above the button's top edge. */
  margin-top: 10.2rem;
}

.hero-cta {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.hero-maps {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hero-maps:hover,
.hero-maps:focus-visible {
  color: #f4efe6;
}

.hero-dog-overlay {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 0.35rem);
  z-index: 2;
  width: 14.5rem;
  height: 10.5rem;
  pointer-events: none;
  overflow: visible;
  user-select: none;
  transform: translateX(-50%);
  opacity: 0;
  animation: dog-fade-in 0.55s ease 1s both;
}

.hero-dog-overlay__stage {
  position: absolute;
  inset: 0;
  filter:
    drop-shadow(0 10px 8px rgba(0, 0, 0, 0.45))
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.22));
}

.hero-dog-overlay__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
}

.hero-dog-overlay__bubble {
  position: absolute;
  left: 58%;
  right: auto;
  top: -0.15rem;
  margin: 0;
  padding: 0.38rem 0.7rem;
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  border-radius: 1rem 1rem 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(7, 42, 64, 0.22);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  animation: dog-bubble 2.7s ease 1.35s both;
}

.hero-dog-overlay__bubble::after {
  content: "";
  position: absolute;
  right: 1.35rem;
  bottom: -0.32rem;
  width: 0.55rem;
  height: 0.55rem;
  background: rgba(255, 253, 248, 0.96);
  transform: rotate(45deg);
  border-radius: 0 0 2px 0;
}

@keyframes dog-fade-in {
  to { opacity: 1; }
}

@keyframes dog-bubble {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  12%, 78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dog-overlay { display: none; }
}

body.home-visual #cookie-banner {
  background: rgba(7, 42, 64, 0.94);
}

body.home-visual:has(#cookie-banner.show) .hero-copy {
  padding-bottom: 6.5rem;
}
