:root {
  --bg: #07080b;
  --bg-2: #101218;
  --text: #f3f4f7;
  --muted: rgba(225, 229, 238, 0.64);
  --edge: rgba(255, 255, 255, 0.09);
  --accent: #8ab4ff;
  --warm: #ff8a5c;
  --gradient: linear-gradient(110deg, #8ab4ff, #c79bff 50%, #ff8a5c);
  --case: #2a2d34;
  --strap: #1c1e23;
  --accent-live: #8ab4ff;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.45, 0.5, 1);
  --display: "Sora", system-ui, sans-serif;
  --gutter: clamp(18px, 5vw, 72px);
  color-scheme: dark;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2 {
  font-family: var(--display);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

#top-sentinel {
  position: absolute;
  top: 0;
  height: 40px;
}

/* ============ Header ============ */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  transition:
    background-color 0.4s,
    box-shadow 0.4s;
}
.scrolled .nav {
  background: rgba(7, 8, 11, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--edge);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
}
.logo svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}
.nav nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s;
}
.nav nav a:hover {
  color: var(--text);
}
.bag-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.bag-button svg {
  width: 20px;
  height: 20px;
}
.bag-count:not(:empty) {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--warm);
  color: #1b0d06;
  font-size: 0.72rem;
  font-weight: 700;
}
.bag-count.pop {
  animation: pop 0.45s var(--spring);
}

/* ============ Scroll story ============ */

.story {
  position: relative;
}
.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70vmin;
  height: 70vmin;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-live) 34%, transparent), transparent 65%);
  filter: blur(30px);
  translate: -50% -50%;
  transition:
    background 0.8s,
    translate 1.2s var(--ease);
}
/* The glow follows the watch from side to side. */
.stage[data-chapter="0"] .halo,
.stage[data-chapter="2"] .halo,
.stage[data-chapter="4"] .halo {
  translate: -8% -50%;
}
.stage[data-chapter="1"] .halo,
.stage[data-chapter="3"] .halo {
  translate: -92% -50%;
}
#watch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;
  transition: opacity 1s var(--ease);
}
#watch.grabbing {
  cursor: grabbing;
}
.has-3d #watch {
  opacity: 1;
}
.watch-fallback {
  position: absolute;
  top: 50%;
  right: 12%;
  height: 70vh;
  translate: 0 -50%;
  transition: opacity 0.6s;
}
.has-3d .watch-fallback {
  opacity: 0;
}
.watch-fallback rect,
.watch-flat rect {
  stroke: none;
}
.case {
  fill: var(--case);
  transition: fill 0.6s;
}
.strap {
  fill: var(--strap);
  transition: fill 0.6s;
}
.face {
  fill: #fff;
  stroke: none;
  font: 700 34px var(--display);
}
.drag-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  translate: -50% 0;
  transition: opacity 0.6s;
}
.has-3d .drag-hint {
  opacity: 0.7;
}

.chapters {
  position: relative;
  z-index: 2;
  margin-top: -100svh;
  pointer-events: none;
}
.chapter {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 90px var(--gutter);
}
.chapter:nth-child(even) {
  justify-content: flex-end;
}
.copy {
  max-width: 470px;
  pointer-events: auto;
  opacity: 0.18;
  filter: blur(4px);
  translate: 0 30px;
  transition:
    opacity 0.7s var(--ease),
    filter 0.7s var(--ease),
    translate 0.8s var(--ease);
}
/* The chapter in the middle of the screen comes into focus. */
.chapter.active .copy {
  opacity: 1;
  filter: none;
  translate: none;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-live);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.6s;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(3.4rem, 9vw, 7rem);
}
.chapter h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}
.chapter p {
  color: var(--muted);
  font-size: 1.08rem;
}
.lede {
  max-width: 440px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--spring),
    background-color 0.25s,
    box-shadow 0.25s;
}
.button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}
.button:active {
  transform: scale(0.97);
}
.button.primary {
  border-color: transparent;
  background: var(--gradient);
  color: #0b0c10;
  box-shadow: 0 12px 34px rgba(199, 155, 255, 0.28);
}
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.price-from {
  margin-top: 18px !important;
  font-size: 0.95rem !important;
}
.price-from strong {
  color: var(--text);
}
.scroll-cue {
  position: absolute;
  bottom: 70px;
  left: var(--gutter);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  pointer-events: auto;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  translate: -50% 0;
  animation: cue 1.8s var(--ease) infinite;
}
.hero {
  position: relative;
}
/* The headline settles in on first load. */
.hero .copy > * {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity 0.9s var(--ease),
    translate 1s var(--ease);
}
.ready .hero .copy > * {
  opacity: 1;
  translate: none;
}
.hero .copy > :nth-child(2) {
  transition-delay: 0.1s;
}
.hero .copy > :nth-child(3) {
  transition-delay: 0.2s;
}
.hero .copy > :nth-child(4) {
  transition-delay: 0.3s;
}
.hero .copy > :nth-child(5) {
  transition-delay: 0.4s;
}

