@import url('../fonts/fonts.css');

* { box-sizing: border-box; }
body {
  margin: 0;
  overflow: hidden;
  background: #d1d2d8;
}
canvas { display: block; }
@media (pointer: coarse) {
  canvas {
    touch-action: none;
  }
}
.ui-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-synthesis: none;
}
.ui-overlay a {
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
@keyframes ui-reveal {
  from {
    opacity: 0;
    visibility: hidden;
  }
  to {
    opacity: 1;
    visibility: visible;
  }
}
@keyframes gallery-stack-rise {
  from {
    transform: translateY(100vh);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes cta-slide-in {
  from {
    visibility: hidden;
    transform: translateX(-50%) translateY(calc(100% + 24px));
  }
  to {
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes nav-drop-in {
  from {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes tagline-nav-shift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(40px);
  }
}
.buy-bar {
  position: absolute;
  left: 50%;
  bottom: clamp(6px, 6vw, 16px);
  width: min(640px, calc(100vw - 48px));
  display: flex;
  align-items: stretch;
  justify-content: center;
  pointer-events: auto;
  visibility: hidden;
  transform: translateX(-50%) translateY(calc(100% + 24px));
  animation: cta-slide-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 2s;
}
.cta-buy {
  margin: 0;
  padding: 21px 32px;
  border: 3px solid #151942;
  border-radius: 999px;
  font-family: 'Kippen', system-ui, sans-serif;
  font-size: 27px;
  font-weight: normal;
  color: #151942;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
  min-height: 88px;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 500px;
  flex: 0 0 auto;
  background: #fff;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cta-buy-label {
  transform: translateY(-1px);
}
.cta-buy-price {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(calc(-50% - 1px));
  color: #656b96;
}
.cta-buy:hover .cta-buy-price {
  color: inherit;
}
.cta-buy:hover {
  transform: scale(1.06);
  background: #151942;
  border-color: #151942;
  color: #fff;
}
.shipping-modal,
.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: auto;
}
.shipping-modal[hidden],
.newsletter-modal[hidden] {
  display: none;
}
body.shipping-modal-open,
body.newsletter-modal-open {
  overflow: hidden;
}
.shipping-modal-backdrop,
.newsletter-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(21, 25, 66, 0.45);
  cursor: pointer;
  opacity: 0;
}
.shipping-modal:not([hidden]) .shipping-modal-backdrop,
.newsletter-modal:not([hidden]) .newsletter-modal-backdrop {
  animation: modal-backdrop-in 0.22s ease forwards;
}
.shipping-modal-panel,
.newsletter-modal-panel {
  position: relative;
  width: min(440px, calc(100vw - 48px));
  background: #d1d2d8;
  border: 3px solid #151942;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(21, 25, 66, 0.2);
  transform: translateY(100vh);
}
.shipping-modal-panel {
  padding: 28px 24px 37px;
}
.newsletter-modal-panel {
  padding: 28px 24px 24px;
}
.shipping-modal:not([hidden]) .shipping-modal-panel,
.newsletter-modal:not([hidden]) .newsletter-modal-panel {
  animation: modal-panel-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-panel-in {
  from { transform: translateY(100vh); }
  to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .shipping-modal:not([hidden]) .shipping-modal-backdrop,
  .shipping-modal:not([hidden]) .shipping-modal-panel,
  .newsletter-modal:not([hidden]) .newsletter-modal-backdrop,
  .newsletter-modal:not([hidden]) .newsletter-modal-panel {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.shipping-modal-title,
.newsletter-modal-title {
  margin: 0 0 20px;
  font-family: 'Kippen', system-ui, sans-serif;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.35;
  color: #151942;
  text-align: center;
}
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 18px 28px;
  border: 3px solid #151942;
  border-radius: 999px;
  background: #fff;
  font-family: 'Kippen', system-ui, sans-serif;
  font-size: 22px;
  font-weight: normal;
  color: #151942;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.shipping-option:hover {
  transform: scale(1.02);
  background: #151942;
  color: #fff;
}
.shipping-option-price {
  flex: 0 0 auto;
  opacity: 0.85;
}
.notify-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.notify-email,
.cta-notify {
  margin: 0;
  padding: 21px 26px;
  border: 3px solid #151942;
  border-radius: 999px;
  font-family: 'Kippen', system-ui, sans-serif;
  font-size: 24px;
  font-weight: normal;
  color: #151942;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
  min-height: 72px;
  -webkit-appearance: none;
  appearance: none;
}
.notify-email {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  background: transparent;
}
.notify-email::placeholder {
  color: #656b96;
  opacity: 1;
}
.notify-email:focus {
  outline: none;
}
.cta-notify {
  flex: 1 1 auto;
  width: 100%;
  background: #fff;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cta-notify:hover {
  transform: scale(1.04);
  background: #151942;
  border-color: #151942;
  color: #fff;
}
.cta-notify:disabled {
  cursor: default;
  transform: none;
}
.tagline {
  position: absolute;
  top: clamp(15px, 4vw, 12px);
  left: clamp(20px, 4vw, 20px);
  margin: 0;
  max-width: min(480px, calc(100vw - 48px));
  font-family: 'Kippen', system-ui, sans-serif;
  font-size: 16px;
  color: #151942;
  line-height: 1.35;
  visibility: hidden;
  opacity: 0;
  animation: ui-reveal 0.5s ease forwards;
  animation-delay: 3s;
}
.tagline a {
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.tagline a:hover {
  color: #0059E7;
}
.tagline-release {
  display: block;
  color: #0059E7;
}
.tagline-mobile-break {
  display: none;
}
.tagline-mark {
  color: var(--muted);
  display: none;
}
.nav-links {
  position: absolute;
  top: clamp(15px, 4vw, 12px);
  right: clamp(20px, 4vw, 20px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  pointer-events: auto;
  visibility: hidden;
  opacity: 0;
  animation: ui-reveal 0.5s ease forwards;
  animation-delay: 3s;
}
.nav-link {
  font-family: 'Kippen', system-ui, sans-serif;
  font-size: 16px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.nav-link:hover {
  color: #151942;
}
.nav-link-short {
  display: none;
}
.newsletter-trigger {
  margin: 0;
  padding: 10px 16px;
  border: 3px solid #0059E7;
  border-radius: 999px;
  background: #0059E7;
  color: #fff;
  font-family: 'Kippen', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.newsletter-trigger:hover {
  transform: scale(1.04);
  filter: brightness(1.06);
}
.product-gallery {
  --gallery-aspect: 1.5;
  --gallery-thumb-width: 148px;
  --gallery-stack-x: 7px;
  --gallery-stack-y: 9px;
  --gallery-expanded-width: min(1040px, calc(100vw - 48px));
  position: fixed;
  left: clamp(12px, 3vw, 20px);
  bottom: clamp(12px, 3vw, 20px);
  z-index: 10;
  pointer-events: none;
}
.product-gallery-scroll {
  position: relative;
  width: calc(
    var(--gallery-thumb-width) + var(--gallery-stack-x) * 4
  );
  height: calc(
    var(--gallery-thumb-width) / var(--gallery-aspect) + var(--gallery-stack-y) * 4
  );
  pointer-events: none;
  cursor: pointer;
  transform: translateY(100vh);
  animation: gallery-stack-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 3.2s both;
}
.product-gallery.is-stack-visible:not(.is-expanded) .product-gallery-scroll {
  transform: none;
  animation: none;
  pointer-events: auto;
}
.product-gallery-item {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--gallery-thumb-width);
  transform-origin: top left;
  z-index: calc(10 - var(--i, 0));
  transform:
    translate(
      calc(var(--i, 0) * var(--gallery-stack-x)),
      calc(var(--i, 0) * var(--gallery-stack-y) * -1)
    )
    rotate(calc(var(--i, 0) * -0.8deg + 1deg));
  transition: transform 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .product-gallery:not(.is-expanded):not(.is-animating) .product-gallery-scroll:hover .product-gallery-item,
  .product-gallery:not(.is-expanded):not(.is-animating) .product-gallery-scroll:focus-within .product-gallery-item {
    transform:
      translate(
        calc(var(--i, 0) * (var(--gallery-stack-x) + 2px)),
        calc(var(--i, 0) * (var(--gallery-stack-y) + 2px) * -1)
      )
      rotate(calc(var(--i, 0) * -0.8deg + 1deg))
      scale(1.03);
  }
}
.product-gallery-image {
  display: block;
  width: 100%;
  aspect-ratio: var(--gallery-aspect);
  height: auto;
  border: none;
  border-radius: 16px;
  background: transparent;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(21, 25, 66, 0.14);
}
.product-gallery.is-measuring {
  visibility: hidden;
  pointer-events: none;
}
.product-gallery.is-animating .product-gallery-scroll {
  transform: none;
  pointer-events: none;
}
.product-gallery.is-animating {
  position: fixed;
  inset: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  pointer-events: none;
}
.product-gallery.is-animating .product-gallery-backdrop {
  pointer-events: auto;
}
.product-gallery.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: auto;
}
.product-gallery.is-expanded .product-gallery-scroll {
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2.5vw, 20px);
  padding: clamp(12px, 2.5vw, 20px) clamp(16px, 4vw, 24px);
  cursor: default;
  animation: none;
  transform: none;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.product-gallery.is-expanded .product-gallery-item {
  position: relative;
  left: auto;
  bottom: auto;
  width: var(--gallery-expanded-width);
  transform: none;
  transition: none;
  pointer-events: auto;
}
.product-gallery.is-animating .product-gallery-item {
  pointer-events: none;
}
.product-gallery-backdrop {
  position: fixed;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(21, 25, 66, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-gallery-backdrop[hidden] {
  display: none;
}
.product-gallery.is-expanded .product-gallery-backdrop,
.product-gallery.is-animating .product-gallery-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.product-gallery.is-closing .product-gallery-backdrop {
  opacity: 0;
  pointer-events: none;
}
body.product-gallery-open {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .product-gallery-scroll {
    animation: none;
    transform: none;
    pointer-events: auto;
  }
  .product-gallery-item {
    transition: none;
  }
  .product-gallery.is-expanded .product-gallery-backdrop {
    transition: none;
  }
}
@media (max-width: 640px) {
  html {
    touch-action: manipulation;
  }
  .product-gallery {
    --gallery-thumb-width: 92px;
    --gallery-stack-x: 4px;
    --gallery-stack-y: 5px;
    --gallery-collapse-left: 12px;
    --gallery-peek-offset: 52px;
    --gallery-expanded-width: min(760px, calc(100vw - 24px));
  }
  .product-gallery:not(.is-expanded):not(.is-animating) {
    left: var(--gallery-collapse-left);
    bottom: clamp(100px, 21vw, 124px);
    transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  body.cards-expanded .product-gallery:not(.is-expanded):not(.is-animating) {
    left: calc(var(--gallery-collapse-left) - var(--gallery-peek-offset));
  }
  .product-gallery.is-closing:not(.is-expanded):not(.is-animating) {
    transition: none;
  }
  .product-gallery.is-expanded,
  .product-gallery.is-animating {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transition: none;
  }
  .product-gallery-image {
    border-radius: 12px;
  }
  .ui-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: clamp(10px, 3vw, 14px);
    gap: 0;
  }
  .tagline {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    order: 2;
    margin-top: 6px;
    font-size: 16px;
    text-align: center;
    max-width: calc(100vw - 32px);
    animation:
      ui-reveal 0.5s ease forwards,
      tagline-nav-shift 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 3.2s, 5s;
  }
  .tagline-mark {
    display: inline;
  }
  .tagline-release {
    display: inline;
  }
  .tagline-mobile-break {
    display: block;
    height: 0;
  }
  .nav-links {
    display: flex;
    position: absolute;
    top: clamp(10px, 3vw, 14px);
    right: clamp(8px, 3vw, 12px);
    align-self: auto;
    margin-top: 0;
    margin-right: 0;
    animation: nav-drop-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 5s;
    opacity: 0;
    gap: 16px;
  }
  .nav-link { font-size: 16px; }
  .nav-link {
    text-decoration: none;
  }
  .nav-link-long {
    display: none;
  }
  .nav-link-short {
    display: inline;
  }
  .newsletter-trigger {
    font-size: 16px;
    border-width: 2.5px;
    padding: 8px 14px;
  }
  .buy-bar {
    width: min(640px, calc(100vw - 24px));
  }
  .cta-buy {
    width: 100%;
    min-height: 72px;
    padding: 14px 20px;
    font-size: 22px;
    border-width: 2.5px;
    gap: 0.35em;
  }
  .cta-buy-price {
    position: static;
    transform: translateY(-1px);
  }
  .shipping-modal-panel,
  .newsletter-modal-panel {
    padding: 22px 18px 18px;
    border-width: 2.5px;
    border-radius: 20px;
  }
  .shipping-modal-title,
  .newsletter-modal-title {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .shipping-option {
    font-size: 18px;
    padding: 14px 18px;
    border-width: 2.5px;
  }
  .notify-form {
    flex-direction: column;
    gap: 8px;
  }
  .notify-email,
  .cta-notify {
    min-height: 58px;
    padding: 14px 20px;
    font-size: 22px;
    border-width: 2.5px;
  }
  .cta-notify {
    width: 100%;
    flex: 1 1 auto;
  }
}
