
:root {
  --obsidian: #020203;
  --black-glass: #070708;
  --midnight: #11132f;
  --agave: #1d8b82;
  --amber: #c98a43;
  --gold: #d8b56c;
  --ivory: #f3ead8;
  --muted: #9d978c;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: var(--obsidian);
}

body {
  margin: 0;
  color: var(--ivory);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

.teaser {
  isolation: isolate;
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(19, 23, 60, 0.18), transparent 38%),
    linear-gradient(180deg, #030304 0%, #010102 74%, #050505 100%);
}

.teaser::before {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  content: "";
  box-shadow:
    inset 0 0 12vw rgba(0, 0, 0, 0.94),
    inset 0 -12vh 20vh rgba(0, 0, 0, 0.72);
}

.grain {
  position: absolute;
  inset: -50%;
  z-index: 7;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    repeating-radial-gradient(
      circle at 34% 29%,
      rgba(255, 255, 255, 0.11) 0 0.6px,
      transparent 0.8px 3.1px
    );
  background-size: 8px 8px;
  mix-blend-mode: soft-light;
  animation: grainShift 0.55s steps(2, end) infinite;
}

.masthead {
  position: absolute;
  top: clamp(24px, 4.3vh, 52px);
  right: clamp(24px, 4.8vw, 76px);
  left: clamp(24px, 4.8vw, 76px);
  z-index: 12;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  opacity: 0;
  animation: textEnter 1.2s 0.25s ease-out forwards;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-transform: uppercase;
}

.brand-kicker {
  color: var(--gold);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  transform: translateX(0.15em);
}

.brand-name {
  font-family: Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  letter-spacing: 0.065em;
  line-height: 1;
}

.origin {
  display: flex;
  align-items: center;
  margin: 4px 0 0;
  color: rgba(243, 234, 216, 0.58);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  min-height: 100dvh;
  place-items: center;
}

.atmosphere,
.product {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.atmosphere {
  z-index: 1;
}

.rear-glow {
  position: absolute;
  top: 45.5%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.rear-glow-wide {
  width: min(88vw, 1040px);
  height: min(65vw, 760px);
  opacity: 0.4;
  background:
    radial-gradient(
      ellipse,
      rgba(42, 51, 144, 0.56) 0%,
      rgba(18, 28, 92, 0.31) 29%,
      rgba(3, 4, 13, 0) 72%
    );
  filter: blur(24px);
  animation: rearPulse 9s ease-in-out infinite;
}

.rear-glow-core {
  width: min(52vw, 610px);
  height: min(48vw, 560px);
  opacity: 0.62;
  background:
    radial-gradient(
      ellipse,
      rgba(70, 76, 201, 0.44) 0%,
      rgba(26, 31, 99, 0.32) 36%,
      rgba(4, 5, 13, 0) 71%
    );
  filter: blur(13px);
  animation: corePulse 9s ease-in-out infinite;
}

.product {
  z-index: 3;
  display: grid;
  place-items: center;
}

.bottle-frame {
  position: relative;
  width: min(60vw, 760px);
  aspect-ratio: 1;
  transform: translateY(-1.2vh);
  opacity: 0;
  animation: bottleEnter 1.8s 0.15s cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
}

.bottle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.bottle-silhouette {
  z-index: 2;
  opacity: 0.98;
  filter:
    brightness(0.075)
    saturate(0.52)
    contrast(1.48)
    drop-shadow(0 28px 32px rgba(0, 0, 0, 0.9));
}

.bottle-aura {
  z-index: 1;
  opacity: 0.78;
  filter:
    brightness(0)
    drop-shadow(0 -5px 7px rgba(93, 98, 224, 0.8))
    drop-shadow(0 -9px 20px rgba(52, 63, 199, 0.5))
    drop-shadow(0 0 42px rgba(34, 45, 157, 0.42));
  animation: bottleAura 9s ease-in-out infinite;
  will-change: opacity, filter;
}

.front-light {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.94;
  -webkit-mask-image:
    radial-gradient(
      ellipse 32% 21% at 50% 54%,
      #000 0%,
      rgba(0, 0, 0, 0.96) 31%,
      rgba(0, 0, 0, 0.48) 55%,
      transparent 78%
    );
  mask-image:
    radial-gradient(
      ellipse 32% 21% at 50% 54%,
      #000 0%,
      rgba(0, 0, 0, 0.96) 31%,
      rgba(0, 0, 0, 0.48) 55%,
      transparent 78%
    );
  animation: frontLight 9s ease-in-out infinite;
  will-change: opacity, filter;
}

.bottle-revealed {
  filter:
    brightness(1.48)
    saturate(1.22)
    contrast(1.08)
    drop-shadow(0 0 21px rgba(198, 134, 56, 0.12));
}

.label-gleam {
  position: absolute;
  z-index: 4;
  top: 43.5%;
  left: 50%;
  width: 39%;
  height: 21%;
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0.25;
  background:
    radial-gradient(
      ellipse,
      rgba(255, 231, 180, 0.27) 0%,
      rgba(213, 162, 91, 0.09) 46%,
      transparent 72%
    );
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: gleamPulse 9s ease-in-out infinite;
}

.announcement {
  position: absolute;
  right: 20px;
  bottom: clamp(68px, 8.7vh, 96px);
  left: 20px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

.edition {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: clamp(0.54rem, 0.7vw, 0.66rem);
  font-weight: 600;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  opacity: 0;
  animation: textEnter 1.1s 1s ease-out forwards;
}

.announcement h1 {
  margin: 0;
  color: rgba(247, 240, 226, 0.94);
  font-size: clamp(1.65rem, 3.8vw, 3.55rem);
  font-weight: 450;
  letter-spacing: clamp(0.26em, 1.15vw, 0.48em);
  line-height: 1;
  text-indent: clamp(0.26em, 1.15vw, 0.48em);
  text-transform: uppercase;
  text-shadow: 0 0 32px rgba(255, 241, 214, 0.08);
  opacity: 0;
  animation: titleEnter 1.55s 0.72s cubic-bezier(0.19, 0.72, 0.22, 1) forwards;
}

.promise {
  margin: 12px 0 0;
  color: rgba(243, 234, 216, 0.54);
  font-family: Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  font-style: italic;
  letter-spacing: 0.07em;
  opacity: 0;
  animation: textEnter 1.2s 1.25s ease-out forwards;
}

.footer {
  position: absolute;
  right: clamp(24px, 4.8vw, 76px);
  bottom: clamp(20px, 3.2vh, 34px);
  left: clamp(24px, 4.8vw, 76px);
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  color: rgba(243, 234, 216, 0.31);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  animation: textEnter 1.2s 1.5s ease-out forwards;
}

.footer > span:first-child {
  justify-self: start;
}

.footer > span:last-child {
  justify-self: end;
  text-align: right;
}

.footer-line {
  justify-self: center;
  width: 48px;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(216, 181, 108, 0.5) 50%,
      transparent 100%
    );
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rearPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.92);
  }
  45% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.08);
  }
  72% {
    opacity: 0.53;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes corePulse {
  0%,
  100% {
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(0.9);
  }
  45% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1.06);
  }
  72% {
    opacity: 0.46;
    transform: translate(-50%, -50%) scale(0.97);
  }
}

