.custom-logo {
  display: block;
  max-width: min(280px, 55vw);
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}
.brand .custom-logo + span {
  font-size: 9px;
  letter-spacing: 0.09em;
}
.custom-intro {
  display: block;
}
.billboard {
  position: relative;
  isolation: isolate;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  min-height: var(--hero-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eaf0e5;
}
.billboard .hero-copy {
  padding: 40px;
  align-self: center;
  position: relative;
  z-index: 2;
  min-width: 0;
  overflow-wrap: anywhere;
}
.billboard .hero-copy p {
  margin-bottom: 0;
  color: var(--muted);
}
.billboard h1 {
  margin: 12px 0 18px;
  line-height: 1.65;
}
.hero-photo {
  grid-column: 2;
  grid-row: 1;
  display: block;
  position: relative;
  min-height: var(--hero-h);
}
.hero-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-x) var(--photo-y);
}
.layout-split .hero-copy {
  grid-column: 1;
  grid-row: 1;
}
.layout-cover {
  display: block;
  min-height: var(--hero-h);
}
.layout-cover .hero-photo {
  position: absolute;
  inset: 0;
}
.layout-cover.has-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--shade));
  z-index: 1;
}
.layout-cover .hero-copy {
  min-height: var(--hero-h);
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.layout-cover.has-photo .hero-copy,
.layout-cover.has-photo .hero-copy p,
.layout-cover.has-photo .eyebrow {
  color: white;
}
.no-photo .intro-mark {
  justify-self: center;
  align-self: center;
  margin: 30px;
}
.no-photo.layout-cover {
  display: grid;
}
.no-photo.layout-cover .hero-copy {
  grid-column: 1;
}
.primary {
  color: var(--button-text, #fff);
}
.design-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}
.design-preview {
  position: sticky;
  top: 24px;
  align-self: start;
  min-width: 0;
}
.design-preview iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
}
.design-preview.phone iframe {
  max-width: 390px;
  margin: auto;
}
.asset-control {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 14px 0;
}
.asset-control img {
  display: block;
  max-height: 100px;
  max-width: 100%;
  margin: 10px 0;
  object-fit: contain;
}
.design-fields input[type="range"] {
  padding: 0;
  min-height: 26px;
}
.design-fields input[type="color"] {
  padding: 4px;
  height: 46px;
}
.design-fields label {
  margin-top: 13px;
}
.design-preview .footnote {
  margin: 12px 0;
}
.design-fields .formgrid {
  gap: 12px;
}
.design-state {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.design-actions {
  position: sticky;
  bottom: 12px;
  background: white;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  z-index: 3;
}
.design-fields textarea {
  min-height: 80px;
}
@media (max-width: 1100px) {
  .design-grid {
    grid-template-columns: 1fr;
  }
  .design-preview {
    position: static;
  }
  .design-preview iframe {
    height: 600px;
  }
}
@media (max-width: 600px) {
  .billboard {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .billboard .hero-copy {
    padding: 26px;
  }
  .billboard h1 {
    font-size: 25px;
  }
  .layout-split .hero-photo {
    order: 2;
    min-height: var(--hero-mobile-h);
  }
  .layout-split .hero-copy {
    order: 1;
  }
  .layout-cover {
    min-height: var(--hero-mobile-h);
  }
  .layout-cover .hero-copy {
    min-height: var(--hero-mobile-h);
  }
  .layout-cover .hero-photo {
    min-height: 100%;
  }
  .hero-photo img {
    object-position: var(--mobile-x) var(--mobile-y);
  }
  .no-photo .intro-mark {
    display: none;
  }
  .no-photo.layout-cover {
    display: block;
  }
  .top .brand span {
    max-width: 55vw;
    white-space: normal;
  }
  .top .brand strong {
    font-size: 22px;
  }
  .design-actions {
    flex-wrap: wrap;
  }
}

/* Supplied portrait: bright copy area, with an unobscured face. */
.portrait-hero.layout-cover {
  background: #edf5f3;
}
.portrait-hero.layout-cover.has-photo:after {
  background:
    linear-gradient(
      90deg,
      rgba(246, 250, 248, 0.98) 0%,
      rgba(246, 250, 248, 0.92) 25%,
      rgba(246, 250, 248, 0.52) 46%,
      rgba(246, 250, 248, 0) 67%
    ),
    linear-gradient(rgba(0, 0, 0, var(--shade)), rgba(0, 0, 0, var(--shade)));
}
.portrait-hero.layout-cover .hero-copy {
  max-width: 54%;
  padding: 44px;
}
.portrait-hero.layout-cover.has-photo .hero-copy,
.portrait-hero.layout-cover.has-photo .hero-copy p,
.portrait-hero.layout-cover.has-photo .eyebrow {
  color: #203b34;
}
.portrait-hero.layout-cover .hero-copy h1 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.7;
}
@media (max-width: 600px) {
  .portrait-hero.layout-cover {
    display: flex;
    flex-direction: column;
    min-height: var(--hero-mobile-h);
  }
  .portrait-hero.layout-cover .hero-photo {
    position: relative;
    inset: auto;
    min-height: 260px;
    width: 100%;
    order: 0;
  }
  .portrait-hero.layout-cover.has-photo:after {
    display: none;
  }
  .portrait-hero.layout-cover .hero-copy {
    max-width: 100%;
    min-height: 0;
    padding: 25px 24px 30px;
    order: 1;
    background: #edf5f3;
    flex: 1;
  }
  .portrait-hero.layout-cover .hero-copy h1 {
    font-size: 25px;
    margin: 10px 0 12px;
  }
  .portrait-hero.layout-cover .hero-photo img {
    object-position: var(--mobile-x) var(--mobile-y);
  }
}

/* Keep the supplied horizontal logo at its natural aspect ratio. */
.top .custom-logo {
  max-height: 84px;
  background: #fff;
  border-radius: 0;
}
@media (max-width: 600px) {
  .top .custom-logo {
    max-width: min(180px, 48vw);
    max-height: 69px;
  }
}
