:root {
  color-scheme: dark;
  background: #000;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  background: #000;
  scrollbar-color: #5c4825 #000;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #000;
}

.js:not(.is-ready) body {
  overflow: hidden;
}

#soundtrack {
  display: none;
}

.sound-control {
  position: fixed;
  z-index: 30;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid rgba(196, 154, 69, 0.58);
  border-radius: 999px;
  background: rgba(3, 3, 3, 0.82);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
  color: #dfc787;
  cursor: pointer;
  font: 500 9px/1 "Helvetica Neue", Helvetica, sans-serif;
  letter-spacing: 0.18em;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.sound-control:hover {
  border-color: rgba(226, 191, 111, 0.9);
  background: rgba(13, 10, 5, 0.9);
  color: #f4ead2;
}

.sound-control:focus-visible {
  outline: 2px solid #f4ead2;
  outline-offset: 4px;
}

.sound-control:disabled {
  cursor: wait;
  opacity: 0.55;
}

.sound-control[aria-pressed="true"] {
  border-color: rgba(226, 191, 111, 0.82);
  color: #f4ead2;
}

.sound-glyph {
  display: inline-flex;
  width: 15px;
  height: 16px;
  align-items: center;
  justify-content: space-between;
}

.sound-glyph i {
  width: 1px;
  height: 4px;
  background: currentColor;
  transform-origin: center;
}

.sound-control.is-playing .sound-glyph i {
  animation: sound-pulse 840ms ease-in-out infinite alternate;
}

.sound-control.is-playing .sound-glyph i:nth-child(2) {
  animation-delay: -520ms;
}

.sound-control.is-playing .sound-glyph i:nth-child(3) {
  animation-delay: -220ms;
}

.sound-control.is-playing .sound-glyph i:nth-child(4) {
  animation-delay: -680ms;
}

@keyframes sound-pulse {
  from { transform: scaleY(0.7); }
  to { transform: scaleY(3.6); }
}

.preloader {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020202;
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1), visibility 520ms;
}

.is-ready .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  position: relative;
  z-index: 3;
  width: clamp(230px, 36vw, 590px);
  height: auto;
}

.loader-ring {
  position: absolute;
  width: min(62vw, 820px);
  aspect-ratio: 1;
  border: 1px solid rgba(190, 143, 52, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(190, 143, 52, 0.045),
    0 0 0 92px rgba(190, 143, 52, 0.025);
  animation: loader-ring-turn 9s linear infinite;
}

.loader-ring::before,
.loader-ring::after {
  position: absolute;
  inset: 13%;
  content: "";
  border: 1px dashed rgba(190, 143, 52, 0.2);
  border-radius: inherit;
}

.loader-ring::after {
  inset: 28%;
  border-style: solid;
  border-color: rgba(190, 143, 52, 0.14);
}

.loader-brush {
  position: absolute;
  width: 42vw;
  height: 2px;
  background: #7d1718;
  box-shadow: 0 -4px 0 rgba(125, 23, 24, 0.28), 0 5px 0 rgba(125, 23, 24, 0.18);
  transform: rotate(-13deg);
}

.loader-brush-one {
  right: -8vw;
  bottom: 22%;
}

.loader-brush-two {
  top: 22%;
  left: -13vw;
  transform: rotate(19deg);
}

.loader-status {
  position: absolute;
  right: max(34px, 5vw);
  bottom: max(30px, 5vh);
  left: max(34px, 5vw);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px 24px;
  color: #d6bd84;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.loader-status strong {
  color: #f4ead2;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.8;
}

.loader-track {
  grid-column: 1 / -1;
  height: 1px;
  overflow: hidden;
  background: rgba(214, 189, 132, 0.18);
}

.loader-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: #c49a45;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 100ms linear;
}

@keyframes loader-ring-turn {
  to { transform: rotate(360deg); }
}

.journey {
  position: relative;
  height: 400vh;
  height: 400svh;
  background: #000;
}

.viewport {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.desktop-story,
.desktop-static,
.mobile-story,
.mobile-static {
  position: absolute;
  inset: 0;
}

.mobile-story {
  display: none;
}

.desktop-static {
  display: none;
}

.story-frame,
.desktop-clip,
.mobile-clip,
.mobile-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  object-fit: cover;
  object-position: center;
  background: #000;
  visibility: hidden;
}

.story-frame.is-active,
.desktop-clip.is-active,
.mobile-clip.is-active,
.mobile-frame.is-active {
  opacity: 1;
  visibility: visible;
}

.desktop-clip,
.mobile-clip {
  pointer-events: none;
}

.mobile-static {
  display: none;
}

/* Preserve the complete cinematic frame on tall desktop and laptop windows.
   Cropping a 16:9 clip with cover can leave only the central product visible. */
@media (min-width: 768px) and (max-aspect-ratio: 16 / 9) {
  .story-frame,
  .desktop-clip {
    object-fit: contain;
  }
}

.site-footer {
  display: grid;
  place-items: center;
  gap: 18px;
  min-height: 260px;
  padding: 64px max(24px, 6vw);
  border-top: 1px solid rgba(196, 154, 69, 0.28);
  background: #020202;
  color: #d9c28f;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #f4ead2;
  text-decoration-color: rgba(196, 154, 69, 0.7);
  text-underline-offset: 5px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #c49a45;
}

@media (max-width: 767px) {
  .journey {
    height: 520vh;
    height: 520svh;
  }

  .desktop-story {
    display: none;
  }

  .mobile-story {
    display: block;
  }

  .mobile-clip,
  .mobile-frame {
    object-fit: cover;
    object-position: center;
  }

  .site-footer {
    min-height: 220px;
    padding-right: max(24px, env(safe-area-inset-right));
    padding-bottom: max(44px, env(safe-area-inset-bottom));
    padding-left: max(24px, env(safe-area-inset-left));
    font-size: 10px;
    line-height: 1.7;
  }

  .loader-logo {
    width: min(68vw, 360px);
  }

  .loader-ring {
    width: min(116vw, 620px);
  }

  .loader-status {
    right: max(24px, env(safe-area-inset-right));
    bottom: max(28px, env(safe-area-inset-bottom));
    left: max(24px, env(safe-area-inset-left));
  }

  .sound-control {
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    width: 44px;
    padding: 0;
    background: rgba(3, 3, 3, 0.76);
  }

  .sound-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey {
    height: 300vh;
    height: 300svh;
  }

  .loader-ring {
    animation: none;
  }

  .sound-control.is-playing .sound-glyph i {
    animation: none;
  }

  @media (min-width: 768px) {
    .desktop-clip {
      display: none;
    }

    .desktop-static {
      display: block;
    }
  }

  @media (max-width: 767px) {
    .mobile-clip {
      display: none;
    }

    .mobile-static {
      display: block;
    }
  }
}

@media (max-width: 767px) {
  .mobile-video-fallback .mobile-clip {
    display: none;
  }

  .mobile-video-fallback .mobile-static {
    display: block;
  }
}

@media (min-width: 768px) {
  .desktop-video-fallback .desktop-clip {
    display: none;
  }

  .desktop-video-fallback .desktop-static {
    display: block;
  }
}
