/* Each scene keeps its intrinsic proportions. The photograph sets the height
   of the desktop grid and becomes a normal block above the copy on mobile. */
#design-legacy .portal-profile .portal-hero .portal-hero-slide:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
  padding: 0;
  isolation: isolate;
  background: #fff;
}
#design-legacy .portal-hero .portal-hero-slide .portal-hero-image {
  position: relative;
  inset: auto;
  grid-area: 1 / 1 / 2 / -1;
  align-self: center;
  z-index: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
}
#design-legacy .portal-hero .portal-hero-image :is(img, picture) {
  display: block;
  position: static;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  transform: none;
}
#design-legacy .portal-hero .portal-hero-image::after { display: none; }
#design-legacy :is(.portal-hero-leaf .portal-hero-image, .fusion-builder-row-8 .static-bg-media) img {
  transform: scaleX(-1);
}
#design-legacy .portal-hero .portal-hero-slide .portal-hero-copy {
  display: grid;
  gap: clamp(10px,1.1vw,18px);
  position: relative;
  z-index: 1;
  grid-area: 1 / 2;
  align-self: center;
  justify-self: start;
  width: 100%;
  max-width: 47rem;
  margin: 0;
  padding: clamp(20px, 2.5vw, 48px);
  background: transparent;
}
#design-legacy .portal-hero .portal-hero-right .portal-hero-copy { grid-column: 1; }
#design-legacy .portal-hero-copy :is(h2,p,.eyebrow) { color: white; }
#design-legacy .portal-hero-copy > :is(h2,p,.eyebrow,a) { margin: 0; }
#design-legacy .portal-hero-copy h2 { font-size: clamp(1.75rem,3.2vw,3.25rem); line-height: 1.12; }
#design-legacy .portal-hero-copy p { font-size: clamp(1rem,1.15vw,1.15rem); line-height: 1.5; }
#design-legacy .portal-hero-copy > a { justify-self: start; }
#design-legacy .portal-hero .portal-hero-slide .portal-hero-copy > a { color: #171a20; background: #fff; }
/* Gentle photographic exposure adjustment. Leaf texture remains visible
   through the entire copy area; no panel or solid continuation is drawn. */
@media (min-width: 1051px) {
  #design-legacy :is(.portal-hero-leaf,.portal-hero-right) .portal-hero-image::after,
  #design-legacy :is(.fusion-builder-row-6,.fusion-builder-row-8) > picture::after {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 12%, rgb(0 20 11 / .08) 37%, rgb(0 20 11 / .68) 72%, rgb(0 20 11 / .7));
  }
  #design-legacy .portal-hero-right .portal-hero-image::after,
  #design-legacy .fusion-builder-row-6 > picture::after {
    background: linear-gradient(90deg, rgb(7 22 47 / .77), rgb(7 22 47 / .5) 32%, transparent 68%);
  }
}

/* The two translated homepages use the original photo articles. They have
   substantially longer copy than the Russian slides. */
#design-legacy #main :is(.fusion-builder-row-3,.fusion-builder-row-6,.fusion-builder-row-8) {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  position: relative;
  align-content: start;
  width: 100%;
  min-height: 0;
  margin-inline: 0;
  padding: 0 !important;
  background: #fff;
}
#design-legacy #main :is(.fusion-builder-row-6,.fusion-builder-row-8) > .static-bg-media {
  display: block;
  grid-area: 1/1;
  position: relative;
  inset: auto;
  z-index: 0;
  height: auto;
  width: 100%;
}
#design-legacy #main :is(.fusion-builder-row-6,.fusion-builder-row-8) .static-bg-img,
#design-legacy #main .fusion-builder-row-3 :is(.fusion-image-element, .fusion-imageframe, picture, img) {
  display: block;
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}
#design-legacy #main :is(.fusion-builder-row-6,.fusion-builder-row-8) > .fusion-builder-row {
  grid-area: 1/1;
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(53%, 52rem) !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: clamp(24px, 4vw, 76px);
  box-sizing: border-box;
}
#design-legacy #main .fusion-builder-row-8 > .fusion-builder-row { justify-self: end; }
#design-legacy #main :is(.fusion-builder-row-3,.fusion-builder-row-6,.fusion-builder-row-8) > .fusion-builder-row > .fusion-layout-column {
  width: 100%;
  min-width: 0;
  margin: 0;
}
#design-legacy #main :is(.fusion-builder-row-3,.fusion-builder-row-6,.fusion-builder-row-8) > .fusion-builder-row > .fusion-layout-column > .fusion-column-wrapper {
  margin: 0;
  padding: 0;
}
#design-legacy #main :is(.fusion-builder-row-6,.fusion-builder-row-8) .fusion-title-heading { color: white; }
#design-legacy #main .fusion-builder-row-3 > .fusion-builder-row {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
#design-legacy #main .fusion-builder-row-3 .fusion-separator,
#design-legacy #main :is(.fusion-builder-row-6,.fusion-builder-row-8) .fusion-separator { display: none; }
#design-legacy #main .fusion-builder-row-3 .fusion-builder-column-8 {
  max-width: 76ch;
  margin-inline: auto;
  padding: clamp(20px, 3vw, 44px);
}
#design-legacy #main .fusion-builder-row-3 .fusion-title-heading { color: #202328; }
#design-legacy #main :is(.fusion-builder-row-3,.fusion-builder-row-6,.fusion-builder-row-8) .fusion-title {
  margin-top: 0;
  margin-bottom: clamp(12px,1.4vw,22px);
  padding: 0;
}
#design-legacy #main :is(.fusion-builder-row-3,.fusion-builder-row-6,.fusion-builder-row-8) .fusion-title .fusion-title-heading {
  font-family: inherit;
  text-shadow: none;
}
#design-legacy #main :is(.fusion-builder-row-3,.fusion-builder-row-6,.fusion-builder-row-8) .fusion-title-size-one .fusion-title-heading {
  font-size: clamp(1.7rem,3.1vw,3rem) !important;
  line-height: 1.12 !important;
  font-weight: 650;
}
#design-legacy #main :is(.fusion-builder-row-3,.fusion-builder-row-6,.fusion-builder-row-8) :is(.fusion-title-size-two,.fusion-title-size-three) .fusion-title-heading {
  font-size: clamp(1rem,1.15vw,1.15rem) !important;
  line-height: 1.55 !important;
  font-weight: 450;
}

