.home-hero {
  --hero-wine: #630506;
  --hero-paper: #fbf1e5;
  --hero-muted: #edcfad;
  --hero-serif: 'Cormorant Garamond', Georgia, serif;
  --hero-sans: 'Archivo', Arial, sans-serif;
  --hero-motion: var(--hero-progress, 0);
  --hero-flare: var(--hero-bloom, 0);
  --hero-scroll-distance: 0px;
  --hero-header-height: 93px;
  --hero-sun-x: 79%;
  --hero-bottle-x: 73%;
  --hero-bottle-base: 9%;
  position: relative;
  color: var(--hero-paper);
  background: #2a0d0a;
}

.home-hero *,
.home-hero *::before,
.home-hero *::after { box-sizing: border-box; }

.home-hero::after {
  content: '';
  display: block;
  height: var(--hero-scroll-distance);
}

.home-hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: max(610px, calc(100svh - var(--hero-header-height)));
  overflow: hidden;
}

.home-hero-landscape,
.home-hero-foreground {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}

.home-hero-landscape {
  transform: scale(calc(1 + .11 * var(--hero-motion)));
  transform-origin: var(--hero-bottle-x) 87%;
}

.home-hero-sunlight,
.home-hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero-sunlight {
  background: radial-gradient(ellipse 29% 44% at var(--hero-sun-x) 40%,
    #ffd585b8, #eaa75e42 51%, transparent 100%);
  mix-blend-mode: screen;
  opacity: calc(.1 + .66 * var(--hero-flare));
}

.home-hero-shade {
  background:
    linear-gradient(90deg, #210608d6 0%, #210608a1 32%, #2106082e 57%, transparent 75%),
    linear-gradient(0deg, #22090d79, transparent 26%);
}

.home-hero-shadow {
  position: absolute;
  left: var(--hero-bottle-x);
  bottom: calc(var(--hero-bottle-base) - 2.2%);
  width: clamp(160px, 24vw, 340px);
  height: clamp(22px, 3vw, 43px);
  border-radius: 50%;
  background: radial-gradient(ellipse 30% 66% at 21% 45%, #1c0705b8, #2a100965 48%, transparent 94%), radial-gradient(ellipse 34% 66% at 77% 45%, #1c0705b8, #2a100965 48%, transparent 94%);
  transform: translateX(-50%) scale(calc(1 + .18 * var(--hero-motion)));
  pointer-events: none;
}

.home-hero-bottle {
  position: absolute;
  left: var(--hero-bottle-x);
  bottom: var(--hero-bottle-base);
  display: block;
  width: auto;
  max-width: none;
  height: clamp(440px, 64svh, 690px);
  aspect-ratio: 1280 / 1120;
  pointer-events: none;
  transform: translate3d(-51.4%, 7%, 0) scale(calc(1 + .16 * var(--hero-motion)));
  transform-origin: 51.4% 93%;
  filter: brightness(.92) saturate(1.04);
}

.home-hero-bottle > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

/* Trace each product independently so the landscape shows through the gap. */
.home-hero-unboxed {
  clip-path: polygon(
    34.77% 12.05%, 32.97% 12.68%, 32.11% 13.66%, 32.11% 16.43%,
    31.64% 17.14%, 31.64% 17.68%, 32.42% 19.02%, 32.50% 20.27%,
    32.19% 23.21%, 32.03% 30.18%, 31.64% 34.55%, 30.08% 43.75%,
    28.05% 52.05%, 27.27% 57.41%, 27.03% 62.77%, 26.95% 86.16%,
    27.65% 88.93%, 28.67% 90.09%, 30.2% 91.21%, 31.4% 91.61%,
    35.08% 92.25%, 39.9% 92.19%, 41.28% 91.92%, 42.5% 91.16%,
    43.17% 89.64%, 43.75% 87.77%, 44.06% 85.80%, 43.98% 72.41%,
    43.91% 59.55%, 43.36% 54.29%, 42.73% 50.80%, 41.41% 45.09%,
    40.78% 43.21%, 39.77% 37.77%, 39.14% 30.98%, 39.06% 24.46%,
    38.67% 19.91%, 38.83% 19.11%, 39.61% 17.77%, 39.61% 17.05%,
    38.75% 16.25%, 38.98% 15.09%, 38.91% 14.20%, 39.14% 13.66%,
    38.75% 12.95%, 37.89% 12.41%, 36.33% 12.05%
  );
}

.home-hero-packaged {
  clip-path: polygon(
    72.73% 4.46%, 53.91% 6.07%, 53.67% 6.52%, 53.67% 33.57%,
    53.91% 34.11%, 54.61% 34.55%, 54.61% 80.18%, 53.67% 82.14%,
    53.75% 91.25%, 54.30% 91.70%, 72.42% 92.95%, 75.80% 88.21%,
    75.78% 7.86%
  );
}

.home-hero-foreground {
  inset: -8%;
  width: 116%;
  height: 116%;
  filter: brightness(.54) saturate(.83) blur(4px);
  opacity: .84;
  transform: translate3d(calc(6% * var(--hero-motion)), calc(9% * var(--hero-motion)), 0)
    scale(calc(1 + .23 * var(--hero-motion)));
  transform-origin: 63% 66%;
}

.home-hero-inner {
  position: relative;
  width: min(1240px, calc(100% - 112px));
  margin-inline: auto;
  padding-block: 58px;
}

.home-hero-copy { max-width: min(51%, 620px); }
.home-hero .home-hero-copy p { margin: 0; }

.home-hero .home-hero-origin {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hero-muted);
  font: 600 11px/1.45 var(--hero-sans);
  letter-spacing: .19em;
  text-transform: uppercase;
}

.home-hero-origin::before {
  content: '';
  flex: 0 0 26px;
  height: 1px;
  background: currentColor;
}

.home-hero h1 {
  margin: 16px 0 17px;
  color: var(--hero-paper);
  font: 600 clamp(54px, 7.05vw, 108px)/.94 var(--hero-serif);
  letter-spacing: -.052em;
  text-wrap: balance;
}

.home-hero h1 sup {
  margin-inline-start: .25em;
  font: 600 .22em/1 var(--hero-sans);
  letter-spacing: 0;
  vertical-align: super;
}

.home-hero .home-hero-claim {
  max-width: 41ch;
  color: var(--hero-paper);
  font: 500 clamp(18px, 1.7vw, 24px)/1.36 var(--hero-sans);
  text-wrap: balance;
}

.home-hero .home-hero-copy .home-hero-malay {
  max-width: 42ch;
  margin-block-start: 12px;
  color: var(--hero-muted);
  font: italic 500 clamp(19px, 2vw, 25px)/1.28 var(--hero-serif);
  text-wrap: balance;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-block-start: 25px;
}

.home-hero .home-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid #e3b991;
  color: var(--hero-paper);
  font: 600 13px/1.3 var(--hero-sans);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.home-hero .home-hero-shop { background: var(--hero-wine); }
.home-hero .home-hero-shop:hover { background: #7d2720; }
.home-hero .home-hero-recipes { background: #280f0a57; }
.home-hero .home-hero-recipes:hover { background: var(--hero-paper); color: var(--hero-wine); }
.home-hero .home-hero-actions a:focus-visible { outline: 3px solid #f3c286; outline-offset: 4px; }

.home-hero .home-hero-copy .home-hero-certification {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-block-start: 23px;
  color: var(--hero-muted);
  font: 600 10px/1.45 var(--hero-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-hero-certification img {
  display: block;
  width: 35px;
  height: 35px;
  padding: 3px;
  border-radius: 50%;
  background: var(--hero-paper);
  object-fit: contain;
}

@media (min-width: 851px) and (min-height: 660px) and (prefers-reduced-motion: no-preference) {
  body:not(.motion-paused) .home-hero[data-hero-motion] {
    --hero-scroll-distance: clamp(165px, 30svh, 270px);
  }

  body:not(.motion-paused) .home-hero[data-hero-motion] .home-hero-stage {
    position: sticky;
    top: var(--hero-header-height);
  }
}

@media (max-width: 1100px) {
  .home-hero-inner { width: calc(100% - 72px); }
}

@media (min-width: 851px) and (max-width: 1100px) {
  .home-hero { --hero-bottle-x: 75%; }
}

@media (max-width: 850px) {
  .home-hero {
    --hero-header-height: 79px;
    --hero-bottle-x: 62%;
    --hero-bottle-base: 8%;
    --hero-sun-x: 77%;
  }

  .home-hero-stage {
    min-height: clamp(720px, calc(100svh - var(--hero-header-height)), 880px);
    align-items: start;
  }

  .home-hero-landscape { object-position: 76% bottom; }
  .home-hero-foreground { object-position: 80% bottom; opacity: .75; }
  .home-hero-shade {
    background:
      linear-gradient(180deg, #23090dea 0%, #23090dbd 35%, #23090d24 63%, transparent 78%),
      linear-gradient(0deg, #22090d6b, transparent 26%);
  }

  .home-hero-inner { width: min(620px, calc(100% - 56px)); padding-block: 38px 435px; }
  .home-hero-copy { max-width: 480px; }
  .home-hero h1 { font-size: clamp(46px, 9.1vw, 78px); }
  .home-hero-bottle { height: clamp(350px, 42svh, 418px); transform: translate3d(-51.4%, 7%, 0) scale(calc(1 + .05 * var(--hero-motion))); }
}

@media (max-width: 600px) {
  .home-hero-inner { width: calc(100% - 40px); padding-block: 33px max(325px, calc(var(--hero-phone-bottle-height) * .89 + 45px)); }
  .home-hero-stage { min-height: clamp(670px, calc(100svh - var(--hero-header-height)), 790px); }
  .home-hero { --hero-bottle-x: 52%; --hero-sun-x: 80%; --hero-phone-bottle-height: clamp(313px, 44.5svh, 407px); }
  .home-hero h1 { font-size: clamp(41px, 12.1vw, 64px); margin-block: 13px 15px; }
  .home-hero .home-hero-origin { font-size: 10px; }
  .home-hero .home-hero-claim { max-width: 30ch; }
  .home-hero .home-hero-copy .home-hero-malay { max-width: 31ch; margin-block-start: 9px; }
  .home-hero-actions { margin-block-start: 20px; }
  .home-hero .home-hero-actions a { padding-inline: 14px; }
  .home-hero .home-hero-copy .home-hero-certification { margin-block-start: 15px; }
  .home-hero-bottle { height: var(--hero-phone-bottle-height); transform: translate3d(-51.4%, 7%, 0) scale(calc(1 + .05 * var(--hero-motion))); }
  .home-hero-shadow { width: 220px; height: 29px; }
}

@media (max-width: 360px) {
  .home-hero { --hero-phone-bottle-height: clamp(285px, 42svh, 390px); }
}

body.motion-paused .home-hero { --hero-motion: 0; --hero-flare: 0; }

@media (prefers-reduced-motion: reduce) {
  .home-hero { --hero-motion: 0; --hero-flare: 0; }
  .home-hero .home-hero-actions a { transition: none; }
}
