.mh-hero {
  --mh-hero-cream: #e2eae1;
  --mh-hero-mint: #e3eae1;
  --mh-hero-dark: #16211d;
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  color: var(--mh-hero-cream);
  background: #111;
  isolation: isolate;
}

.mh-hero__media,
.mh-hero__media > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mh-hero .mh-hero__media img.mh-hero__fallback,
.mh-hero .mh-hero__media video.mh-hero__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.mh-hero__video {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.mh-hero.is-video-playing .mh-hero__video.is-current {
  opacity: 1;
}

/* Figma fills: #000 29% + #215C65 30% */
.mh-hero__overlay {
  background: linear-gradient(rgba(0, 0, 0, 0.29), rgba(0, 0, 0, 0.29)), rgba(33, 92, 101, 0.3);
}

/* Figma gradient: #19231A 100% (bottom) -> #000000 0% (top) */
.mh-hero__overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, #19231a 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.mh-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 410px);
  grid-template-rows: 1fr auto;
  align-content: end;
  gap: 32px 48px;
  min-height: inherit;
  padding: 44px 78px;
  box-sizing: border-box;
}

.mh-hero__content {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  align-self: center;
  max-width: 760px;
}

.mh-hero .mh-hero__title {
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0 0 40px;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--mh-hero-cream);
}

.mh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.mh-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 54px;
  padding: 0 8px 0 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.mh-hero__btn:hover { transform: translateY(-2px); }

.mh-hero__btn-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  transition: background-color 0.2s ease;
}

