/* BB Watch Hero — immersive anatomy build: the watch stays on screen and
   separates into its parts as you scroll. Midnight steel palette. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #05070b;
  --bg-elev: #0a0e16;
  --fg: #e6ebf2;
  --mute: #7a8799;
  --mute-2: #4a5566;
  --steel: #b7c4d4;
  --steel-hot: #d4dde8;
  --accent: #6ec8ff;
  --accent-dim: rgba(110, 200, 255, 0.14);
  --gold: #c9a96e;
  --line: rgba(183, 196, 212, 0.12);
  --line-hot: rgba(183, 196, 212, 0.28);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --cursor-size: 5px;
  --cursor-ring: 34px;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--fg);
  overflow-y: auto;
  height: auto;
}
html, body { overflow-x: hidden; }

body {
  font-family: var(--sans);
  font-weight: 300;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
  /* Atmosphere lives behind the fixed stage so the watch is always visible */
  background:
    radial-gradient(ellipse 60% 55% at 62% 38%,
      #1a2740 0%,
      #0f1728 38%,
      #090e18 66%,
      #05070b 100%) fixed;
}

body.touch-device { cursor: auto; }
body.touch-device .cursor { display: none !important; }

a, button {
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: none;
  font: inherit;
}
body.touch-device a,
body.touch-device button { cursor: pointer; }

button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* ——— Fixed 3D stage ——— */
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

main, .site-foot { position: relative; z-index: 1; }
main section { pointer-events: none; }
main a, main button, .product-card { pointer-events: auto; }

/* ——— Custom cursor (steel crosshair mood) ——— */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  z-index: 100;
  pointer-events: none;
  mix-blend-mode: exclusion;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.cursor.is-on { opacity: 1; }
.cursor-dot {
  position: absolute;
  width: var(--cursor-size);
  height: var(--cursor-size);
  margin: calc(var(--cursor-size) / -2) 0 0 calc(var(--cursor-size) / -2);
  border-radius: 50%;
  background: var(--steel-hot);
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0);
  will-change: transform;
}
.cursor-ring {
  position: absolute;
  width: var(--cursor-ring);
  height: var(--cursor-ring);
  margin: calc(var(--cursor-ring) / -2) 0 0 calc(var(--cursor-ring) / -2);
  border-radius: 50%;
  border: 1px solid rgba(183, 196, 212, 0.65);
  transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0) scale(0.4);
  opacity: 0.4;
  transition: transform 0.5s var(--ease), opacity 0.35s var(--ease);
  will-change: transform;
}
.cursor.is-hover .cursor-ring {
  transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0) scale(1.05);
  opacity: 0.95;
  border-color: var(--accent);
}
.cursor.is-down .cursor-ring {
  transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0) scale(0.65);
  opacity: 0.55;
}
.cursor.is-hover .cursor-dot { opacity: 0.3; }

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 20px 36px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(to bottom, rgba(5, 7, 11, 0.72) 0%, transparent 100%);
  border-bottom: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.4s, backdrop-filter 0.4s;
}
.nav > * { pointer-events: auto; }

.logo {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line-hot);
  box-shadow: inset 0 0 0 3px rgba(5, 7, 11, 0.85), 0 0 0 1px rgba(110, 200, 255, 0.08);
  transition: border-color 0.35s, box-shadow 0.35s;
}
.logo:hover .logo-ring {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px rgba(5, 7, 11, 0.85), 0 0 18px rgba(110, 200, 255, 0.18);
}
.logo-mark {
  position: relative;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--steel-hot);
}

.nav-center {
  display: flex;
  justify-content: center;
  gap: 40px;
}
.nav-center a {
  opacity: 0.5;
  transition: opacity 0.35s var(--ease), color 0.35s;
}
.nav-center a:hover {
  opacity: 1;
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line-hot);
  color: var(--steel-hot);
  letter-spacing: 0.18em;
  transition: border-color 0.35s, background 0.35s, color 0.35s;
}
.nav-cta:hover {
  border-color: var(--accent);
  color: var(--bg);
  background: var(--accent);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  height: 20px;
}
.burger i {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--fg);
  opacity: 0.75;
}

