/* Full-width Hamburg photograph. The original pixels stay unfiltered;
   separate gradients provide text contrast and dissolve into the next section. */
/* The existing photograph continues behind the header at the top of the page.
   Keep the normal sticky surface after scrolling, using the existing scroll state. */
.site-header:not(.scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
/* Blend the white JPEG backing into the panorama without changing the logo asset. */
.site-header .brand img {
  border-radius: 50%;
  mix-blend-mode: multiply;
}
.hero--panorama {
  margin-top: calc(-1 * var(--site-header-height));
  padding-top: var(--site-header-height);
  background: linear-gradient(180deg, #f1f8fd 0%, #ecf6fc 55%, #d9edf9 72%, #c9e2f3 84%, #e5f2fa 94%, #fff 100%);
}
.hero--panorama .hero-panorama {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 59%, #000000f5 66%, #000000d6 73%, #0000009c 80%, #00000047 88%, #00000012 95%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 59%, #000000f5 66%, #000000d6 73%, #0000009c 80%, #00000047 88%, #00000012 95%, transparent 100%);
}
.hero-panorama img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 72%;
  opacity: 1;
  filter: none;
  transform: none;
}
.hero-panorama::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f4faffd9 0%, #f4faffcc 20%, #f4faffa3 36%, #f4faff3d 52%, #f4faff00 68%);
}
.hero--panorama .hero-inner {
  display: flex;
  align-items: center;
  min-height: 610px;
  padding-block: 76px 100px;
  position: relative;
  z-index: 1;
}
.hero--panorama .hero-copy { width: 490px; max-width: 100%; }
.hero--panorama h1 { font-size: clamp(56px, 5.5vw, 76px); line-height: 1.04; }
.hero--panorama .hero-description { max-width: 425px; color: #243f54; }
.hero--panorama .trust-strip {
  padding-block: 20px 38px;
  border: 0;
  background: none;
  color: #2d5069;
}
.hero--panorama .trust-strip span + span { border: 0; }
.hero--panorama .hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 322px;
  max-width: 100%;
  gap: 10px;
  align-items: stretch;
}
/* Convex glass: a clear centre, a rounded optical rim and live background
   refraction. CSS keeps a glass fallback when SVG backdrop filters are absent. */
