:root {
  color-scheme: light;
  --paper: #fffdf9;
  --orange: #ef4f17;
  --green: #74a93d;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.98), rgba(255,255,255,0) 34%),
    radial-gradient(circle at 82% 72%, rgba(239,79,23,.035), rgba(255,255,255,0) 30%),
    var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1400px;
}

.parallax {
  position: relative;
  width: min(100vw, calc(100dvh * 1.776833));
  aspect-ratio: 1672 / 941;
  overflow: visible;
  touch-action: none;
  user-select: none;
}

.parallax__canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: clamp(0px, 1.1vw, 18px);
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(54, 42, 26, .11);
  transform-style: preserve-3d;
  will-change: transform;
}

.parallax__background,
.parallax__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.parallax__background {
  z-index: 0;
}

.parallax__layer {
  z-index: 2;
}

.parallax__logo-trigger {
  pointer-events: auto;
  cursor: pointer;
  outline: none;
}

.parallax__logo-trigger:focus-visible {
  filter: drop-shadow(0 0 10px rgba(239, 79, 23, .7));
}

.countdown {
  position: absolute;
  z-index: 4;
  left: 49%;
  top: 71.3%;
  width: 33.5%;
  height: 24.1%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ef4f17;
  text-align: center;
  filter: drop-shadow(0 .25vw .4vw rgba(102, 62, 31, .12));
}

.countdown__title {
  margin-bottom: 2.2%;
  font-size: clamp(8px, 1.28vw, 24px);
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.countdown__digits {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  gap: 1.1%;
}

.countdown__unit {
  display: grid;
  min-width: 19%;
  gap: 3%;
}

.countdown__unit strong {
  display: grid;
  place-items: center;
  aspect-ratio: 1.28;
  border: max(1px, .12vw) solid rgba(239, 79, 23, .25);
  border-radius: 18%;
  background: linear-gradient(145deg, #fff 5%, #fff6ec 100%);
  box-shadow:
    inset 0 0 0 max(1px, .1vw) rgba(255, 255, 255, .9),
    0 .35vw 1vw rgba(198, 72, 22, .14);
  font-size: clamp(11px, 2.15vw, 39px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown__unit small {
  color: #6f9f3b;
  font-size: clamp(5px, .61vw, 12px);
  font-weight: 850;
  line-height: 1;
}

.countdown__digits > i {
  padding-top: 5.5%;
  font-size: clamp(9px, 1.55vw, 29px);
  font-style: normal;
  font-weight: 950;
}

.countdown.is-finished .countdown__digits {
  display: none;
}

.countdown.is-finished .countdown__title {
  margin: 0;
  font-size: clamp(13px, 2.2vw, 40px);
}

.parallax__shine {
  position: absolute;
  inset: -35%;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.24), rgba(255,255,255,0) 48%);
  opacity: .55;
  transform: translate3d(-20%, -20%, 0);
  mix-blend-mode: soft-light;
}

.mobile-scene {
  display: none;
}

.motion-hint,
.motion-button {
  position: fixed;
  z-index: 10;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  border: 1px solid rgba(50, 70, 43, .14);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  color: #52674a;
  box-shadow: 0 8px 24px rgba(40, 35, 25, .09);
  backdrop-filter: blur(10px);
}

.motion-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 750;
  transition: opacity .5s ease;
}

.motion-hint.is-hidden {
  opacity: 0;
}

.motion-hint svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.motion-button {
  padding: 9px 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.secret-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear .45s, opacity .45s ease;
}

.secret-modal.is-visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.secret-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 45, 25, .38);
  backdrop-filter: blur(6px);
}

.secret-modal__dialog {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  padding: 38px 34px 32px;
  overflow: hidden;
  border: 2px solid rgba(239, 79, 23, .22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(116, 169, 61, .15), transparent 38%),
    #fffdf9;
  box-shadow: 0 28px 80px rgba(37, 48, 30, .27);
  color: #263d21;
  text-align: center;
  transform: translateY(26px) scale(.92);
  transition: transform .55s cubic-bezier(.2, .9, .25, 1.15);
}

.secret-modal.is-visible .secret-modal__dialog {
  transform: translateY(0) scale(1);
}

.secret-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(116, 169, 61, .1);
  color: #527b31;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.secret-modal__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #ef4f17;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.secret-modal h2 {
  margin: 0;
  color: #ef4f17;
  font-size: clamp(30px, 6vw, 43px);
  line-height: .98;
}

.secret-modal p {
  margin: 18px auto 24px;
  max-width: 330px;
  color: #607057;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.secret-modal__join {
  display: inline-flex;
  min-width: 190px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 15px;
  background: linear-gradient(135deg, #25d366, #128c4a);
  box-shadow: 0 12px 28px rgba(18, 140, 74, .25);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.secret-modal__join:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(18, 140, 74, .31);
}

.secret-modal__join svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-aspect-ratio: 4 / 5) {
  .parallax {
    width: 100vw;
    height: 100dvh;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .parallax__canvas {
    display: none;
  }

  .mobile-scene {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    background: var(--paper);
  }

  .mobile-scene__background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
  }

  .mobile-scene__layer {
    position: absolute;
    z-index: 2;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    will-change: transform;
  }

  .mobile-scene__layer.parallax__logo-trigger {
    pointer-events: auto;
  }

  .mobile-scene__headline {
    left: 9.4%;
    top: 2.2%;
    width: 81.1%;
  }

  .mobile-scene__logo {
    left: 26.5%;
    top: 34.4%;
    width: 47%;
  }

  .mobile-scene__woman {
    left: 0;
    bottom: 0;
    width: 70%;
  }

  .mobile-scene__produce {
    right: 0;
    bottom: 0;
    width: 43.9%;
  }

  .countdown--mobile {
    left: 14%;
    top: 21.5%;
    width: 72%;
    height: 12.5%;
  }

  .countdown--mobile .countdown__title {
    font-size: clamp(13px, 4vw, 24px);
  }

  .countdown--mobile .countdown__unit strong {
    font-size: clamp(20px, 7.2vw, 40px);
  }

  .countdown--mobile .countdown__unit small {
    font-size: clamp(7px, 2.1vw, 12px);
  }

  .countdown--mobile .countdown__digits > i {
    font-size: clamp(15px, 5vw, 28px);
  }

  .motion-hint {
    display: none;
  }

  .secret-modal__dialog {
    padding: 34px 24px 27px;
    border-radius: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-hint,
  .motion-button {
    display: none !important;
  }

  .parallax__canvas,
  .parallax__layer,
  .mobile-scene__layer,
  .parallax__shine {
    transform: none !important;
  }
}