/* ——— Left section ticks ——— */
.ticks {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ticks a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mute-2);
  opacity: 0.7;
  transition: color 0.35s, opacity 0.35s, transform 0.35s var(--ease);
}
.ticks a span {
  font-variant-numeric: tabular-nums;
  color: var(--mute-2);
  min-width: 1.6em;
}
.ticks a::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--line-hot);
  transition: width 0.35s var(--ease), background 0.35s;
}
.ticks a:hover {
  opacity: 1;
  color: var(--steel);
  transform: translateX(2px);
}
.ticks a.active {
  opacity: 1;
  color: var(--fg);
}
.ticks a.active::before {
  width: 28px;
  background: var(--accent);
}
.ticks a.active span { color: var(--accent); }

/* ——— Right scroll track ——— */
.scrolltrack {
  position: fixed;
  right: 24px;
  top: 28%;
  height: 44%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--line-hot), transparent);
  z-index: 30;
  overflow: visible;
}
.thumb {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 14%;
  margin-left: -1px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(110, 200, 255, 0.35);
  will-change: top;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
}

.caption {
  position: absolute;
  left: 8vw;
  bottom: 10vh;
  max-width: min(420px, 88vw);
  text-align: left;
  z-index: 5;
}
.caption .cta,
.caption a { pointer-events: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
}

.caption h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7.5vw, 92px);
  letter-spacing: 0.02em;
  margin: 14px 0 18px;
  color: var(--fg);
  line-height: 0.95;
}
.caption h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--steel-hot);
}

.lede-hero {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--mute);
  margin-bottom: 28px;
  max-width: 34ch;
}

.caption-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}

.hint {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute-2);
  animation: hintPulse 4s var(--ease) infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.95; }
}

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--mute);
  background: rgba(5, 7, 11, 0.45);
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
}

/* ——— Anatomy: tall scroll runway with three captions over the stage ——— */
.anatomy {
  position: relative;
  height: 380svh;
}
.anat-cap {
  position: absolute;
  max-width: min(340px, 82vw);
  text-align: left;
  z-index: 5;
}
.anat-cap h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 14px 0 14px;
}
.anat-cap .lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--mute);
}
.anat-cap-1 { left: 8vw; top: 16%; }
.anat-cap-2 { right: 8vw; top: 46%; }
.anat-cap-3 { left: 8vw; top: 76%; }

/* ——— Scroll reveals ——— */
.reveal {
  opacity: 0;
  transform: translate3d(-18px, 0, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.caption.reveal {
  opacity: 1;
  transform: none;
}
.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.product-grid.reveal {
  transform: translate3d(0, 36px, 0);
}
.product-grid.reveal.is-in {
  transform: translate3d(0, 0, 0);
}

/* ——— CTAs ——— */
.cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--line-hot);
  color: var(--fg);
  transition: border-color 0.35s, background 0.35s, color 0.35s, box-shadow 0.35s;
}
.cta:hover {
  border-color: var(--steel);
  color: var(--steel-hot);
  background: rgba(183, 196, 212, 0.06);
}
.cta-solid {
  border-color: var(--accent);
  background: var(--accent);
  color: #041018;
  font-weight: 500;
}
.cta-solid:hover {
  background: var(--steel-hot);
  border-color: var(--steel-hot);
  color: #041018;
  box-shadow: 0 0 28px rgba(110, 200, 255, 0.25);
}

/* ——— Panels ——— */
.panel {
  position: relative;
  min-height: 100svh;
  padding: 120px 48px;
  border-top: 1px solid var(--line);
}
.panel-shop {
  display: block;
  padding-top: 14vh;
}
.panel-atelier {
  display: grid;
  place-items: center;
  min-height: 160svh;
}
.panel-atelier .panel-inner {
  margin-left: auto;
  margin-right: 6vw;
}
.panel-bespoke {
  display: grid;
  place-items: center;
}
.panel-bespoke .panel-inner {
  margin-right: auto;
  margin-left: 6vw;
}

