:root {
  --cream: #f6f2e7;
  --paper: #f3e4bf;
  --olive: #55623b;
  --olive-soft: #a6ad8c;
  --gold: #c9a15b;
  --gold-deep: #9d7634;
  --brown: #7a5a3a;
  --ink: #202415;
  --muted: #5f6449;
  --line: rgba(122, 90, 58, 0.26);
  --shadow: 0 28px 90px rgba(48, 37, 18, 0.24);
  --serif: "Bodoni 72", "Didot", "Hoefler Text", "Iowan Old Style", Georgia, serif;
  --sans: "Optima", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --commerce-sans: "Lato", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--paper);
  color: var(--ink);
  scroll-behavior: auto;
  height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--paper);
  font-family: var(--sans);
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.page-scroll {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background-color: var(--paper);
}

main {
  background: var(--paper);
}

img,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.audio-toggle {
  position: absolute;
  z-index: 30;
  bottom: clamp(18px, 3.2vh, 34px);
  left: clamp(18px, 2.8vw, 34px);
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid rgba(246, 242, 231, 0.42);
  border-radius: 999px;
  background: rgba(47, 43, 23, 0.18);
  color: rgba(246, 242, 231, 0.82);
  cursor: pointer;
  outline: 0;
  box-shadow: 0 12px 32px rgba(31, 24, 12, 0.18);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.audio-toggle svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}

.audio-toggle path {
  fill: currentColor;
}

.audio-toggle .audio-wave {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  opacity: 0.28;
}

.audio-toggle::after {
  position: absolute;
  width: 1px;
  height: 22px;
  background: currentColor;
  content: "";
  opacity: 0.7;
  transform: rotate(-42deg);
  transition: opacity 180ms ease;
}

.audio-toggle.is-active {
  border-color: rgba(201, 161, 91, 0.78);
  background: rgba(85, 98, 59, 0.38);
  color: var(--cream);
}

.audio-toggle.is-active .audio-wave {
  opacity: 0.82;
}

.audio-toggle.is-active::after {
  opacity: 0;
}

.audio-toggle:hover {
  transform: translate3d(0, -1px, 0);
}

.audio-toggle:focus-visible {
  outline: 2px solid rgba(246, 242, 231, 0.78);
  outline-offset: 3px;
}

.scroll-scene {
  height: 760vh;
  min-height: 5100px;
  background:
    url("./assets/site-images/slide-background.png") center bottom / cover fixed no-repeat,
    var(--paper);
}

.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: #e8c47d;
}

.hero-video,
.scene-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video {
  z-index: 1;
  background: #d3a45f url("./assets/hero-image.png") center / cover no-repeat;
}

.scene-background {
  z-index: 2;
  opacity: 0;
  transform: translate3d(0, 12%, 0) scale(1.035);
  will-change: opacity, transform;
}

.quiet-header {
  position: absolute;
  z-index: 10;
  top: clamp(96px, 15vh, 150px);
  left: 50%;
  width: clamp(142px, 10.8vw, 210px);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, opacity;
}

.header-seal {
  width: 100%;
  filter: drop-shadow(0 18px 34px rgba(70, 42, 14, 0.25));
}

.scroll-cue {
  position: absolute;
  z-index: 10;
  right: clamp(18px, 2.8vw, 42px);
  bottom: clamp(18px, 3.2vh, 34px);
  color: rgba(246, 242, 231, 0.76);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  pointer-events: none;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(43, 31, 12, 0.45);
  transform: translate3d(0, 0, 0);
  will-change: opacity, transform;
}

.scroll-cue span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: scrollCueFlash 1.65s ease-in-out infinite;
}

.scroll-cue span::after {
  display: block;
  width: 36px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.72;
}

@keyframes scrollCueFlash {
  0%,
  100% {
    opacity: 0.36;
    transform: translate3d(0, 0, 0);
  }

  48% {
    opacity: 1;
    transform: translate3d(0, -2px, 0);
  }
}

.section-copy {
  color: var(--olive);
  text-shadow: 0 1px 0 rgba(255, 250, 235, 0.45);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--olive);
  font-family: var(--sans);
  font-size: clamp(0.72rem, 0.82vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 8.7em;
  font-size: clamp(3.3rem, 8vw, 8.25rem);
  line-height: 0.88;
}

h2 {
  max-width: 9.2em;
  font-size: clamp(2.85rem, 5.3vw, 6.1rem);
  line-height: 0.92;
}

.estate-copy h2 span {
  display: block;
}

.section-copy p:not(.eyebrow):not(.rating):not(.ship-note) {
  max-width: 34rem;
  margin: 22px 0 0;
  color: var(--olive);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
}

