.site-loader {
  --loader-progress: 8;
}

.site-loader__progress {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  overflow: visible;
  filter: drop-shadow(0 0 14px rgba(11, 111, 105, 0.28));
  transform: rotate(-90deg);
}

.site-loader__progress-track,
.site-loader__progress-value {
  fill: none;
  stroke-width: 1.6;
}

.site-loader__progress-track {
  stroke: rgba(255, 247, 232, 0.13);
}

.site-loader__progress-value {
  stroke: #d8b16a;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - (var(--loader-progress) * 1));
  stroke-linecap: round;
  transition: stroke-dashoffset 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cinematic {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  background:
    radial-gradient(circle at 70% 40%, rgba(20, 168, 159, 0.14), transparent 42%),
    radial-gradient(circle at 32% 65%, rgba(210, 163, 95, 0.12), transparent 45%),
    #050403;
}

.hero-cinematic img {
  background: transparent;
}

.hero-cinematic__pin {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 70% 40%, rgba(20, 168, 159, 0.14), transparent 42%),
    radial-gradient(circle at 32% 65%, rgba(210, 163, 95, 0.12), transparent 45%),
    #050403;
}

.hero-cinematic__pin::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 70% 40%, rgba(20, 168, 159, 0.14), transparent 42%),
    radial-gradient(circle at 32% 65%, rgba(210, 163, 95, 0.12), transparent 45%);
  pointer-events: none;
  content: "";
}

.hero-velaris {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

.hero-cinematic.has-velaris .hero-velaris {
  opacity: 0.58;
}

.hero-cinematic.velaris-fallback .hero-velaris {
  display: none;
}

.hero-cinematic__background,
.hero-cinematic__background img,
.hero-cinematic__wash,
.hero-cinematic__engraving,
.hero-cinematic__scene {
  position: absolute;
  inset: 0;
}

.hero-cinematic__background {
  z-index: 0;
  overflow: hidden;
}

.hero-cinematic__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: blur(14px) saturate(0.82) contrast(1.08) brightness(0.4);
  transform: scale(1.1);
}

.hero-cinematic__wash {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 4, 3, 0.9) 0%, rgba(7, 4, 3, 0.52) 34%, rgba(7, 4, 3, 0.2) 57%, rgba(7, 4, 3, 0.66) 100%),
    linear-gradient(180deg, rgba(7, 4, 3, 0.58), transparent 38%, rgba(7, 4, 3, 0.86));
}

.hero-cinematic__engraving {
  z-index: 2;
  pointer-events: none;
}

.hero-cinematic__engraving::before,
.hero-cinematic__engraving::after {
  position: absolute;
  top: 50%;
  width: min(22vw, 340px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 177, 106, 0.58), transparent);
  content: "";
}

.hero-cinematic__engraving::before {
  left: 0;
}

.hero-cinematic__engraving::after {
  right: 0;
}

.hero-cinematic__monogram {
  position: absolute;
  top: 51%;
  left: 65%;
  color: rgba(8, 116, 109, 0.13);
  font-family: var(--font-display);
  font-size: 42rem;
  font-weight: 600;
  line-height: 0.7;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-cinematic__orbit {
  position: absolute;
  top: 50%;
  left: 65%;
  border: 1px solid;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-cinematic__orbit--outer {
  width: min(63vw, 900px);
  aspect-ratio: 1;
  border-color: rgba(216, 177, 106, 0.45) transparent rgba(10, 130, 121, 0.38) transparent;
}

.hero-cinematic__orbit--inner {
  width: min(47vw, 680px);
  aspect-ratio: 1;
  border-color: transparent rgba(216, 177, 106, 0.27) transparent rgba(10, 130, 121, 0.44);
}

.hero-cinematic__scene {
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
  perspective: 1200px;
}

.hero-cinematic__product-anchor {
  position: absolute;
  top: 50%;
  left: 65%;
  z-index: 4;
  width: min(28vw, 390px);
  transform: translate(-50%, -50%);
}

.hero-cinematic__product {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  transform-origin: center;
}

.hero-cinematic__layer {
  position: absolute;
  inset: 0;
  transform-origin: center;
  user-select: none;
}

.hero-cinematic__layer img {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.hero-cinematic__milk {
  z-index: 1;
  opacity: 0.44;
}

.hero-cinematic__milk img {
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.22));
}

.hero-cinematic__milk img:first-child {
  top: 10%;
  right: -5%;
  width: min(25vw, 370px);
  transform: rotate(-12deg);
}

.hero-cinematic__milk img:last-child {
  bottom: 2%;
  left: 48%;
  width: min(30vw, 450px);
  transform: rotate(8deg);
}

.hero-cinematic__espresso {
  z-index: 2;
  opacity: 0.52;
}

.hero-cinematic__espresso img {
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.35));
}