.hero--panorama .hero-contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  width: 100%;
  margin-top: 0;
  padding: 10px 18px 10px 11px;
  border: 1px solid #ffffffc7;
  border-radius: 40px;
  color: #153e54;
  text-decoration: none;
  background-color: #ffffff0d;
  background-image: linear-gradient(180deg, #ffffff33, #ffffff05 44%, #b0d2e512);
  -webkit-backdrop-filter: blur(.65px) saturate(1.16);
  backdrop-filter: blur(.65px) saturate(1.16);
  box-shadow: inset 0 1px 1px #ffffffe6, inset 0 -1px 1px #214b6733, 0 2px 3px #173d5714, 0 7px 20px #123f5712;
  transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease, transform .35s var(--motion-ease);
}
.hero--panorama .hero-contact:is(:hover, :focus-visible) {
  border-color: #fffffff2;
  background-color: #ffffff47;
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 2px #1b4d6933, 0 3px 4px #173d5714, 0 10px 26px #123f5721;
  transform: translateY(-2px);
}
.hero--panorama .hero-contact:focus-visible { outline: 3px solid #237ab3; outline-offset: 5px; }
.hero--panorama .hero-contact:active { transform: translateY(0); }
.hero--panorama .hero-contact.has-contact-lens {
  -webkit-backdrop-filter: var(--contact-lens-filter) blur(.25px) saturate(1.16);
  backdrop-filter: var(--contact-lens-filter) blur(.25px) saturate(1.16);
}
.hero--panorama .hero-contact .contact-rim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 2px 2px #fffffff2,
              inset 2px 0 4px #ffffffa6,
              inset -2px 0 4px #ffffff80,
              inset 0 -2px 3px #234a6745,
              inset 0 7px 8px -5px #ffffffd9,
              inset 0 -8px 10px -7px #16476180;
}
.hero--panorama .contact-rim::after {
  content: "";
  position: absolute;
  inset: 2px 8px auto;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, #ffffffa6, #ffffff00 72%);
}
.hero--panorama .hero-contact .contact-label,
.hero--panorama .hero-contact .phone-circle { z-index: 2; }
.hero--panorama .hero-contact .phone-circle {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #ffffffa6;
  background: linear-gradient(145deg, #ffffff70, #ffffff14);
  box-shadow: inset 0 1px 1px #ffffff80;
  color: #1673a0;
}
.hero--panorama .hero-contact .phone-circle svg {
  grid-area: 1 / 1;
  width: 19px;
  height: 19px;
  transition: transform .35s var(--motion-ease);
}
.hero--panorama .hero-phone:is(:hover, :focus-visible) .phone-circle svg { transform: rotate(-12deg); }
.hero--panorama .hero-whatsapp:is(:hover, :focus-visible) .phone-circle svg { transform: translateY(-1px); }
.hero--panorama .contact-label { min-width: 0; }
.hero--panorama .hero-contact small { display: block; color: #3b596b; font-size: 11px; line-height: 1.45; }
.hero--panorama .hero-contact strong { display: block; margin-top: 2px; font-size: 15px; line-height: 1.4; font-weight: 650; letter-spacing: .2px; }
html[data-motion='paused'] .hero-contact,
html[data-motion='paused'] .hero-contact .phone-circle svg { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hero--panorama .hero-contact,
  .hero--panorama .hero-contact .phone-circle svg { transition: none; }
  .hero--panorama .hero-contact:is(:hover, :focus-visible, :active),
  .hero--panorama .hero-contact:is(:hover, :focus-visible) .phone-circle svg { transform: none; }
}

@media (min-width: 1600px) {
  .hero--panorama .hero-inner { min-height: 650px; }
  .hero--panorama .hero-panorama img { object-position: 50% 50%; }
  .hero-panorama::after {
    background: linear-gradient(90deg, #f4faffd9 0%, #f4faffcc 35%, #f4faffa3 46%, #f4faff3d 60%, #f4faff00 76%);
  }
}
@media (max-width: 1000px) {
  .hero--panorama .hero-inner { min-height: 590px; }
  .hero--panorama .hero-copy { width: 450px; }
  .hero-panorama::after {
    background: linear-gradient(90deg, #f4faffdf, #f4faffd4 30%, #f4faffba 47%, #f4faff42 68%, transparent 88%);
  }
}
@media (max-width: 650px) {
  .hero--panorama .hero-inner { min-height: 740px; align-items: flex-start; padding-block: 40px 260px; }
  .hero--panorama .hero-copy { width: 100%; }
  .hero--panorama h1 { font-size: clamp(48px, 12.8vw, 64px); }
  .hero--panorama .hero-description { font-size: 14px; line-height: 1.7; max-width: 340px; margin-top: 22px; }
  .hero--panorama .hero-actions { gap: 10px; margin-top: 24px; }
  .hero--panorama .hero-panorama { top: 300px; }
  .hero--panorama .hero-panorama img { object-position: 52% 74%; }
  .hero--panorama .hero-panorama {
    -webkit-mask-image: linear-gradient(180deg, transparent, #00000012 10%, #00000085 26%, #000 40%, #000 62%, #000000bd 76%, #00000050 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent, #00000012 10%, #00000085 26%, #000 40%, #000 62%, #000000bd 76%, #00000050 88%, transparent 100%);
  }
  .hero-panorama::after { background: none; }
  .hero--panorama .trust-strip { padding-block: 8px 28px; gap: 12px; }
}


/* The complete illustrated panorama replaces the photograph in the hero.
   A shared grid row lets the artwork sit behind the copy without cropping. */
.hero--panorama.hero--illustrated {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: linear-gradient(180deg, #f5faff 0%, #f7fbfe 65%, #edf6fc 100%);
}
.hero--panorama.hero--illustrated .hero-panorama {
  grid-area: 1 / 1;
  position: relative;
  align-self: end;
  inset: auto;
  width: 100%;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
.hero--panorama.hero--illustrated .hero-panorama img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: 50% 100%;
  opacity: 1;
}
.hero--illustrated .hero-panorama::after { content: none; }
.hero--panorama.hero--illustrated .hero-inner {
  grid-area: 1 / 1;
  padding-bottom: 140px;
}
.hero--illustrated .hero-contact { background-color: rgb(255 255 255 / 90%); }
.hero--illustrated .hero-contact:is(:hover, :focus-visible) { background-color: rgb(255 255 255 / 98%); }
.hero-trust { position: relative; z-index: 1; background: #fff; }
@media (max-width: 650px) {
  .hero--panorama.hero--illustrated .hero-inner { padding-bottom: 180px; }
}