.panel-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: left;
}
.panel-inner {
  max-width: 560px;
  text-align: left;
}
.panel .eyebrow {
  margin-bottom: 18px;
}
.panel h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.8vw, 72px);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  line-height: 1.02;
}
.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
  color: var(--mute);
  letter-spacing: 0.01em;
  margin-bottom: 36px;
}

/* Readability: text blocks get a soft scrim so they sit cleanly over the watch */
.panel-head, .panel-inner, .anat-cap, .caption {
  text-shadow: 0 2px 24px rgba(5, 7, 11, 0.9), 0 0 6px rgba(5, 7, 11, 0.8);
}

/* ——— Product cards ——— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}
.product-card {
  background: linear-gradient(165deg, rgba(16, 24, 40, 0.92), rgba(8, 12, 20, 0.96));
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  padding: 22px 22px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.product-card:hover {
  border-color: var(--line-hot);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.product-card.featured {
  border-color: rgba(201, 169, 110, 0.35);
  background: linear-gradient(165deg, rgba(28, 24, 16, 0.96), rgba(10, 12, 16, 0.98));
}
.product-card.featured:hover {
  border-color: rgba(201, 169, 110, 0.65);
}
.product-visual {
  aspect-ratio: 1 / 1.05;
  margin-bottom: 22px;
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.08), transparent 42%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(0,0,0,0.5), transparent 60%),
    linear-gradient(145deg, #1c2a40, #0a101c);
  position: relative;
  overflow: hidden;
}
.product-render {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.product-visual::after {
  z-index: 2;
  content: "";
  position: absolute;
  inset: 18% 22%;
  border-radius: 50%;
  border: 1px solid rgba(183, 196, 212, 0.35);
  box-shadow:
    inset 0 0 0 10px rgba(5, 7, 11, 0.55),
    inset 0 0 24px rgba(110, 200, 255, 0.08);
}
.product-visual[data-tone="gold"] {
  background:
    radial-gradient(circle at 50% 42%, rgba(201,169,110,0.18), transparent 42%),
    linear-gradient(145deg, #2a2214, #0e0c08);
}
.product-visual[data-tone="gold"]::after {
  border-color: rgba(201, 169, 110, 0.55);
  box-shadow:
    inset 0 0 0 10px rgba(10, 8, 4, 0.55),
    inset 0 0 28px rgba(201, 169, 110, 0.12);
}
.product-visual[data-tone="noir"] {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.04), transparent 40%),
    linear-gradient(145deg, #141820, #07090c);
}
.product-series {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin-bottom: 8px;
}
.product-card.featured .product-series { color: var(--gold); }
.product-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.product-meta {
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  line-height: 1.45;
}
.product-price {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--steel-hot);
  margin-bottom: 20px;
  margin-top: auto;
}
.product-card .cta {
  text-align: center;
  width: 100%;
}

/* ——— Footer ——— */
.site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 36px 34px;
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.6);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute-2);
}
.site-foot .mark {
  color: var(--mute);
  letter-spacing: 0.2em;
}

/* ——— Responsive ——— */
@media (max-width: 1500px) and (min-width: 981px) {
  /* Mid widths: collapse the rail to number + dash so it clears the headline */
  .ticks a { font-size: 0; gap: 0; }
  .ticks a span { font-size: 9px; min-width: 0; }
  .ticks a::before { width: 14px; margin-right: 8px; }
}

@media (max-width: 980px) {
  .product-grid { grid-template-columns: 1fr; max-width: 420px; }
  .ticks { display: none; }
  .nav-center { display: none; }
  .burger { display: flex; }
  .caption { left: 24px; right: 24px; bottom: 8vh; max-width: none; }
  .panel { padding: 96px 24px; }
  .panel-head { margin-bottom: 40px; }
  .scrolltrack { right: 10px; }
  .anatomy { height: 340svh; }
  .anat-cap-1 { left: 24px; right: 24px; top: 12%; max-width: none; }
  .anat-cap-2 { left: 24px; right: 24px; top: 45%; max-width: none; }
  .anat-cap-3 { left: 24px; right: 24px; top: 78%; max-width: none; }
  .panel-atelier .panel-inner,
  .panel-bespoke .panel-inner { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hint { animation: none; opacity: 0.7; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cursor-ring { transition: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
