/* ══════════════════════════════════════════════════
   Stefan Klaassen — Products / main.css
══════════════════════════════════════════════════ */

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

/* ── Tokens ── */
:root {
  --bg:           #0D0D0D;
  --surface:      #141414;
  --text:         #F2F2F0;
  --text-mid:     #999;
  --text-dim:     #4A4A4A;
  --rule:         rgba(255,255,255,0.07);
  --rule-strong:  rgba(255,255,255,0.13);
  --nav-h:        52px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --ease:         cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-theme="light"] {
  --bg:          #F4F4F2;
  --surface:     #ECECEA;
  --text:        #111110;
  --text-mid:    #555;
  --text-dim:    #999;
  --rule:        rgba(0,0,0,0.07);
  --rule-strong: rgba(0,0,0,0.13);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:          #F4F4F2;
    --surface:     #ECECEA;
    --text:        #111110;
    --text-mid:    #555;
    --text-dim:    #999;
    --rule:        rgba(0,0,0,0.07);
    --rule-strong: rgba(0,0,0,0.13);
  }
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.label-caps {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ══ NAV ══ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.75rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s var(--ease);
}

.nav-back {
  font-size: 12px; font-weight: 400; letter-spacing: 0.04em;
  color: var(--text-dim); text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--text); }

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em;
  color: var(--text);
  position: absolute; left: 50%; transform: translateX(-50%);
}

.theme-toggle {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: none; cursor: pointer;
  color: var(--text-dim); font-size: 14px;
  transition: color 0.2s;
}
.theme-toggle:hover { color: var(--text); }

/* ══ HERO ══ */
.hero {
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 44% 56%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 3.5rem 2.5rem;
  border-right: 1px solid var(--rule);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 120px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-tagline {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-mid);
  font-weight: 300;
}

.hero-right {
  background: var(--surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 4rem 3rem;
  transition: opacity 0.3s var(--ease);
}

/* ── Color picker ── */
.color-picker {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.color-swatches { display: flex; gap: 8px; }

.color-swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer; outline: none; padding: 0;
  position: relative;
  transition: transform 0.15s var(--ease);
}

[data-theme="light"] .color-swatch,
:root:not([data-theme="dark"]) .color-swatch { border-color: rgba(0,0,0,0.12); }

.color-swatch:hover { transform: scale(1.15); }

.color-swatch::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: border-color 0.15s var(--ease);
}

.color-swatch.active::after { border-color: var(--text); }

/* ══ MARQUEE ══ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.8rem 0;
  background: var(--surface);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-mid);
  white-space: nowrap;
}

.marquee-track .msep { color: var(--text-dim); font-size: 8px; line-height: 1; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══ TURNTABLE ══ */
.turntable-section {
  height: 300vh;
  position: relative;
  border-top: 1px solid var(--rule);
}

.turntable-sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
}

.turntable-header {
  display: flex; align-items: center; justify-content: space-between;
  width: min(660px, 85vw);
}

.turntable-hint {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--text-dim);
  letter-spacing: 0.15em; text-transform: uppercase;
}

.turntable-hint .ti { font-size: 11px; }

.scroll-canvas-wrap { position: relative; width: min(660px, 85vw); }

#scroll-canvas { width: 100%; height: auto; display: block; }

/* ══ CONTACT ══ */
.contact-section {
  padding: 9rem 2rem;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--rule);
}

.contact-section > .label-caps { margin-bottom: 1.25rem; }

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 2.75rem;
}

.contact-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 400;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 3px; letter-spacing: 0.01em;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-link:hover { opacity: 0.6; border-color: transparent; }
.contact-link .ti { font-size: 13px; }

/* ══ FOOTER ══ */
footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--rule);
}

.footer-copy { font-size: 12px; color: var(--text-dim); }

/* ══ RESPONSIVE ══ */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 2.5rem 1.75rem;
  }
  .hero-right { height: 65vw; min-height: 300px; max-height: 540px; }
  .hero-right img { padding: 2.5rem 2rem; }
  h1 { font-size: clamp(56px, 14vw, 96px); }
}

@media (max-width: 560px) {
  nav { padding: 0 1.25rem; }
  .hero-left { padding: 2rem 1.25rem; }
  footer { padding: 1.25rem; }
  .contact-section { padding: 5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