.hero-cinematic__espresso img:first-child {
  top: -9%;
  left: 52%;
  width: min(24vw, 350px);
  transform: rotate(17deg);
}

.hero-cinematic__espresso img:last-child {
  right: -7%;
  bottom: -16%;
  width: min(28vw, 410px);
  transform: rotate(-22deg);
}

.hero-cinematic__product img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 42px 36px rgba(0, 0, 0, 0.52));
}

.hero-cinematic__ice {
  z-index: 3;
  opacity: 0.72;
}

.hero-cinematic__ice img {
  width: min(7vw, 98px);
  filter: brightness(1.22) saturate(0.82) drop-shadow(0 20px 24px rgba(0, 0, 0, 0.28));
}

.hero-cinematic__ice img:nth-child(1) { top: 21%; left: 53%; transform: rotate(-18deg); }
.hero-cinematic__ice img:nth-child(2) { top: 15%; right: 14%; transform: rotate(16deg); }
.hero-cinematic__ice img:nth-child(3) { right: 6%; bottom: 23%; transform: rotate(-10deg); }
.hero-cinematic__ice img:nth-child(4) { bottom: 13%; left: 56%; transform: rotate(22deg); }
.hero-cinematic__ice img:nth-child(5),
.hero-cinematic__ice img:nth-child(6) { display: none; }

.hero-cinematic__beans {
  z-index: 5;
  opacity: 0.84;
}

.hero-cinematic__beans img {
  width: min(4.6vw, 64px);
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.38));
}

.hero-cinematic__beans img:nth-child(1) { top: 9%; left: 57%; transform: rotate(-24deg); }
.hero-cinematic__beans img:nth-child(2) { top: 34%; right: 4%; transform: rotate(29deg); }
.hero-cinematic__beans img:nth-child(3) { top: 58%; right: 15%; transform: rotate(-18deg); }
.hero-cinematic__beans img:nth-child(4) { bottom: 4%; left: 57%; transform: rotate(12deg); }
.hero-cinematic__beans img:nth-child(n+5) { display: none; }

.hero-cinematic__copy,
.hero-cinematic__reveal {
  position: absolute;
  z-index: 9;
  color: var(--barock-ivory);
}

.hero-cinematic__copy {
  top: 50%;
  left: max(28px, calc((100vw - 1360px) / 2));
  width: min(560px, 40vw);
  transform: translateY(-48%);
}

