:root {
  --ink: #17171a;
  --ink-soft: #4c4c52;
  --ink-faint: #8a8a91;
  --paper: #fafafa;
  --card: #ffffff;
  --line: #e8e8ea;
  --accent: #c8102e;
  --radius: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 50;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease;
}
#loader.done { opacity: 0; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-heart {
  width: 46px; height: 46px; margin: 0 auto 14px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 10px;
  animation: pulse 1s ease-in-out infinite;
  position: relative;
}
.loader-heart::before, .loader-heart::after {
  content: ""; position: absolute; width: 46px; height: 46px;
  background: var(--accent); border-radius: 50%;
}
.loader-heart::before { left: -23px; }
.loader-heart::after { top: -23px; }
@keyframes pulse { 50% { transform: rotate(45deg) scale(.86); } }
.loader-note { color: var(--ink-faint); font-size: 14px; letter-spacing: .04em; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: rgba(250,250,250,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--font-display); font-weight: 900; font-size: 24px; letter-spacing: .14em; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }
.cta {
  font-size: 14px; font-weight: 700; color: #fff; background: var(--ink);
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
}
.cta:hover { background: #000; }

/* ---------- hero ---------- */
main { padding-top: 64px; }
.hero {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 24px; align-items: center;
  max-width: 1180px; margin: 0 auto;
  padding: 56px 28px 40px;
  min-height: calc(100svh - 64px);
}
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(44px, 7vw, 84px); line-height: .98; letter-spacing: -0.01em;
}
.lede { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--ink-soft); max-width: 44ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: transform .15s ease;
}
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #000; }
.btn.ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--card); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.big { font-size: 17px; padding: 17px 38px; }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; }
.hero-stats dt { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.hero-stats dd { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }

/* ---------- 3D stages ---------- */
.stage { position: relative; }
.hero-stage { height: min(72svh, 620px); min-height: 420px; }
.hero-stage canvas, .bunch-stage canvas {
  width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab;
  border-radius: var(--radius);
  background: radial-gradient(120% 100% at 50% 20%, #ffffff 0%, #f3f3f5 62%, #ececef 100%);
}
.hero-stage canvas:active, .bunch-stage canvas:active { cursor: grabbing; }
.hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); background: rgba(255,255,255,.75);
  padding: 8px 16px; border-radius: 999px; pointer-events: none;
}

/* ---------- sections ---------- */
.colors, .bunch, .specs, .outro {
  max-width: 1180px; margin: 0 auto; padding: 72px 28px;
}
.colors h2, .bunch h2, .specs h2, .outro h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.5vw, 54px); letter-spacing: -0.01em;
}
.section-lede { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }

.swatches {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 14px; margin-top: 34px;
}
.sw {
  aspect-ratio: 1; border-radius: 18px; border: 2px solid transparent;
  background: var(--card); cursor: pointer; padding: 10px;
  transition: transform .15s ease, border-color .15s ease;
  display: flex; align-items: flex-end; justify-content: center;
}
.sw:hover { transform: translateY(-3px); }
.sw.active { border-color: var(--ink); }
.sw span {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 12px;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.75), rgba(255,255,255,0) 46%), var(--c);
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.18), 0 4px 10px rgba(0,0,0,.12);
}
.sw em { display: none; }
.finish-readout {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-top: 26px; flex-wrap: wrap;
}
.finish-name { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.finish-toggle { display: flex; background: #efeff1; border-radius: 999px; padding: 5px; }
.ft {
  border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700;
  padding: 10px 22px; border-radius: 999px; cursor: pointer; color: var(--ink-soft);
}
.ft.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }

.bunch-stage { height: 480px; margin-top: 30px; }

/* ---------- specs ---------- */
.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 34px;
}
.spec {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px;
}
.spec h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.spec p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

.outro { text-align: center; padding-bottom: 110px; }
.outro h2 { margin-bottom: 30px; }

footer {
  border-top: 1px solid var(--line);
  padding: 30px 28px 44px; text-align: center;
}
.fineprint { font-size: 13px; color: var(--ink-faint); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero-stage { height: 62svh; min-height: 380px; order: -1; }
  .nav-links { display: none; }
  .swatches { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .bunch-stage { height: 380px; }
  .finish-readout { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .spec-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}
