/* ===================================================================
   Pip — a scroll film, not a landing page.
   Fixed stage, evolving light, Pip as the guide.
   =================================================================== */

:root {
  --ink: #f5f4f8;
  --ink-2: #b3aecb;
  --ink-3: #7d7795;
  --purple: #a78bfa;
  --purple-deep: #7c5cf0;
  --purple-soft: #c4b5fd;
  --font: "Instrument Sans", -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
body.light {
  --ink: #191325;
  --ink-2: #4b4462;
  --ink-3: #746d8c;
}

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

html { background: #08070d; }

body {
  font-family: var(--font);
  background: #08070d;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  transition: color 0.6s;
}

/* film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

#track { width: 1px; }

em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple-soft);
}
body.light em { color: var(--purple-deep); }

/* ===================================================================
   STAGE + SCENES
   =================================================================== */
#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px;
  visibility: hidden;
  pointer-events: none;
}
.scene.on { visibility: visible; }
.scene .cta, .scene .btn, .scene a { pointer-events: auto; }

/* headline language of the film */
.scene :is(h1, h2) {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.sub {
  margin-top: 20px;
  font-size: clamp(14.5px, 1.6vw, 17px);
  font-weight: 300;
  color: var(--ink-2);
  max-width: 52ch;
}

/* word-mask reveal */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.w > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(115%);
  filter: blur(6px);
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--wi) * 60ms),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--wi) * 60ms);
}
.line.in .w > i { transform: translateY(0); filter: blur(0); }

.sub, .whisper, .hint, .fine, .mood-word, .proof, .cta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.scene.in .sub, .scene.in .whisper, .scene.in .hint, .scene.in .fine,
.scene.in .mood-word, .scene.in .proof, .scene.in .cta {
  opacity: 1;
  transform: none;
}

.s1 .line {
  position: absolute;
  top: 29vh;
}
.s8 .line {
  position: absolute;
  top: 17vh;
}

/* ---------- s0 · void ---------- */
.whisper {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 27px);
  color: var(--ink-2);
  line-height: 1.5;
}
.hint {
  position: absolute;
  bottom: 42px;
  left: 50%;
  translate: -50% 0;
  font-size: 11.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-3);
  animation: hint-pulse 2.4s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ---------- s2 · the notch ---------- */