.feature-copy,
.feature-tiles,
.estate-copy,
.checkout-scene,
.stage-object {
  position: absolute;
  will-change: transform, opacity;
}

.feature-copy {
  z-index: 7;
  top: clamp(132px, 18vh, 168px);
  left: clamp(38px, 3.4vw, 56px);
  width: min(390px, 31vw);
  opacity: 0;
  transform: translate3d(-6%, -80%, 0);
  isolation: isolate;
}

.feature-tiles {
  z-index: 8;
  top: clamp(128px, 17vh, 156px);
  right: auto;
  left: clamp(390px, 33vw, 520px);
  width: min(430px, 32vw);
  opacity: 0;
  transform: translate3d(0, -92%, 0);
}

.feature-icons {
  width: 100%;
  filter: drop-shadow(0 24px 34px rgba(72, 48, 20, 0.16));
}

.feature-copy {
  text-align: left;
}

.feature-copy::before {
  content: none;
}

.feature-seal {
  display: none;
}

.fact-logo {
  display: none;
}

.feature-copy h1 {
  max-width: 5.3em;
  color: #684c24;
  font-size: clamp(2.85rem, 4.2vw, 4.7rem);
  line-height: 0.96;
  text-shadow:
    0 1px 0 rgba(255, 250, 235, 0.84),
    0 12px 30px rgba(63, 42, 16, 0.2);
}

.feature-copy p:not(.eyebrow) {
  max-width: 24rem;
  color: #3f492b;
  text-shadow:
    0 1px 0 rgba(255, 250, 235, 0.82),
    0 10px 28px rgba(246, 242, 231, 0.42);
}

.feature-divider {
  width: min(278px, 68%);
  margin: 15px 0 0;
  opacity: 0.72;
}

.stage-object {
  z-index: 6;
  pointer-events: none;
  user-select: none;
  transform: translate3d(var(--x, -50%), var(--y, 110%), 0) scale(var(--scale, 1));
}

.foreground-bottle {
  bottom: 0;
  left: 50%;
  width: 100vw;
  max-width: none;
  z-index: 6;
  --x: -50%;
  --y: 112%;
  --scale: 1;
}

.estate-object {
  bottom: 0;
  left: 50%;
  width: min(97vw, 1610px);
  max-width: none;
  z-index: 5;
  opacity: 0;
  --x: -50%;
  --y: 110%;
  --scale: 1;
}

.food-object {
  bottom: -1px;
  left: 50%;
  width: min(92vw, 1500px);
  max-width: none;
  z-index: 5;
  opacity: 0;
  --x: -50%;
  --y: 112%;
  --scale: 1;
}

.estate-copy {
  z-index: 7;
  top: clamp(142px, 19vh, 210px);
  left: clamp(64px, 7.2vw, 118px);
  width: min(520px, max(34vw, 380px));
  opacity: 0;
  transform: translate3d(-9%, 8%, 0);
}

.estate-seal {
  width: min(72px, 22%);
  margin: 0 0 12px;
  opacity: 0.72;
  filter:
    drop-shadow(0 1px 0 rgba(255, 249, 232, 0.62))
    drop-shadow(0 14px 24px rgba(86, 58, 22, 0.14));
}

.detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.detail-row li {
  border: 1px solid rgba(122, 90, 58, 0.24);
  background: rgba(246, 242, 231, 0.58);
  color: var(--olive);
  padding: 8px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.olive-divider {
  width: min(390px, 72%);
  margin: 18px 0 0;
  opacity: 0.78;
}

.checkout-scene {
  z-index: 8;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 0.82fr);
  align-items: stretch;
  gap: clamp(28px, 3.4vw, 50px);
  width: min(1120px, calc(100vw - 112px));
  height: min(76vh, 710px);
  margin: auto;
  opacity: 0;
  transform: translate3d(0, 28%, 0);
}

