/* PEMA Hero refinement · approved 15 October 2026. */
#site-header { grid-template-columns:minmax(0,1fr) auto!important; }
#site-header .desktop-nav,#site-header .header-contact { display:none!important; }
#site-header .language-button { display:inline-flex!important; min-height:44px; align-items:center; }
#site-header .header-actions { gap:20px!important; }
#site-header:not(.scrolled) { background:transparent!important; border-color:transparent!important; box-shadow:none!important; }

[data-route-view="home"]>.hero.hero-variant-one {
  display:grid!important; grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr) auto!important; row-gap:30px!important;
  height:100vh!important; height:100svh!important; min-height:0!important; max-height:none!important;
  padding:calc(var(--header-h) + 24px) var(--page-gutter) max(20px,env(safe-area-inset-bottom))!important;
}
[data-route-view="home"]>.hero.hero-variant-one>.hero-content {
  position:relative!important; inset:auto!important; transform:none!important;
  display:block!important; align-self:end!important;
  width:min(510px,48vw)!important; max-width:100%!important;
  margin:0!important; padding:0!important; text-align:left!important;
}
[data-route-view="home"]>.hero.hero-variant-one h1 {
  margin:0!important; font:400 clamp(38px,3.6vw,54px)/1.12 Georgia,serif!important;
  letter-spacing:-.025em!important; text-align:left!important; text-wrap:initial;
  text-shadow:0 2px 12px rgba(0,0,0,.32);
}
[data-route-view="home"]>.hero.hero-variant-one .hero-headline-lead {
  display:block!important; font-size:.84em!important; margin-bottom:4px!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-headline-rotator>.hero-headline-word {
  white-space:nowrap!important; transition:opacity .45s ease;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-headline-rotator>.hero-headline-gold {
  text-shadow:0 1px 3px rgba(0,0,0,.95),0 0 12px rgba(0,0,0,.55);
}
[data-route-view="home"]>.hero.hero-variant-one .hero-actions {
  display:flex!important; flex-direction:column!important; align-items:flex-start!important;
  flex-wrap:nowrap!important; gap:2px!important; margin:22px 0 0!important; padding:0!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-actions>.hero-investment {
  display:inline-flex!important; justify-content:space-between!important; gap:24px!important;
  width:auto!important; min-width:0!important; max-width:100%!important; min-height:46px!important;
  border:1px solid rgba(255,255,255,.85)!important; border-radius:0!important;
  padding:12px 18px!important; background:transparent!important; color:#fff!important;
  font:400 13px/1.4 Arial,sans-serif!important; letter-spacing:0!important; text-transform:none!important;
  text-shadow:0 1px 4px #0008; box-shadow:none!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-actions>.hero-investment:hover {
  background:rgba(255,255,255,.13)!important; border-color:#fff!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-actions>.hero-offer {
  display:inline-flex!important; align-items:center!important; justify-content:flex-start!important;
  gap:12px!important; width:auto!important; min-width:0!important; min-height:44px!important;
  padding:10px 0!important; border:0!important; background:transparent!important; color:#fff!important;
  font:400 12px/1.4 Arial,sans-serif!important; text-transform:none!important; letter-spacing:0!important;
  text-shadow:0 1px 4px #0009; text-align:left!important;
}
.hero-offer>span:first-child { text-decoration:underline; text-underline-offset:4px; text-decoration-color:#ffffff88; }
[data-route-view="home"]>.hero.hero-variant-one .hero-actions>button:focus-visible {
  outline:2px solid white!important; outline-offset:5px!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-shade {
  background:linear-gradient(0deg,rgba(0,0,0,.64),rgba(0,0,0,.12) 22%,transparent 52%),radial-gradient(ellipse at 0% 100%,rgba(0,0,0,.58),rgba(0,0,0,.16) 43%,transparent 72%),linear-gradient(180deg,rgba(0,0,0,.22),transparent 23%)!important;
}
[data-route-view="home"]>.hero.hero-variant-one>.hero-project {
  position:relative!important; inset:auto!important; transform:none!important;
  display:grid!important; grid-template-columns:minmax(0,1fr) auto!important;
  align-self:end!important; align-items:center!important; gap:2px 24px!important;
  width:100%!important; max-width:none!important; margin:0!important; padding:0!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-project-copy>a { padding:0!important; }
[data-route-view="home"]>.hero.hero-variant-one .hero-project-copy strong,
[data-route-view="home"]>.hero.hero-variant-one .hero-project-copy small,
[data-route-view="home"]>.hero.hero-variant-one .hero-caption-separator { font-size:12px!important; }
[data-route-view="home"]>.hero.hero-variant-one .hero-controls { gap:4px!important; }
[data-route-view="home"]>.hero.hero-variant-one .hero-attribution>p { font-size:12px!important; }
@media(min-width:761px) and (min-height:601px) {
  [data-route-view="home"]>.hero.hero-variant-one>.hero-project { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important; }
  [data-route-view="home"]>.hero.hero-variant-one .hero-controls { grid-column:2!important; justify-self:center!important; }
  [data-route-view="home"]>.hero.hero-variant-one .hero-project>.hero-attribution { justify-content:flex-start!important; }
  [data-route-view="home"]>.hero.hero-variant-one .hero-attribution>.hero-image-credit { margin-left:0!important; text-align:left!important; }
}
[data-route-view="home"]>.hero.hero-variant-one .hero-carousel-image {
  object-fit:cover!important; object-position:var(--hero-desktop-position,50% 45%)!important;
  transition:opacity .9s ease!important; animation:none!important; transform:none!important;
}
.hero-carousel-image[data-hero-key="p1"] { --hero-desktop-position:50% 62%; --hero-mobile-position:90% 50%; }
.hero-carousel-image[data-hero-key="schottentor"] { --hero-desktop-position:50% 30%; --hero-mobile-position:50% 25%; }
.hero-carousel-image[data-hero-key="p3"] { --hero-desktop-position:50% 40%; --hero-mobile-position:50% 50%; }
.hero-carousel-image[data-hero-key="p2"] { --hero-desktop-position:50% 43%; --hero-mobile-position:65% 40%; }
.hero-carousel-image[data-hero-key="brenner"] { --hero-desktop-position:50% 48%; --hero-mobile-position:53% 45%; }
.hero-carousel-image[data-hero-key="porr"] { --hero-desktop-position:50% 38%; --hero-mobile-position:64% 35%; }

/* This existing section now follows the hero, with investors first. */
[data-route-view="home"]>.home-contact { padding:clamp(64px,7vw,100px) var(--page-gutter)!important; }
[data-route-view="home"]>.home-contact .partner-paths-head { max-width:900px; }
[data-route-view="home"]>.home-contact .partner-paths-head h2 { font-size:clamp(34px,4vw,58px)!important; }

@media(max-width:760px) {
  #site-header .header-actions { gap:10px!important; }
  [data-route-view="home"]>.hero.hero-variant-one {
    padding:calc(var(--header-h) + 20px) 24px max(16px,env(safe-area-inset-bottom))!important;
    row-gap:20px!important;
  }
  [data-route-view="home"]>.hero.hero-variant-one>.hero-content { width:100%!important; }
  [data-route-view="home"]>.hero.hero-variant-one h1 { font-size:clamp(26px,7.4vw,40px)!important; line-height:1.13!important; }
  [data-route-view="home"]>.hero.hero-variant-one .hero-actions { margin-top:18px!important; }
  [data-route-view="home"]>.hero.hero-variant-one .hero-actions>.hero-investment { font-size:12px!important; min-height:44px!important; padding:11px 14px!important; gap:18px!important; }
  [data-route-view="home"]>.hero.hero-variant-one .hero-actions>.hero-offer { font-size:12px!important; }
  [data-route-view="home"]>.hero.hero-variant-one>.hero-project { grid-template-columns:minmax(0,1fr)!important; gap:4px!important; }
  [data-route-view="home"]>.hero.hero-variant-one .hero-controls { grid-template-columns:44px max-content 44px 44px!important; justify-self:start!important; }
  [data-route-view="home"]>.hero.hero-variant-one .hero-project>.hero-attribution { gap:2px 12px!important; }
  [data-route-view="home"]>.hero.hero-variant-one .hero-attribution>p { font-size:12px!important; }
  [data-route-view="home"]>.hero.hero-variant-one .hero-carousel-image { object-position:var(--hero-mobile-position,50% 40%)!important; }
}
@media(max-height:600px) and (min-width:761px), (max-height:520px) and (orientation:landscape) {
  [data-route-view="home"]>.hero.hero-variant-one { row-gap:12px!important; padding-bottom:12px!important; }
  [data-route-view="home"]>.hero.hero-variant-one>.hero-content { width:55%!important; }
  [data-route-view="home"]>.hero.hero-variant-one h1 { font-size:clamp(26px,5.8vh,36px)!important; }
  [data-route-view="home"]>.hero.hero-variant-one .hero-actions { margin-top:12px!important; gap:0!important; }
  [data-route-view="home"]>.hero.hero-variant-one>.hero-project { grid-template-columns:minmax(0,1fr) auto!important; }
  [data-route-view="home"]>.hero.hero-variant-one .hero-controls { justify-self:end!important; }
}
@media(max-height:570px) and (max-width:760px) and (orientation:portrait) {
  [data-route-view="home"]>.hero.hero-variant-one { height:auto!important; min-height:100svh!important; grid-template-rows:minmax(40px,1fr) auto!important; }
}
@media(prefers-reduced-motion:reduce) {
  [data-route-view="home"]>.hero.hero-variant-one .hero-carousel-image,
  [data-route-view="home"]>.hero.hero-variant-one .hero-headline-word { transition:none!important; }
}

/* Discreet carousel dots and a consistently gold second headline. */
[data-route-view="home"]>.hero.hero-variant-one .hero-headline-rotator>.hero-headline-word {
  color:#A98556!important;
  text-shadow:0 1px 3px rgba(0,0,0,.95),0 0 12px rgba(0,0,0,.55)!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-controls {
  position:relative!important; display:flex!important; align-items:center!important;
  gap:0!important; width:auto!important; max-width:100%!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-controls>[data-hero-prev],
[data-route-view="home"]>.hero.hero-variant-one .hero-controls>[data-hero-next],
[data-route-view="home"]>.hero.hero-variant-one .hero-controls>.hero-count {
  display:none!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-controls>.hero-dots {
  display:flex!important; align-items:center!important; justify-content:center!important;
  gap:0!important; width:auto!important; min-width:0!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-controls .hero-dot {
  position:relative!important; display:block!important; flex:0 0 44px!important;
  width:44px!important; height:44px!important; min-width:44px!important; min-height:44px!important;
  margin:0!important; padding:0!important; border:0!important; background:transparent!important;
  box-shadow:none!important; border-radius:50%!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-controls .hero-dot::before {
  content:""!important; position:absolute!important;
  left:50%!important; top:50%!important; right:auto!important; bottom:auto!important;
  width:7px!important; height:7px!important; transform:translate(-50%,-50%)!important;
  border:0!important; border-radius:50%!important; background:#fff!important;
  box-shadow:0 1px 4px rgba(0,0,0,.5)!important;
  transition:background-color .25s ease!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-controls .hero-dot[aria-selected="true"]::before {
  background:#A98556!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-controls .hero-dot:focus-visible {
  outline:1px solid #fff!important; outline-offset:-9px!important;
}
/* Keep the pause control available to screen readers and keyboard users. */
[data-route-view="home"]>.hero.hero-variant-one .hero-controls>.hero-playback {
  position:absolute!important; width:1px!important; height:1px!important;
  min-width:0!important; min-height:0!important; margin:-1px!important; padding:0!important;
  overflow:hidden!important; clip:rect(0,0,0,0)!important; clip-path:inset(50%)!important;
  white-space:nowrap!important; border:0!important; font-size:0!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-controls>.hero-playback:focus-visible {
  left:0!important; bottom:52px!important; width:max-content!important; height:auto!important;
  max-width:calc(100vw - 48px)!important; min-height:44px!important; padding:10px 14px!important;
  margin:0!important; clip:auto!important; clip-path:none!important; overflow:visible!important;
  white-space:normal!important; border:1px solid #fff!important; background:#111!important;
  color:#fff!important; outline:2px solid #A98556!important; outline-offset:3px!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-controls>.hero-playback:focus-visible::after {
  content:attr(aria-label); font:400 12px/1.4 Arial,sans-serif;
}
/* Complete source photographs: no cover crop, drift or enlargement. */
[data-route-view="home"]>.hero.hero-variant-one { background:#1a1a1a!important; }
[data-route-view="home"]>.hero.hero-variant-one .hero-media { background:#1a1a1a!important; }
[data-route-view="home"]>.hero.hero-variant-one .hero-carousel-image {
  object-fit:contain!important; object-position:50% 0%!important;
  animation:none!important; transform:none!important; background:transparent!important;
}
@media(max-width:760px) and (orientation:portrait) {
  [data-route-view="home"]>.hero.hero-variant-one .hero-media { bottom:330px!important; }
  [data-route-view="home"]>.hero.hero-variant-one .hero-carousel-image { object-position:50% 100%!important; }
  [data-route-view="home"]>.hero.hero-variant-one .hero-shade { background:linear-gradient(180deg,rgba(0,0,0,.15),transparent 20%,transparent 65%,#1a1a1a 76%)!important; }
}

/* Approved hero typography: equally sized white and bronze lines. */
[data-route-view="home"]>.hero.hero-variant-one h1.hero-rotating-title {
  line-height:1.16!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-rotating-title>.hero-headline-lead {
  font:inherit!important;
  font-size:1em!important;
  font-weight:400!important;
  letter-spacing:inherit!important;
  margin:0 0 .10em!important;
  color:#fff!important;
}

/* Hero QA 17 October: constrain mobile photos to their own visible field. */
@media(max-width:760px) and (orientation:portrait) {
  [data-route-view="home"]>.hero.hero-variant-one .hero-media {
    inset:var(--header-h) 0 350px!important;
    height:auto!important;
    min-height:0!important;
  }
  [data-route-view="home"]>.hero.hero-variant-one .hero-carousel-image {
    object-position:50% 50%!important;
  }
}

/* Hero correction: full-bleed photography on every screen, no contain bars. */
[data-route-view="home"]>.hero.hero-variant-one .hero-media {
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
}
[data-route-view="home"]>.hero.hero-variant-one .hero-carousel-image {
  object-fit:cover!important;
  object-position:var(--hero-desktop-position,50% 30%)!important;
  background:transparent!important;
}
.hero-carousel-image[data-hero-key="p1"] { --hero-desktop-position:50% 15%; --hero-mobile-position:90% 40%; }
.hero-carousel-image[data-hero-key="schottentor"] { --hero-desktop-position:50% 25%; --hero-mobile-position:50% 25%; }
.hero-carousel-image[data-hero-key="p3"] { --hero-desktop-position:55% 25%; --hero-mobile-position:56% 35%; }
.hero-carousel-image[data-hero-key="p2"] { --hero-desktop-position:25% 35%; --hero-mobile-position:18% 40%; }
.hero-carousel-image[data-hero-key="brenner"] { --hero-desktop-position:50% 40%; --hero-mobile-position:66% 40%; }
.hero-carousel-image[data-hero-key="porr"] { --hero-desktop-position:50% 30%; --hero-mobile-position:80% 25%; }
[data-route-view="home"]>.hero.hero-variant-one .hero-shade {
  background:linear-gradient(0deg,rgba(0,0,0,.64),rgba(0,0,0,.12) 22%,transparent 52%),radial-gradient(ellipse at 0% 100%,rgba(0,0,0,.58),rgba(0,0,0,.16) 43%,transparent 72%),linear-gradient(180deg,rgba(0,0,0,.22),transparent 23%)!important;
}
@media(max-width:760px) {
  [data-route-view="home"]>.hero.hero-variant-one .hero-carousel-image {
    object-position:var(--hero-mobile-position,50% 35%)!important;
  }
}