@keyframes bottleAura {
  0%,
  100% {
    opacity: 0.46;
    filter:
      brightness(0)
      drop-shadow(0 -3px 5px rgba(93, 98, 224, 0.5))
      drop-shadow(0 -7px 15px rgba(52, 63, 199, 0.3))
      drop-shadow(0 0 28px rgba(34, 45, 157, 0.28));
  }
  45% {
    opacity: 1;
    filter:
      brightness(0)
      drop-shadow(0 -6px 9px rgba(108, 113, 242, 0.94))
      drop-shadow(0 -12px 28px rgba(62, 74, 224, 0.68))
      drop-shadow(0 0 54px rgba(41, 55, 190, 0.55));
  }
  72% {
    opacity: 0.68;
  }
}

@keyframes frontLight {
  0%,
  100% {
    opacity: 0.94;
    filter: blur(0);
  }
  45% {
    opacity: 0.23;
    filter: blur(1.5px);
  }
  72% {
    opacity: 0.7;
    filter: blur(0);
  }
}

@keyframes gleamPulse {
  0%,
  100% {
    opacity: 0.38;
    transform: translateX(-50%) scale(1);
  }
  45% {
    opacity: 0.04;
    transform: translateX(-50%) scale(0.86);
  }
  72% {
    opacity: 0.22;
    transform: translateX(-50%) scale(0.95);
  }
}

@keyframes bottleEnter {
  from {
    opacity: 0;
    transform: translateY(2vh) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(-1.2vh) scale(1);
  }
}

@keyframes bottleEnterMobile {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(1vh) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-2.5vh) scale(1);
  }
}

@keyframes titleEnter {
  from {
    opacity: 0;
    letter-spacing: 0.7em;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textEnter {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grainShift {
  0% {
    transform: translate3d(-2%, -1%, 0);
  }
  50% {
    transform: translate3d(1%, 2%, 0);
  }
  100% {
    transform: translate3d(2%, -2%, 0);
  }
}

@media (max-width: 700px) {
  .masthead {
    top: 22px;
    right: 22px;
    left: 22px;
  }

  .origin {
    font-size: 0.5rem;
    letter-spacing: 0.18em;
  }

  .bottle-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(455px, 132vw, 535px);
    transform: translate(-50%, -50%) translateY(-2.5vh);
    animation-name: bottleEnterMobile;
  }

  .rear-glow-wide {
    top: 45%;
    width: 142vw;
    height: 112vw;
  }

  .rear-glow-core {
    top: 44%;
    width: 98vw;
    height: 98vw;
  }

  .announcement {
    bottom: clamp(66px, 9vh, 86px);
  }

  .edition {
    letter-spacing: 0.32em;
  }

  .announcement h1 {
    max-width: 100%;
    font-size: clamp(1.35rem, 6.1vw, 2rem);
    letter-spacing: 0.24em;
    text-indent: 0.24em;
  }

  .promise {
    margin-top: 9px;
    font-size: 0.78rem;
  }

  .footer {
    right: 22px;
    bottom: 21px;
    left: 22px;
    display: block;
    height: 1em;
    font-size: 0.43rem;
    letter-spacing: 0.19em;
  }

  .footer > span:first-child,
  .footer > span:last-child {
    position: absolute;
    top: 50%;
    white-space: nowrap;
    transform: translateY(-50%);
  }

  .footer > span:first-child {
    left: clamp(30px, 10vw, 40px);
  }

  .footer > span:last-child {
    right: 0;
    text-align: right;
  }

  .footer-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 420px) {
  .brand-kicker {
    font-size: 0.46rem;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .footer-line {
    width: 24px;
  }
}

@media (max-height: 690px) {
  .bottle-frame {
    width: min(55vw, 620px);
  }

  .announcement {
    bottom: 59px;
  }

  .edition {
    margin-bottom: 7px;
  }

  .promise {
    margin-top: 8px;
  }
}

@media (max-width: 700px) and (max-height: 690px) {
  .bottle-frame {
    width: clamp(390px, 114vw, 470px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}
