/* Cue marketing site. No framework, no build step. */
:root {
  --bg: #161a1c;
  --text: #e8ecec;
  --soft: #a3adb0;
  --dim: #6c777a;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .14);
  --teal: #7dbcbc;
  --btn: #36706f;
  --btn-hover: #3e7f7e;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--teal); }
:focus-visible { outline: 1px solid var(--teal); outline-offset: 3px; }
::selection { background: rgba(125, 188, 188, .28); color: #fff; }
video { display: block; }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; padding: 8px 12px; background: var(--bg); border: 1px solid var(--line-strong); font-size: 13px; }
.skip:focus { left: 16px; }

/* Shared type */
.label { margin: 0 0 22px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.h2 { margin: 0; font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.lede { margin: 22px auto 0; max-width: 46ch; font-size: 15px; line-height: 1.65; color: var(--soft); text-wrap: balance; }
.section-head { max-width: 640px; margin: 0 auto 8vh; text-align: center; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 2px; background: var(--btn); color: #fff; font-size: 13.5px; font-weight: 500; letter-spacing: .01em; transition: background-color .2s; }
.btn:hover { background: var(--btn-hover); color: #fff; }
.link { font-size: 13.5px; color: var(--teal); }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 48px; display: flex; align-items: center; justify-content: center; padding: 0 28px; background: rgba(22, 26, 28, .78); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.nav-inner { width: 100%; max-width: 1080px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; letter-spacing: .01em; }
.brand cue-origami-logo { display: block; width: 15px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 12px; letter-spacing: .01em; }
.nav-links a { color: var(--soft); }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { padding: 6px 13px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 2px; color: var(--text); }

/* Hero */
.hero { position: relative; height: 180vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 28px 28px; overflow: hidden; }
.hero-logo { width: clamp(84px, min(14vw, 20vh), 176px); aspect-ratio: 137.67 / 168.48; will-change: transform; }
.hero-logo cue-origami-logo, .cta-logo cue-origami-logo { display: block; width: 100%; }
.hero-text { margin-top: clamp(28px, 6vh, 64px); display: flex; flex-direction: column; align-items: center; text-align: center; will-change: transform, opacity; }
.hero .label { letter-spacing: .2em; margin-bottom: clamp(14px, 3vh, 26px); }
.hero h1 { margin: 0; font-size: clamp(38px, min(5.4vw, 8.4vh), 76px); font-weight: 300; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.hero-sub { margin: clamp(14px, 2.8vh, 26px) 0 0; max-width: 42ch; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.6; color: var(--soft); text-wrap: balance; }
.hero-actions { margin-top: clamp(20px, 4.4vh, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }

/* Word-lit statement */
.lit { position: relative; height: 210vh; }
.lit-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; padding: 0 28px; }
.lit p { margin: 0; max-width: 880px; font-size: clamp(26px, 3.2vw, 42px); font-weight: 300; line-height: 1.34; letter-spacing: -.02em; text-wrap: pretty; }
.js .lit .w { opacity: .14; transition: opacity .25s linear; }

/* Demo player */
.demo { padding: 8vh 20px 18vh; }
.player { width: min(1320px, 96vw, max(340px, calc((100vh - 300px) * 1.723))); margin: 0 auto; }
.player-frame { position: relative; aspect-ratio: 2940 / 1706; background: var(--bg); border: 1px solid rgba(255, 255, 255, .12); overflow: hidden; }
.player-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-meta { max-width: 1160px; margin: 18px auto 0; padding: 0 20px; container-type: inline-size; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 10px; }
@container (min-width: 760px) { .chapters { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.chapter { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 12px 0 4px; cursor: pointer; }
.chapter:focus-visible { outline: 1px solid var(--teal); outline-offset: 4px; }
.chapter-bar { position: relative; display: block; height: 1px; margin-bottom: 12px; background: var(--line-strong); }
.chapter-fill { position: absolute; top: 0; left: 0; bottom: 0; width: 0; background: var(--teal); }
.chapter-num { display: block; margin-bottom: 5px; font-size: 10.5px; letter-spacing: .12em; color: var(--dim); font-variant-numeric: tabular-nums; }
.chapter-title { display: block; font-size: 12.5px; line-height: 1.35; color: var(--dim); transition: color .3s; text-wrap: balance; }
.chapter[aria-current="true"] .chapter-title, .chapter:hover .chapter-title { color: var(--text); }
.caption { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px 40px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .06); }
.caption-text { display: flex; align-items: baseline; gap: 20px; min-width: 0; flex: 1 1 0; }
.caption-num { font-size: 11px; letter-spacing: .12em; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.caption-title { font-size: 17px; font-weight: 400; letter-spacing: -.005em; }
.caption-desc { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--soft); text-wrap: pretty; }
.caption-nav { display: flex; flex: none; gap: 8px; }
@container (max-width: 620px) { .caption-desc { display: none; } .caption { gap: 16px; } .chapter-num { display: none; } .chapter-bar { margin-bottom: 10px; } }
.icon-btn { all: unset; box-sizing: border-box; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--soft); font-size: 14px; cursor: pointer; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: rgba(255, 255, 255, .34); color: var(--text); }
.icon-btn:focus-visible { outline: 1px solid var(--teal); outline-offset: 3px; }

/* Evidence */
.evidence { padding: 18vh 28px; }
.evidence-inner { max-width: 1000px; margin: 0 auto; }
.evidence .section-head { margin-bottom: 10vh; }
.findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 72px; }
.finding { min-width: 0; padding-top: 28px; border-top: 1px solid var(--line); }
.finding .label { margin-bottom: 18px; color: var(--teal); }
.finding h3 { margin: 0 0 14px; font-size: 22px; font-weight: 400; line-height: 1.25; letter-spacing: -.01em; }
.finding p:not(.label) { margin: 0 0 20px; font-size: 15px; line-height: 1.65; color: var(--soft); text-wrap: pretty; }
.finding cite { font-style: normal; font-size: 12px; color: var(--dim); }

/* Founder note */
.note { padding: 18vh 28px; }
.note-inner { max-width: 680px; margin: 0 auto; }
.note-lead { margin: 0 0 44px; font-size: clamp(26px, 2.9vw, 38px); font-weight: 300; line-height: 1.28; letter-spacing: -.02em; text-wrap: pretty; }
.note-lead span { color: var(--dim); }
.note .body { margin: 0 0 22px; font-size: 16px; line-height: 1.75; color: var(--soft); text-wrap: pretty; }
.note .body.tight { margin-bottom: 6px; }
.note .body.strong { margin-bottom: 40px; color: var(--text); }
.signature { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* Download */
.cta { display: flex; flex-direction: column; align-items: center; padding: 14vh 28px 20vh; text-align: center; }
.cta-logo { width: 76px; aspect-ratio: 137.67 / 168.48; margin-bottom: 44px; }
.cta > p { margin: 18px 0 36px; font-size: 15px; line-height: 1.6; color: var(--soft); }

/* Footer */
.footer { padding: 24px 28px 36px; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 11.5px; color: var(--dim); }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer a { color: var(--dim); }
.footer a:hover { color: var(--text); }

/* Scroll reveals (the .pre class is only ever added by main.js) */
[data-reveal] { transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].pre { opacity: 0; transform: translateY(36px); }
.js [data-reveal="scale"].pre { transform: scale(.93); }

/* Small screens */
@media (max-width: 640px) {
  .nav { padding: 0 18px; }
  .nav-links { gap: 20px; }
  .nav-hide-sm { display: none; }
  .demo { padding-left: 12px; padding-right: 12px; }
  .player-meta { padding: 0 4px; }
  .icon-btn { width: 44px; height: 44px; }
  .chapter { padding-top: 14px; padding-bottom: 8px; }
  .findings { gap: 56px; }
}

/* Reduced motion: no scroll-scrubbed scenes, no reveals, no crossfades, no autoplay (see main.js) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .lit { height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 100vh; min-height: 100svh; }
  .lit-stage { position: relative; height: auto; padding: 14vh 28px; }
  .js .lit .w { opacity: 1; transition: none; }
  [data-reveal] { transition: none; }
  .js [data-reveal].pre { opacity: 1; transform: none; }
  .chapter-title, .btn, .icon-btn { transition: none; }
}
