.uff-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  aspect-ratio: 2 / 1;
  min-height: 22rem;
  margin-block-start: calc(-1 * var(--uff-header-h));
  background: #8a5a3f;
  color: #fff;
  overflow: hidden;
  contain: paint;
}

.uff-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.uff-hero__media picture {
  display: contents;
}

.uff-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.uff-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 5.5rem rgb(58 42 38 / 0.14);
}

.uff-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(58 42 38 / 0.52) 0%, rgb(58 42 38 / 0.22) 32%, transparent 50%);
}

.uff-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  box-sizing: border-box;
  min-height: 100%;
  padding-block: calc(var(--uff-header-h) + 2.15rem) 3.05rem;
}

.uff-hero__title {
  margin: 0 0 1.05rem;
  max-width: 13ch;
  font-family: var(--uff-serif);
  font-size: clamp(3.2rem, 5.6vw, 5.35rem);
  font-weight: 500;
  font-size-adjust: from-font;
  font-synthesis: none;
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgb(58 42 38 / 0.22);
}

.uff-hero__title em {
  display: block;
  font-style: italic;
  font-weight: 400;
}

.uff-hero__kicker {
  margin: 0 0 1.7rem;
  font-size: clamp(0.82rem, 1.05vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.86);
}

.uff-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.uff-hero__actions .uff-btn {
  min-height: 2.7rem;
  padding: 0.42rem 1.55rem;
  font-size: 0.78rem;
}

.uff-hero__script {
  font-family: var(--uff-script);
  font-weight: 400;
  font-size-adjust: from-font;
  letter-spacing: 0.01em;
  white-space: pre-line;
}

.uff-hero__grid > .uff-hero__script {
  position: absolute;
  inset-inline-end: -4.4rem;
  inset-block-start: 66%;
  margin: 0;
  width: max-content;
  max-width: none;
  font-family: var(--uff-script);
  font-size: clamp(1.85rem, 3.1vw, 2.55rem);
  font-weight: 400;
  font-size-adjust: from-font;
  letter-spacing: 0.02em;
  line-height: 1.02;
  color: #f7efe8;
  text-align: end;
  white-space: pre-line;
  transform: rotate(-11deg);
  transform-origin: top right;
  text-shadow: 0 8px 22px rgb(58 42 38 / 0.35);
}

.uff-hero .uff-hero__script::after {
  content: "♡";
  display: block;
  margin-block-start: 0.02em;
  font-size: 0.7em;
}

@media (min-width: 860px) {
  .uff-hero {
    min-height: 0;
  }
}

body:has(.uff-hero) .uff-header:not(.is-scrolled):not(.is-open) {
  background: transparent;
  backdrop-filter: none;
  border-block-end-color: transparent;
  box-shadow: none;
  color: #fff;
}

body:has(.uff-hero) .uff-header:not(.is-scrolled):not(.is-open) .uff-logo__sub,
body:has(.uff-hero) .uff-header:not(.is-scrolled):not(.is-open) .uff-nav__link,
body:has(.uff-hero) .uff-header:not(.is-scrolled):not(.is-open) .uff-social {
  color: #fff;
}

body:has(.uff-hero) .uff-header:not(.is-scrolled):not(.is-open) .uff-nav__link:hover,
body:has(.uff-hero) .uff-header:not(.is-scrolled):not(.is-open) .uff-social:hover {
  color: rgb(255 255 255 / 0.72);
}

body:has(.uff-hero) .uff-header:not(.is-scrolled):not(.is-open) .uff-header__aside .uff-btn {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.8);
  color: #fff;
}

body:has(.uff-hero) .uff-header:not(.is-scrolled):not(.is-open) .uff-burger__line,
body:has(.uff-hero) .uff-header:not(.is-scrolled):not(.is-open) .uff-burger__line::before,
body:has(.uff-hero) .uff-header:not(.is-scrolled):not(.is-open) .uff-burger__line::after {
  background: #fff;
}

body:has(.uff-hero) .uff-header.is-scrolled,
body:has(.uff-hero) .uff-header.is-open {
  background: color-mix(in srgb, var(--uff-bg) 96%, white);
  backdrop-filter: blur(16px);
  border-block-end-color: rgb(58 42 38 / 0.06);
  box-shadow: 0 10px 28px rgb(58 42 38 / 0.07);
  color: var(--uff-ink);
}
