/* The Home hero uses one layout and action group for every language. */
#tld-v45-stage main > .tld-home-hero {
  --hero-gutter: var(--tld-page-gutter);
  --hero-action-gap: clamp(6px, 1.3vw, 12px);
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: var(--tld-hero-floor);
  height: auto;
  max-height: none;
}

#tld-v45-stage .tld-home-hero__content {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(100%, 1520px);
  margin-inline: auto;
  padding: var(--tld-hero-top) var(--hero-gutter) var(--tld-hero-bottom);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

#tld-v45-stage .tld-home-hero .hero-eyebrow { margin-block-end: var(--tld-hero-gap); }

#tld-v45-stage .tld-home-hero .hero-description {
  max-width: 62ch;
  margin-block: var(--tld-hero-gap);
  line-height: 1.55;
}

#tld-v45-stage .tld-home-hero #heroTitle {
  width: 100%;
  max-width: none;
  font-size: clamp(2.2rem, min(7.5vw, 12svh), 8.25rem);
  line-height: .98;
}

@media (max-width: 900px) {
  #tld-v45-stage .tld-home-hero #heroTitle {
    font-size: clamp(2.2rem, min(11vw, 8svh), 5.7rem);
  }
}

#tld-v45-stage .tld-home-hero > .hero-scroll {
  position: relative;
  inset: auto;
  transform: none;
  grid-row: 2;
  grid-column: 1;
  justify-self: start;
  margin-inline-start: var(--hero-gutter);
  margin-block-end: var(--tld-hero-bottom);
}

#tld-v45-stage .tld-home-hero__actions {
  width: min(100%, 535px);
  display: grid;
  gap: var(--hero-action-gap);
}

#tld-v45-stage .tld-home-hero__services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
  gap: var(--hero-action-gap);
}

#tld-v45-stage .tld-home-hero__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(7px, 1.4vw, 15px);
  min-inline-size: 0;
  min-block-size: clamp(52px, 4.6vw, 60px);
  padding: 9px clamp(11px, 1.6vw, 21px);
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: var(--tld-control-radius);
  background: #fff;
  color: var(--tld-wine);
  font: 700 clamp(.75rem, 1.1vw, .875rem)/1.25 var(--tld-body-font);
  text-decoration: none;
  transition: background-color .22s, transform .22s;
}

#tld-v45-stage .tld-home-hero__action:hover {
  background: #fff0f7;
  transform: translateY(-2px);
}

#tld-v45-stage .tld-home-hero__action:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

#tld-v45-stage .tld-home-hero__action--primary {
  background: var(--tld-pink);
  color: #fff;
}

#tld-v45-stage .tld-home-hero__action--primary:hover {
  background: #b9065e;
}

#tld-v45-stage .tld-home-hero__action > [aria-hidden] { flex: none; }
#tld-v45-stage .tld-home-hero__action > span:not([aria-hidden]) { min-width: 0; }
#tld-v45-stage .tld-home-hero__action svg { display: block; }
#tld-v45-stage .tld-home-hero__spark svg { width: 1.2em; height: 1.2em; }

#tld-v45-stage .tld-home-hero__host-label {
  flex: 1;
  display: grid;
  gap: 2px;
}

#tld-v45-stage .tld-home-hero__host-label small {
  font-size: .92em;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  #tld-v45-stage .tld-home-hero__action { transition: none; transform: none; }
}

/* Keep the decorative quote clear of the content when the viewport is narrow. */
@media (max-width: 700px) { #tld-v45-stage .tld-home-hero #heroRotator { display: none; } }

/* A compact two-column row has room for a three-line label in either language. */
#tld-v45-stage .tld-home-hero__actions { container-type: inline-size; }
@container (min-width: 14.5rem) and (max-width: 23rem) {
  #tld-v45-stage .tld-home-hero__services > .tld-home-hero__action { min-block-size: 66px; }
}

@media (max-height: 700px) {
  #tld-v45-stage .tld-home-hero .hero-description { line-height: 1.42; }
}

@media (max-width: 355px) and (max-height: 640px) {
  #tld-v45-stage main > .tld-home-hero {
    --hero-gutter: 12px;
    --tld-hero-gap: 5px;
    --tld-hero-bottom: 5px;
  }
  #tld-v45-stage .tld-home-hero .hero-eyebrow { gap: 6px; }
  #tld-v45-stage .tld-home-hero .hero-eyebrow::before { inline-size: 13px; }
  #tld-v45-stage .tld-home-hero .hero-description { line-height: 1.35; }
  #tld-v45-stage .tld-home-hero #heroTitle { line-height: .94; }
  #tld-v45-stage .tld-home-hero__services > .tld-home-hero__action {
    padding: 5px 8px;
    gap: 4px;
    min-block-size: 55px;
  }
  #tld-v45-stage .tld-home-hero__services svg { inline-size: 12px; block-size: auto; }
  #tld-v45-stage .tld-home-hero__action--host { padding-block: 5px; min-block-size: 44px; }
}