.hero-cinematic__eyebrow,
.hero-cinematic__reveal > span {
  margin: 0 0 18px;
  color: var(--barock-gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-cinematic__copy h1,
.hero-cinematic__reveal h2 {
  margin: 0;
  color: var(--barock-ivory);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}

.hero-cinematic__copy h1 {
  font-size: 5.2rem;
  line-height: 0.88;
}

.hero-cinematic__copy h1 span {
  display: block;
}

.hero-cinematic__copy h1 span:last-child {
  margin-left: 0;
  color: #efd08f;
  font-style: italic;
  white-space: nowrap;
}

.hero-cinematic__copy > p:not(.hero-cinematic__eyebrow) {
  max-width: 440px;
  margin: 28px 0 30px;
  color: #e6d3b3;
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-cinematic__cta {
  min-height: 56px;
  border: 1px solid rgba(239, 208, 143, 0.74);
  border-radius: 2px;
  padding-inline: 30px;
  background: linear-gradient(135deg, #efd08f, #c99a52);
  color: #160c08;
  box-shadow: 0 20px 52px rgba(201, 154, 82, 0.22);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
}

.hero-cinematic__cta:hover,
.hero-cinematic__cta:focus-visible {
  box-shadow: 0 24px 64px rgba(216, 177, 106, 0.34);
  transform: translateY(-3px);
}

.hero-cinematic__reveal {
  top: 50%;
  right: max(34px, calc((100vw - 1360px) / 2));
  width: min(390px, 31vw);
  border-left: 1px solid rgba(216, 177, 106, 0.52);
  padding: 8px 0 10px 28px;
  opacity: 0;
  transform: translateY(-42%);
}

.hero-cinematic__reveal h2 {
  font-size: 4.6rem;
  line-height: 0.95;
}

.hero-cinematic__reveal p {
  margin: 22px 0 0;
  color: #e6d3b3;
  font-size: 1rem;
  line-height: 1.75;
}

.hero-cinematic__scroll {
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 10;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #d8c3a5;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-cinematic__scroll i {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(#efd08f, transparent);
  animation: cinematicScrollCue 1.8s ease-in-out infinite;
}

.hero-cinematic.is-motion-paused .hero-cinematic__scroll i,
html.mobile-menu-open .hero-cinematic__scroll i,
body.menu-modal-open .hero-cinematic__scroll i,
body.hero-motion-paused .hero-cinematic__scroll i {
  animation-play-state: paused;
}

@keyframes cinematicScrollCue {
  0%, 100% { opacity: 0.35; transform: scaleY(0.45); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@media (max-width: 1180px) {
  .hero-cinematic__copy h1 {
    font-size: 4.7rem;
  }

  .hero-cinematic__reveal h2 {
    font-size: 3.9rem;
  }
}

@media (max-width: 900px) {
  .hero-cinematic__pin {
    min-height: 640px;
  }

  .hero-cinematic__copy {
    top: 20%;
    left: 7vw;
    width: 52vw;
    transform: none;
  }

  .hero-cinematic__copy h1 {
    font-size: 4.8rem;
  }

  .hero-cinematic__product-anchor {
    left: 63%;
    width: min(40vw, 410px);
  }

  .hero-cinematic__reveal {
    right: 6vw;
    width: 34vw;
  }
}

@media (max-width: 760px) {
  .hero-velaris {
    display: none;
  }

  .hero-cinematic__pin {
    min-height: 620px;
  }

  .hero-cinematic__background img {
    object-position: 54% center;
    filter: saturate(0.76) brightness(0.38);
    transform: scale(1.03);
  }

  .hero-cinematic__wash {
    background:
      linear-gradient(180deg, rgba(7, 4, 3, 0.76), rgba(7, 4, 3, 0.2) 45%, rgba(7, 4, 3, 0.88)),
      linear-gradient(90deg, rgba(7, 4, 3, 0.54), transparent 58%, rgba(7, 4, 3, 0.52));
  }

  .hero-cinematic__monogram {
    top: 56%;
    left: 50%;
    font-size: 23rem;
  }

  .hero-cinematic__orbit--outer {
    left: 50%;
    width: 128vw;
  }

  .hero-cinematic__orbit--inner {
    display: none;
  }

  .hero-cinematic__scene {
    top: 0;
    contain: layout paint style;
  }

  .hero-cinematic__product-anchor {
    top: 68%;
    left: 50%;
    width: min(58vw, 330px);
  }

  .hero-cinematic__milk,
  .hero-cinematic__espresso {
    display: none;
  }

  .hero-cinematic__ice img { width: min(22vw, 104px); }
  .hero-cinematic__ice img:nth-child(1) { top: 45%; left: 5%; }
  .hero-cinematic__ice img:nth-child(n+2) { display: none; }
  .hero-cinematic__beans img { width: min(13vw, 62px); }
  .hero-cinematic__beans img:nth-child(1) { top: 50%; right: 7%; left: auto; }
  .hero-cinematic__beans img:nth-child(n+2) { display: none; }

  .hero-cinematic__ice img,
  .hero-cinematic__beans img {
    filter: none;
  }

  .hero-cinematic__product img {
    filter: drop-shadow(0 20px 18px rgba(0, 0, 0, 0.34));
  }

  .hero-cinematic__copy {
    top: 112px;
    left: 22px;
    width: calc(100% - 44px);
  }

  .hero-cinematic__eyebrow {
    margin-bottom: 10px;
    font-size: 0.62rem;
  }

  .hero-cinematic__copy h1 {
    max-width: 360px;
    font-size: 3.65rem;
    line-height: 0.88;
  }

  .hero-cinematic__copy h1 span:last-child {
    margin-left: 0;
    white-space: normal;
  }

  .hero-cinematic__copy > p:not(.hero-cinematic__eyebrow) {
    max-width: 320px;
    margin: 14px 0 18px;
    font-size: 0.87rem;
    line-height: 1.55;
  }

  .hero-cinematic__cta {
    min-height: 48px;
    padding-inline: 22px;
    font-size: 0.83rem;
  }

  .hero-cinematic__reveal {
    display: none;
  }

  .hero-cinematic__scroll span {
    display: none;
  }

  .hero-cinematic__scroll i {
    animation: none;
    opacity: 0.58;
    transform: scaleY(0.7);
    transform-origin: top;
  }
}

@media (max-width: 420px) {
  .hero-cinematic__copy h1 {
    font-size: 3.15rem;
  }

  .hero-cinematic__product-anchor {
    width: min(58vw, 300px);
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .hero-cinematic__copy {
    top: 94px;
  }

  .hero-cinematic__copy h1 {
    font-size: 2.8rem;
  }

  .hero-cinematic__copy > p:not(.hero-cinematic__eyebrow) {
    margin-block: 10px 12px;
    font-size: 0.78rem;
  }

  .hero-cinematic__product-anchor {
    top: 76%;
    width: min(50vw, 260px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-velaris {
    display: none;
  }

  .site-loader__progress-value,
  .hero-cinematic__cta {
    transition-duration: 0.01ms;
  }

  .hero-cinematic__scroll i {
    animation: none;
  }

  .hero-cinematic__layer {
    opacity: 0.38;
  }

  .hero-cinematic__reveal {
    display: none;
  }
}