.product-visual {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(122, 90, 58, 0.3);
  border-radius: 26px;
  background: #f5eee0;
  box-shadow:
    0 28px 90px rgba(48, 37, 18, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  overflow: hidden;
  padding: 0;
  backdrop-filter: blur(9px);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.purchase-card {
  align-items: center;
  border: 1px solid rgba(122, 90, 58, 0.34);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 251, 239, 0.96), rgba(241, 225, 187, 0.92)),
    var(--cream);
  box-shadow:
    0 26px 80px rgba(48, 37, 18, 0.19),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  padding: clamp(24px, 3.1vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  font-family: var(--commerce-sans);
  text-align: center;
}

.purchase-logo {
  display: block;
  width: min(260px, 68%);
  margin: 0 auto 18px;
  filter:
    drop-shadow(0 1px 0 rgba(255, 249, 232, 0.78))
    drop-shadow(0 14px 22px rgba(64, 43, 15, 0.13));
}

.rating {
  width: 100%;
  margin: 10px 0 0;
  color: var(--olive);
  font-family: var(--commerce-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.purchase-copy {
  margin-top: 18px;
}

.option-group {
  display: grid;
  gap: 11px;
  width: min(100%, 390px);
  margin: 24px auto 0;
}

.quantity-option {
  display: grid;
  grid-template-columns: minmax(86px, 0.82fr) minmax(72px, auto) minmax(100px, 1fr);
  align-items: center;
  justify-content: center;
  min-height: 50px;
  gap: 14px;
  border: 1px solid rgba(85, 98, 59, 0.35);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.74);
  color: var(--olive);
  font-family: var(--commerce-sans);
  padding: 10px 15px;
  cursor: pointer;
  outline: 0;
  text-align: center;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.quantity-option span,
.quantity-option strong {
  font-weight: 500;
}

.quantity-option em {
  grid-column: auto;
  justify-self: start;
  margin-top: 0;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.quantity-option span {
  justify-self: end;
}

.quantity-option strong {
  justify-self: center;
  min-width: 58px;
}

.quantity-option:hover {
  transform: translate3d(0, -1px, 0);
}

.quantity-option.is-active {
  border-color: rgba(157, 118, 52, 0.72);
  background: rgba(199, 161, 91, 0.15);
  box-shadow:
    inset 0 0 0 1px rgba(157, 118, 52, 0.22),
    0 10px 26px rgba(79, 58, 27, 0.08);
}

.quantity-option:focus-visible {
  outline: 2px solid rgba(157, 118, 52, 0.72);
  outline-offset: 2px;
}

.purchase-total {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  width: min(100%, 390px);
  margin: 16px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  color: var(--olive);
  font-weight: 500;
}

.purchase-total strong {
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.add-button {
  width: min(100%, 390px);
  min-height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 16px;
  background: #4f5c36;
  color: var(--cream);
  font-family: var(--commerce-sans);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  outline: 0;
  transition: background-color 180ms ease, transform 180ms ease;
}

.add-button:hover {
  background: #404b2a;
  transform: translate3d(0, -1px, 0);
}

.add-button:focus-visible {
  outline: 2px solid rgba(157, 118, 52, 0.72);
  outline-offset: 3px;
}

.ship-note {
  width: 100%;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 900px) {
  .scroll-scene {
    height: 780vh;
    min-height: 5100px;
  }

  .stage {
    min-height: 100svh;
  }

  .header-seal {
    mix-blend-mode: multiply;
  }

  .feature-icons {
    mix-blend-mode: multiply;
  }

  .quiet-header {
    top: clamp(70px, 9.6svh, 96px);
    right: clamp(18px, 5vw, 30px);
    left: auto;
    width: clamp(88px, 24vw, 116px);
  }

  .audio-toggle {
    top: 10px;
    bottom: auto;
    left: 8px;
    width: 32px;
  }

  .audio-toggle svg {
    width: 16px;
    height: 16px;
  }

  .audio-toggle::after {
    height: 18px;
  }

  .scroll-cue {
    right: 18px;
    bottom: 18px;
    font-size: 0.66rem;
  }

  .hero-video {
    object-position: 18% center;
  }

  .scene-background {
    object-position: center;
  }

  .feature-copy,
  .estate-copy {
    top: 64px;
    left: 50%;
    width: min(90vw, 520px);
    transform: translate3d(-50%, -92%, 0);
    text-align: center;
  }

  .feature-copy {
    left: 50%;
    top: clamp(72px, 9svh, 96px);
    width: min(82vw, 348px);
  }

  .feature-tiles {
    top: clamp(228px, 27svh, 260px);
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(82vw, 348px);
    transform: translate3d(-50%, -92%, 0);
  }

  .fact-logo {
    display: none;
  }

  .feature-seal {
    display: block;
    width: 46px;
    margin: 0 auto 8px;
    opacity: 0.68;
    filter:
      drop-shadow(0 1px 0 rgba(255, 249, 232, 0.62))
      drop-shadow(0 14px 24px rgba(86, 58, 22, 0.14));
  }

  .feature-copy h1,
  .estate-copy h2 {
    max-width: none;
    margin-inline: auto;
  }

  .feature-copy h1 {
    font-size: clamp(1.72rem, 6.7vw, 2.16rem);
    line-height: 0.98;
  }

  .feature-copy .eyebrow {
    display: none;
  }

  .feature-copy p:not(.eyebrow) {
    display: block;
    max-width: 100%;
    margin: 11px auto 0;
    color: #4b5435;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.36;
  }

  .estate-copy {
    top: clamp(74px, 9.4svh, 92px);
  }

  .estate-seal {
    width: 48px;
    margin: 0 auto 7px;
    opacity: 0.68;
  }

  .estate-copy .eyebrow {
    margin-bottom: 8px;
  }

  .estate-copy h2 {
    max-width: 10.8em;
    font-size: clamp(1.78rem, 7.4vw, 2.62rem);
    line-height: 0.96;
  }

  h1,
  h2 {
    font-size: clamp(2.25rem, 11.6vw, 3.75rem);
    line-height: 0.94;
  }

  .section-copy p:not(.eyebrow):not(.rating):not(.ship-note) {
    max-width: 31rem;
    margin-inline: auto;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .feature-divider {
    display: none;
  }

  .foreground-bottle {
    width: 264vw;
    --x: -66%;
  }

  .estate-object {
    width: 154vw;
    --x: -64%;
  }

  .food-object {
    width: 205vw;
    --x: -62%;
  }

  .detail-row {
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
  }

  .detail-row li {
    padding: 7px 8px;
    font-size: 0.62rem;
  }

  .olive-divider {
    width: min(320px, 84%);
    margin-inline: auto;
  }

  .checkout-scene {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(354px, 43svh) auto;
    gap: 10px;
    width: min(92vw, 520px);
    height: auto;
    align-content: center;
    padding-top: 18px;
  }

  .product-visual {
    width: min(78vw, 315px);
    height: 100%;
    margin-inline: auto;
    border-radius: 18px;
    overflow: hidden;
  }

  .purchase-card {
    align-items: center;
    padding: 14px 15px 12px;
    border-radius: 18px;
    height: auto;
    text-align: center;
  }

  .purchase-logo {
    width: min(178px, 58%);
    margin: 6px auto 9px;
  }

  .rating,
  .ship-note {
    width: 100%;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-align: center;
  }

  .ship-note {
    padding-bottom: 24px;
  }

  .purchase-card .purchase-copy {
    display: none;
  }

  .option-group {
    gap: 6px;
    margin-top: 10px;
    width: 100%;
  }

  .quantity-option {
    display: grid;
    grid-template-columns: minmax(64px, 0.8fr) minmax(48px, auto) minmax(76px, 1fr);
    align-items: center;
    justify-content: center;
    min-height: 36px;
    gap: 8px;
    padding: 7px 10px;
    font-size: 0.72rem;
    font-weight: 400;
    border-radius: 14px;
    text-align: center;
  }

  .quantity-option span,
  .quantity-option strong,
  .quantity-option em {
    display: block;
    width: auto;
    line-height: 1.14;
    text-align: center;
    white-space: nowrap;
  }

  .quantity-option span {
    justify-self: end;
  }

  .quantity-option strong {
    justify-self: center;
    min-width: 46px;
  }

  .quantity-option em {
    grid-column: auto;
    margin-top: 0;
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.07em;
    justify-self: start;
  }

  .quantity-option span,
  .quantity-option strong {
    font-weight: 400;
  }

  .purchase-total {
    width: 100%;
    margin-top: 7px;
    padding-top: 7px;
    justify-content: center;
    gap: 16px;
    font-weight: 400;
  }

  .purchase-total strong {
    font-size: 1.55rem;
  }

  .add-button {
    min-height: 38px;
    margin-top: 7px;
    border-radius: 14px;
    font-size: 0.83rem;
  }
}

@media (max-width: 430px) {
  .scroll-scene {
    min-height: 5000px;
  }

  .feature-copy,
  .estate-copy {
    top: 66px;
    width: 92vw;
  }

  .feature-copy {
    top: 104px;
  }

  .feature-icons {
    width: 100%;
  }

  .foreground-bottle {
    width: 292vw;
    --x: -67%;
  }

  .estate-object {
    width: 158vw;
    --x: -64%;
  }

  .estate-copy {
    top: 78px;
  }

  .food-object {
    width: 224vw;
    --x: -63%;
  }

  .checkout-scene {
    width: 94vw;
    grid-template-rows: minmax(402px, 50svh) auto;
    gap: 8px;
    padding-top: 10px;
  }

  .purchase-card {
    padding: 12px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-scene {
    height: auto;
    min-height: 100svh;
  }

  .stage {
    position: relative;
    min-height: 100svh;
  }
}
