:root {
  --yirong-hero-ink: #ffffff;
  --yirong-hero-font: Arial, Helvetica, sans-serif;
  --yirong-hero-ease: var(--yirong-motion-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

html,
body {
  margin: 0;
  padding: 0;
}

.yirong-home {
  margin: 0;
}

.yirong-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #17130f;
  color: var(--yirong-hero-ink);
  font-family: var(--yirong-hero-font);
}

.yirong-hero__underlay,
.yirong-hero__media,
.yirong-hero__scrim {
  position: absolute;
  inset: 0;
}

.yirong-hero__underlay,
.yirong-hero__media {
  background-image: url('../images/hero-desktop.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.yirong-hero__underlay {
  z-index: -3;
  filter: brightness(0.58) saturate(0.72);
  transform: scale(1.012);
}

.yirong-hero__media {
  z-index: -2;
  clip-path: inset(0);
  transform: scale(1);
}

.yirong-hero__scrim {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 12, 8, 0.16) 0%, rgba(16, 12, 8, 0.08) 36%, rgba(16, 12, 8, 0.42) 100%),
    linear-gradient(90deg, rgba(16, 12, 8, 0.18) 0%, transparent 36%, rgba(16, 12, 8, 0.08) 100%);
}

.yirong-hero__content {
  align-self: center;
  justify-self: center;
  width: min(1120px, calc(100% - 48px));
  padding: clamp(72px, 9vw, 128px) 0;
  text-align: center;
  text-wrap: balance;
}

.yirong-hero__eyebrow {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.72rem, 0.58rem + 0.32vw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.yirong-hero__title {
  max-width: 100%;
  margin: 0 0 -0.08em;
  padding-bottom: 0.08em;
  color: #ffffff;
  font-size: clamp(3.2rem, 7.5vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.22);
}

.yirong-hero__subtitle {
  max-width: 760px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 0.82rem + 0.55vw, 1.42rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.55;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.yirong-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

.yirong-hero__button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 24px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color var(--yirong-motion-fast, 200ms) ease,
    background-color var(--yirong-motion-fast, 200ms) ease,
    border-color var(--yirong-motion-fast, 200ms) ease,
    transform var(--yirong-motion-fast, 200ms) ease;
}

.yirong-hero__button--primary {
  background: #ffffff;
  color: #17130f;
}

.yirong-hero__button--secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(23, 19, 15, 0.18);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.yirong-hero__button:hover {
  transform: translateY(-2px);
}

.yirong-hero__button--primary:hover {
  background: #f2eee9;
}

.yirong-hero__button--secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.yirong-hero__button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.yirong-hero.is-motion-ready .yirong-hero__media {
  clip-path: inset(0 0 0 100%);
  transform: scale(1.04);
}

.yirong-hero.is-motion-ready .yirong-hero__content > * {
  opacity: 0.82;
  transform: translateY(12px);
}

.yirong-hero.is-motion-ready.is-entered .yirong-hero__media {
  clip-path: inset(0);
  transform: scale(1);
  transition: clip-path 1100ms var(--yirong-hero-ease), transform 1600ms var(--yirong-hero-ease);
}

.yirong-hero.is-motion-ready.is-entered .yirong-hero__content > * {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--yirong-motion-section, 780ms) ease,
    transform var(--yirong-motion-section, 780ms) var(--yirong-hero-ease);
}

.yirong-hero.is-entered .yirong-hero__eyebrow {
  transition-delay: 420ms;
}

.yirong-hero.is-entered .yirong-hero__title {
  transition-delay: 500ms;
}

.yirong-hero.is-entered .yirong-hero__subtitle {
  transition-delay: 580ms;
}

.yirong-hero.is-entered .yirong-hero__actions {
  transition-delay: 660ms;
}

@media (max-width: 767px) {
  .yirong-hero__underlay,
  .yirong-hero__media {
    background-image: url('../images/hero-mobile.png');
    background-position: center center;
  }

  .yirong-hero__scrim {
    background:
      linear-gradient(180deg, rgba(15, 11, 8, 0.04) 0%, rgba(15, 11, 8, 0.1) 44%, rgba(15, 11, 8, 0.7) 100%),
      linear-gradient(90deg, rgba(15, 11, 8, 0.12) 0%, transparent 60%);
  }

  .yirong-hero__content {
    align-self: end;
    width: min(100% - 36px, 560px);
    padding: 72px 0 max(52px, env(safe-area-inset-bottom));
  }

  .yirong-hero__eyebrow {
    margin-bottom: 16px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .yirong-hero__title {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .yirong-hero__subtitle {
    max-width: 19rem;
    margin-top: 20px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .yirong-hero__actions {
    gap: 10px;
    margin-top: 28px;
  }

  .yirong-hero__button {
    flex: 1 1 145px;
    max-width: 210px;
    padding-inline: 16px;
    font-size: 0.72rem;
  }
}