.swatches {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.swatch {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition:
    border-color 0.3s,
    transform 0.3s var(--spring);
}
.swatch span {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--case) 50%, var(--strap) 50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.swatch:hover {
  transform: scale(1.1);
}
.swatch[aria-checked="true"] {
  border-color: var(--text);
}

/* ============ Sections ============ */

.section {
  padding: 110px var(--gutter);
}
.section > h2 {
  max-width: 720px;
  margin: 0 0 44px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}
.reveal {
  opacity: 0;
  translate: 0 34px;
  transition:
    opacity 0.8s var(--ease),
    translate 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in {
  opacity: 1;
  translate: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.stat {
  padding: 28px;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}
.num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.unit {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 600;
}
.stat p {
  margin: 6px 0 0;
  color: var(--muted);
}
.heart svg {
  width: 100%;
  height: 64px;
  stroke: #ff5c7a;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(255, 92, 122, 0.6));
}
/* The heart trace draws itself, then keeps pulsing along. */
.heart path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}
.heart.in path {
  animation: trace 2.4s linear infinite;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: var(--edge);
}
.spec-grid div {
  padding: 26px;
  background: var(--bg);
}
.spec-grid dt {
  margin-bottom: 6px;
  color: var(--accent-live);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.6s;
}
.spec-grid dd {
  margin: 0;
  color: var(--muted);
}

/* ============ Buy ============ */

.buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  background: radial-gradient(circle at 25% 50%, color-mix(in srgb, var(--accent-live) 16%, transparent), transparent 55%);
  transition: background 0.8s;
}
.buy-preview {
  display: grid;
  place-items: center;
}
.watch-flat {
  height: min(70vh, 560px);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
  animation: float 6s ease-in-out infinite;
}
.buy-form h2 {
  margin: 0 0 22px;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}
fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}
legend {
  margin-bottom: 8px;
  color: var(--muted);
}
legend strong {
  color: var(--text);
}
.sizes {
  display: flex;
  gap: 12px;
}
.size {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 130px;
  padding: 12px 18px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition:
    border-color 0.25s,
    background-color 0.25s;
}
.size span {
  color: var(--muted);
  font-size: 0.85rem;
}
.size[aria-checked="true"] {
  border-color: var(--accent-live);
  background: color-mix(in srgb, var(--accent-live) 10%, transparent);
}
.price {
  margin: 4px 0 16px;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.add {
  min-width: 220px;
}
.add.added {
  animation: pop 0.5s var(--spring);
}
.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.fly {
  position: fixed;
  z-index: 60;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 18px rgba(199, 155, 255, 0.8);
  pointer-events: none;
}

/* ============ FAQ ============ */

.faq {
  max-width: 860px;
  margin: 0 auto;
}
details {
  border-bottom: 1px solid var(--edge);
  interpolate-size: allow-keywords;
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  flex: none;
  color: var(--accent-live);
  font-size: 1.6rem;
  font-weight: 400;
  transition: transform 0.35s var(--spring);
}
details[open] summary::after {
  transform: rotate(45deg);
}
/* Answers slide open where the browser can animate to auto height. */
details::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.4s var(--ease),
    content-visibility 0.4s allow-discrete;
}
details[open]::details-content {
  block-size: auto;
}
details p {
  margin: 0 4px 22px;
  color: var(--muted);
}

/* ============ Bag drawer ============ */

.drawer {
  width: min(420px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--edge);
  background: var(--bg-2);
  color: var(--text);
}
.drawer[open] {
  display: flex;
  flex-direction: column;
  animation: slide-in 0.45s var(--ease);
}
.drawer::backdrop {
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.drawer > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--edge);
}
.drawer h2 {
  margin: 0;
  font-size: 1.3rem;
}
.close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.3s var(--spring);
}
.close:hover {
  transform: rotate(90deg);
}
.close svg {
  width: 18px;
  height: 18px;
}
.lines {
  flex: 1;
  margin: 0;
  padding: 10px 22px;
  overflow-y: auto;
  list-style: none;
}
.lines li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas: "swatch name price" "swatch qty qty";
  align-items: center;
  gap: 4px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--edge);
  animation: slide-in 0.35s var(--ease);
}
.line-swatch {
  grid-area: swatch;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--case) 50%, var(--strap) 50%);
}
.lines li > div:first-of-type {
  grid-area: name;
  display: flex;
  flex-direction: column;
}
.lines li span {
  color: var(--muted);
  font-size: 0.85rem;
}
.line-price {
  grid-area: price;
}
.qty {
  grid-area: qty;
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.empty {
  flex: 1;
  margin: 0;
  padding: 30px 22px;
  color: var(--muted);
}
.drawer > footer {
  padding: 20px 22px 26px;
  border-top: 1px solid var(--edge);
}
.total {
  display: flex;
  justify-content: space-between;
  margin: 0 0 14px;
  font-size: 1.1rem;
}
.drawer .button {
  width: 100%;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 30px var(--gutter) 40px;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer p {
  margin: 0;
}

/* ============ Keyframes ============ */

@keyframes pop {
  40% {
    transform: scale(1.25);
  }
}
@keyframes cue {
  0% {
    opacity: 0;
    translate: -50% 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    translate: -50% 14px;
  }
}
@keyframes trace {
  0% {
    stroke-dashoffset: 300;
  }
  60%,
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes float {
  50% {
    transform: translateY(-14px) rotate(-1.5deg);
  }
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
}

/* ============ Smaller screens ============ */

@media (max-width: 820px) {
  .nav nav {
    display: none;
  }
  .bag-button {
    margin-left: auto;
  }
  .chapter,
  .chapter:nth-child(even) {
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 60px;
  }
  .copy {
    padding: 18px;
    border-radius: 20px;
    background: rgba(7, 8, 11, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .hero .copy {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .stage .halo {
    top: 32%;
    translate: -50% -50% !important;
  }
  .watch-fallback {
    top: 30%;
    right: 50%;
    height: 44vh;
    translate: 50% -50%;
  }
  .scroll-cue {
    display: none;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 3.6rem);
  }
  .hero .lede {
    font-size: 1rem;
  }
  .hero .cta .button {
    padding: 11px 18px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .buy {
    grid-template-columns: minmax(0, 1fr);
  }
  .watch-flat {
    height: 340px;
  }
  .sizes {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal,
  .hero .copy > *,
  .copy {
    opacity: 1;
    filter: none;
    translate: none;
  }
  .heart path {
    stroke-dashoffset: 0;
  }
}
