:root {
  --bg: #0b0b0c;
  --surface: #161617;
  --surface-2: #1d1d1f;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --accent: #ffde59;
  --accent-ink: #1b1600;
  --font: "Hanken Grotesk", -apple-system, "SF Pro Display", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(11, 11, 12, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 13px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-cta {
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
}

/* ---------- stage ---------- */
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
main, .foot { position: relative; z-index: 1; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.tag {
  font-size: 10px; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(46px, 8.6vw, 112px); line-height: 0.98; }
h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.02; margin-bottom: 22px; }
.hl { background: linear-gradient(95deg, var(--accent), #ffb81f 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede, .copy p, .hub-head p { color: var(--muted); font-size: clamp(17px, 1.7vw, 22px); line-height: 1.45; letter-spacing: -0.01em; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.actions.center { justify-content: center; margin-top: 56px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: scale(1.03); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }

/* ---------- hero ---------- */
.hero {
  min-height: 135vh; padding: 0 clamp(20px, 6vw, 96px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative;
}
.hero-copy { margin-top: clamp(96px, 14vh, 150px); max-width: 1000px; }
.hero-copy .eyebrow { justify-content: center; }
.hero .lede { max-width: 620px; margin: 26px auto 0; }
.hero .actions { justify-content: center; }
.scroll-hint { position: absolute; left: 50%; top: 92vh; transform: translateX(-50%); }
.scroll-hint span { display: block; width: 22px; height: 36px; border: 1.5px solid var(--line); border-radius: 12px; position: relative; }
.scroll-hint span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  background: var(--muted); border-radius: 2px; animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- chapters ---------- */
.chapter { height: 220vh; padding: 0 clamp(20px, 6vw, 96px); position: relative; }
.chapter .copy {
  position: sticky; top: 26vh; max-width: 520px;
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.chapter.in .copy { opacity: 1; transform: none; }
.copy .btn { margin-top: 30px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 26px 0 0; }
.chips li {
  font-size: 13px; padding: 7px 13px; border-radius: 999px; color: var(--text);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
}

/* ---------- hub ---------- */
.hub {
  padding: clamp(80px, 14vh, 160px) clamp(20px, 6vw, 96px) clamp(90px, 14vh, 160px);
  background: linear-gradient(180deg, rgba(11, 11, 12, 0) 0, var(--bg) 22vh);
}
.hub-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.hub-head .eyebrow { justify-content: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.card {
  background: var(--surface); border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}
.card:hover { transform: translateY(-6px) scale(1.012); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.card img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; background: #000; }
.card-dark img { object-fit: contain; object-position: center 85%; }
.card-ad img { object-fit: cover; object-position: center 36%; background: #0c0c0c; }
.card > div:last-child { padding: 22px 26px 28px; }
.card h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-soon .soon {
  aspect-ratio: 16 / 11; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: repeating-linear-gradient(135deg, #131314 0 14px, #171718 14px 28px);
  font-family: var(--mono); letter-spacing: 0.12em; color: var(--muted);
}
.card-soon .soon span { font-size: 15px; color: var(--text); }
.card-soon .soon small { font-size: 11px; text-transform: uppercase; }

/* ---------- footer ---------- */
.foot { background: var(--bg); border-top: 1px solid var(--line); padding: 44px clamp(20px, 6vw, 96px) 56px; }
.foot-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 14px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.foot-inner p { margin: 0; max-width: 70ch; }
.foot-inner a:hover { color: var(--text); }

/* ---------- no webgl: fall back to photos ---------- */
.no-webgl #stage { display: none; }

/* ---------- small screens: copy sits under the model ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .chapter { height: 210vh; }
  .chapter .copy {
    top: calc(100vh - 400px); max-width: none; position: sticky;
    padding: 36px 20px 26px; margin-left: calc(-1 * clamp(20px, 6vw, 96px)); margin-right: calc(-1 * clamp(20px, 6vw, 96px));
    background: linear-gradient(180deg, rgba(11, 11, 12, 0), rgba(11, 11, 12, 0.94) 22%);
  }
  .chapter .copy p { font-size: 15.5px; }
  .chips { margin-top: 16px; }
  .copy .btn { margin-top: 20px; }
  h2 { font-size: clamp(30px, 8vw, 40px); margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chapter .copy, .btn, .card { transition: none; }
  .scroll-hint span::after { animation: none; }
}

/* =====================================================================
   Product pages
   ===================================================================== */
.page { background: var(--bg); }
.page main { position: relative; z-index: 1; }

.phero {
  min-height: 100vh; padding: 96px clamp(20px, 6vw, 96px) 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 72px); align-items: center;
  background: radial-gradient(900px 520px at 72% 48%, rgba(255, 222, 89, 0.07), transparent 65%);
}
.phero h1 { font-size: clamp(42px, 6.4vw, 84px); margin-bottom: 22px; }
.phero .lede { max-width: 520px; margin: 0; }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.crumbs a:hover { color: var(--text); }
.phero .chips { margin-top: 28px; }
.phero .actions { margin-top: 32px; }

.viewer { position: relative; aspect-ratio: 1 / 1; max-height: 80vh; width: 100%; justify-self: center; cursor: grab; }
.viewer.dragging { cursor: grabbing; }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.viewer .hint {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); margin: 0; pointer-events: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11, 11, 12, 0.6);
  opacity: 0; transition: opacity 0.6s;
}
.viewer.ready .hint { opacity: 1; }
.viewer.dragging .hint { opacity: 0; }
.viewer.no-webgl { background: center / contain no-repeat var(--fallback); }
.viewer.no-webgl .hint, .viewer.no-webgl canvas { display: none; }

.section { padding: clamp(64px, 11vh, 120px) clamp(20px, 6vw, 96px); max-width: 1280px; margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; margin: 0; }
.section-head .eyebrow { margin-bottom: 14px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.feat { background: var(--surface); border-radius: 26px; padding: 30px 28px 32px; border: 1px solid rgba(255, 255, 255, 0.05); }
.feat h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 10px; }
.feat p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; background: var(--surface); border-radius: 22px; padding: 20px 24px; }
.steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; color: var(--accent); border: 1px solid rgba(255, 222, 89, 0.4);
}
.steps strong { display: block; font-size: 18px; letter-spacing: -0.015em; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; line-height: 1.5; }

.states { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.state { display: grid; grid-template-columns: 28px 1fr; gap: 16px; background: var(--surface); border-radius: 22px; padding: 22px 24px; }
.sw { width: 18px; height: 18px; border-radius: 50%; margin-top: 4px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.state strong { display: block; font-size: 18px; margin-bottom: 4px; letter-spacing: -0.015em; }
.state span { color: var(--muted); font-size: 15px; line-height: 1.5; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.shot { margin: 0; background: var(--surface); border-radius: 26px; overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0c0c0c; }
.shot.contain img { object-fit: contain; }
.shot figcaption { padding: 16px 22px 20px; color: var(--muted); font-size: 14px; }

.know { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 48px; }
.know h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.01em; }
.know p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.cta-band { text-align: center; padding: clamp(70px, 12vh, 130px) clamp(20px, 6vw, 96px); background: radial-gradient(700px 300px at 50% 100%, rgba(255, 222, 89, 0.09), transparent 70%); }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted); font-size: 19px; margin: 0 auto; max-width: 560px; }
.cta-band .actions { justify-content: center; }

.more { padding: 0 clamp(20px, 6vw, 96px) clamp(70px, 12vh, 120px); max-width: 1280px; margin: 0 auto; }
.more h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 28px; }
.more .cards { max-width: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card-link { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 15px; }

@media (max-width: 900px) {
  .phero { grid-template-columns: 1fr; min-height: 0; padding-top: 88px; }
  .viewer { max-height: 62vh; order: -1; }
}

.more-link { display: inline-block; margin: 22px 0 0 22px; color: var(--accent); font-weight: 600; font-size: 16px; }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- utilities dropdown ---------- */
.nav-left { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.util { position: relative; }
.util-btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 500;
  color: var(--muted); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
  padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s;
}
.util-btn:hover, .util.open .util-btn { color: var(--text); background: rgba(255,255,255,0.1); }
.util-btn svg { width: 9px; height: 9px; transition: transform .2s; }
.util.open .util-btn svg { transform: rotate(180deg); }
.util-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; padding: 6px;
  background: rgba(20,20,22,0.96); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s;
}
.util.open .util-menu { opacity: 1; transform: none; pointer-events: auto; }
.util-menu a { display: block; padding: 9px 11px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 500; }
.util-menu a small { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; font-weight: 400; }
.util-menu a:hover, .util-menu a:focus-visible { background: rgba(255,255,255,0.07); outline: none; }
@media (max-width: 520px) { .brand span { display: none; } }

/* keep the product links truly centred: equal-width side columns */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; }
.nav .nav-left { justify-self: start; }
.nav .nav-cta { justify-self: end; }
@media (max-width: 820px) { .nav { grid-template-columns: 1fr auto; } }