.big-notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(420px, 62vw);
  height: 72px;
  background: #000;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 80px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.big-notch::before, .big-notch::after {
  content: "";
  position: absolute;
  top: 0;
  width: 26px; height: 26px;
}
.big-notch::before { left: -26px; background: radial-gradient(circle at 0 100%, transparent 25.5px, #000 26px); }
.big-notch::after { right: -26px; background: radial-gradient(circle at 100% 100%, transparent 25.5px, #000 26px); }

/* ---------- s3 · catch ---------- */
.shot-actor {
  position: absolute;
  width: clamp(120px, 13vw, 190px);
  aspect-ratio: 4 / 3;
  background: linear-gradient(165deg, #ffffff, #ded7f0);
  border-radius: 14px;
  padding: 2.4% 2%;
  display: flex;
  flex-direction: column;
  gap: 8%;
  box-shadow: 0 30px 60px rgba(30, 15, 70, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  will-change: transform;
}
.shot-actor span { width: 55%; height: 10%; background: #9a92b8; border-radius: 5px; display: block; }
.shot-actor i { flex: 1; background: linear-gradient(140deg, #cfc7f0, #a78bfa); border-radius: 9px; display: block; }
.proof {
  position: absolute;
  bottom: 7vh;
  width: min(360px, 34vw);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(25, 12, 60, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  transform: translateY(18px) perspective(900px) rotateY(9deg) rotateX(3deg);
}
.scene.in .proof { transform: perspective(900px) rotateY(9deg) rotateX(3deg); }
.proof-left { left: 6vw; }
.proof video { display: block; width: 100%; }
.proof-cap {
  position: absolute;
  bottom: 8px; right: 12px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.s3 .scene-copy {
  position: absolute;
  left: 4vw;
  top: 20vh;
  width: min(31vw, 450px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  z-index: 4;
}
.s3 .scene-copy .line {
  position: static;
  max-width: 6.5ch;
  font-size: clamp(48px, 6.2vw, 92px);
}
.s3 .scene-copy .sub {
  position: static;
  margin-top: clamp(20px, 3vh, 32px);
  max-width: 30ch;
  text-align: left;
}
.s3 .proof {
  left: auto;
  right: 2.5vw;
  top: 16vh;
  bottom: auto;
  width: min(62vw, 960px, calc(72svh * 1.6));
  border-radius: 26px;
  transform: translateY(18px) perspective(1100px) rotateY(-6deg) rotateX(2deg);
}
.scene.in.s3 .proof { transform: perspective(1100px) rotateY(-3deg) rotateX(1deg); }

/* ---------- s4 · remember ---------- */
.ccards { position: absolute; inset: 0; pointer-events: none; }
.ccard {
  position: absolute;
  top: 69%;
  left: 50%;
  width: clamp(150px, 15vw, 220px);
  padding: 2% 1.6%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  box-shadow: 0 26px 60px rgba(35, 20, 80, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  display: flex;
  flex-direction: column;
  gap: 10px;
  will-change: transform;
}
.s4 .line { position: absolute; top: 18vh; }
.ccard span { height: 9px; border-radius: 5px; background: rgba(50, 38, 90, 0.35); display: block; }
.ccard span:last-child { width: 55%; }

/* ---------- s5 · park ---------- */
.s5 .scene-copy, .s6 .scene-copy, .s7 .scene-copy {
  position: absolute;
  top: 10vh;
  left: 50%;
  width: min(92vw, 1200px);
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}
.s5 .scene-copy .line, .s6 .scene-copy .line, .s7 .scene-copy .line {
  position: static;
}
.s5 .scene-copy .sub, .s6 .scene-copy .sub, .s7 .scene-copy .sub {
  position: static;
  margin-top: clamp(20px, 3vh, 34px);
}
.mini-notch {
  position: absolute;
  top: 0;
  left: 28%;
  translate: -50% 0;
  width: 180px;
  height: 34px;
  background: #000;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 14px 40px rgba(0,0,0,.4);
}
.win-actor {
  position: absolute;
  width: clamp(300px, 36vw, 520px);
  aspect-ratio: 16 / 10;
  background: linear-gradient(170deg, #2a2545, #1d1936);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  transform-origin: center;
  will-change: transform, opacity;
}
.windows-proof {
  left: auto;
  right: 2vw;
  bottom: 3.5vh;
  width: min(59vw, 930px, calc(70svh * 1.6));
  transform: translateY(28px) perspective(1000px) rotateY(-7deg) scale(.96);
}
.scene.in .windows-proof { transform: perspective(1000px) rotateY(-3deg) scale(1); }
.wa-bar { display: flex; gap: 6px; padding: 12px 14px; background: rgba(255, 255, 255, 0.05); }
.wa-bar i { width: 10px; height: 10px; border-radius: 50%; background: #504a6e; }
.wa-bar i:first-child { background: #a98ee0; }
.wa-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.wa-body span { height: 11px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); display: block; }
.wa-body span:nth-child(1) { width: 68%; }
.wa-body span:nth-child(2) { width: 90%; }
.wa-body span:nth-child(3) { width: 76%; }
.wa-body span:nth-child(4) { width: 42%; }

/* ---------- s6 · sort ---------- */
.tabs { position: absolute; inset: 0; pointer-events: none; }
.tp {
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: clamp(165px, 15vw, 230px);
  min-width: 0;
  padding: 12px 15px 11px;
  border-radius: 13px 13px 6px 6px;
  background: linear-gradient(180deg, rgba(62, 55, 78, .96), rgba(36, 31, 48, .96));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(167,139,250,.45);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  will-change: transform;
}
.tp::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: rgba(167,139,250,.72);
  box-shadow: 0 0 12px rgba(167,139,250,.4);
}
.tp .site-icon {
  width: 18px;
  height: 18px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  font-family: var(--font);
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
  box-shadow: inset 0 1px rgba(255,255,255,.35), 0 4px 9px rgba(0,0,0,.2);
}
.site-icon.figma { background: linear-gradient(145deg,#f24e1e,#a259ff); }
.site-icon.adidas { background: #f4f4f6; color:#111; font-size:12px; }
.site-icon.arc { background: linear-gradient(145deg,#ff7568,#7c5cf0 65%,#49d7c4); }
.site-icon.type { background: #f1ebe1; color:#17131d; font-family:var(--serif); font-size:12px; }
.site-icon.notion { background:#fff; color:#111; border:1px solid #777; }
.site-icon.maps { background: linear-gradient(145deg,#7ed7c7,#648bf2); font-size:8px; }
.tp b { min-width: 0; overflow: hidden; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 520; text-overflow: ellipsis; white-space: nowrap; }
.tp em { margin-left:auto; color:#8d8799; font-family:var(--font); font-size:14px; font-style:normal; line-height:1; }
.stacks {
  position: absolute;
  left: 52vw;
  right: 6vw;
  bottom: 12vh;
  display: flex;
  justify-content: space-around;
  gap: 20px;
}
.stack {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s, transform 0.6s;
}
.scene.in .stack { opacity: 1; transform: none; }
.stack:nth-child(2) { transition-delay: 0.12s; }
.stack:nth-child(3) { transition-delay: 0.24s; }

/* ---------- s7 · hold ---------- */
.files { position: absolute; inset: 0; pointer-events: none; }
.fl {
  position: absolute;
  top: 0; left: 0;
  width: clamp(58px, 5.2vw, 76px);
  height: clamp(72px, 6.4vw, 94px);
  border-radius: 10px 23px 10px 10px;
  background: linear-gradient(150deg, #f5f2fc, #cfc5ea);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 14px rgba(167, 139, 250, 0.25);
  will-change: transform;
}
.fl b { position: absolute; left: 10px; top: 18px; color: #5d4e79; font-size: clamp(10px, .85vw, 13px); letter-spacing: .04em; }
.fl small { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); color: var(--ink-2); font-size: 10px; white-space: nowrap; }
.fl.image { background: linear-gradient(150deg, #f5ecfa, #dfb8e4); }
.fl.fig { background: linear-gradient(150deg, #eef7f5, #a9d8ce); }
.fl.movie { background: linear-gradient(150deg, #f3f1fb, #b8ace8); }

.real-proof {
  position: absolute;
  left: 5vw;
  bottom: 7vh;
  z-index: 3;
  width: min(47vw, 680px);
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  background: #0a0810;
  box-shadow: 0 40px 90px rgba(0,0,0,.48), 0 0 70px rgba(139,92,246,.12), inset 0 1px rgba(255,255,255,.12);
  opacity: 0;
  transform: translateY(28px) perspective(900px) rotateY(7deg) scale(.96);
  transition: opacity .8s .2s, transform .95s cubic-bezier(.22,1,.36,1) .2s;
}
.tabs-proof { left: 4vw; bottom: 5vh; }
.scene.in .real-proof { opacity: 1; transform: perspective(900px) rotateY(4deg) scale(1); }
.files-proof {
  left: auto;
  right: 2vw;
  bottom: 3.5vh;
  width: min(59vw, 930px, calc(70svh * 1.6));
  transform: translateY(28px) perspective(900px) rotateY(-7deg) scale(.96);
}
.scene.in .files-proof { transform: perspective(900px) rotateY(-4deg) scale(1); }
.real-proof video { display: block; width: 100%; height: 100%; object-fit: cover; }
.real-proof > span {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(8,6,13,.72);
  color: rgba(255,255,255,.72);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

/* ---------- s8 · alive ---------- */
.spot {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -58%;
  width: min(640px, 84vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 62%);
  filter: blur(20px);
  animation: glow-breathe 5.5s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.6; scale: 1; }
  50% { opacity: 1; scale: 1.06; }
}
.mood-word {
  margin-top: 26vh;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-3);
}
.music-notch-demo {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(720px, 72vw);
  height: 150px;
  translate: -50% -50%;
  display: grid;
  grid-template-columns: 92px 1fr 130px;
  align-items: center;
  gap: 24px;
  padding: 26px 34px;
  border-radius: 34px;
  background: linear-gradient(180deg, #08070b, #020203);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 45px 110px rgba(0,0,0,.65), 0 0 90px rgba(139,92,246,.15), inset 0 1px rgba(255,255,255,.08);
  opacity: 0;
  transform: translateY(24px) scale(.95);
  transition: opacity .8s .18s, transform 1s cubic-bezier(.22,1,.36,1) .18s;
}
.scene.in .music-notch-demo { opacity: 1; transform: none; }
.music-album { width: 92px; aspect-ratio: 1; border-radius: 18px; background: radial-gradient(circle at 35% 35%, #e4d8ff, #9b79ee 38%, #35205d 72%, #100b1e); box-shadow: 0 16px 30px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.4); }
.music-meta { min-width: 0; display: flex; flex-direction: column; padding-right: 145px; text-align: left; }
.music-meta strong { color: #f5f2fa; font-size: 20px; font-weight: 620; }
.music-meta span { margin-top: 5px; color: #7e778d; font-size: 13px; }
.music-eq { height: 40px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.music-eq i { width: 4px; height: 12px; border-radius: 4px; background: linear-gradient(#d3c5ff,#8b5cf6); animation: eq 1s ease-in-out infinite; }
.music-eq i:nth-child(2) { animation-delay: -.72s; }
.music-eq i:nth-child(3) { animation-delay: -.35s; }
.music-eq i:nth-child(4) { animation-delay: -.9s; }
.music-eq i:nth-child(5) { animation-delay: -.5s; }
@keyframes eq { 0%,100% { height: 9px; opacity:.55; } 50% { height: 38px; opacity:1; } }
.music-time { position: absolute; left: 150px; right: 188px; bottom: 25px; height: 3px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.music-time span { display:block; width: 42%; height:100%; background: #a78bfa; animation: music-progress 7s linear infinite; }
@keyframes music-progress { from { width: 12%; } to { width: 92%; } }

/* ---------- s9 · reveal ---------- */
.film {
  position: absolute;
  left: 50%;
  top: 17vh;
  translate: -50% 0;
  margin-top: 0;
  width: min(1160px, 92vw, calc(70svh * 1.6));
  aspect-ratio: 8 / 5;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 60px 130px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 90px rgba(139, 92, 246, 0.12);
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
  will-change: transform;
}
.s9 .line { position: absolute; top: 5vh; z-index: 4; }
.s9 > .sub { position: absolute; bottom: 3vh; z-index: 4; margin-top: 0; }
.scene.in .film { opacity: 1; transform: none; }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.06) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: sheen 11s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 60% { transform: translateX(-70%); }
  88%, 100% { transform: translateX(70%); }
}

/* ---------- s10 · the ask ---------- */
.pricing-options {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  justify-content: center;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s .22s, transform .9s cubic-bezier(.22,1,.36,1) .22s;
}
.scene.in .pricing-options { opacity: 1; transform: none; }
.price-choice {
  position: relative;
  isolation: isolate;
  width: min(330px, 37vw);
  min-height: 235px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.58), rgba(225,216,244,.24));
  box-shadow: 0 32px 70px rgba(67,45,103,.16), inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(104,78,156,.08);
  backdrop-filter: blur(30px) saturate(1.25);
  text-align: left;
  transform: perspective(900px) rotateX(1deg);
}
.price-choice::before {
  content:"";
  position:absolute;
  inset:-55% -15% auto;
  height:72%;
  z-index:-1;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 68%);
  filter:blur(8px);
}
.price-choice::after {
  content:"";
  position:absolute;
  right:-70px;
  bottom:-90px;
  width:210px;
  height:210px;
  z-index:-1;
  border-radius:50%;
  background:radial-gradient(circle at 35% 35%, rgba(167,139,250,.32), rgba(124,92,240,.04) 62%, transparent 70%);
  filter:blur(3px);
}
.price-choice.lifetime { border-color:rgba(138,108,225,.35); box-shadow:0 38px 80px rgba(91,61,151,.22), inset 0 1px 0 rgba(255,255,255,.9); }
.price-choice > span { display:block; color: var(--ink-2); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.price-choice strong { display:block; margin-top: 5px; color: var(--ink); font-family: var(--font); font-size: 68px; font-weight: 640; letter-spacing:-.07em; line-height:1; }
.price-choice strong small { margin-left: 7px; color: var(--ink-2); font-size: 13px; font-weight: 520; letter-spacing:0; }
.price-choice p { margin: 11px 0 16px; color: var(--ink-2); font-size: 13px; }
.price-link { display:inline-flex; align-items:center; gap:9px; color:var(--ink); font-size:13px; font-weight:650; text-decoration:none; }
.price-link i { color:var(--purple-deep); font-style:normal; transition:transform .25s; }
.price-link:hover i { transform:translateX(5px); }
.price-link.primary { color:var(--purple-deep); }
.price-or { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; border:1px solid rgba(255,255,255,.55); border-radius:50%; background:rgba(255,255,255,.35); color:var(--ink-3); font-family:var(--serif); font-size:14px; font-style:italic; backdrop-filter:blur(12px); }
.fine {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.8;
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: box-shadow 0.3s, background 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn-primary {
  background: var(--purple-deep);
  color: #fff;
  padding: 16px 34px;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(124, 92, 240, 0.35);
}
.btn-primary:hover { background: #8d70f5; box-shadow: 0 16px 44px rgba(124, 92, 240, 0.5); }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(127, 112, 165, 0.4);
  color: var(--ink);
  padding: 15px 30px;
  font-size: 15px;
}
.btn-ghost:hover { border-color: var(--purple); }

/* ===================================================================
   THE NOTCH — nav (always present, the one constant)
   =================================================================== */
.notchbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -110%);
  z-index: 100;
  padding: 0 22px;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
body.loaded .notchbar { transform: translate(-50%, 0); }
.notch {
  position: relative;
  display: flex;
  align-items: center;
  width: min(520px, 88vw);
  height: 50px;
  padding: 0 10px;
  background: #000;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 16px 44px rgba(0, 0, 0, 0.45);
}
.notch::before, .notch::after {
  content: "";
  position: absolute;
  top: 0;
  width: 20px; height: 20px;
}
.notch::before { left: -20px; background: radial-gradient(circle at 0 100%, transparent 19.5px, #000 20px); }
.notch::after { right: -20px; background: radial-gradient(circle at 100% 100%, transparent 19.5px, #000 20px); }
.notch-wing { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 2px; }
.notch-wing.left { justify-content: flex-start; }
.notch-wing.right { justify-content: flex-end; }
.notch-center { width: 42px; flex: 0 0 auto; display: grid; place-items: center; }
.notch-camera {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #28344f 0 12%, #10172a 25%, #040509 68%);
  border: 1px solid rgba(98,117,160,.22);
  box-shadow: inset 0 0 5px #000, 0 0 0 2px rgba(255,255,255,.025);
}
.notch-brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: #f5f4f8;
  text-decoration: none;
  padding: 8px 14px 10px 12px;
}
.notch-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #737180;
  font-size: 10.5px;
  letter-spacing: .04em;
}
.notch-status i { width: 6px; height: 6px; border-radius: 50%; background: #9f83f1; box-shadow: 0 0 9px rgba(167,139,250,.85); animation: status-breathe 2.8s ease-in-out infinite; }
@keyframes status-breathe { 50% { opacity:.5; box-shadow: 0 0 4px rgba(167,139,250,.4); } }
.notch-pulse { height: 18px; display:flex; align-items:center; gap:3px; margin-right: 8px; }
.notch-pulse i { width:2px; height:6px; border-radius:3px; background:#706a7d; animation:notch-eq 1.4s ease-in-out infinite; }
.notch-pulse i:nth-child(2) { animation-delay:-.7s; }
.notch-pulse i:nth-child(3) { animation-delay:-.3s; }
@keyframes notch-eq { 50% { height:14px; background:#a78bfa; } }
.notch-link {
  color: #8c8a9c;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.25s, background 0.25s;
}
.notch-link:hover { color: #f5f4f8; background: rgba(255, 255, 255, 0.07); }
.notch-get {
  color: #16121f;
  background: #ece9f7;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-left: 10px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s;
}
.notch-get:hover { transform: scale(1.05); background: #fff; }

/* ===================================================================
   PIP — the creature
   =================================================================== */
#guide {
  position: absolute;
  top: 0; left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  will-change: transform;
}
.guide-bubble {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  color: #f5f4f8;
  background: rgba(18, 15, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 15px 9px;
  border-radius: 15px;
  border-bottom-left-radius: 4px;
  white-space: nowrap;
  margin-bottom: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#guide.talking .guide-bubble { opacity: 1; transform: none; }

.pip {
  --size: 90px;
  --gx: 0; --gy: 0;
  position: relative;
  width: var(--size);
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.4));
}
.pip-body {
  position: relative;
  width: var(--size);
  height: calc(var(--size) * 0.86);
  background: radial-gradient(115% 125% at 32% 18%, #ffffff 0%, #f0edf9 40%, #d4cee6 74%, #b0a8c9 100%);
  border-radius: 48% 48% 44% 44% / 52% 52% 42% 42%;
  box-shadow:
    inset 0 calc(var(--size) * -0.07) calc(var(--size) * 0.14) rgba(90, 80, 130, 0.25),
    inset 0 calc(var(--size) * 0.045) calc(var(--size) * 0.09) rgba(255, 255, 255, 0.9);
  animation: pip-float 4.4s ease-in-out infinite;
}
.pip-eye {
  position: absolute;
  top: 38%;
  width: calc(var(--size) * 0.105);
  height: calc(var(--size) * 0.22);
  background: linear-gradient(180deg, #26203a, #181226);
  border-radius: 999px;
  transform: translate(calc(var(--gx) * var(--size) * 0.045), calc(var(--gy) * var(--size) * 0.045));
  transition: transform 0.14s ease-out;
}
.pip-eye::after {
  content: "";
  position: absolute;
  top: 16%; left: 22%;
  width: 38%; height: 20%;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
}
.pip-eye.left { left: 30%; }
.pip-eye.right { right: 30%; }
.pip.blink .pip-eye { transform: scaleY(0.08) translate(calc(var(--gx) * var(--size) * 0.045), 0); }
.pip-antenna {
  width: 2.5px;
  height: calc(var(--size) * 0.17);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.9), rgba(167, 139, 250, 0.25));
  border-radius: 2px;
  margin-bottom: -1px;
  transform-origin: bottom center;
  animation: antenna-sway 3.8s ease-in-out infinite;
}
.pip-antenna-dot {
  position: absolute;
  top: calc(var(--size) * -0.07);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--size) * 0.12);
  height: calc(var(--size) * 0.12);
  background: radial-gradient(circle at 35% 30%, #d8ccff, var(--purple) 60%, #7c3aed);
  border-radius: 50%;
  box-shadow: 0 0 calc(var(--size) * 0.2) rgba(167, 139, 250, 0.8);
  animation: dot-pulse 2.6s ease-in-out infinite;
}
@keyframes pip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(var(--size) * -0.05)); }
}
@keyframes antenna-sway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 calc(var(--size) * 0.16) rgba(167, 139, 250, 0.6); }
  50% { box-shadow: 0 0 calc(var(--size) * 0.3) rgba(167, 139, 250, 0.95); }
}
/* moods */
.pip.mood-dance .pip-body { animation: pip-groove 0.55s ease-in-out infinite; }
.pip.mood-dance .pip-antenna { animation: antenna-sway 0.55s ease-in-out infinite; }
@keyframes pip-groove {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(calc(var(--size) * -0.12)) rotate(6deg); }
}
.pip.mood-sleep .pip-eye { transform: scaleY(0.07) !important; }
.pip.mood-sleep .pip-body { animation: pip-breathe 3.4s ease-in-out infinite; }
.pip.mood-sleep .pip-antenna-dot { animation: none; opacity: 0.5; }
@keyframes pip-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035, 0.97); }
}
.pip.mood-curious .pip-body { animation: pip-lean 2.6s ease-in-out infinite; }
@keyframes pip-lean {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-7deg) scale(1.05); }
}
.pip .zzz { display: none; }
.pip.mood-sleep .zzz { display: block; }
.zzz {
  position: absolute;
  top: -14%; right: -24%;
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple-soft);
  font-size: calc(var(--size) * 0.24);
}
.zzz span { display: inline-block; animation: zfloat 2.4s ease-in-out infinite; }
.zzz span:nth-child(2) { font-size: 0.8em; animation-delay: 0.5s; }
@keyframes zfloat {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-6px); opacity: 1; }
}
.pip.poked .pip-body { animation: pip-poke 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pip-poke {
  0% { transform: scale(1); }
  35% { transform: scale(1.22, 0.82); }
  70% { transform: scale(0.94, 1.1); }
  100% { transform: scale(1); }
}

/* ===================================================================
   CURSOR + FX
   =================================================================== */
@media (pointer: fine) and (min-width: 861px) {
  body, a, button, .btn { cursor: none; }
}
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #e9e2ff;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(167, 139, 250, 0.5);
  transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
}
.cursor-ring.is-link {
  width: 54px; height: 54px;
  border-color: rgba(196, 181, 253, 0.9);
  background: rgba(139, 92, 246, 0.08);
}
@media (pointer: coarse), (max-width: 860px) {
  .cursor-dot, .cursor-ring { display: none; }
}
#fx {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

::selection { background: rgba(139, 92, 246, 0.35); }

.commerce-notice {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 2000;
  width: min(480px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(12,9,20,.86);
  box-shadow: 0 24px 70px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(24px) saturate(1.2);
  color: #f5f2fa;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 24px) scale(.97);
  transition: opacity .3s, transform .4s cubic-bezier(.22,1,.36,1);
}
.commerce-notice.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.commerce-notice-dot { width:9px; height:9px; flex:0 0 auto; border-radius:50%; background:#a78bfa; box-shadow:0 0 14px #a78bfa; }
.commerce-notice div { min-width:0; display:flex; flex-direction:column; }
.commerce-notice strong { font-size:12.5px; }
.commerce-notice small { margin-top:2px; color:#8d8799; font-size:10.5px; }
.commerce-notice button { margin-left:auto; border:0; background:transparent; color:#777182; font-size:19px; cursor:pointer; }

/* ===================================================================
   REDUCED MOTION — a quiet, readable fallback
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  #stage { position: static; }
  #track { display: none; }
  .scene {
    position: relative;
    inset: auto;
    min-height: 92vh;
    visibility: visible;
  }
  .scene .sub, .scene .whisper, .scene .fine, .scene .cta, .scene .film,
  .scene .proof, .scene .mood-word, .scene .hint, .scene .real-proof,
  .scene .music-notch-demo, .scene .pricing-options { opacity: 1; transform: none; }
  .w > i { transform: none !important; filter: none !important; }
  #guide, .cursor-dot, .cursor-ring, #fx,
  .shot-actor, .ccards, .win-actor, .tabs, .files { display: none; }
  body { cursor: auto; background: #0d0b16 !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}

@media (max-width: 860px) {
  .notch-link, .notch-status, .notch-pulse { display: none; }
  .notch-brand { display: block; }
  .notch { width: 90vw; }
  .scene :is(h1, h2) { font-size: clamp(38px, 10vw, 60px); }
  .proof { display: none; }
  .real-proof { display: none; }
  .stacks { left: 5vw; right: 5vw; }
  .tp { width: 150px; }
  .music-notch-demo { width: 92vw; height: 128px; grid-template-columns: 70px 1fr 70px; gap: 14px; padding: 20px; }
  .music-album { width: 70px; }
  .music-meta { padding-right: 70px; }
  .music-meta strong { font-size: 15px; }
  .music-meta span { font-size: 10px; }
  .music-time { left: 105px; right: 105px; bottom: 18px; }
  .pricing-options { flex-wrap: wrap; gap: 10px; }
  .price-choice { width: min(40vw, 240px); }
  .price-choice strong { font-size: 45px; }
  .price-choice p { min-height: 38px; margin-bottom: 12px; font-size: 11px; }
  .film { margin-top: 28px; width: min(92vw, calc(50svh * 1.6)); }
}