/* One grid row gives the lake photograph the exact height of the introduction.
   The optical focus of the original lies just right of centre, at the chair. */
#design-legacy .portal-finder-intro .portal-finder-inner {
  display: grid;
  grid-template-columns: minmax(0,1.04fr) minmax(0,1fr);
  gap: clamp(22px,3vw,50px);
  align-items: stretch;
  max-width: 1360px;
  margin-inline: auto;
}
#design-legacy .portal-finder-intro .finder-intro-story {
  display: grid;
  grid-area: 1/1;
  align-content: start;
  gap: .85rem;
  color: #24272b;
}
#design-legacy .finder-intro-story :is(h2,p,strong,div) { margin: 0; padding: 0; max-width: none; }
#design-legacy .finder-intro-story h2 { font-size: clamp(2rem,3.3vw,3.4rem); line-height: 1.08; }
#design-legacy .finder-intro-story :is(p,strong) { font-size: clamp(1rem,1.12vw,1.15rem); line-height: 1.5; }
#design-legacy .finder-intro-story div > strong { display: block; margin-bottom: .35rem; }
#design-legacy .portal-finder-intro .finder-intro-photo {
  position: relative;
  display: block;
  grid-area: 1/2;
  align-self: stretch;
  width: 100%;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  background: transparent;
}
#design-legacy .portal-finder-intro .finder-intro-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 64% 54%;
}
#design-legacy .portal-finder-intro .finder-intro-photo::after { display: none; }
#design-legacy .portal-finder-intro .finder-intro-photo::before { content: ""; display: block; padding-top: 75%; }
#design-legacy .portal-finder-intro .portal-finder-inner > :is(p, .prototype-promise, .portal-purpose-promise) {
  max-width: none;
}

@media (max-width: 1050px) {
  #design-legacy .portal-profile .portal-hero .portal-hero-slide:not([hidden]) { display: block; }
  #design-legacy .portal-hero .portal-hero-slide .portal-hero-copy,
  #design-legacy #main :is(.fusion-builder-row-6,.fusion-builder-row-8) > .fusion-builder-row {
    display: grid;
    grid-area: 2/1;
    width: 100% !important;
    max-width: none;
    padding: clamp(18px,4vw,42px);
    background: white;
    color: #202328;
  }
  #design-legacy #main .fusion-builder-row-3 .fusion-builder-column-8 { max-width: none; }
  #design-legacy #main :is(.fusion-builder-row-6,.fusion-builder-row-8) .fusion-button {
    border: 0;
    background: #202328;
    color: white;
  }
  #design-legacy #main :is(.fusion-builder-row-6,.fusion-builder-row-8) .fusion-button .fusion-button-text { color: white; }
  #design-legacy #main :is(.fusion-builder-row-6,.fusion-builder-row-8) .fusion-button:hover { background: #343a42; }
  #design-legacy #main :is(.fusion-builder-row-6,.fusion-builder-row-8) .fusion-title-heading,
  #design-legacy .portal-hero .portal-hero-copy :is(h2,p,.eyebrow) {
    color: #202328 !important;
    text-shadow: none;
  }
  #design-legacy .portal-hero .portal-hero-slide .portal-hero-copy > a { color: #fff; background: #202328; }
  #design-legacy .portal-hero .portal-hero-controls {
    position: relative;
    inset: auto;
    width: fit-content;
    max-width: 100%;
    margin: 0 clamp(18px,4vw,42px) 18px;
    transform: none;
  }
}
@media (max-width: 1199px) {
  #design-legacy .portal-finder-intro .portal-finder-inner {
    grid-template-columns: minmax(0,1fr);
    gap: 1rem;
  }
  #design-legacy .portal-finder-intro .finder-intro-photo {
    grid-area: 1/1;
  }
  #design-legacy .portal-finder-intro .finder-intro-photo::before { display: none; }
  #design-legacy .portal-finder-intro .finder-intro-photo img {
    position: static;
    height: auto;
    object-fit: contain;
  }
  #design-legacy .portal-finder-intro .finder-intro-story { grid-area: 2/1; background: #fff; }
}
