:root {
  color-scheme: dark;
  --logo-size: min(54vw, 48svh, 404px);
  --logo-y: calc((100svh - var(--logo-size)) / 2);
  --logo-scale: 1;
  --header-height: 88px;
  --header-opacity: 0;
  --cue-opacity: 1;
  --cue-offset: 0px;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

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

html {
  scrollbar-width: none;
  scroll-behavior: auto;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  background: #000;
}

main {
  overflow-anchor: none;
}

body::selection {
  color: #000;
  background: #fff;
}

.site-header {
  position: fixed;
  z-index: 2;
  inset: 0 0 auto;
  height: var(--header-height);
  background: rgb(0 0 0 / var(--header-opacity));
  pointer-events: none;
}

.brand-mark {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 50%;
  display: block;
  width: var(--logo-size);
  aspect-ratio: 1;
  color: inherit;
  transform: translate3d(-50%, var(--logo-y), 0) scale(var(--logo-scale));
  transform-origin: 50% 0;
  pointer-events: none;
}

.brand-mark__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.reveal-stroke {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-stroke var(--draw-duration) var(--draw-delay) cubic-bezier(0.45, 0, 0.3, 1) both;
}

.reveal-stroke--frame {
  --draw-duration: 1.5s;
  --draw-delay: 0.3s;
}

.reveal-stroke--diagonal {
  --draw-duration: 0.65s;
  --draw-delay: 1.95s;
}

.reveal-stroke--horizontal {
  --draw-duration: 0.45s;
  --draw-delay: 2.7s;
}

.intro-complete .reveal-stroke {
  animation: none;
  stroke-dashoffset: 0;
}

.intro {
  height: 200svh;
}

.intro-dismissed .intro,
.intro-dismissed .scroll-cue {
  display: none;
}

.intro-dismissed .product-showcase {
  margin-top: 0;
}

.intro-dismissed .product-visual,
.intro-dismissed .product-caption {
  opacity: 1;
}

.intro-dismissed .product-visual {
  transform: none;
}

.product-showcase {
  --product-opacity: 0;
  --product-rise: 36px;
  --rotation-progress: 0;
  position: relative;
  height: 400svh;
  margin-top: -100svh;
}

.product-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.product-visual {
  position: absolute;
  inset: 0;
  opacity: var(--product-opacity);
  transform: translateY(var(--product-rise));
  pointer-events: none;
}

.product-canvas,
.product-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.product-poster {
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(100vw, 65svh);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 1;
  transform: translate(-50%, -50%);
}

.product-showcase.is-static {
  height: 180svh;
}

.product-canvas {
  opacity: 0;
}

.model-ready .product-canvas {
  opacity: 1;
}

.model-ready .product-poster {
  opacity: 0;
}

.product-caption {
  position: absolute;
  inset: auto clamp(24px, 4vw, 64px) max(32px, env(safe-area-inset-bottom)) clamp(24px, 4vw, 64px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  opacity: var(--product-opacity);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-transform: uppercase;
  pointer-events: none;
}

.product-caption__name,
.product-caption__rotation {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-caption__name span + span,
.rotation-hint {
  color: #858585;
  font-size: 8px;
}

.product-caption__rotation {
  min-width: 112px;
  align-items: flex-end;
}

.rotation-track {
  display: block;
  width: 112px;
  height: 1px;
  margin: 3px 0;
  background: #303030;
}

.rotation-track span {
  display: block;
  height: 1px;
  background: #fff;
  transform: scaleX(var(--rotation-progress));
  transform-origin: left;
}

.model-fallback .rotation-track,
.model-fallback .rotation-hint {
  display: none;
}

.scroll-cue {
  position: fixed;
  z-index: 4;
  bottom: max(32px, calc(env(safe-area-inset-bottom, 0px) + 20px));
  left: 50%;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  opacity: var(--cue-opacity);
  transform: translate3d(-50%, var(--cue-offset), 0);
  -webkit-tap-highlight-color: transparent;
}

.scroll-cue:disabled {
  visibility: hidden;
  pointer-events: none;
}

.scroll-cue__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.intro-ready .scroll-cue__inner {
  opacity: 1;
  transform: translateY(0);
}

.scroll-cue__label {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.26em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.scroll-cue__arrow {
  display: block;
}

.intro-ready .scroll-cue__arrow {
  animation: arrow-drift 1.9s ease-in-out infinite;
}

.scroll-cue:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 12px;
}

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

@keyframes draw-stroke {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes arrow-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 600px) {
  :root {
    --header-height: 76px;
    --logo-size: min(60vw, 42svh, 404px);
  }

  .scroll-cue {
    bottom: max(27px, calc(env(safe-area-inset-bottom, 0px) + 18px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-stroke {
    animation: none;
    stroke-dashoffset: 0;
  }

  .scroll-cue__inner {
    transition: none;
  }

  .intro-ready .scroll-cue__arrow {
    animation: none;
  }

  .product-visual {
    transform: none;
  }

  .product-showcase {
    height: 180svh;
  }

  .rotation-hint,
  .rotation-track {
    display: none;
  }
}