/* Arrow slides out to the top-right, then re-enters from the bottom-left. */
.mh-hero__btn:hover .mh-hero__btn-icon svg,
.mh-hero__btn:focus-visible .mh-hero__btn-icon svg {
  animation: mh-hero-arrow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes mh-hero-arrow {
  0%   { transform: translate(0, 0); }
  45%  { transform: translate(18px, -18px); opacity: 0; }
  46%  { transform: translate(-18px, 18px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mh-hero__btn:hover .mh-hero__btn-icon svg,
  .mh-hero__btn:focus-visible .mh-hero__btn-icon svg { animation: none; }
}

.mh-hero__btn.is-primary { background: var(--mh-hero-mint); color: var(--mh-hero-dark); }
.mh-hero__btn.is-primary:hover,
.mh-hero__btn.is-primary:focus-visible { background: #fff; }
.mh-hero__btn.is-primary .mh-hero__btn-icon { background: var(--mh-hero-dark); color: #fff; }
.mh-hero__btn.is-outline { padding: 0 32px; border-color: rgba(255, 255, 255, 0.4); color: var(--mh-hero-cream); }
.mh-hero__btn.is-outline:hover,
.mh-hero__btn.is-outline:focus-visible { border-color: #fff; }
.mh-hero__btn.is-outline:hover .mh-hero__btn-icon,
.mh-hero__btn.is-outline:focus-visible .mh-hero__btn-icon { background: #fff; }

.mh-hero__stats {
  display: flex;
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}

.mh-hero .mh-hero__stats strong {
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 3.6vw, 56px);
  line-height: 1.1;
}

.mh-hero__stats span { font-size: 14px; }

/* Glass card */
.mh-hero__card {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  padding: 25px 12px 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--mh-hero-cream);
}

.mh-hero__card-text {
  margin: 0 0 20px;
  padding: 0 10px;
  font-size: 15px;
  line-height: 1.5;
}

.mh-hero__slider {
  position: relative;
  --img: 120px;
  --n: 54px;
  --r: 16px;
  --mh-notch-mask:
    linear-gradient(#000 0 0) left 0 top 0 / calc(100% - var(--r)) calc(100% - var(--n)) no-repeat,
    linear-gradient(#000 0 0) left 0 top 0 / 100% calc(100% - var(--n) - var(--r)) no-repeat,
    radial-gradient(circle at 0 0, #000 calc(var(--r) - 0.5px), transparent var(--r)) right 0 bottom var(--n) / var(--r) var(--r) no-repeat,
    linear-gradient(#000 0 0) left 0 top 0 / calc(100% - var(--n) - var(--r)) 100% no-repeat,
    linear-gradient(#000 0 0) left 0 top 0 / calc(100% - var(--n)) calc(100% - var(--r)) no-repeat,
    radial-gradient(circle at 0 0, #000 calc(var(--r) - 0.5px), transparent var(--r)) right var(--n) bottom 0 / var(--r) var(--r) no-repeat,
    radial-gradient(circle at 100% 100%, transparent calc(var(--r) - 0.5px), #000 var(--r)) right calc(var(--n) - var(--r)) bottom calc(var(--n) - var(--r)) / var(--r) var(--r) no-repeat;
}

.mh-hero__slider {
  padding: 8px;
  min-height: 118px;
  color: var(--mh-hero-dark);
  box-sizing: border-box;
}
/* Static card background with the bottom-right notch; only the slide contents move. */
.mh-hero__slider::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: var(--mh-hero-mint);
  -webkit-mask: var(--mh-notch-mask);
  mask: var(--mh-notch-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.mh-hero__stage { position: relative; display: flex; gap: 16px; }

.mh-hero__imgs {
  flex: 0 0 var(--img);
  width: var(--img);
  min-height: 102px;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}
.mh-hero__imgtrack {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}
.mh-hero__img { flex: 0 0 100%; min-width: 0; }
.mh-hero__img img { display: block; width: 100%; height: 100%; object-fit: cover; }

.mh-hero__texts { display: grid; flex: 1; min-width: 0; padding: 4px 8px 34px 0; }
.mh-hero__text {
  grid-area: 1 / 1;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.mh-hero__text.is-active { opacity: 1; pointer-events: auto; }

.mh-hero__nav {
  position: absolute;
  z-index: 3;
  left: calc(8px + var(--img) + 16px);
  bottom: 8px;
}

.mh-hero__nav { display: flex; gap: 8px; }

.mh-hero__nav button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.mh-hero .mh-hero__nav button:focus,
.mh-hero .mh-hero__nav button:active {
  background: transparent;
  border-color: currentColor;
  color: inherit;
  outline: none;
  box-shadow: none;
}
.mh-hero .mh-hero__nav button:hover,
.mh-hero .mh-hero__nav button:focus-visible {
  background: #2b352c;
  border-color: #2b352c;
  color: var(--mh-hero-cream);
}

.mh-hero__slide-link {
  position: absolute;
  z-index: 3;
  right: 7px;
  bottom: 7px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mh-hero-mint);
  color: var(--mh-hero-dark) !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.mh-hero__slide-link:hover,
.mh-hero__slide-link:focus-visible {
  background: #2b352c;
  color: var(--mh-hero-cream) !important;
}

.mh-hero__slide-link[hidden] { display: none; }

@media (max-width: 1399px) {
  .mh-hero__inner { padding: 44px 24px; }
}

@media (max-width: 991px) {
  .mh-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 120px 20px 32px;
  }
  .mh-hero__content { grid-row: 1; align-self: center; padding: 0; min-width: 0; }
  .mh-hero__card { grid-column: 1; grid-row: auto; }
  .mh-hero__stats { gap: 40px; grid-row: auto; }
}

/* hide the card on tablets and phones */
@media (max-width: 1199px) {
  .mh-hero__card { display: none; }
}

@media (max-width: 767px) {
  .mh-hero__btn.is-outline { display: none; }
}

@media (max-width: 480px) {
  .mh-hero__slider { --img: 96px; }
}

/* ---- First-visit intro: golden oil drop + ripple reveal ----
   Active only while <html> has .mh-intro-on (set in <head>, once per session). */
@property --mh-r {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.mh-hero__intro { display: none; }

/* keep the scrollbar's space reserved so the layout doesn't shift when the intro ends */
.mh-intro-on {
  overflow: hidden;
  scrollbar-gutter: stable;
  background: #16211d; /* the reserved gutter shows this, not white */
}

/* the cover has opened: allow scrolling while the last content animations finish */
.mh-intro-on.mh-intro-scroll { overflow: visible; }

/* undo the inline critical rule (see hero-shortcode.php): the cover now hides the page */
html.mh-intro-on body { opacity: 1; }

/* preloader: every intro animation waits until the page has loaded (.mh-intro-go, set in <head>) */
.mh-intro-on:not(.mh-intro-go) * { animation-play-state: paused !important; }

/* the hero's isolation would trap the cover's z-index below the header */
.mh-intro-on .mh-hero { isolation: auto; }

.mh-intro-on .mh-hero__intro {
  --mh-r: 0px;
  --mh-gold: #d9b45a; /* overridable per page via the Intro animation fields */
  --mh-bowl-w: clamp(370px, 54vw, 750px); /* includes the side leaves; the bowl itself is ~59% of this */
  --mh-bowl-h: calc(var(--mh-bowl-w) * var(--mh-bowl-ratio, 0.1956)); /* default bowl-leaf.webp is 767x150 */
  --mh-tip: calc(var(--mh-bowl-h) - 50vh + 28px); /* falling drop starts at the spout tip */
  position: fixed;
  inset: 0;
  z-index: 100000; /* above the fixed site header (z-index 999) */
  display: block;
  overflow: hidden;
  pointer-events: none;
  background: var(--mh-intro-bg, var(--mh-hero-dark));
  /* hole grows from the centre; soft edge follows the ripple */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent calc(var(--mh-r) - 8vmax), #000 var(--mh-r));
  mask-image: radial-gradient(circle at 50% 50%, transparent calc(var(--mh-r) - 8vmax), #000 var(--mh-r));
  animation: mh-intro-open 1.5s cubic-bezier(0.65, 0, 0.35, 1) 1.7s forwards;
}

.mh-intro-on .mh-hero__intro-bowl {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--mh-bowl-w);
  height: var(--mh-bowl-h);
  margin-left: calc(var(--mh-bowl-w) / -2);
  max-width: none;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-16px);
  animation: mh-intro-bowl 0.7s cubic-bezier(0.2, 0.6, 0.3, 1) 0.1s forwards;
}

.mh-intro-on .mh-hero__intro-drop {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 56px;
  margin: -28px 0 0 -20px;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--mh-gold) 55%, transparent));
  opacity: 0;
  transform-origin: 50% 100%;
  transform: translateY(var(--mh-tip)) scaleY(1.12);
  animation: mh-intro-drop 0.85s cubic-bezier(0.55, 0, 0.9, 0.6) 0.85s forwards;
}

.mh-intro-on .mh-hero__intro-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22vmin;
  height: 22vmin;
  margin: -11vmin 0 0 -11vmin;
  border: 1.5px solid var(--mh-gold);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  animation: mh-intro-ring 1.3s cubic-bezier(0.2, 0.6, 0.3, 1) 1.7s forwards;
}
.mh-intro-on .mh-hero__intro-ring:nth-child(2) { animation-delay: 1.87s; }
.mh-intro-on .mh-hero__intro-ring:nth-child(3) { animation-delay: 2.05s; }

.mh-intro-on .mh-hero__intro-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.15em;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(32px, 8vw, 133px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: capitalize;
  white-space: nowrap;
  text-align: center;
  /* outline-only lettering */
  color: transparent;
  -webkit-text-stroke: 1.5px var(--mh-intro-text, rgba(150, 195, 155, 0.28));
}

/* three taglines, one after another */
.mh-intro-on .mh-hero__intro-text span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: mh-intro-text 0.7s ease both;
}
.mh-intro-on .mh-hero__intro-text span:nth-child(1) { animation-delay: 0.2s; }
.mh-intro-on .mh-hero__intro-text span:nth-child(2) { animation-delay: 0.8s; }
.mh-intro-on .mh-hero__intro-text span:nth-child(3) { animation-delay: 1.4s; }

/* hero settles in behind the ripple, then content rises */
.mh-intro-on .mh-hero__media { animation: mh-intro-settle 2.8s cubic-bezier(0.2, 0.6, 0.3, 1) 1.7s both; }
/* header drops in from the top as the ripple reaches it */
.mh-intro-on .site-header {
  animation: mh-intro-header 0.9s cubic-bezier(0.2, 0.6, 0.3, 1) 2.5s both;
}

.mh-intro-on .mh-hero__title,
.mh-intro-on .mh-hero__actions,
.mh-intro-on .mh-hero__stats,
.mh-intro-on .mh-hero__card {
  animation: mh-intro-rise 0.9s cubic-bezier(0.2, 0.6, 0.3, 1) both;
}
.mh-intro-on .mh-hero__title   { animation-delay: 2.65s; }
.mh-intro-on .mh-hero__actions { animation-delay: 2.85s; }
.mh-intro-on .mh-hero__stats   { animation-delay: 3s; }
.mh-intro-on .mh-hero__card    { animation-delay: 3.15s; }

@keyframes mh-intro-open { to { --mh-r: 130vmax; } }
@keyframes mh-intro-bowl {
  to { opacity: 1; transform: none; }
}
@keyframes mh-intro-drop {
  0%   { opacity: 0; transform: translateY(var(--mh-tip)) scaleY(1.12); }
  15%  { opacity: 1; }
  88%  { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(6px) scale(1.25, 0.15); }
}
@keyframes mh-intro-ring {
  0%   { opacity: 0.9; transform: scale(0); }
  100% { opacity: 0; transform: scale(5); }
}
@keyframes mh-intro-text {
  0%   { opacity: 0; transform: translateY(24px); }
  25%  { opacity: 1; transform: translateY(0); }
  75%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-24px); }
}
@keyframes mh-intro-settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes mh-intro-header { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }
@keyframes mh-intro-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* browsers without @property: simple fade instead of the ripple mask */
.mh-intro-on.mh-intro-fade .mh-hero__intro {
  -webkit-mask-image: none;
  mask-image: none;
  animation: mh-intro-fadeout 0.8s ease 2.1s forwards;
}
@keyframes mh-intro-fadeout { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .mh-hero__intro { display: none !important; }
}
