:root {
  --linen: #eedcc2;
  --espresso: #2e1b0e;
  --leather: #6b3f1f;
  --leather-soft: rgba(74, 44, 22, 0.72);
  --gold: #b48a3e;
  --gold-light: #d9b56a;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--linen);
  color: var(--espresso);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

p,
h1 {
  margin: 0;
}

/* Backdrop */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--linen);
}

.backdrop__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  opacity: 0;
  animation:
    fade-in 1.8s var(--ease-out) forwards,
    breeze 16s ease-in-out infinite alternate;
}

.backdrop__light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(255, 246, 228, 0.55) 0%, rgba(255, 246, 228, 0) 70%),
    radial-gradient(ellipse 130% 110% at 50% 45%, transparent 55%, rgba(120, 82, 44, 0.22) 100%);
}

/* Layout */

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1.25rem, 5vw, 3rem) 1rem;
}

/* Bag tag */

.tag {
  width: clamp(260px, min(86vw, 64svh), 620px);
  line-height: 0;
  opacity: 0;
  animation: drop-in 1.8s var(--ease-out) 0.25s forwards;
}

.tag__image {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 90% 1%;
  filter:
    drop-shadow(0 4px 6px rgba(46, 27, 14, 0.25))
    drop-shadow(0 28px 34px rgba(70, 40, 16, 0.32));
  animation: swing 7s ease-in-out 2s infinite alternate;
}

/* Copy */

.copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.copy > * {
  opacity: 0;
  animation: rise 1.4s var(--ease-out) forwards;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: clamp(1.5rem, 4vh, 2.5rem) 0 clamp(1.1rem, 2.6vh, 1.6rem);
  animation-delay: 1s;
}

.divider__line {
  display: block;
  width: clamp(44px, 10vw, 96px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.divider__line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.divider__gem {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.eyebrow {
  font-weight: 600;
  font-size: clamp(0.72rem, 0.6vw + 0.5rem, 0.86rem);
  letter-spacing: 0.58em;
  margin-right: -0.58em; /* offsets trailing letter-spacing so the text stays optically centered */
  text-transform: uppercase;
  color: var(--leather);
  animation-delay: 1.2s;
}

.headline {
  margin-top: clamp(0.9rem, 2.2vh, 1.3rem);
  max-width: 18ch;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.85rem, 2.4vw + 1rem, 3.1rem);
  line-height: 1.1;
  color: var(--espresso);
  text-wrap: balance;
  animation-delay: 1.4s;
}

.subline {
  margin-top: clamp(0.75rem, 1.8vh, 1.1rem);
  font-weight: 400;
  font-size: clamp(0.84rem, 0.35vw + 0.74rem, 0.98rem);
  letter-spacing: 0.06em;
  color: var(--leather-soft);
  text-wrap: balance;
  animation-delay: 1.6s;
}

.footer {
  padding: 1.25rem 1.25rem calc(1.4rem + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(74, 44, 22, 0.55);
  opacity: 0;
  animation: fade-in 1.4s var(--ease-out) 2s forwards;
}

/* Animations */

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-28px) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes swing {
  from { transform: rotate(-1.1deg); }
  to { transform: rotate(1.1deg); }
}

@keyframes breeze {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.09) translate3d(-1.2%, 0.8%, 0); }
}

/* Responsive */

@media (max-width: 480px) {
  .eyebrow {
    letter-spacing: 0.46em;
    margin-right: -0.46em;
  }

  .footer {
    letter-spacing: 0.22em;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .stage {
    flex-direction: row;
    gap: clamp(1.5rem, 5vw, 3.5rem);
    padding-top: 1rem;
    padding-bottom: 0;
  }

  .tag {
    width: min(46vw, 120svh);
  }

  .divider {
    margin-top: 0;
  }

  .headline {
    font-size: clamp(1.5rem, 2vw + 0.8rem, 2.2rem);
  }

  .footer {
    padding-top: 0.5rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop__image,
  .tag,
  .tag__image,
  .copy > *,
  .footer {
    animation: none;
    opacity: 1;
  }
}
