/* Good Boy — white cinematic fold hero */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #111;
  --paper: #fff;
  --line: #e8e6e2;
  --sans: "Helvetica Neue", "Inter", -apple-system, "PingFang SC", "Hiragino Sans GB", sans-serif;
  --serif: "Georgia", "Times New Roman", "Songti SC", serif;
}

html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 44px; flex: 0 0 auto;
}
.nav-logo { font-weight: 700; font-size: 15px; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.nav-links { display: flex; gap: 34px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 13.5px; opacity: .78; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans); font-size: 13px; cursor: pointer;
  border-radius: 999px; padding: 9px 18px; border: 1.5px solid var(--ink);
  background: var(--paper); color: var(--ink); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--line); }
.btn-pill { padding: 13px 30px; font-size: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.10); border-color: var(--line); }

/* ---------- hero grid ---------- */
.hero {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: minmax(420px, 46%) 1fr;
  gap: 24px; padding: 8px 44px 34px;
}
.hero-left { display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; }

.eyebrow { font-size: 13px; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.eyebrow .diamond { color: #d3541e; font-size: 10px; }
.eyebrow em { font-family: var(--serif); font-style: italic; }

.headline {
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.02; letter-spacing: -.025em; font-weight: 700;
}
.headline .serif {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.12em; letter-spacing: -.015em;
}

.sub { font-size: 14.5px; line-height: 1.55; color: #444; max-width: 380px; }

/* ---------- camera card ---------- */
.cam-card {
  position: relative; width: 270px; aspect-ratio: 4 / 3;
  border-radius: 14px; overflow: hidden; background: #f4f2ef;
  box-shadow: 0 18px 44px rgba(0,0,0,.16);
}
.cam-card video, .cam-card canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scaleX(-1);
}
.cam-card canvas { z-index: 2; }
.cam-placeholder {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: #f4f2ef; color: #555; font-size: 13px;
}
.cam-placeholder[hidden] { display: none; }
.cam-hint {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  font-size: 11.5px; text-align: center; padding: 6px 0;
  color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.45));
  pointer-events: none;
}

/* ---------- right stage ---------- */
.hero-right { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
.stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.stage video, .stage img {
  /* element box == 16:9 content box, so the inset clip actually trims the
     dark encode-artifact rows on the video's own frame border */
  width: 100%; height: auto; max-height: 100%;
  mix-blend-mode: multiply;   /* white-on-white: melts any off-white edge */
  filter: brightness(1.05) contrast(1.02);  /* push near-white studio bg to pure white */
  clip-path: inset(2%);
}
.char-toggle {
  position: absolute; top: 10px; right: 8px; z-index: 5;
  display: flex; gap: 4px; padding: 5px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,.09);
}
.char-btn {
  display: flex; align-items: center; gap: 8px;
  border: none; background: transparent; border-radius: 999px;
  padding: 4px 14px 4px 5px; font-family: var(--sans); font-size: 12.5px;
  letter-spacing: .02em; cursor: pointer; color: #555;
  transition: background .18s ease, color .18s ease;
}
.char-btn img {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; object-position: center 42%; background: #f2efe9;
}
.char-btn.active { background: var(--ink); color: var(--paper); }
.char-btn:not(.active):hover { background: #f4f2ef; }

.progress-tag {
  position: absolute; right: 8px; bottom: 4px;
  display: flex; gap: 10px; align-items: baseline;
  font-size: 12px; letter-spacing: .08em; color: #999;
}
.progress-tag #stateLabel { font-family: var(--serif); font-style: italic; font-size: 14px; color: #555; }

/* ---------- fallback slider (inside camera card) ---------- */
.fallback { width: 78%; font-size: 12px; color: #666; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.fallback input[type="range"] { width: 100%; accent-color: var(--ink); }
.fallback[hidden] { display: none; }

@media (max-width: 980px) {
  body { overflow: auto; }
  .hero { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
