/* r27: one story hero for desktop, full mobile and the mini storefront. */
.story-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  width: min(1560px, calc(100% - 48px));
  min-height: clamp(560px, 47vw, 720px);
  margin: 24px auto 32px;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
}

.story-hero .story-hero-content {
  position: relative;
  z-index: 2;
  width: 46%;
  min-width: 0;
  padding: 64px 0 68px clamp(32px, 4.5vw, 76px);
}

.story-hero h1 {
  max-width: none;
  margin: 0;
  color: #104632;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(38px, 3.6vw, 58px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: .025em;
  text-wrap: nowrap;
}

.story-hero h1 > span { display: block; }
.story-hero h1 > span:last-child { color: #23533d; }

.story-hero .story-hero-copy {
  max-width: 370px;
  margin: 24px 24px 30px 0;
  color: #556157;
  font-size: 17px;
  line-height: 1.95;
  text-wrap: pretty;
}

.story-hero .story-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  min-height: 52px;
  padding: 13px 23px;
  border: 1px solid #185237;
  border-radius: 999px;
  background: #185237;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.story-hero .story-hero-cta svg { flex: 0 0 20px; }
.story-hero .story-hero-cta:hover { border-color: #103e29; background: #103e29; }
.story-hero .story-hero-cta:focus-visible { outline: 3px solid #185237; outline-offset: 5px; }

.story-hero .story-hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
}

.story-hero .story-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-hero .story-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .5) 31%, rgba(255, 255, 255, 0) 57%);
  pointer-events: none;
}

.story-hero .story-image-tagline { display: none; }

@media (min-width: 768px) and (max-width: 1023px) {
  .story-hero { min-height: 510px; }
  .story-hero .story-hero-content { width: 48%; padding-left: 32px; }
  .story-hero h1 { font-size: 36px; }
  .story-hero .story-hero-copy { font-size: 16px; }
}

@media (max-width: 767px) {
  /* mini-home.css hides full-site siblings: explicitly retain this shared hero. */
  html:not(.full-site) #main > #top.story-hero { display: grid; }

  .story-hero {
    width: calc(100% - 32px);
    min-height: 0;
    margin: 16px auto 20px;
    border-radius: 24px;
    background: #fff;
  }

  .story-hero .story-hero-content {
    width: 100%;
    padding: 27px 24px 22px;
  }

  .story-hero h1 {
    font-size: clamp(29px, 8vw, 38px);
    line-height: 1.36;
    letter-spacing: .015em;
  }

  .story-hero .story-hero-copy {
    max-width: 470px;
    margin: 15px 0 19px;
    font-size: 15px;
    line-height: 1.85;
  }

  .story-hero .story-hero-cta { min-height: 48px; padding: 11px 20px; font-size: 15px; }

  .story-hero .story-hero-art {
    position: relative;
    inset: auto;
    height: clamp(210px, 64vw, 330px);
  }

  .story-hero .story-hero-art img {
    position: absolute;
    right: 0;
    width: 155%;
    max-width: none;
    object-position: right center;
  }

  .story-hero .story-hero-art::after {
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0) 28%);
  }

  .story-hero .story-image-tagline {
    display: block;
    position: absolute;
    z-index: 2;
    inset: 54% 12px auto;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    background: none;
    color: #fff;
    font-size: clamp(22px, 6.15vw, 26px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .08em;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 2px 8px rgba(15, 49, 34, .35);
    white-space: nowrap;
    pointer-events: none;
  }
}

@media (max-width: 359px) {
  .story-hero { width: calc(100% - 24px); }
  .story-hero .story-hero-content { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-hero .story-hero-cta { transition: none; }
}
